Google+ API has final arrived!

Web developers have been waited for a long long time for this big news! Google has just announced the Google+ API is now available. Developers can now visit

https://developers.google.com/+/api/

to try out the API. This initial API release is focused on public data only — it lets you read information that people have shared publicly on Google+. Google will of course continue to announce new APIs when it comes to ready.

Here is the message to developers.

Greetings developers,

Thank you for showing your interest in the Google+ platform on our developer interest form. We promised to let you know when we had more details to share. Well, that time has come…

Today, we’re launching the first of the Google+ APIs. This initial API release is focused on public data only — it lets you read information that people have shared publicly on Google+. Read our blog post for more details.

Also, we’re happy to introduce a new Google+ developers site. This will be the place to go for our policiestermsdiscussions with other developers, access to documentation, tools that make development on the Google+ platform easier and more fun, and of course, the place where announcements concerning new releases will be made.

We’re looking forward to seeing what you build with the API. Today is just the beginning, and your work will affect what comes next, so go ahead and get started.

Happy coding!

- The Google+ platform team

Installing new Android SDK on Titanium Mobile

I recently updated the Android SDK Tools but found that I couldn’t create new project in Titanium Mobile. Titanium Developer blames me that I don’t have “adb” installed in “tools”.

Clearly Titanium haven’t updated to match the latest structure of Android SDK. To solve this, just create a symbolic link to let Titanium Developer.

For Mac and Linux users, change your directory to “android-sdk-mac-x86/tools” and do the following.

ln -s ../platform-tools/adb adb

Then a link is created and pointing to the correct file.

For Windows users, please following the post from

http://www.codeboxed.com/2011/03/install-the-new-android-sdk-on-titanium-mobile/

.live() and change event in IE6 and IE7 with jQuery 1.4.2

I’m working on an online nomination application for The Hong Kong Academy for Gifted Education (HKAGE). Again, extensive work on CakePHP and jQuery. As usual, jQuery is linked from Google API. I only define the major version so that the application always link to the latest jQuery version. Bryan and I faced an issue on IE6 and IE7 with .live() and change event.

$("select").live("change", function(){
	alert('haha');
});

It worked on Firefox, Safari and Chrome but not IE6 & IE7. I felt strange about this as .live() has been implemented since jQuery 1.3 and it’s supposed to be stable in later versions.

To make this work in IE6 & 7, either use jQuery 1.4.1 or livequery.

I hope this can be fixed soon.

My Blog is Finally in UTF-8

Since WordPress 2.2, there is CHARSET support and wordpress user can set the mysql database to UTF-8. As my blog was setup using WordPress 2.0, the original database was in Latin1. I wanted to convert it to UTF-8 since then. After some searches on google, I found this link. It talks about how to convert Latin1 DB to UTF-8 in mysql.