How to add High Voltage static pages to your sitemap file

High Voltage is a fantastic gem for adding static pages to your Rails app. I’m using it extensively on a project that has a large number of static, style-heavy pages that don’t make sense to serve from the database.

The other day my client asked me...

Read more…

Posted March 11, 2015 at 5:45 pm

Losing my place

I really love kottke.org. It’s one of the few blogs I still personally visit, rather than consuming via RSS. For reasons I can’t quite explain (maybe nostalgia for the old days of blogging? maybe experiencing the work as a creator intended it?), I...

Read more…

Posted February 23, 2015 at 2:42 pm

Active Record enum form select

I’ve been enjoying the new Active Record enums in Rails 4.1. But I haven’t found a nice way to represent the enum options in a form select. So, I wrote a couple small helper methods that I put in application_helper.rb:

def options_from_enum_for_select...

Read more…

Posted February 12, 2015 at 1:38 pm

The Future of the Web (According to Google)

It’s clear that Google cares deeply about improving the mobile web experience. Personally, I tend to believe that the native app pendulum has swung out about as far as it can, and in the next few years we’ll start seeing it swing back toward web tech...

Read more…

Posted November 22, 2014 at 11:07 am

How to reward skilled coders with something other than people management

Innovation happens when you have the bandwidth to hold the entire problem in your head- most of the time that takes a great deal of “load time” - research and contemplation about the problem. For introverts this means quiet, for extroverts this means...

Read more…

Posted November 21, 2014 at 9:19 am

Interview of Kevin Kelly

This 3-part interview of Kevin Kelly by Tim Ferriss is wonderful.

Read more…

Posted September 17, 2014 at 5:14 pm

Get a word count from your Rails app views

I needed a way to calculate the number of words in a Rails application’s views, to estimate the cost of translating the content to another language.

Pass this script the path to your views directory (or a subdirectory) to get a word count.

#!/usr...

Read more…

Posted September 9, 2014 at 2:17 pm

A Tumblr Theme Development Workflow

This site has been running on Tumblr for a while now and, while I love using Tumblr for posting content, I’ve found theme development to be frustrating and tedious, particularly with trying to manage asset files.

I’m used to single-command site deployment...

Read more…

Posted September 5, 2014 at 12:15 am

How to Be Polite

Great post on why politeness matters:

Sometimes I’ll get a call or email from someone five years after the last contact and I’ll think, oh right, I hated that person. But they would never have known, of course. Let’s see if I still hate them. Very...

Read more…

Posted August 14, 2014 at 2:45 pm

Simple Site-wide Announcements in Rails

I recently needed the ability to post site-wide announcements on a multi-tenant Rails application I work on, to announce scheduled downtime. Most solutions I’ve seen call for the creation of an announcements model and database table. It seemed a bit...

Read more…

Posted July 19, 2014 at 10:19 pm