2009
30.10

I have seen a few people struggling with how to center their single image Deep Zooms on a specific point on their screen. Here’s how I do it.

void msi_Reset()
{
    msi.UseSprings = false;
    msi.ViewportOrigin = new Point(0, 0);

    msi.MotionFinished += new RoutedEventHandler(msi_Center);

    double MSISize = 3;
    if (msi.AspectRatio > 1)
    {
        msi.ViewportWidth = MSISize;
    }
    else
    {
        msi.ViewportWidth = MSISize / msi.AspectRatio;
    }

}

void msi_Center(object sender, RoutedEventArgs e)
{
    msi.MotionFinished -= msi_Center;

    Point center = msi.ElementToLogicalPoint(new Point(-msi.ActualWidth / 2, -msi.ActualHeight / 2));
    center.X += 0.5;
    center.Y += 0.5 / msi.AspectRatio;

    msi.ViewportOrigin = center;

    msi.UseSprings = true;
}

Read More >>

2009
26.08

Defaced

I looked at my Blog today and it looked a little different.

hacked

I feel special :D

Read More >>

2009
08.05

I finally managed to get the Silverlight 3 beta installed and working on my work computer yesterday after facing a few issues.

The first issue I faced was needing to do an offline install since the Silverlight Tools installer was blocked from downloading the required files. This was easy enough and the process can be found on Tim Heuer’s blog.

After that I thought I would be away laughing but when I loaded up Visual Studio I had no syntax highlighting on XAML files and all these errors saying “Package ‘Microsoft.VisualStudio.Xaml’ has failed to load… blah blah… You may use ‘devenv /resetskippkgs’ to re-enable package loading.”

Running the ‘devenv /resetskippkgs’ didn’t seem to do a lot and it was about here that things all started to go horribly wrong. I uninstalled Visual Studio, tried the express editions, reinstalled Visual Studio, uninstalled Silverlight 3 beta, tried installing Silverlight 2… but it failed. Somewhere along the way Silverlight 3 wasn’t uninstalling completely and I managed to find Bob Pomeroy’s Blog on how to manually clean a bad Silverlight install.

So after deleting a few registry keys, a program files folder and a half finished install I was all set to try again.

This time everything installed sweet as and everything’s working as it should.

2009
24.04

I’ve got an awesome view of the ANZAC Day – National Wreath Laying Ceremony today. I’ve got a clear view of the exterior of the National War Memorial out of my apartment window and the inside view is being broadcast live on TV 1.

NZ National War Memorial

The guy presenting the ceremony on TV mentioned something about the RSA website where I found this online Field of Rememberance. I thought the donation model based around mobile phone content was pretty cool. I brought a couple of the wallpapers but its got me wondering what sort of apps which could be made for the RSA for next years ANZAC day.

2009
23.04

Holy hell the last week has been busy. Last week while I was up at Web09 I was talking to Nigel Parker from Microsoft and he invited me along to the Expresion For Art’s Sake workshop that he was holding here in Wellington this week. It just finished today and since it started I have spent pretty much spent every waking hour knee deep in Silverlight development.

Before this week I had hardly touched Silverlight and now I don’t think I can live without it. Even though Silverlight is very different from Flash, I think having that Flash background let me pick it up fairly quickly. I have spent most of this week working on a Deep Zoom project which I will keep chipping away at over this weekend and hopefully have something to show next week.

Its unreal to think how much I have learnt from this event. On Monday I wouldn’t have known where to start yet now I feel like I could knock anything out as a Silverlight app. I have to redevelop our wayfinders at work by the end June and I think that this will be an ideal project to truly put Silverlight through its paces.

Ah well big thanks to Nigel , Tim and Arturo -  for the awesome week thats been.

2009
15.04

Blogs Up

In a couple of weeks I have some major adjustments to do on our Wordpress site at work so I figured the best way to learn how would be to jump in and make one for myself.

It’s all a bit plain at the mo but I’ll add to it when I feel the need.

I’m off to Web09 in Auckland tomorrow for a few days, I’ll update when I get back.