Sunday, June 22, 2008

new job

"Yos" baby .. Yos technologies @ BTM
and new hostel(i cant call it home) at Airport road..

Thursday, June 05, 2008

What will be the output of the following C and Java programs?

C/JAVA:
int sum = 0;
for(int i=0;i<3;i++)
sum+=sum++;

Now print the value of sum

Answer...
C:
7
Java:
0

Why?...

Wednesday, June 04, 2008

download youtube videos

i know there are hell-a-lot of ways to do it.. for those who like to do it the dirty way like me..

  1. Install the browser
  2. Install flashgot
  3. Install Python
  4. Download and save the python script say youtube-dl.py from http://www.arrakis.es/~rggi3/youtube-dl/
  5. Now restart the browser and Tools->Flashgot->More Options
  6. Click Add, give a name, say My Youtube Downloader
  7. Click browser and select python.exe
  8. and in command line arguments give [the full path of youtube-dl.py] -t [URL] example: C:\youtube-dl.py -t [URL]
  9. now create a shortcut in desktop or startmenu for "C:\program files\mozilla firefox\firefox.exe" -console, if you have installed it in different directory then choose your correct executable
  10. Launch the browser using the link/shortcut that you created in above step
  11. in flashgot menu select your download manager and right click on any youtube link and select "Flashgot link", switch to the console that opened while launching forefox and see the progress..
PS:
  1. the files will get stored in your home directory, say c:\documents and settings\
  2. when downloading multiple files, the console output is really ugly
  3. in firefox 3, there is no output in console but the download proceeds without any problem