Vegetarian Food in Boston

Vegetarians and vegans traveling to Boston, get your food on.

I lived in Boston for years and I used to maintain a list of vegetarian restaurants and markets on this site. The information is very dated now so I got rid of the page. There’s no void to fill, though, since you can always check out bexx’s veganboston.com and its myspace group, which are way more informative than what I ever had. In any case, here’s a more narrative summary of the lists that I used to have here, for posterity’s sake. I’m guessing it’d work best as something that you print out and read on an airplane or bus. Continue reading “Vegetarian Food in Boston”

Repacking a Renegade Exhaust

Renegade exhausts are awesome. You should own one. The people who make them are the best. But, actually, this page is for people who already own Renegade exhausts and are wondering what’s involved in replacing its wool packing. I think you’re supposed to change the wool every 4,000 miles if you have a carbon fiber muffler or every 5,000 miles if it’s made of some kind of metal.

Continue reading “Repacking a Renegade Exhaust”

Creating a 1px GIF with Perl

Ever wanted to create a 1 pixel transparent GIF with Perl? Me neither, but this is still neat to have in the toolbox.

My buddy Adam mentioned this at some point and although I’ve never had to use it and probably won’t ever, I thought it was kind of neat. (Obviously you don’t have to break up the string and concatenate it with periods – I just did that so it wouldn’t break weird on this page.) print "Content-type: image/gif\n\n"; my $pixelImg = 'GIF89a'.pack('H', '0100010080ff00c0c0' . 'c000000021f9040100' . '0000002c0000000001' . '0001000002024401003b');

Going from Perl to php

I wrote this cross-reference a while back for people who know how to program using Perl and are looking for some of the familiar Perl functions in the php language. When I originally write it, we were stuck with php 3 so I just reworked the list to include some of the functions that were missing back then. There are obviously more differences between the two languages than the function-to-function cross-referencing that’s listed here but generally, it’s shouldn’t be a hard transition. Continue reading “Going from Perl to php”

Extracting data from MS Access files on MacOS X

The only real way that I’ve found to extract data from an MS Access .mdb file on MacOS X is to use mdbtools. If you aren’t familiar with the unix underpinnings of MacOS X, this information might be too much for you. Otherwise, this is a step-by-step list of what I had to do to get mdbtools to compile and get useful data from a .mdb

The only real way that I’ve found to extract data from an MS Access .mdb file on MacOS X is to use mdbtools. If you aren’t familiar with the unix underpinnings of MacOS X, this information might be too much for you. Otherwise, here’s a list of what I had to do to get mdbtools to compile. Continue reading “Extracting data from MS Access files on MacOS X”

Compressing URLs to make them shorter

This one time, I thought maybe I’d try compressing URLs to make the query strings shorter.

At some point, I thought I might try to compress long URLs to make them shorter. Like if you had a web application that used very long query strings, you could turn the list of name=value pairs into one compressed string that you’d then pass as PATH data. Ie: a URL like http://yoursite.com/scriptname?name=value would become http://yoursite.com/scriptname/compressed_string Continue reading “Compressing URLs to make them shorter”

Creating a SELECT list of states with php

I’m posting this short chunk of php code that might save you a few minutes. It creates a list of US states in an HTML or XHTML SELECT list. Download the zip file here.

This is nothing big, but it might save someone 20 minutes worth of work. Basically, if you want to create a drop down list of US states using php you can include this code. Download the source here: states.zip (1.2K)

Here are a couple of examples of what this code does:


That’s all it does.