Friday, October 10, 2014

Color laser printing...

Color laser printing...  Below are two views of a laser-printed photo of Miki (our youngest field spaniel).  The photo was taken when he was a tiny puppy.  I'm using this photo on our address labels, which I printed on an HP CP4025 color laser printer.  At left is a view at 5x magnification, and even at this low magnification you can easily see the pixelization in the rendering.  You can also see the precision (1200 DPI) with which the printer renders text.  At right is a view at 60x (it's of Miki's right eye in the photo), and now you can see how each color is produced from the printer's three primary colors...


Early morning in Paradise...

Early morning in Paradise...  This was taken from our place, looking east to our neighbor's place across the road...

Barn: last of the roof, and stairway...

Barn: last of the roof, and stairway...  Yesterday the last section of the roof was sheathed, and the stairway to the second floor finished.  This morning the roofers showed up, and they're going to put the underlayment on the barn today.  This will waterproof it until the steel roof goes on.  Then on Monday they're going to start ripping the old roof off our house, in preparation for its new steel roof.

The roofer and I calculated today that the barn would have about 5 tons of steel roof on it when finished, and the house about 2 tons.  Seven tons of steel between us and the elements.  I'm ok with that :)

The builders are going to “house-wrap” the barn today with a Tyvek wrapper.  This will weatherproof the entire barn until they get the siding on.  They're hoping to get a framing inspection done today, while they're installing windows and doors...


Lunar eclipse as seen from Mercury...

Lunar eclipse as seen from Mercury...  The MESSENGER robotic explorer orbiting the inner planet Mercury aimed it's cameras at the Earth/moon system during the recent lunar eclipse.  It took several sequential still photos, which NASA turned into this short video.  The Earth is in the center, and the moon to the right.  Awesome!

Annie loves me...

Annie loves me...  This is our neighbor's dog, a mixed-breed girl who delights in chasing birds (without any success) and voles (at which she is a consummate expert).  Her family doesn't give her any treats, so when I first offered her a Milk-Bone, she was hesitant.  Those days are long gone :)  Now when I call her, even if she's hundreds of yards away, she comes running for her treat.  Yesterday, just before I took these photos, she was running around me in big circles, maybe 50' in radius, at full speed, just chock full of energy and Milk-Bone induced happiness.  She's become my substitute canine companion until our mutts finally get their mutt-butts up here...

Busted 'em in the Cheops...

Busted 'em in the Cheops...  The Rosetta robotic comet explorer is now in an orbit just 6 miles (10 km) from the surface of Comet 67P.  The photo at right shows a “boulder” the team has dubbed “Cheops” sitting on an otherwise quite smooth surface.  They don't know (yet) what the artifact is actually made of – it's more likely frozen gasses of some kind (methane, for instance) though it could actually be rock.  Rosetta's spectrograph and other instruments will figure this out over time...

AGW skepticism goes mainstream...

AGW skepticism goes mainstream...  In today's Wall Street Journal, Dr. Judith Curry has an op-ed piece that lays out the scientific case for AGW skepticism.  Dr. Curry has long been one of the leading skeptical voices amongst climate scientists, with a consistently strong, sober, fact-based analysis of observed data.  She's also been the target of an outrageous sliming campaign, marked by non-stop ad hominem attacks, by the Mannian warmist camp of climate scientists (and, following them, the lamestream media).  Her treatment at the hands of her fellow scientists serves as an example of anti-science: what happens when money and politics drive the results, instead of knowledge and data.

It's a fine thing to see her name on a piece in a publication like the Wall Street Journal...

Thursday, October 9, 2014

Lamb's Ear (Stachys byzantina)...

Lamb's Ear (Stachys byzantina)...  This is the leaf from a Lamb's Ear growing in our front yard, at various magnifications.  The last two are with oblique lighting from an LED flashlight.  The “fuzzy” texture of these plants' leaves comes from the tiny hairs visible in these photos.  They're an adaptation for arid climates...


Purple penguins...

Purple penguins...  Denying reality in the name of political correctness.  Sheesh!

Digital Estonians...

Digital Estonians...  This little country just keeps doing things right.  It's over ten years since I last visited there; I miss it...

Fixing a de Forest valve by incorporating an Edison idea...

