How to connect a Commodore 64 to a television

How to connect a Commodore 64 to a television

It is less than obvious how to connect a Commodore 64 to a television, especially a modern television, and it’s even more difficult if your C-64 didn’t come with the cables or the manual.

There are, as it turns out, several ways to do it. The C-64 and 128 have an RCA jack on the back that matches the RCA jacks on most televisions, whether LCD or CRT. Confusingly, this isn’t the key. If you just plug a cable from the RCA jack into the RCA input on a TV, you won’t get a display.

Read more

Recover your Windows CD key

Do you know your Windows CD key off the top of your head? Didn’t think so. Do you know where it’s written down?

Don’t panic if the answer to that question is also no.There’s a utility called Winkeyfinder that can recover the key for you. Download and run it and print out your key while you’re thinking about it.

When in St. Louis, don’t miss the City Museum

So, not wanting to celebrate the Anheuser-Busch-mandated holiday of New Year’s Eve but not wanting to sit around at home on a Friday night either, a good idea came up: Go to the City Museum.

It claims to be unlike any other museum you’ve ever seen. While that may be debatable, it does have something for everyone.It’s a very hands-on museum designed for exploration. The first level is almost like a catacombs, with secret passages and the like. Wear comfortable tennis shoes. You’ll need them.

The other two levels are a bit more museum-like but still hands-on. Each level has a large slide that goes down to the lobby. Yes, adults can fit in the slides too. I know because I went down each of them about three times.

You’ll find a level of art and artifacts and various activities. Included is a very large, elaborate, and critically acclaimed HO-scale model railroad that was built by St. Louisan Pete Fordyce in the 1950s. Fordyce was a frequent contributor to Model Railroader magazine and the layout is reasonably famous, as far as model railroads go. Anyone who ever built a plastic model kit as a child will be impressed with it; a model railroader could probably stand there for hours studying the techniques.

The top floor has a very large exhibit dedicated to architecture. The artifacts include doors, windows, cornices, and even entire storefronts. Most artifacts have signs telling where they came from and why the building was demolished–sadly, usually for something stupid and generic like a chain store or a gas station. There are exhibits about the histories of door hinges and doorknobs. How can hinges and knobs be interesting? They weren’t always the boring, bland mass-produced affairs you see at Home Depot today.

Outside, there are lots of things for kids (big and small) to climb on. I didn’t climb much; as much as I would have liked to climb up to that airplane and go inside it, climbing up three stories on semi-open girders to get there is more than my nerves can take. Judging from the number of people climbing on it, I’m in the minority and that’s a good thing.

I absolutely recommend it. At night when the admission is only $5, not only is it cheaper than going to the movies, but you’ll get some exercise and if you’re not careful you just might learn something. During the day it’s far less expensive than going to an amusement park.

Incoming link: http://trainboard.com/grapevine/showthread.php?t=56703

XTrkCad model railroad track software is going open source

XTrkCad, one of the many model railroad track planning programs–and the only one I know that has both Windows and Linux versions–is going open source. This also means the program is now free.

You can’t download the source code yet but you can download binaries, enter a registration code, and play with it. I’ve been doing just that.One thing I noticed right away when I started trying to use it to plan a layout using Lionel and Marx O27-profile sectional track–which it doesn’t support directly, so I had to enter the track, confusingly, using the “custom turnout” tools–is that the model railroad and toy trains people measure track differently.

A Marx or Lionel O27 curve isn’t an O27 curve in XTrkCad. It’s a curve of radius 12.5 and angle of 45 degrees.

Here are some measurements. Keep in mind this is what they’re supposed to be. Manufacturing tolerances and the effects of age sometimes cause these measurements to be off. Some of my vintage track is off by 1/8 inch or more.

O-2712.5″
O-3415.75″
O-4220.25″
O-5426.375″
O-7235.25″

I happen to know that O27 and O34 tubular track use a 45-degree angle, and that Lionel and K-Line O42 tubular use a 30-degree angle. Unfortunately I don’t have a piece of K-Line O54 or O72 sectional tubular track to measure.

