Tuesday, 17 August 2010

Test your websites on all browsers


While writing the last post, about Silverlight disk space on Win XP, I just noticed the difference between IE and Safari on even the most trivial possible website (which I wrote basically as a placeholder for bizspark). Note to self, start testing on IE, umm please.


graphitecharts safari



graphitecharts ie



Silverlight Reports Incorrect Space Usage On Win XP SP2


I opened an old-old version of windows xp (a VM), to test some Silverlight 4 stuff I'm working on (GraphiteCharts). First, the install was flawless, took seconds, damn impressive stuff (I still hate the blue install screen and its hideous font though). While I was at it I thought I'd clean up this VM aka remove unused stuff mostly, when I found that Silverlight reports its space usage incorrectly, or may be the comma actually means a dot (.). This could confuse people who don't know what Silverlight is and think its un-necessarily hogging space. Obligatory screen shot below.


Silverlight CPU Usage



Friday, 13 August 2010

Silverlight 3 and 4 development setup part 2


Following up on the previous post about setting up a silverlight 3 and 4 development environment (link), this post talks about modifying that environment to use visual studio 2010 (ultimate) and expression studio 4 instead of the earlier visual web and c# express editions. There are two parts to setting up, first uninstalling the express versions and the second installing the new studio versions. If you want to go straight to this final development setup without the intermediate express installs then follow steps 1,2,3 and 4 from the previous post; ignore the un-install steps in this one and jump straight to the installation bits.

Un-installs
-----------

1) Uninstall the Silverlight 4 tools for Visual Studio 2010.
2) Uninstall the Silverlight 4 SDK.
3) Uninstall Silverlight 4.
4) Uninstall WCF RIA Services V1.0 for Visual Studio 2010.
WCF RIA services have a nasty-nasty bug and need some registry fixing to get rid off. First uninstall (via Add Remove Programs or Programs and Features in Win7) this will get rid of the folder in MicrosoftSDKs (C:\Program Files\Microsoft SDKs\RIA Services). If however you now close and re-open Programs and Features you'll find WCF RIA services are back, this is because the registry entries have not been removed. You need to go in and manually do this (regedit.exe is your friend). The keys to remove are mentioned here; look for modestyZ's second post, the 4th post overall.
5) Uninstall Visual Web Developer Express 2010.
6) Uninstall Visual C# Express 2010.

Installs
--------

1) Install Visual Studio 2010 (I have Ultimate; thanks to bizspark; but other versions should work as well).
2) Install Silverlight 4 tools for Visual Studio 2010.
3) Install the Silverlight 4 update (mentioned in the previous post), discussed here and available here.
4) Install Expression Studio 4.

That's it [sic], you should now have a working top of the line Silverlight 3 and 4 development environment with support for Visual Studio 2008, 2010 and Expression Studio.