Tuesday, October 27, 2015

Paradise ponders...

Paradise ponders...  Elray the well driller is now down to 190'.  The water we hoped to find at around 120' didn't materialize, dang it, so we've got to go deeper to the water layers that are sure to be there – but with much more iron in the water.  At 180' he struck a source of very “dirty” water, full of clay washings – no good at all for a well.  Then at 192' he struck a layer of sandstone so soft that the drill cut faster than in clay.  That layer was full of water – but also full of sand from the sandstone.  Elray knows from hard experience that a well tapping that sort of geology is unreliable.  So tomorrow he'll go even deeper.

Monday, October 26, 2015

Paradise ponders...

Paradise ponders...  Skip to the “Geek-free” label below to bypass the programming content.

Yesterday was a “mostly programming” day for me.  I'm building an index class (for use in sparse vectors and sparse matrices) that doesn't use objects for its members (as do all the standard Java collections).  Why?  Because the matrices (in particular) will have millions of numbers, and storing each in an object triples the amount of memory consumed.  It's also a significant performance hit – in my testing prior to deciding to implement this, numbers-in-objects were almost six times slower than numeric primitives.  Implementing the index in arrays of primitives is much faster, but it's also a lot harder than simply using the Java collections.  In all my years of Java programming, I've never run into a situation like this before – and apparently, not too many other people have, either, as I can't find production-quality (or even working!) open source implementations anywhere.

So down this rabbit hole I go :)  The task at the moment is the aforementioned index, which I'm implementing as a red/black tree entirely stored in arrays of longs.  Red/black trees are a classic solution for this problem.  I've long known about them, have read extensively about them (in particular, their O(log2(n)) performance for all the key operations), but I have never before actually implemented one.  Yesterday I finished the first hurdle of difficulty: insertion is up and running, with an implementation I'm happy with.  I also have completed a test harness for verifying the correctness of the tree.  Next step (and last challenging bit!): tree node deletion.

Geek-free:

 As I retrieved my tea cup from the dishwasher this morning, I marveled once again at the unobvious trick that cured our spotted dishes ills.  I keep meaning to write about this, but haven't remembered until this morning.  After Debbie joined me in Paradise, in December of last year, we noticed something annoying: our dishes would come out of the dishwasher with whitish spots all over them.  It was especially noticeable on anything made of metal or glass, but they were actually on all the dishes – if you ran your finger over a porcelain plate, you could feel them there as well.  I tried everything I could think of to troubleshoot the problem, including partially disassembling the dishwasher to check for some kind of blockage.  We assumed that the problem was related to rinsing somehow, because the spots came right off if we rinsed the (washed!) dishes under the faucet and hand-dried them.  Nothing I tried worked.

In sheer desperation, I resorted to Google – which, in hindsight, should have been my first action (like it is with software engineering these days).  In mere seconds, after reading several articles, a pattern emerged: people with soft water are usually putting too much soap in their dishwashers.  We have very soft water, the result of my installing a first-class water softener last year.  Were we putting too much soap in?  Probably, because we were using the same amount we did back in Jamul, where we had extremely hard water.  So we reduced our soap by a factor of about four, and ... the dishes came out spotless and sparkling.  It really was that simple.  The cup for the soap on the dishwasher was sized to handle the needs of people with soft water, so when you “fill” it properly for hard water, it looks like you're putting way too little in.  That happened several months ago, and it still boggles my mind every time I pull the perfect, squeaky-clean, sparkling dishes out of the dish washer...

Today is the last day of our inspection period on the log cabin we're buying.  We still have a couple of things left to do, so I'm expecting to be out part of the day.  Elray (the well driller) will be back today, and he will be drilling past the 120' mark by mid-day – which means today could be the day he hits water.  If he does, that's especially good news for us, as the water at that depth has considerably less iron in it than does the water from deeper layers.  On Friday I mentioned to Elray that I had never learned to weld.  His response: he's going to bring some junk metal and a spare “hood” for me, and he's going to give me some free lessons.  He uses a gas welding rig (oxygen and propane), which I have watched in use but never tried myself.  Should be interesting!  I'm certain Elray will be highly entertained :)

Sunday, October 25, 2015

“…a house of pudding cannot stand.”

