SQL old School

Those of us who use Rails and have access to its magnificent ORM often take for granted how much it gives us. This came up recently when I needed to find some duplicate entries using SQL queries. I’ve changed table names to keep things private but everything else is the same.

Continue reading »

Intro to DevOps

Update: I gave this talk at the DC Ruby Users Group and was asked which of the following solutions I chose and why. I chose Chef for provisioning and configuring servers mostly because I have friends in the Chef community but if I were to choose again, I would likely use Ansible as Chef is more power than I need since we only have three servers. I chose Capistrano for deployment because I’ve used it in the past and found it dead simple to use. I use Airbrake for errors (but am looking into bugsnag) and monitoring with New Relic. I don’t aggregate my logs or monitor my servers other than what New Relic and Airbrake give mostly because it didn’t make sense with the small architecture we have. End Update

Continue reading »

My Irssi Setup

I’m always surprised by my vim and emacs friends when they tell me they use an irc client like Textual. Don’t get me wrong, it is an amazing client but if you are a command line advocate I think you need to check out Irssi.

Continue reading »

Screen vs Tmux

I am a long time fan and user of GNU Screen and when I began pair-programming I found out that I had to use Tmux in order to pair program remotely (ie- via ssh) I was a little dismayed at this new barrier to entry, especially since I was still in my early development days. I did a little digging into screen and it turned out that sharing a screen session is just as easy as in tmux. Here is how you do it:

Continue reading »