Posts

Showing posts from April, 2011

Item song of the year (so far)

The title song from the movie Dum Maaro Dum is my favorite item song of the year so far. It has sultry Deepika Padukone groving to some catchy tunes; credit goes to the original composer, R.D.Burman. The remixed version, particularly the lyrics, has attracted a lot of criticism. I think it is mainly because of the cult status of the original version and rather lewd lyrics in the modern version. I started following Hindi movies after Dilwale Dulhaniya leke gayen and Kuch Kuch Ho Chuka Tha. If Zeenat Aman was the star of 1971 version, I felt Deepika Padukone was equally good in the new one. I will probably watch the 120min movie just for this 4 min song. You can be smarter and watch the song here and lyrics are as below. Hai Phir Dekh Raha Hai Aaj Aankh Sek Raha Hai Kal Haath Sekega Aaj Dhil Choda Hai Kal Khud He Rokega Aaj Mere Liye Chair Kich Raha Hai Kal Meri Skirt Kichega Kichega Ki Nahi Aakad Bakkad Bombay Bo Aasi Nabbe Pure So Sau Rupiyon Ka Dum Jo Lun Do Sau Gum Ho U

Shell Script for 'Latex'-ing from vim

I am a vim loyalist. Features in Emacs like compiling latex code and viewing the output without having to switch to the terminal is awesome. However, having used vim (and recently gvim) for more than 5 years, its easier for me to write scripts for vim to implement the cool features of Emacs rather than switch to Emacs. Below is a simple shell script to compile latex document and show the output without leaving the editor.  #! /bin/sh  source=$1  infile=${source%.tex}  latex $infile  bibtex $infile  latex $infile  latex $infile  dvips $infile.dvi  ps2pdf $infile.ps  evince $infile.pdf You can use pdflatex instead of latex. Also, I use evince to view the pdf because any update in the file is updated in the viewer without having to restart it (unlike acroread). The script (I call it compile_latex.sh) needs to be saved in a directory included in the PATH. Now comes the vim part. The following line needs to be added in .vimrc (or .gvimrc). map :!compile_latex.sh % I a