Sunday, November 19, 2006

Download videos from YouTube

This script downloads the given video from YouTube and converts it into mpg.

if [ ! -f /usr/bin/zenity ]
`zenity --info --text="Zenity is not installed"`

vedio_name=`zenity --entry --title="file name" --text="name of the vedio" --entry-text="you"`

if [ ! $vedio_name ];then
`zenity --info --text="Vedio name should be given"`

youtube_url=`zenity --entry --title="URL" --text="Vedio URL:"`

if [ ! $youtube_url ];then
`zenity --info --text="URL should be given"`
tmp_file=`echo $vedio_name | sed "s/ /_/g"`

`wget "$youtube_url" -O "${tmp_file}"`
swf=''`grep player2.swf "$tmp_file" | cut -d? -f2 | cut -d\" -f1`
`wget "$swf" -O ${tmp_file}.flv`
`ffmpeg -ab 56 -ar 22050 -b 500 -s 320x240 -i $tmp_file.flv ~/Desktop/"${vedio_name}".mpg`

if [ $? ];then
`zenity --info --text="Successful"`
`zenity --info --text="Not Successful"`

If you are a fan of hindi oldies, these are some of the oldies I have downloaded.
Aaja Aayee Bahaar.mpg
bahon mechale aon.mpg
Chahoonga Maein Tujhe .mpg
Dil kiya kaire.mpg
Ehsaan Tera Hoga.mpg
Ek Mein Aur Ek Tu.mpg
hamen aur jeene ki.mpg
Haseen Dilruba Kareeb Aa Zara.mpg
Kabhie Kabhie.mpg
Kya Huwa Tera Wada.mpg
Lila o Lila.mpg
Maine Tere Liye Hi.mpg
Main Na Milungi.mpg
Oh Haseena Zulfoa.mpg
roop tera mastana.mpg
Tere Bina Zindagi Se.mpg
Tere Ghar Ke Samne.mpg
Tujhko Pukare Mera Pyar.mpg
Ye Ladka.mpg
Ye Sham Mastanee.mpg

Saturday, November 18, 2006

gnome easter eggs

Press Alt+F2 and type "free the fish", in the execute command dialog.
A fish will appear on the screen and will keep moving around.

In Alt+F2 "gegls from outer space" results in a game.

Friday, November 17, 2006

Go_Open television

Go Open Source has announced a world first television show dedicated to promoting open source software. The 13 episode Go_Open airs on SABC 2 every Saturday at 17:30 from the 20th November. The programme will showcase success stories, interviews with the top local and international pioneers, and the latest products and news from the open source world.

The entire go_open series is now available to download via BitTorrent as well as Http/ftp. You can download via bittorrent from Legal Torrents (or just grab the two seed files [1 - 6][7-13]), or download the files by http/ftp from the Internet archive. These downloadable files are licensed under creative commons by-nc-sa 2.5.

Thursday, November 09, 2006

Nautilus scripts archive

Here is the Link to some of my nautilus scripts.


extract the archive to ~/.gnome2/nautilus-scripts/

XGL and Beryl on Ubuntu

Tuesday, November 07, 2006

Haveeru Comments Fix for Firefox

Haveeru website doesn't properly show the user comments, in Firefox.I suppose the web master has no time to clean up his code or probably they don't care.
Some use IE Tab extension in Windows to browse the site and for Linux users theres Opera..

Anyways here is my solution for the problem, which gets rid of loading an external browser.

1) Install Greasemonkey extension for Firefox

and then

2)Install Haveeru userscript / Haveeru userscript (Windows)

2)Install Haveeru userscript / Haveeru userscript ( Linux )

Greasemonkey user script.

(thanks to bandey for the webspace)

Happy Browsing.

Wednesday, November 01, 2006

Play MP3s in Gmail

Exerpt from Lifehacker

Eryan discovered that Gmail can play MP3s uploaded using the Firefox plug-in Gspace.

I was uploading some MP3s that I wanted to have available without carrying around a thumb drive. After I uploaded the files and the messages containing the MP3's showed up in my inbox, I saw a link next to the files that said 'play.' I clicked it and, lo and behold, a little player (similar to the one Google Video uses) popped up and started playing the file. Could be useful to people who don't want to carry music files around.

Sure enough, it works. Alas, Gmail won't play WMA files, only MP3s. Even so, great tip.