simple examples of how to

Sunday, July 22, 2012

segmentation fault (core dumped)

Several tips while running into this message. 1) you can find the corresponding crash files at /var/crash 2) If you use bash shell, ulimit command limits how much core you dump upon seg fault. for instance, $ ulimit -c unlimited. With this setting, seg fault happens, you will see filename core. use GDB to debug with the core file. In GDB, type where to see the stack backtrace

Thursday, March 8, 2012

Source code analysis

star UML

http://en.wikipedia.org/wiki/StarUML

Tuesday, March 6, 2012

Latex math examples

http://meta.wikimedia.org/wiki/Help:Displaying_a_formula

Tuesday, January 24, 2012

svn delete with wildcard

use find and xargs

example:

find target-folder/ -maxdepth 1 -name target_name[1-9]* | xargs -I '{}' svn rm '{}'

Thursday, January 12, 2012

making a linux machine ap

http://www.su-root.eu/computing/turn-your-linux-computer-in-a-wireless-access-point-using-hostapd

Sunday, January 1, 2012

redirecting error output

redirecting error output while lively seeing it

rm 2>&1 1> output | tee /tmp/tmp