Thursday, January 9, 2014

Too proud...

Too proud...  One of our cats is way too proud of his accomplishments this morning!  Those fragments used to be a single paper towel...

Polar bear vortex...

Polar bear vortex...  ScrappleFace:
“Within just a few years,” Holdren said, “you’ll be able to walk from Philadelphia to Dallas on the backs of polar bears…that is, if you haven’t already been slain by a ravening famished pack of them.”
Hah!

Just in case...

Just in case... one of my readers is amongst the 5 people on the planet who haven't already seen this Proctor & Gamble ad, here it is for you.  I recommend having some tissues at hand...

Walmart 1, ObamaCare 0...

Walmart 1, ObamaCare 0...  But the progressives aren't going to let anything like facts get in their way of destroying my country.  Nope, they wouldn't do that...

Speechless, I am...

Speechless, I am...  Debbie is stunned and incredulous.  Both of us are wondering what genes we're missing.  Just about every day, I learn that my ignorance of the human condition is even more profound than I had previously thought...

The good old days...

The good old days...  They weren't really so good.  I'm with Lenore Skenazy (WSJ$) on this (I remember well how boring the backs of those cereal boxes were!).  I'll take our online world over the alleged “good old days” of libraries and book stores.  In the pre-Internet era, I spent a lot of time in musty libraries and browsing in book stores.  While there are a few aspects I miss about them, the key word there is “few” – the advantages of instant information availability on today's web, and of electronic book readers (the iPad is my current preferred platform) completely overwhelms any nostalgia I feel for the old days.  To reinforce that, all I need do is remember how much I hated the always screwed-up, always out-of-date card indexes in technical libraries.  Nope, I don't want to go back there...

Duty...

Duty.  Robert Gates' memoir is all over the news now.  An English take is here, the Wall Street Journal's here.  A paragraph from the WSJ piece sums up my own feelings on it nicely:
The Gates book may be most troubling for what it says about the three long years left in Mr. Obama's second term—which also makes us wonder why he didn't go public sooner, at the time he left office. He describes a President who knows he must invoke the traditional rhetorical markers of U.S. foreign policy—a strong defense, credibility with allies, democracy and human rights—yet whose every impulse is to leave the world to its own devices. That's especially dangerous when the American public is in an inward-looking mood. The U.S. needs a President willing to make the case for continued American engagement and leadership.
November 2016 can't come fast enough...

Flow battery advance...

Flow battery advance...  This is the general sort of technology I think is most likely to solve the grid storage problem, at least in the near term.  Here's more on flow batteries, if they're new to you...

When it's really cold outside...

When it's really cold outside...  Now that we're planning on moving out of California, to somewhere much colder, we're paying a lot more attention to things like this.

We're going to be visiting northern Utah in a few weeks to get some first-hand experience with this...

I've been waiting for this...

I've been waiting for this...  The inimitable Mark Steyn on the global warming “scientists” stuck in the Antarctic ice over Christmas.  Here's a tiny sample from the beginning of his piece:
... you’d have to have a heart as cold and unmovable as Commonwealth Bay ice not to be howling with laughter at the exquisite symbolic perfection of the Australasian Antarctic Expedition ‘stuck in our own experiment’, as they put it.
Don't miss the rest of it!

About that “polar vortex”...

About that “polar vortex”...  The lamestream media, mindlessly repeating the talking points of the warmists, would have you believe that global warming caused the polar vortex that slammed most of the U.S. last week.  Other scientists, apparently not slurping from the warmist funding teats, say “Not so fast!” – as polar vortices have been around for quite a long time.  For instance, historians are pretty sure that the notoriously cold winter of 1777, in which George Washington and the Revolutionary Army huddled up in Valley Forge, was caused by a polar vortex quite similar to last week's.  Unless my memory is even worse than I thought, I'm pretty sure there were no gas hog SUVs, coal-fired electrical plants, or 747s in 1777.  As one of my favorite Englishmen (James Delingpole) puts it:
... without polar vortices, America might look a very different country today, possibly with many times more CCTV cameras, much poorer dental care, and with cricket as its national summer sport instead of baseball.
But the warmists place far more credence on their computer models than on those pesky facts...

Wednesday, January 8, 2014

Geek: Java oddity...

Geek: Java oddity...  I'm writing a replacement for Java's DecimalFormat class – faster, threadsafe, and slightly extended.  In the course of writing tests for my code, I discovered some unexpected behavior in DecimalFormat when formatting float values.  Here's some code that illustrates the behavior:

DecimalFormat df = new DecimalFormat( "#0" );
String fmt = df.format( 11111111E15f );
Run that code, and fmt will contain "11111110989762554000000" – way more significant digits than should be there.  WTF!?!

