Saturday, September 10, 2011
Who are you?
Monday, February 14, 2011
gdb: script
Then one day after having wasted a lot of time, in recompile and rerun, I decided to use GDB scripts (which I had known since long, but had never used). And it is really fun now. I save a lot of time in debugging.
A sample script that I used to count the number of elements in a linked list (which we use a lot in our code) is below:
define cntList
set $l = $arg0
set $i = 0
if ($l == 0)
printf "NULL list found\n"
else
set $n = $l
while ($n != 0)
set $i = $i+1
set $n = $n->next
end
end
printf "list size %d\n", $i
end
document cntList
count the number of elements in the list
Usage: cntList
end
Tuesday, December 14, 2010
Nube Technologies in news
Way to go Sonal!!
Monday, July 26, 2010
Unable to move windows in KDE
Now there is help available to fix this issue:
kwin -replace
will replace the window manager and voila you can now resize and/or move the windows in KDE
Wednesday, July 14, 2010
using sed in alias in C shell
alias grf 'set fileNline = `echo "\!*" | sed -e "s/\([^ ]*\):\([0-9]*\):.*/+\2 \1/"`;gvim $fileNline'
This alias is called as:
grf file:line_num:
and then it open the file "file" in gvim with cursor at line "line_num".
Friday, July 9, 2010
Accomplishment is important
Not losing focus is the key. It’s about switching your focus from quantity to quality, and making sure that you use your productivity for a greater good: reaching your goals. Wonderful insights at http://workawesome.com/
Thursday, July 8, 2010
Parenting
Interesting insight on this blog entry in Freakonimics - http://freakonomics.blogs.
The crux is that parent's don't seem to enjoy parenting is a strange conclusion made by almost all studies in this field. I am not sure I fully subscribe to this theory as I oscillate between happiness and despair when parenting. Maybe its more despair than happiness, but one thing I am sure about it is that happiness definitely has a longer lasting effect than despair.