Tag: windows

Associate Any File with Notepad in Five Seconds

Posted on June 21, 2009 in Technology by Jeff Starr

In my article, Associate Extensionless Files with Notepad, I explain how to navigate the labyrinthine maze of Windows dialogue menus to assign Microsoft’s Notepad text editor as the opening application for files without extensions. In this post, I’ll show you how to associate any file type with any program (including Notepad) in less than five seconds.

Ready? Don’t blink, you’ll miss it.. ;)

Modify any file extension association in five seconds

Open the Windows command prompt and enter the following command:

assoc .extension=fileType

It’s that easy. What is happening here? Let’s break it down, just for fun:

  • assoc — Windows file-association command
  • .extension — the extension of the file for which you would like to associate
  • fileType — the type of file that you would like to associate with your extension

Continue Reading

How to Take DVD/Video Screenshots on Windows

Posted on May 31, 2009 in Video by Jeff Starr

Taking screenshots of DVD, MPEG, AVI, and other video on Windows machines requires a couple of extra steps. A normal screenshot is easy enough to capture by pressing the “Print Screen” button on your keyboard. To capture a screenshot of video display, however, you need to disable hardware acceleration to make it work. To do this on Windows machines, go to your Desktop properties and click on the Settings tab. Click on the Advanced button and then on the Troubleshooting tab. Slide the Hardware Acceleration to “None” and then capture and process your screenshot as normal. Once you are finished taking your screenshot, don’t forget to switch your Hardware acceleration back to its original settings (e.g., “Full”).

Continue Reading

Miscellaneous Code Snippets for WordPress, Windows, and Firefox

Posted on December 14, 2008 in Nonsense, Websites by Jeff Starr

[ Miscellaneous Color Slices ] One of the original purposes of Perishable Press involved serving as a “virtual dumpster” for all of my miscellaneous code snippets. Over time, I continued elaborating to greater degrees on the various code recipes that I was posting, until eventually those brief snippet posts evolved into complete, richly detailed articles (at least from my point of view). Now that I enjoy the luxury of writing for an incredible audience, I try to avoid posting anything that doesn’t include an accompanying explanation. “If it’s worth posting, it’s worth explaining,” I always say. When you have people reading your stuff, there is little room for superfluous nonsense, unexplained code snippets, and long-winded introductions. ;)

Even so, every now and then you need to break the rules, shake up the routine, rock the boat, drop some acid, that kind of thing. Lately, I have been doing some deep archiving and have amassed a considerable collection of completely miscellaneous and unrelated chunks of code. There are too many random snippets to spend time sewing together similar functionality, and I really hate deleting perfectly good code. I also hate keeping misfit code chunks lying around in my otherwise pristine digital archive (joking). Fortunately, this dilemma is easily resolved by loosening up and simply dumping the information right here on the site. After all, that’s what it was originally designed for — in fact, the further you dig back into the archives, the more apparently pointless code snippets you will find. So without further ado, I now present a completely random, unexplained, miscellaneous collection of potentially useful code snippets!

Continue Reading

Perishable Press Quintessential Screenshot Gallery

Posted on October 7, 2008 in Perishable, Websites by Jeff Starr

One of my goals for the new Perishable Press redesign was to achieve cross-browser, pixel-perfect precision [ 1 ]. Of course, due to many variables (platform, operating system, browser, extensions, fonts, etc.), it is virtually impossible to achieve complete 100% perfection, but I am certainly interested in examining the design on as many different configurations as possible. Thus, last week after launching the new design, I made an open call for screenshots. Graciously, many of you responded with some great screenshots. Thanks to you, I was able to see Perishable Press “in the wild” on many operating systems and browsers to which I simply don’t have access. Sure, I could have just went to browsershots.com or some similar service, but as Rick Beckman correctly pointed out, it is much more fun to get everyone involved in the process. So without further ado, here is the Perishable Press Quintessential Screenshot Gallery:

Continue Reading

Monitoring Internet Activity for Windows and Mac

Posted on June 24, 2008 in Technology by Jeff Starr

Monitoring your computer’s Internet activity is a powerful tool, enabling you to:

  • keep an eye on background processes
  • reveal viruses and other malware
  • expose unauthorized access
  • monitor running programs
  • log process activity

