26 February 2008

Somewhere a cardiologist got their wings

Last week a group of us had dinner and tasty if a bit snooty beers at Brasserie V.  One appetizer was almond-stuffed dates wrapped in bacon.  These were so good that it was decided the recipe should be reproduced at this week's Geeks' Night In.  So, along with the evening's bottling and brewing of beer, dates were stuffed, wrapped in bacon, skewered, lightly sprinkled with brown sugar and broiled.

Our version was also delicious.  My brilliant innovation came when I spied the loaf of French bread looking lonely on the table.  I ripped a hunk off, and dipped it into the date-flavored bacon fat left in the broiling pan.  Everyone else was appalled — including, I hasten to add, Chuck. Until they tried it.

17 February 2008

I should be studying...

Instead I did this:



I blame Nicholas' recent posts.

I had brief anxieties when the wind and the cold really started.  Branches were falling off neighbors' trees and my working area was right under some suspicious branches.  I was ready to bolt at the first hint of a crack above me.

14 February 2008

It's the little things: Lisp + Unicode

This little snippet of code makes me giddy out of proportion to what it accomplishes:

 ;; A non-final sigma cannot occur at the end of the string.
(when (char= (elt uni (1- (length uni))) #\σ)
(setf (elt uni (1- (length uni))) #\ς))


That this is so easy is a lucky accident of Common Lisp's history. The "common" in Common Lisp is because it was supposed to unite several popular (hey, it was the 80s), but incompatible, Lisp variants. There were lots more kinds of computers in wide use in the 80s, and many different encoding schemes for text. Thus, Common Lisp strings were always arrays of characters which were not necessarily bytes, or even ASCII. EBCDIC, anyone?

Well, the betacode to unicode conversion library works. Next up, indexing Perseus' exotic XML texts.

04 February 2008

Weekend Puzzlements

1) If the system name of the DTD is a 404-ed URL is your XML document valid?

2) What's the point of a DTD, anyway, if you're just going to obliterate it when you think up something cleverer?

3) Anyone who thinks the modern world is "too coldly rational" isn't paying attention.