Tracking Google Goals With No URL Using jQuery
Google Goals make it extremely easy to track successful interaction with your website by setting a goal based on the serving of a URL to the client. However, what if a goal is a user clicking on a mailto email link, or clicking download to receive a pdf of your brochure? Neither of these resources [...]
Ordinal Suffix DateTime Extension Method
In my opinion the most annoying missing piece of date functionality in the .NET framework is an ability to get a DateTime’s ordinal suffix. If you’re as disheartened as me with this then dismay no more. Below is my DateTime extension method that returns the ordinal suffix for the current day of the month.
I’ve put [...]
Repopulate Html.PasswordFor<> on validation errors
ASP.NET MVC’s HTML helpers are fast and efficient for rendering elements using your model. One of these is the HTML.PasswordFor<> method, which has a little gotcha that many people get caught out with.
The HTML.PasswordFor<> method will render a password input to mask keystrokes on the browser but will not populate the value using the model. [...]
Order by day column using SQL
If you’ve ever had to sort a SQL query’s resultset using an “order by” clause on a “day of the week” column then you will know it can be very easy, or very tricky, depending on the format that the day is stored in the database.
If you stored the day of the week in numerical [...]
MacBook Pro hash key in windows
Can’t find the # hash key # on the keyboard of your MacBook Pro running Windows? I spent ages scratching my head on this one but it is there, it’s just hidden away from sight.
Simply hold ctrl, alt and press 3 to get a nice little hash character onto your screen. Simples!
var addthis_pub = ‘wduffy’;
var [...]