“…a house of pudding cannot stand.”   That's from the conclusion of Fred Reed's ponder about the wimpiness of today's America:
This ménage of middle-school delicates is not the country that fought World War II, or Vietnam. It is a jellyfish threatening to collapse under any serious stress. Corrupt, seriously divided racially, the middle-class sinking, ruled by fools and kleptocrats, a house of pudding cannot stand. Scared, fat, weak, fragile, narcissistic, herd-minded, prissy, censorious and, increasingly, ignorant. Deliberately ignorant. This is wonderful stuff.

It warms a curmudgeon’s heart.
Read the whole thing.

What Fred describes is precisely what I saw in the past 20 years or so of working in the city.  My profession (software engineering) depends on a lot of teamwork – but some of my colleagues took that to an extreme that I found downright scary.  Their embracing of interdependence and aversion to independent operation was startling to me – and not just in their professional life, either.  Their personal lives were full of the same thing.  I worked with dozens of people – mostly men, mind you – who wouldn't be able to even identify the tools in my toolbox, much less actually use them.

How did America get like this?  What happened to the ruggedly independent and self-reliant American who was once the symbol of the country?

Well, not all of America matches Fred Reed's description, thank goodness.  We saw a much more traditional sort of American when we lived in Jamul, just 35 miles from the city.  There we saw many examples of people whom Fred would recognize as those rugged independents.  Now that we've moved to Utah, that is the norm, no longer the exception.  This is a part of the country where there are no safe houses, where people still hunt for meat, where everybody has a toolbox and knows how to use it.

I suspect Fred would like it here :)

Saturday, October 24, 2015

Republican 2016 presidential primary...

Republican 2016 presidential primary...  The current data (derived from Betfair wagering).  While the U.S. polls show Trump and Carson at the top, by far ... the people putting their money down on the race are favoring Rubio by a wide margin.  What do they (think they) know that the pollsters aren't picking up?

If you're not familiar with using betting data in a situation like this, here's the one thing that's important to know: since about the mid-'90s, the betting data has been far more reliable in predicting the outcome of elections than polls have been – and that difference is increasing over time.  Either bettors are getting better information, pollsters are getting worse (or are more overtly biased), or both.  I'm guessing both...


Online encyclopedia of integer sequences...

Online encyclopedia of integer sequences...  I've posted about this fascinating resource before, but today I ran across a nice story about Neil Sloane, the mathematician who created it...

I don't get too excited...

I don't get too excited ... when I read about foreign countries spying on us.  One reason why: we do it too.  Another reason: we do almost nothing to stop it.  If we don't like the spying, then instead of being all offended and self-righteous when friend or foe spies on us, we should instead concentrate on defending ourselves.  The current plague of Chinese industrial spying, for example, should be seen as a failure of our defenses against spying (in effect, inviting the spies!) – not as some nefarious Chinese plot.

The current situation is as if we tore the front door off our house, put giant billboards advertising that fact on the freeway, then act surprised and hurt when thieves rush in to steal all our stuff.  I know from personal experience at the last several software companies I worked for that stealing all their source code would only have been moderately difficult for a complete outsider with no internal connections – and completely trivial for anyone with any insider assistance at all.  Anyone with even the slightest interest in the technology I worked on could have had it all (and quite possibly did!) very easily...

Pluto is weird!

Pluto is weird!  The photo at right is one of the latest downlinked from New Horizons from its Pluto encounter earlier this year.  Those sure look like “canyons” formed by some kind of flowing liquid!  Pluto is just chock full of surprises, making the scientists on the project very happy. 
Also in today's Pluto-related news: a first photo (at left) of Kerberos (one of its moons), which isn't anything at all like what astronomers expected.

Researchers really hit the jackpot with the New Horizons probe...

Friday, October 23, 2015

Paradise ponders...

Paradise ponders...  Earlier this week, Michelle H. (the wonderful woman who cleans our house for us, but who is fast becoming a good friend) invited Debbie to a “salsa social” put on by Paradise Ward 2's Relief Society.  Paradise Ward 2 is the area (including our home) of one congregation of the Paradise LDS (Mormon) church.  This particular Relief Society is the same group of women who insisted on feeding us earlier this year, shortly after Debbie was injured.

Last night was the evening of the salsa social, and Michelle picked Debbie up at 6:30 and took her there and back.  It was held at the home of Pam and Paul N.; Paul was the preceding bishop of the ward, just after Tim D. (our neighbor to the north), less than a mile from our house.  Debbie came back all smiley and happy – she had a wonderful time meeting a bunch (20 or 25) of the local women.  She reports that they were all very friendly, eager to get to know her (it's not every day there's a new face in town!).  As she told them, it was really nice for her to hear women's conversation, instead of just that with the slug she married :)

