Monday, February 16, 2015

Kings of the mountain...

Kings of the mountain...  Last fall, our friend and neighbor Tim D. piled all the soil excavated for our barn's foundation up on the west side of our garden area.  Another neighbor's boys (and their friends) are enjoying the small hills Tim created.  They use them for building forts, riding their bikes on, and just generally running around.  In bare feet.  In February.  It's a gorgeous day out, 48°F and wall-to-wall sunshine.

Before the boys started playing on our “mountains”, they knocked on our door to ask if it was ok for them to do so.  They did the same thing before playing in our pine “forest” (visible behind the mountains), and before riding their bikes on our pavement.  They're endearingly polite, these boys – something 30+ years of exposure to California boys had me thinking that good manners had gone the same way as floppy disks, typewriters, and vinyl records...

Flags on President's day...

Flags on President's day...  The local Boy Scout troop provides a service to local homeowners on patriotic holidays: they post flags along the road.  The photo at right shows our flag this morning, and if you embiggen it you'll see several of our neighbors' flags to the south.  The Boy Scouts do this for 7 or 8 holidays during the year, for a donation of $35.  I've noted that several families in town who likely can ill afford such an expense also have the flags up – either the Boy Scouts are helping out, or they're sacrificing something meaningful to pay for them.  Either way, another interesting statement about the local culture...

Paperless, updated...

Paperless, updated...  About six weeks ago, I posted about our adventure in switching to paperless records storage.  We've just gone over 100 documents filed this way, with about 250 pages total.  As I gain familiarity with the system, it just gets easier and easier to use.  I've started using folders in DevonThink to organize the information, but only in a very high-level way (for instance, all of our financial records are in a single folder).  I've started to routine scan manuals and instruction sheets (it's so easy!), not because they take up so much room, but because by being scanned they're so easy to search.  Very, very convenient.

So just in case you were wondering whether we still thought going paperless (as Helen W. asked by email yesterday) was a win ... the answer is “Hell, yes!”

A switching mystery, resolved...

A switching mystery, resolved...  Yesterday I replaced a few more electrical switches.  I've been chipping away at this project, working my way through the house replacing all the switches and outlets, and cleaning up the (all too numerous) wiring problems I've found in the process.

One of the switches I replaced is located near our front door.  It controls four outdoor floodlights, which we use every evening and morning to light up the yard when we walk the dogs.  We only know of that one switch for controlling those lights, so I was surprised to discover – when I removed the existing switch – that it was wired as a “three-way” switch.  The fact that it was wired as a three-way switch implies (rather strongly) that there is another switch somewhere that also controls these same lights.  That was a big surprise to us – we have no idea where that switch might be, and we don't know of a logical place for it to be located.  In this house, though, it could be located in some completely nonsensical place.  We joked that maybe it was in the basement, where there are several switches whose purpose we haven't yet deciphered.

That's not the mystery that the title of this post refers to, though, as we haven't yet resolved it.  The resolved mystery was a different one: I replaced the switch and then tested it.  I test these rewiring jobs every time, even when (as in this case) the rewiring is trivial.  It's pretty difficult to miswire a three-way switch, and there is no way to dangerously miswire one.  I was confident this one was wired correctly, as the “hot” wire was easy to identify visually.

So I was very surprised when it didn't work.

I took the new switch out, and connected the wires directly.  I saw a spark, but no lights came on.  I checked the circuit breakers; no breakers were tripped.  WTF?  There's so little that can go wrong with a circuit like this!  With the power verified (the spark and no breakers tripped), what's left to go wrong?  All four bulbs coincidentally burn out?  Just in case that was somehow the problem, I replaced one.  No joy.  I went round-and-round on this for about an hour, and finally just gave up.  I decided to reinstall the switch, button things back up, and troubleshoot it later.  I had other things to do.

A couple hours later, while moving some boxes around, I was thinking about the switch problem.   It was bugging me, because it was such a simple electrical wiring problem and yet it had me buffaloed.  Then I remembered something I'd observed that surprised me: the spark made when I connected the wires manually was quite small – smaller than I'd expect for a circuit with 600 watts of lights being switched.  Why would that be?  Then a few seconds later, I had it – I knew why the lights weren't working.

