One of my clients demanded I do a recent project in PHP. Alarm bells all ’round, but hey, I used to do a lot of things in PHP before I got fed up with the inconsistent API and I hear many people still use it. It’s clearly a viable technology for … things. Sure thing [...]
Blackbox testing node.js apps
One of the best features in Djangois the test client that comes with the test framework -> blackbox testing baby, yeah! Blackbox testing is my favourite kind of testing. Much more useful than unit tests and generally a lot easier to write, maintain and deal with. And that’s because rather than making sure all your [...]
Parsing JavaScript with JavaScript
Over the weekend I started working on llamaduck- a simple tool that aims to figure out whether your code will run on the newly released node 0.6.0. Eventually it might be able to perform other compatibility assessment tasks as well, but I’m focusing on simple stuff first. Or at least I thought it was simple. [...]
I learned two things today 27.8.
Today I learned that jet lag is a much uglier beast than I ever anticipated. I don’t remember having this much trouble last time I came back from the US; perhaps because I wasn’t there for as long and the different timezone didn’t seep into my sleep cycle as much? All week I’ve been getting [...]
Comments Off
node-unshortener can unshort any url
Lately I’ve been spending my evenings and nights working on a super secret and above awesome project that I will talk about … soon, when it’s a bit more ready. tl; dr -> github link to source That project deals mostly with Twitter and harnessing url’s from the stream. As anyone who’s sniffed at Twitter [...]
Doing nothing is the hardest thing ever
Image via Wikipedia Here’s the situation: at my startup (Preona) we’re pushing to submit the final-ish version of LazyReadr to the App Store. We thought we’d be finished last Friday. Then we thought we’d manage to finish by Sunday. Now we believe we’ll have a reasonably crossed-out TODO list on the whiteboard by Wednesday or [...]
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 #2: Forms are awesome
Image by warrenski via Flickr Welcome to another installment of Swizec’s Django protip. Previously we discussed a better way to structure your django apps, but nobody cared about that because everybody is rather silly. This time we’ll be talking about how awesome forms are and why you should be using them for pretty much everything. [...]
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 [...]
