Thursday, March 28, 2013

Forget Reservoirs and Power Grids...

After 9/11 there was a surplus of crazy talk about the vulnerability (and need to protect) public infrastructure like water reservoirs (easily poisoned, the thinking was) and electrical power grids (remote high-tension lines are vulnerable).  Fortunately the level of this crazy talk has dropped significantly upon the realization of two things: (1) protecting all this infrastructure was completely impossible (it's too darned big and distributed), and (2) it really isn't as vulnerable as it seems (there's lots of redundancy built in).

This news story about divers trying to sever an Internet cable feeding Egypt got me to thinking about the vulnerability of the Internet to terrorists.  Those Internet cables, which I've written about before, are vulnerable to attack and (if severed) could have large economic impacts.  Furthermore, the routers that terminate those cables are potentially vulnerable to attack over the Internet itself (hacking, in other words). 

In most of the developed world there is sufficient redundancy in these cables that it would be very difficult for an attacker to cause serious economic harm.  For instance, New York City has dozens of Internet “feeds” connecting it to the rest of the Internet.  Taking out all those feeds at once would be exceedingly difficult.

In some other parts of the world (like Egypt), this is not true – there may only be a few (sometimes even just one!) Internet feed connecting an entire region to the Internet.  If a terrorist organization were to take out those feeds, that region would likely suffer considerable damage.  Very little international business today is conducted without the use of the Internet.  Even simple things, such as buying bulk loads of spices from Madagascar, often rely on the Internet for the marketing, sales, negotiation, funds transfer, and coordination of the purchase.  In those places, I would think the Internet cable would be a prime target for the bad guys...

Red State Success...

Arthur Laffer and Stephen Moore have a piece in today's Wall Street Journal ($) that delves into the quite evident differences in economic success between red (Republican) and blue (Democratic) states.  If you've been paying attention to this at all, there's not much news in here (though there are a few interesting observations I hadn't heard before).  If you haven't been paying attention to the differences between the various states, it's a great (and very short) primer on the topic.

Every time I think about these obvious differences, I wonder the same thing to myself: how is it possible that voters keep voting for the politicians who have inflicted economic disaster upon them?  The best theory I know of to explain it is the “low information voter” theory – the idea that most voters really don't have any rational basis for their vote; they just vote for whomever “feels” better to them.

Then I just get sad...

Wednesday, March 27, 2013

The 12 Most Controversial Math Problems...

Upon seeing this headline, I clicked to see what I thought would be an article on problems that challenged mathematicians, but that's not at all what this article is about.  Instead, it's about math problems that challenge ordinary people's understanding – and it's quite well explained and illustrated.  About half of these problems are some I'd run across before as brain teasers; the other half were new to me.  All were interesting and illuminating.  Recommended reading!

Nuts to Them...

So says Mark Steyn, on the occasion of a particularly galling ruling by the Canadian Supreme Court.  Mr. Steyn has a short piece on the ruling, with this conclusion:
...In Canada, the law denies "the right to say his piece" to the likes of Bill Whatcott, a man who believes that homosexuals are sinners and in need of God's grace and forgiveness, but it has no objection to those who think homosexuals are evil and should be put to death. Mr. Philips need never fear the scrutiny of the "human rights" commission, or the cost of ten-year legal battles.

No homosexual needs the state's protection from Bill Whatcott. But all of us need protection from nitwit jurists blithely sacrificing core Western liberties to ideological compliance. It's not about Left vs. Right, gay vs. straight, religious vs. secular; it's about free vs. unfree. And on that most profound question, Canada's supreme court is on the wrong side. Nuts to them.
But do go read the whole thing...

Go 1.1...

A new release of Google's Go programming language...

Tuesday, March 26, 2013

Dragon Dreams...

It looks likely that giant aeroships will sail the skies again, in the not too distant future...

I'm Not Going to Africa...

...because they're suffering from a rash of genital theft:
Reports of genital theft have spread like an epidemic across West and Central Africa over the past two decades, in tandem with what appears to be a general resurgence of witchcraft on the continent. Anthropologists have explained this rise as a response to an increasingly mystifying and capricious global economy. Which is to say that when the workings of capital are as genuinely obscure as they are in today’s Africa, proceeding behind a veil of complexity and corruption, rumors of “occult economies”—often involving a trade in human organs—offer a less mystifying explanation for the radical disparities in wealth on display.

Biden Blooper...

I guess that headline is a bit redundant, eh?  A few days ago, Joe Biden amused many knowledgeable about guns – and infuriated many of the female members of that cohort.  Now there's a short video demonstrating where these reactions came from:


We have a semi-automatic 12 gauge shotgun with a seven shell magazine.  When loaded with magnum shells and shooting repeatedly, that thing will practically knock me down (and I'm not exactly a lightweight).  It leaves big bruises on my shoulder.  It would take an unusually strong woman to comfortably handle that weapon...

Race Needs This...

Race is our young border collie, who is obsessed with chasing anything roughly round that you might throw.  Pine cones, tennis balls, styrofoam packing material, it doesn't matter.  Our arms get tired of throwing long before he gets tired of retrieving.  This machine, scaled up for outdoor use and 200' throws, would be perfect for him:

Monday, March 25, 2013

Venn Diagram of Irrational Nonsense...

Awesome.


Let's Hear it for Weirdos!

I take some pride in being weird – a weirdo.  I've long proclaimed that being normal is boring.  This morning I read a great blog post by Michael Lazerow that ends with this:
Weirdos don’t see anything as impossible. Anything is possible. Just give us enough time.

Weirdos are contrarians. They think differently and act even more differently. Normals try to fit in. Weirdos stick out without really trying.

Weirdos aren’t driven by money. Money is a destination. Weirdos are all about the journey.

Weirdos don’t care what others think. They only care THAT they think and want to change HOW they think.

Weirdos come in all shapes and sizes, colors and countries. And they're not new to the tech industry, or industry in general.

Weirdos thought it made sense to get on the Mayflower from England to settle in a new land.

Weirdos thought we should get rid of slavery.

Weirdos insisted that women should also have a vote.

The world would suck if it weren’t for weirdos.

Instead of trying to get our kids to fit in, we should help them celebrate why they are different.

Let’s start to teach kids to embrace weird. Weird is good.

And let’s not stop until weird is normal.
A high-Q resonance here...

Strange Programming Language Features...

Fascinating thread on StackExchange, if you're of a geekly bent...

Mandatory School Subject: Chess...

The little country of Armenia has made the study of chess a required subject in its public schools.  There seem to be two objectives: grooming chess masters (to make Armenia a chess powerhouse), and training young minds to think.

Where and when I grew up (New Jersey, in the '50s and '60s), chess was popular.  We had no actual chess classes, but we did have a chess club that offered instruction, and it was easy to get matches at any level.  I was a semi-serious player in junior high school, active in the schools chess club; less so before and after that.  I do believe that having an enjoyable pastime that required intellectual discipline and active thought was helpful in developing my mind.  I can't say it was all chess, though, as I had several such pastimes.  More important to me at the time was my interest in designing electronic systems.  Later – specifically, while teaching myself how to program in the '70s – I remember noting that the process of designing and writing programs “felt” a lot like the process of seriously playing chess.  There's the body of practical experience to learn from, elements of strategy and tactics in the design, and even the notion of sequential execution (that is, the way chess moves occur in a specific order is analogous to the way computers execute instructions one after the other).  On occasion, I've even thought of programming as involving an active opponent :)

I can't help but wonder what the results of this experiment will be...

Sunday, March 24, 2013

FJ Cruiser Dual Battery Mod...

I just completed installing a secondary battery system in our FJ Cruiser.  There are lots of reasons to have a dual battery system, but from my perspective the most important one is simple: redundancy.  I don't want to have to hike out from somewhere deep in the boondocks just because I stupidly ran down my battery.  If I have to hike out, I want it to be for a good reason!  :)

In addition to simple redundancy, though, the second battery provides more current when it's needed.  In our case, we have several things that can draw deeply on battery capacity, including a winch and a 2 kilowatt inverter.

My dual battery installation was a “kit”: the Dirty Parts dual battery kit for FJ Cruisers.  This kit comes with everything you need to put a dual battery system in, most especially the mechanical mount – that's something I had zero desire to fabricate myself.  It also comes with the electrical parts, a pre-built cable harness, a gigantic relay, and all the heavy-gauge wire you'll need, already cut, stripped, and lugged.  I also got the optional rocker switch upgrade, as I wanted to mount the switch in one of the empty switch positions in our FJ (and there are lots of these!).  If you want to install a dual battery system in your FJ, I think you'd be absolutely crazy not to get this kit.  It's very well done, the end result looks professional, and Larry at Dirty Parts is right there when you need help (as I did): I was too stupid to figure out how a support bracket was supposed to be installed.  I queried Larry by email, and he very patiently wrote a lengthy reply, explaining in sufficient detail that even a mechanical zero like myself could figure it out.

If you're wondering why there are switches, wires, and relays involved with a dual battery installation (don't you just strap them in parallel?), here's what's going on.  When the relay is not energized, the secondary battery is disconnected from the FJ's electrical system.  This is the mode I'd be running in if I wanted the battery as a backup (presuming I was bright enough to make sure it was charged!).  When the relay is energized, the secondary battery is connected in parallel with the primary battery, providing all the extra oomph you might need.