Since O42 track is supposed to be 12 sections per circle, and 180/12=15, I believe to calculate the angle measurement of O54 and O72 you can divide 180 by the number of O54 or O72 track sections in a full circle, then multiply that result by 2. The math works for the O27, O34, and O42 track sections I have, but since I don’t own any K-Line O54 or O72 track I can’t be certain.

Also, confusingly, traditional O gauge switches are straight turnouts in XTrkCad, even though one leg of them is curved. Here are the parameters I got by measuring a Lionel 1121. The measurements are close enough to represent Marx or Sakai O27 switches:

Diverging length: 8.5
Diverging angle: 45
Diverging offset: 3.75
Overall length: 8.75

And here’s what I measure on a Marx O34 switch.

Diverging length: 11.375
Diverging angle: 45
Diverging offset: 4.5
Overall length: 11.188

I believe the diverging angle would be 30 degrees on a Lionel or K-Line O42 switch, but since my vintage Marx and American Flyer locomotives won’t make it through modern O42 switches, I don’t have any of those to measure.

I’ve already used the software to draw a layout using Marx O34 track that will allow two-train operation with room on sidings for three additional trains. It’s much easier than setting up track on the floor and measuring it to see if it will fit on the table. And you can do your layout and then print an inventory to compare what you have with what you need. Not having enough track to mock up a layout isn’t a problem anymore.

On the computer some of the things I want to do don’t quite fit; if the track measurements are slightly off, the solution is to cut a section of track to move things a bit, or, if they’re off by less than a quarter inch or so, force it. O27 track has a lot of give, and, like I said, manufacturing tolerances and the effects of time can cause real-world track to not match the published standards.

Making fill patterns in Gimp

I find myself making fill patterns in Gimp every so often and always having to look up the trick.

Here’s how to use Gimp to make tileable fill patterns, which you can either use inside Gimp, inside other programs, or as web backgrounds.

First, to make an image that will tile smoothly when repeated, start with a source image. This can be a drawing or a photograph.

Be careful about copyrights. If you drew or photographed the image yourself, you’re fine. Or if the image is from 1924 or earlier, you’re fine. If the person who created the image puts it in the public domain, licenses it under terms that permit distribution and modification, or otherwise gives you permission, you’re fine. Under any other circumstances, you may not be so fine. For personal use, nobody’s going to beat down your door, but putting the image on the ‘Net doesn’t exactly constitute personal use, if you know what I mean.

Got that? Got a picture? Good. Open it in Gimp. Actually you’ll probably want to open it twice. You’ll see why shortly.

Crop one of the copies of the image down into something that resembles the pattern you want to make. A lot of patterns aren’t much more than 256×256 pixels and you may be able to accomplish what you want in less than that. If it’s photorealism you seek, you may need to go a bit larger.

If the image isn’t straight or square, crop it slightly oversize (select the region with the mouse, then go to Image, Crop image) then use the perspective tool (Tools, Transform Tools, Perspective; or hit shift-p) and/or the rotate tool (Tools, Transform Tools, Rotate; or hit shift-r) to get the image straight and square. Then crop it.

Now, the magic. To make the image tile smoothly, use the offset command and smooth it out. Go to Layer, Transform, Offset (or hit shift-ctrl-o). Punch the button that says x/2 y/2 and hit OK. Your image will now be a tangled mess, in all likelihood. Smooth in the gaps. If you’re tiling bricks or something similar, you may want to go back to the original, uncropped image and copy and paste bits and pieces from it back into the image to cover up the gaps.

Keep in mind that when you cut/copy and paste, you can also select a region and use the paste into command, also from the edit menu.

You may also find it helpful to blur some gaps. Select the region you want to blur, then go to Filters, Blur. You might also find the Tileable Blur under the same menu helpful. Sometimes I’ve gotten good effects by repeatedly sharpening and blurring a region. It introduces just enough noise to bring it close enough that I can finish retouching by hand. You’ll find sharpen under the Filters, Enhance menu.