Fixing a de Forest valve by incorporating an Edison idea...  Well, this is just about the equivalent, in the software world: a 37 year old bug (!) fixed by merging a 22 year old fix (!!), in BSD.

This isn't the first time such a thing has happened, but the opportunities for repairing ancient software are increasing – simply because the number of substantial bodies of old code that are still in use is rapidly increasing.  Given the ever-increasing amount of code being written, surely this phenomenon will do nothing but increase in the future.  Until software replaces software engineers, anyway :)

A small version of this has happened to me personally several times.  Way back in the late '70s, I wrote (yes, by myself, really) a Basic interpreter that was distributed by Don Tarbell as “Tarbell Basic” (news reports here and here, manual, source, backstory).  Back in the '80s, Don released the source code for it into the public domain, and it's still available online.  It was written for a long-obsolete “operating system” called CP/M that hasn't been delivered on any computer made since the early '80s.  But ... there is still a diehard group of CP/M nuts who run it in an emulator on modern PCs (and I'm told there's even an emulator for the Android phones!).  These people also run Tarbell Basic, and they occasionally ask me to fix bugs in it.  This happened most recently just last week  :)  I wrote that code nearly 40 years ago, and I don't remember anything at all about it!  However, last week after being begged to at least look at the possible cause of a math error, I did go look at the source code – and I found the bug by inspection :)  It was a stupid typo in an assembly language instruction, in a routine that printed a floating point number.  My correspondent had a development environment running; he tested my fix and it worked.  Now I just hope I haven't opened Pandora's box.  I have to admit, though, that it was kind of fun to take a crack at that...

Back in the '90s I was introduced to a woman (Darleen C.) who was making a lot of money by fixing and extending old code.  A friend introduced us, thinking that two people who were amongst the few people left who could program in CMS-2 (which I used in the Navy) should know each other.  At that point it had been 20 years since I last touched any CMS-2 code, and I assumed that all the systems programmed with it had been replaced.  Not so :)  She was making an excellent living maintaining a few dozen systems that remained in service, with their code all written in CMS-2.  She lived on a rather luxurious small sailboat, which she moored in San Diego for the 3 or 4 months a year that she worked.  In that short period, she generally made about $350k in consulting fees.  The rest of the time she sailed around the world.  She'd written her own CMS-2 development environment that ran on PCs, and could therefore do her work from anywhere.  I suspect there are rather more opportunities like this today than there were back then, and that will probably also increase.  For example, I remember reading, not long ago, that PL/I programmers were making crazy high salaries because of their scarcity...

The stupid, it burns!

The stupid, it burns!  I hear the drums of doom...

Wednesday, October 8, 2014

Where's the bad driver when you need them?

Where's the bad driver when you need them?  Via my CCPOAAGGM mom...


“This isn’t food! It’s violence!”

“This isn’t food!  It’s violence!”   Words fail me...

Rose hips and a weed...

Rose hips and a weed...  At left below is a 10x view of a rose hip, stripped from a bush right outside my kitchen door.  The other three are views of the fantastically intricate seed structure of a weed blossom, at various magnifications.  As always, click to embiggen.  The most magnified view includes a tiny little bug that I only spotted (even at 60x!) because it was moving.  Can you see it?


“Pennies from heaven...”

“Pennies from heaven...”  John Oliver on civil forfeiture.  It's an unlikely blend of comedy and injustice, very well done.

If police and prosecutorial abuse of civil forfeiture laws didn't already have you furious, watching this video should change this... 

Lunar eclipse...

Lunar eclipse...  It's still in totality as I write.  I went outside to watch it at around 4:30 am our time; max totality was at 4:55.  The sky was clear and the stars bright, and the dim orange moon at totality was one of the best viewings of a lunar eclipse I've ever had.  It was high enough in the sky to completely escape all the haze effects near the horizon.  While I was out there with binoculars, I also looked at the nebulae in Orion and the Pleiades cluster.  Beautiful viewing this morning!

Tuesday, October 7, 2014

The view from Paradise...

