Hack Test

August 10th, 2008

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?

Randy Pouch Passes Away

July 26th, 2008

I have just been advised that the inspirational author of “The Last Lecture” and Computer Science Professor passed away earlier this morning.

He lived longer then he was expected to and now he is in a better place. RIP.

Graduation. Yeah!

April 17th, 2008

Brad in Council Robes

Getting Capped.

The Family

Dad

Mum

Brad and Dr Barry McDonald - Head of Statistics

Brad and Professor Ken Hawick - Chair/Head of Computer Science, Supervisor of Traffic Simulator Project, Lecturer for 159.331 Computer Languages and Algorithms and Lecturer for 159.235 Computer Graphics

Brad and Dr Peter Kay - Lecturer for 159.101 Programming Fundamentals, 159.102 Computer Science Fundamentals, 159.233 Computer Architecture

Brad and friend Janice Tan (BBS)

Brad and Cousin Alex Gibson

Brad and former work mate Tina

Brad and Church Pastor/Mentor Mike Donovan

Brad and Uncle Warren Gibson

Brad at the Massey Albany Campus

Brad and Dad at the Albany Campus

OMG I Used Recursion

April 5th, 2008

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!

C-Strings in a Bar

March 24th, 2008

Two venerable C-strings drift into this bar. Says the first: “I’ll have a beer and a dA76hjh^-K…X00;] kg;’l”. The bartender is noncomprehensive. Says the other C-String: “Oh, don’t mind him, he’s not zero-terminated today!”

Code to make my day!

January 19th, 2008

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.

Virtual Boxing Linux under Windows XP

August 3rd, 2007

In my concurrent programming and operating systems lecture at uni the other day, the lecturer was going on about virtualization. I have read a bit about it in the past but as far as I knew it didn’t really work yet. Well how wrong I was. Our lecturer showed us VM Ware by VNCing from the lecture room computer to his office computer running windows xp, he then booted both windows vista and linux. Anyway of course that has got be buzzing so I found Virtual Box a free virtualization software, thanks for the comparison chart wikipedia. And now I have Ubuntu 7 running off Windows XP. I am currently download all 2.8GB of Fedora 7. Anyway here is a screenshot of my Traffic Simulator running in Java under virtualized linux. I am getting some errors in the console because the java on Ubuntu is not perfect, but it still works the app.

Traffic Sim under Virtual Ubunutu

When text filters get it wrong.

August 2nd, 2007

NZHerald Pic http://www.nzherald.co.nz/section/story.cfm?c_id=5&objectid=10455434 The article is about broadband speeds, and the image, I am assuming here, is probably generated automatically by a text filter. Because it is talking about speeds it has inserted a picture of a police officer with a speed camera. Just goes to prove that we have a long way still to go with AI able to detect context in sentences.