Tag Archives: Yahoo

Grab Yahoo class revived

Finally after months of waiting I’ve updated Grab Yahoo class on PHPClasses.org and PHPKode.com.

Thanks to Ovidiu who fixed the latest problem. I’ve tested it and is working as expected. The demo is running http://resource.bdwebwork.com/GrabYahoo/ and latest code can either be downloaded from PHPClasses.org or PHPKode.com.

Thanks :-)

Grab Yahoo class is in “coma”

Grab Yahoo class was one of my works that has been used by many people around the world. Since I released this class I did  not have a single month without comments or questions or suggestion about this class. Some people have copied the class, released it under their name (simply taking out my comments and added their own) to increase traffic to their site probably. But more importantly this class was appreciated by many. This was one of my finest contribution to the open source world.

How did I come up with this idea?

Well, I cannot remember which user group but in one of the groups I participate in had a discussion over if PHP can pull data off from places like Yahoo and use it for some purpose. Users on the group said this can be done (easily) with Java, but cannot be done with PHP. So I started researching over it. I found the cURL extension for PHP which seemed the good candidate to do the job. So I started working on it. After days of coding I finally wrote a script that will allow someone to login to their Yahoo account and fetch data from their address book. Initially I simply had a script but then I converted it to a Class allowing people to grab their address book, messenger list, number of new emails and calendar data.

What is happening now?

As per the title of this post this class is in “coma”. The reason is the update to Yahoo address book export mechanism. They have placed a CAPTCHA validation page in the export feature and, therefore, my Grab Yahoo class cannot go any further to grab the content it needs. Same thing happened with the LinkMeIn class which stopped working after LinkedIn added the CAPTCHA validation.

Why is this class in “coma”?

I have looked at the Yahoo address book export feature and found the CAPTCHA validation which will not allow the class to work. But I’ve not done my complete research on it yet, to make sure there is no other way to make this class functional. So, for the time being, this class is in “coma”. If I fail to revive this class I will probably officially pronounce it “dead”.

Can you help?

Yes, of course, you can. I hardly have time, these days, to sit with these side projects. If anyone from the community has time to research and help me revive this class it will be appreciated. Your name will go into the credit section of the class, well that is all I can offer!

Voice Support with Yahoo! Messenger for Mac

After I bought my Mac Book Pro in March, one of the software I installed instantly was Yahoo! Messenger. I use it to talk to my parents everyday, who are in Bangladesh at the moment. Besides that fact, most of my open source community friends are on Yahoo! Messenger, not to mention few of my friends also.

When I installed YIM, it was kind of disappointing. It didn’t have the voice support and, therefore, I had carry my office laptop everyday with me. As Tithi uses her laptop to work on her course works, I needed to bring in office laptop so that I could talk to my parents back home. I used to constantly check Yahoo! Messenger’s blog and kept my eyes open. Finally about couple of weeks ago I found out that they have released a new build for Yahoo! Messenger for Mac 3.0 (BETA). I (literally) started jumping in joy and finally when I talked to my parents later that night, I was really happy. Hope YIM will port all the other fancy features available on Windows version, but I guess I can live with the features offered on the current version. Thank you guys (YIM Team) for making it happen. Keep up the good work.

Redirect with .htaccess file

Ever wanted to redirect users from one domain to other or one sub-domain to other without compromising the the file path or query string variables? I’ve come across the requirement when I published my WordPress blog.

For testing, I initially installed WordPress on a testing sub-domain, where I imported all the blog entries and added blog-roll links. After doing so, PHPClasses.org picked up my entries for Grab Yahoo, LinkMeIn and MySpace profile updater as track-back links. Later when I switched to my main sub-domain, I’d to find a way to keep the track-back links as is, and redirect users to the proper locations. The trick was done by .htaccess file.

After reading the apache’s documentation on mod_rewrite module, I’ve successfully implemented it. If you want people accessing http://sub1.yourdomain.com/2/12/some-post-of-yours/ to go to http://sub2.yourdomain.com/2/12/some-post-of-yours/ then in the root of sub1 (first sub-domain) create a .htaccess file and add the following lines:

RewriteEngine On
RewriteRule (.*) http://sub2.yourdomain.com/$1

I have not read much and not sure if there’s any other option to do this more efficiently; but this trick has served my purpose.