KC's Blog

a personal journal by an addictive geek

Pull a list of recent restart events in PowerShell

Posted in Tips & Tricks on January 26th, 2012 by Kent
image

Here is an example of using a new cmdlet in PowerShell v2 called Get-WinEvent to pull a list of events from Windows event log, restart events in particular. Copy the following code and paste to PowerShell window, and execute it. {code type=codetype} Get-WinEvent -FilterHashtable @{logname='System'; id=1074}  |   ForEach-Object {     $rv = New-Object PSObject | ...

Quote I liked

Posted in Stuff in General on October 11th, 2011 by Kent

As Chris Rawson said in his post "OSX and iOS are not jails": As Harry McCracken points out, even the most deeply "imprisoned" of us still have the choice to not buy Apple's products, to not use Apple's software, and to dedicate ourselves to free software and open platforms instead. The ...

Long-lived Steve Jobs

Posted in Information Technology on October 6th, 2011 by Kent
image

I am a big fan of Apple, mostly because of its life changing product, iPhone. But Apple was in my career right from the beginning when I was in colleague in mid of 1980s. The first Apple computer I used in the computer room in the school was something like this: I spend the large part ...

Icon Ambulance

Posted in Information Technology on August 25th, 2011 by Kent

Google's exec Vic Gundotra shared a great story of Steve Jobs yesterday after Jobs announced his retirement stepping down as CEO in Apple. It's one of many great stories about Jobs, a legend who will be missed forever. Vic missed a call on a Sunday morning in 2008 during a religious service that showed ...

Tape v.s. Disk Backup Comparison

Posted in Information Technology on August 17th, 2011 by Kent

Here is a good side-by-side comparison from i365, if you are still thinking of moving on to this direction. Disk v.s. Tape: A side by side comparison.

Logitech Unifying Receiver

Posted in Miscellaneous on July 19th, 2011 by Kent
image

I really like this little guy called Unifying Receiver, a tiny wireless receiver that lets you easily connect up to six compatible wireless Logitech mice and keyboards. It's so tiny that it can stay plugged into your notebook or desktop's USB port without any needs unplugging it when you move around. It's called Unifying because not ...

Finding Useful WMI Classes in PowerShell

Posted in Information Technology, Tips & Tricks on July 13th, 2011 by Kent

Today's PowerTip of the day from PowerShell.com, Finding Useful WMI Classes, is quite useful. To find the most useful WMI classes you can use Get-WmiObject, and let PowerShell provide you with a hand-picked list: Select-XML $env:windir\System32\WindowsPowerShell\v1.0\types.ps1xml -Xpath /Types/Type/Name | ForEach-Object { $_.Node.innerXML } | Where-Object { $_ -like ...

Invalid SIM on my iPhone

Posted in iPhone on June 20th, 2011 by Kent

After this Invalid SIM intermittently happened a few times on my iPhone, it totally went down on my yesterday morning. No matter how many restart and pop out/in the SIM I did, the Invalid SIM message just kept staying at the top of screen preventing me from using its phone and 3G data. Before I ...