2011.04.21 10:23:19 p.m.
better than grep Tags: unix

If you are a unix geek and search through large directories of text files (e.g. code), then ack is a pretty amazing replacement for grep.

Just thought I would pass that along.

2010.10.06 09:56:34 p.m.
Elicit 2.1.0 Released Tags: elicit

I have released a new version of Elicit (a screen magnifier / color selector).

After getting some feedback from a few users, I decided to change how actions are initiated. In prior versions, to start zooming, you would click on the magnifier region and drag to the area you want to zoom in on. Likewise, to select a color, you dragged on the color palette. This is a bit unintuitive and not easily discoverable. So, I have added two buttons that you simply click (and release) to start zooming (or selecting colors). This freed up left mouse drags on the magnifier / swatch, so these now perform drag and drop.

I have also added a small script called elicit_remote that uses dbus to communicate with Elicit. You can use this to bind global key combinations to elicit actions. For example, I have the Search button at the top of my keyboard bound to run elicit_remote Magnify, If elicit is not currently running, it will launch and begin magnifying.

2010.06.19 11:40:22 p.m.
Converted Suitcase UV Lamp Tags: projects
/static/photos/sunlamp/thumb/sunlamp_00.jpg

Last weekend Suzanne came home from an antique store in Fremont and plopped an old beat up suitcase in front of me. The suitcase contained a vintage ultra violet lamp on a hinged armature. The lamp was manufactured by Mastercraft Mfg. Industries in Chicago under the brand name Graham-Walker. Despite living in Seattle, we weren't really in the market for a UV lamp. However, a few months ago we had come across some reproduction early 1900's bulbs at Great Stuff down in Georgetown. The bulbs are clear glass and run at a lower wattage so the filament can be seen. The filaments come in a variety of patterns, with our favorite being the squirrel-cage design. We both agreed that this lamp would be perfect for one of those.

/static/photos/sunlamp/thumb/sunlamp_01.jpg

The UV bulb socket is slightly larger than the standard bulb size, so it would need to be replaced. The cord from the bulb to the switch box had cracked insulation that was entirely missing in some places, so I wasn't about to turn it on before rewiring it. The circuitry is pretty simple with just a switch and a large transformer to step up to the higher voltage needed to run the UV bulb.

I replaced the damaged wiring and finally got to test it out. The transformer had a nice loud hum and the UV bulb was too bright to look at after a few seconds. Since I couldn't really get to the transformer to check it out in depth, I shut the lamp off and got to work replacing the bulb socket and removing the transformer from the circuit.

/static/photos/sunlamp/thumb/sunlamp_09.jpg

Unfortunately, everywhere I could think of that would sell reproduction bulbs in Seattle seemed to be out of stock. I didn't want to pay for shipping since the bulbs are expensive enough to begin with. Finally, this weekend I managed to get my hands on the last FerroWatt squirrel-cage bulb in stock at Rejuvenation (which has a beautiful storefront south of downtown). We brought it home and plugged it in. It was a bit bright (they only had the 60W model), so we plugged the lamp into a dimmer switch to bring it down a bit. The result was exactly what we had in mind from the start.

I haven't been able to find much information online about the lamp. A search on the model number yielded a Danish collector with a somewhat disturbingly large collection of vintage IR and UV lamps, including an identical model. The original bulb is a 100W General Electric Mazda S-4, which according to a spec sheet at Lamptech, was (first?) manufactured in late 1940. The only similar style lamp I've come across is a Hanovia Alpine Travel Sun Lamp for sale on Amazon. The seller lists it as 1940s. The two have identical on/off switches, so the Graham-Walker is probably from the 1940s as well.

I have some more pictures up in a photo gallery.

2010.05.25 07:11:24 p.m.
Removing applications from Ubuntu's Messaging Menu Tags: ubuntu

If you use Ubuntu and don't use the default mail program, Evolution, you can remove it from the Messaging Menu by running the following command:

$ cp /usr/share/indicators/messages/applications/evolution \
   ~/.config/indicators/messages/applications-blacklist

You can also add custom applications by creating a file in ~/.config/indicators/messages/applications that contains the full path the the .desktop file to load.

Also, if you use Thunderbird, and want some rudimentary support for the messaging indicators, I put up some code at github for an extension. Just run ./build.sh and install the .xpi file from Thunderbird's Add-ons dialog.

The extension is based an an earlier one available on lunchpad.

2010.05.16 05:08:10 p.m.
More photos Tags: photos, physics

I added several more galleries recently.

Two (Chicago and Argonne) are from a recent trip out to the Advanced Photon Source to do take some RIXS measurements of depleted Uranium compounds. I had one free day while out there to wander around downtown Chicago and explore the amazing architecture.

The next is a set of photos from the town my father grew up in, Columbus, TX, followed up by some photos from a trip out to Vashon Island, WA.

The last new gallery is of some origami I found while cleaning out one of the remaining boxes from my last move (plus a few that I've made since).