Friday, June 18, 2010

The Seagull and the pigeon

The other day I was walking home from work, and I saw two seemingly innocuous creatures, a seagull and a pigeon. The problem was, this Seagull had just attacked the pigeon and was trying to eat it....while it was still alive. The scene was just brutal, the confused pigeon struggled, while the seagull just kept picking him up, flying up a bit, and flying down and slamming the pigeon into the bricked walkway. The Seagull continued to do this down a flight of brick stairs. I didn't stay to watch.

This type of scene just takes one out of the humdrum of life and reminds one that there are still creatures out there where every day is a life or death struggle, eat or be eaten.

Tuesday, June 8, 2010

Mountains out of NAnt hills

I have been working with NAnt for a while now...a couple of months, and I just discovered a cool new trick. (I say new, but its new to me : )

using the property::get-value() function, I was able to double expand a property.
Here's an example.

<property name="environment" value="test">
<property name="path.test" value="my test path here">
<property name="path.prod" value="my prod path here">


for the final party trick, I came up with:
<property name="path" value="property::get-value('path.' + property::get-value('environment'))"/>

and it will evaluate either the path.test or the path.prod based on the value of the environment property.

Monday, June 7, 2010

Sensor Sensibility

We have an emotion sensor in our office.
You walk past it, and it says....
"Heyyy, you seem like you're having a bad day! Cheer up buddy, its not that bad".

To Blog or not to blog

I highly doubt people will find this interesting, but I have started to blog my pointless daily internal ramblings. I went to the doctor this morning. Had my ears pumped out. It was painless, but noisy. At least I can hear now.