Posts tagged: TOOLS

A weather site in six (declarative) lines

For several years I maintained a hodge-podge of little web-based utilities at toolbot.com. Recently I decided to wipe the slate clean, bringing things back selectively. One of the few that I missed personally was my weather site. It returned National Weather Service forecasts in response to compact URLs of the form weather.toolbot.com/05667, for any five-digit US zipcode.

Originally, the site worked by scraping plaintext forecast files on the NWS servers. Eventually those went away; I looked at and gave up on the arcane (to me) SOAP interface that superseded them. All I wanted was a damn weather forecast, without ads, via an easy-to-type-no-matter-where-I-am URL.

Free to be, you and wmii

During a quest for things that might make using my spare laptop – an old 800MHz, 256MB thing running Ubuntu – a more zippy experience, I came across “wmii”. It’s a lightweight tiling window manager with a lot of auto-sizing and keyboard control features. I’m really liking it. This laptop has never felt so responsive.

Other similar tools include dwm, xmonad, Ion, and ratpoison. Of the lot I’ve only tried dwm, which was cool but a little too minimal (its customization method, by design, is edit-source-and-recompile). I’m looking forward to trying xmonad once a package makes it into the Ubuntu repositories.

Bicycle Repair Man bundle for TextMate

Look! For a long time I’ve wanted to try working with Bicycle Repair Man, the Python refactoring tool. Unfortunately, the fact that it had neither documentation nor integration with my favorite editor kept pushing it to the back burner.

About a month ago I was excited to come across a post from a guy named David Coffin who had created a BRM integration script for TextMate. I hooked it up per his instructions, and with a little fiddling I got it working. The first thing I tried was the Extract Method or Function command. I had code something like this (structurally, I mean):