We love living here!

I went out this morning to check in with Elray (the well driller) to see what his progress is.  He's got the hole bored down to 90', has 45' of 10" casing down (this will later form the basis for the 40' of "seal" required around every new well), and about to start putting the first 90' of casing down the hole.  In the first two photos below, you can see the "sticks" he's just finished pulling out of the hole.  The 10" diameter drill bit (the working end of which is in the last photo) is still in the hole at that point, but held up at the very top.  You can also see the "mud" (hydrated clay) that has been drilled, puddled in the foreground.  There's quite a pile of mud there, and when I commented on that Elray told me that when the mud is loosened and hydrated, it expands – sometimes considerably, by a factor of several times the volume.  Who knew that dirt swelled up?  The third photo shows the end of a pile of seven 20' lengths of 6" diameter casing.  Elray will be welding these into a single pipe as he inserts the casing down the hole.  It's fascinating to watch him work on this, especially when he has to move heavy things around – that rig and his skill makes it look really easy.  I watched him extract the 10" drill bit this morning.  It's a piece of steel about 7' long overall, weighing well over 200 lbs.  Elray lifted it out with a hoist, then swung it around like a giant pendulum until the working end was swinging over the spot where he wanted to lay it on the ground, then at precisely the right moment he dropped the lift down and placed it within inches of where he told me he would.  He never had to work hard for that whole job...


Thursday, October 22, 2015

More photos downlinked from New Horizons...

More photos downlinked from New Horizons...  The one at right is of Charon.  I'm still boggled that we're seeing these sorts of images...

Wednesday, October 21, 2015

This is pretty funny...

This is pretty funny...  It's also the reason why I use a password manager (1Password, in my case)...

Cyr wheel...

Cyr wheel...  That's apparently what this is called.  The performer is Jeremy Buck.  Reader Simi L. sent this along, with this note:
Pretty spectacular! Note in particular how he never runs over his fingers.

Japanese maple...

Japanese maple ... at the Portland (Oregon) Japanese Garden.  I've visited that garden and the very famous tree, though not (unfortunately!) while it was in fall color.  It truly is a gorgeous specimen...

That's one very impressive machine!

That's one very impressive machine!  See the ant-like men working around its bottom to get a good idea of the scale of the thing.  It's erecting segments of a new viaduct in China.  One thing I'm left wondering: how on earth did they get that machine to the job site?  Did they build it on site?

“The fundamental producer of income inequality is freedom.”

“The fundamental producer of income inequality is freedom.”  Now there's a ponder-worthy quote, and it's my quote of the day.  The writer was George Will, in a shouldn't-be-missed column at NRO.  In the occasional conversation I've had with friends about income inequality, I've always defended it as a good thing, and a reflection of capitalism at work – but Mr. Will has reduced that idea to its most pithy, powerful form in that one short sentence...

Paradise ponders...

Paradise ponders...  We took our walk yesterday at noon, under a partly cloudy sky.  The ground was still damp and slightly muddy from the rains, so we kept to the roads and avoided tromping over the sodden fields.  The dogs were disappointed by this, as that meant less voles to sniff out.  Still, the high humidity brought exciting aromas to their noses, and both of them were noses down the whole time we were walking.  We saw a few hawks circling high, but none perched around the fields.  They must have reduced the vole population to the point where they have to work harder to find one.  It was only 50°F during our walk; light jacket weather even though we were working hard.  Some photos:


Debbie had physical therapy in the morning, and I worked indoors where I could stay warm.  Elray had to stay home in the morning to wait for two truckloads of casing pipe to arrive (some of which is for us!); he didn't get here until too late in the afternoon to start drilling.  The next step for him is to expand the hole he's got now from 6" to 10" in diameter.  That's so he can put a temporary 10" casing down the first 40' or so of the well.  That will provide enough room for him to put the water connection in, 6' or so underground (to prevent it from freezing).  When he's all done with the well, he'll pull that 10" casing out.  A reader wrote yesterday to ask what the drill bit actually looks like.  That's what the photo at right is: the 6" rotary drill that he used to drill the hole we've got so far.  Those knobby “cones” rotate against the bottom as the drill shaft is turned.  Because the shaft itself is heavy, plus there's a big weight on top of it (several tons), those pointy knobs are grinding into the bottom of the well, breaking loose bits of soil and rock as they go.  Between the top two cones you can see a small hole; that's one of three air ports that blast out a huge amount of compressed air to blow the debris back up the hole.  There's also a bit of water injected in there, about 500 gallons per day, mainly to keep it from creating too much dust.  The water also acts as a lubricant, but that doesn't matter too much unless you're drilling through rock.  Elray tells me that those rotary drills were invented by Howard Hughes – not that Howard Hughes, but his father.  That's how he made his original fortune.