..and much more. The best part? It’s super-easy. Here’s how I do it on Windows XP:

  1. Open the command prompt and type “netstat -n 5 > scan.txt
  2. After a minute or two (or any amount of time), press Ctrl+C to stop monitoring
  3. Type “scan.txt” to open the log file and check the results

Continue Reading

How to Fix the Wonky Windows XP Clock

Posted on November 18, 2007 in Technology by Jeff Starr

I don’t know about you, but ever since the 2007 change in daylight savings time, my installation of Windows XP has had a difficult time (so to speak) maintaining consistently accurate time. Ever since the change, Windows XP has been randomly resetting its clock (as indicated via the Taskbar) to display time incorrectly. Specifically, WinXP will automatically (i.e., without user intervention) set the time to be one hour earlier than the actual time. For example, if the time is actually 3:00pm, Windows will suddenly display the time as 2:00pm. This has caught me off-guard on several occasions now, as I would work with an incorrect assumption concerning the time, only to find myself running an hour late to an appointment. Clearly, something needs to be done..

The first thing that comes to mind is to switch operating systems. For reasons that extend far beyond wonky time-keeping, I have been wanting to switch to open-source for years. If you have the luxury, time, and resources to accommodate such a switch, then perhaps Linux or Mac will serve you better with much more than the keeping of accurate time.

Continue Reading

Get Organized, Save Time with the HTC 8525 Pocket PC

Posted on July 30, 2007 in Technology by Jeff Starr

The AT&T 8525 is the first UMTS/HSDPA smart phone to be offered in the United States. It has integrated Bluetooth 2.0, Wi-Fi, and supports AT&T’s new music, video, and location-based services. The Windows Mobile device also has push e-mail capabilities, a 2-megapixel camera, a spacious QWERTY keyboard, and good call quality. — CNET Editors’ Review of the AT&T 8525

[ Image: HTC 8525 ]
Perishable Press via AT&T 8525 (click image for more..)
Thusly inspired, I recently purchased an AT&T 8525 Pocket PC by HTC. The device now serves as my virtual satellite, keeping me connected to the internet, networked to the office, and prepared for serious business. With its many features and streamlined functionality, the AT&T 8525 enables me to operate in maximized fashion, increasing efficiency and improving productivity. This article presents a concise rundown of how each of the phone’s primary features helps me to succeed as I fight a hellish battle everyday.

Continue Reading

Computer Flashback: Windows 98 Run Commands

Posted on July 9, 2007 in Technology by Jeff Starr

[ Image: Screenshot of the MS Run Prompt ]

Even with all the fancy-pants new features found in Windows XP and now Vista, Microsoft Windows 98 (Second Edition) remains our favorite Windows-flavored operating system. We love it so much, we still use it on one of our trusty laptops. Over the years, we have discovered several very useful functions available via the command line or even the “Run” prompt (Start → Run...). Anyway, without spending too much time researching or explaining these wonderful tools, we figured posting the information online may prove beneficial at some point in the future. So, without further ado, we present this working repository of helpful MS run commands:

Continue Reading

Random Fixinz for Hotmail via Outlook Express

Posted on March 3, 2007 in Technology by Jeff Starr

Note: The methods described in this post apply to older versions of Internet Explorer (<6) and Outlook Express (<6), and are provided here for reference purposes only.

Fix the "Unable to poll for new messages" error

Here is an error message that some Outlook Express users receive when sending or receiving email, or after creating a new email account:

Unable to poll for new messages on your HTTP server. 
Account: 'Hotmail'
Server: 'http://services.msn.com/svcs/hotmail/httpmail.asp'
Protocol: HTTPMail
Server Response: 'End tag 'D:response' does not match the start tag 'D:prop'. 
Port: 0
Secure(SSL): No
Error Number: 0xC00CE56D

Continue Reading

Hide Content on Windows 98SE

Posted on February 4, 2007 in Technology by Jeff Starr

This brief tutorial on hiding content applies to Windows 95, 98, and 98SE. Although this method may be old hat or even irrelevant, I have found it useful on a number of occasions, and therefore found it worthwhile to include here for the sake of prosperity.

