Skip to main content


Showing posts from November, 2009

Convert djvu files into pdf

The latest djvu viewer which is djview 4.4 allows the djvu file to be directly exported to pdf format. Just select File -> Export as ... -> Format: ( Destination ) PDF Document.

But I fopund out that this didn't quite work in my system. After 99% of conversion was finished I kept getting the error message "Cannot render image.This operation failed ..." .

So I went for the alternative. I printed the document using CUPS-PDF driver. Selec print and then PDF from the list of printers available. If PDF printer is not installed then you have to install it. Follow the guideline here or better still if you are using Debian then just open your PMS (package management system ;) Synaptic for Ubuntu ) and install "cups-pdf" .

Rotate image canvas in gimp

It is frustrating to rotate in GIMP or that is what I thought because the rotation may cause the layer to extend beyond the bounds of the image. ( )

But the trick is to rotate the entire canvas not the layer only.

Image -> Transform -> use the rotate options in there to rotate the whole image.

Cool ha.

How to convert avi to vcd in ubuntu

I had a collection of videos that I wanted to write as a video CD so that I could play them in the vcd player in my home. The problem was that they are in avi format and directly writing them to a CD is not playable by a cd player. So I have to make a video CD out of the avi files. I read that Avidemux exports directly to VCD (mpg) format, but what I found out after wasting two whole hours is that the container that Avidemux produces while exporting to VCD format cannot contain audio. That means I was getting mpg files with no audio and Avidemux website suggested adding it manually later. But as it turns as everything in Linux it is a one-step process when done from the command line.

I got the following from the Ubuntu forums. (



ffmpeg -i -target ntsc-vcd


ffmpeg -i -target pal-vcd

Burn CD

K3b File > New Project > New Video CD project

For example in my case :

ffmpeg -i mymovie.avi -target pal-vcd forvcd.mpg

If there …

Story of catching my first Russell viper

8 Nov 2009 10:30 PM : I was trying to doze in my office when a phone comes ... "There's a snake near the main reception ..." So begrudgingly I leave to check it out. On reaching the spot I heard some real angry hissing sounds. The reason .. of the room boys got so scared of seeing the (big*) snake that he yelled so loud it got the snake nervous. It must be thinking ... "what to do with these pansy little creatures ... can't go anywhere without them yelling at me ... " Actually this is their interpretation because snakes are deaf . What I realized is that the guy, on seeing our bimbo, jumped so fast and high, that he got the snake into believing that he is another of his kind, but much bigger and scarier. This is what happened. Our boy jumped and viper( equipped with most powerful heat sensors) could see something big darting towards it and got really intimidated. So it reciprocated with some very angry hissing.

Now, the real fun begins. The snake is alread…

Thunderbird back & forward buttons are greyed out

When I open an email in Thunderbird the back & forward buttons are greyed out. So, I cannot move from one mail to another. So, I searched and came up with a discussion about it here

The back & forward buttons are meant for the main window only and do not work in the email window. So, in the main window if I view one mail then another random mail, the back & forward buttonsgo along that order just like the browser history button, from the mail I viewed last to the one the viewed before that (back) or from the mail I viewed next (forward) .

I do not want this behavior. And I am sure most Thunderbird users do not want it either. I would prefer if Thunderbird just goes from one mail to immediate next mail. For e.g. if I delete one mail I want it to go to the next mail automatically.

Random slideshow of wallpapers

In Linux I had a lot of wallpapers and I wanted a random slideshow of all of them properly scaled to fullscreen.
I tried Picasa and F-spot but both were inadequate because they started from the first picture and went on linearly. So, I used FEH instead.

$ sudo apt-get install feh

Now, to get a slideshow of random random walllpapers stored in a folder the following command is very useful -

$ feh -zsdrZFD 15 wallpapers/

Explanation :
-z, --randomize When viewing multiple files in a slideshow,
-Z, --auto-zoom Zoom picture to screen size in fullscreen mode,
-d, --draw-filename Draw the filename at the top-left of the image.
-s, --stretch Normally, if an image is smaller than the specified
thumbnail size, it will not be enlarged. If this
option is set, the image will be scaled up to fit
the thumbnail size. (Aspect rat…