Comparing Date Ranges For Overlap

2 Comments
dateranges

I often find myself writing logic to compare two date ranges to see if they overlap. In fact, I’ve done this enough times that I thought it was worth capturing in a blog post to save myself the time of having to figure it out next time. Hopefully you, dear reader, will also find it useful. TL;DR If you don’t need to understand the reason why, no need to read on. Just use this logic:

  The Details There are two different conditions that could make for non-overlapping ranges: Condition 1: Range B ends before Range A starts, which we could write as: Condition 2: Range A ends before
Continue reading...

Detroit, MI – Detroit DevDay

No Comments
devdaylogo

I had an excellent time presenting a talk today at Detroit DevDay in Detroit, MI. I spoke about “ASP.NET 5: Someone Moved Your Cheese”. Thanks to everyone that came to my talk and to the organizers for putting the event together. Every time I present, I challenge the attendees to give to a worthy cause if they enjoyed the talk. If the audience from my talk hits the goal, at least 6 people will get access to clean drinking water. So, if you attended and enjoyed it–or even if you didn’t–feel free to join us in giving here: http://bit.ly/detroit-gives. I had a great time meeting everyone, and look forward to seeing
Continue reading...

Milwaukee, WI – Milwaukee CodeCamp

No Comments
mkecc-logo-full-color

I had an excellent time presenting two talks this morning at the Milwaukee CodeCamp in Milwaukee, WI. I spoke about “Model-View-Whatever: Comparing JavaScript MVC/MVP/MVVM Frameworks” and “ASP.NET 5: Someone Moved Your Cheese”. Thanks to everyone that came to my talks and to the organizers for putting the event together. Every time I present, I challenge the attendees to give to a worthy cause if they enjoyed the talk. If the audience from my two talks hit the goals, at least 12 people will get access to clean drinking water. So, if you attended and enjoyed it–or even if you didn’t–feel free to join us in giving here: http://bit.ly/mke-gives for the MVW
Continue reading...

New York, NY – Take Control of Your ORM with Entity Framework

No Comments
altnetnewyorklogo

I had an excellent time tonight at the New York ALT.NET Meetup in New York, NY. I spoke about “Taking Control of Your ORM with Entity Framework Code-First”. Thanks to everyone that came out, Microsoft for hosting us, and to the meetup organizers for putting the event together. If you attended and enjoyed it, don’t forget to donate a little something for clean water here: http://bit.ly/nyc-gives. I promised that I’ll give $150 if the meetup group gives $150 or more as a group in the next 7 days. So, in a way, if you didn’t like it, maybe you should donate even more! In all seriousness, I had a great time meeting everyone, and
Continue reading...

Attach Two Visual Studio Debuggers to IIS at the Same Time

No Comments
2015-03-12 13_06_11

Occasionally you need to be able to run two instances of Visual Studio to debug two different web applications simultaneously. If these web applications are set up to run in IIS, you may get the following error when you try to attached the second debugger: Unable to start debugging on the web server. A debugger is already attached. To run your applications, IIS creates a worker processes for each “Application Pool” you define in the IIS configuration. It then runs all applications assigned to a given App Pool in the same process. Since only one VS debugger can be attached to any given process at a time, simply putting your web apps in different App Pools is
Continue reading...