The view from Paradise...  Just a couple of photos to give you a flavor for what this season is like here.  The photo at right is looking east from the second floor of our barn.  You can make out the red of maples in fall color on the sides of the mountains.  In places there are also stands of quaking aspen that are like splotches of bright yellow paint.  The line of yellowing trees in the foreground are along an irrigation canal.  There's a mixture of planted and naturally occurring plants there, but the canal sides are dominated by box elder and rose bushes (both naturally occurring).

The land to the left of the white fence belongs to my neighbor Tim D.  He ran oats there last year, but killed them a few weeks ago (which is why it's all brown) and is planning to plow it and plant alfalfa next year.  The small white building in the right foreground is ours, but we're going to have it taken down in a couple of weeks.  We found someone who would like to turn it into a boat house, and he's going to do all the removal work for us in exchange for the carcass.  We're going to replace it with a roof on posts, under which we'll have a diesel backup generator and a couple of fuel tanks.  Peeking through the trees at right you can see the roof of my neighbor's barn.  I was here for a couple of weeks before I realized it was a barn – the building is so fancy that I mistook it for an especially nice home!  Two gorgeous black horses live there, so I guess you could say it's a home after all :)

At left is the arbor in our garden.  The green leaves are a grape vine; the red leaves are the fall color of a vine I haven't identified yet.  It appears to grow at about three times the rate of the grape, so unless I do something about it, I think it's going to win the war for photons...

Barn: the roof, it appears!

Barn: the roof, it appears!  The builders got an awful lot done today.  First they put the sheathing on the two side roofs, and then the put up all the trusses for the center roof.  Along the way they found time to start building the stairs, and to put in dozens of bracing blocks.

With the side roofs in place, walking through the first floor of the barn is an entirely different experience now, as you feel like you're in a building.  The two roofs and the floor of the second story completely block the sky.  The plywood ceiling panels aren't in yet; when they are, that will amplify this feeling a bit more.  The second floor looks huge to my eye: a single 2,200 square foot room with an 8' ceiling.  I've no idea what we're going to put up there, but I can't imagine we're ever going to run out of storage space again...


The bugs of fall...

The bugs of fall...  Before we even moved into our new home in Utah, our realtor warned us about box elder bugs.  Every fall they leave the female box elder trees (actually a kind of maple, Acer negundo) and gather in warm places – especially the south-facing sides of light-colored buildings.  Our home is painted white, and one of long walls faces due south.  The box elder bugs say “Cowabunga!” and descend upon us with great enthusiasm.  That's a bunch of them on the window at right.

They're harmless bugs.  Close up, they look a lot like the fireflies we had in New Jersey where I grew up.  They don't bite or sting, and they only smell if you disturb them, whereupon they produce copious amounts of a really stinky fluid.  The Internet is full of articles about alleged ways to get rid of them, but my neighbors tell me that all of them are hokum, and nothing really works except getting rid of box elder trees or painting your house with some color they won't like.  You can wash them off a building with a hose, but they'll be right back when it dries off.  They don't learn; you can wash them off over and over again, and they still come back (I tried :)

Our realtor told us a scary story about these bugs.  One of his neighbors decided to spray the side of his house with insecticide a few years ago, as the bugs were making his wife crazy.  The box elder bugs are quite tolerant to most insecticides, so he had to spray them with a lot of expensive, exotic insecticide – which worked, but left him with piles of dead box elder bugs along the side of his house.  So he raked up all the bug bodies, put them in a big pile, and set them on fire.  Next thing you know, box elder bug embers were flying in the evening breeze, and some of them landed on his barn.  They set his barn on fire, and it burned to the ground before anyone could get there to put it out.

Oh, my.  We won't be burning piles of box elder bugs around here!  No, siree...

(False?) Crocus, up close and personal...

(False?) Crocus, up close and personal...  The left-hand photo below shows a close-up of the flower's petal, complete with bugs so small I couldn't see them with my naked eye.  The entire flower was heavily populated with a variety of tiny bugs, all of similar size.  As I carried the flower inside, I had no idea it was a insect urban area!  The other two photos show views of the stamens.  The right-hand photo was taken at 60x magnification, and you can just make out the tiny yellow pollen grains...


“This has been a mind-changing experience for me...”

“This has been a mind-changing experience for me...”  Easy prediction: Debbie will love this video :)  Via friend, reader, and former colleague Simon M...

