Cropping a bunch of pictures to the same dimensions

Ah, command line tools, they’re so fast. And so easy to use on a Mac. Given a bunch of image files in the same dimensions, that you want to crop to a fixed portion of the image: 1) Install imagemagick brew install imagemagick 2) put all the images in a directory by themselves, and cd … Read moreCropping a bunch of pictures to the same dimensions

Fun with Optional Typing: narrowing errors

After moving from Scala to Clojure, I miss the types. Lately I’ve been playing with Prismatic Schema, a sort of optional typing mechanism for Clojure. It has some surprising benefits, even over Scala’s typing sometimes. I plan some posts about interesting ones of those, but first a more ordinary use of types: locating errors. Today … Read moreFun with Optional Typing: narrowing errors

Special Snowflakes

Right now at work I’m suffering from a QA environment that has been around too long. It runs out of space sometimes, rabbit gets hiccupy. Elasticsearch mappings are bad; we’ve updated the creation scripts, but these boxes have been provisioned since before then. If we regularly discarded our QA environments and spun up new ones, … Read moreSpecial Snowflakes