Logs | Page 6 of 6

These logs are random snippets of information that have been useful to me in the past. Hopefully they help you too!


Log Message

If you want to debug a C or C++ program that has a python frontend, then run python using gdb. Then, inside gdb, use the “set args” command to set the python...

Log Message

Friendship is NOT inherited. class A { friend class B; }; class B { }; class C : public B { }; => C cannot access private and protected members of A!

Log Message

Take a look at https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles for adding icons to the top menu or the launcher in ubuntu.

Log Message

Customize the tab stop size in git diff by using $ git config –global core.pager “less -x5,9”. man less to look at all options.

Log Message

Dont use it. Just dont. Tried and failed far too many times. Use printf instead. It overloads the printf defined by cstdio, so you have to include cstdio for...

Log Message

So I was facing this problem wherein the nvidia kernel module seemed to be getting unloaded after the computer was put to sleep. This can be resolved by expl...

Log Message

man nm. nm lists symbols from object files. Grep the output in order to search for a certain symbol

Log Message

In order to retain colours when passing output through less, use the -R option. Also ensure that the program sending output is configured to send out colour ...

Log Message

The way to stop the HUD from popping up every time you accidentally press the alt key is similar. Go to System Settings -> Keyboard -> Shortcuts -> ...

Log Message

For ipython configuration information, do ipython config -h. The default ipython profile is located in ~/.config/ipython. This is not present until generated...

Log Message

If you want to install a new completion file, for example django_bash_completion, then simply add the script to /etc/bash_completion.d/. The rest is taken ca...

Log Message

Website to find latex commands by drawing: detexify.kirelabs.org