When I am king, there will only be one TimeZone for the whole planet

Let’s get this out of the way first.  I can’t sum up the problems that timezones cause develoeprs any better than this.

The Problem with Time & Timezones – Computerphile

Now that we have that out of the way, we can’t really use the libraries he references since we’re C# developers.  Sure, the framework has a lot of great tools, but how do we use them exactly?
Read more

The easiest and best way to validate an email address

When someone enters an email address, how do we check to make sure it’s legit?  Not legit as in “is it really their email address”, but as in “does it follow the rules to make it a real email address”?

For example, if someone enters “jdshfjsdhf”, that’s not legit.  However, “” is.  Recently, I ran into a problem where my scheme for validating email addresses was failing me. Read more

Type or namespace could not be found (are you missing a using directive)?

Recently, a co-worker ran into a problem I had run into many times in the past.  After taking a few minutes to figure things out I was able to help him.  It surprised me that I hadn’t blogged about this before.  So here we go…

Does this look familiar to you?

The type or namespace 'SomeNamespace' could not be found (are you missing a using directive or an assembly reference?)

I bet you’ve probably seen it before.  It happens when you forget to include a reference in your project or if you don’t use a ‘using’ directive to include the assembly.   Read more

Stressing and Load testing

I’m working on a project right now that requires certain behavior when in case the system starts spinning out of control.  Specifically, if the CPU the system is on hits 90% for more than 5 minutes in a row or if we run out of RAM for 5 minutes, we need to take certain actions.

The question I’m addressing in this post is not how to detect CPU utilization or Memory usage in C#… it’s how to load up your system so you can actually hit 100% CPU or use up all the RAM.

You could write a program that does it, but it turns out there’s already a tool for it.  The CONSUME command in Windows will allow you to load your system the way you want.

Using the command, you can spool up your CPU utilization so you can test your program.  It’s really slick.

CustomPrincipal and Serialization

Recently, I’ve been working on a project that relies on a backend business object layer.  The business object (BO) layer, requires authentication in order to be used.  For most of the systems, this is okay, but my project is to be used by end users.  We don’t need to authenticate the users… we need to authenticate the system.

This is easy enough using the CustomPrincipal object in Rocky Lhotka’s CSLA framework (which is also being used).  We simply create the CustomPrincipal and add that to the ApplicationContext. Read more

Scroll To Top