Archive for January, 2007

Rails: reset devel db migrations

January 16, 2007

Doh! I figured this should be easy to do, now I finally found the right method – these two steps completely reload the migrations from scratch in the development environment:

% rake db:migrate VERSION=0 && rake db:migrate


Content filtering with DansGuardian

January 3, 2007

I finally got content filtering fully configured for my home network. I’m using DansGuardian + squid for the filtering, and the setup process was extremely smooth and easy (ubuntu breezy badger):

% apt-get install dansguardian

I already had squid running and tested, and DansGuardian just plugs right in. I had to change my WPAD proxy config (/wpad.dat) from this:

return "PROXY; DIRECT";

to this:


And it just worked — all the other machines in the network automatically got the new filtering. I also customized the ‘access denied’ html template a bit, in /etc/dansguardian/languages/template.html