My Common Lisp and Debian blog. For more off topic rants and stuff please see my livejournal blog.

Wednesday, September 29, 2004

nugget of code

Suppose you have a feature debug that you use to turn on debugging, and that if debug is on *features* you want to araneida not to cache your responses for a day. Then you can use the following code:


(araneida:request-send-headers
request
:content-type "text/html"
;; cache this page for 24h
#-debug #-debug
:expires (+ (get-universal-time) (* 60 60 24)))


The #-debug #-debug will exclude both expressions that follow. Another neat trick I've learned from Erik Naggum.

Tuesday, September 28, 2004

presentation is online

I've put the Benelux lisp meeting talk online, together with source here.

Wednesday, September 22, 2004

common-lisp-controller problems

It seems some users tried to get help for clc via cliki. Too bad I didn't pay so much attention to that page lately.

So I published the clc package on alioth a bit more and created two mailing-lists for people to subscribe to. In 6 to 24 hours they should get created.

Most people complain of a lack of RPM's or the ease of adding local packages. The problem with the latter is that I don't have a rh system, nor do I wish to create one. And build farms don't seem to exist. The problem with the last issue is deeper. asdf-install doesn't define user specific system directories for any implementation that isn't sbcl. So to 'fix' clc we have to modify asdf-install or make the world more complex by dividing them in clc-enabled (with user packages) and non-clc-enabled (no user pacakges unless you run sbcl). Sigh.

Let's make it a point to chat about on sunday...

Actually users complaining means that I have users! Good >:-).

Friday, September 17, 2004

pg

Of course I notice a bug in pg's extended query support while writing the presentation about it. Sigh.