Skip to main content


Showing posts from May, 2012

Bolding author name in CV (latex)

If you use latex and bibtex to create your CV then you can use this trick to bold your name in the author list of the bibliography. There are several other methods shown here.:
Use plain.bst, copy it over to the location where your cv tex file is. Rename it (eg. to cvplain.bst)Find the format.names function and change the line
{ s nameptr "{ff~}{vv~}{ll}{, jj}"$ 't :=
{ "\FormatName{" s nameptr "{ff~}{vv~}{ll}{, jj}"$ * "}" * 't :=In your cv tex file add the following lines:
\def\myname{My Name}%

Shooting yourself down

From this story on futility closet I came to know about Thomas W. Attridge's F11F 'Tiger' flight where, after firing off two volleys of 20mm cannon he put his aircraft into a supersonic dive and ran into the shells damaging his aircraft enough that he had to ditch it. The full story is here.

ffmpeg to create a movie from images

I've switched over to ffmpeg from mencoder. ffmpeg can be obtained from here for mac.

The ffmpeg documentation on creating video slideshows is great.

An example command line for such a use is:

ffmpeg -r 1/.5 -i "0%05d.jpg" -vcodec mjpeg -r 25 drop.avi

Important: if the numbering of your images doesn't start from 1 you should use the -start_number to indicate the first image (from here):
ffmpeg -start_number 2724 -r 1/.075 -i "DSC_%04d.jpg" -vcodec mjpeg -r 25 advair.avi
If there is a break in the file name numbering (eg. you have image01.jpg ... image05.jpg then image08.jpg) ffmpeg will stop at the break and finish the movie. You can use a short bash script to generate a copy of the files numbered as you want them. ls *.JPG| awk 'BEGIN{ a=0 }{ printf "cp %s image_%04d.jpg\n", $0, a++ }' | bash
You should add options to ls to sort the files as you wish
Here, the first rate command (-r 1/.5) indicates how long each frame should take (here …