The Revolution of 1985

Twenty five years ago yesterday, a revolution happened. Nobody really noticed, and nobody thinks about it today, but the effects are still here. That we take these things for granted today shows just how wide-reaching the revolution was.

It took the form of a computer with a 32-bit Motorola CPU, full stereo sound, a display capable of 4,096 colors, and a fully pre-emptive multitasking operating system. At a starting price of $1,295, though it rose to closer to $2,000 by the time you added a second drive and a monitor.

The specs on that machine don’t sound all that impressive today, but keep in mind what else was available in 1985. The state of the art from IBM was the 16-bit IBM PC/AT with very limited sound capability, color as an expensive option, and DOS 2.1. Windows at the time was little more than a glorified DOS shell. Apple had its Macintosh, but it cost twice as much as an Amiga, had only slightly better sound than that IBM, and just a tiny black and white display.

Over the course of the next nine years, Commodore sold 3 million Amigas. Along the way, they worked out the early glitches in the machine, and upgraded the capabilities, though not always as quickly as the competition. But the machine aged remarkably well. And ultimately it did for television production what the Macintosh did for publishing, replacing hundreds of thousands of dollars’ worth of specialized equipment with equipment that merely cost thousands, and fit comfortably on a large desk.

The big problem was that Commodore sold those three million machines to one million people, and never really knew what to do with it. It should have been a great business computer. It was the ultimate home computer. It could have been the ultimate education computer. And it was the ultimate video editing computer. But Commodore never marketed it effectively as any of those.

Mostly the company went through the motions while financier Irving Gould lined his pockets with whatever money was left after Commodore got done paying the bills each quarter. Some years, Commodore spent more money on Gould’s and his yes-man company president’s salaries than they spent on Amiga development.

So, slowly but surely, the competition caught up. VGA was better in some regards than the Amiga graphics and worse in others, but over time, the combination of VGA and fast 386 and 486 CPUs became enough to keep pace. Macintosh graphics followed a similar curve. Affordable sound cards for PCs started appearing in the late 1980s and were commonplace by 1992 or 93. It was a lot harder to get it all working on a PC, but when it worked, it worked pretty well. But making DOS boot disks to get it all working was a black art, an art I remember practicing at least until 1998.

It was in the early 1990s that PCs and Macs got multitasking. First it was horrible cooperative multitasking, followed later by pre-emptive multitasking like the Amiga had. Eventually they even added memory protection, something Amiga didn’t have (when it was initially designed with an 8 MHz CPU and 256K of RAM, that was the one thing they had to leave out).

The money ran out in 1994, and the rights to the architecture changed hands more times than most people can count. The Amiga’s days as a mainstream computer–if it ever could claim to be one–ended then.

The rest of the world spent the 1990s catching up. When Windows 95 came out with its promise of Plug and Play, improved multimedia, and pre-emptive multitasking, it was all old news to Amigans. Amigas had been doing all that for 10 years already.

For a long time after 1994, I was bitter. I’m less so now that the rest of the world has caught up. But I still wonder sometimes what might have been, if the industry had spent the 15 years between 1985 and 2000 innovating, rather than just catching up.

My standard security lecture

Myth: Nobody wants to get into my computer because I don’t have anything important saved on it.

Fact: I don’t care who you are or what you do with your computer, security is important. Do you want the Russian Mafia using your computer? The North Korean military? Al Qaeda?

If you’re OK with that kind of vermin using your computer, then do whatever you want. I hope you don’t have problems sleeping at night. If you don’t want that kind of vermin using your computer, I suggest you read on.Odds are, the next 9/11 isn’t going to involve airplanes or even bombs. It’s more likely to be a computer attack of some sort.

Modern computer viruses generally join infected computers together into large networks, which then “phone home” for orders. They can sit dormant for a long time, or they can start carrying out orders immediately. Those orders could be sending out spam e-mail messages. Or those orders could be to conduct an attack on some other computer, perhaps a bank, or perhaps a government or military operation.

Imagine Al Qaeda building a network of a few million computers, then using that network to overwhelm an important computer. When Amazon or eBay have a bad day and you can’t get to them, it’s possible they’re being attacked and struggling to cope with it.

The same approach that crashes Amazon.com could theoretically be used to crash the stock market or the Space Shuttle. Fortunately, that kind of trick is nearly impossible. But not completely.

Building the network is the easy part. Locating a target to point it at is the hard part.

The network already exists. There was a virus expected to trigger on April 1 of this year. It didn’t, for whatever reason. But everything isn’t OK. The network still exists, it’s still growing, and nobody’s figured out yet who built it, what they intend to do with it, and how to get in and disable it. Believe me, there are experts around the world trying to figure it out.

