April 27, 2013 calebjthompson git gh-pages github orphans It’s for the orphans! Too often, I come across GitHub Pages branches (gh-pages ) branches that are simply forks from the master branch of the repository. This is not ideal. There are several problems with this strategy: Unless ...

The first line should always be 50 characters or less and that it should be followed by a blank line. Vim ships with syntax, indent, and filetype plugins for Git commits which can help here. Add this line to your .vimrc to add spell checking and automatic wrapping at the recommended 7...

April 25, 2013 hrward redis autocompletion search Redis partial word match — you (auto)complete me We can use partial word matching to rapidly search strings of text such as Names, Cities, States, etc. We can do this by indexing strings into Redis sets based on partial matches of the ...

Related:

September 29, 2011 gabebw vim self-vimprovement Movin’ and Shakin’ Time for some self-VIMprovement! As you might know, the thoughtbot crew uses Vim a lot (one , two , and three ). I sit next to Ben and Mike , two great Vim users, and I learned a lot just from being around them. I’ve s...

Episode 45: Tiny Robots Cuddling with other Tiny Robots In this week’s podcast we try something a little different. Joe Ferris, Matt Jankowski, Ben Orenstein, and Chad Pytel get together and have a little fun, in what we’re calling “Tiny Robots cuddling with other Tiny Robots”. We’d l...

January 9, 2013 dancroak dns unix http Foreman as process manager, Pow as DNS server and HTTP proxy Web app development/production parity can be improved by defining process types in a manifest named Procfile such as this one for a Rails app: web: bundle exec rails server thin -p $POR...

April 18, 2013 adarshp vim self-vimprovement splits vimrc Vim Splits - Move Faster and More Naturally Most of us are Vim users and have tweaked our favorite editor for speed and convenience. See thoughtbot’s dotfiles . One of my favorite tools is the window split. Here is a quick spli...

Related:

April 18, 2013 adarshp vim self-vimprovement splits vimrc Vim Splits - Move Faster and More Naturally Most of us are Vim users and have tweaked our favorite editor for speed and convenience. See thoughtbot’s dotfiles . One of my favorite tools is the window split. Here is a quick spli...

Related:

Bugs: as previously mentioned, there are bugs in htmlunit, specifically with jQuery’s live. Although all browser implementations have bugs, it’s more useful if tests experience the same bugs as actual browsers. Compatibility: htmlunit doesn’t fully implement the feature set that moder...

April 16, 2013 dancroak heroku playbook Online presentation with thoughtbot and Heroku Adarsh , Alex , and I are giving a free online presentation with Abe from Heroku about how their platform fits into our process. Over 1,400 people have registered so far! The details: Tomorrow, Apri...

Related:

In this week’s podcast, Ben Orenstein is joined by Chad Fowler, author, speaker, and CTO of 6wunderkinder. Ben and Chad discuss Chad’s recent move to Berlin and 6wunderkinder, what a CTO does, getting back to coding, the early Ruby community, who Chad wants to hire, predicting success...

August 2, 2011 dancroak apache bench dynos heroku performance load testing 7 minute ab: impatient man’s load tests for a Heroku app We’ve been working with a client who recently launched a new service. The launch entailed their marketing team sending batches of emails to a 1 million+ ...

Related:

April 6, 2013 lailawinner rvm rbenv ruby Using rbenv to manage rubies and gems We recently switched from RVM to rbenv for managing Ruby versions. > “Make each program do one thing well.” - Tenet #2 of The UNIX Philosophy Why consider switching to rbenv? The UNIX philosophy espouses an...

The new design includes a new layout, which is much more appropriate for a book. We updated the typeface and font size to improve the experience when reading the book on a screen as opposed to a printed page. The margin size is also greatly reduced, making it easier to zoom in on a la...

thoughtbot’s Ben Orenstein is joined by Scott Orn, venture capitalist at Lighthouse Capital Partners by day, and co-founder of Ben’s Friends by night. Ben and Scott discuss building a community, the future of Ben’s Friends, and how running the site helps him be a better VC, teaching p...

July 28, 2009 dancroak anti-pattern testing Mystery Guest The xUnit Test Patterns: Refactoring Test Code book has an ASTOUNDING amount of testing knowledge. The patterns are also at xunitpatterns.com . Here’s an example. You’re having trouble understanding the behavior a test is verif...

April 7, 2013 dancroak vim style guide Wrap existing text at 80 characters in vim You have an existing block of text or code in vim. You want to re-format it to wrap to 80-characters. :set textwidth=80 You might want this setting to apply automatically within certain file types like M...

April 5, 2013 jyurek ruby debugging unix processes Using GDB to inspect a running Ruby process This job shouldn’t be taking this long! That’s not a great thing to have to say, is it? However, I bet you’ve said it before and may not have immediately know why. With liberal use of puts a...