Phillip Pearson - web + electronics notes

tech notes and web hackery from a new zealander who was vaguely useful on the web back in 2002 (see: python community server, the blogging ecosystem, the new zealand coffee review, the internet topic exchange).

2002-11-19

Structured procrastination

... more like this: [, , ]

UserLand global shortcuts

The UserLand Global Shortcuts are cool. There are some things in there that probably don't belong in bzero though ... '', for example ;-)
... more like this: []

Now reading UserLand shortcuts

That was easier than I expected. It took Dave Winer one line of UserTalk code to convert his shortcuts into XML, and it took me five lines of Python to read them back in. Nice. I like XML-RPC -- it makes it very easy to serialise scripting-language-friendly data structures to XML and get them back out.

import xmlrpclib
p, u = xmlrpclib.getparser()
p.feed(text)
p.close()
shortcuts = u._stack[0]

Shortcuts

bzero now does shortcuts. More details when 0.11 is all ready. Wondering whether to include UserLand's standard shortcut list. I seem to remember Dave Winer saying somewhere that they didn't mind people doing that. Hmm.
... more like this: []