PHP: So you'd like to migrate from MySQL to CouchDB? - Part III

This is part three of a beginner series for people with a MySQL/PHP background. Apologies for the delay, this blog entry has been in draft since the 13th December of last year (2009). Follow these links for the previous parts: part I part II Recap Part I introduced the CouchDB basics which included basic requests using PHP and cURL. Part II focused on create, read, update and delete operations in CouchDB....

May 17, 2010 · 3 min

The Slicehost-Cogent-Outage, or How to setup a relay with Postfix

Our problem is that an application hosted on Slicehost uses an external mailserver, which is located in Europe. Since neither Slicehost/Rackspace or Cogent seem to be able to fix the situation after almost two days, here’s a quick workaround. The idea is that our relay will collect emails and send them whenever the connection permits. Postfix install This is a pretty simple: Configuration main.cf Edit /etc/postfix/main.cf (this is my entire main....

May 5, 2010 · 1 min

start-stop-daemon, Gearman and a little PHP

The scope of this blog entry is to give you a quick and dirty demo for start-stop-daemon together with a short use case on Gearman (all on Ubuntu). In this example, I’m using the start-stop-daemon to handle my Gearman workers through an init.d script. Gearman Gearman is a queue! But unlike for example most of the backends to Zend_Queue, Gearman provides a little more than just a message queue to send — well — messages from sender to receiver....

April 22, 2010 · 2 min

Redis on Ubuntu (9.04)

A small howto to get the latest redis-server and a webinterface on Ubuntu. Installation … redis should listen on localhost:6379. You may need to get i386 instead of amd64 if you run 32bit. Tweaks You may need to add the following to /etc/sysctl.conf: … that is, especially if you run in a VE (e.g. inside xen). All other configs are in /etc/redis/redis.conf. Web Because web interfaces are so simple, I decided to get redweb....

March 19, 2010 · 1 min

Fan Error

A Fan Error in this case is not when your Facebook fan page is down. I received this message after my Lenovo X61s notebook decided to quit and I restarted it. The screen said “Fan Error”, and the notebook refused to continue to the boot process. A rescue party Of course this is the last thing you want on a Sunday evening, but in true GTD fashion, I wanted to fix it right away....

October 18, 2009 · 2 min