Archive for October, 2006
Making it easy
Sunday, October 29th, 2006Ever feel like stalking me?
Djingle Django Scarecrow
Sunday, October 29th, 2006One of the concepts you may run into if you read into Python and its fans in great depth (and here I mean Python of the programming type rather than the Monty type) is that of “Guido’s Time Machine”, the number of times when you are thinking “Would it be nice if Python did this…” and you suddenly find that yes, that’s exactly how Python does it, to the point where the only way Guido could have possibly considered all this would be if he already knew.
I’m having the same kind of thing with Django. Frameworks for validation, existing user system, that kind of thing. Stuff like “Do you know what would be nice? If I could do something so that my Logged in User’s Profile appeared in the default scope of a template, so I didn’t have to pass it in every time, and keep throwing it around the program.” and suddenly, there are Context Processors.
The annoying bits are where stuff is under development, or half documented. For example, Having spent a while creating a User Profile system to associate information specific to this system (Authentication code, invite code, email me alerts, for example) and joined it one-to-one with the user system, I then find a tiny little bit of text in the User Auth system docs which says:
get_profile() -- Returns a site-specific profile for this user. Raises django.contrib.auth.models.SiteProfileNotAvailable if the current site doesn't allow profiles.
This sound really close to what I’ve spend a while doing myself, but that is the first, last and only reference to it in the docs that I can find.
OTOH, I’ve now got a system you can log into and register for, and I’ve got a deeper understanding of how Django works. Yay.
Tick
Sunday, October 29th, 2006Your clocks are wrong
Commander Supreme
Tuesday, October 24th, 2006There is a new trailer for Supreme Commander, which is the spiritual successor to Total Annihilation. It is awesome, and you should see it.
Masterplan
Monday, October 23rd, 2006So, the current plan:
Currently, I am living in a trumped-up bedsit on the outskirts of Bedford town centre, which is a) expensive, b) dull, c) far. I am working at Those who Evolve, and will be until Januaryish, when I will quit. (Again. I have been asked to stay on for a little while longer, which I am doing).
The future plan is to save up for a little while, move to Cambridge, find a new job (Preferably before I starve. Better still: before I move) and find a new reason for existence that won’t either kill or crush me. Then, armed with only a paper blanket and a book of fourteenth century predictions of flying cars, I will defeat the ancient evil that has been enslaving us for generations1, and return to find myself crowned as the one true king of all England.
Probably.
[1] Myspace