On Windows 98SE (and others), it is possible to create a folder that is both listed and inaccessible via the Windows file system. Using an old DOS trick involving an obscure character reference, we create a folder that, when clicked on via Windows, produces a "The File does not Exist" error message, thus denying any access. This "hidden" folder is completely accessible via DOS, and functions as any other "regular" folder. In Windows, the folder will appear with an underscore preceding its given name. For example, using this method to create a hidden folder named "test" will produce a folder that appears as "_test" when viewed via Windows.

Continue Reading

Fun with the DOS Command Prompt

Posted on January 29, 2007 in Technology by Jeff Starr

Note: This article assumes a basic familiarity with the DOS command prompt, and is somewhat of a continuation of our previous article on DOS, Basic DOS Commands. Here, we are exploring a few of the more interesting commands available via the DOS command prompt. For a more complete reference please consult the Windows Help file (Windows XP) by entering

hh.exe ms-its:C:\WINDOWS\Help\ntcmds.chm::/ntcmds.htm

at the command line prompt (or via the Start > Run... dialogue box). For a brief overview of essential DOS commands, characters, devices, and variables, check out DOS Fundamentals.

Continue Reading

DOS Fundamentals

Posted on January 29, 2007 in Technology by Jeff Starr

A brief overview of essential DOS commands, characters, devices, and variables

Ahh, the fun I have at work while experimenting with the command line. I will be the first to admit that I understand very little of DOS, especially when considering the scope of its functional capacity. Nonetheless, I am taking the time to chronicle a few interesting DOScoveries here in this article, as well as in at least a couple of others (see related articles section at the end of this article).

The first thing that I should mention is that there are at least several different entities commonly referred to as "DOS". Windows 98SE and earlier run on the MS-DOS kernel, which is directly accessible by pressing the F8 key repeatedly (after the beep) during computer startup. Windows 2000, Windows XP, and beyond do not run on the MS-DOS kernel, but do provide two MS-DOS-like programs, the command prompt Cmd.exe, and the MS-DOS emulator Command.com. For more information, you may want to explore the difference between Cmd.exe and Command.com before diving in..

Continue Reading

Rename the Recycle Bin in WinXP

Posted on January 16, 2007 in Technology by Jeff Starr

To rename the Recycle Bin in Windows XP, create a new text.txt file in your favorite directory and add the following lines:

REGEDIT4
[HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder]
"Attributes"=hex:50,01,00,20"CallForAttributes"=dword:00000000

Next, rename the file extension from ".txt" to ".reg" — the other part of the file name may be whatever you prefer (e.g., RecycleBin.reg). Then, double-click the file to have Windows import it into the Registry. Now go right-click your Recycle Bin and use the new option to Rename it.

To remove renaming functionality for the Recycle Bin, replicate the same file you created initially, and replace the last line (i.e., the third line) with the following:

"Attributes"=hex:40,01,00,20"CallForAttributes"=dword:00000000

Again, double-click the file to import it into the Registry.

Delete index.dat on Windows 98SE

Posted on January 8, 2007 in Technology by Jeff Starr

This brief tutorial on removing (and replacing) the "index.dat" file applies to any Windows OS running on MS-DOS. Although I haven’t researched this officially, it appears that all Windows versions released prior to Windows 2000 are running on the 16-bit MS-DOS kernel. Conversely, Win2000 and WinXP operate on a 32-bit kernel and thus do not utilize MS-DOS. Thus, this method focuses on removing the index.dat from machines running Windows 95, 98, and 98SE.

As you may be aware, Internet Explorer utilizes a file called "index.dat". The index.dat file serves a log that documents every domain visited through Internet Explorer. Deleting or modifying this file through Windows is impossible because Windows is "using" the file whenever Windows is running. Thus, to delete (or edit) the index.dat file, it is necessary to operate outside of Windows via MS-DOS mode.

So, without further ado, follow these easy steps to replace your unwanted index.dat file with a new, "empty" index.dat file:

  1. Click "Start > Shut Down > Restart in MS-DOS mode > OK"
  2. At the DOS prompt, enter: "del c:\windows\tempor~1\content.ie5\index.dat" (without the quotes)
  3. Press "Enter" and reboot the system. Windows will create a new index.dat file automatically.

Path to Outlook Express Files on WinXP

Posted on January 8, 2007 in Technology by Jeff Starr

Trying to backup your Outlook Express .dbx files on Windows XP may prove difficult if you can’t find them. Well, fret no more, my friend. Here is the generalized path to the Outlook Express folder, which contains all of the .dbx files for a particular user. Copy, paste, and shortcut:

