Saturday, June 19, 2010

here document

(Because the document is right
here in the source code rather than in an external file.)

The Ruby Programming Language, 1st Edition p 51

Tuesday, June 15, 2010

c++ ** stack smashing detected ***

http://ubuntuforums.org/archive/index.php/t-352672.html

changed

char wordFromFile[36];

to

char wordFromFile[256];

to make it work

I think the stack smashing was detected only after the function returned, not when the stack was actually getting smashed.

Thursday, June 3, 2010

unix utils

ldd a.out
strace