Players rule in new quiz game for iPhone

Quizkey iPhone game screenshot

Put your trivia knowledge to the test in the new Swedish iPhone game Quizkey. Besides answering questions, you can also create your own and hiss or diss existing. In Quizkey, the players shape the game.

Continue reading “Players rule in new quiz game for iPhone” »

Posted in Uncategorized | Leave a comment

Facebook Timeline template (updated!)

Want to customize your cover- and profile picture on Facebook? The new Facebook Timeline lets you add a cover picture shown above and behind your profile picture. People have already begun to explore different creative ways of combining the cover picture with their profile picture.

Continue reading “Facebook Timeline template (updated!)” »

Posted in Uncategorized | Tagged , , , | Leave a comment

Threads, handlers and AsyncTask: efficient asynchronous programming in Android

Two Android robots

When creating Android applications you sometimes need to fetch data from servers, create game event loops or get information from web sites. Since Java’s IO operations are blocking, there is a risk of freezing the application if you try to do these time consuming operations directly in the UI thread. This can result in getting an ANR, which is short for Application Not Responding, a dialog that appears after the application has been frozen for 5 seconds and where the user has the option to kill the entire application.

An obvious solution is to run these operations in a separate thread but when you need to update the UI you can not do this from any other thread then the UI thread or you will run into problems. This is because the UI thread is not thread-safe.

Continue reading “Threads, handlers and AsyncTask: efficient asynchronous programming in Android” »

Posted in Uncategorized | Tagged , , , , , , | 3 Comments

Creating a backend server using ZendFramework (PHP)

Dojo & Zend Framework logos

The Dojo Object Store API is the emerging standard for supplying data to dojo widgets. Based on the W3C’s IndexedDB object store API, that we will start seeing native browser support for as HTML5 gets adopted, it provides a solid, uniform and light-weight data layer used to shuttle any kind of data to any kind of widget.

While there are many good resources on how to use the API client side, there is much less written on how to support a JsonRest Object Store server side. In fact, any server that can send JSON-encoded objects in a RESTful way would work as a backend for The SitePen Blog has an example using Spring/Java. This post will give an example of how to implement a backend using PHP and the Zend Framework.

Continue reading “Creating a backend server using ZendFramework (PHP)” »

Posted in JavaScript | Tagged , , , , , | 11 Comments

Using dijit.Tree with the new Dojo Object Store (

A dijit.Tree

A colleague asked me today how a dijit.Tree can be used with the new architecture, which will supersede the legacy architecture. Every tutorial he found on the web used ItemFileReadStore, which implements the old standard. Later that day I stumbled upon a similar question on StackOverflow and realized that a short write-up might benefit others as well.

Continue reading “Using dijit.Tree with the new Dojo Object Store (” »

Posted in JavaScript | Tagged , , , | 9 Comments

Installing Persevere

Persevere Logo

Persevere is not a single monolithic web server like Apache. Rather, it’s a set of server apps – or JSGI middleware – working together. While this is very powerful in terms of flexibility and extensibility, it complicates the installation process. Installing Persevere has become much easier with tools such as Nodules, however, the whole process might still not be for the faint-hearted.

Continue reading “Installing Persevere” »

Posted in JavaScript | Tagged , , , , | 2 Comments