KBD

Keith Devens .com

Friday, July 4, 2008 Flag waving
Men never do evil so completely and cheerfully as when they do it from religious conviction. – Blaise Pascal (attributed)

Archive: January 06, 2004

← January 05, 2004January 07, 2004 →

Daily link icon Tuesday, January 6, 2004

Arnold leads the way

"Never again will government be allowed to spend money it doesn't have." (I don't have a permanent link yet)

It'd be nice if all of government was like that. Way to go Arnold for showing the way. Now let's see if he actually does it.

And the Washington Post, biased as usual, has the headline: Schwarzenegger Seeks to Raise Debt.

And in other news, Dennis Kucinich, always good for a laugh, shows a pie chart on radio.

Sapience: Human Validation

Via muxway, Sapience is a web service you can use over XML-RPC to create those Turing-test images with text in them. Very neat.

Lightweight scripting/extension languages

Slashdot: Lightweight Scripting/Extension Languages. Great place to mine for languages you've never heard of before.

For instance, while I've heard of ICI, Lua, IO, etc., I'd never heard of Nasal, paxScript, Ch, or Cint before.

There was also a recent discussion on Advogato along the same lines.

Interviews with Matz and Ward

Bill Venners' Artima newsletter just got sent out today, and I just finished reading the three pieces of his interviews with Ward Cunningham and Yukihiro Matsumoto.

They're all well worth a read:

Read the Bible in a year

I had planned to try this last year, but it was a no go. I just noticed that Oliver linked to the Amazing Facts Bible Reading Plan (PDF), which is nice because it gives you checkboxes to check off what you've read, it comes in a nice, easily printable format, and it has you read from four different parts of the Bible every day, so you won't get bogged down in some of the slower parts. Smiley You get to read from the Gospels and the Psalms or Proverbs every day, and the rest brings you through the rest of the Old and New Testaments.

Regular expression tools

Regular Expressions tools:

(first three via Kayode, via Show Us Your <Regex>)

Update (Jan 14): Updated list can be found at http://keithdevens.com/wiki/Regular+expressions

Possible permalinks

I think weblog URLs should all have a date and a slug to identify their content. For instance, the URL for this post is http://keithdevens.com/weblog/archive/2004/Jan/06/permalinks

Now, weblog URLs should always have the date in the URL. But in the absence of a slug, what's are good ways to uniquely identify a post? Possibilities include:

  • A timestamp of the creation time, in hour/minute/second format
  • A timestamp of the creation time, in Unix timestamp format
  • An arbitrary unique ID for the post (usually just the primary key of whatever table stores your weblog entries)
  • A GUID (some news sites use this for article IDs)
  • A number indicating the order the post was posted in the day (first post is 1, etc.) I suppose you could do a textual representation of this as well ("one","two","forty-seven")
  • Some serialization of the title, if one exists
  • What else?

The Spirit parser framework

The Spirit Parser Framework:

Spirit is an object oriented recursive descent parser generator framework implemented using template meta-programming techniques. Expression templates allow us to approximate the syntax of Extended Backus Normal Form[1] (EBNF) completely in C++. Parser objects are composed through operator overloading and the result is a backtracking LL(inf) parser that is capable of parsing rather ambiguous grammars.

It's part of the Boost template library.

Also see: Backus Normal Form vs. Backus Naur Form

Note to web advertisers

If I see any bright flashing animated gifs telling me I'm a WINNER, or anything else annoying, I set my browser to block everything from your server. So don't do that.

Links

← January 05, 2004January 07, 2004 →
July 2008
SunMonTueWedThuFriSat
 12345
6789101112
13141516171819
20212223242526
2728293031 



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⇒Court rejects death penalty for raping children - Yahoo! News

Keith is not a person. I have this​on good authority. He's actually a​very,...

M. Bean: Jul 4, 2:05am

Girls, please don't get breast implants

> And no, you will not be receiving​a picture.

:-(...

Keith: Jul 2, 6:05am

Javascript clone function

This is a clever way to clone an​object if you are using YAHOO UI.​Same tec...

Antonio: Jul 1, 12:47pm

I hate Norton Antivirus

Oh just one other thing norton is​great at keeping people out of your​compu...

kevin.sands: Jul 1, 12:50am

Terminator 3 was awful

I think the biggest reason why T3​totally blew was because Edward​Furlong g...

76.167.172.64: Jun 29, 3:06am

Generated in about 0.08s.

(Used 7 db queries)

mobile phone