Monday, December 19, 2011

ruby step iterator


A loop from 0 to 12 by 3 can be written as follows.
0.step(12, 3) {|x| print x, " " }
produces:
0 3 6 9 12

Tuesday, December 6, 2011

Saturday, December 3, 2011

Open current directory in terminal from nautilus

install nautilus-open-terminal.
1 . sudo apt-get install nautilus-open-terminal.

2 . logout and login or give "nautilus -q" in terminal.


Now in your right-click menu you can open a terminal, and it will be in what ever directory you are currently in in Nautilus