Friday, November 21, 2008

iPhone shortcut

to insert a period '.' in a sentence without going to the special characters page, double tap the space bar and it will insert it and advance one space. That's if in keyboard settings you didn't change a setting to insert a period. This was a new one for me since I don't go to keyboard settings too often.

Monday, November 17, 2008

get day of week from the past date (Powershell)

This script allows you to quickly get a day of week from a provided date in the past. Quickly get the DOB date to test it :).

(get-date "1/1/2008").DayOfWeek

p.s. works just as well for future dates:

PS C:\Powershell> (get-date "01/20/2009").DayOfWeek
Tuesday

Quick, what is the significance of this date?

Taken from "Manning Windows Powershell in Action"