Windows keyboard tricks

Those promised keyboard tricks. To get a Windows key, download the Kernel Toys. The keyboard applet, which works under 95 and 98, allows you to remap the caps lock, control, or alt keys to a Windows key. You can also remap the caps lock key to control or alt if you want. 

To assign My Computer to a hotkey, create a new shortcut with the following command line:
explorer.exe /n,/e,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}

Next, click on the shortcut key and hit a key (I suggest “m” or “c”) and that’ll give you instant two-pane access to My Computer any time you hit ctrl-alt and that key.

If you want single-pane access (I don’t think it’s as useful, but hey), use this command line instead:
explorer.exe /n,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}

I finally fixed my firewall. I souped up the firewall a while back, then it never worked again. (I guess that’s the ultimate in security, eh? No one can hack in if you’re offline.) I forgot which ethernet card was outgoing and which was pointing inward, to my LAN. Finally, I tried stopping and restarting PMFirewall, which printed my network configuration. When both NICs were assigned to the address 192.168.0.1, I knew I was in trouble. With that tip-off, fixing it took just a matter of minutes.

Speaking of Linux, a speed tip. If you’re running Red Hat Linux as a NAT/IP masquerade gateway to share an Internet connection, do yourself a favor and install the BIND and caching-nameserver RPMs, then set your first DNS entry on your other PCs to your gateway’s IP address. This will make your proxy server look up DNS addresses for you and store them, reducing network traffic slightly but noticeably. The overhead is minimal; I’ve got Steve DeLassus running IP masquerade and caching nameserver on a 486SX/20 and it’s more than up to the task. For a small home network, a 386SX/16 has enough horsepower as long as it meets your distribution’s minimum memory requirements. I’d be more comfortable with a 50 MHz or faster 486 for a small office, but that’s as much due to expected age and reliability as it is to CPU requirements.

If you’re running a close derivative of Red Hat (Mandrake is certainly close enough, and I believe even Caldera and TurboLinux are as well), go ahead and download Red Hat’s caching nameserver RPM. It’s just a couple of short text files, but it’s easier to download and install an RPM than it is to key them in.

Mouse cursor troubleshooting

Sorry, keyboard secrets will have to wait. No time. But here’s something else.

Case of the disappearing cursor. Maybe you’re lucky and you’ve never seen this, but sometimes the cursor will disappear inside text boxes in Windows NT (and presumably 9x). The solution is to reinstall your video driver — preferably a newer version.

I’ll be back in a bit. I’ve got some cool hotkey tricks. You don’t have to buy a new Microsoft keyboard to have keyboard access to things like the My Computer icon. For that matter you don’t have to buy a new keyboard to get a Windows key either, if you’re an old-timer like me still using an old 101-key PS/2 keyboard (the keyboards of today just aren’t nearly as good as the ones IBM and Lexmark made 12 or 13 years ago–of course, they also cost 10% of what those keyboards cost new).

I’ll spill the beans later this morning.

Christmas presents you want, and don’t want

Evening update. I came home to a non-working phone and CD player. The phone’s working again. I’m thinking Southwestern Bell really doesn’t want me to like them. As for the CD player, I unplugged it for 10 seconds and plugged it in–first thing I do with any piece of electronics. That brought it back from the dead, but as I was listening to U2’s All That You Can’t Leave Behind, I noticed some crackling in the audio. I’ve been listening mostly to really synthy New Wave music lately and the crackling can blend in with the synths, but on the more organic-sounding tracks in the middle of ATYCLB, there’s no place for the crackling to hide.

I ought to open it up and see if the problem isn’t just an overly dirty lens. That’s nothing a foam swab dipped in a little isopropyl alcohol can’t fix. Otherwise, I may have to start shopping. That’s what www.audioreview.com is for. The JVC XL-MC334-BK looks good for the money.

I’ll also have to resist the temptation to get a second pair of speakers. The KLH 970A speakers are dirt cheap ($20-$30) and reportedly sound really good for the price. There are better speaker brands than KLH, but these would be secondary speakers and if I don’t like them on the stereo, if paired up with an inexpensive receiver they’d make a very nice computer sound system.

An early Christmas present you don’t want. Another e-mail worm is making the rounds, this one called Navidad.exe. Navidad.exe es muy mal para su computadora. Sorry. Couldn’t resist.

What it appears to do is reply to all messages in your inbox containing a single attachment, attaching itself in the process. The really nasty part is that the worm contains poorly written code, causing your system to be unstable.

