Postgres Host-Based Authentication

Postgres Host-Based Authentication

I got this kind of error when trying to access postgres more than once: psql: FATAL: Peer authentication failed for user “postgres” Also I wanted to be able to use postgres from a script without having to type the password in. Here’s what’s...

PdbpPlease!

pdbpp is an awesome module that replaces pdb and makes debugging way nicer in Python. https://pypi.python.org/pypi/pdbpp/ A debugger is an extremely useful tool. I used to spend a lot of time with pdb. Then there was pdbpp and it has made debugging a much much nicer...
Vim for Python Development

Vim for Python Development

A raring, tearing, slick, awesome, fast software development editor. Here’s my vimrc. I’m sick of Sublime Text 2. It’s probably my fault. I wish it behaved like vim, which it nearly does but actually doesn’t in enough ways that I find myself glowering at it when I...

Who is Alex Martelli?

or: “5569 Things You Can Learn About Python From This Guy On The Internet” I like programming in Python, and sometimes (not more than a few times an hour) I get stuck and google my problem. When I do this it is very common to have Stack Overflow be the...

Python Gotchas

There are only 2 gotchas in Python. The stack overflow post lists them, but also a bunch of other stuff. I ran into both of the gotchas in the space of a week recently and spent some time trying to figure out where the bug was. Here they are in case you find yourself...