Twitter API + jQuery JSONP

Here i will show you how easily fetch non authenticated Twitter API methods using ajax json callback functions with jQuery framework, I use user_timeline method as an example but you can use this sampel to fire other twitter api method as long as its needless authorization.
The TwitterAPI Class
TwitterAPI = {
Statuses: {
user_timeline:function(screen_name, count, callback){
jQuery.getJSON("http://twitter.com/statuses/user_timeline/" + screen_name + ".json?count="+count+"&b="+Math.random()+"&callback=?",
callback);
}
}
};
PHP Error Exception Handling
Got a question from a friend today who is actually a great desktop programmer and just learn PHP since he believe that the future is in the web (hope you’re right dude). He asked me about how to handling error in PHP. Well i’ll write my answer here so can share with others and got feedback when I was wrong.
In PHP there are few options that you can use to handle errors & exceptions during script executions and as developer you must considering not the easiet but the most flexible approach which will help you when debugging your appllication, the more detail error message provided the faster you can fix it. Flexible means its easy for you to change the application behaviour when unexpected things happened during execution like: display error, logging error or even automatically notice you via email.
Why SEO lost importance
Cameron Chapman wrote an interesting post at instantShift today, he explain well about the position of SEO in web development & internet marketing world lately which is getting less & less important.
Social media is a big part of the blame for this situation. People can now ask their friends or complete strangers for recommendations on virtually anything, and get human-filtered results within minutes through Facebook, Twitter, or other social networking sites. Internet users are also becoming more savvy and can cut through search results to find the best content, regardless of optimal placement for the best keywords.
Even in cases where search engines still send significant traffic to a site, search engines are becoming so much more intelligent that it’s getting harder and harder to get good placement unless you’re providing the best content.
According to Chapman’s article, the 7 main reasons why SEO is getting less important are:
jQuery Mobile Announced : Touch-Optimized Web Framework for Smartphones & Tablets
Really interesting post from Dion at Ajaxian i read today explain about the new jQuery mobile project as announced by Jhon resig himself the founding father of jQuery. The jQuery Mobile project is supported by Palm with their webOS platform, Mozilla with Mobile Firefox and Filament group the creator of EnhanceJS
jQuery Mobile: Touch-Optimized Web Framework for Smartphones & Tablets. A unified user interface system across all popular mobile device platforms, built on the rock-solid jQuery and jQuery UI foundation. Its lightweight code is built with progressive enhancement, and has a flexible, easily themeable design.
Great move and cant hardly wait to test it when it become available
Multiple Google Account Signin
Just realize that google now allow multiple account sign in, I had few google accounts to access different google services like: gmail, reader, analytics, apps etc. and its silly when i need to signout and re-sign too often. I used to using greasemonkey scripts and then finally stick with using different browsers at same time, but that was then, now you can login with multiple account simultaneously
- Go to your account settings at the top right (settings -> Accounts and import -> Google account settings) or (Settings submenu when available)
- On the list of personal settings you will find at the bottom options to edit multiple sign-in
- Edit, turn it on
- On your account name at top right (youname@gmail.com) there will be dropdown nav (arrow next t it) open dropdown -> signin to another account
- Now you can switch to different account easily
Thanks Google! love this




