Is it time to rotate the tires on your computer?

Over the last 20 plus years I have learned a few things about computers. One of them is that you need to “rotate the tires”. By this I mean general servicing of a computer. Most of this is not that hard and really is never talked about. It is like some dark secret that “they” never want you to never know.

So here are a few things you can do to make your computer run slightly better. And can be done overnight while you sleep.

Defrag the hard drive.

Defragmentation of files on your computer can improve your performance. What happens with computer use is that multiple files are always be written to the hard drive at the same time. And the system just uses the first available slot that it can find to store part of a file in. Then jumps to the next free space and so on and so forth until the file is completely written to the hard drive. In some extreme cases a 10MB file might have the first 3 megabytes on the first 25% of drive. Then the rest of file might be dispersed over the rest of the drive.

It is like when you read a newspaper or magazine and they tell you that the story is continued elsewhere. That is kind of annoying. To read something, store it in memory, then jump to page 34 to read more of it. Then find out that you now that to jump to page 40 to finish. But, what if you could defrag the story into one set of pages and be able to read it straight through? Would that not save time from having to flip pages and locate where the story continues from?

Well that is what programs would like to have done. Have all the files needed in the same general area without having get them from all over the hard drive and not have to piece them back together.

Here are few defragging programs that I use periodically to speed up my program loading and file access. You can download more than one. I mainly run two of them. One, Defragger allow you to not only defrag the whole hard drive. But, also just a single file if needed. This is handy on large file like VM images and ISO files that are a few gigabytes in size. The Second, defrag program is Smart Defrag. This one does a cool thing. It will reorder programs based on the usage. This helps if you are using the same program(s) all the time.

There are tons of other defrag programs on the market. Each does things a little different. You will need to read up on them to see if one is better for you. You can do that at CNET.

Uninstall programs

Somewhere on your computer there is at least one program that is installed that you have not used in months. Do you still need it? How much space is it using?

Some games can use a few hundred megabytes. Maybe you should get rid of it. Not just to save hard drive space. But, to increase performance.

How is that done you ask. Well, by removing an application from the system you delete references to is in the system registry and on the hard drive. Then the computer does not have to remember where it was stored or the settings that were stored in registry. And, in some cases that application or part of the application is running in background even if you never run it.

Use the Control Panel to select Programs and Features. You should then see a list of all the programs that can be uninstalled. Select the one you want and click uninstall.

Please note three things. One, some programs require other programs to run correctly. iTunes has several helper programs. Apple Application Support, Software Update, Bonjour, and QuickTime. Be careful which ones you decide to remove. The second thing is that it might be best to shut down your computer for a minute or two after uninstall some programs like trial version of Microsoft Office. This helped in the old days by forcing items in memory to be released and shut down services that might be running still on a restart. The third thing you might want to do is defrag the hard drive after removal and clean the system registry.

Clean the registry

The registry is used to keep track of where and what applications do. I can store default settings for an application and remember on what monitor you last used an application.

Over time the system registry can grow from a few hundred megabytes to several gigabytes. The larger the file the longer the read time. Thus slowing the system down.

So, from time to time you need back up and defrag the registry. Removing old pointers and setting for applications that are no longer on your system.

Two of the products that I used to do this is Wise Cleaner and SpyBot Search & Destroy. WiseCleaner will also defrag the registration file.

It is important to note that in some cases touching the registry might be a bad thing. In some cases it can lead to strange behavior issues with the operating system. I always back up the registry file before performing any changes to it. And playing with it should only be done at your own risk!

Do you know your hotkeys?

For the last few days some colleges and I have been discussing the skill levels of computer users ( I will have to write a posting on this at another time). One of the topics that I brought up is that few people know what hotkey are.

For those of you that do not know what hotkeys are, they a series of keyboard shortcuts that perform tasks and run programs. Your Window key and Apple Key on your keyboard are short cut keys.