C:\Documents and Settings\[username]\Local Settings\Application Data\Identities\{12345678-1234-ABCD-EFGH-1234567890AB}\Microsoft\Outlook Express

* [username] = each user will should have their set of .dbx files.
* {12345678-1234-ABCD-EFGH-1234567890AB} = represents a unique alphanumeric string.

Install Windows 98SE and Windows XP Pro on Sony Vaio PCG-F430

Posted on December 30, 2006 in Technology by Jeff Starr

Recently, I had the opportunity to completely reformat the 5.58GB hard drive on my trusty Sony Vaio PCG-F430 laptop. During the process of reformatting, I decided to install both Windows 98 Second Edition and Windows XP Professional on a partitioned C drive. Additionally, I needed to establish a wireless connection to the local network. The entire process consumed around five hours and required plenty of research, analysis, and patience. Upon completion, the project proved quite beneficial, as I now enjoy the benefit of a Win-98(SE)/Win-XP(SP2) dual-boot, wirelessly networked laptop. This article outlines the entire process and will benefit anyone attempting a similar operation..

Continue Reading

Launch Multiple Programs with One Click

Posted on November 28, 2006 in Technology by Jeff Starr

Speed up your workflow by launching your favorite programs in one click using batch (.bat) files:

  1. Create a folder and add shortcuts to your favorite programs.
  2. Rename the shortcuts so that each consists of a single word.
  3. Create a text file and change the name to something.bat.
  4. Right-click on the .bat ("batch") file and select "Edit".
  5. Emulate the following template according to your specific programs.
rem   comments should begin with rem
rem   note: this file launches all of my favorite apps!
rem   note: replace the names below with your own..

@echo off

   start %SystemRoot%\system32\cmd.exe
   start firefox http://google.com/
   start dreamweaver
   start photoshop
   start winamp
   start notes.txt

@echo on

That’s all there is to it! Of course, there are many other neat things you can do with batch files, but we leave that for you to discover elsewhere. You may want to create additional batch files for various kinds of work. For example, you could create one batch file for web-development apps, another for graphic-design apps, and so on. All shortcuts and batch files may be placed in the same folder. Then simply customize shortcuts to your various batch files and use them to consolidate your quick launch and clean up your desktop!

Delete Unwanted Context Menu Items in WinXP

Posted on October 16, 2006 in Technology by Jeff Starr

Within the right-click context menu is the option to create "New" file items. While the list of available documents within the "New" submenu often contains several useful file types, such as .txt or .zip, it also contains lots of unnecessary entries.

To clean up the "New" right-click context menu, open the Registry Editor, regedit.exe, and Find all instances of "ShellNew". Examine the search results. Every ShellNew branch belongs to a specific type of file. As each ShellNew branch corresponds to an entry in the "New" right-click context menu, delete the ShellNew branch for each "New" file type that you would like to remove. And that, as they say, is that.

Folder Background Images in WinXP

Posted on October 16, 2006 in Technology by Jeff Starr

This brief tutorial explains how to add a background image to any folder in Windows XP.

First, make sure all hidden files are visible on your system. Then, open the folder for which you wish to add a background image. Within the folder, right-click and select Properties » Customize tab » Customize. There, choose any icon, click Apply and OK.

That process should have created a "desktop.ini" file. Open that file with a text editor and add these lines of code:

[ExtShellFolderViews]
{BE098140-A513-11D0-A3A4-00C04FD706EC}={BE098140-A513-11D0-A3A4-00C04FD706EC}
[{BE098140-A513-11D0-A3A4-00C04FD706EC}]
IconArea_Image=C:\path\folder\background.jpg

To customize this according to your needs, edit the path in the last line to reflect to the location of the image you wish to use as the background image for that folder. Refresh the folder and the new background should appear.

Finally, to remove the default icon chosen during the creation of the desktop.ini and restore the default folder icon, delete these lines of code from within the desktop.ini file:

[.ShellClassInfo]
IconFile=%SystemRoot%\system32\shell32.dll
IconIndex=(some number)

Associate Extensionless Files with Notepad in WinXP

Posted on August 8, 2006 in Technology by Jeff Starr

