Archive for January, 2010
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!
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 [...]