-
Time since last boot (Windows, VBScript)
I don’t remember where I found this, I was just happy to find code that did this. strComputer = "." ‘ Local computer set objWMIDateTime = CreateObject("WbemScripting.SWbemDateTime")set objWMI = GetObject("winmgmts:\" & strComputer & "rootcimv2")set colOS = objWMI.InstancesOf("Win32_OperatingSystem")for each objOS in colOS objWMIDateTime.Value = objOS.LastBootUpTime Wscript.Echo "Last Boot Up Time: " & objWMIDateTime.GetVarDate & vbcrlf &…
-
units
GNU Units With this program you enter in the units that you have and the units that you want to convert to, and the program tells you what to multiply by or divide by to get there. You have: furlongs per fortnightYou want: mph * 0.00037202455 / 2687.9946 You have: kilowatt hoursYou want: calories *…
-
Gutsy and 100% CPU usage… udevd going nuts.
This article seems to have the fix: Upgrade to Ubuntu Gutsy – emvs and udevd 100% cpu usage – aka udevd going nuts One typo I noticed: He refers to /etc/init.d/udevd instead of /etc/init.d/udev. The corrected steps:# apt-get remove evms# /etc/init.d/udev stop# /etc/init.d/udev start Full set of articles on evms