Archive | Dicas RSS feed for this section

Vim confs prontas para trabalhar com Python e Django

7 Mar

original wombat theme with my custom wombat theme

This weekend I reworked on my .vimrc and put some extra time in make things work better for me in python and django coding :). I did a nice job and now I can code with much more goodies. Results are: A very commented and customized .vimrc. Support for python omnicompletion. Adding django and python […]

Mudar charset e quebra de linha recursivamente no Linux

26 Feb

Sometime ago I have to change the charset and line breaks of a web application from charset iso-8859-1 (US-Latin) to UTF-8 and linux break lines to windows break lines. At that time chronos helped to create this small script that I’m sharing now: #!/bin/sh #change extensions filter as you need ūüėČ find -type f | […]

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 […]

Pensamento r√°pido – “ilike” SQL

4 Sep

Today I saw a post at one of the blogs I often watch, where a guy said he got 1000% of speed boost in a aplication by changing: uma aplica√ß√£o trocando um: SELECT * FROM table WHERE fieldname ILIKE ‘abc%’; For SELECT * FROM table WHERE lower(fieldname) LIKE ‘abc%’; (changed ilike to lower … like) […]

Comparação de Frameworks Javascript

20 Jul

Eu particularmente uso JQuery e muita gente sempre me procura para compara-la √† ExtJS, MooTools, Prototype, YUI e Dojo. Como tamb√©m faz tempo que estou devendo um post pro Chronosbox… aqui est√°!

Jogue seus games de playstation no seu Linux

4 May

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

VIM colorscheme Wombat – customizado

13 Apr

Searching for cool python related plugins for VIM I found (tripped) in a theme called Wombat, a variation of Desert theme created by Lars H. Nielsen. So, I get it, and worked a bit on, making some changes to made it a bit more dark, like I did on my custom desert theme. Here is […]

Indentando seus arquivos automaticamente e em massa com o VIM.

8 Sep

Hey people After a long time without post on blog, but always colecting ideas, the tip of today touch in a delicated area, code indent. Around all word we found ugly and mall indented codes (except in python :]), and, when working with PHP, this is a case extremely normal and really sucks. So, one […]

pingping – Verificando conex√£o com servidores.

25 Jun

Above is my pingping script. This script send a mail alert when some server stop, based on regular ICMP requests. Read it! #!/bin/sh # This script send ICMP requests for each server on SERVIDORES list and sends # emails for emails in LISTA_EMAILS list why one of servers doesn’t reply # You only receive alerts […]