Monitor Windows CPU usage with Python

This little Python script lets you monitor the average CPU-load on a Windows machine. Needs WMI to be present.

import os

def get_cpu_load():
    """ Returns a list CPU Loads"""
    result = []
    cmd = "WMIC CPU GET LoadPercentage "
    response = os.popen(cmd + ' 2>&1','r').read().strip().split("\r\n")
    for load in response[1:]:
       result.append(int(load))
    return result

if __name__ == '__main__':
    print get_cpu_load()
Published in: on June 8, 2009 at 10:25 am  Comments (8)  

Cheat Sheet Central

Find a very useful overview of numerous “cheat sheets” at Smashing Magazine’s website. CSS, XHTML, C# and Python are only a few languages which are covered here.

The Apache Cheat Sheet is quite useful:

or the Regular Expressions cheat sheet: 

Published in: on December 17, 2006 at 5:59 pm  Comments (3)  

IE 7 standalone installation

Find a nice HowTo for the standalone installation of IE 7 here.

ie7ie6.gif

Published in: on November 7, 2006 at 2:45 pm  Leave a Comment  

Invent a Word

When I first heard the word “travelocity” I thought it was a clever combination of two existing words (“travel” + “velocity”) that yielded a new and meaningful word. I wondered how difficult it would be to come up with more clever words like “travelocity”. Invent-a-Word was born …

Invent-a-Word Website

Published in: on October 25, 2006 at 7:00 am  Leave a Comment  

Rearrange your taskbar

If you are someone like me, who usually has a 3 storyed Windows taskbar, then you might appreciate this nice little utility: Taskbar Shuffle lets you rearrange the programs in your taskbar.

No hotkey, no extra steps, drag and drop the programs on your Windows taskbar by simply… well, dragging and dropping them! Neat concept, huh?No need to get all nervous when a program crashes or if you wanna reboot; you can reorder the programs/buttons on your taskbar exactly how you like.

The Taskbar Shuffle Website.

Published in: on October 25, 2006 at 6:50 am  Comments (1)