Search This Blog


Thursday, June 19, 2014

Santiago, Chile

Great summary of Santiago: beautiful mountains, a BIG air pollution problem, lots of buildings ... and, of course, we are football fans.

Monday, June 9, 2014

Beamer ref

This is a great reference for beamer.

Monday, June 2, 2014

My Essential Sublime Text plugins

This is a personal matter, so this is mostly for self-documentation, but feel free to suggest other plugins you find essential for your own workflow.

Tuesday, May 20, 2014

Need to write a Python decorator?

Before diving into your preferred development environment, you should check if it has already been written. Here you can find several decorators to cover many common cases (momoization singleton, logging, etc.).

Saturday, May 17, 2014

Python debugger cheat-sheet

Before using it:
import pdb
A break point in the code:
this will stop the interpreter at that point in the code. Just a quick reminder of the most important commands while debugging:
  • (Pdb) p <var>: print variable <var>
  • (Pdb) l: show current place in the code
  • (Pdb) u: move up on the stack
  • (Pdb) d: move down on the stack
  • (Pdb) n: execute the next statement
  • (Pdb) c: continue running (run until the end, or the next breakpoint)
  • (Pdb) r: continue running, but only until the end of the current subroutine
  • (Pdb) s: step into
  • (Pdb) q: quit
A great and more complete reference can be found here

Thursday, April 24, 2014

Virtualenv+Git how to

If you do Python development, and don't use virtualenv, you should start right away! Not convinced? Just do some internet searches and get convinced. The problem then becomes, how to handle this with your preferred SCM. I use Git, so that's what I'll describe, but the concepts should easily translate to other SCMs.