-
How to cross post entries across blogs from Windows Live Writer
-
I think I'm not the first guy to end up in this situation: I created a lot of content (and loyal readers) on some blog hosting site (in my case http://weblogs.asp.net) and now I want to move on, maybe with a self-hosted solution, maybe with Blogger and its custom domain support, whatever.
There are two separate issues:
- You don't want to start on your new site with zero content. You have created a TON of it on the old site. This batch migration process can be painful and you may need to write code to do it. Typically you'll want to leave on the old site just a "teaser" of your entries, and a link to your new cool site. At the very least, you want to leave a link. ...

Read full article
-
How to get a gazillion XAML clipart for free
-
You surely know XAML subsumes pretty much all of SVG, right?
SVG has been around for quite more time than XAML, and even if hasn't taken off as fast as many expected, at least I could find a huge collection of freely available clipart.
Now all I needed was a way to convert all that stuff that you can get in a single gigantic download if you want to XAML.
I wish it was always this simple: go download ViewerSvg :).
Not only does the tool work great, it also comes with a library you can use too :). So instead of using the UI, I used the library to create a very simple console application (...
Read full article
-
PowerShell with TFS: how to perform batch-updates to WorkItems
-
In this post, I'll show how you can use Powershell to perform one of the most annoying and (currently impossible) tasks in an iteration planning using TFS: batch update of all non-completed items so that they are moved to the next iteration.
The end result (which I'm using very effectively weekly :)) will be to be able to issue the following commands:
PS C:\> $tfs = Connect-Tfs tfs
PS C:\> $tfs.WorkItems.FindAll("[System.TeamProject] = 'MyProject' and [System.State] != 'Closed' and [System.IterationPath] = 'MyProject\Iteration 1'") | %{ $_.Open; $_.Fields["System.IterationPath"].Value = "MyProject\Iteration 2"; $_.Save(); write-host Updated $_.Title; } | out-null...
Read full article
-
How to use C# typeof in Powershell
-
Have you ever missed C#'s "typeof" while working with PowerShell?
PS C:\> [System.Type]::GetType("System.Enum")
IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True Enum System.ValueType
PS C:\> typeof System.Enum
IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True Enum System.ValueType ...
Read full article
-
How to override system default styles in WPF
-
You should typically use system defined styles for your controls, such as:
<Label FontFamily="{x:Static SystemFonts.MessageFontFamilyKey}" Content="Hello World"/>
or:
<StackPanel TextBlock.FontSize="{x:Static SystemFonts.MessageFontSize}"
TextBlock.FontFamily="{x:Static SystemFonts.MessageFontFamily}">
<Label Content="Hello World" />
</StackPanel>
When using a static resource binding like this, you're basically giving up the ability to override the styles set by the current OS theme. This may be a good thing in many situations, to have a standard look & feel. ...
Read full article
-
Running cleanup powershell command from MSBuild for Team Build Continuous Integration
-
Team Build is great, with its tight integration into the WorkItem tracking feature of TFS. It can be setup pretty easily to do continuous integration and I use a modified version of the Team Build RSS Feed generator so that I get a nice (authenticated) feed with entries like:
Failed Build CI_20070805.10
Build CI_20070805.10 was fired by TFS\TFSSERVICE on 8/5/2007 8:31:22 PM. You can view the details of the build by selecting the provided link....
Read full article
-
Reading XML document fragments in .NET
-
A document fragment is an XML file that doesn't have a root element:
<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
...
</System>
<ApplicationData>
...
</ApplicationData>
</E2ETraceEvent>
<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
<System xmlns=...
Read full article