Debbie and I had lunch at Elements, a restaurant on the southern end of Logan that gets high rankings in the snooty restaurant magazines and web sites.  We'd only been to it once before; we liked it but were not all that impressed by it.  Yesterday we decided to give it another try, and we're very glad we did – both of us had really nice meals.  Debbie had an outstanding spinach salad and a barbecue chicken pizza (she's a big fan of these; me, not so much) that she pronounced wonderful.  I had a tomato bisque (good, not great; a little sweet for my taste), and a very different sort of fish and chips.  That's what they called it on the menu, but it really was Alaskan cod cooked tempura-style, and mashed sweet potato baked with a cinnamony, slightly sweet crust on top.  The cod was melt-in-your-mouth good, better than any I've had in many years.  The tempura was perfectly done; a very light coating of batter and very little oil.   And the sweet potato just might have been the best sweet potato dish I've ever had.  Debbie, somehow, had enough room for dessert: key lime pie.  I didn't even taste it, but she reports it was mouth-puckeringly tart, just the way she likes it, and reeking of lime.  I almost left out the part of the meal that surprised us the most: flavored lemonades.  When you order one, you get one free refill.  We both started with raspberry, and at the first sip our brains just about fell out on the table.  Wonderful stuff!  Tart as hell with the lemon, but with a lot of raspberry puree swizzled in.  Naturally we both took our refills.  Debbie tried the strawberry, and was equally delighted with it.  I tried the mango, and it was just as wonderful as the raspberry.  We'll be going back there...

The photo above has nothing to do with the restaurant :)  It's the view to the southwest of our driveway entrance, as the sun was about to disappear behind the Wellsville Mountains...

Tuesday, October 20, 2015

Paradise ponders...

Paradise ponders...  It rained intermittently yesterday, so the boys (Miki and Race) and I missed our walk.  This morning it's a little nasty out (humid and cold), so we're going to wait until later this morning, or maybe even early this afternoon.

Debbie and I took a ride in the Hardware Ranch area late yesterday afternoon.  We had some great viewing of several kingfishers under the shadow-less light of a cloudy day.  It's interesting what the lighting does to your view.  Through the binoculars the colors were dull and flat by comparison to bright sunlight, but we could see the details of the birds much better in the lower contrast.  We also caught a fleeting glimpse of a dipper, and Debbie spotted just one deer as it hightailed it over a hill.  Hunting season is open, and the deer are smart enough to stay out of sight when the hills are swarming with orange-jacketed hunters.

Elray (the well driller) showed up in the afternoon to start our well, and I went out to observe and chat a bit.  Elray is quite a character – a lifetime resident of the general area, as were his parents.  His dad was also a well driller.  Elray told me about a fun project he's got going – to restore his dad's first well drilling rig to working condition.  It's made mostly of wood, which has deteriorated over the years, so he's got a bunch wood working to do.  That's all new to him, as everything he does involves steel.  That old rig also works completely differently than today's rigs.  It didn't use a rotary drill bit; instead, it used a round “bit” that got pounded into the ground with a heavy weight that was repeatedly dropped on the top of the pipe.  This is essentially the same idea as a modern pile driver, but with the weight lifted via a cable instead of a diesel piston.

The first photo below shows the rig while drilling.  Note the American flag flying at the top.  What you're seeing there is the drill shaft turning (which turns the bit far underground against the hole's bottom), and compressed air (at up to 900 cfm!) blowing the debris right up the hole and out of the top, in the form of gray mud mixed with gravel that you can see at the bottom of the rig.  The mud is gray because he's drilling through a layer of clay that underlies the entire valley.  The second photo is the same, except with a closer view of the operator's panel and the top of the hole.  The third photo shows Elray using the hoist mechanism to add another 40' length of drill shaft.  He's doing this because the first 40' piece is now almost entirely underground, so he has to add another segment to go deeper.  The last photo shows a later stage of that same operation.