I’ll continue with my standard advice. Don’t open unexpected executable (.exe) attachments. If you can’t tell the difference, don’t open unexpected attachments at all. It’s better to miss the joke than to have to reinstall Windows yet another time. Keep in mind that the people who are most likely to fall victim to such things are also the least likely to have any backups.

You can get details and a repair tool from Symantec.

A friend got a hysterical phone call at midnight last Thursday from another friend whose system was exhibiting behavior similar to this. He eventually calmed her down enough to walk her through reinstalling Windows, which restored her system to a bootable state.

If a system will no longer boot, it should be possible to bubblegum it back together with Windows 98’s scanreg tool. Boot to a command prompt by holding down the control key, then type scanreg at the C:> prompt. Restore a recent backup (preferably the most recent or second-most recent). Once you boot successfully, immediately update your virus signatures and run your anti-virus program, or download a repair tool to do a full repair.

This trick fixes many, but not all, recent viruses.

486s and Amigas and emulators, oh my

Recovering data from an old large hard drive out of a 486. Someone asked how. No problem.
What do is put both drives in a new(er) system, each on its own IDE channel as master, then autodetect the old drive with the BIOS’ autodetect drives feature. But, to be on the safe side, I don’t boot Windows. I don’t want anything to try to write to the old drive, because it may not work right the first time. Instead, hold down the control key while booting (if you have Win98; if you have Win95, start tapping the F8 key immediately after the BIOS boot screen comes up–if you get a keyboard error, hit F1 when it says, then resume your attack on the F8 key). Select Safe Mode Command Prompt Only from the menu. That will put you at a C prompt.

Your old(er) drive will be drive D. If you had other partitions on the drive, they’ll be lower in the alphabet as Dan said. We can tell you exactly how your drives will be mapped if you remember your partitions (or maybe you’re familiar with how drive letters get mapped already).

Now, I execute a DIR /S D: to see if it produced an error. If it doesn’t, try this to get your data (don’t type the comments in italics):

MD C:RECOVER create a destination for your data
SMARTDRV D- turn on disk caching to speed up –may not work but does no harm
XCOPY /S /E /V D:*.* C:RECOVER copy drive D in its entirety to the destination

With any luck, that’ll safely spirit all your data away to the new drive. This is more convoluted than using Windows Explorer, but it’s safer. (See why I disagree with the people who say command lines are evil and obsolete and we shouldn’t have them anymore?)

If that succeeds, power down, disconnect the old drive, boot Windows, and check to make sure your data is intact and not corrupt. If it fails, reboot, go into the BIOS, and change the translation scheme for the old drive (you have a choice between Normal, Large, and LBA–LBA is usually the default). Lather, rinse, and repeat.

The good news is, I’ve used this method numerous times to move data from old 486s to newer machines, so chances of success, though not guaranteed, are pretty high.

Maybe I don’t want that Amiga 1200 after all… I went ahead and downloaded UAE 0.8.8 Release 8, then downloaded Amiga In A Box, which gives me a nice, souped-up Amiga setup without me having to remember all the nuances of the OS and tweak them myself (including some nice PD and shareware stuff already installed, configured and running). I fed it my Kickstart ROM image and my Workbench disk, it copied the files it needed, and voila, I had a working AGA-compatible Amiga!

The package even includes TCP/IP support. While Web browsing on a 33 MHz machine is a bit slow, I found performance to be almost as good as Netscape 4.x on a 90 MHz Power Macintosh 7200.

I benchmarked it, and on my Celeron-400 with a pathetic Cirrus Logic video card (I really need to get a cheap TNT2) I still compared favorably to a 33 MHz Amiga 4000/030. (My old beloved Amiga 2000 had a 25 MHz 68030 in it.) Since the Amiga’s biggest bottlenecks were with the disk subsystem and the video–they were comparable in speed to the PCs of 1990 and 1991–even a slow-sounding 33 MHz machine runs pretty nicely. I could probably crank out a little extra speed with some tweaking, which of course I’ll do at some point.

Then again, maybe I’ve finally found a use for a 1.2-GHz Athlon… (Besides voice recognition.)

If you have an old Amiga laying around and want some nostalgia, go get this. There’s a ton of legal Amiga software at www.back2roots.org to experiment with. If you don’t have an Amiga but want to see what all the fuss is about, you can get Cloanto’s Amiga Forever package, which contains legal, licensed ROM and OS images. You’ve probably never heard of Cloanto, but they’re one of the largest remaining Amiga software publishers. They’re reputable.

