nginx configuration gotchas

After running away screaming from Zend_XmlRpc we migrated of our internal webservices are RESTful nowadays — which implies that we make heavy use of HTTP status codes and so on. On the PHP side of things we implemented almost all of those webservices using the Zend Framework where some parts are replaced by in-house replacements (mostly stripped-down and optimized versions equivalents of Zend_Foo) and a couple nifty PEAR packages. RESTful — how does it work?...

April 5, 2011 · 3 min

Getting the most out of Chef with Scalarium and vagrant

Ever since I started playing around with Unix ~13 years ago, I’ve been a fan of automating things. What started out as writing little (maybe pointless) shell scripts slowly but surely morphed into infrastructure automation today. As for my, or maybe anyone’s, motivation to do these things, I see three main factors: I’m easily bored — because repeating things is dull. I’m easily distracted (when I’m bored). I’m German: Of course we strive for perfection and excellence....

March 9, 2011 · 3 min

Contributing to PEAR: Taking over packages

One of the more frequent questions I see on the mailing lists and IRC is, “How do I take over a package?”. Very often people start to use a PEAR package and then at some point encounter either a bug or they miss a certain feature. The package’s state however is inactive or flat unmaintained. Offer help The first step is to offer your help. And the easiest way to help is to report bugs or open feature requests....

February 18, 2011 · 2 min

Automating with Chef(-Solo)

In 2010, operations became an even more central part of my life. As I write this blog post (in early January, 2011), we have been running on Amazon AWS — and EC2 in particular — for over a year. Previously we had used a service called RightScale but in Q3 of 2010, we moved on/away from RightScale and started using chef and a service called Scalarium. Because Opscode’s chef became such a big part of my work life, I gave a talk about chef, and chef-solo in particular, at last December’s PHP Usergroup meeting in Berlin....

January 6, 2011 · 1 min

Zend Framework: Writing an IN-Clause with Zend_Db

I’m currently running a little database analysis to see how many of our users might be affected by Gawker’s breach of security the other week. Since we use Zend Framework, Zend_Db is our weapon of choice. Running the queries I noticed, that Zend_Db doesn’t seem to support an IN-clause with a straight fetchAll(). The IN-clause is only supported when I wrap my statement with Zend_Db_Select, which is something I rarely do....

December 19, 2010 · 2 min