snowdeal logo

archives archives

ex machina

mike's wondering how i got my rss feed. well, it's very much homegrown, but, inspired by blogify. basically, i'm using dublin core metadata in the pages for the channel description and marking up the text with divs and spans. xpath and a little perl do the rest. "conflux style" posts are marked-up differently than "machina style" posts and, as jon udell noticed, i rather unelegantly truncate the descriptions for scannability. when i wrote the script, i think i remember trying to get Lingua::EN::Sentence to elegantly pick off sentences, but my horrid punctuation and general disregard for capitalization made it, um, less than reliable. i should probably look back into it, since i agree that's it's a bit jarring the way it currently is implemented.

so, here's xhtml2rss with the usual, "you break it you get to keep the pieces" caveat. and i know it ain't exactly the purtiest thing in the world [ why exactly do i clean the text twice? ], but i don't want to hear from some snot-nosed kid who can compact the whole thing into a one-liner.

bookmark: ::digg it ::furl ::reddit ::yahoo ::
4/26/2002 12:06:00 AM 0 comments


Post a Comment

[ rhetoric ]

"it is hard to be brave," said piglet, sniffing slightly, "when you're only a Very Small Animal." rabbit, who had begun to write very busily, looked up and said: "it is because you are a very small animal that you will be Useful in the adventure before us."

the complete tales & poems of winnie the pooh

[ about ]

this site chronicles the continuing adventures of my son, odin, who was unexpectedly born on the fourth of july at 25 weeks gestation, weighing 1 pound 7 ounces.

he's quite a fighter and you can always send him a postcard to the most current address listed here if you're inspired by his adventures. see the postcard project/google maps mashup to see a map of the postcards.

if you're new, you can browse the archives to catch up. and don't forget to watch a few movies that i made while we were in the neonatal intensive care unit. or if you want the abridged version and you can find a copy, you can read about his adventures in the november 2005 issue of parents magazine.

[ search ]

[ outbound ]

daddytypes / blogging baby /

rebeldad / thingamababy / The Continuing Adventures of Super-Preemie / dooce /

[ schwag ]

look snazzy and support the site at the same time by buying some snowdeal schwag!

[ et cetera ]

valid xhtml 1.0?

This site designed by
Eric C. Snowdeal III .
© 2000-2005