User Profile
- User
- eimermusic
- Location
- Stockholm, Sweden
- Time Zone
- (GMT 1): Austria, Belgium, Cameroon, France, Germany, Italy, Spain
- URL
- www.fileshifter.se
Recent Articles
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.
- Published by eimermusic 09/02/09 - 13:57
- 26601 views
- 3 comments
StarSchema (OLAP) setup for reporting
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.
- Published by eimermusic 06/04/09 - 14:31
- 9281 views
- 3 comments
One core, one app, multiple domains
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.
- Published by eimermusic 02/18/09 - 20:31
- 19263 views
- 7 comments
HTTP basic authentication 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.
- Published by eimermusic 01/18/09 - 18:40
- 16338 views
- 1 comment
Migrating a real-world application to CakePHP 1.2
[p]
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.
[/p][p]
Considering how much CakePHP has evolved and also how many beginner-mistakes I have put into this application, this migration will also describe some pretty huge optimizations that was possible because of new features and my improved knowledge of CakePHP.
[/p]
- Published by eimermusic 11/04/08 - 06:37
- 15749 views
- 0 comments







One thing, though. Your article relies on CakePHP being part of your repo. I don't like this at all. The "core" has has it's own repo on github I prefer to keep my repo to just the app directory.
For those who feel the same, there is a nice script on github called capcake. Among other things, it helps with separate Cake from your app by putting Cake in shared and downloading it from a separate repo (like the official one or your own fork).
[url= http://github.com/jadb/capcake] [url]http://github.com/jadb/capcake
I'd also like to note my very unscientific benchmarks.
On my uncached dev-app hosted locally I see just over 10% increase in speed (compared to the current 1.2) in the setup and dispatch cycle (just hitting a trivial page a few hundred times).
People tickled by mobile detection should do this:
debug($requestingDevice->getAllCapabilities());
That will print almost 500 pieces of information about the device. (logging it is probably better)
To get the benefits worth the "cost" of a heavy data-set like the wurfl database (current version is 14,5MB) you probably want to optimize things like images, video conversions, applications types or any other "content" presented to the mobile browser.
When fully leveraged, Wurfl is really powerful.
Btw: The "real" database is located and updated at: http://wurfl.sourceforge.net/ The one mentioned in the article is a limited test database. Remember to empty the cache after updating the wurfl xml.