Browse by Tags

Cool finalizer assert trick
Published Sun, Apr 12 2009 3:24 PM | Ramon Smits
I just saw a cool trick done in a finalizer of a class. When a class implements IDisposable then its creator needs to call Dispose when it is finishen. Lots of developers forget this and that usually results in system resources that are locked until the...
Filed under: ,
ForEach method exceptions and events
Published Thu, Oct 2 2008 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...
Get the physical path of a path that uses a subst drive
Published Thu, Apr 5 2007 7:21 PM | Ramon Smits
My previous employer used a tool to attach databases that were located on a substituted path. I needed this conversion logic in another kind of environment and used the almighty google. So I hit an article on Avner Kashtan 's blog titled Query SUBST information...
Why read uncommitted data?
Published Tue, Dec 19 2006 10:00 AM | Ramon Smits
I just read Dennis post about his adventures in isolation level land . He says he does not know a good reason to read uncommitted data because of dirty reads. Well he should refrase this like: Using the isolation level read uncommitted data could result...
VS2005: Solution to 'Where is that damn exception dialog?'
Published Mon, Nov 27 2006 2:28 PM | Ramon Smits
Today I had a very annoying issue. I was debugging an application on an VS2005 instance of a computer that I did not prepare / installed myself. I wanted the "break on all exceptions" behaviour in the debugger. Normally you just go to the menu and select...
Tool : Add string as resource
Published Thu, Oct 19 2006 4:31 PM | Ramon Smits
I found this really nice little to add a string as a resource . You just select a string in the editor, right click to get the context menu and select to add it as a resource. You then get a dialog in which you can specify the key value and the resourcefile...
Don't use viewstate compression! Use http compression instead!
Published Fri, Sep 1 2006 12:19 AM | Ramon Smits
Just google a bit with the keywords compression plus viewstate and lots of articles are to be found about this subject like this one . The problem is that in most situations programmers are doing something that the webserver already can do for you. Not...
Filed under: , ,
The && and the & operators
Published Tue, Aug 29 2006 2:27 PM | Ramon Smits
Today a collegue had me flabbergasted by using the & operator in a boolean comparison like the following example. return x & y; Both x and y were booleans and I said "Hey you just forgot an &! A single & is a bitwise operator.". And he...
Filed under: , ,
Failed for 70-300 exam
Published Fri, Aug 18 2006 4:28 PM | Ramon Smits
I failed for the Microsoft 70-300 examen this afternoon. I am disappointed in the result because I expected to pass. When I saw the score it felt very weird to see I had failed. I really don't have a clue which questions I did wrong.... so it is almost...
Filed under: ,
Game studio express and XNA
Published Tue, Aug 15 2006 1:03 PM | Ramon Smits
Yesterday I posted about a news scoop at Ars-Technica referring Game studio express . Microsoft already posted a press bulletin about this at their site ( here ). But I wasn't aware of this. Rob Tillie mentioned in the comments that he doesn't think that...
NDepend 2.0 beta
Published Mon, Apr 3 2006 7:32 PM | Ramon Smits
I just received a notification that NDepend 2.0 beta is released by Patrick Smacchie. NDepend analyzes your dotnet 1.x assemblies and outputs a huge set of code metrics based on the IL. It can also create a nice dependancy chart of your assemblies where...
Filed under: , ,
WS-Addressing and routing is a pain in the ass
Published Fri, Mar 10 2006 2:21 PM | Ramon Smits
The problems I am having with the WS-Addressing specs....
Kids programming language reminds me of Amos
Published Sun, Mar 5 2006 3:35 PM | Ramon Smits
My view on the kids programming language (KPL) and what it is all about....
Filed under: ,
HttpHandler to format csharp, xml, vb.net, etc.
Published Sun, Jan 22 2006 4:26 PM | Ramon Smits
So wouldn't it be handy if you have a HttpHandler that formats sourcecode like csharp, vb.net, xml (related) and html? So I started googling but could find one! So that left me with some work!...
Filed under: , ,
Sign your distributables free and easy!
Published Fri, Dec 30 2005 9:16 PM | Ramon Smits
Using signtool to sign your applications to prevent tampering and allow mass distribution over the web. Use free certificate authorities like CAcert for signing....
Filed under: , ,
More Posts Next page »