Mike Taulty's Blog
Bits and Bytes from Microsoft UK

May 2007 - Mike Taulty's Blog

Blogs

Mike Taulty's Blog

Elsewhere

  • PowerShell (again)

    I'm having another go at moving to PowerShell. Quite a few months ago, I decided it was time to become a bit more modern and switch to PowerShell but I haven't really done it and, a few months on, I'm still running cmd.exe. There's some irony in my resisting change here in that I used to be quite heavily into command shells back in my Unix days (we're going back to when csh was popular although I did finally move from that to ksh but that was as far as it went). When I first started Windows development (around 1993) one of the things that drove me nuts was the lack of a decent command shell although, for whatever reason, I never quite went to the lengths of installing one of the various ports that you could get for Windows. PowerShell with its "object based pipeline" innovation generated some interest for me but I've really not got to the point where it's part of my day-to-day usage but I was talking to our friendly neighbourhood librarian yesterday and he pointed out this book; and I decided that it was time...
  • "All Things Digital"

    I'm hopeful that some interesting videos will pop up here http://video.allthingsd.com/ today especially if there's that shared "Gates & Jobs" discussion - you'd assume that this would be good stuff?
  • DeveloperDay 5 - Agenda and Registration

    The agenda for the 5th Developer (DDD!) day which happens on the 30th June at Microsoft in Reading is up at; http://www.developerday.co.uk/ddd/agendaddd5lineup.asp and the registration page is open up at; http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032342589&Culture=en-GB The recommendation is to sign up quickly as this fills fast.
  • Sandboxing the browser

    I spotted this story on The Register about Google purchasing GreenBorder. I'd never heard of them before but this idea around the "sandboxed" web browsing experience has been kicking around in my head for a while - interesting stuff :-)
  • Links

    Couple of interesting posts; Partial Methods I spent quite some time thinking about the difference here between the existing things such as; [Conditional] attribute add { } remove {} options for events DependencyProperties Not 100% sure that I "get" this yet and possibly need a compiler with this in to play with. What You're Not Getting About Programming I really liked this post. As a statically typed kind of person this makes a lot of sense to me and I really like the conclusion that it comes to around rhythm.
  • WF in Fx3.5 Beta 1 - Send/Receive Activities and MSMQ

    I wrote some bits previously about the new Send/Receive Activities that build WCF support directly into Workflow Foundation for Framework V3.5. Imagine a scenario where we've got; Client calls into "a Workflow" hosted over WCF (ReceiveActivity). Note: What I mean here really is that the client sends a message to a WCF endpoint, the WorkflowServiceHost infrastructure picks up the message, creates a new instance of a Workflow and delivers the message into a ReceiveActivity in that instance which has its "CanCreateInstance" property set to "true". Workflow does some processing and responds (that might be the response message of the ReceiveActivity iteself but it could be also be done via a One-Way SendActivity) Client calls back into the same Workflow (ReceiveActivity). When the service responds in step 1.1 it needs a way of sending some identifying data to the client such that when the client calls back at step 2 that reply message is routed to the right Workflow Instance and, potentially, the right waiting ReceiveActivity...
  • Viewing XPS in Silverlight

    Amazing post over here; http://blogs.msdn.com/delay/archive/2007/05/22/lighting-up-the-xml-paper-specification-proof-of-concept-xps-reader-for-silverlight.aspx It's important to realise that there is no support in Silverlight for what this sample is doing but the author has manipulated the XAML to make it work (not sure how/which XPS documents this would work for) but that's pretty cool.
  • First play with the Silverlight Reflector Plug-In

    Just downloaded the Silverlight Reflector plug-in . That's a really neat bit of kit, I pointed at my video puzzle and, straight away, I got; i.e. I got straight away; HTML Javascript Disassembled C# code. Fantastic :-)
  • Blog Round-Up

    I've been offline for a little while so I did a bit of blog catching up yesterday and this is the set of links that I came across; Examples of using LINQ to SQL with WCF The Silverlight plug-in for Reflector Dave Relyea's Layout Controls for Silverlight
  • Drobo

    Via Phil , this looks like the storage box I've been waiting for (all they need now is one that takes 8 disks and/or the ability to chain them together - maybe they already have that as they seem to have everything else :-)).
  • Peer Name Resolution Protocol (PNRP)

    I spent a small amount of time with PNRP when support for it came out in Vista (it was in XP since SP1 in a different form but Vista seemed to bring p2p to the forefront a bit with applications like "Meeting Space"). I'm revisiting it because there are managed wrappers for PNRP in .NET Framework V3.5 and so I was looking once again for a good overview of what the protocol is and how it works and this doc; http://www.microsoft.com/technet/network/p2p/pnrp.mspx over on TechNet is a great one to read.
  • Second Steps with ADO.NET Synchronisation Services

    Following up on this post where I just got started with Sync Services , if I want to do more than just an occasional snapshot of data from server to client then I need to do a bit more work. If I want to do incremental downloads of data from my server to my client then (depending on what I want) I need do probably; Have a way of spotting what inserts have happened at the server Have a way of spotting what updates have happened at the server Have a way of spotting what deletes have happened at the server Sync Services doesn't do this for you - you need to do it so I took a very simplistic approach to this and took my original table; create table fruitSales ( id int identity not null primary key , fruit nchar (20) not null , quantity int not null , price money not null ) and added a couple of columns to it so that I can detect inserts and updates; alter table fruitSales add insDate datetime not null default getutcdate(), modDate datetime not null default getutcdate() with a couple of triggers to try and keep those...
  • First Steps with ADO.NET Synchronisation Services

    I've had a first attempt at playing with the new ADO.NET synchronisation services this weekend so I thought I'd share here. ADO.NET Synchronisation Services is a technology for helping with those online/offline applications where you need to get data down to be stored on a laptop to enable mobile working (device support isn't something that it's in the first version AFAIK). Here's some links; Download the bits ("Orcas" beta 1) Download the docs ("Orcas" beta 1) Subscribe to the "Synchronizer" blog To take my simplistic view of Synchronisation Services, it's about having a local SQL Server Compact Edition database which your application talks to and the Sync Services helps with getting the data in that database sync'd with a remote DB to which connectivity isn't always available. I say helps because Sync Services is definitely more of a framework that a developer can use to build this kind of sync. support into their app rather than a product which does it for them. There's no shortage of ways to do this already...
  • ReadyBoost and Media Center - Stuttering Video :-(

    My Media Center machine (running Vista) is a little old but it's been holding up pretty well. I only use this box for Media Center as it sits under the TV. The graphics card is old (Fx5200), the processor is old (Athlon 2800+ IIRC) and I guess the bus speeds and memory speeds are getting a little rusty these days as well. However, it works pretty well so I'm not buying another one right now :-) I've tried to configure Vista down as much as I can on the machine by switching off services that I don't think I need (e.g. Search). It's a pity Media Center doesn't have a button that says; "Make my system a Media Center Only System" which might set Media Center to run at boot and also disable all services that you don't need on a dedicated Media Center box. I remember spending a long time once on MCE 2005 trying to switch off what I thought were "unnecessary" services only to give up having spent hours trying to fathom out how I'd broken Media Center only to find out that it was because I'd disabled COM+ having failed...
  • SqlCeEngine Looks To Need 32-Bit Code

    I'm working offline at the moment as I've moved house and my ADSL hasn't been transferred to my new house. This is proving to be a real pain in that I've got very used to searching for answers to problems rather than having to think about them :-) I'm taking my very first steps towards using SQL Compact Edition and the first thing I do is; SqlCeEngine ce = new SqlCeEngine(); ce.LocalConnectionString = "datasource=c:\\temp\\mynewdb.sdf" ; ce.CreateDatabase(); and I get a weird exception out of creating SqlCeEngine which is "Bad Image Format". This had me puzzling for a couple of minutes until it occurred to me that I'm running on 64-bit Vista and maybe SqlCeEngine loads up some 32-bit DLL which would mean that; JIT ----> 64-bit code -----> SqlCeEngine ------> Tries to load 32-bit DLL (and fails as we can't have a mixed 32-bit and 64-bit image) And switching my target platform to be "x86" rather than "Any CPU" fixed it immediately.
1 2 3 4 Next >