Saturday, December 26, 2009
intel info
"Today, the average desktop PC wastes nearly half of its power, and the average server wastes one-third of its power," said Urs Hölzle, Google's senior vice president of operations. "The Climate Savers Computing Initiative is setting a new 90 percent efficiency target for power supplies, which if achieved, will reduce greenhouse gas emissions by 54 million tons per year."
According to Hölzle, this reduction would be equivalent to removing 11 million cars from the road.
The initiative has taken the U.S. government's 2007 Energy Star guidelines at its starting point, but plans to eventually surpass them. For example, the guidelines require that all Energy-Star-certified personal computer power supplies be 80 percent efficient, whereas the Climate Savers Computing Initiative aims to hit 90 percent by 2010.
Wednesday, December 23, 2009
windows
From the Windows standpoint, the slide show application is a very simple SDI (Single Document Interface) application. CchildView::OnPaint() displays a GDI Image object that represents the current image. The other events and commands are all handled in the CMainFrame class, which implements the top level main frame window of the application.
The ImageSource class handles retrieving pictures from one of several components and presenting the images in sequence.
When a memory stick, flash card, or USB hard drive is inserted or removed, the Windows system automatically sends WM_DEVICECHANGE messages to the top level window of each application. CMainFrame::OnDeviceChange() sorts out the messages that signal media insertion and removal. The Slide Show application responds to the insertion by attempting to display picture files in the root folder.