Month: September 2013

SpotCmd – launching Terminal commands from Mac OS X Spotlight

If you craved for launching Terminal commands from your Spotlight search window, today is your lucky day. I also had that wish and dedicated my whole Sunday to master the arcanes of mach_inject, taskgated, self-signed certificates, Hopper disassembler, class-dump, security add-trusted-cert, macinstallerapp, etc. etc. in order to deliver you this […]

Numerical string sorting in Clojure

Time for a bit of functional programming nostalgia. As Wikipedia mentions – http://en.wikipedia.org/wiki/Collation#Issues_with_numbers and hundreds of posts from interested people all over the Internet confirm – it is sometimes useful to have strings sorted using their numerical components. The simple algorithm below handles this task as it seems most reasonable […]