New Play Counts from an Old iPod

I found myself with a recent iTunes library and a long lost iPod. This is how I updated each to reflect the grand total play counts in the current library. A year ago my MacBook crashed. I had the music backed up, but restoring the files doesn’t include the metadata. In this year I’ve added [...]

Read full story Comments { 0 }

Movember

Because mustaches are fun and good health deserves attention! Here’s a video of my month’s work, and here’s my official mo page. (Seems like a few of the final frames are missing, just imagine exponential growth in the final days.) Your browser does not support the video tag

Read full story Comments { 0 }

Learning Rates and Local Minima

I wrote a neural network and was glad to see it perform well learning XOR and other basic functions, but scaling it to recognize handwritten characters introduced more unpredictable performance. It demonstrated some successes polluted with frequent rounds of complete nonsense; series where the success rate was worse than even a random guess. To try [...]

Read full story Comments { 5 }

A Start in Machine Learning

A neural network is a standard structure used in machine learning and its simplest implementation is the perceptron. A perceptron is a simple neural network; a network with only a single layer. It’s quite limited in its ability, but certainly can learn, and that’s awesome. I recently got a kick out of writing my first [...]

Read full story Comments { 0 }

The Visitor Pattern

Because object-oriented design is awesome and there’s much to learn, we’re gonna look at the implementation and advantages of the visitor pattern. The visitor pattern is used to easily add functionality to classes without needing to mess with the base classes themselves. There’s a nice clean layer of separation between the core classes and the [...]

Read full story Comments { 2 }

OS X Tab Completion

Even though there’s an option to format a case sensitive partition for Mac OS, the default is case insensitive. So why does Terminal not do case insensitive auto-completion? Dunno, but it can! With one line: set completion-ignore-case On Add that to ~/.inputrc and restart Terminal. You can also get Windows-like guessing on multiple possibilities by [...]

Read full story Comments { 0 }

Python Decorators

Decorators in Python can make code cleaner, more readable, and easier to write. A decorator alters the functionality of a method by passing it as an argument to a class or function. Then on each call of the original method, the decorator class/method is called instead, including the manipulation on the original method. This example [...]

Read full story Comments { 0 }