DROTHISM

Deep Zoom Composer

Posted by Drothism on May 11th, 2009

Deep Zoom Composer is free software from Microsoft that lets you place high resolution photographs and other large images in a web page without resizing them. Your viewers can then navigate through the images using standard zoom and pan controls similar to what we have in Google Maps. The only thing they would need is Silverlight*.

This free app can be downloaded from the Deep Zoom Composer download page.

If you are looking for some non-Silverlight options for embedding large photos, check out Google Maps Viewer and Zoomify.

DROTHISM

10 Business Lessons From ‘Battlestar Galactica’

Posted by Drothism on Mar 21st, 2009

In humanity’s darkest hour, Admiral Adama faced the ultimate leadership challenge. Here’s what every business leader can learn from his example.

read more | digg story

DROTHISM

Get Oldest File in a Directory

Posted by Drothism on Mar 17th, 2009

Looking for a quick way to get the oldest file in a directory? Here is a quick and dirty method to do it with PowerShell…

dir f:\archive -recurse| ?{!($_.PSIsContainer)} | sort -property lastwritetime | select -first 1

The ?{!($_.PSIsContainer)} filter will leave sub-directories out of the search.

DROTHISM

Run PowerShell Scripts from Task Scheduler

Posted by Drothism on Feb 26th, 2009

Those familiar with configuring batch command scripts in the Windows Server 2008 or Windows Vista Task Scheduler may be a little perplexed in how to run PowerShell scripts from the scheduler. The main difference is in the Action form parameters…

Program/script: Set to the PowerShell.exe path. This is typically C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe.

Add arguments: -nolog -command “&{D:\Scripts\MyScript.ps1 Param1 Param2}”. Note that the PowerShell script path and the parameters must be within the curly brackets.

Start in: D:\Scripts. This should be added if you plan to use referenced rather than absolute paths within the script.

Ensure the PowerShell execution policy is set to RemoteSigned on the machine. To do this type “set-executionpolicy RemoteSigned” from the PowerShell command prompt.

DROTHISM

Resetting an iPod

Posted by Drothism on Feb 25th, 2009

To reset an iPod Generation 4 device, toggle the hold button back and forth. If this does not work, hold down the menu button and the center of the circle for at least 6 seconds, until the apple logo appears.

 

DROTHISM

Task Scheduler Syntax

Posted by Drothism on Jan 21st, 2009
Schtasks.exe

Enables an administrator to create, delete, query, change, run, and end scheduled tasks on a local or remote computer. Running Schtasks.exe without arguments displays the status and next run time for each registered task.

Read the rest of this entry »

DROTHISM

Life On Mars Soundtrack

Posted by Drothism on Jan 13th, 2009

Life On Mars is one of the few good programs on the network channels at the moment. It combines SciFi with an excellent 70’s cop theme, topped with great music from the period. Somehow they not only make it all work, but manage to pull off probably the best new SciFi show since the short lived, but very engrossing Journeyman series, to air on network TV. I recommend anyone who hasn’t watched Life On Mars yet, to catch up on with the free episodes on the ABC site.

Since the excellent 70’s soundtrack is unavailable on CD as of yet, I had to dig around to find a list of the songs from the series, and then download them from ITunes and Amazon. Hopefully this compilation makes creating your very own Life On Mars playlist a little easier.

Read the rest of this entry »

DROTHISM

PowerShell Special Characters

Posted by Drothism on Dec 12th, 2008

Here are some of the special characters that can be used in Windows PowerShell output:

  • `0 — Null
  • `a — Alert
  • `b — Backspace
  • `n — New line
  • `r — Carriage return
  • `t — Horizontal tab
  • `’ — Single quote
  • `” — Double quote

