KBD

Keith Devens .com

Saturday, November 22, 2008 Flag waving
All I want is to have my peace of mind. – Boston (Peace of Mind)

Archive: January 11, 2006

← January 10, 2006January 12, 2006 →

Daily link icon Wednesday, January 11, 2006

  1. Power Line: Meanwhile, There's A War On. Interesting news I hadn't heard about a story the American media seems to have pretty much covered up almost universally chosen to ignore.

       (4) Tags: [Opinions/Politics]

MozillaZine: Thunderbird 1.5 Released

MozillaZine: Thunderbird 1.5 Released. Excellent. Here are the release notes. My favorite feature is probably "Sort address autocomplete results by how often you send e-mail to each recipient", which is such an obvious feature. I've wanted that for a long time.

Update: Crap, you can't upgrade over an existing install.

Update: They should have built-in something like Quick File. Actually, I just realized that the current version of Quick File doesn't run on 1.5 yet.

Short programming problem

Here's a short programming problem: Given a list of tokens, generate a minimal regular expression that matches those (and only those) tokens. So, given ['one','two','three','four','five','twenty','tween'], the regular expression would be "f(ive|our)|one|t(hree|w(e(en|nty)|o))". I've shown it sorted, but it doesn't have to be. Also, don't worry about a '|'.

Now, an interesting problem would be how to generate a provably minimal regular expression... maybe there's already an algorithm I don't know about that does that. But all I'm trying to do here is prefix stemming.

I'll probably post some Python code later that solves the problem -- I'm just about finished writing it, but won't get to finish tonight. I'm most interested in your approaches. Who wants to try? Smiley

(I'd love to see a solution in K.)

  1. Power Line: Two thoughts on Judge Alito:

    Having listened to Judge Alito over the past two days, I have two thoughts.

    In the past, I have thought that the standard of the "best-qualified person" for the Supreme Court was mythical. Taking the evidence of his qualities and experience on display in the hearings, however, Judge Alito may in fact be the best-qualified man in the country for the job. His mastery of Supreme Court precedent, for example, is awesome.

    Wow.

    Also see John's post, Alito Denounces Reliance on Foreign Law.

       (0) Tags: [Opinions/Politics]
← January 10, 2006January 12, 2006 →
November 2008
SunMonTueWedThuFriSat
 1
2345678
9101112131415
16171819202122
23242526272829
30 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 5 posts

Recent comments XML

new⇒Ubuntu Nvidia install not working for me... could use a hand

Cant change xorg.conf!

I'm not​the owner of it, don't ask me​why
but it...

I)orogon: Nov 22, 5:41am

Calif. Supreme Court to take up gay marriage ban

I would argue the point is not​definitional.  While the word​marriage is su...

Justin: Nov 20, 4:37pm

Java join function

Meh, don't have null strings in​your string arrays imo, but you're​welcome ...

Keith: Nov 19, 7:51pm

Girls, please don't get breast implants

sorry but another thing i have to​make a comment on about you​men...the men...

happynow: Nov 17, 11:36pm

Books by Vincent Cheung

to all Cheung​fans:

read:

http://www.progin​osko.com/aquascum/cheung.h...

Zamir: Nov 16, 9:07am

Generated in about 0.051s.

(Used 7 db queries)

mobile phone