PyCon 2012 was incredible

I attended the 2012 PyCon in Santa Clara were I presented the tutorial Making and understanding music with Python and a little bit of Math. I think the tutorial went well, and I’m in the process of moving the teaching library I used in the tutorial to it’s own github repository (with better code and documentation). My [...]

Share
Read full storyComments { 0 }

Harmonizing every scale with Python

I was advising some students the other day about harmonizing non-traditional scales and someone mentioned how it would be useful to have a list of harmonizations for every possible scale. I bragged that I could write a program in half-hour to accomplish it. Of course it took longer than that, but I quickly wrote a [...]

Share
Read full storyComments { 1 }

Printing python code with LaTeX

Call me old fashioned but I like to review my code by printing it. Yes. Printing. On dead tree. The advantage of reviewing code on paper instead of the monitor is that I can give my eyes a break and I can annotate more freely, connect things with arrows, draw boxes, etc. I don’t print [...]

Share
Read full storyComments { 8 }

Notes from The 4-hour Workweek

The 4-Hour Workweek is a great book with lots of good advice. I had some notes about the first edition gathering dust in my hard drive and I decided to post them here. They probably don’t make a lot of sense if you haven’t read the book, but I think they are good for a [...]

Share
Read full storyComments { 1 }

SICP in Python: 1.1 The Elements of Programming

[I'm writing a series of posts about SICP in Python. You can read more about the reasoning in the introductory post.] The first chapter is about building abstractions with functions. I think it’s remarkable that a book for beginners (pretty smart beginners, but still) introduces assignment only in the third chapter (on page 220). I really [...]

Share
Read full storyComments { 4 }

SICP in Python

Structure and Interpretation of Computer Programs is considered one of the great computer science books. Some claim it will make you a better programmer. I’ll post how the ideas in SICP will translate to Python.

Share
Read full storyComments { 1 }

The Python Quick Reference

I uploaded a new version of my Python Quick Reference. You can access it by clicking on the top menu. The Python cheat sheets I found on the internet were either too long, not too pretty, or didn’t have the source available so I could change it to fit my taste. I designed the Python Quick [...]

Share
Read full storyComments { 2 }

Configuring Emacs as a Python IDE

Emacs is a huge beast. It can read email, play tetris, act as a file manager, display google maps, and even edit videos. It has support for many, many programming languages and has many features related to programming. Unfortunately, emacs doesn’t have a full programming environment for python out-of-the-box. In this post I’ll show how to [...]

Share
Read full storyComments { 37 }

Python videos

The are quite a bit of nice python videos on the web. In this post I’ll list some of them. PyCon The videos from the 2009 and 2010 python conference are available at blip. I don’t like the browser interface in flash, though, so I prefer to browse the archives. A better alternative is to [...]

Share
Read full storyComments { 0 }

Page optimized by WP Minify WordPress Plugin