Did you figure it out?

I hypothesized that somewhere in that circuit there must be a photoelectric control that turned those outdoor floodlights on at night, and off in the day.  That control would draw a small amount of current even in the day, when the lights would be off – hence the small spark, and no lights.  At night the photoelectric control would allow the lights to come on.

So at dusk I walked Mo'i, and turned on the light switch.  The lights all came on.  All that time I spent troubleshooting the switch earlier in the day was for naught – it was wired correctly in the first place, and was working all along.  The lights simply aren't allowed to come on during daylight hours!

I still have no idea where that photoelectric control is located.  Nor do I know where the other switch is.  Yesterday I also replaced another “mystery switch” located near our front door.  This one is a simple on/off switch (not a three-way), located in our entranceway.   The circuit is live, and it draws current when turned on (about an amp, so around 100 watts).  We haven't detected anything that it's turning on and off.  My working theory is that the former owner installed a light bulb inside a wall somewhere, and that's what's being controlled :)

The humor of Ronald Reagan...

The humor of Ronald Reagan...  Reader Simi L. sends along this delightful compilation.

Just seeing his face made me feel better about my country.  Odd, how effective that is.  I'm proud to call him an American, and proud to have him represent our country to the world.  It's been a while since I've felt that way, dammit...

Too cool for school?

Too cool for school?  That's what friend and former colleague Aleck L. says about this collection of math-explaining graphics, like the one at right...

Pleasant, configurable background noise in your browser...

Pleasant, configurable background noise in your browser...  It's free, and it's pretty darned good: Noisli.  It's been running on my system for about a week now.  If I'm writing code, or writing prose, it's a better background sound than even instrumental music.

Right now I'm listening to a mix of forest sounds, a gently burbling stream, and a distant thunderstorm.  Lovely.  One of the options for background noise is the sounds of a busy cafe.  I can't imagine anything worse for me.  I'd be willing to bet you that there is a strong correlation between extroversion and the selection of that sound as a background :)

M106: strange and beautiful...

M106: strange and beautiful...  Via APOD, of course.  Hi-res version here.

Oh, the 2016 presidential election is going to be so much fun!

Oh, the 2016 presidential election is going to be so much fun!  Maureen Dowd, a faithful progressive columnist, published a column yesterday that – how should I put this? – isn't very nice to the presumptive progressive Democratic candidate (Hilary Clinton).  The conclusion is quote-worthy:
But, for now, what Republicans say about government is true of the Clintons: They really do believe that your money belongs to them.

Someday, they should give their tin cup to the Smithsonian. It’s one of the wonders of the world.
That's gonna leave a mark...

Peripatetic mindscapes...

Peripatetic mindscapes...  Long ago I observed that most of the engineers I worked with approached problems in a similar manner.  It's difficult to describe this similarity, especially in a non-technical way, but the general pattern is to approach an engineering problem with a large set of assumptions about how that problem might be attacked.  These assumptions might be about “best practices”, the “appropriate” tools, or many other things.  In all cases, though, the assumptions limit the creativity of the approach taken.

Another observation I made long ago is that there were exceptional engineers (I mean exceptional in both its senses: unusual and much better than average) who didn't seem to be encumbered by these assumptions.  I also noticed that many (though certainly not all) of these exceptional engineers were self-educated, as I am.  Could it be that the process of educating engineers somehow attaches this set of assumptions to them?  Well, today, of course, I'd say that was an obviously true conclusion, though when I was younger it wasn't nearly as obvious.

One characteristic of the workings of a mind unencumbered by a large set of engineering assumptions is a wide-ranging internal debate about what approach to take.  That internal debate is precisely what the aforementioned assumptions constrain – and it's why the absence of the assumptions results in a more productive creative process, as that enables the debate to include approaches that the assumptions would implicitly reject.

I just ran across an essay defining a term that describes this phenomenon: peripatetic mindscapes.  If you're interested in such things, it's a fascinating piece...

Sunday, February 15, 2015

A lazy day...

