As the release of Ubuntu 11.04 is approaching, I took a bold move to upgrade my Ubuntu 11.04 to 11.10 last night. Maybe not that bold, since the Ubuntu 11.10 is supposed to be stable enough at this moment. I played around with Unity and Gnome3 ...
Use notify-send to notify the finish of long run process
This Linux executable is part of the package 'libnotify'. With it you can notify the finish of long run process, like
./LongRunProcess | notify-send Done "LongRunProcess is done"
Debugging memory violation in wxgtk3 with valgrind
wxgtk3 is under active development. Today I ran into a SIGABRT signal when debugging samples/image. The error message is like this:
glibc detected ./image: malloc(): smallbin double linked list corrupted: 0x0000000000c93180 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x73226)[0x7f580b58f226] /lib64/libc.so.6(+0x758cf)[0x7f580b5918cf] /lib64/libc.so.6(__libc_malloc ...
GDB: How to set a watchpoint to watch the change of variable
Step 1: Print the address of the variable you are going to watch.
p *your_variable
(Suppose the address is 0x12345678
Step 2: Set watchpoint
watch *0x12345678
My favorite Gnome terminal font is fixedsys-excelsior
Finding a good monospaced font for Gnome terminal was used to be my big wish. I have tried bitstream mono, droid sans mono, inconsola. None of them was satisfactory in Gnome terminal with dark background(much better in white background but I don't like white background). Finally, my heart ...