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…
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…