The Working Webbased Election Software
October 13th, 2008Update: Source Code now available. Head over to the software section to check it out. http://www.brad.net.nz/?page=Software
Update: Source Code now available. Head over to the software section to check it out. http://www.brad.net.nz/?page=Software
For the past few weeks I have been thinking seriously about heading back to uni to complete my honours degree.
Currently some of the team in Computer Science at Massey have been playing with JOGL.
I had a look at it the other day but didn’t get very far. Well tonight I decided to really get my hands dirty.
And it rocks! Im currently seeing if I can convert my traffic simulator to JOGL.
Will keep this blog posted on updates.
Here is a challenge for you: http://www.hack-test.com
I am on level 11 and stuck. (A google search got me to level 12 but I still want to be able to solve level 11).
How high can you go?
I can’t believe it.
I was coding today and I actually found a useful use for Recursion.
Basically I was programming a dynamic grid and it was for once easier to use recursion then a double nested loop.
I am stunned myself. And this wasn’t Haskell either it was Java!
I am currently working on a complex website that requires two different companies on two different domains to share the same website. I have just mananged to create a piece of php code to analyse the domain name typed in and redirect to the correct section of the site for that company. Awesome!
$url = $_SERVER['HTTP_HOST'];
if(strpos( strtolower($url), “site2″ )!=FALSE) {
header(’location:site2/index.php’);
} else {
header(’location:site1/index.php’);
}
It is not often that code makes me happy.
This is a shot from the traffic simulator that I am working on with a friend at university as a research project. We have been planning the project and working on the code for a number of months now. But it has really only been in the last 48 hours that we have really started cracking into it, as this semester is the semester that we are really meant to be doing work on it.
Last night I was trying to plan and figure out what variables I needed for the roads to generate cars. And without making too much of a story (because it is quite a bit of a long one), I ended up generating the initial cars, and getting them to move. Something I didn’t think would happen for at least another week. Anyway this morning, I have managed to get them to be aware of the car in front so they don’t crash up the back of it, and accelerate and stop, and other bits and pieces. The whole project has a long way to go (and a 20,000 word thesis as well), but this is some good progress.
Oh and I have attached the performance graphs as well to demonstrate that the cars don’t max out the cpu either.
You can also download a short movie clip here: test.swf