Skip Navigation Links

Posts for: Sep 2007

YouTube - Ross Noble

posted on 9/24/2007 11:01:33 PM ( 1 Comments )


BlogML

Keyvan has put a lot of effort into BlogML over the past 12-18 months, but recently he's upped the ante again.  First he created a new site for BlogML and now he's started writing a bunch of high quality articles which describe BlogML.  You can read the articles here:

posted on 9/22/2007 9:35:44 AM ( 1 Comments )


Coding Horror: On Exposé, Flip3D, and Switcher

Well, Jeff Attwood might start by saying that he's a Vista fan...

Coding Horror: On Exposé, Flip3D, and Switcher

But I think that it takes a certain type of geek to say that they prefer a busy, confusing arrangement of random crap:

Over something beautiful that was designed to be used by humans:

posted on 9/22/2007 9:29:26 AM ( 3 Comments )


Non-Nerd

... although I'm sure that my nerdiness just jumped due to the fact that I'm posting an "I'm not a nerd" image to my blog while eating breakfast!

NerdTests.com says I'm a Non-Nerd.  What are you?  Click here!

posted on 9/17/2007 8:22:02 AM ( 1 Comments )


Typing speed

Like Mitch, I also took the typing speed test:

Not bad, but not as fast as Mitch was though:

 

Although my accuracy was better than his.  I think that, for your typing speed to be "official", you need to be able to sustain it at 98% accuracy for 3 minutes.

As a side note... I might have been slowed slightly by the fact that I was enjoying reading about population control as I typed.  I actually learned a couple of things during the test that were interesting! smile_regular

 

Update:
I quick tweak to my technique seems to have pushed my speed over the elusive 120 wpm smile_nerd

posted on 9/15/2007 12:07:32 PM ( 9 Comments )


Live Applications

This week I installed the new Live desktop applications and have been using them on my 3 Vista computers.  I'm liking some of the integration that you get between these.  For example, yesterday we went across to the local park to fly kites and, I had my phone on me so I took some photos:

 

When I got back home, I plugged my phone into my TabletPC and imported the photos from my phone straight into the new Windows Live Photo Gallery.  From there I used the new "stitch" feature to create the following landscape photo from 3 of the photos:

 

The I used the 'Publish' option within Windows Live Photo Gallery to publish those photos directly to my Live Space:

http://showusyourcode.spaces.live.com/default.aspx

Now I'm using Windows Live Writer - another of the new Live applications - to blog about it.  It would be nice if Windows Live Writer was slightly more integrated with Live so that the 'Insert Picture' module could be configured to pull pictures straight from my Live Space without me having to get the URL's from the Spaces web site.

It's taken a while, but Live's 'Software + Services' stuff is finally starting to take shape.

posted on 9/9/2007 9:31:53 AM ( 0 Comments )


10 Future Web Trends

 

What then can we expect from the next 10 or so years on the Web? As NatC commented in this week's poll, the biggest impact of the Web in 10 years time won't necessarily be via a computer screen - "your online activity will be mixed with your presence, travels, objects you buy or act with." Also a lot of crossover will occur among the 10 trends below (and more) and there will be Web technologies that become enormously popular that we can't predict now.

Bearing all that in mind, here are 10 Web trends to look out for over the next 10 years...

10 Future Web Trends

 

Good read.

posted on 9/6/2007 12:32:29 PM ( 0 Comments )


Serialization Exceptions when calling Web Services from Ajax

Today I was calling a web service from an Ajax client in an application that I'm working on and I noticed that I wasn't getting any results.  To get a better idea of what was going on, I wired up the error handler for the web service call and did some tracing to see the error message.  The error handling code that I added looked like this:

var msg = String.format(
    "Stack trace: {0}\nService Error: {0}\nMessage: {1}\nStatus Code: {2}\nException Type: {3}\nTimed out: {4}",
    error.get_stackTrace(),
    error.get_message(),
    error.get_statusCode(),
    error.get_exceptionType(),
    error.get_timedOut()
    );

Sys.Debug.trace(msg);

I re-ran the application and this is the exception that was getting returned:

Stack trace:    at System.Web.Script.Serialization.JavaScriptSerializer.SerializeValueInternal...
Message: Specified cast is not valid.
Status Code: 500
Exception Type: System.InvalidCastException
Timed out: false

The exception was telling me that there was a serialization problem with the Type being returned from the web service call.  This was interesting to me because I had just changed the return Type of the ws method call.  I initially wondered whether there was some generated JS type that was cached and that the new Type that I was returning was different from it.  That seemed unlikely though so I looked at the members on the new Type that I was returning.  There was a Guid, an Int32, a custom Enum, and a string.  Hrmm.  I decided to remove the Enum property from the Type to see whether it was causing the failure, and sure enough, my application ran fine.  Here's the Enum that I was using:

public enum PinType : short {
    Standard = 0,
    Favourite = 1,
}

Next I added the enum based property back but I changed the enum so that it was a standard Int32-based one.  Again, it ran fine... so the problem is obviously that the built in JavaScriptSerializer cannot handle short's.  In my case I just decided to cut my losses and leave my enum inheriting from Int32, but here's an article that describes a bit about how to implement your own custom Json serializer to use with non-supported Types:

http://www.asp.net/ajax/documentation/live/mref/T_System_Web_Script_Serialization_JavaScriptConverter.aspx

When you have written your custom converter you can either add it programatically or via the web configuration file like so:

<jsonSerialization maxJsonLength="500">
    <converters>
        <add name="MyConverter"
            type="MarkItUp.CustomEnumTypeConverter"/>
    </converters>
</jsonSerialization>

posted on 9/4/2007 4:45:43 PM ( 1 Comments )


BBC World Service - A high quality online resource

The BBC website is a truly great resource with heaps of quality archives of content such as podcasts, special features, interviews, and programs.  As an example, yesterday while I was travelling in the car to hockey, I was listening to the BBC World Service via our own Australian ABC radio channel.  On the radio at the time there was an interview with Stewart Butterfield, one of the creators of FlickrAs I was listening to this interview, Mitch rang  - and I mentioned to him about the interview.  When Mitch asked for a link to the interview audio file I told him that I was listening to it in the car on the radio but that I'd chase up the link when I got home.  Sure enough, a quick search shows that the BBC already have the audio file uploaded and available for listening to:

BBC World Service | Interview with Stewart Butterfield

posted on 9/2/2007 8:55:20 PM ( 0 Comments )