Posted in Tips, tagged gdb on April 17, 2008 | 4 Comments »
Suppose you are in the middle of a gdb session, and need to print the content of an array or a class implementing operator[]. Here is a simple way to do that which I just discovered:
(gdb) set $pos=0
(gdb) print array[$pos++]
content of array[0]
(gdb)
content of array[1]
(gdb)
content of array[2]
…
The blank “(gdb)” lines mean i just pressed “return”. In [...]
Read Full Post »
I was asked by my wife if I could recover deleted pictures from a memory card for a coworker. Here is how I did it, it might be useful for others.
Dumping
The nice thing about Linux is that it lets you manipulate disks as files, making it possible to try every possible trick without fear of [...]
Read Full Post »
Posted in Tips, tagged sausage rice recipe on October 30, 2007 | 11 Comments »
I wouldn’t call me a great cooker, but I like to cook once in a while. After all it’s a creative activity, and I enjoy creating stuff.
So, this evening I came up with a funny variation on the classical sausages + rice meal (as I told you, I am not a great cooker). I believe [...]
Read Full Post »
Posted in Tips, tagged Vim, windows on October 4, 2007 | 4 Comments »
I have been wondering for a long time why my beloved Vim plugins would not load under Windows. It turns out Vim looks for them in $HOME/vimfiles/plugins under Windows. More information can be found with :help runtimepath.
Who knows, this might help other Unix refugees working on Windows.
Read Full Post »
Posted in Tips, tagged ssh, svn, windows on July 3, 2007 | 8 Comments »
This morning, I needed to access an svn+ssh Subversion repository from a Windows box. Since I am a command line afficionado, I decided to do it using the Subversion command line client. It turned out to be quite more complicated than I thought… So here is how I did it :
Download plink.exe and puttygen.exe from [...]
Read Full Post »
Posted in Tips, tagged Vim on June 29, 2007 | No Comments »
I thought I would try to write something special for my first post since I moved from kdedevelopers.org, but I just stumbled upon a nice vim trick I want to remember. Hopefully you will like it too.
Search and replace is easy in vim, it’s done this way:
:%s/from/to/
What I ignored for a long time was how [...]
Read Full Post »