Wednesday, May 21, 2008
 
   
 
Welcome to my site

First let me say thanks for stopping by my site. My name is David Hanson-Graville and I am a IT consultant working in the UK. Let me make it clear, I am passionate about technology and specifically .net and its various forms. I've programmed in a range of langages, but I can say, I am now at my happiest when coding with c#. I hope my blog is an enjoyable & educational read and please feel free to email me at David.Hanson@OnTheBlog.net if you have any questions. 

Search Minimize
Print  

Archive Minimize
Print  
Dipstick Survey Minimize
What technology are you most excited about?











Submit Survey  View Results
Print  
Contact me Minimize
Print  
Silverlight News Minimize
silverlight - Google News
  1. Silverlight version of New York Times reader for Macs - ZDNet

    Published Tue, 20 May 2008 23:24:45 GMT by
  2. Silverlight 2.0 offers paradigm shift - ZDNet Asia

    Published Wed, 21 May 2008 04:31:02 GMT by
  3. Getting Started with Silverlight - HTML Goodies

    Published Tue, 20 May 2008 20:34:39 GMT by
  4. Microsoft Silverlight Partners with Nokia Smartphones - GameSHOUT

    Published Tue, 20 May 2008 21:47:50 GMT by
  5. Novell Releases Silverlight for Linux Source Code - Redmond Channel Partner

    Published Mon, 19 May 2008 23:30:12 GMT by
  6. Silverlight becomes Moonlight - Howrah News Service

    Published Mon, 19 May 2008 18:55:13 GMT by
  7. Novell produces lead pony for Silverlight - ZDNet

    Published Sat, 17 May 2008 13:03:03 GMT by
  8. Silverlight Media Elements - Dr. Dobb's Journal

    Published Mon, 19 May 2008 13:00:43 GMT by
  9. Flash and Flex continue to blow away Silverlight - CNET Blogs

    Published Mon, 19 May 2008 12:45:54 GMT by
  10. Moonlight, the Silverlight for Linux project, releases first ... - ZDNet

    Published Fri, 16 May 2008 18:23:05 GMT by
Print  
The Thinker Minimize
Author: David Hanson Created: Wed, 02 Jan 2008 20:28:49 GMT
All things .net, wpf, XAML, C#, Workflow Foundation and many more.

.NET 3.5 SP1 & Visual Studio 2008 SP1 Beta released
By David Hanson on Tue, 13 May 2008 08:31:57 GMT

It seems .Net 3.5 SP1 and Visual Studio 2008 SP1 beta are now available from Microsoft for download. This release brings a number of fixes for hundreds of bugs that have been reported by customers.

This download installs Visual Studio 2008 SP1 Beta. Visual Studio 2008 SP1 includes support for SQL Server 2008, new ADO.NET features such as the Entity Framework, improvements to the WPF designers, WCF templates for Silverlight projects, debugger support for the .NET Framework public symbols and source release, control improvements such as the DataRepeater for Windows Forms and Office 2007 Ribbons for C++, and several general updates for debugging and IntelliSense. SP1 also enhances the stability, performance, and security of many features.
 
The included .NET Framework 3.5 Service Pack 1 adds many new features and fixes, including the following:
.NET Framework Client Release (“Arrowhead”)
·         ASP.NET Dynamic Data
·         ASP.NET Routing
·         ADO.NET Data Services
·         ADO.NET Entity Framework

I’m just hoping that it resolves the constant OutOfMemory exceptions I get when working with the WPF designer. You can find the downloads here.

Comments (0)

Oldest running code?
By David Hanson on Mon, 12 May 2008 09:08:03 GMT

Slashdot poses an interesting question asking what is the oldest code still running today. Of the 600+ comments so far I have cherry picked a few that I thought were good choices.

·         The software on the Voyager and Pioneer SpaceCraft 1977
·         Digital watches
·         Heavy machinery used from the late 50’s
·         Babbage Difference Engine (Currently running in the science museum London)
·         Worryingly – Air Traffic controls system code from the 60’s
·         DNA – At least 2 billion years old! J
 
 
But my personal favourite!
 
