Science Sunday

Here's something that it never occurred to me to do: Using yet another thermite reaction to make metallic sodium!

(I think that technically a thermite has to be a metal powder plus a metal oxide; in the above test of the temperature tolerance of a picnic table, the experimenter is using sodium hydroxide drain cleaner, rather than sodium oxide. But it's clearly still a thermite-ish reaction.)

This is way more fun than the way I would have chosen to split the sodium out of sodium hydroxide, by merely electrolysing the molten NaOH, as Humphrey Davy did.

This technique is, of course, an eminently suitable first step into chemistry for Cub Scouts, very drunk people and trained chimpanzees. Preferably all at once.

If you'd like to make it a little less dull, try doing it in the rain!

(That whole page is pretty darn entertaining. See also "By good fortune the molten sodium hydroxide was so hot that it had vaporized the water in my skin and sloughed off without burning me chemically", from a gentleman who went on to win a Nobel Prize... but not for chemistry.)

And now, a bloke whose voice doesn't sound as if it's really meant to be that deep, using yet more molten NaOH to dissolve some glass!

In comparison, it's a positive letdown when all he does is stick his hand in liquid nitrogen...

...make potassium permanganate at home (take that, War On Some Drugs!)...

...freeze some acetone...

...or make a calcium acetate solution by reacting vinegar with antacid tablets, and then use it to gel some alcohol.

And finally, the piece on potassium (it's one louder than sodium) from the inimitable University of Nottingham Periodic Table of Videos:

Give the (free) gift of The Secret Life of Machines!

A quick update on the subject of the Secret Life of Machines series...

From series 2, episode 1

...which, for the information of newcomers, is

1: fantastic,
2: legal to download for free, and
3: large.

A couple of years ago, I made a torrent of a high-video-quality version of this excellent science series, which total 3.3 gigabytes.

Of late there have usually only been one or two seeds for the torrent, though, and one of them is me, and my little home DSL account can only upload at a peak speed of about 25 kilobytes per second. So it takes me a couple of days to send the whole bulk of the three series to someone (technically, it's two six-episode series of The Secret Life of Machines, plus one six-episode series of The Secret Life of The Office). And when the transfer finally completes, the recipient will then usually not bloody seed it.

So if you've still got that torrent sitting in your BitTorrent client, I'd be grateful if you force-seeded it for a while.

(A reminder for readers who're dubious about this, or protection-racketeers from one or another content company who're champing at the bit to send me a nastygram: Tim Hunkin, the creator and principal presenter of this show, wants people to download it for free. He makes this clear in many places, like for example his pages for the three series of the show. The shows are still copyrighted, but free distribution is expressly permitted.)

As I've mentioned before, you can help out with seeding even if you don't have the torrent in your BitTorrent client any more, provided you still have the files. (Which, by the way, are in the "M4V" iPhone format, are not nasty VHS rips, and are playable on all platforms; use VLC if you have problems.)

To seed if you've got the files but not the torrent, just get the torrent started as if you were going to download it again (so your BitTorrent client creates the appropriate download directory and empty files), immediately stop it again, copy the video files from wherever you've put them into the new download directory over the top of the new empty files, and then restart or "Force Re-Check" the download (depending on which BitTorrent client you have). Provided the files are the right ones for this iPhone-format version of the series, and have the right names, the download will now be 100% complete and you can force-seed it for a while.

Oh, and don't worry if your BitTorrent client says the download is only something like 99.8% complete, and it has to download a bit of data before it's "finished". That just means your computer has modified some header data in one or more of the files, so that tiny bit needs to be re-downloaded to overwrite the changes. It doesn't mean the files are corrupt.

(If you don't have a BitTorrent client at all but do have the files, perhaps because someone gave them to you on a thumb drive or something, you can also help out. You just need to install a client - µTorrent, for Windows and Mac, is excellent - and then do the starting-stopping-copying-and-then-seeding thing. The default settings for a freshly-installed BitTorrent client may stop it seeding after it's uploaded 200% of the data size of a torrent, or something; upload-ratio checking goes weird when you do the stop-copy-and-seed thing, too, because you'll have the whole download but won't have actually downloaded anything. Just right-click the torrent and select "Force Start" or "Force Seed" or whatever it's called in your client, to ignore upload limits.)

Here's a magnet link for the Secret Life of Machines torrent. (You may need to associate your BitTorrent program with magnet:... links to make this work, or manually copy and paste the link into an "Open Torrent..." dialog.)

You can also download the torrent file from isoHunt or The Pirate Bay - it was on Mininova, too, but they decided to go legit the other day and removed pretty much all of their torrents, including legal ones like this.

The BitTorrent community is moving away from .torrent files, just as it's moving away from trackers - The Pirate Bay have actually shut their trackers down altogether now. If you've got the little magnet URI for the download you want - it's ?xt=urn:btih:D62CLPSEYNRN74FRZDUC5GYVKTOOUKGE for the Secret Life of Machines torrent - then your BitTorrent client can use it to get other people who're downloading the same thing to send you the data that a .torrent file would have given you. This may take a little longer than downloading a torrent file would have, but it shouldn't actually fail unless there's nobody seeding the torrent, in which case you obviously wouldn't be able to download it anyway.

Once you've got the torrent info, the distributed hash table (DHT) system that all modern BitTorrent clients support can go on to give you the rest of the data from other users, without needing a central "tracker" system to keep everything organised.

And then, before you know it, you're watching Tim stand on the accelerator and the brake at the same time, and Rex brutalising that poor innocent refrigerator.


Tim Hunkin has done a lot of stuff since The Secret Life of Machines. Here's...

Whack A Banker machine by Tim Hunkin

...some posh bird enjoying the latest in Tim's long and inimitable line of penny-arcade amusement machines, "Whack A Banker".

Protecting your delicate brain from YouTube comments

We all know what YouTube comments are like.

Exactly which site boasts the Web's stupidest commenters is a matter for debate, but YouTube is unquestionably right up there.

You can try to ignore the comments on YouTube; if you've got a small enough browser window and don't page down, you may be able to avoid seeing them altogether. You can also tell YouTube to only display comments rated "excellent (+10 or better)" until it forgets you're logged in or the cookie's cleared or whatever. I think that setting leaves a grand total of about eight comments visible on the whole site.

One way or another, though, most of us at least catch a glimpse of YouTube comments, out of the corner of our eyes, from time to time. Sometimes we even look there on purpose, for the same reason people look at other such... things. Every glance corrodes your faith in humanity a little more.

Snobulated YouTube comments

May I, therefore, suggest the Firefox add-on YouTube Comment Snob?

It ain't perfect, but it's fighting the good fight.

There are a few Greasemonkey scripts that do similar things. YouTube Comment Cleaner, for instance, and (as I write this) three scripts that replace comments with quotations, including one that hybridises with YouTube Comment Snob, replacing any comments the Snob blocks with quotes from Richard Feynman.

The Comment Snob options...

YouTube Comment Snob options

...remind me of the old Microsoft Word Hidden Settings joke:

Microsoft Word hidden options

By default, Comment Snob doesn't block comments that include profanity, which of course is not necessarily an indicator of a lack of intelligence.

Except in fucking YouTube comments.

Ping-pong panelbeating

I have just discovered how to remove dents from table-tennis balls.

We don't have a ping-pong table here, but we do have a lot of ping-pong balls, because we've got four cats and ping-pong balls are great cat toys.

When ping-pong balls are everywhere, though, you'll often tread on one, and dent it. A dented ping-pong ball is of limited utility as a cat toy, and is of course no use at all for actually playing table tennis.

As I was making tea, it occurred to me that just holding a dented ball in tongs and immersing it in very hot water might un-dent it. Even if the heat didn't soften the ball (which, as it turns out, it will), the expansion of the heated gas inside the ball ought to push the dents right out.

And I'll be darned if that is not exactly what happens. The ball swells back up to perfect roundness, and once cooled and dried it seems to bounce pretty much as well as a brand new one.

The only time this trick won't work is if there's an actual hole in the ball, which can happen if a dent has sharp creases. Then, all you get when you immerse the ball is a trail of bubbles from the hole.

(If you subsequently immerse the punctured ball in cold water, the contracting gas inside will suck the water into the ball. This lets you partially fill a ping-pong ball with liquid through a tiny hole, but you could do that with a syringe anyway. I remember seeing a documentary about controlled burning in forestry; to reliably start fires from the air, they used a machine that took ping-pong balls that'd been pre-filled with potassium permanganate, and then syringed glycerine into them, just before dropping them.)

Interestingly, ping-pong balls also smell distinctly of camphor when you take them out of the hot water. That's because they're made of celluloid, which is principally composed of nitrocellulose and camphor. This is why they burn so well:



(Some very, very cheap ping-pong balls are made of plastic instead of celluloid. They're a bit squishy, bounce about as well as a grape, and often aren't even evenly thick all over, so they wobble when rolling. Still OK as cat toys, though.)

Sadly, it would appear that I am not the first person to have thought of this repair technique. But I'm still pleased that I thought it up all by myself.

(I also invented the differential, at about the age of nine. Unfortunately, someone else had already invented that, too.)

All heart, no brain

I started watching The Waters of Mars, the most recent Doctor Who special, a few days ago. Then I paused it after 12 minutes and didn't resume for a few days, because I had other stuff to do and it clearly wasn't going to be very good.

I know Doctor Who is really fantasy, not sci-fi, and I know it's now all about heart and emotions and not so much about coherent storylines. That's fine, if done with some imagination; I actually quite liked the episode Gridlock, for instance, which was a veritable lace doily of plot-holes if you looked at it critically.

And I know Doctor Who is primarily aimed at young viewers, and I also know that kids aren't very discriminating and will watch any old crap.

But none of that excuses this level of crapness.

(Spoilers, naturally, follow. But I'm spoiling the bad bits, not the good ones, so perhaps you'll come out ahead.)

The Waters of Mars reminded me of Robert L. Forward's excellent (if you like hard sci-fi) Dragon's Egg (the sequel's pretty decent, too!). The only purpose of the characters in the first couple of dozen pages of Dragon's Egg is to set up the story proper, so Forward obviously didn't see any need to spend more than a lazy half-drunk afternoon writing the first part. (Actually, I wouldn't be surprised if he wrote the first part last, just to give the audience a minimal on-ramp to the highway he'd already finished and was impatient to publish.)

So Forward, for instance, details exactly the garments which a young female astronomer puts on before racing off to advance the plot, but because he's not paying attention he gives her a skirt but forgets to mention any underwear. This is forgotten once you get into the real story, but it's somewhat startling at the time.

Likewise, in The Waters of Mars, the writers are clearly so eager to get to the, super-heavy-handed but still pretty neat, ending and teaser for the upcoming Christmas special, that they just didn't care about the preceding story.

Robert Forward's dodgy beginning bit was very small. In The Waters of Mars, the dodgy beginning bit takes up five-sixths of the show.

I could just about handle Mars gravity being the same as Earth gravity, when it ought to be less than 0.4G, because that's apparently still too expensive for live-action TV to do properly. And I could barely accept explosion debris cheerfully burning away in Mars' 95.8%-carbon-dioxide, 0.2%-oxygen, less-than-1%-of-Earth-pressure atmosphere, because, um, maybe this Mars-base was built out of bamboo packed with potassium nitrate.

But the monsters are creatures that can make water (and fusion power!) out of nothing. But they're desperate to get to Earth, because there's so much water here. (And they've got the same name as the principal villains of all of the Halo games.)

All the writers would have had to do was make the monsters express a great hunger for all of the people there are on Earth for them to infect, or specifically mention how pleased they are with Earth's ever-shrinking ice-caps that promise a gigantic habitable area for them in their liquid form. But no. One of 'em stands there, drooling a steady stream of water onto the floor, and just says that it's impressed by the quantity of water that Earth already has.

Cliched self-destruct

And there's not just one, but two, self-destruct mechanisms activated in this one episode.

I suppose it's not that surprising that the systems exist - nobody puts a "Blow Up This Vehicle" button on real-world dashboards, but if you live in the land of TV sci-fi you can expect super-virulent body-snatching alien and/or supernatural monsters to pop up about every other week. The only surprising thing is how slow people always seem to be to figure out what's going on and press that deadly button that'll save the rest of the world.

(We should probably count ourselves lucky that only one of the self-destructs has a Red Digital Readout. And to be fair, it still isn't your typical Acme Mechanically-Assisted Plot-Tensioner, a device which has the mystical ability to make the last 60 seconds of the countdown take up five minutes of screen time.)

As regular readers know, I am actively delighted by stupid Doctor Who monsters. But they're meant to be stupid-looking, not just by-the-numbers Central Casting zombies plodding through a script that exists only to give the Doctor a reason to emote.

I'm quite happy with fatally-plot-holed sci-fi as long as it's imaginative. When I finish watching some oddball anime and say "what the fuck was that all about?!", I'm always smiling. And Doctor Who is supposed to be among the most imaginative live-action shows, because it's got the fewest restraints. It's not stuck on a particular starship or even a particular planet, it doesn't take itself very seriously, and after some decades, the audience is accustomed to the fact that the TARDIS seems to independently seek out deadly peril, especially when the Doctor intended to have a little holiday.

This all makes it particularly disappointing when you get a story like this, that's no better than the 62nd time the holodeck tried to kill everyone on the Enterprise.

Pew pew pew! ZAP! Whoosh! Ka-BOOM!

You know when you read a review of a game that says that one part of the game, say the battles between spaceships, looks great and is tons of fun, but the rest of the game is kind of boring?

Gratuitous Space Battles is that part of that game, without anything else.

(And before I say anything else, note that there's a free demo.)

You pick a fighter, frigate or cruiser hull for each of your vessels...

Gratuitous Space Battles ship design

...you kit them out with weapons and shields and engines and so on, you deploy an armada of ships of different sorts (or all of the same sort, if you like), and then you give them all orders. Concentrate all fire, prefer to shoot enemies that're already wounded, shoot this kind of ship over that kind, protect this ship of ours, protect any ship of ours that's damaged, stop at this range from the enemy and plink with your long-range missiles rather than charging into beam range, et cetera et cetera.

And then you click the "Fight" button, and sit back and watch.

For the actual battle - which is fought on a 2D battlefield, though ships can go over and under each other - you're a pure spectator. GSB is like a tower defense game, in that regard. (Many tower-defense games let you build new towers during a battle, though; GSB does not.)

You can speed up and slow down the battle, and you can zoom in and out. From a distance, the action looks like this:

Gratuitous Space Battles wide view

(In this battle, I'm employing the Unsporting Crowd of Torpedo Frigates strategy. I'm also playing at full resolution on my huge monitor, so the full-sized screenshot is 2560 by 1600 pixels and rather a lot of kilobytes.)

Zoom in, and you can see...

Gratuitous Space Battles zoomed in

...each individual weapon shot, repair drones patching flaming holes in hulls, and fighters weaving around the capital ships. (Full-sized screenshot here.)

When you win a battle you earn "honor" with which to unlock new hulls, equipment and the three whole alien races besides the one you start with, the Federation. (The big Federation ships, rather delightfully, all look like a hybrid of a Starfleet vessel and a Battlestar.)

It's all a lot of fun, and should become even more fun as the game expands. Cliff Harris, the indie developer of GSB and a few other games, is actively patching bugs and adding stuff, and GSB is also very moddable. Fans have already, according to the ancient tradition of the first few mods for any game, created a few rough-and-ready super-battleships by just adding more module mounting points to existing hulls. Some proper high-quality mods with all-new graphics, like unto the Babylon Project mod for Weird Worlds, should be arriving soon.

So try the free demo and see what you think. The full game takes into account what you've done in the demo, by the way, so you won't have to play the tutorial level again if you don't want to, and get to keep whatever honor you earned.

(GSB is Windows-only at this point, but because it's not a very demanding game it generally works fine on other OSes if you play it in an emulator.)

Gratuitous Space Battles is $US22.99 from the developer, or only $US20.69 on Steam.


Note that there's a graphical glitch in GSB that affects people who're using an unusually high horizontal screen resolution (so, one giant monitor, or a row of smaller ones). It...

Gratuitous Space Battles screen glitch

...turns a column of screen to the right into stripey repeats of the last correctly-drawn column of pixels.

I think this was meant to be fixed in the recent patch, but it doesn't seem to have been. No problem, though; just go to the options and disable "Gratuitous Shaders", and with very little eye-candy reduction, the whole screen will draw properly again.

Perhaps I'll use it as a doorbell

If you had to name one electrical component that just shouts "mad scientist", the knife switch would be that component.

(I'm not counting the Jacob's Ladder as a "component", here.)

Connecting lightning to your not-yet-animated monster, activating your death ray, powering up the time machine; all jobs for a big old two-blade knife switch.

Knife switches have plenty of actual practical uses in the real world. Even small ones can switch very high current, their position is obvious at a glance, and they can put up with a lot of abuse. They're obviously not a great choice for high-voltage switching, but they'll usually actually do that very well too - you just have to stay away from the live bits.

(Knife switches made for really high-voltage operation often have special spring-loaded doodads that stay connected as you raise the knife-bar, then snap up very quickly. Their purpose is to break the contact very rapidly, so you don't pull an arc between the terminals.)

So naturally I had to get one. And not one of the little plastic science-classroom versions with binding posts or spring terminals; I wanted something beefy, as were and still are used to isolate radio gear from the big lightning-attracting antenna outside. A knife switch also makes a dandy automotive battery isolator, but I didn't want one of those, either.

After a year or two of e-mails from my saved eBay search, I found just the thing.

Knife switch - both blades up

This handsome object cost me $AU28.11 delivered, which I thought might have been a bit too much, until it arrived. I now realise I got a bargain. This thing's way cooler than I expected it to be.

All of the terminals and contacts work OK; a couple of the hefty terminal screws were seized and remain tight after cleaning and oiling, but this is a perfectly functional piece of gear.

The Bakelite-slab base is only about 14 centimetres square (5.5 inches), but the whole assembly weighs about 1.86 kilos (4.1 pounds). And it's surprisingly complicated.

Your standard two-blade knife switch is simple enough. It's either a dual-pole, single-throw, or a dual-pole, dual-throw (if you don't know what this means, check out the Wikipedia article on switches).

This thing, in comparison, is a freakin' logic puzzle.

It's got six terminals, and two separately hinged - but electrically connected - blades. The worn (and now lightly polished!) wooden handle is in two parts, too, one for each blade. But the two handle parts form a rebate joint.

Knife switch - one blade up

This makes it possible to have both blades down, both blades up, or only the left blade up. But, because of the rebate joint, you can't have the right blade up and not the left.

Knife switch - both blades down

Let's number the terminals clockwise from the one at the bottom right of this picture. So the one to its left is terminal 2, terminal 3 is the one on the back connected to the bases of the blades, and so on to number 6, which is partly obscured by the wooden handle in the above picture. Pay attention, there will be a test.

With both blades up, terminals 1, 2 and 6 are connected to nothing, and terminals 3, 4 and 5 are connected to each other.

With the right blade down and the left blade up, terminals 1, 2, 4 and 5 are disconnected, while 3 is connected to 6.

With both blades down, terminals 1, 3 and 6 are connected to each other, and terminals 2 and 4 are connected to each other; only terminal 5 is no longer connected to anything.

(If you can't quite see how that is the case, note that the middle section of the left blade, the lower one in the above picture, has a copper sleeve around it that's insulated from the blade itself. When that blade's down, the sleeve connects terminal 2 to terminal 4, but not to the blade itself.)

Oh, and terminals 1 and 6 are connected to the blade contacts via a couple of bits of might-perhaps-be-fuse-wire-but-probably-isn't. So you could easily connect either or both of them to some other part of the assembly, if you wanted.

(Does anybody know of a piece of software that'll take a description like this - "in state A, these parts are connected, in state B, the situation changes to this", et cetera - and will then draw you a diagram? I started drawing it out by hand in a flowcharting/circuit-diagram program, but then realised I had no idea how to draw these crazy ganged switches.)

The baseplate bears a little oval plaque that says:

VICTORIAN RAILWAYS
ELECTRICAL ENGINEERING BRANCH
WORKSHOP SPENCER ST.

(It just occurred to me that the switch could easily have been used for switching railway signals of some sort. The rebated handle interlock could be for something like preventing green lights for both directions on one line.)

I actually will use this switch as a switch, from time to time. But when it's not in use, I think I'll hang it on the wall somewhere.

This JavaScript alert box is admissible in court

Most people have seen stupid "copy protection" on Web pages, where some message about copyright or something pops up when you click the right mouse button. This is supposed to stop you from wickedly making another copy of some portion of the data that has already been stored on your own hard drive when your Web browser asked the server for the page, and the server cheerfully sent it.

(See also, people who make Web sites and then demand that you not link to them.)

Via The Daily WTF's most recent instalment of Error'd, though, comes what may be the Greatest BS Right-Click Warning Ever:

Ridiculous right-click warning

Every listing from this seller has this. Just scroll down to the main product description and click your wicked pirate terrorist right mouse button somewhere on it, and you will immediately receive your very own copy of this fascinating alert box.

Right-click over and over! Send dozens of "reports"! Wheeee!

In case you're new to all this, and wondering: No, nothing's actually being "recorded" or "reported". The alert is created by a little snippet of JavaScript that tells the browser to do something when you release the second mouse button. In this case, the code pops up the alert with the stupid message.

It works in the same way as this, which also pops up an alert when you click on it. (It's also not unlike the system used for "security" by the subjects of another Daily WTF story.)

Unless you've got JavaScript disabled, that is, in which case it won't do anything at all.

If you throw caution to the wind and view the source of any of this eBay seller's item pages - using that advanced hacker tool, your browser's "View" menu, or perhaps just by right-clicking somewhere else on the page from the main product description - you'll see that the high-powered enterprise-computing code that creates this very serious warning is part of a rather long single line.

As entertained DailyWTF commenters have observed, that line is, in the case of the listing I looked at anyway, a magnificent 40,076 characters in length.

Some text editors will choke on lines longer than 32,768 characters, you know.

So that's even more security, right there!