« April 2007 | Main | June 2007 »

May 2007

May 24, 2007

Why Ruby?

Scott Hanselman has an interestingly titled post ‘Programmer Intent or What you're not getting about Ruby and why it's the tits.’

Ruby is getting a lot of blog-inches and I began to wonder if I should be paying it some attention….. it is near the Stack but the stack is pretty full:

  1. SQL Server Analysis Services
  2. Consitutional Change in Scotland, including the creation of a bicameral executive
  3. Holiday plans
  4. Reading more fiction
  5. Deciding whether I really care about Python or Ruby or anything like it
  6. Millions of other things in my personal and work life…… and I mean millions.

So, as you can see on point 5, Ruby is kinda on there already. I guess the tone is: am I bothered? And to me, an outsider, I am not sure when Ruby becomes interesting; is it only when you are using Ruby on Rails? Should I have an interest because Microsoft is developing IronRuby and and extending the possibilities of IronPython by introducing the Dynamic Language Runtime (DLR)?

What’s wrong with C#? VB.Net?

But then, in the aforementioned blog post, Scott tells me I can subtract twenty minutes from a date using the following syntax:

20.minutes.ago.

Sad as it is to say, that line of code is pretty impressive.

We’ll see if it makes it onto the Stack. You never know.

Ruby on Rails

Does Ruby on Rails scale? No……. is that true?

.NET Client Application Services

Quick, twitter-like, blogging.

Brad Abrams talks about a cool new feature in Orcas – .NET Client Application Services.

This looks very good indeed

May 05, 2007

IT and the Scottish election

Being an IT Professional - whatever that means - I have been fascinated by the failure of the electronic vote counting machines in the Scottish parliament elections.

Sad, isn't it?

My main interest has been based around trying to uncover what went wrong. If I read the comments from DRS - the company behind the counting machines - can I discover what the real problem was? Or at least have a good guess?

Computerworld.com has the following section from a DRS spokesperson:

"The issue involved a blockage at the end of the counting process, which prevented consolidation of the data." The scanners used to count each vote -- or capture an image of unclear ballot papers for adjudication by the returning officer -- had worked without problems, she said.

The data "was secure in the system" but could not be consolidated into a format showing results that could be passed to returning officers. "That meant the results could not be announced."

The problem had been "a localized one," she said. "The majority [of counting centers] were absolutely fine."

Now, this doesn't give a great amount of detail away but I think it gives some idea of the architecture: there are scanners reading ballot papers at the front-line and these pass messages - images of the ballot paper - into a workflow. A good thing is that the data was "secure in the system," so the messages are atomically persisted. These messages then get passed to a central machine to be counted.

Ok. Nothing special. I know.

So I decided to look at the DRS website and a wonderful PDF which explains how it all works. It doesn't make things that much clearer but it does explain why there is a need for a central counting server; the VotaPad is supposed to be the end-user experience for a fully electronic voting experience. Seeing as the introduction of another piece of paper seemed to cause complete chaos, we can only be incredibly thankful that the Scottish office didn't decide to go the whole hog.

But still it is not clear what went wrong, all we hear is that:

"DRS Data & Research Services, which implemented the automated counting system, admitted it was experiencing problems with the 'consolidation' of the votes."

Further, the Eurosoc website states:

DRS executives have appeared on Scottish television news shows to reassure voters that they have been "having some known issues with the consolidation of results...The e-counting system has not crashed. The system remains secure and robust with all audit information logged. This is a temporary interruption to one small aspect of the overall process."

Now, in my book, an election system that cannot count votes is exhibiting slightly more than a 'temporary interruption.'

So, what went wrong? No idea. Apparently, there will be a full review so we should get all of the answers. Or not, as the case may be.

My guess?

I reckon that the huge number of spoiled ballots - over 100,000 - was an edge-case that DRS and the Scottish office had not tested. In this scenario, I think that larger than expected volumes of failures were recorded in the central database..... 'consolidation' in the DRS terminology. And, in the central database, MIS reports stopped working.....

Now, whenever I hear of problems in a central database that suddenly occur under load I immediately think of deadlocks, especially if reports - i.e. non transactional interactions - stop working whilst updates can continue (albeit more slowly).

What do you think? Any takers? What's your explanation?

May 04, 2007

Scottish election

Eventually, and I won't detail the shambles of the Scottish parliament election in detail, the SNP has been declared as the winner.

I have a fairly positive view of Scottish independence: Scotland has a distinct heritage within the United Kingdom and it feels like it is time to review the Union relationship as it stands. I don't expect everyone to think this way and I reserve the right to change my mind ;-)

All I will say at this moment is this: interesting times ahead.

May 03, 2007

Apple Wireless

The MacBook Pro now successfully connects to my wireless router! Huzzah!

Do you want to know the secret? Well, if you read my previous blog post, you’d know. I ordered an Airport Extreme Base Station.

Seems like now is a good time to evaluate this process…..

  1. Buy a Mac and expect it to work with your wireless network; Macs are excellent at connecting to anything you have – ‘things just work’ as the adverts have it
  2. Spend hours trying to get your Mac to connect to your existing wireless network which your WM5 phone, your work laptop, your personal laptop can all connect to at all levels of security
  3. Discover that your Apple MacBook Pro can connect to the wireless network if you have already had that laptop on the wireless network when you BootCamp’ed into Vista
  4. Think, wait a minute, Vista can connect – I thought Vista was crap and Macs ‘just worked’
  5. Read lots of forums and blogs and find that lots of people have similar problems.
  6. Order the Apple Wireless base station and see if it works
  7. The Apple Wireless base station ‘just works!’

So now I have a new router. This new router sits on top of my old router as my old router has an adsl modem built-in! As with all Apple equipment though, it looks lovely.