Recent Pages

Epic PyObjC, Part 2: Adding a Library & Bindings

August 24, 2008 This is the second segment of the Epic Introduction to PyObjC tutorial series. This time we're looking at integrating the simple metaweb.py library into our project, as well as using Cocoa Bindings and an NSArrayController to make setting up an NSTableView as easy as possible.

Filed under pythoncocoapyobjc

An Epic Introduction to PyObjC and Cocoa

August 22, 2008 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.

Filed under pythoncocoapyobjc

Writing to Application Support in PyObjC

August 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.

Filed under cocoapyobjc

Writing Titles Under Ninety-Five Characters

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

Filed under fail

Deleting From NSOutlineView With the Delete Key

August 21, 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.

Filed under cocoapyobjc

How to Use Selectors in PyObjC

August 20, 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.

Filed under pyobjc

An Introduction to Using CouchDB with Django

August 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.

Filed under djangocouchdb

Global Popularity of Programming Languages

August 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

August 11, 2008 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.

Filed under pythonscreen-scraping

A Syntax Coloring Template Filter for Django

August 10, 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.

Filed under djangopython

A Year Later, Home From Japan

August 9, 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.

Filed under japan