ForEach method exceptions and events
Published 2 October 8 11:58 AM | Ramon Smits
I just read this article by DigiMortal about List<T>.ForEach and exceptions . His assumption was that if an exception occurs while processing one of the items that the next item would still be processed which is not that case. Maybe he was aware...
NHibernate implicit join quirk
Published 19 September 8 11:14 AM | Ramon Smits
Recently I had a problem where in an HQL query the result contained duplicates. I used implicit joins in the my query and it looked like the following: from Order o where (o.Code like :literal OR o.CustomData like :literal OR o.Customer.Code like :literal...
Google Chrome 'Paste and go'
Published 18 September 8 3:30 PM | Ramon Smits
I already love all those nice little details in for example gmail but I just discovered a nice feature in Google Chrome. When you have an url on your clipboard that you want to paste in the address bar you just right click it and then this popup context...
Filed under: ,
Import/export by using DataSet WriteXml and ReadXml
Published 2 September 8 10:5 AM | Ramon Smits
I just tried to create a simpel import/export feature in one of our applications based on XML. My first thought was: Create a typed dataset and for export just serialize it to XML with the WriteXml method and for import deserialize it by using ReadXml...
Just bought : Creative Zen Stone
Published 29 August 8 10:44 AM | Ramon Smits
I was browsing the internet for a couple of small mp3 players. There is ofcourse the Apple brand with several players. But I have something againts Apple behaviour towards their audio stuff. So my primary requirements were: Volume adjustable Must be recognized...
WCF and large messages
Published 20 August 8 1:46 PM | Ramon Smits
Today I got this nice InvalidOperationException: System.InvalidOperationException: There is an error in XML document (11, 11657). ---> System.Xml.XmlException: The maximum string content length quota (8192) has been exceeded while reading XML data...
Filed under: , , ,
You want C:\Users on XP too? Read here how
Published 13 August 8 6:32 PM | Ramon Smits
At both home and work I use Vista and XP resulting me typing "C:\Users" in XP and "C:\Documents and Settings" in Vista which - of course - don't work. You cannot really change those paths except when you install Vista or XP with...
Filed under: , , , ,
Appending data to a sql text or ntext column
Published 20 June 8 1:52 PM | Ramon Smits
Today I came accross a problem where nvarchar data got larger than the maximum that can be stored in a record. I had to convert to a ntext column and append the data to it. I quickly found out that I needed to use the UPDATETEXT function in combination...
Filed under: ,
Simplify string resources management for localization
Published 5 June 8 11:29 AM | Ramon Smits
Every dotnet developer will eventually do something with localization. That is 'working with multiple languages for presentation'. This post is not about solving lay-out related stuff which is about creating a good UI design which allows for RTL...
Enso is now part of my must have list
Published 1 June 8 3:59 PM | Ramon Smits
First of all what is Enso ? Enso is an application launcher and utility tool that uses the selected text as input and replaces it with its output (if necessary). Its a bit of a descriptive one liner and I think its better to navigate to the humanized...
Filed under: ,
My list of firefox extensions
Published 30 May 8 9:31 AM | Ramon Smits
Firefox is my default browser and the add-ons make it even more powerful then it already is. I thought that it would be nice to share which extensions I'm using: NoScript - Easily enable java/javascript/flash per domain. Adblock Plus - Hide those...
PowerShell PowerTab
Published 29 May 8 3:40 PM | Ramon Smits
Lately I found myself using the Microsoft PowerShell more often. But I am frequently missing intellisense. Especially when I want to access framework classes which I do not use that often. Luckily there is a very good extension script maintained by the...
MonoDevelop 1.0 and Mono 1.9.1 on openSUSE 10.3
Published 25 May 8 10:20 PM | Ramon Smits
This weekend I moved from Ubuntu 7.10 to openSUSE 10.3 after using the distro in the vmware image that the mono-project hosts. I was impressed how quick it was installed and still impressed by the ease of use of its package management. I am now running...
Log4net Separate configuration file and custom data
Published 15 May 8 9:47 AM | Ramon Smits
Separate configuration file for log4net settings We always store the configuration stuff in the app.config or web.config files but at our current project we want to store settings that are different between environments outside of the default configuration...
Low privileges IIS Application Pools
Published 22 April 8 3:22 PM | Ramon Smits
When you want to create a new application pool you probably want to do this to create an application pool with least privileges for the application that you are going to run with it. This article describes how to create a user account for use in an IIS...
More Posts Next page »