Category Archives: Code

Using Quartz.NET, Spring.NET and NHibernate to run Scheduled Tasks in ASP.NET

Running scheduled tasks in web applications is not normally a straightforward thing to do. Web applications are built to respond to requests from users and respond to that request. This request/response lifecycle doesn’t always match well to a long running … Continue reading

Posted in .NET, Web | Tagged , , , , | 9 Comments

Using Ruby Subversion Bindings to Create Repositories

Subversion has a default Web UI that is served up by Apache if you run Subversion that way. It is pretty boring and read-only. Then there are things like WebSVN that make it less boring, but still read-only. I got … Continue reading

Posted in Code, Ruby | Tagged , , | 1 Comment

DRY your CruiseControl.NET Configuration

Don’t Repeat Yourself (DRY) is one of the principles of good software development. The idea is that there should ideally be one and only one “source of knowledge” for a particular fact or calculation in a system. Basically it comes … Continue reading

Posted in .NET, Automation | Tagged , , | 5 Comments

StringBuilder and my Biggest Pet Peeve

What You Should Know About Strings In both Java and .NET (and other languages) String objects are immutable. They don’t change. Period. If you “change” a String, it creates a new String. That includes String concatenation using a + 1234// … Continue reading

Posted in Code | Tagged , | 5 Comments

MSBuild Task for PartCover

<![Rant[ I continue to lament the dearth of option for Test Coverage in the .NET world. In the Java world you have open source tools like Emma and Cobertura that are widely used and supported (and many more) as well … Continue reading

Posted in .NET, Unit Testing | Tagged , , , | 16 Comments

Tracking Project Metrics

How do you track the health of your software projects? Ideally you could come up with few, easy to collect metrics and have your Continuous Integration system generate the information and maybe even graph it over time. What we track … Continue reading

Posted in .NET | Tagged , , , | 1 Comment

Register and Unregister COM DLL from .NET Code

Background The command regsvr32 is used to register a native, unmanaged code DLL so that it is available via COM. With a registered DLL you can use COM Interop to call that code from .NET Managed code. Regsvr32 is unmanaged … Continue reading

Posted in .NET, Code | Tagged , | 5 Comments

Windows Subversion Maintenance Scripts

Previously I wrote about the Subversion Maintenance Scripts that I use for doing things like backups and upgrades. They were bash shell scripts that automated dealing with multiple Subversion repositories. The secret was that those guys were being run using … Continue reading

Posted in Automation | Tagged , , | 4 Comments

Swapping Values Without a Temp Variable

It’s been a long time since I’ve done any C programming (the only C I ever really did was in school 10+ years ago) and I’ve never done it outside of school. I figure since I look at and study … Continue reading

Posted in C | 1 Comment

Scheme/HtDP Unit Testing Functions

How to Design Programs (HtDP) provides a series of unit testing functions that allow you to test the output of any kind of function. The current version talks about testing your code, but doesn’t offer a lot of guidance into … Continue reading

Posted in Scheme | Tagged , , | Leave a comment