Tuesday, December 29, 2009

How to Improve Windows 7 Performance

The performance on Windows 7 has improved from Vista. In most of the time I am pretty happy with it on all my machines. But when it comes to my netbook, it seems a little short. Here are a few things I did to improve its speed, which seems to help.
  1. Turn off transparency
  2. Use ReadyBoot from a fast USB flash drive
  3. Convert from FAT32 to NTFS
  4. Reduce Startup Programs
  5. Disable indexing services
    • Application Management
    • Clipbook
    • Computer Browser
    • Error Reporting Service
    • HID Input Service
    • Indexing Service
    • Net Logon
    • NetMeeting Remote Desktop Sharing
    • Network Location Awareness (NLA)
    • Network Provisioning Service
    • Portable Media Serial Number Service
    • QoS RSVP
    • Remote Desktop Help Session Manager
    • Remote Registry
    • Secondary Logon (If you only have one user on your computer)
    • TCP/IP NetBIOS Helper Service
    • Telnet
    • Uninterruptable Power Supply
    • WebClient
    • Windows Time
    • WMI Performance Adapter
  6. Disable Performance Counters
  7. Turn off Automatic Updates

Sunday, December 20, 2009

Grinder Examples

Hello World
from net.grinder.script.Grinder import grinder
from net.grinder.script import Test

# A shorter alias for the grinder.logger.output() method.
log = grinder.logger.output

# Create a Test with a test number and a description. The test will be
# automatically registered with The Grinder console if you are using
# it.
test1 = Test(1, "Log method")

# Wrap the log() method with our Test and call the result logWrapper.
# Calls to logWrapper() will be recorded and forwarded on to the real
# log() method.
logWrapper = test1.wrap(log)

# A TestRunner instance is created for each thread. It can be used to
# store thread-specific data.
class TestRunner:

    # This method is called for every run.
    def __call__(self):
        logWrapper("Hello World")

Friday, December 18, 2009

Log on to Windows 7 Automatically

It used to be a pretty complicated task to configure auto-logon in Windows XP.  It takes some tinkling to the Windows Registry data (see here.)  However, Windows 7 has changed that.  Now you can set up a default user to log into Windows automatically through some dialog boxes.  And the password is not stored as plain text in the registry anymore.  Two ways to bring up the User Accounts dialog box:
  • Type "netplwiz" in the Start menu search box (Run window) and hit Enter.
  • Type "control userpassword2" in the Start menu search box (Run window) and hit Enter.
For detail instructions on how to do this, check out this article on www.howtogeek.com.

Unfortunately, you can't access this dialog box through the Control Panel; I think Microsoft intentionally omitted it.  But you can add it back into the Control Panel by modifying the following Registry keys:
@="Advanced User Accounts" "InfoTip"="Starts the \"Control Userpasswords2\" Admin Screen" "System.ControlPanel.Category"="9" 




@="Control Userpasswords2" 

@="Add Advanced User Accounts to Control Panel" 

Tuesday, December 1, 2009

How to Remove GPT Protective Partition from a Drive in Windows

Warning: This procedure will erase all data on the disk. Please backup your data before proceed.

In Windows, you can use a program called DISKPART, which is a command line program, to remove a GPT Protective Partition from a disk. Here's how:
  1. Bring up your Command Prompt program
  2. Type DISKPART at the prompt
  3. Then type list disk in DISKPART's prompt to show all disks on the machine.
  4. Type select to set the specific partition: select disk 1
  5. Then type clean will remove the GPT Partition from the selected disk
Now, you can go to Disk Management Console and start formatting the 'unallocated' partition on this drive. Have fun!