Calendar
April 2004 >
SuMoTuWeThFrSa
     1 2 3
4 5 6 7 8 910
11121314151617
18192021222324
252627282930 


Sat, 24 Apr 2004

Restructured Text

This is a first attempt at ReStructured Text.

Just getting docutils installed on the server was a bit of a chore.

I had to:

  • copy docutils-xxx.tgz to the server and untar it
  • install with --install-purelib set to pyblosxom homedir
  • include rst as a plugin (config.py)
  • run ./blog in the cgi-bin directory to test it

The effort was worth the work however, as now I'm able to post .rst entries, and have them be parsed by this most intelligent parser.

[00:00] | [personal] | # |

Fri, 23 Apr 2004

More Fun with Python

I'm back at Powell's on Hawthorne. I couldn't get an already-written movie database looker upper to work (a screen scrapey kinda thing), so decided to write one myself. My day's efforts are on display at: getmovie.py.

I'm thinking this module might be fun to include in the Adventures in Open Source course that might happen (if anyone signs up -- still early, as we're looking at end of June).

I need to learn restructured text again, and incorporate that parser into this here blog.

[00:00] | [personal] | # |

Wed, 21 Apr 2004

More fun with wireless

I think I've got the hang of it now. I'm at the Fresh Pot on Hawthorne and having no trouble connecting by wireless. With this coffee thing, the goal is to prove to myself I'm not addicted, and then allow myself to have it on special occasions. This counts as a special occasion.

[00:00] | [personal] | # |

Tue, 20 Apr 2004

Sweet Success!

OK, I'm now living my dream. Here I am, in RedWing Coffee Shop, using a free node provided by personaltelco.net. Node 561 to be exact. Took awhile to get dhcp to work. Never managed to connect at LinuxFest. But airports worked fine, so I knew it could be done.

I went off coffee about 3 weeks ago, almost a month now, so I just had some green tea, quiche... anyway, this was the dream. Time to pick up Tara from school -- but as a final step, let's use aap to upload this to the blog.

[00:00] | [personal] | # |

First Post

This was my first post to this world-readable blog. Thanks to Jerrit, I'd played around with it earlier on my laptop. Then I found this article in Linux Journal about aap, an alternative to 'make' or 'ant' (for scripting tasks), and had this fantasy of sitting in some cafe, writing a blog entry, and updating my blog automatically using aap. That's what I'm working on getting working right now.

My first problem with configuration on the server was the footer wouldn't appear, and with it, the sidebar and links to my websites.

aap seems to be working pretty well, although I had a permissions issue with one of the subdirectories it creates locally, to track signatures. That must be because I installed as root, but want to run it as my regular self.

[00:00] | [personal] | # |

/python/compose.py

Python Code
#parser py

def f(x):
    return 'f(%s)' % x

def g(x):
    return 'g(%s)' % x

def compose(f1, f2):
    def newf(x):
       return f1(f2(x))
    return lambda x: newf(x) # make return anonymous
[00:00] | [python] | # |