Monday, October 15, 2007

Suspend to RAM to save power

Today is Blog Action Day, and so I thought that I would write a bit about how I save energy while still maintaining an (almost) always on computer.

Every modern computer supports Suspend to RAM, but in my experience, few people use it. Most people either leave their computer on all of the time for convenience or turn it off when they are done with it in order to save power. Suspend to RAM allows you to have the best of both worlds very little power usage when it is suspended and instant availability when you are ready to use it again.

Basically, when your computer enters the Suspend to RAM (or goes to "sleep") everything inside the computer gets turned off except for the memory. This includes all of the fans, hard drives, video cards, etc. For all intents and purposes your computer will appear to be off except for possibly a small light somewhere on the computer that blinks to show that the computer is still on. When you wake the computer back up again, everything should appear exactly as it was before the computer went to sleep in less than 5 seconds.

Here are some simple tips on how to get started using Suspend to RAM mode on your Windows PC:

  1. Open the "Power Management" control panel icon (Start->Run->"powercfg.cpl" works too)
  2. Adjust the System Standby time to match your needs.
  3. I prefer to put my computer to sleep and wake it up with the power button. I want to enable this function, then click the "Advanced" tab and change the "When I press the power button on my Computer" setting to be "Standby".
Now you should be all set to go. Your computer should go to sleep after a short period of time, and it will wake back up when you press a key on the keyboard or press the power button on the computer again.

Unfortunately there are a lot of things that can go wrong with this process. The most common problem that I have encountered is that the computer doesn't shut down completely and the fans and hard drives are still running. In this case doing one of the two following tricks normally fixes the problem:
  • Disable the "Allow this device to bring the computer out of Standby" setting for all of your USB devices.
    • Right click on "My computer and select "Manage", then open the "Device Manager" (or Start->Run->"devmgmt.msc")
    • Double click on the device to bring up the properties window
    • Make sure that "Allow this device to bring the computer out of Standby" is not checked in the "Power Management" tab
  • Change the power scheme to "Portable/Laptop"
    • Open Power Options in the Control Panel (or Start->Run->"powercfg.cpl")
    • Change the Power Scheme to "Portable/Laptop"
    • Check to see whether the fans still run in Standby
    • If the problem is fixed, then you should be able to change the Power Options to custom times without a problem.
    • This solution may seem a little bit sketchy since it doesn't seem to change anything that you couldn't change already, but there is definitely something that gets reset with this hack. I once had a machine that wouldn't sleep properly and using this hack fixed the problem.
If you need more help, there are a couple of people with more detailed writeups that you can follow: (exoid.com) (jillesvangurp.com) (thegreenbutton.com)

So how much power does this actually save? On my desktop, which I consider to be fairly average, I used a Kill-A-Watt meter to measure the power draw of my computer. While running, the machine uses ~150 Watts. If I suspend the machine, then I only draw ~8Watts. For a 24-Hour period that is a savings of about 3.4 KW-Hrs!

Tuesday, October 09, 2007

Upgrading PidginPortable to version 2.2.1

If you don't want to read the whole post, here is a link to the download:
PidginPortable 2.2.1

I use Pidgin for most of my IM needs, and in order to keep my logs all in one place, I use the PortableApps.com version of PidginPortable and keep it on my USB Drive.

However, the version of PidginPortable on PortableApps.com hasn't been updated since mid August and is still stuck at version 2.1.1 while the latest official release is 2.2.1 which includes several important new features (such as MySpaceIM protocol), bug fixes, and even an important security fix. I finally got annoyed at being stuck with version 2.1.1 (especially since every time I started PidginPortable up I got a reminder message saying that there was a newer version available), and I decided to see if there was an easy way to upgrade the PortableApps distribution to 2.2.1.

It actually turned out to be really easy. All you need to do to upgrade is to replace the files in your "PidginPortable\App\Pidgin" folder with the same files from the current release of Pidgin. Unfortunately there isn't a binary only distribution on the Pidgin SourceForge page, so I installed Pidgin on my computer using the packaged installer and copied the files out of the installation directory. I also used upx to compress the pidgin.exe in order to save a little bit of space.

In order to make it easier for others who may be looking for the same thing, I have posted my updated version of PidginPortable on mediafire.com. Here is a link:

http://www.mediafire.com/?4q1dovsuto5

edit: I have updated to version 2.3 please use this new download link

http://www.mediafire.com/?8mmnmtxs9jc

Friday, October 05, 2007

Fake Credit Card Numbers

Today I registered for a local engineering conference. Although my registration was free, for some reason their eCommerce site wanted a credit card number. Well, I don't particularly care to give my credit card out to just anyone on the internet, so what do I do, and why does their site want my credit card number if they aren't planning to charge it for anything?

Of course, I did the only reasonable thing a security concious engineer could do, I did a quick search for "fake visa number generators" on the internet and found this gem of a site:

http://www.darkcoding.net/index.php/credit-card-numbers/

Then, I took the first number off of the list, made up an expiration date and CVV number, and tried it out. Two pages later I got a lovely confirmation stating that my registration had been accepted.

Thursday, October 04, 2007

To scrape or not to scrape?

Recently Zap2It, the company which had been providing XML based TV listings for free to open source software such as MythTV, decided to shutdown their free XMLTV service. The "official" replacement for the service is a non-profit startup, SchedulesDirect. They now provide XML TV listings for a very reasonable price of $20/year.

I always have a hard time forking over money for something that I can get for free elsewhere, and in the wake of the labs.zap2it.com closure several enterprising individuals have developed programs which scrape TV listings from commercial websites. One of these is a PERL program called Zap2XML. I can report that the program works great, and there are even a couple of setup guides floating around around that target MythTV users.

However, the use of the program in my opinion constitutes a bit of a moral and ethical dilemma. You see there is the little problem of the fact that when I signed up for a free Zap2it.com account, I agreed to their Terms of Service which say "You may not scrape or otherwise copy our Content without permission" which technically prohibits me from scraping their website. However, their TOS also says, "you may download or print a single copy of any portion of the Content solely for your personal, non-commercial use". I believe that even though they prohibit me from scraping their website for listings with a program like Zap2XML, that as long as I am using it only for "personal, non-commercial use" that I am probably ok.

I believe that their reason for prohibiting scraping is two-fold. One, it prevents other websites from scraping Zap2It's TV listings (which they paid TMS a lot of money for) and then rebranding the content and displaying elsewhere. I am clearly not doing this, but the second reason is an even bigger moral dilemma. You see Zap2It (as well as 90% of the rest of the internet) depends upon advertising revenues to cover at least part of the cost of their doing business, and when I use a program like Zap2XML to scrape listings from their website I am obtaining content from them without viewing their advertising. Some people have argued that this is stealing, and this leads into the even bigger question of the morality behind online advertising and ad blockers such as Adblock Plus which is a whole other ball of wax that I don't really want to get into right now, but suffice it to say that I believe that there is some validity to arguments on both sides of the issue

I believe that this issue is the second reason why Zap2It specifically prohibits scrapers. They are providing content that costs them money to produce. Additionally there are costs involved in bandwidth and servers, and they believe that they have a right to recover part of those costs through advertising revenues. Now, I am not opposed to their collecting ad revenues from my viewing of their website, but I also feel like I have the right to select which content I view and how I view it, and so for now I am using Zap2XML.

Anyways, I just thought that I would throw some of this issue out there and see how my readers feel about this issue. Please feel free to post any and all comments or opinions that you might have on the morality and ethics behind this issue.

 

Blogger Template by Blogcrowds