Archive for September, 2007

Create an automated bot to crawl gmail inbox

Wednesday, September 19th, 2007

There are certain scenarios that you might want to write a script to access gmail inbox automatically. One possible way to do that is to use this great project, gmail-lite.

But if you simply just want to access only the inbox, did you know there is a RSS feed which can do this? This method is more simple than using an automated bot. You can authenticate using HTTP authentication and grab the contents of the inbox. The feed url is https://mail.google.com/mail/feed/atom.

If you are using a scripting language like PHP, you can use curl extension. curl has several other language bindings too. Another possible way to do this is to execute external application(in background of course) such as wget.

The Python Challenge

Sunday, September 16th, 2007

You might have already read my blog post about deathball riddle. Few days ago, I started doing another internet riddle, but not like deathball, this is a programming riddle. It’s python challenge.

You might not familiar with python, but this is definitely a really good way to learn the language. When, I started doing this, I only knew few syntax in python.. But after finishing several levels, I learned about some really good ways of using python - or I can say the art of python.

If you don’t know about python, It’s not a dead language or not a useless language. It’s quite powerful scripting language, which also have GTK bindings. Many of the novel linux apps are written in python. Gentoo emerge is a very good example.

The best spam comment

Wednesday, September 5th, 2007

Today, I received a hilarious comment in one of my posts. Here it is.

--
hello , my name is [censored] and I know you get a lot of spammy comments ,
I can help you with this problem . I know a lot of spammers and I will ask them not to post on your site. It will reduce the volume of spam by 30-50% .In return Id like to ask you to put a link to my site on the index page of your site. The link will be small and your visitors will hardly notice it , its just done for higher rankings in search engines. Contact me icq [censored] or write me [censored] , i will give you my site url and you will give me yours if you are interested. thank you

Sorry dude, Akismet works fine for me(And it will identify your comment as a spam very soon).

Display configure GTK and Bullet Proof X

Saturday, September 1st, 2007

If you have used linux for about a year or so, you should have surely edited the xorg.conf file. Actually, that’s a headache. If you are a linux beginner, and if your x server didn’t start, there is high probably that you’ll switch back to windows. Configuring your other video outputs such as s-video output requires you to edit the xorg file manually and restart the xserver.

But now those have become very easy tasks, thanks to two tools, DisplayConfigGTK and BulletProofX.

DisplayConfigGTK is the control panel. You can select the various settings from that such as output screens, resolution, etc.

What happens when the X server failed is it dumps the log file into the screen and go to the shell. But not anymore. BulletProofX uses the minimal settings and displays the DisplayConfigureGTK applet. So, the users can easily select the correct settings and then restart the xserver.

Check this site for screenshots of bullet proof X : http://people.ubuntu.com/~bryce/BulletProofX/