Server Side Sorting in Ruby
Recently a friend asked me this question about server-side sorting in Rails. Here’s the question and my answer.
Keyword, Match, and Region in VimScript
After a recent talk I gave that included VimScript, an attendee asked a
question about the differences between keyword
, match
, and region
following syn
in a Vim syntax highlighting file. Here’s my answer.
From One End to the Other in Ruby
A while back I tackled the following programming challenge:
From One End to the Other: Find the smallest possible (positive) integer that ends in a six such that if that six is removed and placed in front of the remaining digits of the number, the resulting number will be four times as large as the original.
LED Clock in Ruby
A few weeks ago I built a program to display an LED clock. Here’s the problem, and my solution.
Round Robin Problem in Lua
A while ago, I solved the round robin following programming challenge in Lua. Here’s the problem, and my solution.
Vim Buffer Problem
A few weeks back I tackled the following programming challenge from my colleague Josh Branchaud:
Vim Buffer
I open up a new Vim buffer and type all the numbers 1 to 10,000, separated by spaces. Then, my cat walks on the keyboard and somehow activates a substitution command that replaces all the ‘0’ digits (zeros) with spaces. If I now sum up all the numbers in the buffer, as delineated by spaces, what is the total?
Reflecting on Three Years of Programming
This month marks three years since I started programming; I’d like to take a minute and reflect on this milestone.
Ceramic Nation
Project announcement! Last night I built a Markov Chain-generated novel, titled Ceramic Nation.
The N + 1 Problem
Recently, I was thinking about the N + 1 problem. N + 1 is a performance issue in a web application, where a method call unleashes a torrent of database queries.