Sporkmonger

purveyor of fabulously ambiguous eating utensils

Relaunched, Realigned

Posted by sporkmonger
Written April 2nd, 2007

If you can see this, apparently everything is working.

Update:

Ok, so there were some bugs. Incorrect permissions and such, not-quite-right Apache settings. But it’s likely to be more functional now.

After several weeks of work on the site, I’ve finally gotten everything moved off Typo, redesigned, and generally just looking a thousand times better than before. I also hosed out all of the accumulated spam. It wasn’t easy.

At Aristotle’s request, I made sure to modify the Typo conversion script (as well as Mephisto itself) to allow the feed entry GUIDs to remain the same. I wasn’t particularly pleased to discover that Mephisto doesn’t actually store its entry GUIDs in the database—it generates them each time the feed is requested, which in my humble opinion is a terrible idea, since the information it uses to generate the IDs might change. The change I made added a “guid” column to the database and uses UUIDTools to generate unique ids instead.

I also deleted a bunch of entries that I no longer felt were relevant to the site. I know a lot of people in the pro-standards crowd don’t like it when people do this, but I did anyways. I also tried to set up redirects for all of the old resources to the equivalent URIs in Mephisto, but I’m sure I missed a couple. If you bump into a 404 that you think is a mistake on my part, I’ll try to get it fixed as quickly as possible.

In addition to the switch to Mephisto, obviously I also took the time to redesign the site. I figured I should construct the design entirely from scratch this time instead of simply altering the default Typo theme. I gotta say, I really, really, really like the new look. I haven’t bothered testing and seeing how it looks in Internet Explorer. I really just don’t care that much about IE anymore. But I didn’t do anything particularly tricky with the design either, so it’ll probably look mostly OK. If you’re reading this in IE, stop, go install some other browser (preferably Firefox), and then come back. Web developers everywhere will thank you for it. And you’ll feel better about yourself. I promise.

I released a new library the other day called Squish. Admittedly, in its current state, it’s really effectively useless. I’ve never been particularly good at optimizing for performance, and while I did manage to improve the speed of the library (with the help of people in #ruby-lang) by at least an order of magnitude, it’s still way too slow to be useful. In retrospect, I’m not really sure why I even tried to write it in Ruby—I really should have known that a compression-based text classifier would need to be written in C. But hey, at least I know the basic idea works now.

Oh, and you may also notice that the site is faster and less error-prone now. You can thank Slicehost for that. I can’t recommend them highly enough if you’re in the market for a Rails-friendly VPS host.

Blog Migration

Posted by sporkmonger
Written January 12th, 2007

Alright, that’s it. I’ve had it. Just got hit with another hundred or so spammy trackbacks.

I’m sick of Typo. Too much trackback spam, and no good way of defeating it with Typo. Typo doesn’t even let you disable trackbacks. It has an option for disabling it, but it doesn’t seem to actually do anything. Plus regular expressions and simple string blacklists that don’t match against the poster’s name, email address, or uri simply aren’t enough. It’s time to migrate to Mephisto. I’d been planning on sticking with Typo until GentleCMS was done and then rolling my own setup, but this is much too frustrating. So yeah, I’m starting the work required to switch over as of right now. Might take me a couple days because I have customizations to the Typo codebase, but if you have trouble leaving comments or if the site goes down entirely, you’ve probably just caught me in the middle of trying something. And apologies if any comments get lost in the fray.

I’ll probably end up implementing something similar to what Sam Ruby has going because a) it’s simple and b) seems to work.

Update: Now that I think about it, I might “reboot” the design while I’m at it. I found my missing spork the other day, so it’ll likely make a reappearance in the header image for the new design.

Update: It’s going to take longer than I thought to get the blog migrated. In the meantime, I’ve rather forcibly mangled Typo’s trackback support by rerouting trackbacks to the homepage. Didn’t feel like wading through Typo’s code when a one line patch to routes.rb would work. I’ll get everything working again later. The blog conversion has been largely delayed by TextDrive not answering support requests (grr) and by myself being preoccupied with work for a client. Some cool stuff that I can’t wait to show off.