PHPUnit for XAMPP on Windows with Cygwin
Steps to get PHPUnit to run on my XAMPP setup with Cygwin, so I can write and run Symfony2 unit tests. 1. Upgrade PEAR Download http://pear.php.net/go-pear.phar to C:\xampp\php\go-pear.phar Run this in cmd.exe (cygwin prompts hosed somehow), taking all defaults c:\xampp\php>go-pear.batc:\xampp\php>go-pear.bat…
Sorting, deleting from a PropelObjectCollection
Propel 1.6 (and Propel 1.5 before it) is pretty sweet (thank you François!). I had some confusion with my model’s array of related objects though, thinking it was a regular PHP array. Actually it’s a Collection, specifically a PropelObjectCollection, which…
Relaunch the Mac OS X Dock
Problem On my Snow Leopard machine this kept happening. The “open” indicator (glowing silver ball under the app icon) in the Dock was flaky, only showing for a few apps though more were running. The task switcher (which you see…
Integrating Nagios with Test Driven Development
A while back I realized something important: Monitoring tools are to the sysadmin what testing tools are to the developer. Recently I realized that there need to be more ways to bring both toolsets together. Here’s one, tying the Nagios…
Open files in Emacs from the Cygwin command line
I just got this working today. The weirdnesses of Cygwin’s half Unix-half Windows nature had stymied me before, but I’ve prevailed! I’ve got Gnu Emacs 23.3 for Windows installed in c:/emacs, and a fairly recent install of Cygwin on Windows…
sfPropel15Plugin error, “class ‘FooPeer’ does not have a method ‘getUniqueColumnNames'”
Stupid me made the same mistake twice in a row so I’m documenting it for humanity. I’m updating an old Symfony project to use Symfony 1.3/1.4 and Propel 1.5 through François Zaninotto’s sfPropel15Plugin. Problem: I followed the README, right? But……