Tuesday, 6 April 2010

No. 4 of 627 idiotic things to do at an airport

I mean, FFS.

"Women try to take body on plane at Liverpool airport"

Full story

Amazing.

Monday, 29 March 2010

Clueless Coders

Seen in some source code recently:

// I copyed this bit form the example

// Dont know what it dose I think It will break the app on all events

Friday, 26 March 2010

Overheard at work...

I overheard this at work today. Made me chuckle:

I have to write all these blasted 'DummyViewModels' so the boss can work in Expression Blend because he's an absinthe drinking 'artist'

He'll probably come in with an ear missing on Monday

Superb. :)

Monday, 22 March 2010

What a weekend.

Well, its all go here. Got the contract through from the agency for the new position, so moving on after 3 years in my current job - off to work for a bank in their Wealth Management department so quite exciting.

So this weekend, I was out riding a horse when it decided to gallop off under a tree - I and the horse departed company, and now I have a big bruise on my arm where the tree hugged me. Damn.

Later on, I walked into a door and near enough knocked myself out. Damn.

This morning I woke up to find I had left a pan of chicken stock on the stove all night - it was a bit smelly and burnt. Damn.

So, a bit eventful. :)

I have some photos of Chatsworth and Glasgow added to my album.

Monday, 22 February 2010

Number 3 of a list of 627 really idiotic things to do with Twitter

"A Twitter user who posted a "joke" bomb threat against a UK airport could be jailed after pleading guilty to sending a menacing message...[he] has already been suspended from work and banned from Robin Hood Airport for life"

The whole story here

What a plonker.

Thursday, 4 February 2010

Converting from local to UTC in C#

Its one of thse things that should be easy.
However if you get your DateTime from a database it will be anonymous, i.e. it will not have its kind set.
So, do this:

DateTime ConvertFromLocalToUTC(DateTime localTime)
{
DateTime anon = new DateTime(localTime.Ticks, DateTimeKind.Local);
DateTime dtUTC = anon.ToUniversalTime();
return dtUTC;
}


Oh, and, in other news, happy Imbolc!

Wednesday, 6 January 2010