Monday, September 28, 2009

Nautilus - Expand/Collapse directory tree with keyboard

I use Ubuntu 9.04 and generally prefer to use the keyboard while navigating through directories in Nautilus.

Discovered a nice feature today.
Quite handy if you don't want to move away from the current view and just see the contents of current directory.

To open/expand a directory tree, use <Shift> + <Right key>
To close/collapse a directory tree, use <Shift> + <Left key>


This trick also works in the Tree pane/Side bar (F9)

Thursday, September 10, 2009

Fixing Eclipse J2ME emulator in Ubuntu after Java upgrade

Java upgrade in Ubuntu tend to cause minor headaches sometimes.
Like today; the package manager upgraded Java on my machine, and suddenly my J2ME project(midlet) won't launch.
My Sun Wireless Toolkit (launched from eclipse) which was pointing to the previous version which no longer exists on the system.

Here is a simple fix.
Traverse to the {WTK installation path}/bin directory
Open the emulator.sh (on Ubuntu) in Text editor. Here I found the hardcoded JRE path
javapathtowtk=/usr/lib/jvm/java-6-sun-1.6.0.16/bin/

I updated the above variable and then my J2ME project in eclipse started working.