Saturday, September 06, 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. Chrome's JavaScript challenge to Silverlight - CNET News

    Published Sat, 06 Sep 2008 14:45:30 GMT by
  2. NBC Sports forgets Silverlight after Olympics, returns to Flash - Geek.com

    Published Fri, 05 Sep 2008 22:24:06 GMT by
  3. HELP FILE Streaming with Silverlight Help File - International Herald Tribune

    Published Thu, 04 Sep 2008 03:46:59 GMT by
  4. What Cloud Computing Needs - Motley Fool

    Published Fri, 05 Sep 2008 16:00:03 GMT by
  5. Shine on Silverlight and Windows with XAML - Register

    Published Mon, 01 Sep 2008 13:06:19 GMT by
  6. NFL, NBC Tap Adobe's Flash For Live Football - Silicon Alley Insider

    Published Fri, 05 Sep 2008 01:35:48 GMT by
  7. NFL Teams Up with Adobe to Deliver NBC Sunday Night Football Live ... - MarketWatch

    Published Thu, 04 Sep 2008 22:43:14 GMT by
  8. Adobe, NFL bring live Sunday Night Football to Internet - Macworld

    Published Fri, 05 Sep 2008 00:39:50 GMT by
  9. NFL And NBC Putting Games Online - WebProNews

    Published Thu, 04 Sep 2008 14:02:42 GMT by
  10. Building Line-of-Business Apps with Silverlight 2 - Dr. Dobb's Journal

    Published Wed, 03 Sep 2008 17:22:07 GMT by
Print  
OnTheBlog Minimize
Author: David Hanson Created: Wed, 02 Jan 2008 20:28:49 GMT
All things .net, wpf, XAML, C#, Workflow Foundation and many more.

Decompiling Silverlight Apps
By David Hanson on Sat, 29 Mar 2008 20:48:08 GMT

Did you know you can decompile Silverlight apps? As with ever other .NET app, if you have the assemblies you can pretty much load them into reflector and view the source.

So when it comes to silverlight how do you get the assemblies in the first place? Well it turns out when you develop your app all the assemblies are packages into a XAP file which is then downloaded to the client.

An XAP is actually just a zip file with a different extension. Therefore, all you need to do is the following.

1.) Locate the XAP file on a web page or file system by looking at the source.

2.) Place into the browser and download the XAP package.

3.) Once downloaded, change the XAP extension to .ZIP

4.) Extract the package using whichever tool you like. I use WINRAR.

5.) Locate the assemblies in reflector and view the source.

Comments (0)

Multiple Browser Compatibility
By David Hanson on Mon, 24 Mar 2008 17:40:49 GMT

Rockford has an interesting post about a website called http://browsershots.org. The idea is, you submit a url and they will check how your website renders in 45+ browsers on multiple operating systems and provide screenshots for you to download. They also do some cool javascript testing as well.

Below is an a screenshot of the initial results page for the home page of my site.

And here is what my site looks like in Opera running on linux. V.cool.

 

Comments (0)

WPF Easter Egg
By David Hanson on Mon, 24 Mar 2008 09:47:02 GMT

Ok I'm sure you were hoping I was going to announce something cool like the hidden flight simulator in excel.

Sorry, here is some XAML instead.

 Windowless Easter Egg

<Window x:Class="WindowlessForms.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="400" Width="600" WindowStyle="None"
        AllowsTransparency="True" Background="Transparent" WindowStartupLocation="CenterScreen">
    <Border>
        <Ellipse Stroke="Black">
            <Ellipse.Fill>
                <
Comments (2) More...

Robotics gone wrong
By David Hanson on Thu, 20 Mar 2008 20:42:05 GMT

Something has definately gone wrong here.... A quick browse for robots on the web turns up a robot trying to be human and a human trying to be a robot.

Robot Albert Hubo
Robot Albert Hubo

Robot Dance
Robot Dance

Comments (0)

Web 3.0 and search engines
By David Hanson on Thu, 20 Mar 2008 10:01:31 GMT

Take the following statement.

Googlebot processes each of the pages it crawls in order to compile a massive index of all the words it sees and their location on each page. In addition, we process information included in key content tags and attributes, such as Title tags and ALT attributes. Googlebot can process many, but not all, content types. For example, we cannot process the content of most Flash files or dynamic pages.

You can find this text in the google indexing FAQ site here. What I find compelling about this statement is that of the last line..

we cannot process the content of most Flash files or dynamic pages.

This raises an interesting question with regard to the future of search engines as we enter the web 3.0 era. As HTML has slowely reached the limits of what it can offer, we are starting to see the rise of new rich/smart client style applications based on technolgies such as silverlight, Flex and Flash.

Tim Berners-Lee has predicted that web 3.0 could possibly be based on vector graphics platforms. These technologies offer rich vector graphics with runtime libraires that are delivered direct to the desktop. With these runtimes comes the use of custom binary formats that allow code to be run within the browser and peform functions that standard HTML/Ajax apps would dream of. 

