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 [...]
Harmonizing every scale with Python
by Pedro Kroger on 29. Sep, 2011 in 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 [...]
Printing python code with LaTeX
by Pedro Kroger on 10. Apr, 2011 in latex, python
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 [...]
Notes from The 4-hour Workweek
by Pedro Kroger on 08. Oct, 2010 in books, lifestyle
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 [...]
SICP in Python: 1.1 The Elements of Programming
by Pedro Kroger on 01. Sep, 2010 in python, sicp
[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 [...]
SICP in Python
by Pedro Kroger on 31. Aug, 2010 in python, sicp
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.
The Python Quick Reference
by Pedro Kroger on 12. Aug, 2010 in latex, python
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 [...]
Configuring Emacs as a Python IDE
by Pedro Kroger on 15. Jul, 2010 in emacs, python
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 [...]
Python videos
by Pedro Kroger on 25. Jun, 2010 in 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 [...]
- Configuring Emacs as a Python IDE 15. Jul, 2010
- Printing python code with LaTeX 10. Apr, 2011
- SICP in Python: 1.1 The Elements of Programming 01. Sep, 2010
- The Python Quick Reference 12. Aug, 2010
- SICP in Python 31. Aug, 2010
- PyCon 2012 was incredible 25. Mar, 2012
- Harmonizing every scale with Python 29. Sep, 2011
- Printing python code with LaTeX 10. Apr, 2011
- Notes from The 4-hour Workweek 08. Oct, 2010
- SICP in Python: 1.1 The Elements of Programming 01. Sep, 2010
-
Andreas Röhler: python-mode.el should DTRT WRT any Python get r...
-
Aditya Mittal: Hi, I am using Python 3.2 & Python 2.7 on my...
-
A loser: I think there are some issues with the recent pyth...
-
Sébastien Béal: Have you checked how to use all this with emacs 24...
-
Björn Dahlgren: You may want to look into: http://code.google.com...