Sunday, February 1, 2015

Goat vs. horse...

Goat vs. horse...  Both look quite happy!
NGC 4676...  Via APOD, of course.  High resolution version here...

Three kinds of programmers...

Three kinds of programmers...  I've never seen the three categories called out so specifically, but this article does a nice job of defining them:
  • Computer scientist
  • Computational scientist
  • Software developer
I am most definitely in the latter category, though just for fun I've done a teensy little bit of actual computer science, and even a little bit of computational science (bond valuations) professionally.  But the vast majority of the programming I've done both professionally and privately is software development – the program I wrote was itself the objective.

One of the challenges I had when poking into the ClimateGate software dump was that those programs were written by computational scientists (the climatologists developing climate models).  That was a challenge because the programs were not written to be maintainable or even understandable by anyone other than the author.  They were also teeming with horrifying bugs, especially a tendency to fail utterly with the tiniest little issue in the inputs.  That sort of program rarely emerges from a software development shop, even as a prototype.  On the whole, I think the computational scientists could learn a great deal from both the other kinds of programmers.

Computer scientists, for me, are mostly a source of knowledge. Folks like Donald Knuth and James Gosling have, through their work, gave me the intellectual tools to be a better software developer.  I've mooched a great deal from that group.  Only rarely have I made any contribution at all to that body of knowledge – just a couple of email exchanges with real computer scientists where maybe I gave them an idea or helped them clarify a finding.  One thing I know for sure: the best computer scientists are also great software developers, and have done a good deal of it...

The end times are nigh, part 12,983...

The end times are nigh, part 12,983...  In New York City, expectant mothers fill out a form for requesting a birth certificate.  On that form is the following question:
Do you identify as male or female?
Seriously.

I'm pretty sure I won't live long enough to see such a thing in rural Cache County, Utah.  I certainly hope not...

An unusual afternoon yesterday...

An unusual afternoon yesterday...  When we bought our new home, it came with a greenhouse, the kind made with pipe “hoops” supporting a plastic covering.  It hadn't been used for several years – its heater was disconnected, the water was disconnected, and it had been used as a junk repository for a while.  The biggest challenge with the greenhouse, though, was its placement: for some reason the previous owner had oriented it with the long axis north-south, in a spot with big evergreen trees to its west and southwest, and a larger building to its east.  Consequently, in the winter it got about 30 minutes of sunshine a day.  Not so good :)

Last year we decided that we'd like to have a greenhouse ourselves – but we wanted one made of glass, not plastic.  And we wanted it placed in a slightly more sensible location.  We have the perfect spot for a greenhouse, on the south side of the acre or so that we're going to put a garden.  That spot has a 12 acre field to the south of it, so the greenhouse will get plenty of sunshine in the winter, when it needs it.  That's a project for later this year, or (more likely) next year.

Meanwhile, we had this plastic greenhouse that we wanted to get rid of.  We've been trying to find someone who could make good use of it, asking around the network of people we know here.  Yesterday those efforts finally paid off when the co-worker (Chris W.) of the son of fellow who built our barn called me out of the blue and said “I’ll take it!”  She, her husband Gary, and their daughter Hailey showed up just before noon yesterday.  They had a little trailer behind their car, lots of enthusiasm, and a bunch of tools.

So we all went to work.  Chris, Gary, and I grabbed screwdrivers, wrenches, hammers, drills, crowbars, and cold chisels and commenced reducing the greenhouse to its constituent parts.  Debbie and Hailey helped carry things over to the trailer, and Debbie made us some hot chocolate when we got cold.  There were the usual challenges: reluctant screws, broken parts, nails that had be pulled, etc.  At one point a piece fell on Debbie's arm (painful, but no major damage).  Chris got a bunch of burrs on her pants at one point.  The electrical bits didn't want to come off.  On several occasions, Gary and I needed to apply a healthy dose of brute force, aided by crowbars and cold chisels, to get it apart. 

But in about four hours we had that greenhouse completely torn to bits.  All the parts made of metal or plastic were in good shape.  Anything made of wood was pretty much shot.  Then we had to somehow fit all that stuff into their little trailer.  Gary supervised the packing, and in short order had everything almost packed in.  One wooden piece stuck out the back about 2", so he tied the door on the trailer shut as much as it would go, and declared victory.  They drove off (literally) into the sunset with their new greenhouse.  We're now left with a completely exposed pile of junk where the greenhouse used to be.  That will be a project for another day :)

Saturday, January 31, 2015

Geek: Ok, so I'm late to this party...

Geek: Ok, so I'm late to this party ... but Java 8's new streams and method references are awesome!  I'm still getting used to the new lambda support, and so far, not finding it to be particularly useful in the kinds of coding I'm doing.  But streams and method references?  Wahoo!!!

For whatever reason, the notion of applying primitives like filters, min, sum, and so on to collections of objects has been something I've done a lot of.  In the past, I've often extended the generic collection types (ArrayList and HashMap, especially) to provide these primitives as I needed them.  The new Stream library allows me to do the same thing without having to extend the generic types at all, while still having superbly readable code.  I'm feeling much Stream love here :)

Suppose I told you...

Suppose I told you ... that if you wanted to farm potatoes, you'd have to either give half your potatoes to the government – for free – or else pay a prohibitively large cash fee.  If you didn't do one of these, the government would forbid you from raising potatoes.  Of course, being an American, you'd probably say “That’s total crap!  No way are we putting up with that!  I’d expect to hear something like that about Eastern Backwardistan, not in America!”

But you'd be wrong, because that's exactly what we're doing with raisins in America.  The law requiring this was part of FDR's “New Deal”.  The Supreme Court is reviewing the legality of it...

Preparations are underway...

Preparations are underway ... for the 2016 Democratic convention (and Obama's universally anticipated farewell speech) in Charlotte, North Carolina.  They're remodeling their stadium with a new retractable roof. 

Via my mom, who accuses me of stealing Reddy, her neighborhood red fox.  I think what actually happened is that Reddy heard about events in Charlotte, and took off to join the fun!

W33...

W33...  Via APOD, of course.  High-resolution version here...

How the progressives think, part 238,342...

How the progressives think, part 238,342...  Most of us (especially homeowners!) have often had to make a choice between hiring someone to get a job done and doing it ourselves.  We just did that with our barn: we hired painters to paint the inside (and in the spring, they'll do the outside), rather than doing it ourselves.  Basically we traded off the cost of hiring someone (presumably skilled and equipped with all the right tools) versus the time and effort to do it ourselves.  Sometimes we decide one way, sometimes another.  Sometimes we decide we can do it better ourselves (as with me and the electrical work in the house), sometimes we'd rather pay to have someone else do it (as with the painters in the barn).  That's all commonplace for most adults.

Unless you're a progressive, though, you most likely didn't consider the taxes Uncle Sam won't collect when you do it yourself.  For instance, when I decided to do my own electrical work, the electricians didn't get to do it.  They didn't get paid for it, so they didn't pay taxes on the income I didn't provide.  If you're a real progressive, then you think I should pay those taxes when I do the work myself.

My first inclination was to laugh at this, assuming it was a joke.  Then I read up more on the topic, and discovered that they (the progressives) are serious.  This topic is being bandied about by progressives in power (in California and Massachusetts, in particular) as a possible legislative initiative for this year.

Man, we escaped from California in the nick of time!

Ace, writing on the same topic, includes this joke that I am shamelessly stealing:
A man owned a small farm in Vermont. The Vermont Labor Board claimed he was underpaying his help, so they sent an agent down to interview him.

"I need a list of your employees and how much you pay them," demanded the agent.

"Well," replied the farmer, "there's my farm hand -- I pay him $200 per week plus free room and board.

The cook has been here a bit more than a year and I pay her $150 every week plus free room and board.

Then there's the half-wit who works about 18 hours per day and does about 90% of the work.  He makes $10 per week, pays his own room and board, and I buy him a bottle of bourbon every Saturday night.  And, once in a while, he's pretty sociable with my wife."

"That's the guy I want to talk to -- the half-wit," says the agent.

"You're talking to him," replied the farmer.
It's things like this that make me doubt this country's chances for long-term survival...

Trivializing concern and involvement...

Trivializing concern and involvement...  Remy nails it again.

I've been sort of bemusedly watching my Twitter feed and the hashtags that appear on it.  I've been vaguely bothered by the whole hashtag phenomenon.  On the one hand, it seems like a great technical solution to the problem of how to find out what people are saying on a particular subject.  On the other hand, often (but certainly not always) people are using hashtags more as a trivially easy way to show their agreement with some expressed concern, like Michelle Obama and her #bringbackourgirls sign.  In a way, they're like the MIA/POW wristbands so popular in the '70s, or the peace sign pendants in the '60s.  While at first they may have been a meaningful symbol of where someone stood, they quickly became meaningless and insignificant tokens used by someone who really doesn't care (or even understand) the issue at hand, but wants to pretend that they do.

Why would someone do this?  Social acceptance is the obvious answer, and I see no reason to doubt this is the major motivator.  One variant of that is a bit earthier, but memorable – I remember overhearing a conversation between two boys in my 12th grade English class.  The gist of the conversation was that if you wanted to get laid by a hippy girl, the key was to wear a peace sign necklace – just 99 cents at a local store.  Cheap, easy social acceptance at work :)

Friday, January 30, 2015

The happy fox...

The happy fox...  We took a drive up to Hardware Ranch yesterday.  This elk refuge is just 20 miles from our home, with most of the drive being up a beautiful canyon with a rushing stream plunging through a narrow forested floor interspersed with larger meadows.  Our goal was to see the elk herd, which congregates near the feeding station in the winter.  We did see the elk, though at some distance.  However, while we sat gawking at the elk, Debbie spotted something much closer and much more interesting: a red fox, hunting in the field just below us, perhaps 300' away. 

The photo at right is not mine, but the fox in it looks like a freshly bathed version of the one we saw.  Ours looked like it had spent some time recently in a muddy area – it's tail was matted, and the entire fox looked quite dirty.  As we watched, it was hunting (most likely for voles, which are extremely common here).  We saw it pounce several times, and after one of them it took a minute or so to eat something it caught...

Muskrat love...

Muskrat love...  Well, not so much.  Debbie went downstairs to visit with our cats yesterday morning, and shortly thereafter hollered up at me to come down and “see something”.  When I walked into the cattery, she and the cats were all looking out one of the room's windows.  It opened into a casement, and in the bottom was a small (and quite unhappy!) muskrat, very much like the photo at right (which I did not take).

The cats were all “Get that annoying thing out of here!”  Debbie was pretty much the same.  All of them looked at me :)  We got a plastic bucket that had a snap lid, and managed to herd the thing into it.  I took it out into our field and let it go – where, most likely, it made a good meal for a hawk or a dog...



Progress report...

Progress report...  The barn is being painted, and the dog agility “room” is being textured first.  The workers have been at it since Monday, and it's starting to look a lot nicer inside.  Instead of bare OSB, now we have light-colored walls that brighten the rooms.  The garage part is a very light green, so light you can just barely tell there's a tint to it.  The wood shop is a warm, bright yellow – very cheerful!  The agility room will be a light bluish-gray, a color picked to coordinate with the electric blue foam flooring that's going in there.  Said flooring is on order and should be here in about three weeks.  The hardware for the interior doors arrived yesterday, and I'll be installing that as soon as the painters are done.

I've been just a bit under the weather the past few days – some sort of low-grade bug that just sapped my energy level, nothing more.  Debbie made some tlapeno soup yesterday, and ever since I ate a gigantic pig trough full of yet, I've been feeling better :)  That stuff is Mexican penicillin!  I've been doing just a few easy things inside the house, and putzing around with some programming (not much physical effort there!).  I'll most likely take it easy again today, but I can feel that I'm on the mend, and I suspect I'll be back to normal tomorrow at the latest...

Thursday, January 29, 2015

A little morning humor...

A little morning humor...  Via reader Simi L.:
Not feeling well, and being concerned about his immortality, Barack Obama consults with a psychic about the date of his death.

Closing her eyes and reaching out to the future, she tells the President, “You will die on a Jewish holiday.”

With much anxiety, Barack asks, “Which holiday?”

“It really doesn’t matter.”  She replies.  “Whenever you die, it will be a Jewish holiday.
Ah, Simi ... thanks for the belly laugh!

Wednesday, January 28, 2015

I got to get me one of these!

I got to get me one of these!  It's so much fun to watch this video.  A car with “insane mode” – that's pure, distilled awesome!  I had nothing but happy thoughts after seeing it.  Then I made the mistake of reading through the comments (mostly from people having the same reaction I did) and seeing this:

I don't want to be on the same planet with these people...

Geek: the impossible just takes a little longer...

Geek: the impossible just takes a little longer...  The reason I started coding again is because I'm working on bringing up my new blog (SlightlyLoony).  It will probably be a few months before I actually start posting there, as I have quite a bit of coding to do before it will work the way I want it to.  Partly that's because I'm hosting it on Ghost, which is a brand-new and not fully baked yet blogging platform.  Mostly, though, it's because I want some features that the Ghost platform doesn't support, and likely never will.

One of those features I wanted is the ability to upload some data to the blog periodically, and then have that data available to people reading the blog.  For instance, I'd like to have the weather forecast for the next few days show up.  I can “scrape” that sort of data from other web sites, then package it up for display on my blog – but to do that, I need to upload that data to the blog server somehow.  Many blogging platforms provide an API for that sort of thing, but Ghost does not.  I spent quite a bit of time on the Ghost forums, researching the issue and asking questions about it.  The conclusion from expert Ghost developers: it can't be done.

This morning I came up with a way to do it, and I whipped up a prototype and tested it – it works!  Best of all, it's easy as can be.  Here's how it works:
  • I created a special “bucket” on Amazon's AWS S3 storage service.  This bucket has the name “assets.www.slightlyloony.com”.
  • I created a DNS record (a CNAME record) that aliases “assets.www.slightlyloony.com” to the S3 storage URL.
  • I wrote a program that uploads the data of interest to a particular set of files within the S3 bucket.
  • In my client side code (running in the blog reader's browser), whenever I want to access some of that data, I use the URL “http://assets.www.slightlyloony.com/[file name]” to get it.  The browser thinks it's on the same host, because “assets.www.slightlyloony.com” is a subdomain of “www.slightlyloony.com”, where the browser loaded the page from.  No cross-site scripting rules are violated by this.

Holy rocks?

Holy rocks?  Well, holey, really.  Scientists have discovered that the combination of hot rocks (like cooling lava) with microscopic pores in them promotes the development of nucleic acids that can replicate.  In other words, that might be how life began on Earth...

A different kind of optical illusion...

A different kind of optical illusion...  I love this collection of paintings by Ron Gonsalves!

The unending pain of ObamaCare...

The unending pain of ObamaCare...  Reader and friend Larry E. emailed me on this while I was reading the article on Hot Air yesterday :)  It seems that when you tote up all the costs, the federal government is spending about $50,000 for each person covered under the law.  That's far more than it would have cost simply to purchase a pre-ObamaCare policy for each of them.

I like the way Hot Air closed their article:
You were lied to. Again.
Yes.  Yes you were.