Some of these characters are intended for use only from the Windows PowerShell prompt. For example, the special character `a causes your computer to beep.

DROTHISM

PowerShell Cheatsheet

Posted by Drothism on Dec 11th, 2008

PowerShell is Microsoft’s replacement for cmd.exe, the venerable NT command shell. It breaks new ground, introducing a powerful but completely new syntax. (If you don’t have it yet, download it here).

Revolutionary but different, users new to PowerShell will often find themselves lost - not being able to figure out how to do simple things that they’ve been doing in other shells for the last 20 years. This cheat sheet should help.

PowerShell’s native commands are all based on a verb-noun syntax, for example, “get-childitem”. Command names are often quite verbose, so there is an extensive list of default aliases that help with common commands. The table below will give the alias, where available, as well as the native PowerShell command.

Operation cmd PowerShell
Get a simple directory listing
dir
get-childitem
alias: dir
Get a recursive directory listing
dir /s
get-childitem -recurse
alias: dir -r
Get a wide directory list
dir /w
dir | format-wide
alias: dir | fw
List built-in commands
help
get-command
alias: help
Copy a file
copy foo.txt bar.txt
copy-item foo.txt bar.txt
alias: copy foo.txt bar.txt
Move a file
move foo.txt c:\
move-item foo.txt d:\
alias: move foo.txt d:\
Rename a file
ren foo.txt bar.txt
rename-item foo.txt bar.txt
alias: ren foo.txt bar.txt
Batch rename
ren *.one *.two
dir *.pdf | rename
  -newname {$_.name -rep ".one",".two"}
Set the current directory to d:\
d:
cd \
set-location d:\
alias: cd d:\
Clear the screen
cls
clear-host
alias: cls
List only directories
dir /ad
dir | where { $_.MshIsContainer }
Directory list, sorted by date
dir /od
dir | sort-object LastWriteTime
Directory list, sorted by date, descending order
dir /o-d
dir | sort-object LastWriteTime -desc
Show the current directory
cd
get-location
alias: pwd
See a command’s help
dir /?
get-help get-command
or: get-help get-command -detailed
or: get-help get-command -full
or: dir -?
List environment variables
set
dir env:
Delete a file
del foo.txt
remove-item foo.txt
alias: del foo.txt
Find all *.txt files
dir /s *.txt
get-childitem -recurse -include *.txt
alias: dir -r -i *.txt
Find all *.txt files containing a particular string
findstr "foo" *.txt
dir *.txt | select-string "foo"
Show a list of services
net start
get-service
Start a service
net start MyService
start-service MyService
Stop a service
net stop MyService
stop-service MyService
Show network shares
net share
gwmi Win32_Share
Show a list of running processes
tasklist
get-process alias: ps
Kill all notepad.exe processes
taskkill /im notepad.exe /f
ps notepad | kill

A few PowerShell commands that you can’t easily do with the standard Windows shell:

Operation PowerShell
Set the current directory to a UNC path
cd \\\\myserver\\\myshare
Get a list of event logs
get-eventlog -list
View entries in a particular event log
get-eventlog -newest 20 -logname System
Treat the registry like a filesystem
cd hkcu:
dir
Recursive directory, grouped by extension
dir -r | group extension
Search for a file containing a string, recursive
dir -r | select-string "foo"
List the 10 processes using the most memory
ps | sort -p ws | select -last 10
Count the results of a directory listing
(dir).count
Count the results of a directory listing
$f = Get-Content "myfile.txt"
foreach ($item in $f)
{do stuff with $item}

There’s a lot to PowerShell, and this only scratches the surface. This guide is meant to help you get going with some everyday commands, but be sure to read some of these great PowerShell blogs, and the PowerShell Script Center for more in-depth tips. (And here’s a good reference on PowerShell syntax).

DROTHISM

Opie for Obama

Posted by Drothism on Oct 24th, 2008

What would happen if Opie and Richie Cunningham had to ponder the 2008 election? Well now you can find out! Ron Howard dons a red wig to reapprise his roles as Opie and Richie, with special guests Andy Griffith and the Fonz.

Desperate times call for desperate measures!

See more Ron Howard videos at Funny or Die