So what energizes the relay?  That's where the switch comes in.  It has three positions, which I'll call “stock”, “emergency”, and “normal”.  In stock mode, the secondary battery is disconnected and the system behaves exactly as a stock FJ would.  This is how I'd run when I want the secondary battery as backup.  In normal mode, the relay is energized from the ignition circuit, which means (until the relay operates) the primary battery must have enough power to operate the relay.  In emergency mode, the relay is energized from the secondary battery – so even if the primary battery is completely dead, you can still use the secondary battery to do something important, like start the engine.

This is the first “major” mod I've made to the FJ, and it turned into quite a learning exercise.  The most interesting thing I learned was how to take apart the dashboard (so I could run wires to the switch, which is in the center console).  This is much easier than I expected, but it's very tricky – I don't know if I'd ever have figured it out (or had the courage to try!) if it wasn't for the vast amount of information and experience available on the web.  I was able to find other people who had done everything I needed to do, often with photos and detailed guides.  The web is a wonderful place!  I also had to make several modifications to the standard kit, mainly so that I could install the switch in an empty position on the center console.  The biggest modification there was some Dremel tool work on the back of the switch panel, to make the standard panel switch (supplied in the Dirty Parts kit) fit.  The end result is very nice, but I was a bit worried along the way, as bits of melted plastic flew out of my Dremel tool's cutting disc – this mod was not reversible :)