Whoever or whatever is behind it, you don’t want your computer unwittingly participating in it.

Here’s to avoid inadvertently aiding and abetting criminals and terrorists with sloppy computer security practices.

1. Use antivirus software and keep it up to date. Many Internet providers will give you antivirus software for free these days. Call your provider and ask. If not, download Microsoft Security Essentials.

2. Configure Automatic Updates. This allows Microsoft to fix security vulnerabilities in your computer as they’re discovered. Macintosh users, don’t get smug. You need to configure Apple update too–Apple releases a dozen or so fixes every month to fix security issues on Macs too.

3. Don’t open unexpected e-mail attachments. It’s been 12 years since this has been safe to do, but people do it anyway. STOP. NOW. I don’t care how funny the joke is, or how cute or hot or whatever the picture is.

4. Don’t open unexpected e-mail, for that matter. Booby-trapping an e-mail message with a virus isn’t especially difficult to do. Frankly, if any e-mail message looks suspicious (a subject line like HOT HORNY SINGLES WANT TO TALK TO YOU NOW! is usually a giveaway), I just delete it.

5. And if you ignore steps 3 and 4, for Pete’s sake, don’t buy anything. Nearly 10% of people actually buy something based on spam e-mail messages. That just encourages all of this other activity.

6. Use web-based e-mail. Most web-based providers use good spam and virus filtering, giving you an extra layer of protection.

7. Use an alternative web browser and e-mail program. Internet Explorer is literally a superhighway for viruses and other malicious software to hook directly into the operating system. Use Firefox, Chrome, or Opera.

Have I scared the living daylights out of you? Good. If your computer is beyond help, get a reputable IT professional to clean it up. Then start doing these things. If your computer is OK right now, start doing these things.

And then stop aiding and abetting criminals and terrorists.

Happy Patch Tuesday

Today was the first Patch Tuesday in nearly four years that I didn’t have to worry about professionally. Since Microsoft released 13 patches today and Adobe released two, my former coworkers might be wondering if I knew something. (I didn’t.)

But I still patched my machine at home, and I recommend you do too. Macintosh owners, you’re not immune, so I have some homework for you too.The Adobe patches apply to Acrobat and to the so-called Adobe Reader (which used to be called Acrobat Reader). I recommend you launch Adobe Reader, go to the Help menu, and select Check for Updates. Unless you’re reading this site on a Commodore 64, these updates apply to you.

Mac users tend to be awfully smug about security, and that myth really needs to stop. Apple hasn’t released any security fixes this month, but they did release 9 fixes last month. The biggest one fixes flaws in 16 different applications. Microsoft probably would have released 16 different patches instead of just one. I prefer the Microsoft approach–besides being a little more honest, it also results in smaller download packages if by some chance one or more of those 16 vulnerabilities happen to not apply to a particular machine.

And now, please excuse me for a moment while I recover from the shock of having used the word “honest” to describe Microsoft.

Just out of curiosity, I looked, and Apple has released security updates every month this year except for April. Unlike Microsoft, they don’t follow a set schedule, and the month isn’t over yet, so I wouldn’t be surprised to see something from them later this month.

I won’t bore you with the details, but basically, what it comes down to is this: If I really want into your computer, all I really have to do is booby-trap a file and get you to open it. It could be a PDF file, a movie, a music file, or something else. I can embed code into that file that gives me complete control of the computer. I just have to know whether your computer runs Mac OS or Windows. And how to write the code, of course. (I don’t know how to write the code and I don’t want control of your computer, so there’s no reason to be afraid of me.)

If you’ve been installing your patches, there’s little reason to be afraid of the guy who who DOES know how to write the code and DOES want control of your computer.

Your computer may update automatically. If you don’t know for certain whether it does, I suggest you find out. Now. No matter whose name is stamped on the case.

Barfy.

I started my professional career doing network administration at the University of Missouri. (I generally don’t count my stint selling low-quality PCs at the last surviving national consumer electronics chain towards my professional experience anymore.)

Read more

Buffer overflows explained

Buffer overflows are a common topic on a Security+ exam. The textbook explanation of them is confusing, perhaps even wrong. I’ve never seen buffer overflows explained well.

So I’m going to give a simplified example and explanation of a buffer overflow, similar to the one I gave to the instructor, and then to the class.

Read more

My hot water heater: 1984-2008

I think my hot water heater died today. I thought my shower seemed colder than usual today, and in the late afternoon my wife reported no hot water in the kitchen.

