Archive for the ‘Django’ Category

Why you should try Django : Agility

Tuesday, November 4th, 2008

Disclaimer: I’m not naive enough to think that Django is for everybody and that’s why the title reads ‘try’ and not ‘use’. However, I do think after giving Django a chance and breaking out of your cycle you will be impressed. I also realize due to where I’m aggregated I’m preaching too many of the converted. However, perhaps if nothing else this will help your arguments when persuading others or your work to give Django a go. I’m also going to assume you know nothing about Django or even much about programming. Finally, I write this as I am getting [...]

MSc Research Project Feedback/Questionnaire Request - Clonal Selection Teaching Tool

Thursday, October 30th, 2008

Tony O’Bryan, a good friend of mine is very close to finishing off a very interesting project for his MSc Dissertation. It is a teaching aid for clonal selection algorithms often used when creating artificial immune systems. This is very interesting stuff for anybody interested in Evolutionary Algorithms and/or Genetic Programming. If its something you don’t know this is a great tool to start learning the principles!
To Jump straight to the project click here. Remebmer to do the questionare too.
This project allows you to takes steps through clonal selection algorithms and modify various parameters and the search space. This is [...]

Filter the Django ModelAdmin set

Tuesday, October 14th, 2008

I was playing around today and thought it would be quite cool to modify/filter the query for the ModelAdmin class. Aiming to create helper functionality rather than a security feature. After all django-admin users are (or at least, should be) trusted users.
Either way, it can be handy to filter down the options and clear things up a bit.
When you make the ModelAdmin class in admin.py you can then override the default queryset method. So say for example you have a set of articles and you only want users to be able to edit articles they have originally posted.
So a VERY [...]

Getting Django up and running on Centos 5.2 with Apache(mod_python) and MySQL

Thursday, October 9th, 2008

This is partly for my reference (doing it the second time just now and I forgot everything!) but hopefully it will be helpful for others too.
Disclaimer; I am by no means a Linux expert. This is just how I got it working… If there is a better, easier or wiser way please let me know!
Let’s assume you have Yum installed (I didn’t on my VPS - but my provider installed it for me).
First, make sure you are up to date;

$ yum update

These are the packages I installed (httpd and python are already installed);

mod_python (Apache uses this to run Python)
mysql-server
mysql-devel [...]

Languages I’ve learned in order

Saturday, September 27th, 2008

This is a list of the languages I’ve learned over the years in order. Starting with what I first learnt and going by when I started, not when I became ‘good.’ I’m not that competent with a lot of these now (particularly the first 4) but its interesting to see the Path I’ve taken along the way.

BASIC
Pascal
Visual Basic 6
Perl
C++
Java
PHP
C#
JavaScript
Python

What does your list look like?
UPDATE Oops, forgot BASIC. The good old days using a BBC computer!
This idea was stolen from a post I read on Planet Python, I can’t find it to link back so if it was you or you [...]