Category Articles

The root of all bugs in iphone development?

Catchy title, sure. I don’t write that as a universal truth but as my experience from developing my first iPhone app, Extraction.
So what is it?
In a word (or two): Memory Warnings

Implementing GUI persistence in an iPhone App

With iOS 4, Apple pushes everyone to build our apps so that we preserve the state of the application when it terminates. This is because to the normal user there is no difference between an app being “pushed” to the background and an app being terminated. Apple want the users to feel like our apps never terminate. That they just leave them in the background a while.

I’ll explain how I implemented this behaviour using NSUserDefaults in my app, Extraction. It may not be the most advanced technique or the best in any way. I just know it works for me.

Modifying a Projekktor Theme

Projekktor is a most excellent open-source video player for the web. It requires javascript but that is totally worth it. You get cross-browser compatibility, flash fallback, consistent GUI across browsers and much more. What i will explain in this short article is how to modify the GUI part. The first thing I wanted to know [...]

Designing a modular application using CakePHP plugins

This article will try to explain how I build a modular application using plugins. I will cover how I implement them and integrate them into the main application.

StarSchema (OLAP) setup for reporting in CakePHP

When you need to gather statistics and reporting data from a large number of transactions (easily >1’000’000 rows) you need to transfer that data over to a reporting-friendly format to keep request times down. One popular database design for this is called a Star Schema. This is a simple re-usable StarSchema setup for CakePHP.

One core, one app, multiple domains for CakePHP

Dealing with configurations for multiple domains (environments) is always a topic for discussion. I wanted to share my way of dealing with this common problem. This will not be right for all, which is the point. If this does not suit you, there are a few links at the bottom.

HTTP basic authentication in CakePHP with users from database

This is a few lines of code and explanations explaining how to get HTTP Auth to check against your normal users table.
Intended audience:
• You want to provide a protected RSS feed.
• You want to provide a protected API.

Migrating a real-world application from CakePHP 1.1 to 1.2

I thought I’d chronicle my work migrating my fist CakePHP application to CakePHP 1.2 (rc3 at the time of writing). The application was originally written for CakePHP 1.0 (= the good old days). It has been updated to work with the latest versions 1.1 but has not really been rewritten much.