It could be something simple, but even if it is, it’s time.Let’s consider this. In 1984, Ronald Reagan was president. The Kansas City Royals went to the playoffs. The big name in video games was Atari. People were predicting that video game consoles had no future. The big names in personal computers were (alphabetically) Apple, Commodore, IBM, and Radio Shack. Only one is still in that business. It was the year that Chrysler popularized the minivan. It was the year Apple introduced the Macintosh, popularizing the graphical interface and the mouse. Not only did MTV still play videos, but that was all they played. Not every home had a VCR. For that matter, not every home had a microwave. It cost 20 cents to mail a letter, and on average, a gallon of gas cost $1.21. (I remember it being a lot less than that in Missouri.)

The world that built that hot water heater is a lot different from the world we live in today.

About four years ago, a plumber came out to work on it. It was giving me problems then, but under the conditions of my home warranty, he had to bubblegum it back together. I asked how long it had. He said its realistic life expectancy was about 12 years, so it was about 8 years beyond that. It could last another six months, but it could last years.

So now the question is what to replace it with. The stingy Scottish miser in me sees tankless water heaters claiming to save you $150 a year and really likes that. I went to Lowe’s this evening and tried to buy one. There were several reasons why I don’t own one right now.

First, they don’t keep very many in stock. They had exactly one, even though their website said they had two of two different models. The one they had wasn’t the model I really wanted.

Two, they don’t install them. They’ll sell one to you, but then you have to find someone to install it on your own.

Three, they cost more to install than a conventional tank heater. Sometimes as much as the heater itself.

And then I found a controversial column that did the math, and said that a tankless heater might not actually save you any money anyway. I can’t find fault with his logic.

One thing I noticed is that the tankless heaters that the big-box stores sell are 85% efficient. The tank heaters are 76% efficient. The propaganda for the tankless heaters always assumes lower efficiency than that. As best I can tell, the heater I have is 67%, a little lower than the literature assumes.

So it seems to me that if a tankless heater that’s 18% more efficient than what I have now will save me $100-$150 a year, then a conventional heater that’s 76% efficient ought to save me $50-$75 per year, right?

The tank heaters sell for around $320, and installation is about $260. By the time you pay for taxes and the nickel-and-dime extras, it’s $600-$700.

Half the savings for 1/3 the price sounds pretty good. And I can buy one pretty much anywhere and have it installed tomorrow if I make the purchase before noon.

And it will pay for itself in 8-12 years. A tankless heater would pay for itself in about 13, if all the claims are true. If I make a mistake today, either way I go I’ll be likely to be revisiting it in about 12 years anyway. By then, tankless heaters will be more common and probably cost less than they do now (adjusting for inflation of course).

I’ll call the plumber who bubblegummed my old unit back together in the morning. Depending on what he says about the cost of installing a tankless heater, I’ll make a decision. But at this point, I think I’m leaning towards buying the most energy efficient conventional heater I can find.

Make something! Fix something!

Clive Thompson: I’m sitting on the floor of my apartment, surrounded by electronic parts… It’ll look awesome when it’s done. If it ever gets done — I keep botching the soldering. A well-soldered joint is supposed to look like a small, shiny volcano. My attempts look like mashed insects, and they crack when I try to assemble the device.

Why am I so inept? I used to do projects like this all the time when I was a kid. But in high school, I was carefully diverted from shop class when the administration decided I was college-bound. I stopped working with my hands and have barely touched a tool since.

I can relate a little too well.I think part of the reason I was misunderstood for so much of my career was because I used to do stuff like this. I still remember the day when a new OS arrived for my Amiga 2000. It came on a ROM chip (remember those?) and some floppies to install. I had the Amiga completely disassembled, sitting on Dad’s orange OMT table in the basement. Dad came downstairs, his eyes got big and his jaw dropped, he pointed, and then looked at me. “You going to be able to get that back together?”

I barely looked up. “Yep,” I said, continuing whatever I was doing.

Granted, the Amiga’s design made it look like an onerous task–you had to remove the power supply, the assembly that held all the disk drives, and at least one plug-in card to get at the ROM chip I needed to replace. But at this point, I’d disassembled at least a couple of PC/XTs even further than that. It wasn’t long before I’d replaced all those parts that were strewn about Dad’s table and fitted them back into the case, just as they all belonged. I powered it up, and immediately knew I was successful–all those royal blue screens of Amiga DOS 1.3 were replaced with the gray screens of 2.1.

Dad watched me put it back together, and although he didn’t say much, I think he was impressed.

