“A Celebration of Duct Tape”

Ah, the infamous duct tape.

How is duct tape like The Force from Star Wars? They both have a light side and a dark side, and they bind the universe together.

A roll of duct tape and a can of WD-40 is all you really need for most household repairs. If it moves and it shouldn’t, use the duct tape. If it doesn’t move and should, use the WD-40.

I could probably find a dozen other humorous (and true!) statements about this wonderful product, but the people at Lifehacker have done one better — they’ve got an entire list of the uses that people successfully put duct tape to, including a number of them that I’d never have thought of — honestly, healing warts?!

(I saw my first roll of actual “duck tape” — duct tape’s ancestor — in a hardware store last week. Neat.)

Time Change!

I hope everyone remembered to update their clocks just now.

(What, you mean you didn’t stay up until 2am today just to do that? ;-) )

Catastrophe at Fake Electronics Plant!

GoddessJ and I recently visited an Ikea store to get some furniture for our new house. As always, my attention was drawn to the fake computers and TVs they have in their display rooms.

You’ll be as sad as I to learn that one of the manufacturers of such props (I think it’s the one that the Ikea store we visited uses) suffered “a major catastrophe” recently. Fortunately, it sounds like they’re still in good financial shape, and will be making new fake electronics in short order.

(Via Boing Boing)

“Focus on 8-Minute Increments to Beat Back Chores”

Anything that helps deal with distasteful chores is welcome.

Windows 7

Last Friday, I discovered that I needed a 64-bit version of Windows for development purposes. I had a 64-bit version of Windows XP on a spare machine, but I haven’t set it up since the recent move, and until we get more stuff organized, I frankly don’t have the room. But it occurred to me that I’m running a 64-bit machine now, so at least in theory, I should be able to install a 64-bit version of Windows in a virtual machine under VMware Fusion. So I figure, what the heck, let’s give it a try. And while I’m at it, I might as well finally take a look at Windows 7 too.

MSDN supplied a 64-bit copy of Windows 7 “Ultimate”, and a key for it. When I created a virtual machine for it, VMware Fusion obligingly recognized the downloaded ISO file and installed it for me with no further instruction on my part. After the obligatory round of updates and reboots, I settled down to figure out how to use it.

In any new Windows OS, I have to figure out how to change a few things immediately. The “don’t show hidden files” option has to come off, and especially the “hide extensions on known files types” option — I’m a big boy, I can stand seeing file extensions and files that Microsoft thinks are too dangerous or scary for delicate eyes. I do not want it to automatically reboot if it crashes — I want to see that it has crashed, and any diagnostics that it produces, before I (manually!) reboot it. And turn off those damned animations, I don’t care about them and you’re running in a virtual machine so don’t waste the CPU cycles.

Since Microsoft always moves the settings around between versions, I had to poke around awhile to find them, and I got a good look at the OS as I did so. And I have to say, I’m impressed. The user interface is a lot better than it was before — easier to use, easier to navigate around, and it mostly stays out of your way until you need it. The system is pretty responsive, something that you couldn’t always say about earlier incarnations. It’s using roughly half of the one gigabyte of memory that VMware Fusion allocated to it, leaving half a gigabyte of memory for programs to use without swapping. Even the security stuff didn’t cause me much trouble, I just had to tell it that it was okay to run programs from a network drive without panicking and warning me about them each time.

But it wasn’t until I installed Visual Studio that I really saw the biggest difference. All of my programs compiled 33% to 50% faster! I’d anticipated that the compiler would be a little faster under a 64-bit operating system, despite the fact that it’s only a 32-bit program itself, but that’s a lot more than I’d expected!

All told, it was one of the most painless Windows installs I’ve ever done, and it didn’t take me too long to decide that this was going to be my new development VM. :-) I did run into one minor but baffling glitch, which I still haven’t determined the cause of (could be Windows 7, could be Visual Studio 2005, might even be something else entirely), but I found a work-around for it, so everything is working fine now.

I’m still not going to use Windows for anything Internet-related, only for games and software development. Linux is a lot safer on the ‘net at present. But for the foreseeable future, when I use Windows, I’ll definitely be using Windows 7.

“Learn to Snag Stuff with a Whip”

One of those neat things I’ve always wanted to know but had never had a chance to learn. The ‘net really does have everything. ;-)

Version Control: The Big Picture

During my most recent software development project, which I’ve already blogged about extensively, I finally learned to use a version control system (VCS from here on) right.

