Archive for the ‘Tips’ Tag

Batch Edit EXIF Metadata of Photographs

I spent the past few days exploring the scenic Chamba and Kangra valleys of Himachal Pradesh (More on that later.. time permitting :-)). I have been meaning to do this for a long time and was glad that I was eventually able to cover most of the places as planned. Needless to say, I took hundreds of photographs.. trying to capture the natural beauty that the lovely place has to offer. Much to my chagrin, I found out later that the Date/Time settings of my camera were askew. Well I’m a bit finicky about such things and immediately googled around for various available freeware utilities that can batch modify EXIF metadata of multiple photographs. All I wanted was an application using which I can select a bunch of files and increment/decrement the Date-Time values by some number.

My search led me to a number of options and I finally settled for the combination of “ExifTool + ExifTool GUI”. You can get more details at the following links.

It’s simple.. powerful.. and gets the job done – highly recommend!

Tips: Posting source code in WordPress blogs

I haven’t been too happy with the WordPress blog editor as it doesn’t let me to post source code snippets in my blogs – especially Javascript and XML. Although it allows Java, bash scripts and other code bits to be embedded within the <code> </code> tags, the final display isn’t too visually appealing as you can see below – probably to do with the the default CSS settings.


abhi@hbase2:~$ ls -lthR /opt/hbase/data/
/opt/hbase/data/:
total 16K
drwxrwxr-x 4 hbase hbase 4.0K Oct 30 12:47 users
drwxrwxr-x 4 hbase hbase 4.0K Oct 30 12:00 -ROOT-
-rwxr-xr-x 1 hbase hbase 38 Oct 30 12:00 hbase.id
-rwxr-xr-x 1 hbase hbase 3 Oct 30 12:00 hbase.version

/opt/hbase/data/users:
total 4.0K
drwxrwxr-x 4 hbase hbase 4.0K Oct 30 12:47 a070247328d9deec48d4e3cfa46b33a4

/opt/hbase/data/users/a070247328d9deec48d4e3cfa46b33a4:
total 4.0K
drwxrwxr-x 2 hbase hbase 4.0K Oct 30 12:47 info

/opt/hbase/data/users/a070247328d9deec48d4e3cfa46b33a4/info:
total 0

/opt/hbase/data/-ROOT-:
total 4.0K
drwxrwxr-x 4 hbase hbase 4.0K Oct 30 12:12 70236052

/opt/hbase/data/-ROOT-/70236052:
total 4.0K
drwxrwxr-x 2 hbase hbase 4.0K Oct 30 12:11 info

/opt/hbase/data/-ROOT-/70236052/info:
total 8.0K
-rwxrwxrwx 1 hbase hbase 718 Oct 30 12:11 a913edee0ac34de490c46ee12175dc02
-rwxrwxrwx 1 hbase hbase 714 Oct 30 12:00 c6f09dc3ee6a4150b8e787a747a81707
abhi@hbase2:~$

Luckily I chanced upon the following link http://en.support.wordpress.com/code/posting-source-code/ and it shares some neat tips that one can use.

The [sourcecode] [/sourcecode] tags definitely give a much better look as evident below.

abhi@hbase2:~$ ls -lthR /opt/hbase/data/
/opt/hbase/data/:
total 16K
drwxrwxr-x 4 hbase hbase 4.0K Oct 30 12:47 users
drwxrwxr-x 4 hbase hbase 4.0K Oct 30 12:00 -ROOT-
-rwxr-xr-x 1 hbase hbase   38 Oct 30 12:00 hbase.id
-rwxr-xr-x 1 hbase hbase    3 Oct 30 12:00 hbase.version

/opt/hbase/data/users:
total 4.0K
drwxrwxr-x 4 hbase hbase 4.0K Oct 30 12:47 a070247328d9deec48d4e3cfa46b33a4

/opt/hbase/data/users/a070247328d9deec48d4e3cfa46b33a4:
total 4.0K
drwxrwxr-x 2 hbase hbase 4.0K Oct 30 12:47 info

/opt/hbase/data/users/a070247328d9deec48d4e3cfa46b33a4/info:
total 0

/opt/hbase/data/-ROOT-:
total 4.0K
drwxrwxr-x 4 hbase hbase 4.0K Oct 30 12:12 70236052

/opt/hbase/data/-ROOT-/70236052:
total 4.0K
drwxrwxr-x 2 hbase hbase 4.0K Oct 30 12:11 info

/opt/hbase/data/-ROOT-/70236052/info:
total 8.0K
-rwxrwxrwx 1 hbase hbase 718 Oct 30 12:11 a913edee0ac34de490c46ee12175dc02
-rwxrwxrwx 1 hbase hbase 714 Oct 30 12:00 c6f09dc3ee6a4150b8e787a747a81707
abhi@hbase2:~$

I intend to replace all my <code> </code> tags in past entries with [sourcecode] [/sourcecode] the moment I get some free time. I wonder if there’s a simpler way to do this. Please do drop in a line if you think so :).

Enable Nautilus Toolbar, Statusbar and Sidebar with Tree view

I installed CentOS 5.6 and was a bit uncomfortable with the way the file browser Nautilus was behaving – I couldn’t find the Toolbar, Statusbar or the Sidebar/Sidepane with the folder tree that I have gotten used to over the years. Moreover every time I would double-click on a folder it would open it in a new window – my screen was simply getting cluttered. I tried to enable the Sidepane by pressing ‘F9″ but no luck. After quite a bit of looking around I managed to fix it.

Basically open gconf-editor i.e. press Alt+F2, enter gconf-editor and click on Run.

Run Application

Go to / -> apps -> nautilus -> preferences, select always_use_browser and enable the checkbox as shown below.

Configuration Editor

Now when you open Nautilus you can view the Toolbar, Status bar and the Sidebar with the tree.