One big mod down, a whole bunch to go!  So far I've mounted a BajaRack with a 7" light bar, mounts for gas cans, Pull-Pal, Hi-Lift jack, shovel, and axe, and a ladder to get up to the roof, a Boztec CB antenna mount (no CB yet, though!), and now the dual battery setup.  Next up: replacing the stock alloy wheels and street tires with steel wheels and offroad tires...


“Port Winston” Mulberry Found!

If you're a student of 20th century history, you probably know all about the vital role of the “Mulberry harbours” in the Allied invasion of Europe in WWII.  After the invasion the Mulberry harbors were largely demolished, though a few pieces remain above water off “Gold Beach” in Normandy. 

Now scientists from the United Kingdom, using sophisticated sonar systems, have located the remains of the “Port Winston” Mulberry harbor, some just 15 feet underwater.

In my travels around Europe (including Eastern Europe), one of the most surprising things to me was just how little directly visible evidence of WWII remains.  After my readings of history, and given how recent WWII was, I fully expected to see direct evidence of it all over the place.  Here's a great example of what I mean – these Mulberry harbours were enormous constructs of concrete and steel, and yet they were completely lost for 69 years!  When I visited Normandy roughly 20 years ago, I was shocked to discover that very little of the massive Nazi defensive works remain, and those only because they were preserved as a monument.  Even in the former Soviet Union it's hard to find remnants, though there are more there than in the West.  For example, on the southwest tip of the island of Saremaa (in the Baltic Sea), there is a largely untouched concrete defensive works, quite large, still remaining – and there are some efforts to preserve what's left.  Most of the iron and steel components of this works have been scavenged, but the concrete bunkers remain.

