BusySponge Update: Present Hack

In August of last year I posted a set of requirements [1] for a utility to 
help me log my daily events given the varied documents I typically type 
this stuff into. FYI: Here's the present small script I use to update 
personal and work logs. 

Disclaimer: there's no RDF or RSS involved! In thinking about this, the 
simple fact is that I'm most comfortable typing stuff into my shell, and 
maintaining data in xhtml. From that, and for both of those logs, it's easy 
to generate  RSS 1.0. Why do I like the xhtml? <smile/> It's what I'm used 
to, and it allows me to correct things. For instance, I felt that typing in 
titles is a chore so getTitle(url) does a decent job of getting a resources 
title. However, it doesn't work that well on fragment ID's (e.g., blog 
entries) because there's typically no correspondence between the id and the 
"title" of that entry. (Adopting a convention for this would be rather 
nice.) In that case, when I'm actually editing the xhtml in a xhtml editor, 
I fix the title manually. (If I could edit style XHTML+XML/RDF in an xhtml 
editor, this might change! <smile/>)

I'm still keeping an eye out for other solutions that are easy to use and 
based on a more meaningful data model, but thought I'd just share this hack 
of what I'm using now.

[1] http://lists.w3.org/Archives/Public/www-rdf-interest/2002Aug/0130
[2] http://www.w3.org/2003/01/b.py
"""
This allows me to easily enter data into various logs from the
command line. For example:

  'b http://wwws.sun.com/software/xml/developers/diffmk/refentry.html w misc 
Noted ^'

  results in

  '<li>030121: misc] Noted <a 
href="http://wwws.sun.com/software/xml/developers/diffmk/refentry.html">diffmk</a>.</li>'

This script can be easily extended for new "schemes" that parse the input
and output it into a specified format.
"""

Received on Tuesday, 21 January 2003 11:12:23 UTC