Yves Junqueira’s blog

Setting the default locale (language) in TurboGears


The TurboGears documentation only mentions this en passant. It’s easy to change the default locale (language) of your TG application. In your project/controllers.py, in you can add: def locale_pt(): return ‘pt’ turbogears.config.update({‘i18n.get_locale’ : locale_pt}) I have this in the top namespace of my controllers.py file, not inside the Root class. I’m not sure if this is the prettiest way to make this work, but hey, it works for me. If you have any better suggestion, please leave a comment.…
Read more ⟶

linux group passwords


Group passwords is a sort of obscure feature most people don’t use. It is safer *not* to have passwords set for groups. By setting a password to a group, you allow an arbitrary users to be part of that group as long as they know the password. That generally doesn’t make any sense unless you need to grant a shell user temporary access to a certain group. I don’t even know if it works as advertised.…
Read more ⟶

Suriproxy - Release soon


“Release Soon, Release Often”. Com esse mantra na cabeça, estou disponibilizando o Suriproxy, uma ferramenta anti-spam e, principalmente, anti-phishing. O suriproxy é um PROXY SMTPD para o Postfix, que filtra as mensagens recebidas pelo daemon smtpd e repassa a outro daemon, seja um amavis ou outro smtpd do postfix. Ele faz consultas URIBL de DNS quando encontra algum link nas mensagens, ele consulta se o domínio deste link está nas listas URIBL (inclusive na…
Read more ⟶