#!/usr/bin/env python import cgitb cgitb.enable() import os.path, glob from src import daily print """\ Content-Type: text/html; charset=utf-8 The Gallimaufry of Whits, by Sean B. Palmer

Gallimaufry of Whits

Quick notes on the Semantic Web, antiquarianism, typography, &c. Subscribe to the feed if you like this dreck.

""" for post in __import__('itertools').islice(daily.posts(), 7): date, lines = post[0], post[1:] print '

' + date.strftime('%Y-%m-%d') + '

' t = False for line in lines: line = line.rstrip('\r\n') if (len(line) == 14) and line.endswith('Z:

'): t = line[3:-4] elif t and line: i = line.find('>') tag = line[:i+1] month = date.strftime('%Y/%m') day = date.strftime('%d') minute = t[0:2] + t[3:5] link = '%s' % (month, day, minute, t) if tag == '

': print '

%s' % link print line[i+1:] else: print '

%s

' % link t = False else: print line old = """\ ' echo "

Total of $(format $total) words.

" """ print """\

For older entries, try the archives.

Colophon

“whit, n. Now arch. or literary. [Early mod.E. whyt, wyt, whit(t, app. an alteration of wight, wite, in any wight, no wight, little wight (see WIGHT n.).] 1. A very small, or the least, portion or amount; a particle, jot, 'bit'”
— The Oxford English Dictionary

“When found, make a note of!”
— Charles Dickens

Sean B. Palmer, inamidst.com
""" # EOF