powered by myself

Author Archives: Germán Schuager

CompactContainer rebump

Almost a year ago I did some experimentation with porting Castle Windsor to be used under the .NET Compact Framework, and while I got it done (excluding several features; mainly everything that has to do with proxys), it was clear that its implementation was not though to be used in a resource-constrained environment. Windsor has [...]

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 – [...]

Moving to WordPress

A couple of weeks ago I decided that I would migrate my blog to WordPress, and finally here I am. I’m writing this mainly to keep record of my motivations, to describe briefly the steps that I’ve accomplished and maybe to give some tips to anyone who is willing to do the same. Why? A [...]

Contextual Lifestyle Reloaded

Some time ago I did some experimentation with a custom Castle Windsor lifestyle under the main motivation of coming up with a way for managing the NHibernate session in a fat client application. After I posted my findings on that matter I have continued spiking a cleaner solution and I’ve came up with something worth [...]

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" [...]

Case-sensitive queries in NHibernate using SQL Server

Depending on the collation setting of your database (you probably already know this) the queries that you issue against it are treated as case-insensitive (CI collations) or as case-sensitive (CS collations). If your database use a CI collation and you need to do some case-sensitive querying, the target SQL statement would be something like this: [...]

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, [...]

Rich-client NHibernate session management

I’ve been struggling with this subject for quite some time now, and I’ve just seem to found the ‘sweet spot’. Before we start, I need to describe some facts about the target application: rich-client: this approach will work the same for a Winform application as for a WPF application. multi-screen UI: it could be multi-form [...]

Reporting Services + LocalReport hang

Just for future reference… Winforms application + Reporting Services + LocalReport + bad luck = Application hangs without throwing any exception I’ve just spend a lot of time trying to figure out what the hell was causing this issue. It happened when I did this: localReport.LoadReportDefinition(stream) localReport.GetDataSourceNames() // here it hangs 2 of 3 times [...]

Keep in touch

Categories