To fully understand this, you have to know where I was coming from. I learned to program in the early-to-mid eighties, and never even heard of a VCS until about 1998, when I picked up a copy of Visual C++ 6.0. I couldn’t see much use for it — I was archiving a zip-file copy of the source code for my software at every version release, and it seemed to me that VCS did the exact same thing.

At that point, I viewed the “working copy” of the source code as sacred. I’d quickly learned that whenever I made a change to it, I had to be able to reverse it if it didn’t work out, so for small changes, old code was just commented out and left there — that, and the zipped-up backups, were my VCS. It made for some messy code, because I rarely went back to remove the old commented-out stuff, but it worked.

When I sold my earlier software company in 2003 and went to work for the new company for a while, I was shocked at just how casually developers at the new company treated source code. They made changes to it willy-nilly, without leaving the old code intact! What if they screwed something up? The five-minute introduction to CVS that I got explained how to check in and check out source code, but nothing about the big picture of how or why to use it. To me, it was still just a glorified backup program.

Fast forward to a few weeks ago, when I started making some extreme source code changes to a large twelve-year-old project. That’s when I started really learning how to use version control.

The first lesson: the working copy is temporary. The sacred version of the source code is the one in the version-controlled repository, and if you’re using it properly, you can always fall back on it if your changes have introduced problems. You can also use it on multiple machines if necessary, with no problems, the source of a future compile-speed-related blog entry.

There’s a corollary to this: check in early, check in often. Make small and focused changes, get them working, and check them in as soon as they’re done. That way, if a change introduces a bug, you can easily locate the exact source-code alterations that caused it. And if all else fails, you can easily throw it away and revert to the last checked-in copy without losing valuable work. If I’d known this a few weeks ago, and practiced it, I could have saved several days of debugging huge check-ins when they later turned out to have problems.

And finally, if you have to make large, sweeping changes that must all be completed before you can see whether they’ll work, make a separate branch until it’s finished. Then you can keep checking in the smaller changes as they’re completed, even though they haven’t been tested, and all the check-ins on the main branch are known to always contain good working copies of the program. With a modern version-control system like Git, you can easily merge the branch into the main code once it’s done.

Now that I see the big picture, VCSs make a lot of sense. I’ll be using mine a lot more in the future, and quite differently.

“Make a Squirrel-Proof Bird Feeder from a Bottle and Candy Tin”

I’ve seen lots of “squirrel-proof” bird feeders before. In most cases, the squirrels managed to work around them and get the bird food anyway. But this one looks like it just might work. And it’s a lot less expensive than the others I’ve seen too. :-)

1,000 Posts!

Without even noticing, I made Geek Drivel’s one-thousandth post yesterday.

My only stated goal in starting Geek Drivel was to give interested friends and family, and anyone who stumbled onto it, the questionable benefit of my experience. My unstated goal was to give myself an outlet for expression. I think I’ve achieved both, and I know I’ve reached a few other people during that time… or at least, I hope that a few of those page-hits I’ve been getting all these years weren’t just automated spambots. ;-)

I considered shutting it down, as a successfully completed project, but I think there’s still more that I can contribute on occasion. And of course, I like to store interesting data on it for my own future reference. So I’ll keep it going, for now. Maybe I’ll revisit that decision after the next thousand posts. ;-)

“Create Your Own Luck by Changing Your Perspective”

Doom, despair, and agony on me!
Deep dark depression, excessive misery!
If it weren’t for bad luck, I’d have no luck at all.
Doom, despair, and agony on me!
— Recurring skit from the TV show Hee Haw

This sounds like a great idea. But I have to wonder about it.

I know a woman, a friend of ours, with totally abysmal luck. She suffers minor — and very odd — disasters on a regular basis. And it’s not from anything she does — they’re just random events that could happen to anyone, but that happen to her with far more regularity than mere chance would allow for. On a related note, she loves to complain about her life, and these little visits from the misery fairy seem to give her plenty of fodder. It’s an open question whether the complaints come from the bad luck, or the bad luck comes from the complaints.

On the other hand, I know one person who could fall into a sewer truck and discover a gold nugget, and I can’t attribute that to any particular perspective on his part.

I also know people who technology hates — they get near a watch and it starts gaining time, and woe betide them if they try to use a computer. And others (like myself) who technology adores, and whose mere presence often fixes wonky machines.

It’s enough to make you seriously consider that there might be an element of truth to The Matrix, that the entire universe is nothing but a simulation that we’re all in. Which gives rise to some interesting philosophy, and might explain quite a bit, when you think about it.