Wed, 24 Nov 2004

entry system-wide ad blocker

Firefox is great. I love its extensions, especially the Web Developer extension and Adblock. But still, on my Mac, Safari remains my favorite browser. It's snappier as long as there's no ad on the visited page. Ads can definitely make the whole web experience painfully slow .. Adblock is probably the most efficient counter-ad solution, but Safari doesn't care.

I finally decided to go the good old way; edit /etc/hosts. MacOS X doesn't use this file by default, lookupd getting information only from NetInfo. Fortunately, everything can be changed, right?

% su -
% niutil -create . /locations/lookupd/hosts
% niutil -createprop . /locations/lookupd/hosts LookupOrder CacheAgent FFAgent DNSAgent NIAgent

I add a cronjob to fetch Dan Pollock's hosts file.

0       9 *       *       *       curl -s http://someonewhocares.org/hosts/hosts > /etc/hosts

So my hosts file blocks most ads and I can still use NetInfo to manage the DNS entries I have for my local machines. Beautiful. Final step: avoid error in Safari's activity window. That means responding to local requests on port 80. I'm doing it the easy way by starting Apache and adding the following line to my /private/etc/httpd/httpd.conf:

ErrorDocument 404 "

Sat, 20 Nov 2004

entry C'est la faute aux 35 heures [fr]

Comme Jean, de plus en plus de pionniers décident de quitter des jobs apparemment enviables pour des boulots moins payés mais porteurs de sens.

Bon article à lire dans Le Nouvel Observateur.

Fri, 12 Nov 2004

entry geek adrenaline

Here I am. Friday nite. 11:00. Forgot to eat; too absorbed by my code. Just put some pizza leftovers in the microwave oven. Ahhhh. This is not a life.

But there's a new release of Spamity coming up ;)