That wasn’t the only modification I did to that computer. Amigas operated a bit differently in Europe and in North America because of the differing video standards. Software designed for European Amigas didn’t always run right. There was a soldered jumper on the motherboard to switch between PAL and NTSC operation. I bought a small slide switch from Radio Shack, soldered a couple of wires to the motherboard, and ran them to the switch, which I hung out an opening next to the mouse port. Elegant? Not at all. Functional? Totally.

There were tons of homebrew projects for Amigas in the early 1990s. Some worked better than others. But you learned a lot from them. And I think that’s part of the reason I look at things differently than people who grew up with Macintoshes (a closed black box if there ever was one) and PCs. Sure, people have been assembling their own PCs from components for 20 years now (ever since PC Magazine declared on a cover that you could build your own PC/AT clone for $1,000). But there’s a subtle difference between assembling components and modifying them. No two 286 motherboards were the same, while the design of Amiga motherboards tended to change very little, giving lots of time for people to study and learn to tweak them.

So while the PC owners were swapping their motherboards, we Amigans were tweaking ours to give ourselves new capabilities on the cheap. And in the process I think we were learning more.

So I agree with Clive Thompson that I’m a lot less likely to take a salesperson’s claims at face value. And I think that gave me a lot less patience with people who are. With only one exception I can think of, I always worked well with (and for) people who’d taken a soldering gun directly to a motherboard or programmed in assembly language. Thanks to these rites of passage, we had a much better idea of how things worked. And it gave a certain sense of skepticism. Commodore’s own engineers didn’t know the full capability of the machines they built. So if the engineers who design a system can’t know everything about it, then what on earth can a mere sales drone know?

And that’s why I’m reluctant to buy anything that’s just a black box if I can avoid it. What if it breaks and needs to be fixed? What if I need to change something about how it looks or works? And besides that, if it doesn’t do what it’s supposed to do, I don’t want to just throw it out and buy a new one–I paid good money for it!

But I have my limits. A few years ago I checked out some books on repairing Lionel trains from the library. The books suggested using mineral spirits to clean out the old grease and oil from a motor and bring it back to life. That would be good advice, except for one thing: I had no idea what mineral spirits were (a kind of paint thinner), or where to buy them (a paint store or the paint aisle of a hardware or discount store). And have you ever tried to punch it into Google? Trust me, in 2003, there weren’t many answers. The Wikipedia article didn’t exist until 2005.

I’m sure there are lots of people who are laughing at me because I didn’t know what mineral spirits are. But I’ll bet you that if you were to go find my 120 or so high school classmates and separate out the males who lived in the suburbs whose fathers were white-collar workers, the overwhelming majority of them would have no idea what mineral spirits are either. Why not?

Because when we were growing up, we were college-bound. People like us didn’t need to know what mineral spirits are. We needed to know things like the fact that there’s no such thing as the square root of a negative number. (Yes, I know that’s not a correct statement–but those were the exact words of my Algebra II teacher, and those words cost me a lot a couple of years later.)

I even remember one time, a group of us were talking about something, and one classmate’s name came up. “He’s going to end up being a plumber,” someone snickered.

Never mind that the last time I had to call a plumber, my plumber most certainly made more money than I made that year, and he probably got a head start on me because he didn’t have to go to college for four years either.

One of the reasons plumbers make a good living is because so many people don’t even know how to shut off the water valve when their toilet leaks, let alone how to go about fixing that leaky toilet. For the record, I can shut off the water valve, but I don’t know how to fix the toilet. I’m hoping they’ll show me on This Old House sometime.

My gripe with DIY books today is that the authors don’t necessarily realize that there are one or possibly even two or three generations of readers who may very well not know the difference between a wood screw and a machine screw. They don’t learn it in school, and Dad might or might not know, but in an age when fewer couples marry and divorce rates are sky high, is Dad even around to tell them any of this stuff?

Today, I couldn’t care less about imaginary numbers. But I’m reading old DIY books, desperately trying to learn the lost arts of making and fixing things. Thanks to Disney and other useless companies, I can’t use a computer to locate digital copies of anything newer than 1922. That’s a shame, because it condemns all of the DIY books of the 1930s, 1940s, and 1950s to obscurity. They won’t be reprinted because there isn’t enough market for them, they aren’t worth the expense of hiring a lawyer to find out if they somehow slipped into the public domain before the laws started really changing in the 1970s, and they’re scarce enough that you won’t always find them where old books lurk, making them a bit more difficult to borrow or purchase.

That all but eliminates a golden age, limiting me to 1922 and earlier. But admittedly it’s very interesting to read how people made and fixed things in the decades immediately before and after the turn of the previous century. So many books today start out with a list of exotic and expensive tools before they tell you how to do anything. One hundred years ago, people didn’t have as much money to spend on tools, and since things like electricity weren’t necessarily always available, there weren’t nearly as many exotic and expensive tools to buy either.

