Category Code

Nginx + WordPress caching that actually works

I spent a lot of time yesterday trying to enable WP Super Cache, and subsequently W3 Total Cache for this website. SInce none of the hits I got on Google did the trick I thought I’d post my working settings for page caching with W3 Total Cache. I went with this plugin mainly because it [...]

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 [...]

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.

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.