A couple of days ago I decided that doing my graduation thesis on a topic that, when suggested, brought a sparkle to my mentor’s eye and made him suggest I might want to think about picking a co-mentor just wasn’t hard enough – so I decided to do the whole thing in Haskell. I want [...]
Simple trick for testing forms full of checkboxes with django
In late 2011 I hope we can all agree that unit testing is pretty important when creating websites or almost anything. Doesn’t really matter whether you prefer a blackbox integration testingĀ approach or a strict unit testing style. What matters is that you have tests. But what do you do when you want to test a [...]
Comments Off
Collect your data carefully, a lesson
For the past couple of months I’ve been involved with an experiment that primarily involves taking a few moments every day to write down some numbers. I haven’t gotten the clearance yet to quite say what exactly the data we are logging represents, but I can tell you about why I’m never again using spreadsheets [...]
The strangestest Hello World I ever made
Image by 0k1n via Flickr Earlier this week while under the influence of being stressed out of my mind being CEO of a startup and watching way too much Sherlock (there are only three episodes, watched every one at least four times) I decided that it was time for a new hobby. The only requirements [...]
Comments Off
Programatically uploading to blobstore in python
Officially this is something that cannot be done. Or rather that shouldn’t be done. When you look at the google appengine docs on “uploading to blobstore” this is what they have to say: Blobs are useful for serving large files, such as video or image files, and for allowing users to upload large data files. [...]
Comments Off
Django protip #1: A better App structure
Image via Wikipedia When I started coding for our latest project at Preona a bit of an epiphany happened. I suddenly got django. Every pattern that used to feel a bit strange and I may have fought a little, suddenly became obvious and simple. Suddenly out of the blue my whole codebase is so marvelously [...]
Small trick for seamless base64 password storage in django
Image via Wikipedia These days even the noobiest of the noobs know that passwords should never be stored in plain-tect on the server. For various good and bad reasons, but the gist of it is security through obscurity. What a few less people know is that base64 is the same as plaintext. Not only is [...]
Splitting and merging django models with perfect transparency
This is a howto that might come in handy to some people, but mostly I just want to document how I poked around some very angry django dragons and created something marvelous. There are also people on twitter who were wondering what the fuck I was doing. So let’s start by describing the problem. We [...]