So with the winds of change coming....how will search engines continue to perform effective indexing of site content when its delivered in custom binary formats?

  • Will we see new standards defined that will be specifically used for the publication & management of site content for indexing?
  • Will search engines implement new techniques for indexing binary files?
  • Will our Web 3.0 apps always require HTML equivalents for supporting search providers?

I dont know the answers to these questions yet but I am looking forward to seeing how it pans out.

Comments (0)

User Agents for February
By David Hanson on Wed, 19 Mar 2008 19:28:58 GMT

Looking through my logs I decided to compose a list of useragents/browsers visiting my site during feb.  I was amazed to see that there were still people using  IE2 out there! I mean.... really???

These results are shown below.

Netscape Navigator 6+
Internet Explorer
Internet Explorer 6
Netscape Navigator 4
Internet Explorer 5
Internet Explorer 4
WebAlta Crawler/2.0 (
http://www.webalta.net/ru/about_webmaster.html) (Windows; U; Windows NT 5.1; ru-RU)
MSNBOT
msnbot/1.1 (+http://search.msn.com/msnbot.htm)
Internet Explorer 2
Feedfetcher-Google; (+http://www.google.com/feedfetcher.html; 3 subscribers; feed-id=10707310861055891819)
Feedfetcher-Google; (+http://www.google.com/feedfetcher.html; 2 subscribers; feed-id=10707310861055891819)
ia_archiver
Netscape Navigator 3
BlogPulse (ISSpider-3.0)
BlogPulseLive (
support@blogpulse.com)
EnaBot/1.2 (
http://www.enaball.com/crawler.html)
freedir.co.uk/0.8 (+http://freedir.co.uk/directory/)
Opera/8.00 (Windows NT 5.1; U; en)
NewsGatorOnline/2.0 (
http://www.newsgator.com; 1 subscribers)
Opera/9.0 (Windows NT 5.1; U; en)
Opera/9.00 (Windows NT 5.1; U; en)
Opera/9.26 (Windows NT 6.0; U; en)
psbot/0.1 (+http://www.picsearch.com/bot.html)
SurveyBot/2.3 (Whois Source)
Technoratibot/0.7
Tgulhz enqb iwgovpdqc
Wkivtc bnfswe wvdu
Pxmtonqhj szftv djhiesuc
Opera/9.50 (Windows NT 5.0; U; pt-br)
Opera/9.00 (Windows NT 5.1; U; ru)
Opera/9.23 (Windows NT 5.1; U; en)
Opera/9.24 (Windows NT 5.1; U; en)
Opera/9.26 (Windows NT 5.1; U; cs)
Opera/7.50 (X11; Linux i686; U) [en]
Opera/8.0 (Macintosh; PPC Mac OS X; U; en)
Opera/8.01 (Windows NT 5.1)
Internet Explorer 3
Ajuqwt tdmy djrpagf
Java/1.6.0_02
Jyxgil mryhla ugxwa
Lwizpcxo mgvx lsxa

Comments (0)

FUN: Easters coming
By David Hanson on Mon, 17 Mar 2008 20:50:07 GMT

Looking through my emails I found a few easter related jokes bouncing around. This one particulary made me laugh so thought I would share.

Comments (0)

Silverlight 2 Control Template Browser Source Code
By David Hanson on Mon, 17 Mar 2008 20:30:07 GMT

Just been snowboarding in Austria for the last few days. Had some great snow and a litte stiff today. I just wanted to blog quickly to tell you that you can now download the source code for the Silverlight 2 Control Template browser. Please note, this version currently uses an embedded XML file to render each template. I am working on updating this to use a XAMLWriter implementation but this is still a work in progress.

Download

Comments (0)

Silverlight on the go.... Nokia gets the Jump
By David Hanson on Tue, 04 Mar 2008 12:50:50 GMT

Well it seems one of the big annoucments that was due to be made at Mix 08 is that Silverlight is coming to mobile devices and more importantly... Nokia handsets.

There is apparently going to be a demo of an S60 device running Silverlight mobile edition which I can wait to see!  Will post more when it arrives!

The Nokia s60

Comments (0)

WPF: Extending the Page & UserControl base classes
By David Hanson on Mon, 25 Feb 2008 22:50:15 GMT

When working with different .NET technologies it is often good practice to extend a number of bases classes for your own requirements.  There are couple of benefits for doing this.

  •  The derived classes provide a layer of protection/abstraction from the core framework so that changes can be managed more effectively. 
  • The derived classes provide the ability for you to extend base behaviour and share that throughout your application. 
  • You can increase testability.

Generally, when starting a new development, I like to do some of this infrastructure work upfront, this saves me a lot of refactoring down the line when I realise I need to extend a base class. Following this approach is particularly useful when working with .NET UI technologies such as WinForms, ASP.NET and WPF which implement a number of base classes upon which the majority of UI components are based. 

Below is an example of the standard WinForms model whereby each Form is derived from System.Windows.Forms.Form versus the model I implement when I intend to extend the base Form class.

 

FormEx implementation

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
 
namespace Extended.Base.Example
{
    public class FormEx: Form
    {
    }

}

Our StandardForm implementation

using System;
Comments (0) More...

Print