Wednesday, 15 June 2011

Move window hidden from view.

Activate the window, Press Alt-Space to show context menu, then M for move, an arrow key, then use the mouse.

Friday, 3 June 2011

DATEPART considerations

Just a quick not on Using the DATEPART(WEEKDAY, value) function in SQL server.

My sql server is set up to use Sunday as the first day of the week which res returning the wrong day for my DATEPART queries.

To set the first day of the week to Monday you can use:

To set the first day of the week to Sunday you can use:

To check what DATEFIRST is currently set to you can use:

Thursday, 2 June 2011

Chuck Norris Programmer Jokes

1. When Chuck Norris throws exceptions, it’s across the room.
2. All arrays Chuck Norris declares are of infinite size, because Chuck Norris knows no bounds.
3. Chuck Norris doesn’t have disk latency because the hard drive knows to hurry the hell up.
4. Chuck Norris writes code that optimizes itself.
5. Chuck Norris can’t test for equality because he has no equal.
6. Chuck Norris doesn’t need garbage collection because he doesn’t call .Dispose(), he calls .DropKick().
7. Chuck Norris’s first program was kill -9.
8. Chuck Norris burst the dot com bubble.
9. All browsers support the hex definitions #chuck and #norris for the colors black and blue.
10. MySpace actually isn’t your space, it’s Chuck’s (he just lets you use it).
11. Chuck Norris can write infinite recursion functions…and have them return.
12. Chuck Norris can solve the Towers of Hanoi in one move.
13. The only pattern Chuck Norris knows is God Object.
14. Chuck Norris finished World of Warcraft.
15. Project managers never ask Chuck Norris for estimations…ever.
16. Chuck Norris doesn’t use web standards as the web will conform to him.
17. “It works on my machine” always holds true for Chuck Norris.
18. Whiteboards are white because Chuck Norris scared them that way.
19. Chuck Norris doesn’t do Burn Down charts, he does Smack Down charts.
20. Chuck Norris can delete the Recycling Bin.
21. Chuck Norris’s beard can type 140 wpm.
22. Chuck Norris can unit test entire applications with a single assert.
23. Chuck Norris doesn’t bug hunt as that signifies a probability of failure, he goes bug killing.
24. Chuck Norris’s keyboard doesn’t have a Ctrl key because nothing controls Chuck Norris.
25. When Chuck Norris is web surfing websites get the message “Warning: Internet Explorer has deemed this user to be malicious or dangerous. Proceed?”.
26. Chuck Norris CAN divide by 0.
27. Chuck Norris can overflow your stack just by looking at it.
28. Chuck Norris doesn’t need sudo, he just types “Chuck Norris” before his commands.
29. Chuck Norris can instantiate an abstract class.
30. The class object inherits from Chuck Norris
31. Chuck Norris can write multi-threaded applications with a single thread
32. There is no Esc key on Chuck Norris’ keyboard, because no one escapes Chuck Norris.
33. Visual SourceSafe actually works for Chuck Norris.