Wateen Auto Login (the death)

Apparently, most of the traffic on my blog comes from people searching for a Wateen auto login program, which is kind of sad in some ways as I actually wanted this to be a blog about my programming activities.

But anyways, I just have to tell all of you that I have left Wateen for PTCL EVO for quite some time now, and I am not going to maintain my Auto Login program (not that it was in any way maintained before :P ). However, for those of you poor souls that are still stuck with Wateen, I’m going to suggest an alternative for the Auto Login program.

  1. Leave Wateen!!! Seriously, all I got were headaches from their service. No connection for hours, and when it did connect, I got speeds of around 10KB/s…. Yeah, that right, TEN KILOBYTES PER SECOND!!!! EVO actually rocks a lot more, and without me having to call the helpline every other day.
  2. If you’re still here, you apparently haven’t left Wateen yet, and still need an auto connector. Before I created my own, I did search around a bit for something that I could use. I only created my own because my needs were very specific (to automatically start/stop my bit torrent downloads according to the status of my Wateen connection and that too on my laptop only). I have come across an application that would be perfect for most people out there:

Wateen WiMax Keep Alive

Its built in Java, and so should run on almost any Operating System (Windows XP/Vista/7, Ubuntu, MacOS). Also, the interface is quite simple to use, so it should fulfill the need of most people needing an auto connector. To use it, simply download the zip file (if you’re lazy, a direct link to the zip is here), unzip it in a empty folder, and just run “Wateen WiMax.jar”. Once the application window is shown, go to File->Preferences and fill in your username and password details. Then click the OK button and you’re all set to go. As long as the program is running, you Wateen connection will connect automatically every time it gets disconnected. And if you set the program to start automatically, it will also connect your connection when the computer starts up.

Hopefully, this will be useful to someone out there.

Long Time, No See!!!

I admit, it’s been a REALLY long time since I last made a post about anything. And boy do I have a lot to discuss. The most important thing I guess would be that I finally got my own domain name AND hosting!!!! YAY for me… :P

It really pays off to have your own hosting and domain. The domain part is good cause I can now get my site listed on google according to my own preferences (by using the googles webmaster tools), have better visitor records (using google analytics), and just have a lot more fun than I could with a free domain. The hosting part is the best, I can use custom themes with wordpress (something that I really wanted at www.wordpress.com), install my own plugins, have ftp access to my blog, and a hell of a lot more that I actually don’t even know how to describe…

If the above sounded like the rants of a madman, rest assured, it is. I’M VERY EXCITED TO HAVE MY OWN DOMAIN NAME!!!!!

More >

FunMaza Downloader Revised

Finally settled on a first design draft for the FunMaza Downloader program that I have been going on about for some time. For anyone interested in it, the draft is available on PasteBin here.

Unique Links Extractor 2: A Python Exercise

A while back, I learned Perl and decided to program a link extractor in it. While I was successful, as my other post tells, I was by no means satisfied. There was always a lingering feeling of confusion whenever I programmed in Perl. Coming from a C/C++ programming background, I feel very uncomfortable programming in Perl. Maybe its the way the language is designed or perhaps I just wasn’t using it right, but I never quite got the sense of ease while programming in Perl. I would always write a piece of code and then coming back to it after a few hours, I would always be confused about how things worked. Its not that the language of Perl is inherently confusing, to the contrary, It’s quite easy to use, but I never felt as good using it as I did C. Somehow, C has something beautiful that I am attracted to (I know, I’m a NERD…). Perhaps it the syntax of C/C++ that makes it look more like a REAL programming language, or maybe its just that after 5 years of use, I can actually THINK in C. I really think that its the 5 years of use, but whatever the case may be, I prefer Perl only when making small programs that have some really heavy reliance on Regular Expressions, other than that, I just stick to C. More >

YouTube Downloader

This post is about a dead project. If you’re looking for a YouTube downloader, check out my latest post.

OK, so I finally finished 1 project that I was thinking about for some time now (around 2 weeks). It is a collection of Perl scripts that can be used to grab the download links for YouTube videos from a YouTube playlist page.

I was looking for such a thing to download a couple of Dramas (Pakistanis TV Shows (sort of)), and not finding anything appropriate, I decided to create one myself. There are a total of three scripts that can be used together to grab the video download links (links to actually download the videos, not just play them in a browser) of all the videos in a YouTube playlist.

The first script extracts the links to watch the videos (in a browser) from the playlist page. It follows all the ‘Next’ links at the bottom of the page, so if you provide it with the link of the first page in a playlist, it will extract links for all the videos in that playlist.

The second script extracts the download links from the links that the last script extracted (the ones used to view the video in a browser).

The third script takes the output of the last one and converts it into an HTML page, with each video title being a link to download that video. I created this so that I could use the DownThemAll Firefox extension to easily download the videos, rather than create my own script to do so, which would be really complex since it would need to keep track of what was downloaded, what remained, and so on.

So, I have, finally, created my first program based on the Unix philosophy, small programs that do one thing well working together.

On a side note, I just discovered that Pastbin is a wonderful site to post my code online at (it even has syntax highlighting!!! WOO!!!). So, from now on, I’m gonna be posting all by source code at pastbin. The links to the scripts mentioned above are just below. Enjoy!!!

1)  Playlist Parser (to get video watch links from a playlist page)

2) Video Link Grabber (to get the download link from a video watch page)

3) HTML Links Generator (to generate HTML page from the output of the number 2 script)

To use the script, run the first one; giving the link of the playlist page as the only argument. Save the output to a file. Then run the second script, giving it the path to the file produced in the last step. Save the output to a file as well. Finally, run the last script, giving it the path to the file produced in the last step. Save this output to a file as well. Now, use your favorite downloader to download the files from the links in the HTML file (I use the DownThemAll extension of Firefox. It is just awesome, giving me a great deal of control over what to download, where to save it to, and how to name each file).

Fun Maza Downloader: Back to the Basics

OK, so first of all, I’ve been absent for quite a while. I was actually busy with papers and stuff, and then I was just too darn lazy to get a new post. SORRY!!!!

So, here goes. If you’ve read my blog, you’ll know that I was working on a Perl script to download all the songs of funmaza.com. I did that, made a script, ran it, and it actually downloaded stuff… :P

But then, I didn’t like the end result. There was no way to stop the downloading, it didn’t keep an accurate log of what it downloaded and what was left to download, and honestly, the code was a HUGE mess. So, as I always do, I deleted the entire thing (believe me, I’ve done it a hundred times with around 5 websites, 10 different programs, 3 blogs, and well, u get the drift… :P ).

So now, I’ve decided to remake the entire thing. Yesterday, I came across a new browser; Uzbl. Its a browser thats based on the Unix philosophy, “Write programs that do one thing and do it well. Write programs to work together. Write programs to handle text streams, because that is a universal interface.”

This got me thinking, and now I’ve decided that thats the way I’m gonna make my downloader. A number of small programs, each doing only one task, that work together using text streams.

Wish me Luck…