January 2012
1 post
Faster TDD feedback with tmux, tslime.vim, and...
tl;dr Developing in a tmux session has sped up my TDD cycle
considerably, especially with the help of tslime.vim and turbux.vim. I
get immediate feedback in one pane, but never have to leave vim or lose
context of what I’m working on to see the test result.
Taking a cue from Xavier Shay’s excellent intro to tmux, I’ve
been using tmux lately as my primary workspace. There are...
December 2011
1 post
My Top 10 Albums of 2011
This year, it was very hard to pick the top 10 albums, as there seemed to be a ton of good music that came out this year. As much as I listened to new albums, the ones that follow are those that rose to the top:
Bon Iver - Bon Iver
M83 - Hurry Up, We’re Dreaming
Cut Copy - Zonoscope
Wye Oak - Civilian
James Blake - James Blake
Real Estate - Days
Cults - Cults
Fleet Foxes -...
October 2011
1 post
zsh completion for hitch
At hashrocket, we use hitch to manage our paired git authors, written by our own Rogelio Samour.
Hitch works by setting the GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL environment variables. For the email itself, it joins the hitched author’s github usernames and a prefix with a “+”, creating email addresses of the form “dev+jgdavey+therubymug@hashrocket.com”. Using it is...
June 2011
1 post
QR Codes in Ruby
QR codes seem to be everywhere these days. I’ve seen them in
advertisements on the train, on the back of magazines, and, most
recently, on someone’s wedding invitation. A lot of folks are using
QR codes as a quick way to share URLs. But that’s not all that they
are good for. We recently had a client that needed to authorize paper
tickets, and a QR-encoded token turned out to be a...
December 2010
2 posts
My Top 10 Albums of 2010
Listened to these a lot this year. Will definitely be listening to more of them:
The National - High Violet
Mumford & Sons - Sigh No More
Broken Bells - Broken Bells
Vampire Weekend - Contra
The Tallest Man on Earth - The Wild Hunt
Beach House - Teen Dream
Yeasayer - Odd Blood
Broken Social Scene - Forgiveness Rock Record
Jonsi - Go
Sharon Jones & The Dap Kings - I Learned the...
In music, 150 beats per minute is considered “Allegro”. In a womb,...
November 2010
1 post
VIM script to toggle do/end and brackets
This is still rough, but I’m finding it quite useful:
I’ve converted this to a full-blown VIM plugin: http://github.com/jgdavey/vim-blockle
September 2010
1 post
Self-description →
August 2010
3 posts
rvm update --head && rvm reload && rvm install 1.9.2 &&...
– wayneeseguin
Rails migrations - Checking the existence of a...
Recently, I had to drop a table because I no longer needed the model at all. However, working on a distributed team, there were other folks with varying levels of “migration” status for their databases. A first migration to drop the table would be simply the following:
However, I also wanted to get rid of the original migration file that created the file to begin with, since it was...
I was told there would be cake.