Displaying posts categorized under

Uncategorized

Playing with ANSI colors and python with Couleur

Last night I’ve just released the first version of Couleur, which is (or at least try to be) a simple and awesome tool for using ANSI colors with python.
Couleur indeed turns very easy to handle shell colors in python.
In action
import time
import couleur

sh = couleur.Shell(linebreak=True)
for mood in ["bad", "awful", "normal", "nice", "awesome"]:
  sh.red_on_black(mood, replace=True)
  time.sleep(1)
Couleur creates [...]

Avoid python pitfalls and be happy

This morning I was just reading the feed, when I stumbled on this post about one of the weird behaviors of lists in Python.
In a few words, lists and dictionaries behave like C pointers, thus they are mutable objects.
So, if you are beginning on python, you probably will like those articles:

10 python pitfalls, what [...]

Introducing Sponge, a python web framework aimed on testing

Some time ago, a friend of mine created a cherrypy-based continuous integration application, we both work with Django, but we think that its stack is too big for simple web projects, specially when we do not need to access SQL databases.
More on Django
In adition, I think that Django-powered applications are hard to make unit tests, [...]

Emacs + Snippets

People use to joke on me about the fact that I use EMACS, some say that I even need to use my toes to acomplish EMACS commands, and so on…
But I keep being even more productive, and every day I figure out new ways to improve it.
I really use EMACS the whole day, I keep [...]

Bolacha, httplib2 wrapper with cookie handling and file upload.

I really like httplib2, but unfortunately it does not oficially support sending multipart/form-data.
So last Monday I was at work, and realized that I was needing exactly to make a http upload from within a python program, and also needed to make a session login right before.
I remember that I needed that before, but I could [...]

New projects + agile = releases

When I lived in Belo Horizonte/MG, I used to make hack parties with some friends of mine (nothing to say about all those pizzas and beer).
The hack parties had no specific goal, but a main idea: Hack some free software, and share the knowledge.
Many of us, but specifically Lincoln and I, used to create new [...]

Geeks from venus eat geeks from mars at breakfast

Many of my friends (maybe, so many) are geeks, but i’ve recently noticed that they are forked in two kinds thus I found completely fair to name as “Hedonistic Geeks” and “Parnasian Geeks”. Therefore, the hedonistic ones can also be labeled as “geeks from mars”, thus makes the parnasian ones from “venus”.
The hedonistic geeks
They keep [...]

Hosting and deploying django apps on Dreamhost

About two years ago, I’ve signed up to Dreamhost. My goals were and still being to host my personal projects, websites and so on.
Once I am a Django web developer, one of my first actions were to create a django deployment setup, good and flexible enough. The time passed on and have been got new [...]

Graduation done!

Today i’ve reached my first graduation.
It’s funny to think that i’ve made a friend during the course, but he wasn’t from my class, actually, he done another course, but our classes joined to some lessons. The funny fact is a long history….
The government of Brazil have a project who support students with “high scores”, paying [...]