Posted by Damien Pollet
Sun, 25 Nov 2007 15:54:00 GMT
This summer I moved to Lugano for a new position at USI.
Sadly this implied that I had to let go of the 28Mbit fixed IP DSL from Free.fr to a wonderful 4MBit, dynamic IP, same price. So this weekend I had some fun coaxing Apache into proxying the websites from my dyndns.org address.
Anyway, I’ll keep it short, as I’ve also been hacking Pier and Seaside to replace the current Typo running on Rails. You got to eat your own food, especially when it tastes better :-)
Posted in Housekeeping | no comments
Posted by Damien Pollet
Wed, 25 Apr 2007 00:55:12 GMT
Last weekend I configured my web server to accept IPv6 connections (and since my provider ignores IPv6, I’m using a 6to4 tunnel from BTexact).
To celebrate my small patch of adressing space, I added the banner you can see at the top-left of the page. It should be red if you come from IPv4 land and green if my tunnel is up, my config actually works, and you are really in IPv6 (not using an ::ffff:a.b.c.d IP).
So I’m coming to my first point, which is how to tell Lighttpd to differenciate clients and keep the config files modular.
Resarch(ish) discussion after the jump.
Read more…
Posted in Housekeeping, Research | Tags dsl, ipv6, lighttpd | 1 comment
Posted by Damien Pollet
Wed, 05 Jul 2006 00:54:00 GMT
Hi! You might have noticed some kind of total blackout of this site recently.
Or not ;-)
So… back in april, I moved from Rennes to Annecy to start preparing my postdoc with Pr. Stéphane Ducasse and the LSE team at the Listic lab. And thanks to our ex-national telecom company, getting net access at my new home took some waiting and patience…
So I have internet. AT LAST! That was the info for today, thanks everybody ;-)
Posted in Housekeeping | Tags downtime, moving | 1 comment
Posted by Damien Pollet
Thu, 08 Sep 2005 01:06:46 GMT
… and bye to Apache 2!
I just switched my web server to Lighttpd. The configuration file was quite easy to write without too much RTFMing besides the docs on the Rails wiki.
Disclaimer: This is just quickly tested so it’s probably broken in some way… anyway, we’ll see :-)
Update: I’ve also upgraded typo to get the latest stuff from SVN. Had to migrate my development database by hand (SQlite migrations will be in the next Rails release) and to update all the posts to add tags and clean the categories. And in the process I think I blacklisted myself from technorati by pinging them a little too much during the last hour… oh well :-)
Posted in Housekeeping | Tags blog, lighttpd, typo | no comments
Posted by Damien Pollet
Fri, 15 Jul 2005 21:42:00 GMT
I’m in the process of reapplying my caching modifications to the latest typo code, so don’t panic if things get a little strange this weekend.
Update
I finally got the thing working again, and committed in a separate SVK branch. Makes it easy to test stuff on one machine and apply changes on the server later.
Pages are now cached more or less correctly (there is a little kludge for the .../pageN route to work) but once they are cached, they stay so. It’s hard to invalidate a cache when you don’t know what’s here to be invalidated…
Update 2
Yet another update to synchronize with Tobi’s changes.
Pages are now uncached! There is still some little glitches, but they should be easily fixed ;-)
Update 3
Whoops, it seems I’m now officially a contributor to typo…
Posted in Coding, Housekeeping | Tags svk, typo | 1 comment
Posted by Damien Pollet
Sun, 12 Jun 2005 12:41:00 GMT
Yesterday I tried to get typo to generate static versions of the main pages to improve the speed. I’m running it on a Sun workstation I got for 10 euros, so ruby is not exactly zippy :-)
The first problem is with pagination: the page number is passed as a parameter in the URL, so I added the following route:
map.connect 'articles/page/:page', :controller => 'articles',
:action => 'index', :page => /\d+/
With this route, page 2 gets cached in public/articles/page/2.html for instance. Which is a problem since the links don’t include the .html extension. Second problem is the main page, which gets cached as public/index.html but since it’s accessed by the root URL, rails serves it even when the cache is here. I tried to tweak how apache rewrites the URL, without success:
RewriteRule ^/$ /index.html [R=301]
# or, later:
RewriteCond index.html -f
RewriteRule ^/$ /index.html [L]
Next problem will be to update the aggregated feeds in the side bar, even when rails is completely bypassed by the cached page ; a good place to add some ajax goodness, but I guess I have to RTFM a little more about routes and mod_rewrite before that :-)
Update
It seems I got the routes to work… the rewriting rules are now:
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
… which happens to be the default. duh.
I’ll have to fix the “posted by whom that many days ago” subtitle, and check that cached pages are correctly invalidated. There is still the RTFM’ing part to do, because there’s some rails routing magic I don’t really understand yet.
Update 2
Had some problems with cache sweeping but it works now; it’s probably a little zealous, but it’s here. It’s still broken for the pagination links at the bottom, though… I have to find how to cleanly recompute the page number to sweep, or how to sweep all pages at once (e.g. find how much pages there are in total).
Update 3
The javascript trick to display post dates works now, so I sent my changes.
Posted in Coding, Housekeeping | Tags apache, javascript, ruby, typo | 5 comments
Posted by Damien Pollet
Tue, 03 May 2005 14:19:00 GMT
My new server is now configured well enough to replace the old one. Being cornered between PhD and unemployment, I'll try to keep that blog alive longer than the previous ones... we'll see.
Oh, and since I'd like to learn rails in actual practice, I'll probably be tweaking directly this instance of typo. No fun in tweaking things if there is no risk :)
Posted in Housekeeping | Tags blog | no comments
Posted by Damien Pollet
Sun, 01 May 2005 02:30:00 GMT
Spent too much night hours tweaking Justin Palmer's Azure CSS for Typo, and now I have my own personalized weblog appearance. Whee.
Posted in Housekeeping | Tags blog, css | 1 comment
Posted by Damien Pollet
Tue, 26 Apr 2005 02:14:00 GMT
So I finally managed to get Typo installed and running with some decent performances. Stay tuned!
Posted in Housekeeping | Tags blog | 2 comments