Electricmonk

Ferry Boender

Programmer, DevOpper, Open Source enthusiast.

Blog

Archive for April 2009

Templum v0.2.0: Simple PHP Templating

I just released v0.2.0 of Templum, a simple templating engine for PHP. About From the homepage: Templum is an extremely lightweight, simple yet powerful and fast templating engine for PHP. It re-uses the power of PHP itself for rendering templates, but provides additional features making it easier to write templating code. Rendering templates using Templum […]

Barry Schwartz: The paradox of choice

Talks Barry Schwartz: The paradox of choice: Psychologist Barry Schwartz takes aim at a central tenet of western societies: freedom of choice. In Schwartz’s estimation, choice has made us not freer but more paralyzed, not happier but more dissatisfied.

Ubuntu sucks!

I used to be real pleased with Ubuntu, because it got a couple of things right that Debian didn’t. But I’ve upgraded my Ubuntu install three times now, and every time I upgraded everything broke. The last time I upgraded, everything even remotely having anything to do with sound broke. This was because the geniuses […]

Performance optimization: The first thing to do

In the last couple of years, I’ve done a lot of performance optimization. I’ve optimized raw C, Python and PHP code. I’ve optimized databases: tweaked settings, memory usage, caches, SQL code, the query analyzer, hardware and indexes. I’ve optimized templates for disk I/O, compilation and rendering. I’ve optimize various caches and all kinds of other […]

How Democracy works…

Here’s a good example of how democracy works: NASA Christens Space Station Treadmill ‘COLBERT’.

MySQL WEEK() function weirdness

The other day I had to gather some statistics from a database, and the statistics needed to be grouped and filtered by weeknumbers. I ran into something a bit unexpected. Let’s say we have the follow table definition: CREATE TABLE test ( start DATETIME NOT NULL ); We insert the following dates for testing purposes: […]

Easy PEAR Package creation

Here’s a fairly simple way of creating PEAR package so you can distribute your application or library as a PEAR package. Premise. Let’s assume you’ve written an application or library called ‘MyApp’. The following is a possible directory structure layout: myapp/ |- MyApp.php \- MyAap/ \- MyApp/MyLib.php Install the PackageFileManager. Since writing a package file […]

Templum: Simple PHP Templating

At the company I work for (ZX), we needed a simple yet powerful templating language for PHP. I googled around a bit for something, but we couldn’t really find anything. So I wrote Templum, and ZX was kind enough to allow me to release it as Open Source under the MIT License. From the Templum […]

The text of all posts on this blog, unless specificly mentioned otherwise, are licensed under this license.