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 [...]
Category Archives: code
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 [...]
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. [...]
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. [...]
How to Get Your Project Moving, or My Ego is Massive and You Should Listen to Me.
So someone asks how they should go about getting a group of people together to work on a software project. I, with a massive ego propped up by very little talent, ability or experience, decided to answer it. Many of these ideas have been said elsewhere in various forms, but this seems to be [...]
On rFeedParser
This post is huge but I have not the time to make it smaller. I’m so very tired.
A Quick Introduction
rFeedParser is a RSS/Atom feed parser. It is a translation of Mark Pilgrim’s feedparser from Python to Ruby. It behaves almost exactly the same and passes somewhere near 99% of the tests on a [...]