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.
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.
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.
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.
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.
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.
I spent a while today writing a fairly kind content scraper for OneManga.com, which shows how to use Python's httplib2 and BeautifulSoup to scrape data with a flexible api and minimal http connections.
Today I finished reading Po Bronson's "The Nudist on the Late Shift." Its an interesting look at a wide swathe of different players in the Silicon Valley internet bubble. Well, to be more precise, in the first Silicon Valley internet bubble. Looking at the state of Valley entrepreneurship today, almost ten years later, much of what Bronson has to say is still intensely relevant.
I spent much too long today trying to figure out how to implementing drag and droping selected text onto an application's Dock icon (and its Finder icon as well), and will proceed to share this knowledge with you in the hopes that related searches will not leave their queriers quite as lost as I was.
Recently I received a comment wondering how to approach writing a wrapper library on top of an existing library. Although writing wrapper libraries is hardly a lost art of antiquity, developing a new interface to a library can create a lot of added value without too much effort, so it seems like something deserving of a couple hundred words.
All Rights Reserved, Will Larson 2007 - 2014.