Tags
Archives
- October 2014
- March 2014
- December 2013
- July 2013
- January 2013
- December 2012
- August 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- July 2011
- June 2011
- May 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
Categories
Blogroll
Code Tools
Resources
Web Tools
Category Archives: Tips and Tricks
Wrapping JsonResults in ASP.NET MVC
Like a lot of web developers I like to load page content dynamically but this can cause problems if the Ajax request causes an error on the server. Timeouts can be handled in jQuery but what if the user needs … Continue reading
Calculating the Previous Month’s Date Range in SQL
Here’s a handy snippet that calculates the start and end dates for the previous month based on the current date. I find this very handy when I have an automated script that reports on the figures for only the last … Continue reading
Wiki Markup Hyperlinks for WPF or HTML
This article shows an example of a Wiki-inspired markup for embedding hyperlinks in text – and how to render it as WPF and HTML. When building any kind of content management system, it’s a good idea to give users the … Continue reading
Windows Azure Emulator – Unavailable Ports
I tried launching the Windows Azure Emulator today and hit the follow error: Role instances are taking longer than expected to start. Do you want to continue waiting? It turns out that the emulator has trouble starting if any of … Continue reading
Timing a Method in C#
Here’s a very quick way to check the performance of a block of code. I’m wrapping a System.Diagnostics.Stopwatch class and sending all timings directly to Debug.WriteLine(). Please be aware that this is a very simplistic approach, and does not guarantee … Continue reading