In response to my questions about using Lua and
Lighttpd to serve up static blosxom pages, Tomas Carnecky sent me an email
with a better way to check for an empty query string within Lua, using "if
next(get) then return 1 end". Here's my new power-magnet.cml
-- if query string is empty and static file exists, serve static file
dr = request["DOCUMENT_ROOT"]
-- local f=assert(io.open(dr.."/debug.out","a"))
if next(get) then return 1 end
sn = request["SCRIPT_NAME"]
static = string.gsub(sn, '^/blog/(.*)$', '/static/%1')
if (file_isdir(dr .. static) and file_isreg(dr .. static .. "/index.html")) then
-- f:write("cache hit on directory\n")
output_include = { dr .. static .. "/index.html" }
return 0
elseif file_isreg(dr .. static) then
-- f:write("cache hit on file\n")
output_include = { dr .. static }
return 0
end
-- f:write("no cache hit\n")
return 1

Yahoo Pipes allows you to manipulate rss
feeds. I built my first very simple pipe this morning. It takes the Amazon
Gold Box feed and strips out the Baby
Deals. You can also much fancier stuff like match geocoded addresses in
feed items and modify the content of individual items. Too bad they don't
provide a way to screen-scrape pages to build feeds.
If I build any more pipes, you'll be able to find them on my pipes page.

The state is that great fiction by which everyone tries to live at the expense of everyone else. - Frederic Bastiat