Category Archives: Software Development

Notes and info about software develepment. This will probably lean more towards .net and web development as that is what I do at work.

Plugging a ConnectionProvider in to NHibernate to connect to multiple databases

I recently had a scenario where I needed to connect to a variety of databases depending on context. The databases all shared the same schema, the contents were just partitioned out based on customer. I’d originally done this with many … Continue reading

Posted in Software Development | Tagged | 1 Comment

Some WinDbg notes for troubleshooting excessive memory usage

A little while ago I ran into some problems with the w3wp process gobbling up tons of memory. It ate up so much memory that after running for a few hours with high traffic, it would automatically get restarted by … Continue reading

Posted in Software Development | Tagged , , , | 1 Comment

Performance Monitor Tips & Tricks

I’ve been doing a lot of digging into performance monitor this last week or so and learned some new tricks. I thought I’d write this up and share what I found in case it’s useful in the future: Command line … Continue reading

Posted in Software Development | Tagged , , , | 1 Comment

Reconfiguring the load balancer to check via HTTP

So this comes from a work experience. For a project, I was looking into reconfiguring the load balancer we were using… We’re using loadbalancer.org. Which uses Linux-HA which uses ldirectord to monitor servers. There are a few options for how … Continue reading

Posted in Software Development | Tagged , | Leave a comment

Some Parameters for msdeploy.exe

I’ve been trying to get msdeploy working for me at work.  Hopefully it will be able to replace some PowerShell/Robocopy scripts I have for updating our servers. To deploy/update an existing site to local: msdeploy.exe -verb:sync -source:Package=”<Package.zip>” -test:iisApp=’<Website>’ To deploy/update … Continue reading

Posted in Software Development | Tagged | Leave a comment

Internet Explorer 7 usage stats

So Internet Explorer 7 has been out for over a year (it was released on October 18th), yet there are still enough IE6 users that we still have to code for it. IE6 has some horrible rendering inconsistencies and bugs … Continue reading

Posted in Software Development | Tagged , , | 1 Comment

Check This Out (Simple Reflection.Emit Stuff)

public class HelloModifier { public static Target CreateTarget() { AssemblyName assemblyName = new AssemblyName(“MyDynamic”); TypeBuilder typeBuilder = AppDomain.CurrentDomain. DefineDynamicAssembly(assemblyName, AssemblyBuilderAccess.Run). DefineDynamicModule(assemblyName.Name). DefineType(“TargetOverride”, TypeAttributes.Class, typeof(Target)); MethodBuilder hello = typeBuilder.DefineMethod(“Hello”, MethodAttributes.Public | MethodAttributes.HideBySig | MethodAttributes.NewSlot | MethodAttributes.Virtual, CallingConventions.Standard, typeof (string), Type.EmptyTypes); ILGenerator … Continue reading

Posted in Software Development | Tagged , | Leave a comment

On Microsoft and Developer Learning

For a while now I had been expecting better developer documentation from Microsoft. You’d think if you were looking for tips and ideas on how to develop software that Microsoft would know a thing or two. I mean they write … Continue reading

Posted in Software Development | Tagged , , | 1 Comment

Got my copy of Applying DDD (w/C#) today

DHL said it arrived yesterday, but I never saw it. Turns out DHL used USPS and it was in the mailbox. Anyway, the book is Applying Domain-Driven Design and Patterns: With Examples in C# and .NET. I just finished the … Continue reading

Posted in Software Development | Tagged , , | Leave a comment

Workaround for weird Firefox bug where the textarea cursor will dissappear

Every once in a while I run across a bug in Firefox that basically hides the blinking cursor that is supposed to be in a textbox. It’s still there and I can still type, but I just can’t tell where … Continue reading

Posted in Software Development | Tagged , | 1 Comment