Recent pages

An Epic Introduction to PyObjC and Cocoa

PyObjC is one of the most helpful projects I have ever used, but a number of individuals have been having trouble getting started with PyObjC on Leopard because the documentation is in a bit of a disarray. In particular, there didn't seem to be a comprehensive tutorial that could introduce a newcomer to all the important aspects of PyobjC, and that was completely up to date. Here is my attempt to fill that void. With a vengeance.

Writing to Application Support in PyObjC

08/22/2008

Applications may thrive on data, but programmers only thrive on data that is coherently organized. For Cocoa applications, user specific data is stored in an application specific subfolder of the '~Library/Application Support/' folder. Here is a quick look at the code necessary to calculate that Path in PyObjC.

Writing Titles Under Ninety-Five Characters

08/20/2008

A short, dull, and pointless story about why my recent blog entries all have titles under the length of 95 characters.

Deleting From NSOutlineView With the Delete Key

08/20/2008

I was trying to figure out how to delete items from an NSOutlineView with the delete key (and without simply binding the delete key to an NSButton), and it took a bit longer than necessary to figure it out. Here is a simple example that will hopefully help out those in a similar situation.

How to Use Selectors in PyObjC

08/19/2008

Working on a current project I ran into a bit of confusion about how to get selectors working in PyObjC. After a bit of digging I found out that information I needed, and have crafted it into a mildly cohesive document for your development pleasure.

An Introduction to Using CouchDB with Django

08/18/2008

This is the final installment of my series of articles looking at how Django's loose coupling philosophy impacts day to day development. Here we'll be looking at using CouchDB with Django to create a simple web application.

Global Popularity of Programming Languages

08/14/2008

I used Google Insights to look at the global search popularity for a dozen programming languages. Although I wasn't inspired with any particularly valuable insights, its still fairly interesting to see the distributions.

An Introduction to Compassionate Screen Scraping

One of the most common quickie projects on the web is to screenscrape a website and play around with its data. These projects are a lot of fun, and can allow for inventive mashups, but often the screepscraping scripts cause unnecessary load on the site's servers due to inconsiderate technique. This is an introduction to the art of compassionate screenscraping.

A Syntax Coloring Template Filter for Django

08/09/2008

I spent a bit of time this evening writing a template filter for Django that accepts a string of code (and optionally the name of the Pygments lexer to use for highlighting) and returns the code nicely syntax colored. A simple but slightly helpful addition to your templating arsenal.

A Year Later, Home From Japan

08/09/2008

As many of you (if anyone actually reads these) already know, I am back from Japan. Here are a few thoughts about returning back to America.

All Rights Reserved, Will Larson 2007 - 2016.