Posts from 2011

Meet the LARPERs

Austin King

With the launch of our community phonebook, I wanted to talk about it’s unusual data access model. Typical Web Apps Most web applications use a single shared authentication account to access data. Users authenticate to the site as themselves, … Continue reading

Knowing what you want can make a huge difference (…with pymongo)

Peter Bengtsson


So I’ve got a piece of MongoKit code that simply wraps a pymongo query and it looks like this times = defaultdict(list) for pq in (db.PlayedQuestion.collection .find({'play.$id': {'$in': play_ids}})): if pq['time'] is not None: if pq['right']: times['right'].append(pq['time']) elif pq['answer']: times['wrong'].append(pq['time']) What I noticed was … Continue reading