2012 in review

The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog.

Here’s an excerpt:

4,329 films were submitted to the 2012 Cannes Film Festival. This blog had 29,000 views in 2012. If each view were a film, this blog would power 7 Film Festivals

Click here to see the complete report.

Powershell Tip Use -f with N0 (Zero)

Use -f with N0
Often, it is necessary to output numbers, but you may want to control the number of digits and would like to control the formatting. The -f operator can do this and has a trillion options but there’s just one you need to remember: N0 (the “0” is the number zero).
PS> ‘{0:N0}’ -f (8GB/12KB)
It rounds the number so there are no digits after the decimal, and it adds a separator every three numbers if the number is more than 999. Replace “N0” with “N1” or any other number to control the digits after the decimal:
PS> ‘{0:N2}’ -f (8GB/12KB)
Share this tip on: facebook | twitter | linkedin

Show-Command Creates PowerShell-Code for You

PowerTip of the Day, from PowerShell.com:

Show-Command Creates PowerShell-Code for You

In PowerShell 3.0, there is a cool new cmdlet called Show-Command:

PS> Show-Command Get-Process

It works both in the console and the ISE editor, and when you specify a   cmdlet, a dialog window opens and shows a form that helps you discover and   fill in the cmdlet parameters. Once done, click Copy, then Cancel, and the   complete command line code is available from the clipboard. To insert it into   the console, for example, simply right-click.

The dialog window produced by Show-Command also shows the different   parameter sets (groups of parameters) a cmdlet supports, so you never again   run into issues where you accidentally mix parameters from different   parameter sets.
Share this tip on: facebook |   twitter |   linkedin