Invisible ink...

Invisible ink...  A history...

Don't mess with old ladies!

Don't mess with old ladies!  Via my mom:
A mature lady gets pulls over for speeding...

Older Woman: Is there a problem, Officer?

Traffic Cop: Yes ma'am, I'm afraid you were speeding.

Older Woman: Oh, I see.

Traffic Cop: Can I see your license please?

Older Woman: Well, I would give it to you but I don't have one.

Traffic Cop: Don't have one?

Older Woman: No. I lost it 4 years ago for drunk driving.

Traffic Cop: I see...Can I see your vehicle registration papers please.

Older Woman: I can't do that.

Traffic Cop: Why not?

Older Woman: I stole this car.

Traffic Cop: Stole it?

Older Woman: Yes, and I killed and hacked up the owner.

Traffic Cop: You what!?

Older Woman: His body parts are in plastic bags in the trunk if you want to see.

The traffic cop looks at the woman and slowly backs away to his car while calling for back up. Within minutes 5 police cars circle the car. A senior officer slowly approaches the car, clasping his half drawn gun.

Officer 2: Ma'am, could you step out of your vehicle please! The woman steps out of her vehicle.

Older woman: Is there a problem sir?

Officer 2: My colleague here tells me that you have stolen this car and murdered the owner.

Older Woman: Murdered the owner? Are you serious?!

Officer 2: Yes, could you please open the trunk of your car, please. The woman opens the trunk, revealing nothing but an empty trunk.

Officer 2: Is this your car, ma'am?

Older Woman: Yes, here are the registration papers. The traffic cop is quite stunned.

Officer 2: My colleague claims that you do not have a driving license. The woman digs into her handbag and pulls out a clutch purse and hands it to the officer. The officer examines the license quizzically.

Officer 2: Thank you ma'am, but I am puzzled, as I was told by my officer here that you didn't have a license, that you stole this car, and that you murdered and hacked up the owner!

Older Woman: Bet the lying bastard told you I was speeding, too!

When your pet discovers it's going to the vet...

When your pet discovers it's going to the vet...  My mom sent me a collection of these; the one at right is my favorite.  That expression is exactly what Miki (one of our field spaniels) has when we park outside the vet's office...

Photosynthesis 2.0?

Photosynthesis 2.0?  Scientists appear to be on the verge of figuring out a way to boost crop plants' photosynthetic efficiency by 25% or more.  Should they?  It's a tough call, with good arguments both pro and con...

Traveler captures train/truck collision...

Traveler captures train/truck collision...  You'll want to watch this full-screen.

Nobody was hurt, which is amazing, as I'm sure you'll agree after you watch this.  The “smoke” the narrating woman refers to is actually evaporating liquid argon – harmless unless it displaced all the oxygen where you were breathing, which is very unlikely outdoors...

Edgar Allan Poe's mysterious death...

Edgar Allan Poe's mysterious death...  I hadn't realized it was quite this mysterious!

Doubts about object-oriented programming (OOP)...

Doubts about object-oriented programming (OOP)...  I read a long article by Lawrence Krubner this morning.  I have no idea who Lawrence is, but I found his article quite fascinating, and some of his points resonated strongly with me.

My perspective on OOP is a little different than Lawrence's, and in fact probably a little different than the vast majority of today's programmers.  This difference in perspective comes about mainly from my age (I'm 62) and the fact that I never had any formal education in computer science or programming – I'm entirely self-taught.

The age matters because I started programming (in '73) before OOP was adopted by the programming community.  In fact, its predecessor (“structured programming”) was just then being introduced.  The most common form of program architecture then was what we'd call “spaghetti code” today – horrifying, hard to understand, and even harder to maintain.  Furthermore, I learned to program in assembly languages, which (back then, at least) contained absolutely no support for even structured programming, much less OOP.  So I've experienced three “normal” regimes in my career: spaghetti code, structured programming, and OOP.  I've written code in well over 100 programming languages, and production code in at least 50.  I've also played around with functional programming, though much less extensively.  I've written quite a bit in Forth (a language that's hard to categorize) and one large project in Prolog (which also doesn't fit easily into a category).

The lack of education matters because I have very little exposure to the theory of programming languages, or architectures for that matter.  What little I have learned is entirely from real world experience (maintaining existing software and creating new software), and not at all from anyone's idea of what the “right” way to do something is.  I've read quite a few books about the theory of programming, but always after the fact, in an effort to understand something new that I've run across.  In many, many conversations with other software engineers this difference in my education manifested itself – generally because my conversational partner would say something that sounded like utter gobbledegook to me, and I'd have to have them explain it to me in language that I could understand.  My most intense experience like that occurred in the '90s, in the course of conversations with two particular engineers: Julia and Mike.  They spouted OOP jargon I'd never heard before at a prodigious rate, and I had to do a lot of reading and parsing of their utterances to have a prayer of understanding what they were saying.

So my perspective is different than most.  So is my conclusion about programming theory.

I don't think it matters.  Or, to say it another way, I don't think it is substantially easier or more likely that understandable, maintainable code will be written as spaghetti code, structured programming, or OOP.  The vast majority of programmers will write opaque, unmaintainable crap no matter what programming model they're using.

I say this with some confidence, after more than 40 years of working with quite a few substantial bodies of code.  There isn't a single one of them that I can point to as particularly understandable or maintainable.  There are no significant differences in the spaghetti code, structured code, or OOP.  It's all equally bad.

That's not to say that I've never, ever seen good code.  I have.  I like to think that I've produced some of it.  But that good code is always in relatively small chunks – a few thousand lines at a time, at most.  Most of the large bodies of code I've worked with have a few pieces like this, like polished jewels stuck in a cow flop.

So I think Lawrence is right: OOP is crap.  But so are the alternatives :)  I think the only thing that matters is how good the programmer is, and whether he or she did the work with craftsman-like care...

“...the lamp of the West still shines brightly in Asia.”

“...the lamp of the West still shines brightly in Asia.”  That's the concluding phrase of Bret Stephens' excellent piece in today's Wall Street Journal about the current struggle in Hong Kong.  He speaks directly to one of my pet peeves: the overwhelmingly admiring tones used by America's pundits and lamestream media when speaking of mainland China...

Monday, October 6, 2014

Barn: all trussed up and nowhere to go!

Barn: all trussed up and nowhere to go!  All the trusses on the sides of the barn are up, and they've started on the fascia and the boards that keep the trusses from twisting.  I'm amazed how quickly they could put all those trusses up.  It was a three man team for most of the day (four briefly), and they worked together like a choreographed dance team.  They may get to the center set of trusses as early as tomorrow.  Once those are up, it's going to look like a barn!


Some praiseworthy customer service...

Some praiseworthy customer service...  Last week I installed a lighted magnifying mirror for Debbie, in our new bathroom.  All went well until I got to the very last step: attaching the mirror to to the mounting bracket.  There should have been three teensy little machine screws to attach it, but there were only two.  Worse: the screws were an oddball metric size, and were finished to match the mirror – there's no way I'd find one in a hardware store.

Dang.

So I made the dreaded call to Zadro's customer service number.  If Zadro's was a Utah company, I wouldn't be dreading it – as getting good service here is almost a certainty.  But Zadro's is in Huntington Beach, California – so there was no telling what I'd run into.  Hence the dread.

But as you can guess from the intro, I was in for a pleasant surprise.  First, a nice young lady took my report, then said she'd get a replacement right out to me.  She took my address and promised it would go out right away.  That was this past Friday.  In this morning's mail was an envelope from Zadro's, and in it was the promised part.  The right part, too!  Five minutes later, the mirror installation was complete.  It's a very nice mirror

Kudos, Zadro's, for a fine example of the right way to do customer service...

Fun with microscopes...

Fun with microscopes...  I've long wanted a decent low-powered microscope, the kind with stereo eyepieces, a camera port, and 2x to 100x power.  I started watching out for a good deal on one, and just last week one popped up on Amazon: an AmScope trinocular model, with powers from 3.5x to 120x – almost exactly what I wanted, and at a great price.  So I got it.

Just now I was playing around with the camera option, and for your delectation I have three photos for you.  The first two are of a fly zapped by our high-voltage, thunderclap-producing fly zapper.  When I first picked this guy up, there was still a little smoke swirling up from it, and various parts are missing.  But ... he's not moving any more :)  The last photo is a sliver of oak flooring trimmed off when the flooring guys were installing our floor.  The characteristic oak pores (this is end on) look like craters on the moon...

Barn: the trusses begin...

Barn: the trusses begin...  The builders arrived bright and early this morning, and went right to work on the trusses that go on either side of our barn.  One guy put up hangers (left photo below) for the inside end of the trusses (the end closest to me when I made the right photo below, showing theses trusses).


Teak shower bench...

Teak shower bench ... with a dumb design flaw.  But it's fixed now!

We were originally planning to have a granite shower seat in one corner of our new shower.  However, after doing some reading on the challenges with granite – and its annoying habit of freezing your tushy off if you sit on it – I decided against that.  But we still wanted a seat in our shower.  I remembered a visit we once made to Ventana, on California's Big Sur coast, and how much we liked the shower there.  It was all rock, with a teak bench – so I started looking and found the one above.  Except for one little problem, I love that bench.

You can see the problem in the left-hand photo below.  The cross-members that hold the seat on exactly match two of the rows of square holes (you can see one of these: the second row of holes from the top) – and when I take a shower, they fill up with water.  That water then just sits there for hours, until it soaks into the wood.  That's not good for the long-term condition of the bench.

Upon investigating, I discovered that the edge of the cross-member, on the outside edge (top in the photos) extended just 1/10" or less past the edge of the hole.  That gave me an opportunity to drill some nearly hidden short holes at a 45° angle to provide a drain.  This proved to be very easy to do (right hand photo below), and in short order I had the problem fixed.  Yay!


Commute times...

Commute times ... by zip code, on an interactive map.  This map is full of surprises for me, but I think I figured out that most of the surprises are bedroom communities with a long commute to where the jobs are...

When I first listened to this video...

When I first listened to this video ... I thought it must be a hoax.  No way could a human vocal tract do this!  But then I did a little research, and there is considerable material out there on the phenomenon of polyphonic singing (look toward the bottom of this article, or these search results).

Speechless, I am...

Top 10 giving states...

Top 10 giving states...  This is charity as a percentage of income:
Here are the top 10 most generous states:
1. Utah: 6.6 percent giving rate
2. Mississippi: 5.0 percent
3. Alabama: 4.8 percent
4. Tennessee: 4.5 percent
5. Georgia: 4.2 percent
6. South Carolina: 4.1 percent
7. Idaho: 4.0 percent
8. Oklahoma: 3.9 percent
9. Arkansas: 3.9 percent
10. North Carolina: 3.6 percent
The original article I spotted this in doesn't mention it, but there's also a strong correlation between generosity in charity and which presidential candidate the state voted for in 2012.  Follow the first link to see that.  I'll bet you can guess how this works out :)

Some pithy posters...

Some pithy posters...  Via reader Jim M.:


Interesting political development...

Interesting political development...  In the race for the Kansas senate, an independent (Greg Orman) is substantially leading the incumbent (Pat Roberts).  Roberts is Republican in a state that hasn't elected a Democrat for senator for a long, long time – and the conventional wisdom was that he was a shoe-in for this election cycle.

What I find interesting about this is that Orman appears to be genuinely independent: a politician without any party affiliation, affection, or even influence.  He's got his own views on a wide variety of topics, and they don't fit well with either party's platform.  He's a wealthy businessman, and self-funding (so doesn't need any party money).  His positions are more in conflict with my own than in agreement, but he does appear to be more interested in solving problems than in any particular ideology. 

This strikes me as much closer to the Founding Father's ideas about “citizen government” than the party system we have today.  I'm not sure what a Senate full of a diverse group of truly independent thinkers would be like, but I'm pretty sure I'd like it better than the current mess.

But then, I guess that's a pretty low bar, isn't it?

Curiosity aids learning...

Curiosity aids learning...  At first I thought this article was just confirming the obvious: that curiosity motivates people to learn.  Well, duh!  But they're actually showing something more: that learning while curious leads to greater retention.  There's some speculation about why that should be, but it's just speculation based on blood flow observed in various sections of the brain.  That's a widely used technique, but nobody is really sure that's any more accurate or informative than phrenology...