I’ve written a couple of functions for Emacs’ ledger-mode that make working with receipts a bit easier. With the cursor on a transaction, calling alex/ledger-attach-receipt will prompt for a file. This function copies the file to a receipts directory, renaming it to its hash and sorting it in subdirectories according to the transaction’s year and month1. Finally, the function adds a comment to the transaction with the hash of the file. The function alex/ledger-open-attached-receipt reads this comment and opens the associated file in Emacs. The receipts folder can be customised through the variable alex/ledger-receipt-folder.
I’m a pretty big fan of Ledger, a command line accounting system based on the double entry bookkeeping system. One of its strengths lies in the fact that the journal file that contains your transactions is a plain text file. This makes it super easy to sync the journal using your favourite file syncing service. Of course, before putting the journal file on a remote server, you’ll probably want to encrypt it. Ledger program doesn’t support encrypted journal files but, using GPG and a shell alias, you can get the vast majority of Ledger’s functionality to work with an encrypted journal.
After sitting on the project for a few months, I’ve just released the next version of Spotijack on GitHub, as well as the application’s source code. This is the first public version of Spotijack because I’ve spent a while contemplating whether the project is OK to release.
Spotijack is a utility for the Mac that automates the process of recording music playing in Spotify with Audio Hijack Pro. Whenever the song changes in Spotify, Spotijack tells Audio Hijack Pro to split the recording and update the new recording’s metadata. Obviously the program enables piracy which I do not support, and this is why I’ve sat on it for so long.
Oh, and make sure your stuff is on a surge protector.
Normally I’m a stickler when it comes to electrical safety, probably because my Granddad was an electrician and taught me about it. The other night though, in a lapse of consciousness, I plugged my laptop’s charger into a power strip that was still switched on at the mains. Or, should I say, started to plug in the charger because as the plug went in, the air between it and the power strip ignited in a decent explosion.
Besides the project page, I haven’t written about julius on this blog before so here’s a quick overview. julius is a stupidly simple command line tool for encrypting and decrypting text using the Caesar Cipher. It’s designed to play nicely with Unix redirections so you can use it to easily encrypt/decrypt the output of commands.