Because I travel a lot by train, it's easy to have a local development environment with me. Because OSX Leopard contains Apache2 and PHP 5.2.6, I installed MySQL, ZF, PEAR, setup the vhost conf for apache and added the path to the ZF and PEAR libraries to /etc/php.ini. This seemed to work fine for a day or two, but after that I needed to use the PDO_MySQL library. This didn't really work... The fact is that PDO_SQLite and PDO_SQLite2 are compiled along the installed PHP library, but PDO_MySQL isn't... Big FAIL!.
So, we'll have to setup a new PHP/Apache2 combo.....
If you're working a lot with remote sessions like I do, you inevitably type a command in the wrong window... Most of the time it's something harmless like an ls or an cd command, but if you're trying to clean stuff up with an rm command things can get bad.
The easiest way to differentiate between local and remote sessions or different remote sessions is changing the background-color. When switching terminal, you immediately see/know where you are, without looking at the prompt or the window-title. So how do we implement this in the standard OSX Leopard Terminal.app ?