Archive by Author

Migrando bases de dados LATIN1 para UTF-8 com o PostgreSQL

6 Feb

Nowadays it is a standard that all web sites and servers run at least with UTF-8 encoding as default, however you can find cases where it is LATIN1 or even ASCII. The case we are dealing with today is a Debian server, version 5.0.3 (etch), which used encode LATIN1 as default encoding when installed and […]

Configurando múltiplos ambientes Python

27 Jan

Multiple python environments Work with various python versions with multiple versions of python environments has become something common in my life, and, I believe that an easy way of setting this environments are something very useful, and not simple for most of people. I created a simple shell script that set this environment, that is […]

Manipulando erros Http 403 (permissão negada) no Django

24 Nov


In this post, I show a new Middleware, built to deal with errors 403 (Http Forbidden, access denied) like we work with 404 error in Django.

Atualize o hosts.deny para bloquear tentativas de brute force

2 Sep

Here I show a sinple script to block IPs that try brute force at your host, preventing you from use a alternative ssh port, as example. The script runs over /var/log/messages and detect via regex brute force attemps, and add IPs to /etc/hosts.deny Code: #!/bin/bash cp /etc/hosts.deny /var/tmp/hosts.deny # Jun 8 00:39:43 mintaka sshd[23332]: User […]

Fast quote on #django

26 Jul

Fast quote on #django <the-teacher> the-man: welcome to Python <the-man> the-teacher: welcome to what? <the-man> the-teacher: what is a python? <some-people> lol <the-teacher> the-man: the language Django is written in, you twit <chronos> husahduas… I’m reading it.. <the-man> the-teacher: language? <some-people-2> the-man, … <the-man> the-teacher: like, english? <chronos> need a quote… <some-people> ” <the-man> oh […]

Django apps (coleção) – parte 1

19 Jul

Actually, I’m working with Python e Django, both language and framework are excellency softwares and I’m have plans to develop a big project with Django. So, as my first post about Django on blog I’m listening here a bunch of useful apps for your project. Most of this apps was found in a fast search […]

Problema com cores do WP-Syntax

14 Jul

WP-Syntax are plugin that highlight code snippets on all my posts. My big friend Handrus notified me that after upgrade to WP 2.8.1 colors was wrong, so I adjusted some colors but not at all. WP-Syntax uses Geshi, and configuration of colors with WP-Syntax-Colorizer are really a headcache, now my plan is get WP-Syntax and […]

Template para páginas do WordPress para mostrar somente posts de uma categoria.

9 Jul

Fast code snippet to get one page template that show posts of one category: Add in your template page following code: Now, in your page add a custom field named ‘category’, field value is slug name of category. Save the page and be happy! Now you can use same template for various pages and show […]

Jogue seus games de playstation no seu Linux

4 May

Sorry, this entry is only available in Português.

Meus 3 dias testando KDE 4.2.2

16 Apr

Sorry, this entry is only available in Português.