today | current | recent | random ... categories | search ... who ... syndication

Wednesday, July 09 2003

Mark Bittman : Borscht is the highest and best use for a beet.

The newest issue of The Art of Eating found its way in to my mail box yesterday. It contains what is essentially an article that could easily have been titled Elizabeth David for Americans : a reading primer. So with that in mind I will offer you my own under-defined and loosey-goosey recipe for doing fun stuff with beets, your borscht be damned:

Get a bunch of small-ish beets, peel and quarter them and then place in a suitably sized casserole.

In a mixing bowl combine a good amount of red wine with some olive oil and plenty of honey. The trick to the oil is to have enough for the beets to cook in but not so much that they'll be swimming in it when the wine has cooked off. Add ground (not powdered) pepper and tarragon to taste.

Stick in a very hot oven and bake for 45-60 minutes. Move the beets around every once in a while. Take them out when the beets are soft to a fork's touch (that sounds kind of rude, doesn't it?) and when almost all of the wine has evaporated and the honey has started to carmelize.

refers to

meta

Douglas McLennan : "It's not particularly in their interest to cut us off. I can be their biggest deliverer of traffic."

refers to

meta

Movable Thoughts #19 : CGIPath != mod_dir.c

A "trailing slash" redirect is issued when the server receives a request for a URL http://servername/foo/dirname where dirname is a directory. Directories require a trailing slash, so mod_dir issues a redirect to http://servername/foo/dirname/.

I upgraded a copy of Movable Type to 2.64 the other day and, of course, it broke. Specifically the cookies that the program tries to set didn't seem to stick. Every time I tried to do anything I would be taken back to the login page. Well it's been a while since I've poked around MT, I thought, so I will suffer the MT support site that I hate so much (why do I need to log in just to search the bloody thing?!) and see if it's a known bug. Sure enough, there are no shortage of Dude, where's my cookie? style messages. Unfortunately, the only thing anyone seems to be saying in response is : Dude, just delete your cookies! Sure, thanks Wonder Bread. Anyway, eventually it dawned on me to actually look at the cookie and I discovered that the Path field contains a fully formed URI. Which explains why the cookies are failing but not why they're being set incorrectly. Line 374 of MT::App.pm reads :



 if ($path =~ m!^https?://[^/]+(/.*)$!i) {



where $1 (the first set of matching brackets : that would be everything after the first forward slash following the standard URI [insert protocol here]:// stuff) is assigned as your cookie's Path. Which means that unless your Movable Type CGIPath config variable contains a trailing slash, the program will seriously bork your cookies. DWIM-ing and user-centric idiot-proofing aside, I am inclined to think that this is a documentation bug rather than a problem with the code. Apache happens to do "trailing slash" redirects out of the box which is nice but probably not reason enough to expect every other web programmer to do the same thing. Now you know.

refers to

meta

Ponie is a version of Perl 5 that will run on Parrot.

To the naked eye that sentence is almost as incomprehensible as an RDF statement...

refers to

meta

 
 
Tuesday, July 08 2003 ←  → Thursday, July 10 2003