In the old days of Windows. Almost 20 years ago there was not a “Windows” key on the keyboard (Gasp!!!). So you had drag the mouse the Start button bring up your list of installed programs. But, if you knew the long running hotkey combination Ctrl-Esc you could activated the Start menu and use you arrow keys to navigate the menu and find your application.

“But, why would I care about this. I have a mouse.” True. But, using hot keys speeds up routine tasks.

For example. Think about how much time it takes you to save a document with the mouse.

If I am working on a paper for a class I have to scroll down to the end of the document with the mouse to make changes. I leave my mouse pointer / cursor in the bottom right of the screen. I start typing. I feel good about my changes and now have to my mouse to to the application tool to find and click the save button.

Now open a document. Hold down the Ctrl and press the End key to take you to the of the document. Append your document. When finished hold down the Ctrl and press the S key. You have just saved your document.

Just think about all the time you could save if your hand never had to leave the keyboard to reach for your mouse.

Every program and operating system has different hotkeys. I don’t know them all. But, I have a few URL addresses to help us find them.

Here are some generic keyboard short cuts. That work in 90% of all windows programs.

Generic
Ctrl + C or Ctrl + Insert: Copy.
Ctrl + X or Shift + Delete: Cut.
Ctrl + V or Shift + Insert: Paste/Move.
Ctrl + N: New File, Tab, Entry, etc.
Ctrl + S: Save.
Ctrl + O: Open…
Ctrl + P: Print.
Ctrl + Z: Undo.
Ctrl + A: Select all.
Ctrl + F: Find…
Ctrl + F4: Close tab or child window.
F1: Open help.
F11: Toggle full screen mode.
Alt or F10: Activate menu bar.
Alt + Space: Display system menu. Same as clicking the icon on the titlebar.
Escape: Remove focus from current control/menu, or close dialog box.

Generic Navigation
Tab: Forward one item.
Shift + Tab: Backward one item.
Ctrl + Tab: Cycle through tabs/child windows.
Ctrl + Shift + Tab: Cycle backwards through tabs/child windows.
Enter: If a button’s selected, click it, otherwise, click default button.
Space: Toggle items such as radio buttons or checkboxes.
Alt + (Letter): Activate item corresponding to (Letter). (Letter) is the underlined letter on the item’s name.
Ctrl + Left: Move cursor to the beginning of previous word.
Ctrl + Right: Move cursor to the beginning of next word.
Ctrl + Up: Move cursor to beginning of previous paragraph. This and all subsequent Up/Down hotkeys in this section have only been known to work in RichEdit controls.
Ctrl + Down: Move cursor to beginning of next paragraph.
Shift + Left: Highlight one character to the left.
Shift + Right: Highlight one character to the right.
Shift + Up: Highlight from current cursor position, to one line up.
Shift + Down: Highlight from current cursor position, to one line down.
Ctrl + Shift + Left: Highlight to beginning of previous word.
Ctrl + Shift + Right: Highlight to beginning of next word.
Ctrl + Shift + Up: Highlight to beginning of previous paragraph.
Ctrl + Shift + Down: Highlight to beginning of next paragraph.
Home: Move cursor to top of a scrollable control.
End: Move cursor to bottom of a scrollable control.

