Published: February 15 2014

AngularJS - Reverse Geocoding Directive

This is a little custom AngularJS directive that converts GPS coordinates (latitude/longitude) into an address, otherwise known as reverse geocoding, using the Google Maps API.
Published: November 20 2013

Getting Foreman working on Windows 7 after installing the Heroku Toolbelt

Getting foreman up and running on Windows 7 after installing the Heroku Toolbelt - how to fix the problems with "'foreman' is not recognized as an internal or external command" and "Bad file descriptor"
Published: October 16 2013
Last updated: March 11 2016

ASP.NET MVC - Required Checkbox with Data Annotations

How to make a required checkbox in ASP.NET MVC using the built in 'Range' data annotation attribute.
Published: July 31 2013

C# - Get time zone and UTC offset from latitude and longitude (GPS coordinates)

I recently set up an Instagram feed for a travel blog and found that the Instagram API only supplies the UTC created date/time of each image, and doesn't supply the user's UTC Offset (as the Twitter API does), so the only thing you have to work with are the latitude and longitude (lat/long) coordinates to find out the timezone and UTC Offset of where the image was posted.
Published: April 20 2013

Enable infinite scroll on iPhone and desktop with jQuery

There seems to be quite a few code examples out there for jQuery infinite scroll for iPhone that simply don't work
Published: October 23 2012

Using MVC 4 Web Api with jQuery DataTables

With the release of ASP.NET MVC 4 and Web Api, creating JSON web services has never been easier, which makes it perfect for populating jQuery DataTables via Ajax.
Published: September 20 2012

MVC CheckboxList for property of type IList<Enum>

This is an extension method for creating a checkbox list for a list of enum values (IList<Enum>). It's a modified version of the CheckboxListForEnum extension method I found on the Xango project. Their version creates a checkbox list for a property that contains a single enum value.
Published: August 16 2012

IIS URL Rewrite - Redirect multiple domains to one and http to https with a single rule

Redirecting multiple domains to one and http to https is a pretty common requirement, and the are plenty of examples online showing how to do this using the IIS URL Rewrite Module. Most of the examples I've seen work fine, but use separate rules for redirecting each domain and for redirecting http to https, resulting in something like this:
Published: July 06 2012

MVC3 redirect to mobile site and stop executing

Response.Redirect(url, true) does NOT stop executing. Automatically redirect iPhone to mobile site.
Published: June 24 2012

ASP.NET MVC3 + Altairis Web Security Toolkit

In this post I'll show you how to install and configure the Altairis Web Security Toolkit in an MVC3 application. The Altairis Web Security Toolkit is a simple, easy to use ASP.NET Membership Provider with a clean table structure. It's much nicer to work with than the default ASP.NET Membership Provider.
Supported by