Sunday, December 03, 2006

Vi/Vim go to End/Beginning of line

If you want to go to the end of a large text file in your favourite vi/vim editor, you do this by pressing either (in Esc mode)

 G
or

:$
Similarly if you want to move to move to the beginning of the file, press :

gg
If you want to go to the 20-th line press :

20gg

[C#] Mutliple Concurrent Producers and Consumers pattern for a Task Queue

If you are in need of a basic concurrent Producers consumers pattern to be used in your application, here is a sample C# program to refer to...