Xcode 4.6 and ruby-build
I’ve been having trouble compiling Ruby 1.9.3 since updating to Xcode 4.6. After a little Googling, it turns out that the error is with some invalid CFLAGS set in Ruby’s compile scripts.
The One Where I Got A New MacBook Pro
Today, I finally got a new MacBook Pro with Retina Display to replace my aging early-2009 model.
Running RSpec in Vim
Today, I finally got :make
working for RSpec files in Vim.
Running Vim commands from stdin
Vim has a handy feature that allows you to run commands from a file when you open a new session.
Fun With Jekyll Posts and Vim Macros
Yesterday, I decided I wanted to edit a bunch of Jekyll posts. Specifically,
I wanted to move the title
field in each post’s YAML front matter to the
bottom. Instead of having to manually edit a few hundred files, I finally
remembered to use Vim macros.
All programming languages need a REPL
My girlfriend has recently begun learning Java for college. The shittyness of Java aside, I’ve realized that its lack of a REPL makes it much harder to play around with its features.
NiGHTS into dreams on PSN
Today, Sega re-released one of my favorite childhood games from Sega Saturn: NiGHTS into DREAMS….
Validating Serialized Attributes in Rails
ActiveRecord provides a serialize
method, which can be used to transparently
store a Hash, etc in a single database column.
Restoring files from OS X Time Machine with Terminal.app
I use Time Machine on OS X to keep backups of my hard drive. Overall it is a great program. However, restoring files can be a slow and cumbersome process.
Credit Card Number Generator
I was sent this Credit Card Number Generator the other day. It has fake numbers to test a variety of cards with, and explains how the numbers are validated.