There are several files that appear not to have extensions in Windows XP. Perhaps the best known example is the HOSTS file. Files such as the HOSTS file that appear to be "extensionless" actually contain an invisible period "." — or dot — at the end the file name. It is this invisible dot that will enable us to select a specific program with which to open files with no extensions.

As web developers, we are constantly checking and consulting server-generated error_log files. Like the HOSTS file, the error_log files appear to have no associated extension. In Windows XP, opening extensionless files requires opening the "Open with…" dialogue box and scrolling through a long list of file types. And, although there is a checkbox option within the dialogue box enabling users to "Always use the selected program to open this kind of file," the option is "greyed out" and useless. Thus opening an extensionless file requires four or five extra "clicks", as well as the extra time it takes to jump through the hoops. This may not sound like a big deal, but try opening any number of files by this method and the extra clicks begin to add up.

After opening our millionth error_log file using the "Open with" method, we decided to confront the problem and devise a solution. After a bit of research, we were presented with several options: editing the registry, installing software, or tweaking Windows "Folder Options". After fiddling with the registry and installing some software with no real progress, we decided to try the heretofore unsuccessful "Folder Options" method. Sure enough, armed with an invisible dot and a slight tweak, we were finally able to convince Windows XP to associate extensionless file types with Notepad, our program of choice for such files.

The Solution

Although this solution is relatively risk-free 1, requiring no registry editing or software installation, the process is fairly sensitive, requiring careful attention. Below are two methods: the first associates extensionless files with Notepad, while the second does such with WordPad. Both assume a Windows XP operating system.

Here is the method of associating extensionless file types with Notepad in WinXP:

  1. Open Windows Explorer and go to the "Tools › Folder Options › File Types" menu.
  2. Click the "New" button and type ".txt" in the "File Extension" field.
  3. Click on the "Advanced ››" button and the "Associated File Type" should read "Text Document". If it is blank, or says something else, close everything out and start over, making sure to follow the steps in order.
  4. Finally, in the "File Extension" field, replace the ".txt" with a single dot, "."
  5. Click "OK" and exit. Find or create an extensionless file and check it out.

Here is a similar method of associating extensionless file types with WordPad in WinXp:

  1. Open Windows Explorer and go to the "Tools › Folder Options › File Types" menu.
  2. Click the "New" button and type ".txt" in the "File Extension" field.
  3. Click on the "Advanced ››" button and the "Associated File Type" should read "Text Document". If it is blank, or says something else, close everything out and start over, making sure to follow the steps in order.
  4. Open the "Associated File Type" dropdown menu. Scroll down and select "Wordpad Document".
  5. Finally, in the "File Extension" field, replace the ".txt" with a single dot, "."
  6. Click "OK" and exit. Find or create an extensionless file and check it out.

Footnotes

  • 1 It is always a good idea to backup your registry and other critical documents before implementing any system changes.

Backup Block Senders List in Outlook Express

Posted on June 19, 2006 in Technology by Jeff Starr

Follow these steps to backup the “Block Senders” list in Outlook Express:

  1. From the Desktop, click Start then Run.
  2. In the Open box, type regedit then OK.
  3. Locate and click the following registry subkey:
  4. HKEY CURRENT USER\Identities\(Identity Number)\Software\Microsoft\Outlook Express\5.0\Block Senders
  5. Go to the Registry menu and select Export Registry File.
  6. From the Save In box, change the location to your desktop.
  7. At the File Name box, type “Blocked Senders[date].reg” then Save.
  8. Go to the Registry menu and chose exit.

To restore a backup, simply right-click on the “Blocked Senders[date].reg” file that you wish to restore and select “merge.”

Business is No Object

Posted on March 27, 2006 in Textual by Jeff Starr

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2000 Microsoft Corp.

H:\>ping localhost

Pinging mozilla.biz [127.0.0.1] with 32 bytes of data:

Reply from 127.0.0.1: bytes=32 time<10ms TTL=128
Reply from 127.0.0.1: bytes=32 time<10ms TTL=128
Reply from 127.0.0.1: bytes=32 time<10ms TTL=128
Reply from 127.0.0.1: bytes=32 time<10ms TTL=128

Ping statistics for 127.0.0.1:
     Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)
Approximate round trip times in milli-seconds:
     Minimum = 0ms, Maximum = 0ms, Average = 0ms