When Rails first came out, I was still a PHP guy. Slaving away at a web agency, pushing out website after website and letting designers have all the fun. At the time I didn’t even notice Rails existed. When news of Ruby and Rails finally did reach me, I was fully immersed in Python and… Read more »
Posts Tagged: python
Python and lazy evaluation
I woke up this morning with a clear thought in mind “Generators are awesome! I will write a post about using them for lazy evaluation! Hoorah” After much dabbling I realized how wrong I was. Python‘s generators are indeed cool. They give us the use of infinite lists and they’re useful for conserving memory usage,… Read more »
How to make your django app slow
The task every developer fears “Hey, I sometimes get a timeout when I want to see the last gazillion days of activity in the dashboard. What gives?” This problem started happening for a project I work on a few months ago. Through a lucky sequence of events I was able to push the problem back… Read more »
Learning me a Haskell
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… Read more »
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… Read more »
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… Read more »
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… Read more »
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…. Read more »
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… Read more »
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… Read more »