PyMongo 1.7 and MasterSlaveConnection – TypeError breakage

MasterSlaveConnection: Works in Pymongo 1.6 In my previous article Python, MongoDB and Pylons – Connection handles and all that lark I described the code and configuration we use at Snaptic for working with Pylons and MongoDB. We use the MasterSlaveConnection class to automatically handle read/write splitting, because we expect to be running a single master/multiple [...]

Python, MongoDB and Pylons – Connection handles and all that lark

I’ve been doing a bunch of hacking with Pylons and MongoDB recently for some backend stuff at Snaptic. Right now we are using Paster as the webserver and the Pymongo driver. This all works fine and is pretty straightforward to set up – but there are a couple of subtleties. MongoDB vs SQLAlchemy If you’ve [...]

3 Reasons to Enter the Move Your App! Android Hacker Challenge

Over at Snaptic we just announced our Move Your App! developer challenge. The Challenge The idea is simple: write an Android app which inspires people to move around. 3 Reasons to Enter 1. Actually benefit society Obesity is a huge problem – 64% of adults and 25% of children and teenagers are overweight or obese [...]

Android SDK on Ubuntu

Since I got the N1 a few days ago, I’m quite interested in hacking for the Google Android platform. One of my favourite things about Android is that the SDK is freely available for Windows, Mac and Linux. In fact there is even an an effort to port to *BSD systems, although that still seems [...]

Autocomplete with Python, Pylons, SQLAlchemy and jQuery

Recently I needed to implement my own autocomplete for a project on snagmachine.com. We had a large database of products and wanted to ease data entry by hinting to the user via autocomplete when possible. In future, we can probably just use Freebase Suggest but right now we needed our own solution. The Pieces Autocomplete [...]