Category Archives: tools
Deferred execution based on PropertyChanged
A few days ago I was implementing toast notifications for a Silverlight application (SL 4 has support for toast notifications but it is only available to out-of-browser applications) and one of the features that I wanted to implement was that the notification doesn’t go away while the user holds the mouse pointer over it – [...]
How to setup Mercurial server on Windows/IIS
In this post I will enumerate the resources and the steps required to setup a Mercurial server under a Windows environment running on top of IIS 7. This is not as straight-forward as it should be but it is not very difficult either. You will need to download the following: Mercurial 1.5.1 http://bitbucket.org/tortoisehg/thg-winbuild/downloads/mercurial-1.5.1.msi Python 2.6 [...]
NAnt task for getting Mercurial current revision
As part of my continuous integration process I like to get the current VCS revision and stick it somewhere in the build output (almost always to be displayed in some kind of “About” screen) When using Mercurial in combination with NAnt, you can do this as follows: <property name="hg.revision.hash" value="N/A" /> <target name="common.find-hginfo"> <property name="vcs.revision" [...]
Introducing NLaunch
In the last month I’ve been working in several desktop applications and faced the situation of having to remotely update my clients machines repeatedly. It is not fun. The process that I was using for accomplish this task was the following: build the application locally (I’m not using CI) upload the result somewhere (ftp, Mediafire, [...]
Line count in Visual Studio
This is a nice trick that should be spreaded. Select Edit -> Find & Replace -> Find in files… or just press CTRL+SHIFT+F Check Use and select Regular expressions. Type the following as the text to find: for C# ^~(:Wh@//.+)~(:Wh@\{:Wh@)~(:Wh@\}:Wh@)~(:Wh@/#).+ fore VB.NET (thanks Steve for the info!) ^~(:Wh@’.+)~(:Wh@/#).+ Select where you want to do the [...]
Appending an attribute to a XML node
I just needed to append an attribute to a tag in a XML file, and it took me a while to figure it out how to do it from the command line. The “easiest” way I’ve found is using a tool called XMLStartlet. Some background… I am automating a Clickonce deployment through a nant build [...]