Comments (0) More...

Cosmic Crashes
By David Hanson on Tue, 29 Apr 2008 19:51:56 GMT

 

I was catching up on some podcasts during my drive to work recently and came across an interesting topic on the BBC's Digital Planet podcast. The discussion was regarding the “impact” cosmic rays can have on our desktop computers and more importantly very expensive grid platforms such as IBM’s Blue Gene. Computer crashes can be annoyng to the average user but on grid platforms running simulations that require accurate data they can be very costly. During the podcast they had interviewed with an Intel researcher (who's name I have forgotten sorry) who was discussing his strategies for counter acting the effects these highly energetic particles can have.

Before I outline his proposal it’s probably worth explaining some rudimentary physics.
 
What is a cosmic ray?
Answer: A cosmic ray is a particle with mass greater than zero that has been been accelerated to a speed that is approaching the speed of light.
 
How does it get that fast?
Answer: A range of cosmic events can cause this but let’s just say for this blog, a star exploded millions of years ago and that it is this explosion that caused the cosmic ray.
 
I heard that most cosmic rays just pass right through us.. How come?
Answer: Well thanks to ...
Comments (0) More...

LINQ to Reflection Part 3: Updating Fields
By David Hanson on Mon, 28 Apr 2008 13:30:07 GMT
In part 2 of this LINQ 2 Reflection series I took you through how we go about querying fields that may existing within an object graph. Before we proceed, it’s important to remember that a call to object.Field<T> will return an instance of type Linq.Reflection.Field. As part 2 focused purely the reading fields it’s about time we take a look at how we can go about updating them. If we look at the intellisense that Visual Studio provides for the Field<T> class we can see that this class has an Update<T> method. Shown below.
 
 
Firstly, as the Update<T> method is contextual, there is no requirement to pass the name of the field we wish to update as this can be inferred from its parent. Secondly, As the Field<T> returns a generic class of type T it also allows us to infer the Type of value we wish to update. Below is a simple update statement on a person entity.
 
person
    .Field<string>("_firstName").Update("James")
    .Field<string>("_lastName").Update("Brown")
    .Field<DateTime>("_dateOfBirth").Update(DOB);
 
The Update<T> method of the Field<T> class returns an instance of the parent object we are currently working with. Internally the Field<T> class passes the parent context down our chained methods. Therefore we have the ability to move up the object graph if so desired. In this situation, where we are updating 1 of many fields on the parent ...
Comments (0) More...

LINQ to Reflection Part 2: Reading Fields
By David Hanson on Fri, 25 Apr 2008 11:34:23 GMT
In part 1 of my LINQ to Reflection series I outlined some of the key drivers behind me creating a set of extension methods that can be used to query any CLR type. I also outlined that I am looking to extend this further with support for reading/writing of data, mocking, invocation, interception and other useful behaviours.  This post is purely focused on the reading of field data using the LINQ to Reflection extension methods.  
 