A lazy day...  We accomplished absolutely nothing yesterday.  We spent the entire day curled up together on our love seat, binge-watching episodes of Inspector Lewis.  Oh, and eating steak.  And chocolate.  And playing with our dogs.  And drinking too much wine.

A very nice day :)

Quote of the day...

Quote of the day...  From Bruce Schneier, in a post on Lawfare Blog:
There’s a principle here worth discussing at length. I’m not talking about the legal principle, as in what kind of court should oversee US intelligence collection. I’m not even talking about the constitutional principle, as in what are the US president’s inherent powers. I am talking about the philosophical principle: what sorts of secret unaccountable actions do we want individuals to be able to take on behalf of their country?

Put that way, I think the answer is obvious: as little as possible.
It's an excellent piece, and worth your time to read the whole thing...

Saturday, February 14, 2015

Well, this is an alternative, I suppose...

Well, this is an alternative, I suppose...  To:
   Rope.
   Tree.
   Congresscritters.
   Some assembly required.
Via my mom...

Olsynium douglasii...

Olsynium douglasii...  Via BPOD, of course...

Oh, we had a lovely afternoon...

Oh, we had a lovely afternoon...  Our friends and neighbors Tim and Jeannie D. surprised us yesterday morning – they called and asked if we'd like to go on an afternoon's drive with them, up to Bear Lake and the surrounding country.  We said “Hell, yes!” and at 1:30 they picked us up and we took off. 

Our route took us up Logan Canyon, then over Logan pass to Garden City along the west short of Bear Lake.  There we stopped for a late lunch at Cafe Sabor, where I had an excellent arroz con pollo, and Debbie had a sweet pork quesadilla with jalapeno jelly.  Tim and Jeannie looked at our food with great interest – they've been to the restaurant often, but have never tried dishes they're unfamiliar with.  I think they're going to be trying the ones we had next time :)

With our bellies full we set off counter-clockwise around Bear Lake.  The eastern shore is relatively undeveloped, with steep slopes and lots of sage and pinon-juniper scrub.  The views are spectacular from here, as I tried to capture in the photo at right.  Our route took us to the west along the skinny spit of land between Bear Lake and Mud Lake, and from there we headed north, toward Montpelier.  We turned west onto Idaho State 36, and headed up Strawberry Canyon, over the 7,400' pass, and then down into Preston, Idaho.  That whole trip, from Bear Lake to Preston, is full of beautiful scenery – farms, forests, streams, and ponds.  We saw lots of wildlife, most especially deer, turkeys, and Canadian geese.  Tim and Jeannie pointed out scenic side roads we could take in fine weather, all of them heading for spots they know and enjoy.  Tim told us these mountains are full of elk, good hunting for him and his children (hunters one and all, sons and daughters alike). 

Nearing dusk we were headed south on U.S. 91, toward home.  Even that drive was scenic because of the gorgeous sunset we were treated to.  On our right (west) we had the dramatically lit and colored clouds, along with some contrails.  On our left (east) we had the Wasatch Mountains, snow-capped and lit with the orange-red light of sunset.  When we finally pulled into our driveway, there was just barely enough light to see.

A just plain lovely day, we had – scenery, wildlife, good food, and even better company...

Friday, February 13, 2015

Wine run...

