Archive for March, 2009

Validate your inputs

Todays podcast listening for the commute was Bruce Sams talking about web app security from Software Engineering Radio.
Starting with a live demo of some hacking techniques (surprisingly effective even with just the audio), it covers some of the popular attacks – SQL injection, javascript in input fields, cookie stealing, guessing adjacent ID numbers and so on.
Apparently [...]

Tags:

Resetting the oil service light on a 2006 BMW 320i

The oil service warning light on the BMW was still on after the last oil service, so I looked around for how to reset it. Lots of advice on the internet, but mainly involving special tools (aka paperclips) and dodgy shorting-out of pins in the diagnostic port.
There’s also talk of holding down the trip reset [...]

Tags:

PhpUnit Mocks that suddenly stopped working

We came across a strange thing with the mock framework in PhpUnit .
We had some test code that created a mock for a Store class, and gave it a method to mock out:
        $mockStore = $this->getMock(‘Store’, array(’save’));
That seemed to work fine in the tests, we could setup expectations, the correct return values got returned, [...]

Tags: