A developer De- and Re-Tuning his Instrument

MySQL 5.5.40 was running beautifully from the command line yesterday (`mysql -u root -p`), as well as with Python. Well, today I installed nginx – running on OSX 10.6.8, by the way – and in the process of doing that, inadvertently (hastily? stipidly? thoughtlessly?) did a `sudo chown -R myname usr` whoops! Well I think … Continued

Looping through Dict with SetDefault

There’s this great Pythonista, Jeff Knupp, (who offers mentorship, but ignores my emails), that actually lives in Hoboken, where I grew up. But all of that is beside the point. Like a lot of programmers, he seems to enjoy making newbies like myself contort our brows. He’s got a great tutorial that explains referencing in … Continued

Lame Programming with Echonest

Finally realized how simple it is to use a Queue to trade speed for memory. In other words handle the data a bit at a time. All this code does is add the filenames from a specified directory into a queue, then one at a time make echonest.remix.LocalAudioFiles out of them and save them to … Continued

Namespaces, referrers, referents, inheritance and confusion

Struggling with ways of saving echonest audio objects for later use has lead down the road of multiprocessing (probably misguidedly), into pickling and from there to the dill package (library), which opened a door to some ignorance that may be leading into further understanding of namespaces, referrers, referents and inheritance. See, Dill includes two modules … Continued

Getting Started Working with DOT files in GraphViz

ObjGraph, which is used for graphing objects in Python to find memory leaks (among other things) utilizes GraphViz, and in my case, on OS X 10.6.8, the graphic files were not being generated (as of this writing they’re still not), so got into calling GraphViz directly in the troubleshooting process. Once GraphViz is installed in … Continued

The Detect Methods of Pythons Dill Package

[In Progress] Possibly the greatest thing about OpenSource projects is that they combine democracy, communism, consensus and cooperation. Python, for example, was created by a man named Guido, but has been developed by dozens of not hundreds of others for free use and modification by any and all. The particular package this article will explore … Continued

Nice Xplanation of O(n log n) and The Big O in general

Understanding what is meant by “the big O”, O(n^2) or “order of n-squared” and O(n log n) are key in digging into algorithms. Here’s a nicely written and understandable tutorial: http://www.crsr.net/Notes/BigO.html If you’re like me and didn’t (or don’t) know what log stands for, it’s Logarithm.

Getting the Python Echonest Remix Package Running

Just an overview of the steps and locations: Echonest Home Page Echonest Dev Center Get an API Key The Pyechonest Package (there are other libraries like for Java, iOS, PHP, C++) The Remix package Can install from command line with: easy_install -U pyechonest Original package recommendation was to install Remix via: sudo pip install remix … Continued