Now I just need to get TransWrite, the great no-nonsense word processor that I bought when I first got my A2000, running under UAE.

How to write a book

How to write a book. Super-influential musician and producer Brian Eno once said of the Velvet Underground’s first album, “Only 1,000 people bought it, but every last one of them started a band.”

Read more

The joy of teaching

The joy of teaching. Remember that Pentium-75 that was limping along under Windows NT’s heavy yoke? She didn’t complain to me about it (probably because she knew I did a lot to try to make it usable), but she did complain to some other people. One of the other IT guys did some lobbying. And when I said that a Mac would be an improvement over that thing, it got some people’s attention. (I’m not exactly known as a Mac zealot at work. Some call me exactly the opposite.) So she got another machine.
Well, as it turns out, she’s taking a class titled Management of Information Systems. She called me up yesterday to ask me a few questions relating to the class. Sure, says I. She asked about a mainframe’s place in a Webcentric world, which really made me think. I’m not of the mainframe generation, and I left the computer science program at the University of Missouri because the only thing they were interested in cranking out at the time were IBM System 370 administrators who knew VM/CMS and JCL. Gag me. I’d rather use and fix Macs. But retrofitting certainly makes more sense than outright replacement in many cases.

Then she asked about NCs. I laughed, because my now-defunct Linux book was to have a chapter about NCs in it (and how to roll your own). “Why didn’t they catch on?” she asked. Two reasons, I said. Poor marketing, for one. Larry Ellison assumes that everyone hates Microsoft as much as he does, so he releases this overpriced box and says little about it other than “Not Microsoft.” The second reason, of course, is versatility. People like the versatility of their PCs. NCs have none.

Then she asked a sharp question. “Isn’t this the same thing we do with Reflection?” (Reflection is a very high-priced VTxx terminal emulator from WRQ, Inc. that we use to connect to a cluster of VMS boxes.) Ah, she gets it! Yes, only NCs pull Windows and Windows applications (or another GUI and GUI applications) instead of text-based programs.

“This stuff doesn’t even seem real,” she said at one point. “And here you are, talking right off the top of your head about it.” But at the end of the conversation, she seemed to get it.

And that’s what’s cool about writing books or maintaining a Web site. Lighting up the darkness. Making the unfamiliar make sense. Or at least a little more sense.

My phone was ringing off the hook today. I made a comment about my popularity rising. One of my office-mates suggested I run for president. Well, I said, I couldn’t do any worse of a job of carrying Florida… But I won’t be of legal age until 2012.

I guess that’s the last thing I have to look forward to. At 16 you can drive. At 17 you can get into R-rated movies. At 18 you can vote. At 21 you can drink. At 25, your insurance rates go down. And at 35, you can run for president.

~~~~~~~~~~
Dave,

I remembered seeing an article a while back concerning this person’s issue:

http://www.aceshardware.com/Spades/read.php?article_id=15000166

It is an optimization guide for the K6-2+ (also K6-III+, but not
explicitly stated) processors, and it includes a board compatibility guide.

According to the guide, the FIC VA-503+ will only support the new
processors with a beta bios (doesn’t mention specific versions) and revision 1.2 of the board.

I’m CC’ing a copy of this to Curtis.

Sincerely,

Dustin D. Cook, A+
 
~~~~~

Thanks!
 
I didn’t get this message, except when Curtis replied to me. I’ll have to investigate.
 
Thanks much for the tip.
~~~~~~~~~~
 

Doesn’t anybody else feel impelled to mention that a 50MHz (for in this case >12.5%) speed gain is completely valueless? As you surely know, Dave, in ordinary use people don’t usually notice any speed change that’s much finer than 2x. I’d take a 12%-faster CPU and pop it into my system if 1) somebody gave it to me for nothing, and 2) it was a no-brainer plop-in install. Otherwise, there are better uses for $60. Ya think?

Peter A. Moore
ITS Engineer
Precision IT, a division of Precision Design Systems

in reference to:
http://thesiliconunderground.editthispage.com/2000/11/05
~~~~~
My understanding was he wanted to get that CPU because he was using his 400 MHz CPU in another system.

Yes, you are entirely right, a 50 MHz gain generally isn’t worth it. You could make an argument for when it’s a 50 MHz gain accompanied by something else, say, an upgrade from a K6-2/400 to a K6-III/450, in which case you’d get a larger gain, maybe 25-35 percent, due to on-chip cache. But with CPU speed being a fairly small factor in overall system performance, that 35% increase definitely won’t work miracles.

