Date logic is hard, and how you can make it easier

There are excellent tools available for essentially every programming language allowing you to work with dates as objects, because date logic is hard. But it doesn't have to be, and you can make it easier.

Slim Framework, Route Groups, and Parameters

Yesterday, I was writing a new sub-endpoint for an API based in Slim Framework. For this API, the routes are kept in separate files for organizational purposes, but also because route groups didn't exist at the time; so I thought I'd give them a shot.

Zend Db and non-escaped strings

This is for my own edification in the future, but if you're looking for a non-escaped string as a parameter to a query, it's not Zend\DB\Raw that you're looking for, as that doesn't exist. What you're looking for is new \Zend\Db\Sql\Expression() to handle those raw strings.

Restoring a lost file from your cache in Chrome

Recently, I switched the software that generates this blog from a custom Perl script that I built to a Jekyll based system. The migration itself went fairly well.