Generic Web Browsers
Ctrl + Tab or Ctrl + PageDown: Cycle through tabs.
Ctrl + Shift + Tab or Ctrl + PageUp: Cycle through tabs in reverse.
Ctrl + (1-9): Switch to tab corresponding to number.
Ctrl + N: New browser window.
Ctrl + T: New tab.
Ctrl + L or Alt + D or F6: Switch focus to location bar.
Ctrl + Enter: Open location in new tab.
Shift + Enter: Open location in new window.
Ctrl + O: Open a local file.
Ctrl + W: Close tab, or window if there’s only one tab open.
Ctrl + Shift + W: Close window.
Ctrl + S: Save page as a local file.
Ctrl + P: Print page.
Ctrl + F or F3: Open find toolbar.
Ctrl + G or F3: Find next
Ctrl + Shift + G or Shift + F3: Find previous
Ctrl + B or Ctrl + I: Open Bookmarks sidebar.
Ctrl + H: Open History sidebar.
Escape: Stop loading page.
Ctrl + R or F5: Reload current page.
Ctrl + Shift + R or Ctrl + F5: Reload current page; bypass cache.
Ctrl + U: View page source.
Ctrl + D: Bookmark current page.
Ctrl + NumpadPlus or Ctrl + Equals (+/=): Increase text size.
Ctrl + NumpadMinus or Ctrl + Minus: Decrease text size.
Ctrl + Numpad0 or Ctrl + 0: Set text size to default.
Alt + Left or Backspace: Back.
Alt + Right or Shift + Backspace: Forward.
Alt + Home: Open home page.
Ctrl + M: Open new message in integrated mail client.
Ctrl + J: Open Downloads dialog.

How to save DOS and shell output to a file

This is an old trick that does not get much use these day. But, from time to time I need to run something in DOS or in shell (terminal) and save the output.

For example, say that I need to list a directory out and write into a Word document. I could fight with the the DOS screen copy function in Window. Or with a simple use of “>” I can save the information to a file.

dir > c:\root_directory_list.txt

This should work with just about everything that you can write to the terminal window. And, comes in handy with logging ping, traceroute, nslookups, and netstat.

Windows Registry Hack to “Edit with Notepad”

Over the last 20 years I have acquired a lot of tools to help me with things. One that I add to every machine I can is a Windows Registry hack that allows me to open/edit any file in Notepad with a simple right-mouse click.

This is useful when you want to look at a file without have to associate a program to it or use the default program to load it into. For example, say that I have an HTML file. I want to make a quick change. The default program is Internet Explorer. But, that only allows me to view the rendered HTML not edit. The “Open With >” right-mouse click menu option point to a large IDE program like Eclipse or Vim which might take several moments to load. With this registry item added I can just right-mouse click on the file and select “Edit with Notepad” and quickly make the change.

It also comes in handy when verifying the file you are looking has the correct tag extension so that it is associated to the right default program. Some times a user may use .PNG at the end of a file. But, when you use Notepad to review the header information in the file it may list it as a .MP3 file. With a simple right-click you can verify the type of file it really is.

This registry hack seems to work on must Windows Workstations and server. Simply open a new text file, Copy the code listed below and paste it into a file called edit_with_notepad.reg. Once saved just double-click on the file and it will add it to the Windows Registry. Then right-click any file to view/edit it in Notepad.

REGEDIT4

[HKEY_CLASSES_ROOT\*\Shell\Edit_with_Notepad]
@="Edit &with Notepad"

[HKEY_CLASSES_ROOT\*\Shell\Edit_with_Notepad\command]
@="notepad.exe %1"

Standard Error Codes

100 = Continue
101 = Switching Protocols
200 = OK
201 = Created
202 = Accepted
203 = Non-Authoritative Information
204 = No Content
205 = Reset Content
206 = Partial Content
300 = Multiple Choices
301 = Moved Permanently
302 = Found
303 = See Other
304 = Not Modified
305 = Use Proxy
306 = (Unused)
307 = Temporary Redirect
400 = Bad Request
401 = Unauthorized
402 = Payment Required
403 = Forbidden
404 = Not Found
405 = Method Not Allowed
406 = Not Acceptable
407 = Proxy Authentication Required
408 = Request Timeout
409 = Conflict
410 = Gone
411 = Length Required
412 = Precondition Failed
413 = Request Entity Too Large
414 = Request-URI Too Long
415 = Unsupported Media Type
416 = Requested Range Not Satisfiable
417 = Expectation Failed
500 = Internal Server Error
501 = Not Implemented
502 = Bad Gateway
503 = Service Unavailable
504 = Gateway Timeout
505 = HTTP Version Not Supported