When upgrading a system, I generally attack system RAM and the hard drive first. It’s amazing what a difference dropping in a 7200-rpm hard drive makes. I recently made a P200 boot Win95 in 15 seconds by replacing the drive, dropping in another 64 megs of RAM, then doing a fresh Windows installation and tweaking msdos.sys. Very nice.

Good observation. Thanks.

An Optimizing Windows followup?

Optimizing Windows NT for Games, Graphics and Multimedia or Whatever… I occasionally get a question whether there’ll ever be such a beast. O’Reilly and I discussed it in the past, with little interest. (In fact when we were negotiating Optimizing Windows, I wanted it to be an NT book, and they asked if I knew Win9x well enough to write about that instead.)

There’s the possibility that another publisher who’s strong in Windows NT/Windows 2000, such as Sybex, might be interested. I haven’t talked to anyone there about it yet. But believe me, I’ve thought about the possibility of such a book.

I tried to write Optimizing Windows in such a way that someone who knew Windows 9x and another OS would then be able to apply the principles to both OSes, even though the specifics would only apply to 9x.

In the meantime, the best suggestion I can come up with is to take yesterday’s post , print it, then paste it to an otherwise underutilized page (such as the last page of the preface, which is totally blank). While it doesn’t go into great detail, that message could well form the basis of a chapter in an NT/2000 follow-on. I’d say at least half of chapter 2 in Optimizing Windows (particularly the user interface stuff) applies to NT and 2000 as well.

Laptop troubleshooting. I had a laptop the other day that seemed to launch programs and move the mouse pointer around at will. I’d never seen anything like it before. We were perplexed about it for a couple of hours (it was a deployed user in California, so it wasn’t like I could just tool over to his desk and start trying stuff). On a hunch, he unplugged everything and powered up the bare laptop. It worked fine. He started adding components one at a time, and when he got to the mouse, the problem reappeared.

Constant travel and frequent plugging and unplugging certainly could be hard on the mouse cable, so I can see where this might be a common problem for road warriors (I’d say 90 percent of my support experience is desktop PCs). So, if you’re getting unexplainable behavior from a PC, especially a laptop, try a different mouse — and a different external keyboard too, while you’re at it — and see if that makes the problem go away.

Windows NT on hardware it has no business on

A partial retraction. OK, Southwestern Bell isn’t responsible for all my missing mail. I had a second POP3 client running that I forgot about, which was grabbing some of my mail. But my computer couldn’t find a DHCP server all day, so even though one problem wasn’t their fault, another one was. So I’m still gonna write Casey Kassum with a request and dedication: Todd Rundgren’s “I Hate My Frickin’ ISP,” dedicated to my beloved Southwestern Bell.

Running, uh, no, executing Windows NT 4.0 on a Pentium-75 with 16 MB RAM. Disclaimer: Before you start thinking things that include my name and words like “crack” or “LSD,” let me state emphatically that this was not my idea. I was only following orders. (I’m not on drugs. I’m not nuts–I’m certifiably sane. I’m not even depressed.) All that clear? Good.

That said, the stated minimum hardware requirements for NT 4 are a 486 CPU with 12 MB RAM. And I did once build a print server out of an old IBM PS/2 that had a 486SLC2/50 CPU and 16 megs of RAM. Hey, I was young and I needed the money, OK? Besides, it was a very experimental time and I didn’t think anybody would get hurt…

OK, I’m done turning druggy double entendres.

Needless to say, NT on this machine is anything but pretty. (And I’ll put a marginal machine into service as a server where no one ever interacts with it directly long before I stick one on an end-user’s desk.) The video card in my flagship PC has more memory and processing power. But we’re out of PCs, and this poor girl needs a computer on her desk (though she’s never done anything to deserve this fate), so here’s what I did to try to make life on this machine more tolerable. These tricks work much better on fast machines.

  • Pull out all network protocols except TCP/IP. I also double-checked all TCP/IP settings and made sure the closest DNS server was first on the list.
  • Use a static IP address. The DHCP service uses memory and CPU cycles, and on machines like this, every byte and cycle counts.
  • Remove Office Startup, Find Fast, and LoadWC from Startup. The first two are in the All Users start menu. The last is in the registry. All eat memory and provide no useful functionality.
  • Move the swap file to a second physical hard disk. This machine happened to have a second drive, so I put the swap file there for better performance.
  • Turn off unnecessary services. The Scheduler service and Computer Browser service normally aren’t needed. If the network never sent out notifications (ours does), I’d also turn off the Messenger service.
  • Remove unnecessary fonts. I won’t do this without her present, since I might inadvertently nuke her favorite font. But if she doesn’t use it, it’s gone.
  • Keep free space above 100 megs. Windows slows to a crawl when forced to live on a drive that’s as crowded as a mosh pit.
  • Defragment! Making matters worse, this drive didn’t seem to have a single file on it that wasn’t fragmented. I ran Diskeeper and there was more red on the screen than at a Cardinals game when Mark McGwire’s chasing home run records.
  • When you have two drives, put the OS on the faster of the two. Unfortunately, the OS is on an ancient Seagate 420-meg drive, with a 2.1-gig drive in as the secondary drive. The roles really should be reversed. When in doubt, the bigger drive is usually faster. The newer drive almost always is. I may just Ghost the OS over to the 2.1-gig drive, then switch them.
  • Switch to Program Manager. She’s probably not comfortable with the old Windows 3.1 interface (I’ve only ever met one person who liked it) so I probably won’t do this, but that’ll save you a couple megs.

