Malaysia 2012

For the past two weeks I have been travelling about Malaysia seeing a very small chunk of what there is to see there.

We started in Kuching on the Borneo island part of Malaysia, we went Kayaking down the bang-bang river:

And checked out some Orangutans in the jungle:

From here we took a short flight to Singapore, where we explored the city for a couple of days:

From Singapore we took a bus journey to Mersing then a (horrific) ferry ride to the beautiful island of Tioman:

The island itself was beautiful with lush jungles, stunning waterfalls and pristine coral snorkalling:

To wrap up our short visit to Malaysia we headed over to Kuala Lumpur:

And that sadly was the end of our journey, what better way to spend the last evening then in the Traders Tower Sky Bar with a view over to the Petronas Towers:

Village Life

Village Life

Village life is a flash-based social game I worked on while at Playdemic. Its incredibly popular and has been played by millions of people.

I was responsible for the underlying client side technology that was used for developing the game.

Play it on facebook:

Printomi Maps

Printomi Maps

Well since we have made the decision to discontinue Printomi I have been backing up the databases and downloading the 90GB+ of images that users have uploaded.

Well it wouldn’t be like me if I didn’t start thinking about what cool things I do with all those pixels. I remember seeing those cool Mincraft maps that use the Google Maps API to explore the Minecraft servers and it got me thinking if it could be possible to do something like that but for the Printomi images.

Well it turns out yes, you can:

Its only 1,024 of the total 27,497 images that were uploaded but even this small ratio results in a total map size of 115,200 x 86,400 pixels. The Google Maps obviously cant handle an image that large and it would take forever to download so you must split it up into many tiles. To achieve the zooming and performance you must also provide the map at various sizes.

With a map of 32×32 image with each image at 3600×2700 pixels and each tile at 450×337 this results in 87,000 tiles at 8 zoom levels! Generating and uploading all that data takes several days. But the result is you can pan and zoom around what seems like one huge 115k x 84k image.

If you are interested I have uploaded the source code I wrote to generate the 349k tiles at the various zoom levels from the 1024 3600×2700 input images. You can find it over on Github:

If I had enough disk space on my web server I would love to do the whole 37,000 images in this way. If I did 128×128 that would use 16,384 of the images. This would result in 10 zoom levels and a map 460,800 x 345,600 pixels large. I have no idea or how long it would take to generate and upload all those tiles 😛