KBD

Keith Devens .com

Sunday, March 21, 2010 Flag waving
Men never do evil so completely and cheerfully as when they do it from religious conviction. – Blaise Pascal (attributed)

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 →
March 2010
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28293031 



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

Recent comments XML

new⇒Spider solitaire

I to am somewhat addicted to​spending too much time on SS.  I​have been stu...

stupid_horse: Mar 20, 10:34pm

I hate ASP.NET

I hate ASP... I was doing wonders​with PHP, then suddenly one of my​clients...

Johnies: Mar 17, 6:14am

Quantum physics and free will

I knew you were going to say that....

Tom Massey: Mar 15, 9:26pm

Generated in about 0.052s.

(Used 7 db queries)