Once the image looks smooth, hit shift-ctrl-o to offset it again. You may find you’ve introduced new problems. Fix those, and offset again. Repeat the process until the problems disappear.

I find myself zooming way in and out a lot during this process. It’s often easier to select a precise spot you want to fix when you’re zoomed in.

And that’s the secret to making fill patterns in Gimp. Armed with an image, a copy of Gimp, this knowledge, and some determination and patience, you now have everything you need to make spectacular tileable patterns.

Another site listing spyware-free software

Generally speaking, I tell people not to install free software on a computer anymore unless it’s licensed under the GNU GPL or another similar open-source license, because open-source software is the only type of software that has any high degree of likelihood of not containing adware or spyware or other malware.

The problem with that advice is that the people who know what it means probably already follow it, and if you follow this Farquhar’s Law (there are many) to the letter, you miss out on gems like Irfanview.I’ve recommended the Tinyapps.org web site for a long, long time, but some jewels like Mozilla are much too big to qualify for that list.

Enter Cleansoftware.org.

While neither list is likely to have every safe, free application available, checking those sites for software that does what you want gives a broader range of choice than simply making a blanket statement like “Don’t install anything that isn’t Free (as in speech) Software,” or “Don’t install anything that isn’t GPL.”

If you want software that you can copy and redistribute and, if you wish, modify, with little or no restriction, then of course your best bet is to check out Freshmeat.net and look for software with a license that’s OSL approved.

Contrary to what it may seem, strings-free freeware isn’t a totally lost art. You just have to look a little harder these days, that’s all.

Freesco still works as a router/firewall in a pinch

I set up a Freesco box over the weekend. It makes less sense now that router/switch/firewall combos from the likes of Linksys sell for $50 than it did when they sold for $200, but if you’re long on unused PCs and short on cash, it still works.

My old walkthrough no longer applies directly to the current version 33, but if you’re reasonably technically competent it should get you on your way.As far as what hardware to use, I had a Kingston 10 megabit (NE2000 clone) PCI card and a D-Link card based on a Realtek 8139 chipset. They worked fabulously. The 8139 is a workhorse; networking guru Donald Becker blasted it in print–it’s the only chipset I think he’s ever said anything bad about–but until you start routing between a 100-megabit network and a gigabit network you probably won’t notice, especially if you’re using a 200+ MHz machine as your router, which in these days of $30 Pentium II PCs, is likely.

All you need is a computer with 8 megs of RAM, two NICs, and a floppy drive. To make it easier on yourself, make sure it has PCI slots, use two PCI NICs, and and 16 megs of RAM or more. Since 32-meg sticks are useless to most people these days, they’re cheap.

I suspect that if you have a pile of unused hardware that you’re looking to turn into a router, chances are decent you have a pile of network cards in that stash. Try a few different PCI cards. Life sometimes goes a bit easier if the two cards have different chipsets on them, but it’s not usually necessary to mix it up.

Give yourself a time limit. Mess around with it for an hour. If you get frustrated after an hour, go out and buy a Linksys or a D-Link or a Netgear. If you don’t have it working after an hour but you’re fascinated and you’re learning a lot, then keep plugging away at it. The knowledge you’re gaining is worth more than 50 bucks.

David Eckstein signing makes sense for the Cardinals

This is too weird. The Red Sox sign the Cardinals’ shortstop, then the Angels sign the Red Sox’s outgoing shortstop and cut their shortstop, who then signs with the Cardinals.

David Eckstein is overpriced at $3.25 million, but he’s by far the best deal of the bunch, and the best fit for the Cardinals.After the Cardinals assembled an All-Star team at the plate, I’d been saying they needed to let some of their high-priced position players go, get someone who can catch the ball, and concentrate on pitching. Good pitching always beats good hitting, even in the Steroid Era, as Boston demonstrated in this past World Series.