Yes, even with these adjustments, it’s still awful. So I’m gonna see if I can dig up some memory from somewhere. That’ll help more than anything. But as tempting as overclocking may be, I won’t do it.

Mail. voting, and recovery

Mail problems. I know for a fact that some good mail didn’t get to me. The smoking gun is a piece of mail, properly addressed to me, that fortunately was CC’ed to one of my readers. The reader responded to both of us, so I got the mail indirectly.

So… Not only does Southwestern Bell not have a clue about how to keep routers and DHCP servers running, apparently they’re also talented enough to make their mail server refuse some but not all mail. (If you happen to live in an area serviced by Southwestern Bell, do yourself a favor and buy your Internet access from someone else. I sure wish I had.)

Excuse me while I go call a local radio station and request the song “I Hate My Frickin’ ISP” by Todd Rundgren.

I’m back. Anyway. If you sent me mail and more than a week has passed and you haven’t heard a peep from me or seen your mail posted on the site, go ahead and send it again if you don’t mind. You might also copy farquhar@access2k1.net , my address at my backup ISP. I can’t imagine my ISPs are both so incompetent that they’d both swing and miss. (I know the mail server at work works just fine, but I’d rather not publicize that address–I get more mail there than I can handle.)

I haven’t been very good about using NaturallySpeaking lately.  So, in the interest of saving my wrists, I’m going to compose today’s post using dictation exclusively.

Be sure to go vote.  And remember, that e-mail going around about a split election day is a hoax.  A 33 percent expected turnout isn’t exactly overwhelming.  They can handle it. Not that any of this is likely to be news to any of my readership…

Time for a workout. I used NaturallySpeaking to write a song over the weekend, which was interesting.  It had a real hard time with the capitalization.  Let’s see how it handles recipes.

Dave’s Out Of This World Veggie Pizza.  A few months ago, I decided to shape up my diet.  My dad died of a heart attack a year ago yesterday, and his first cousin had to have a triple bypass this year.  Since my diet basically consisted of hamburgers, roast beef, and pepperoni pizza, I figured I was probably in trouble.  So I cut out most of the red meat, substituting poultry.  I really missed the pepperoni pizza.  Last week, I came up with this healthier substitute.

ingredients:
one pre-prepared 12″ pizza crust
1 1/2 cups spaghetti sauce
one cup mozzarella
8 to 10 fresh mushrooms, sliced
10 to 12 black olives, halved
four artichoke hearts, sliced

Preheat oven to 450 degrees.  Place crust on baking stone. Brush lightly with olive oil. Cover with sauce.  Cover with mozzarella. Add veggies. Sprinkle with liberal quantities of your favorite spices (thyme, oregano, basil, and parsley all work well). Turn the oven down to 425 degrees, then bake for 10 to 15 minutes. Serves two to three.

I like this recipe because it’s quick. By the time the oven heats up, I’ve put the pizza together. It really doesn’t take much longer than a frozen pizza would, costs about the same amount, and is much healthier (not to mention better-tasting).

For full effect, serve with green tea, iced, to drink.

Boy, NaturallySpeaking sure stumbled all over that one. I hope it’s just because it’s used to me talking about computers.

11/06/2000

Way behind. I’m behind on mail and didn’t get the domain names registered that I wanted to do this weekend. Hopefully later… Not much to say today. Mail’s slowly trickling out. If you read early yesterday, there’s a nice motherboard problem in yesterday’s mail.

More later, if I get the chance and if anything interesting comes up.