Friday, September 26, 2008

Phnom Penh Map overlays on Google Maps

I have been too busy lately. I have uploaded a small project (called Oy-Moy) several weeks ago on Google Apps Engine, but I didn't have time to post it in my blog. It is about taking a map (jpeg/png) to overlay on top of Google Maps. Doing this has two ways: one is create a new maptype (GMapType) and another is create a new tilelayer (GTileLayer). The belows are list of links that show how to do this. I found the last link, http://www.bdcc.co.uk/GoogleCrunch/Crunch.htm, is the easiest way to do. It is abit slow because the tile images are too big in size about 132kb per tile. I just download this image somewhere on the internet and try this with google maps api.

http://groups.google.com/group/Google-Maps-API/web/more-info-gtilelayer-gtilelayeroverlay?pli=1
http://code.google.com/apis/maps/documentation/overlays.html#Tile_Overlays

Here is the link of my project: http://oy-moy.appspot.com/

Monday, September 15, 2008

createDocumentFragment() in Javascript

For some javascript developers like me, I never used and even heard this method createDocumentFragment(). I have learned and read many javascript books (about 10), but most of them didn't mention this method at all. Today, I just encounter this method when I read my existing book on one chapter how to sort table in javascript. I saw the author use this method. This book named "Wrox - Javascript for Web Developers".

"createDocumentFragment()" is basically somewhere to store your newly created nodes before you append them to the document. When you are ready to append all the nodes to the document, all you need to do is one append and they all get added. Creating a fragment is extremely easy.


var docFragment = document.createDocumentFragment();


You now have somewhere to store your new nodes. To add nodes to the fragment, all you need to do is append the childs to the fragment.


function myFunction() {
   var docFragment = document.createDocumentFragment();
   docFragment.appendChild(document.createTextNode("my text node 1"));
   docFragment.appendChild(document.createTextNode("my text node 2"));
   return docFragment;
}


After this, call

document.body.appendChild(myFunction());

Monday, September 8, 2008

Google App Engine

Google App Engine lets you run your web applications on Google's infrastructure. App Engine applications are easy to build, easy to maintain, and easy to scale as your traffic and data storage needs grow. With App Engine, there are no servers to maintain: You just upload your application, and it's ready to serve your users.

You can serve your app using a free domain name on the appspot.com domain, or use Google Apps to serve it from your own domain. You can share your application with the world, or limit access to members of your organization.

App Engine costs nothing to get started. Sign up for a free account, and you can develop and publish your application for the world to see, at no charge and with no obligation. A free account can use up to 500MB of persistent storage and enough CPU and bandwidth for about 5 million page views a month.

During the preview release of Google App Engine, only free accounts are available. In the near future, you will be able to purchase additional computing resources.

You just need a phone number (Camshin for Cambodia) to receive sms for verification.

http://code.google.com/appengine/

http://www.youtube.com/watch?v=bfgO-LXGpTM

Wednesday, September 3, 2008

Google launches internet browser

Yesterday, Google just launches internet browser called Google Chrome. See news on BBC
http://news.bbc.co.uk/2/hi/technology/7593106.stm
and http://www.google.com/chrome.

It is an open source web browser to compete with Internet Explorer and Firefox. It is also include an open source JavaScript engine (V8), written in C++ and is used in this new browser.
http://code.google.com/p/v8/
http://code.google.com/apis/v8/intro.html
http://blogoscoped.com/google-chrome/

Subscribe in a Reader