Eckstein won’t pop as many homers as Edgar Renteria or Orlando Cabrera, and he’s not necessarily as flashy with the glove, but he’ll catch everything that comes his way. He’s a better leadoff hitter than the departed Tony Womack. And most importantly, he plays with a lot of intensity and heart. St. Louisans go for that. Joe McEwing was the second most-popular player on the team when he was here. He’s a utility infielder/outfielder. Never was a star and never will be. But he was the kind of guy who would try to score from first on a groundout to shortstop with two out in the inning.

St. Louis fans appreciate that.

When Bo Hart came up two seasons ago to fill in at second base, he exhibited the same kind of hard-nosed play and became a fan favorite. Speaking of which, if you happen to be Walt Jocketty and you happen to be reading this, please feel free to trade Bo Hart to Kansas City. KC needs him more than the Cardinals do.

So Eckstein’s a good fit. He fills the Cards’ hole at shortstop and in the leadoff spot, and will do a good job of catching the ball and getting on base so that Larry Walker and Albert Pujols and Jim Edmonds can bat him in. And he’ll do it for $4 million less than what they offered Renteria. That’s $4 million they can spend on pitching.

With what the Cardinals saved by not re-signing Woody Williams, Mike Matheny, and Edgar Renteria, they can just about afford to pay Randy Johnson’s salary.

I think the Cardinals need to make a serious run after Johnson. They can top any offer the Yankees might be able to make, and the Cardinals really were just about two dominating pitchers away from a championship. They’ve landed one dominant pitcher in Mark Mulder. There are no truly dominant pitchers on the free-agent market now, so the Cardinals need to go get one via trade. Johnson’s made it clear he wants out of Arizona, and the Cardinals can make a convincing argument that they’re more likely to win a Series than the Yankees.

Now it’s just time to come up with the players.

Paint.NET is fine for what it\’s intended but no Gimp killer

Paint.NET got Slashdotted today (here’s a list of mirrors ) and instantly it was hailed as the killer of Gimp, Photoshop, Paint Shop Pro, and probably every other graphics program ever made.

Of course I had to try it out immediately.What I quickly found was a very capable replacement for the venerable, miserable Paint that comes with Windows (which isn’t even as good as some of the type-in paint programs for the C-64 from the late 1980s) with a handful of high-end features bolted on and a user interface that makes most things reasonably easy to find.

Its lasso tool is extremely intuitive and it, as well as the other selection tools, highlight what you’re selecting as you’re doing the selection. That’s a huge plus. It has some nice filters built in too. For what I do, I can think of practical uses for the included “Frosted Glass” filter. Others will enjoy the oil paint filter. Most people will find both of them to be fun.

It lets you zoom way in on your work, which at times is exceptionally helpful.

Some people will find the layers tool very useful and it makes them pretty easy.

But Gimp killer? No. Paint Shop Pro killer? Maybe for some people.

For people who want to do something other than crop a digital picture, sharpen it a little and maybe add an effect and some text, it still has some serious limitations.

For one, you can’t make custom patterns. For me, that’s a showstopper. The included patterns are nice but sometimes I need to make a pattern out of a photograph so I can make something photorealistic. Gimp lets me do that. Paint.NET does not.

If you can make the paint bucket fill an area with a pattern, I couldn’t figure out how to do it. Either this feature–which I use constantly in Gimp–is missing or it’s buried somewhere that this dumb journalist can’t find it.

Don’t get me wrong. As a replacement for Paint to do simple tasks, it succeeds. But don’t call it a Photoshop killer, a Gimp killer, or a Paint Shop Pro killer. It’s all the paint program some people need.

But it’s better than those other programs in the same way Notepad is a better word processor than Word or WordPerfect. Sure, you can’t get any easier to use than Notepad. But did you need fonts? Spell check? Margins?

I recommend downloading and installing Paint.NET, as it’s not terribly large and, even if you don’t use it as your only paint program, you may find yourself loading an image into it to use a couple of its tools that you like before taking the image back into a more powerful editor. Just don’t call it something that it’s not.