Latest diary entries

Ramblings about cats, games and miscellanea.

Hello and Good Morning

For those of you who enjoy reading about the minutia of my life, I have just had a shower and am about to have a shave, and for some unknown reason, my shower has decided that it would be a good idea for the water to flow out of a small plastic tube in the bottom of the heating unit, rather than the more conventional manner of flowing, from the shower head.

For the rest of you, apologies, there will be no entry at this time.

That is all.

Read full entry

SEMI-VICTORY!

My ray tracer works!

Well, it works in that it renders spheres to the console. It's a start. And it also means that my data structures work, and should be ready for more complicated things once I've added them. Which is nice :)

Oh, and I found out why I didn't win the lottery last weekend - it's a rollover today, they're saving it up.

Read full entry

Yay For Leakage

Spot the intentional *cough* error in the following C code:

mystruct *create(int bar) {

mystruct *a;

a = (mystruct *) malloc(sizeof(mystruct));

a->foo = bar;

return a;

}

mystruct *add(mystruct *a, mystruct *b) {

return create(a->foo + b->foo);

}

int main() {

mystruct *leaky_goodness;

leaky_goodness = add(create(1), create(2));

printf("I leaked all over myself: ", leaky_goodness->foo);

return 0;

}

If you don't do C, all you need to understand is that I'm very stupid.

If you do do C and you still don't see it, take a look at what happens to the three mystructs I create... Oh ...

Read full entry

Woo

So, I have new glasses. Shame they look crap and I can't see straight because they got my prescription wrong...

However, agents is handed in, which is nice - one less thing to worry about.

Read full entry

We know you are soft cause we've all seen you dancing, We know you are hard cause we all saw you drinking from noon, Until noon again

Good morning. So anyway, I failed to finish the tonbschl site last night, although I did repackage my agent so that it had my agent .class in it rather than the .java...

I know I slept through 2 alarms, and remember hearing two others; since I only have 3 alarm clocks, which means I must have re-set one to go off later without waking up (they dont have snooze buttons), which is pretty impressive. Well, at least I think it is.

Anyway, time to get ready and get the bus :)

Read full entry