Iterating over a table (with Zend_Db_Table and Zend_Paginator)

So frequently, I need to run small data migrations or transformations. Especially on the way to Doctrine, there’s a lot to clean-up in a database which has been used and evolved over five years or so. The other day, I wanted to run some transformations on the data located a history column in a pretty simple table — here’s what it looks like: Building a class to interface the table is simple:...

October 11, 2011 · 1 min

Twitter bootstrap + Zend_Form = ♥

I dig Twitter’s bootstrap library because as a developer, it helps me produce good looking forms without a lot of effort. Especially when administration interfaces are concerned, you I can only go so far — my first constraint is not being a great designer (to confirm, check out this blog) and two: I don’t like working with ugly interfaces. To cut to the chase… Easybib_Form_Decorator It’s a decorator library for Zend_Form....

October 2, 2011 · 1 min

Sound problems reloaded (Linux Ubuntu 10.04 and 10.10)

So after updating 10.04 to 10.10 sound didn’t work — again. I’ve bitched and moaned about sound and Ubuntu countless times on Twitter and after literally wasting away countless hours on sound and Ubuntu in the recent months, here are some pointers so hopefully others won’t waste as much time as I did. Pulseaudio There are countless of threads and blog posts online about how people despise pulseaudio and I have no idea if there’s anything better, but I’m running Ubuntu because I don’t care....

August 10, 2011 · 2 min

vpnc (for Cisco VPNs with 2-factor authentication) on Ubuntu

In order to connect to firewall and DRACs of our new Rackspace cluster, I had to setup a VPN connection. Rackspace gave us a Cisco ASA device which is firewall and vpn in one. In order to connect to the VPN the client needs to do 2-factor authentication. At first I tried to install the necessary add-ons for Ubuntu’s network-manager, but after I spent an hour or so trying to make it work, I took an alternate route....

July 19, 2011 · 1 min

Legacy code

Some people have this misconception that there is a plot to kill of the original mysql extension (aka ext/mysql) in PHP. So first off, I know that bloggers are not journalist. So apprently fact-checking is not required for a rant blog post. ;-) But if a blog post is a rant, it should be labeled as such. Improved ext/mysqli (hint: “i” as in improved) has been the goto extension for years....

July 17, 2011 · 2 min