Wine run...  One of the few less-wonderful things about living in Northern Utah is the dearth of interesting places to buy wine (and, worse, the illegality of having wine shipped here – so we can't even buy it online).  There are state liquor stores that have a very conventional selection of wine, and that's it.  However, we live close to the border of the slightly more liberated state of Idaho, where there are actual wine shops.  So yesterday we made a run up to Pocatello, where we visited a couple of small-but-nice wine shops and stocked up.  Our little wine refrigerator is now full of a nice selection of interesting-looking wines.  Yay!

The scenery both ways (we went by US 91) was lovely.  We saw an eagle's nest, lots of geese, some swans, and eighteen bazillion magpies.  The dogs were all treated to a day in the car (they all love riding in the car), and all three of them fit cozily in the back seat of Debbie's truck (above right).  We also stopped at the MacKenzie River Pizza Company, where we had some delicious flat-bread (mine, at left, was chicken, apple, smoked bacon, and caramelized onions, drizzled with bourbon BBQ sauce – yum!

When we got home in the early evening, our front porch was covered in parcels from UPS.  One of them contained three lamp shades we'd ordered online to go with our new lamps (which haven't arrived yet).  The shades are made of handmade paper with leaf outlines in them, stitched with rawhide to an iron frame.  I don't normally think of lamp shades as something that you'd really even notice, but I was just stunned when I opened the box and saw them – they're the most attractive lamp shades I've ever seen.  When the lamps come in and I can light them up from the inside, I'll post a photo of them.

The giant middle finger...

The giant middle finger...  Megan McArdle, in a recent post about the irrelevance of Scott Walker's dropping out of college, said this:
The fact that we seem so fixated on events decades past is its own dire signal -- of the way that America's Mandarin class is starting to think about college education not merely as the basic credential required for many of the best-paying jobs, but also the basic credential required for being a worthy, capable person. This is not merely untrue, but also a giant middle finger raised to the majority of upstanding American citizens who also didn't graduate from college.
I'm one of those citizens, and I've experienced far too much dismissal simply because I didn't have that credential.  Thank you, Megan.

Heliotropium angiospermum...

Heliotropium angiospermum...  Via BPOD, of course...

Geek: regular expression insanity...

Geek: regular expression insanity...  Those readers who know me as a programmer know that I have an unnatural affinity for regular expressions.  I love the darned things!  I have happily spent several days carefully crafting a regular expression that can be written on a single line of text, to do something clever and challenging in the way of analyzing text.  But even I think this is over the line: a regular expression to test whether an integer is prime:
^1?$|^(11+?)\1+$
I don't know who to credit (?) for this monstrosity, but it's been floating around for quite a while. I first ran into it about 15 years ago. To test an integer for primality, you first convert the integer to a string of 1s (e.g., 5 becomes 11111, 7 becomes 1111111, etc.).  Then you see if the regular expression matches.  If it does, the number is not prime.  If the match fails, the number is prime.  I read a decent explanation of how it works this morning.

So why do I call this a monstrosity?  Well, it's a bit like a carpenter using repeated hammer blows to cut a piece off a 2x4, instead of using a saw.  It's the wrong tool.  The hammer is very useful – for driving nails or punishing regular expression abusers – but it's not good for cutting a piece of wood...

The third law of regulatory bureaucracies...

The third law of regulatory bureaucracies...  I wish I could claim credit for this, but I cannot.  I've long since forgotten where I first saw the “third law”.  It was first coined by an observant person, and was something like “Cochran’s third law of regulatory bureaucracies” (but with the correct person's name).  Here's the gist:
Any bureaucracy established to regulate an industry will become, instead, the protector of that industry and its incumbents.
Ever since I first read that, I keep coming across more and more examples of it – and zero exceptions.  It's like a natural law controlling how government screws up.  This morning I read above yet another example: the FDA, instituted to regulate safety and efficacy in the pharmaceuticals industry, has instead become a protector of the industry.

If the protection of the incumbents clause doesn't immediately make sense, here's what that means: these bureaucracies help the large existing (i.e., incumbent) companies they regulate by making it more difficult and expensive for new competitors to enter the business.  The incumbent companies most definitely understand this, leverage it, and encourage it.  We saw this recently with the support of “net neutrality” by large ISPs: they know that the regulatory morass engendered by the 332 page FCC proposal will ensnare new competition in a bureaucratic mess that they simply cannot afford to deal with – while to them, with their large and established business, see it as a small annoyance (even though it requires an army of accountants and lawyers).

So far as I can tell, the growth of bureaucracies are an absolutely inevitable result of the age of any given government – let enough decades go by, and the bureaucracies grow, like mold on old cheese, toenail fungus, or age-related infirmities.  The only cure validated by the historical record seems to be revolution and the formation of a new, bureaucracy-free (for a while!) government.  I've often wondered if the Internet enables a new way to disrupt bureaucracies, but I haven't thought of any realistic ways to do that.

Time for a tea party, I think...