October 11, 2013
Comments Off on Turning the lights on from PagerDuty
I recently slept through a PagerDuty incident — or rather, I woke up, looked at the back of my phone, assumed that I dreamt it and went back to sleep. I can do better…what if PagerDuty incidents could turn on … Continue reading
April 28, 2011
Comments Off on Getting PHP to read files over a Windows Network
As part of my continuing penance for crimes real and imaginary, I’m doing some work in a jury-rigged environment where my Apache server needs to read and write to files off a Window Share. Doing everything that immediately popped into … Continue reading
March 8, 2011
Comments Off on Oh ARIN, using HTTP headers?
For urlminder.appspot.com, I want to integrate the ownership information on a particular netblock that ARIN provides through their REST interface but it was returning HTML despite my clever guess that adding “?format=json” would change the format. It turns out that … Continue reading
October 27, 2004
Comments Off on How good is Rand() in PHP?
Not Good: I needed an image of random noise (to demonstrate that it had a [http://en.wikipedia.org/wiki/Box-counting_dimension](box-counting dimension) of 3). So I wrote the following script to throw one together, but it doesn’t look random enough. $img = imageCreateTrueColor(512, 512); for … Continue reading