I was fascinated by Elray and his rig.  Watching him work through an entire cycle of drilling and adding a “stick” to the drill shaft, I could see just how cleverly this entire system worked together with a skilled operator.  The end result is that a single man, nearly 70 years old, can drill a well up to 1,200' feet deep.  The rig is full of things that surely were developed after years of in-the-field experience and innovation.  To pick on just one example: the system that allows “sticks” to be screwed and unscrewed from one another without requiring the precise alignment of (say) pipe threads.  That system is simple, relying mainly on tapered threads (sort of like an “easy-out”, if you're familiar with them), but incredibly robust and easy for the field workers to use.  Another: the center-of-gravity hoist mechanism (which you can see in the last two photos) makes it easy to maneuver the 400 lb. “stick” into the proper position.  There are probably two or three hundred such bits of cleverness in this rig's design.

When I mentioned to Elray how impressed I was with the rig's engineering, he launched into an apologia of sorts.  I had to stop him to ask why he was doing this – and it emerged that the rig I was so impressed with is, by today's standards, obsolete.  It's as if someone started praising the cleverness of vacuum tubes to someone like me.  The modern rigs, Elray tells me, make this one look sort of silly.  They're full of computers that monitor the entire operation and automate much of it.  But those modern rigs are extremely expensive (as in well over a million dollars), and with his small business he can't justify that sort of expense unless he raised his fees beyond what the local market would bear.  He actually had a relatively sophisticated analysis of the business case, though expressed in the language of a country boy.  So he's making do with his two old, obsolete rigs.  The cost of maintaining them in working order is a small fraction of the cost of a modern rig's financing, and that allows him to keep his fees low.  About the only regret he seems to have is missing the increased safety of the modern rigs.

Monday, October 19, 2015

Free topo maps...

Free topo maps ... of just about anywhere in the U.S.  This is another example of how modern technology has completely upended the old way of doing things.  When I was a kid, if you wanted a topo map you either visited a musty old map store and hoped they had the one you wanted (out of the many thousands that were available), or you wrote away to a mail order firm and waited weeks or even months for your map to arrive.  They weren't cheap, either.  When you finally got your mitts on that map, it was a large piece of quality paper that had to be folded or rolled for transport.  They were particularly awkward if you were hiking, and highly vulnerable to spoiling by getting wet or dirty.  Usually we put them in a watertight plastic bag with the map folded so we could see the area around us without removing the map. 

Fast forward to today.  I haven't used a paper topo map for quite a few years now.  My device of choice for map work is my iPad, but my iPhone works quite well, too.  When I'm home I use my computer with its magnificent 27" screen.  I can pan and zoom with the flick of a finger.  And the maps got cheaper and cheaper, then free on certain web sites, and now – free to everyone through the USGS Store where you can download a PDF of any topo map for free.

It's an amazing world we live in...

Powerful testimony...

Powerful testimony ... at the House Judiciary Committee hearings on Planned Parenthood (aka Baby Parts, Inc.).

Like her, I am ashamed that my country condones and encourages the killing of babies...

Reason interviews Scott Adams...

Reason interviews Scott Adams...  I'll bet it would be a lot of fun to sit down for an evening of conversation with Scott..

Sunday, October 18, 2015

The cranky old lady...

The cranky old lady...  Via my pistol-packing, Macified mom:
A very cranky old woman was arrested for shoplifting at a grocery store. She gave everyone a hard time, from the store manager to the security guard to the arresting officer who took her away. She complained and criticized everything and everyone throughout the process.

When she appeared before the judge, the judge asked her what she had stolen from the store. The lady defiantly replied, "Just a stupid can of peaches."The judge then asked why she had done it.

She replied, "I was hungry and forgot to bring any cash to the store.” The judge asked how many peaches were in the can.
She replied in a nasty tone, "Nine! But why do you care about that?”

The judge answered patiently, "Well, ma'am, because I'm going to give you nine days in jail -- one day for each peach.”

As the judge was about to drop his gavel, the lady's long-suffering husband raised his hand slowly and asked if he might speak. The judge said, "Yes sir, what do you have to add?”

The husband said meekly, "Your Honor, she also stole a can of peas.
Ha!