So I was busy refining my use of JavaScript immediate functions in order to use them like a namespace for functions and properties and I stumbled across one of the few cases where formatting matters in JavaScript. Normally, whitespace really doesn’t matter very much as long as your syntax is tidy. If you want toContinue reading “Invalid Label JavaScript Error”
Category Archives: Programming
Adding an NCover Target to MSBuild to Get Code Coverage
This article describes how to add NCover code coverage to your MSBuild scripts in an extensible way. By using and adapting the example below, you should be able to get NCover results across your entire code base, all compiled into an excellent web-based summary. You might also be interested in generating Trend reports using MSBuildContinue reading “Adding an NCover Target to MSBuild to Get Code Coverage”
Event Code 3005: An Unhandled Exception has Occurred
If you have come across this rather vague message (Event Code 3005: An Unhandled Exception has Occurred), you will have spotted that there are very few resources that give any reasonable answers on the root cause of the issue – that’s probably why you are here, so I will do my best to help. ForContinue reading “Event Code 3005: An Unhandled Exception has Occurred”
X509 Certificates on Windows Server 2003
This issue originally came up some time between 2004 and 2006 while I was working on a web portal for fund and share trading – but recently popped up its head again, which made me decide to write down the answer properly in case other people stumble across this issue with certificates and private keys.Continue reading “X509 Certificates on Windows Server 2003”
WPF BackgroundWorker and the Mysterious 0x80131623 Error
If you use Windows Presentation Foundation (WPF), you are very likely to come across the awesome BackgroundWorker and its best friend the Dispatcher. The BackgroundWorker lets you chuck a long-running process onto another thread, allowing the UI to remain responsive. When the BackgroundWorker needs to pop something on the UI, you ask the Dispatcher toContinue reading “WPF BackgroundWorker and the Mysterious 0x80131623 Error”
Fixing .htaccess Rewrite Problems with RewriteBase
I recently encountered an issue on an otherwise perfectly functioning .htaccess file, which contained mod_rewrite rules. The rules had been working for several years (since 2008 to be precise) but some patch or change on the web server suddenly caused all pages except for the home page to be unavailable. The error suggested that theContinue reading “Fixing .htaccess Rewrite Problems with RewriteBase”
Improving Your Code with NDepend and CQL
I have been talking a fair bit recently about code quality tools such as Resharper and NDepend. In this article, I will explain how to use one of the features of NDepend to improve your code quality. On of my favourite features of NDepend is the suite of “code query language” tests, which run againstContinue reading “Improving Your Code with NDepend and CQL”
Adding Multiple Lines to Descriptions in ICalendar Files
ICalendar files (or iCal files) are used to share event information. You just download the file and open it up using your preferred calendar tool and it adds the event to your calendar. This is great as it means you don’t need to copy and paste the event information into a new meeting. One issueContinue reading “Adding Multiple Lines to Descriptions in ICalendar Files”
Optimising Your jQuery
jQuery is taking the JavaScript world by storm, but because it makes life so easy, it also makes it easy to forget about the amount of work you are asking the browser to do. This is especially important if you are performing an action against multiple elements, in a loop or as part of anContinue reading “Optimising Your jQuery”
NDepend Contextual Help
I’ve talked a couple of times about NDepend recently, in the article NDepend For Beginners. NDpend is jammed full of code analysis tools, but sometimes you need a bit of a hint to tell you what is going on in the various matrix displays and graphs – well now NDepend is getting some improvements toContinue reading “NDepend Contextual Help”