With a little bit of digging, I figured out what's going on.  The DecimalFormat class doesn't have a method with a format( float ) signature.  So what's happening is that my float parameter is being cast to a double, and the method with float( double ) signature is being called.  Inside that method, it assumes that there are 53 bits of significance in the mantissa, not the 24 actually present in the float – so it emits digits to cover all that.

I'm really surprised that was done in the first place, and even more surprised that the Java folks haven't fixed it.  That could lead to some mighty misleading results!

My class won't do that :)

WWII visualization...

WWII visualization...  This is the best one I've ever seen...

Nelson Mandela sculpture...

Nelson Mandela sculpture...  My mom sent me a photo of this sculpture, which I had never seen before.  It's located at the site where he was arrested in 1963, in KwaZulu-Natal, South Africa.  The artist is Marco Cianfanelli, a South African himself.  He's made a number of other interesting sculptures as well.

The Mandela sculpture is made from 50 steel rods, laser-cut so that the image of Mandela is visible only from one particular direction.  This site has some images that show more detail about how the sculpture was made...

Watch this...

Watch this ... and think about your relationship to your mobile phone...

The business climate in California is so bad that...

The business climate in California is so bad that ... New York looks attractive by comparison.  I tried to think of something witty to add to that, but I couldn't think of anything that topped the simple facts...

Don't underestimate the power of the Internet to make things weird...

Don't underestimate the power of the Internet to make things weird...  Seems like good advice...

Funny looking cat!

Funny looking cat!  A few months ago, I installed an oval fuzzy shelf on our north-facing living room window sill.  The intent was to provide a perch for the cats, who love to watch the hummingbirds buzzing around the feeders you can see in the background.  However, in short order Race, our border collie, decided that the shelf was perfect for him.  He couldn't care less about the hummingbirds, but he loves to perch in that window and watch for cars coming up our driveway...

Pack rat midden...

Pack rat midden...  We have several species of pack rats out here in the chaparral where we live.  Some of them build large middens, or nests, of interwoven twigs.  At right is one that we spotted near our home on a walk Debbie and I took yesterday.  I first ran into these nests about 15 years ago when I was clearing some brush on our property, and I was amazed how strong they are.  I've since read that the pack rats inside are quite well protected from predators like coyotes, who aren't strong enough or clever enough to disassemble the protective structure.  On the one in the photo, you can see one of the entrances to the nest (the dark half-moon shaped area); I found two more on other sides of it.  Altogether on our walk we saw seven of these, all within a 200 foot stretch of roadway...

Tuesday, January 7, 2014

On that incandescent lamp ban...

On that incandescent lamp ban...  I keep getting surprised by running into people who believe that the ban on incandescent bulbs is the result of the green lobby.  It is no such thing.  The ban on incandescent bulbs would never have happened if it weren't for the lobbying (and associated millions of dollars in bribes “campaign donations”) in support of the ban done by the manufacturers of the incandescent bulbs.

Why?  Because before the incandescent bulbs were banned, the lamp manufacturing business was stagnant: their sales were limited to replacing those bulbs that burned out, plus a very modest growth each year.  It was a boring, highly-competitive, low-margin business.  By banning the incandescent bulbs, those manufacturers managed to get the government to force the replacement of every single incandescent bulb in the country with a more-expensive, government-subsidized, high-margin bulb (and in the case of CFL bulbs, far less reliable and therefore needing replacement more often).

It's smart business for those manufacturers to do this.  They're now seeing record profits, and are projecting even more.  They love disruptive new lamp technologies, as each time one comes along, they get to replace all those lamps again.  They'd love to see a mass migration to CFL (already in progress) followed by a mass migration to LED (easy to predict).  If you want proof that this is something those companies want, all you have to do is look at their lobbying expenditures.  They wanted that incandescent ban, and they wanted it bad.  The CEO of Philips (one of the world's largest manufacturers of incandescent bulbs) once said (on an earnings call) that the ban would “save the industry”.

Some greens are actually quite upset by the ban, especially the move toward CFL bulbs – mainly because of the mercury content and the environmental problems associated with their disposal.  Consumer groups are upset with the CFL bulbs because of their reliability problems (they're only reliable if you leave them on – cycling them on and off, as ordinary users would of course do, makes them fail much quicker than incandescent bulbs do).  Many consumers – most definitely including me – are unhappy with the terrible quality of the light emitted by both CFL and LED lamps (in both cases, their emission spectrum is very “peaky”, with between two and six peaks, unlike the smooth, continuous spectrum from incandescent bulbs).  For those consumers, the distortion of perceived colors is somewhere between annoying and painful – especially if you engage in any activity that requires high fidelity color.  That includes obvious things like photography or painting, but also perhaps less obvious things like reading the color codes on electronics parts, choosing yarns for knitting, etc.

Bring back the incandescents (or an equally high quality alternative)!  Down with spectrally impure lamps!!