Before we get into the details of how we query data, we first need to create some tests data that will be used for each sample. Below is a method that is used to build object graph that is comprised simple and complex types with multiple child objects.  Note: We are already starting to use our LINQ to Reflection methods in order to create tests data.
 
        ///<summary>
        /// Sets up an object graph for our different test scenarios.
        ///</summary>
        public static Person GetTestData()
        {
            Person person = new Person();
     &a ...
Comments (1) More...

WPF: Could not create an instance of type '{0}'
By David Hanson on Fri, 25 Apr 2008 09:10:57 GMT

If you get this error in your designer when working with XAML in Visual Studio 2008...make sure you dont have any visual elements that inherit from an abstract class.  May seem obvious but can be easily missed.

Could not create an instance of type '{0}'

Comments (0)

The rise and fall of social networks
By David Hanson on Wed, 23 Apr 2008 19:47:05 GMT

It seems every six months a new social network is on the scene. If I was to guess who currently reigns supreme I would imagine facebook is likely to be in there. Google trends provides us with some insights into this question.

facebook, myspace & bebo

I will run this graph in a year and see how its changed. Until then make your own minds up.

Comments (0)

Linq to Reflection: Part 1
By David Hanson on Wed, 23 Apr 2008 09:25:08 GMT

Firstly.... before you read this, I would really like feedback on this series of posts and the ideas it outlines. I wanted to get that request made on the first line as apparently most humans skip the next paragraph when searching for info. So with that out of the way I will outline what this post is really about.

 
These posts are the result of a bit of a mishmash of ideas that I have been thinking about of late. The project I am currently working is fully agile, therefore test driven development plays a key role in the day to day work a developer encounters. We perform integration testing, interaction testing, unit testing & business testing as well as a few other kinds of testing during the course of writing functionality. The project has also recently migrated.NET 3.5 and a result we have started to take advantage of some of the languages features such as LINQ.
 
When I first heard of LINQ I must admit I was sceptical. I am one of those developers who likes to have a thorough understanding of the architecture prior to implementing it my code base. (Remember VB web classes anyone).  I picked up the Pro-LINQ book from Apress a while back and spent a weekend reading from cover to cover. So before I continue I will clarify my position on these technologies.
 
LINQ to Objects is superb.
LINQ to XML is just as good.
LINQ to SQL is good but not there yet! (Release 3 Perhaps).
LINQ to Entities (Barge pole and touch come to mind).
 
So with  that said I will try and move onto the focus of ...
Comments (1) More...

WPF: How to stretch columns in a ListView
By David Hanson on Sun, 13 Apr 2008 21:21:11 GMT
The ListView control in WPF is a powerful option when trying to present tabular data to users. It supports many of the common behaviours found in grid controls as well as the full WFP templating architecture we have all come to love. Below is a simple of example of a ListView which has been bound to a collection of strings. The example uses a template GridVewColumn and a 3 standard GridViewColumn’s to display the data.
 

And here is the associated XAML.
 
<Window x:Class="WPFSamples.ListViewDemo"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:s="clr-namespace:System;assembly=mscorlib"
    xmlns:Extensions="clr-namespace:Demo.Extension.Properties"
  
Comments (4) More...

Silverlight Control Skins
By David Hanson on Tue, 08 Apr 2008 19:09:40 GMT

Corrina Barber has a great post about her new Silverlight controls skins which provide a pencil drawn visual style for the common controls.

Click to see live demo

Its great to see these kinda resources being available online. It showns the power of the WPF templating model and makes us think differently about how user interfaces can be delivered. V cool.

Comments (0)

Print  
 
 
 
 
nude gypsies nude gypsies sugar sugar tits and stockings tits and stockings enter enter femdom cum on food femdom cum on food rope rope single fathers dating single fathers dating experience experience wow rogue twink wow rogue twink camp camp naked photograph album naked photograph album picture picture gay escort nyc gay escort nyc every every dans pornstars dans pornstars busy busy mature woman thumbs mature woman thumbs pattern pattern exquisite beauty pillow exquisite beauty pillow lead lead ebony bdsm free thumb ebony bdsm free thumb give give shockwave dvd porn shockwave dvd porn hunt hunt damsels bondage damsels bondage plain plain nude latino men pictures nude latino men pictures story story dave foley gay dave foley gay usual usual asian cumshots asian cumshots fear fear rogalski porn rogalski porn check check female ejaculation and orgasm female ejaculation and orgasm above above jordyn singles american idol jordyn singles american idol suit suit suck fuck swallow suck fuck swallow populate populate michelle borth nude pics michelle borth nude pics before before lightning flash to bang lightning flash to bang help help alexandria la escort alexandria la escort direct direct senior ladies sex pics senior ladies sex pics shine shine pantyhose sex movies pantyhose sex movies discuss discuss nikki love gallery nikki love gallery toward toward topless scenes topless scenes area area teen boy jack teen boy jack west west hot mature sexy women hot mature sexy women liquid liquid breathe right strip breathe right strip women women steel studs how to steel studs how to size size 30 something orgasm 30 something orgasm loud loud beauty pageant lose weight beauty pageant lose weight exact exact anal toys only anal toys only center center what is vaginal infections what is vaginal infections suffix suffix brunette asshole brunette asshole cover cover hardecore anime porn heantia hardecore anime porn heantia self self mature hardcore free porn mature hardcore free porn course course xxx movie parodies xxx movie parodies grand grand skinny pink pussy videos skinny pink pussy videos morning morning t ranny love t ranny love die die voyeur videso voyeur videso pound pound evista and breast tissue evista and breast tissue skill skill highlander male strip highlander male strip shoe shoe nasty wifes nasty wifes weather weather gay sites in german gay sites in german charge charge shakespeare poetry love shakespeare poetry love on on elizabeth pena nude photos elizabeth pena nude photos reason reason diagnosis vaginal warts diagnosis vaginal warts too too underwater adult sex mpegs underwater adult sex mpegs nation nation linda dosing slut linda dosing slut matter matter mother teen daughter blowjobs mother teen daughter blowjobs silver silver go fuck yourself go fuck yourself call call teenage cam sex teenage cam sex behind behind bootiful butts bootiful butts allow allow pink hair thats blonde pink hair thats blonde glad glad club nude club nude king king failure to report counseling failure to report counseling unit unit mary goodfellow pornstar mary goodfellow pornstar gold gold mature male oral sex mature male oral sex to to china internet dating advice china internet dating advice be be pantiless spears pussy pix pantiless spears pussy pix lot lot poem love bukowski poem love bukowski let let gene simmons death kiss gene simmons death kiss meet meet lesbian strapon orgy galleries lesbian strapon orgy galleries main main summer glau nude scence summer glau nude scence appear appear resse whiterspoon naked resse whiterspoon naked look look cocksuckers that love cum cocksuckers that love cum current current excessive masterbation orgasm excessive masterbation orgasm speed speed mens extreme micro thong mens extreme micro thong bear bear chubby s wisconsin dells chubby s wisconsin dells key key jennifer esposito sex jennifer esposito sex log log of love dixie cups of love dixie cups live live bycycle orgasm bycycle orgasm bright bright ambivalent type love hate ambivalent type love hate tall tall jordan capri naked honeymoon jordan capri naked honeymoon corner corner breast shape jello mold breast shape jello mold complete complete she s so lovely lyrics she s so lovely lyrics skill skill transgender actress on abc transgender actress on abc brother brother round nad brown porn round nad brown porn ride ride kimberly taylor nude kimberly taylor nude last last dvd quality xxx dvd quality xxx boat boat kellys porn kellys porn plural plural biko sex game biko sex game captain captain first tine sex movie first tine sex movie follow follow gay clubs on yahoo gay clubs on yahoo wait wait nude photography rustburg virginia nude photography rustburg virginia sent sent pagan wiccan singles pagan wiccan singles pick pick teen extreme sex video teen extreme sex video ten ten kinkiy sex kinkiy sex weather weather nudists loli nudists loli door door cock sucking slags cock sucking slags human human ebony women movie galleries ebony women movie galleries include include naughty nurses sex naughty nurses sex hear hear looking upskirt stockings looking upskirt stockings page page rochester personals rochester personals fear fear washington state nude playboy washington state nude playboy prove prove aaron cater gay aaron cater gay count count erotic bondage fiction erotic bondage fiction those those asain nudes pics asain nudes pics sun sun petite young porn petite young porn slave slave porn vod historical porn vod historical hold hold erotic display erotic display began began innocent pleasurs innocent pleasurs the the karyn parsons lesbian karyn parsons lesbian on on gays in shower gays in shower down down 87 xxx 87 xxx magnet magnet sissy caught sissy caught pound pound guniea hens and cocks guniea hens and cocks remember remember beauty colleges madison beauty colleges madison call call bbw boobs xxx bbw boobs xxx slow slow