2005/08/29

Buildbot on OS X 10.4

If you install a buildbot (a very nice tool, by the way) on MacOS X 10.4, and if, when clicking on an ongoing log in the waterfall display for the buildmaster, you observe something like a nice python exception ending in:
        data = f.read(self.BUFFERSIZE)
with an ugly [Error 9]: bad file descriptor on the log file.

Then, you might be interested in the following excerpt from the CVS ChangeLog file, on 2005-07-19 (post 0.6.6):

* buildbot/status/builder.py (LogFile): remove the 't' mode from
    all places where we open logfiles. It causes OS-X to open the file
    in some weird mode that that prevents us from mixing reads and
    writes to the same filehandle, which we depend upon to implement
    _generateChunks properly. This change doesn't appear to break
    win32, on which "b" and "t" are treated differently but a missing
    flag seems to be interpreted as "t".

I tweaked my copy, works fine now.


2005/08/20

Sometimes, you just need an excuse

To play with parenthesis again.
(define (unzip file) 
           (run (unzip ,file)))

(for-each unzip (glob "*.zip"))
A few minutes before, after my n-th failure to remember another syntax in a shell script:
$ sudo port install scsh
I have to admit that I still have a soft spot for Lisp and Scheme, even after years without writing a line of code. After all, it was the second language I learnt - well before Pascal or C, and the LISP book was one of the first in my CS shelf, and was joined a few years ago by the utterly brilliant book by Christian Queinnec describing the magic in LISP implementations.

2005/08/04

Things I'd like to code...

... in my copious free time. Conclusion. As always, time is the only scarse resource.

This page is powered by Blogger. Isn't yours?