Archive for August, 2008

Microwave Chocolate Cake In A Mug In 5 Minutes

« 28 August 2008 | 15:56 | IT & Software | 1 Comment »

Microwave Chocolate Cake In A Mug In 5 Minutes
I don’t normally blog about non-IT related things (although recently i’ve felt that less and less), but food is so much like a second profession to me (the eating part, not the cooking part), that i couldn’t NOT share this link.
i want to try this out now… [...]



Power-levelling enchanting

« 27 August 2008 | 10:02 | IT & Software | No Comments »

World of Warcraft: It’s entirely possible to drop one of your professions, take up enchanting, and be at lvl 275 enchanting (high enough to d/e Outland blues) in one weekend. Don’t let anyone tell you otherwise - i did it.
Only downside is that you’ll spend upward of 1200g. I’m sure i could have easily continued [...]



Object Inspectors will eat your mocking expectations

« 27 August 2008 | 9:13 | IT & Software | No Comments »

I was writing a mock test yesterday which had some explicit expectations about the number of times a particular member would get called.

When I ran the test outside the debugger, the test would fail as i expected it to (being test-first and all).
When I ran the test inside the debugger, the test would fail for [...]



Making Assumptions About An Objects State

« 20 August 2008 | 11:06 | IT & Software | 5 Comments »

I’ve seen this now twice in about 30 mins, and its bugging me.
One of the developers i work with is writing code like this:

1: string postingUrl = CmsHttpContext.Current.Posting.Url.ToLower(CultureInfo.InvariantCulture);

Whats bugs me with this code is that it shows no understanding or care for defensive programming.
Q1: Why do you assume that
CmsHttpContext.Current
is safe? [...]



SQL Index Fragmentation

« 18 August 2008 | 12:49 | IT & Software | 1 Comment »

The great SQL Performance saga continued today, taking a turn for the….ah…..different…
Facts:

The servers are exhibiting high disk I/O activity.
So much disk activity, that all queries are nearly brought to a grinding halt while the disks are thundering away.
The Query Plans for all I/O intense queries use index seeks - no scanning at all.

This leads me [...]



Unit-Testing Setup/Teardown: Purist vs Practical

« 17 August 2008 | 12:38 | IT & Software | No Comments »

I’ve been wondering recently whether it’s important to take a purist line or whether to be practical about the way something is developed or the tools we use…In almost all cases, I agree fundamentally with the purist point of view, but i’m a man of practicality, meaning practicality wins out most times….So why then do [...]



LINQ Raytracer written in 1 statement.

« 14 August 2008 | 10:53 | IT & Software | No Comments »

OMFG.
I think that just about sums up the Fully LINQified Raytracer….I missed this when it hit the blogosphere back in October last year, but wow i’m just gobsmacked….
I found this while reading about Mono’s 100% compliance with .NET 3.0
I feel so suddenly inadequate in what I do…..



This action is invalid when the mock object is in verified state

« 13 August 2008 | 16:32 | IT & Software | No Comments »

I’ve long been noticing the following errors come up at the end of our NUnit testrun, but never had a chance to look into it in detail until now…They’ve never resulted in a broken build, and they do clearly look like something happening outside the scope of our unit test (even if it was caused [...]



DateTime.Parse() is locale sensitive

« 13 August 2008 | 14:30 | IT & Software | No Comments »

The DateTime.Parse() method (and all its derivatives, i assume) are locale sensitive and will assume that the string you provide it is in the standard ISO date format, or in the format for your locale.
The buggy implementation I found in our system was calling DateTime.Parse() with a value of “23-07-2007″, which threw an exception citing [...]



Some LINQ and WPF Basics

« 12 August 2008 | 22:20 | IT & Software | No Comments »

This evening I wanted to get back to my old habits of creating silly spike projects which just test out a particular piece of functionality/feature.
Tonight I have mixed together some WPF forms and binding with some LINQ queries i was learning.
Part 1 - WPF Forms and Binding
What I wanted to learn from this was to [...]



Where are the open-source Code Coverage tools for .NET?

« 12 August 2008 | 17:14 | IT & Software | No Comments »

I posted the following message on a developer list. I’m so frustrated by the lack of alternatives to nCover…..
We’ve been using the free version of NCover in a number of our projects (v1.5.8), and for the most part, we’re happy with what it does.
However we’ve recently come to realise that the free download for nCover [...]



I’m an Uber Cool Light-Weight Nerd

« 12 August 2008 | 11:39 | IT & Software | No Comments »

My wife would disagree.



NAT WinXP under VirtualBox has slow network throughput

« 12 August 2008 | 8:57 | IT & Software | 1 Comment »

I’m currently in the process of building my source repository at home - after well over a decade of neglect i’m importing everything into SVN and organising my little spike projects from various languages, environments, project, you name it.
In any event, my development machine is a virtualised Windows XP running on a Windows XP host [...]



A Programming Job Interview Challenge #14 - 2D Geometry

« 10 August 2008 | 22:07 | IT & Software | 1 Comment »

Well I could tell a lie and say that I knew how to do this, but i dont - so i’ve done a little bit of research and i’m now taking an educated guess as to how I would approach this problem. This might get me disqualified from the comp, but when i was doing [...]



WPF And Animation Basics

« 10 August 2008 | 21:27 | IT & Software | No Comments »

I’ve recently been getting my hands dirty with WPF as a successor to WinForms, and one thing is for sure - its like i’m starting from ground zero, all over again…
What I’ve recently wanted to do was to learn the details of animation in WPF. I’ve read a lot about the animation frameworks built into [...]




The Tomes Of Experience - powered by WordPress (themed by selder) 0.865 seconds.
08:20:48 21-11-2008