Install CasperJS with PhantomJS on Cygwin
Stumbled across this much easier solution today for rigging up my favorite modern headless javascriptable browser tools on my favorite Windows-compatible shell. Should work in pretty much all versions of Windows/Cygwin/phantomjs/casperjs. Download phantomjs and casperjs and unzip them in c:\phantomjs…
How to install JavaScript tools for Nagios
Node Install Node on the Nagios machine (My Nagios XI VM running CentOS… for other platforms see nodejs.org) wget http://nodejs.tchol.org/repocfg/el/nodejs-stable-release.noarch.rpm sudo yum localinstall –nogpgcheck nodejs-stable-release.noarch.rpm sudo yum install nodejs-compat-symlinks npm rm nodejs-stable-release.noarch.rpmwget http://nodejs.tchol.org/repocfg/el/nodejs-stable-release.noarch.rpm sudo yum localinstall –nogpgcheck nodejs-stable-release.noarch.rpm sudo yum…
Looking for innocence
I want programming computers to be like coloring with crayons and playing with duplo blocks… I just want to make computers suck less. — Ryan Dahl, creator of Nodejs.
Toggling light/dark Solarized color theme in Emacs 23
I never write about Emacs because I’m such a n00b and most of my ELisp “programming” has consisted of pasting random code from the Internet into my ~/.emacs file and hoping it works. But finally today I wrote a lick…
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…
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……