Author Archives: Jeff

Mid-twenties

Congratulations! Welcome to your mid-twenties!

You now believe that your greatness is only limited by your own flawed being. For the next decade, your estimate of self-worth will oscillate between fraud and failure.

These feelings will continue until you realize that they are one of the common events of being a human being with the majority of its needs cared for. [...]

The First Commitment

In the past few months, I’ve allowed myself to slip. I haven’t been making many public commits, nor discussing much where others can see. It has me feeling like a bodybuilder who hasn’t touched a set of weights in the same amount of time. My work and my writing has atrophied. My ability [...]

rFeedParser on GitHub

Alright, it’s done. I’ve moved rFeedParser and rchardet to GitHub. Check out the rFeedParser and rchardet pages at GitHub and clone them with these URLs:

git://github.com/jmhodges/rfeedparser.git git://github.com/jmhodges/rchardet.git

rFeedParser, of course, is a Ruby translation of the Universal Feed Parser in Python and passes 98.8% of its 3000+ unit tests. rchardet is a Ruby translation of chardet [...]

Moving From Bzr to Git (or “Tailor is So Awesome I Cream My Pants”)

rFeedParser obviously has not gotten enough love from me. I intend to correct that.

The first order of business was to stop hosting its branches in bzr on this server. No one knew the repositories existed, they were sucking up tons of hard drive space, and, dammit, I’ve been digging git ever since [...]

Ruby and Rails Compete for Love

A thought: In the beginning, I wrote in Ruby because I liked using Ruby on Rails. But recently, I’m using Ruby on Rails because I like writing in Ruby.

I think it’s time to start looking at the options again.

Rob Pike Knows How To Scratch His Itches

Found in lex.c of squint, the Unix implementation of Newsqueak (referenced from Rob Pike’s bio):

if(fd<0 && s[0]!=’/’ && s[0]!=’.'){ sprint(buf, “/usr/rob/src/squint/include/%s”, s); fd=open(buf, 0); }

That’s an hilariously awesome way to personalize your tools.

While I’m on the topic, trying to google up a copy of squint (or any implementation of Newsqueak) [...]

Building CouchDb on Mac OS X

I, like Sam, *really* want to play with CouchDb. But I’m a MacOSX box that I barely understand after 3 months of ownership.

Install MacPorts and run:

sudo port install erlang icu subversion

Add these two lines to your .bash_profile (or .profile if you’re running tcsh).

export ERLANG_BIN_DIR=/opt/local/bin/ export ERLANG_INCLUDE_DIR=/opt/local/lib/erlang/usr/include/

Run those two commands in your current shell [...]

erl_interface is Deprecated and I Hate the Erlang Docs

I’ve been learning Erlang in fits and starts for a few months now, and trying to play with the C interface to it. Unfortunately, it wasn’t until tonight that I learned that the best documented interface, erl_interface, is deprecated in favor of ei. (That link is not all of the ei documentation. [...]

My First Earthquake

I just went through my first earthquake, a breezy 4.5 (initial estimate), and it wasn’t so bad. I’ve never really heard a description of a “light” earthquake and certainly did not expect what happened. Hell, it took me until after the worst of it to realize what it might have been and even [...]

OpenURI, Exceptions and HTTP Status Codes

If you’ve needed the numeric HTTP status code from a connection created with either open-uri’s or rest-open-uri’s open method, you’ve probably noticed that OpenURI::HTTPError is raised on any thing other than a 2xx or 1xx status code and that the docs don’t really lay out how to get to the status code in that error. [...]