i shot an arrow into the air

My bookmarks file has 4539 entries, most of which I intend to look at “someday”. So I’ve written a little utility (two lines of code, plus scaffolding) that other Unix users may find useful, provided that your favorite browser keeps bookmarks in a textfile (as the Mozilla family does). Once an hour it picks a bookmark at random and opens it in my default browser. My crontab contains this entry:

01 * * * * sh ~anton/bin/bookcron

meaning: at :01 of every hour, run the following shell script:

cd ~anton
cat Library/App*/Firefox/Profiles/*/bookmarks.html | grep -o “http[^\”]*” | python bcp

which extracts any links from any bookmarks files and feeds them to this Python program:

import os
import sys
import random
os.system(“open %s” % random.choice(sys.stdin.readlines()).replace(‘&’,’\\&’) )

The function random.choice picks a random entry from the list. The command open does the right thing on MacOS X, but for other Unices you’ll probably need to replace it with the browser name. The replace() prevents silly things that would otherwise happen when a shell command contains an ampersand.

Posted in neep-neep | 4 Comments

marks on paper

Time to buy a printer, preferably cheap; most likely an Epson or HP all-in-one. Any advice is welcome.

Wednesday: I popped out to Circuit City and bought the cheapest printer-scanner, which happened to be HP’s PSC1400. I had acquired a bit of a bias against Epson anyway because their website seems not to know that Macs exist.

Posted in me!me!me!, neep-neep | Leave a comment

bitterness[nwhine++]

I resent Halloween: it’s so close to my birthday that I long ago gave up trying to compete with all the parties going on then.

I don’t announce my exact birthdate; that way I tell myself I’ll be less disappointed when no one remembers it. It doesn’t work, really. I’m not fond of cake; I’m tempted to throw things if someone threatens to sing at me – but I do wish someone other than immediate family would give me a drink and a kiss. It’s worse than average this year because I’m between jobs and therefore there’s little to distract me from my solitude.

That said, my stepsiblings have invited me to get drunk this evening (which is not necessarily the nominal date of this post), and I think I’ll take them up on it.

Posted in bitterness | 3 Comments

the title of this post, containing a joke that I’ve made before

If you haven’t already, go here and listen to “Title of the Song” (MP3), a spoof on the “boy band” genre.

Posted in music+verse | 3 Comments

BrowncoatBlogging

Unqualified Offerings cites numerous comments on Serenity, which I’ll read later.

Posted in blogdom, cinema | Leave a comment

Salivili hipput tupput täppyt äppyt tipput hilijalleen

An unexpected effect of listening to music through my computer’s speakers is a better stereo image than I’m used to. That’s how I noticed for the first time that Loituma’s joyously goofy song Ievan polkka has four vocal parts, not three: the female lead and the male accompaniment are in the center, with two female voices, singing almost but not quite the same part, in the wings. (Maybe it’s one woman singing the same part twice but adlibbing.)

If any of you understand Finnish, by the way, I’d love to have a transcription and a translation.

Posted in music+verse, neep-neep | 5 Comments

what’s so good about it

Orson Scott Card reviews Serenity

Posted in cinema | Leave a comment