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 [...]
C# Literal Types
When you are specifying literal numeric values in your code you will, on occasion, have to give the compiler a heads-up on the expected type from the declaration.
For example, the literal value 5.3 will, by default, be assumed to be a double. As such, the following
1
float result = 5.3 / 12.4;
will result in the [...]
400 Bad request in Firefox, fine in IE
I ran into a problem this morning that had me stumped. One of our sites was running fine in IE but in Firefox was causing a “400 Bad Request”. To make matters more confusing the server was hosting two domains, one of them working in Firefox and one not. After assessing the server and ensuring [...]
RssResult - An ASP.NET MVC RSS ActionResult
One of the most common tasks for data serving websites is offering an RSS feed that users can subscribe to in order to keep up with the latest updates to that data.
Previously I posted the article Creating a simple RSS feed using ASP.NET MVC which demonstrated how to create an RSS feed in a quick, [...]