I found an incredible quote in an 1894 book by Charles Godfrey Leland, a teacher and author from Philadelphia. “It is much better not to have too many implements at first, and to learn to thoroughly master what one has, and to know how to make the utmost of them. This leads to ingenuity and inventiveness, and to developing something which is even better than artistic skill.”

That’s not just good advice for metalworking, which was the subject of this particular book. That’s an excellent philosophy of life.

Unfortunately right now I have more time to read than I have to tinker. But I think once I have a little time to tinker again, I’ll be able to make some nice stuff. And maybe someday when someone says they don’t make ’em like they used to, I’ll be able to smile and say that I do.

Why I generally buy AMD

I was talking to a new coworker today and of course the topic of our first PCs came up. It was Cyrix-based. I didn’t mention my first PC (it seems I’m about four years older–it was an Am486SX2/66).

With only a couple of exceptions, I’ve always bought non-Intel PCs. Most of the Intel PCs I have bought have been used. One boss once went so far as to call me anti-corporate.

I’m not so much anti-corporate as I am pro-competition.

Read more

Why first-generation flash SSDs are a bit disappointing

I’ve been waiting with anticipation for flash-based SSDs to come out. If you’re unfamiliar with these, they’re hard drives with no moving parts, so their life expectancy is 10 years, and they’re quiet, run cool, and they have virtually no seek time so for some tasks they’re lightning fast.

The best drives on the market, from what limited information is available, seem to be the Samsungs.The problem is that these drives have a sustained read speed of 50 MB/sec and write speed of 27 MB/sec. Under ideal circumstances, a conventional hard drive can exceed those numbers–especially the write speed. So what’s going on?

The main reason is that these drives have no cache on them. Conventional hard drives have a small amount of RAM that acts as a buffer between the computer and the platters. Today a budget drive has 8 megs of RAM. A lot of high-performance drives have 16, and I’ve even seen some that have 32.

The most frequently used data can come off this buffer at high speed. Writes can go to the buffer and the computer can get on with life, and the drive can write the data to the platters when it gets less busy. The other advantages of a solid state disk often can make up the difference when reading data, but if you’re writing a lot of data, the conventional hard drive wins the race most of the time.

SSDs could benefit from cache for one good reason: conventional RAM chips are still much faster than flash memory.

Now for the good news: I’ve read reports that the Samsung drive can boot Windows in 15 seconds and most common applications have single-digit load times. So if you don’t do a lot of writes, these drives can give you a performance boost.

The other complaint is capacity. You can pay $400 for a 32 gig SSD, which is more than you’d pay for a full terrabyte of conventional storage. For some people, this is a problem. Given the work I usually do these days, 32 gigs is plenty for me, and I could probably find ways to get by with 8. I just don’t keep a lot of huge data files around. But if I needed acres of data storage, I could load the operating system and my most critical apps on the SSD, and use the conventional drive for storage.

The old knock on flash memory was its finite lifespan. Put Windows’ swap file on a flash drive and let it run, and theoretically you could wear out the memory in a matter of days. And that’s always one of the first comments that shows up when the topic of flash drives comes up on sites like Digg and Slashdot. But today’s flash memory sustains more writes than the old stuff did, and newer drives use a technique called wear-leveling, where it distributes writes amongst the available chips. This technique makes the chips last a lot longer now, to the point where one respected tech journalist, Dan Rutter, actually recommends putting flash drives in old laptopos with maxed-out memory for the express purpose of holding a swap file. And Macintosh users have been using flash disks to soup up old Mac laptops for several years now. Flash disks give obsolete laptops a boost in both speed and battery life while reducing noise and heat, and it’s pretty safe to say that current technology allows a flash drive to last 3-5 years when used for this purpose, which is about as long as a conventional drive.

My next major system upgrade will probably be a Samsung SSD for at least one of my computers. It’d make a fantastic upgrade for my laptop, at the very least. The laptop will run faster (the hard drive in it is several years old, and I think it runs at 4200 RPM) and the battery life will improve considerably. I also like the idea of having a super quiet, cool-running desktop for the family room. But I definitely hope the second-generation SSDs will include some cache. Otherwise, there’s not much advantage to them over the old trick of buying a large, high-speed Compact Flash card and an IDE-CF adapter (Addonics is one source of these), as long as both the card and the adapter support UltraDMA.

Why your old computer or game system turned yellow

I found an article today telling why plastic cases discolor with age. It explains why your old computer or game system turned yellow.

Executive summary: It’s the nature of the material it’s made of.

Read more