Python Profiling - Part 1

I gave a talk on profiling python code at the 2012 Utah Open Source Conference. Here are the slides and the accompanying code. There are three parts to this profiling talk: Standard Lib Tools - cProfile, Pstats Third Party Tools - line_profiler, mem_profiler Commercial Tools - New Relic This is Part 1 of that talk. It covers: cProfile module - usage Pstats module - usage RunSnakeRun - GUI viewer Why Profiling:...

May 15, 2012 · 4 min

PyCon 2012 Review

PyCon 2012 was held at Santa Clara, California. Tutorial: I was there on the Thrusday to attend a tutorial called Python Epiphanies. The tutorial was educational in understanding some of the inner workings of Python. But I have a hard time trying to figure out how to use the knowledge I gained there. Opening Ceremony: We had ROBOTS. ◀ 1 of 3 ▶ And they were dancing…. how cool was that?...

March 20, 2012 · 3 min

Memoization Decorator

Recently I had the opportunity to give a short 10 min presentation on Memoization Decorator at our local UtahPython Users Group meeting.  Memoization: Everytime a function is called, save the results in a cache (map). Next time the function is called with the exact same args, return the value from the cache instead of running the function. The code for memoization decorator for python is here: http://wiki....

February 10, 2012 · 1 min

Productive Meter

A few weeks ago I decided that I should suck it up and start learning how to develop for the web. After asking around, my faithful community brethren, I decided to learn Django from its docs. ::Django documentation is awesome:: Around this time I came across this post about Waking up at 5am to code. I tried it a few times and it worked wonders. I’ve been working on a small project that can keep track of my productivity on the computer....

February 9, 2012 · 1 min

Too Many Classes Too Little Time

I’m taking a couple of the free online classes offered by Standford. One on Artifical Intelligence and one on Machine Learning. I haven’t had so much fun since kindergarten. Actually that’s not fair, I didn’t enjoy kindergarten this much. I’m listening to the classes during my lunch, after work, during weekends. I’m working on my assignment with so much enthusiasm, I dread the day when this class ends. Stanford just announced a slew of new online classes offered starting in Jan 2012....

November 21, 2011 · 1 min