Saturday, March 23, 2013

Curiosity is Back Online!

Hip hip hooray! 

Curiosity has been offline for several weeks, after a software glitch (and possibly a memory failure; reports vary).  The photo at right was returned amongst the first new batch since the glitch first occurred.  It's very nice to see that!  In just over a week, Curiosity (and all of Mars) will be on the opposite side of the Sun from Earth, so for a few weeks after that it will be “radio silence” for all the robotic explorers orbiting and sitting on the surface of Mars.  Let's hope they all wake back up successfully when Mars is out of occlusion!

We Aren't the World...

Experiments in psychology and sociology are plagued by uncontrolled (and perhaps uncontrollable) variables and difficulties in replication.  For any engineer or scientist used to the somewhat firmer ground of the “hard” sciences, this makes investigations into human behavior seem like something other than science and closer to opinion.  It doesn't help that facets of these softer sciences that are believed to be true are routinely and frequently overturned. 

On that theme, here's an article exploring one of the more recent such overturnings.  My main reactions after reading this: (1) don't believe anything is actually “known” in those fields, and (2) I'm sure glad my own areas of interest aren't quite so ambiguous and difficult to measure – my oscilloscope and voltmeter work every time, with perfectly repeatable results :)

Magellanic Cloud, in Infrared...

Via APOD, of course (full resolution here)...


Picking CPU Registers...

On many CPU architectures, especially older ones, there are a relatively small number (sometimes only two or three!) of CPU registers.  Modern CPUs are sometimes much more symmetric with respect to register set architecture.  If you're an assembly language programmer, you know all about registers.  If you're not, you can think of them as particularly fast memory locations that machine-level computer instructions can access directly (that is, without having a memory address).

This characteristic of a small number of registers wasn't limited to microprocessors; all the early “mainframe” and “mini” computers were built the same way.  The first mainframe computer I worked with was a Univac CP-642A, and if I remember correctly it had just four registers: A, Q, I, and the program counter.  All of the subsequent mainframes and minis I worked with were also machines with limited register sets, with some of the most modern of them having a couple dozen registers.  Similarly, all the early single-chip microcomputers I worked with had very limited register sets as well.  The TI 99000 attempted to move a lot of register functionality into memory locations, but even it had over a dozen specialized registers.

All of these machines with limited register sets shared another characteristic: to various degrees the registers were specialized.  One register might have special capabilities for increment and decrement.  Another might be specially usable as an index into memory.  Another might be part of double-precision multiply and divide operands.  Or perhaps a couple of registers might have a special “swap” capability.  This sort of thing was quite normal in those early CPUs, and the special register set capabilities were directly reflected in the machine-level instruction sets.

William Swanson has a nice article up exploring the Intel 8086 register set architecture in quite a bit of detail.  It's a specific case of this more general design characteristic.  Reading this brought back a lot of memories, both from the distant past :) and more recently, with PIC single-chip systems...

Massive Construction Underneath New York...

The Atlantic has a great article up about the massive construction project currently underway, mainly deep underground in New York City.  It's been going on for over five years already, and it's truly enormous in scale – yet most people have never heard about it, and most New York residents have never seen any evidence of it.

Being a government project, of course it's massively over-budget and behind schedule.  It would be fabulously shocking if not :)

I'm not a fan of big cities in general, and New York is amongst my least favorite.  But the sheer scale of this civil engineering project leaves even me with my jaw dropped.  Lots more photos at the link; the one below is a custom (and massive!) tunnel-boring machine built for the project.