Category: Tech blog
-
New site, new technology, old blog
Just a short notice: We have migrated our site to different technology (from WordPress to Joomla K2) and new design. I think I managed to reconstruct all blog posts and comments so it should work as before. Of feed URLs I’m not sure, I added a redirection for the main feed but category and comment…
-
Building customizable applications in .Net
Most modern applications today have at least some degree of modularity and customizability. By customizability I mean its simplest form – having one “vanilla” application with standard features and many derived versions adapted with minimal modifications to customer’s needs. It is common practice to use dependency injection (DI) and with it we can influence the…
-
Get content from WPF DataGridCell in one line of code (hack)
How do you get the text displayed in a WPF DataGridCell? It should be simple, but incredibly it doesn’t seem it is: all the solutions given on the ‘net contain at least a page of code (I suppose the grid designers didn’t think anyone would want to get the value from a grid cell). But…
-
CruiseControl.Net Missing Xml node (sourceControls) for required member (ThoughtWorks . CruiseControl . Core . Sourcecontrol . MultiSourceControl . SourceControls).
It’s a silly error but the solution is not very obvious or logical… I modified my CruiseControl.Net configuration to include multiple source control nodes, but it started complaining that the XML was malformed. The error was something like [CCNet Server] ERROR CruiseControl.NET [(null)] – Exception: Unable to instantiate CruiseControl projects from configuration document. Configuration document…
-
Workaround for HQL SELECT TOP 1 in a subquery
HQL doesn’t seem to support clauses like “SELECT TOP N…”, which can cause headaches when for example you need to get the data for the newest record from a table. One way to resolve this would be to do something like “SELECT * FROM X WHERE ID in (SELECT ID FROM X WHERE Date IN…
-
How to create a temporary table that can be seen by different SqlCommands on the same connection?
The unexpected answer (that I learned the hard way) is: well, it depends on whether you have parameters on your command or not. The point being, if you execute a parameterless SqlCommand, the sql gets executed directly, the same way as if you entered it into the query analyzer. If you add a parameter, the…
-
Lessons learned: migrating a complicated repository from subversion to mercurial
Migrating from SVN to Mercurial is a simple process only if the SVN repository has a straight-and-square structure – that is, there are trunk, branches and tags folders in the root and nothing else, not in its present state or ever before. If you used your SVN repository in a way that was convenient in…
-
Moving Up from SVN: Experiences in Migrating to Git and Mercurial
(Note: this text is a result of a couple of months of research… Only when I finished the migration and got to the point where things are running smoothly I got around to finishing this post. Some of this information may be a bit outdated, but from what I’ve seen things haven’t moved much in…
-
How to fix comment character encoding in TortoiseHG
I imported a couple of repositories from SVN into Mercurial and discovered that characters not present in the standard ASCII table have become mangled in the comments… Or at least they looked mangled in the console output as well as in TortoiseHG – now, the console is not that important, but how to fix this…
-
Repository moved temporarily to ‘/viewvc/nhibernate/trunk/’; please relocate
When trying to switch my local Subversion copy of the NHibernate source to a different tag (from 3.1GA to trunk, in this case), I got this error: Repository moved temporarily to ‘/viewvc/nhibernate/trunk/’; please relocate The frustrating thing was that I was trying to relocate to exactly this url. And if I tried others, it said…