Sunday, April 7, 2013

Redbox Robotics...

Most of you are likely familiar with Redbox, a video rental service that operates out of an iconic red vending machine.  I was not familiar with them (the last time I rented a video, it was on Betamax tape :), so I had to do a little research when reader Celeste S. emailed me the photo below, just to figure out what the heck she was showing me!

Celeste apparently happened by a Redbox that was opened (for servicing, I presume), and she snapped this photo.  The vertical cylindrical unit is basically a big storage carousel that can spin around under the control of a computer.  Each of the seven levels appears to hold about 60 DVDs, so the total capacity is around 420 DVDs.  The “picker” on the right just moves up and down, between levels.  The Redbox's computer can load or unload any slot by moving the picker to the right level and spinning the cylinder around to put the right slot in front of the picker.

Celeste took the picture so she could show her (homeschooled!) kids how a Redbox actually works.  There are quite a few explanations available on the web, I discovered – along with some incorrect information and some speculation that dwarf trolls live inside of every Redbox :)


When I first saw Celeste's photo, it reminded me of machines I worked with almost twenty years ago: robotic tape libraries.  These were quite popular at big companies in the '90s (and still around today, though less common).  Some of the tape libraries could hold thousands of tapes; others just a few dozen.  The cylindrical design – very much like the Redbox machine – was very common for the smaller tape libraries.  That design allows a simple mechanism to get at a reasonably large number of tapes (the tapes, by the way, were considerably larger than a DVD!).  Larger tape libraries tended to use a linear design, reminiscent of large libraries; they could generally be extended to be as large as you'd like them to be...

Floppy Decoding Code for the 6502...

Here's a wonderful post talking about the process of writing code that decoded floppy disk data read in realtime, on a 6502 processor.  Readers who are geekly and of a certain age will identify with this.  Younger folks will probably just shake their heads at the lameness of their elders :)

What struck me about this post was the way the author brings back the challenges of programming on those old, slow microprocessors – and the way we engineers glommed onto tricks like the “illegal” op codes (almost every microprocessor had them).  I never wrote any code that decoded floppy data, but I did many other similarly challenging things.  A couple that spring to mind: variable-slew stepper motor control (to speed up and quieten floppy disk positioners) and realtime FSK radioteletype decoding, with multipath and single-side dropout handling.  Both of these would be trivial today; your average smartphone could do it in a high-level language.  But back then, the microprocessors could only do things like that if you pulled out every trick in the book, and perhaps invented a new trick or two along the way...

Apollo 11...

If you were a sentient being on July 20, 1969, then almost certainly you spent that evening and night glued to a television set, watching and listening as Apollo 11 landed on the moon, and as Armstrong and Aldrin took that first, too-short “moon walk”.  That was me – in the basement of my Uncle Donald's house, watching a little black-and-white screen for 10 hours or so straight.

I was the only one in that household interested enough to watch; my Aunt Marion was completely disinterested, my cousin Jonathan too busy chasing willing maidens, and my Uncle Donald (who was generally interested in science) was dismissive for reasons I never understood.  But I was eagerly vacuuming up every scrap of information I could get my hands on.  That information was quite limited back then – there was no Internet, of course.  Printed publications were always days to years behind, absolutely useless for this purpose.  The only media that could provide near-realtime images and sound was television – so, like hundreds of millions of others, I sat in front of the magic box.

The voice network called “CAPCOM” was available for the public; it was running (foreground or background) during all the contemporaneous coverage.  Some other voice networks were occasionally patched in, but they were full of acronyms that nobody bothered explaining, so while they sounded cool they didn't really help elucidate what was going on.  The science and technology reporters had a really tough job – they were trying to explain some pretty complicated things in a way that “Joe Everyman” would understand.  I was frequently frustrated by their failure to talk about more interested and more complex aspects.  But...this coverage was as good as it got, back then.

Now someone has put together an awesome web site that shows how one might experience Apollo 11 if it occurred today.  I watched, enthralled, as the entire descent phase of Apollo 11 played out before my eyes.  CAPCOM was on, along with the Flight Director's net.  Transcripts for both play live.  Video from the sequence camera is on screen.  All of this is synchronized, and you can jump around any way you'd like.

For me, watching this was almost like traveling back in time.  I was back in my uncle's basement, watching on the little black-and-white screen – and fully immersed in the excitement and anticipation of the moment.  I didn't have a heart monitor going, but I'm certain my pulse and blood pressure were elevated.

Highly recommended!

Online Photos...

Interesting new web-based photo sharing site: Everpix.  $49/year to host any number of photos.  Well, maybe not quite unlimited – there are some weasel-words there to the effect that Everpix can shut down anyone with “excessive” use, whatever that means...

Saturday, April 6, 2013

Freeman Dyson...

A good story, partly about Freeman Dyson's status as an AGW skeptic.  There's also a nice video about the Orion Project (nuclear bomb-powered rockets) and Dyson's participation in it.

I've read a lot about Freeman Dyson, and watched several documentaries that he was part of.  One of his children (Esther) is prominent in the software industry; I've met her several times at conferences and once (around 1995) participated in a fascinating panel discussion that included her, about the future of the Internet.  We all got it wrong, but she was arguably more right than the rest of us, predicting that the most fundamental impacts of the Internet would be on communications and social interactions.  Another of his children (George) is a science historian, and I've read two of his books (both quite good).

Imagine...

Imagine, for one horrifying moment, that you're a bureaucrat within a major city's administrative staff.  Within your purview are the city's collection of public swimming pools, including responsibility for hiring lifeguards.  Now imagine that you're making up a list of requirements that applicants for lifeguard jobs must meet:

- swimming: nope, not required
- racial minority: you're hired

This is not a joke; it is the reality in Phoenix, Arizona.  Seriously.  And the progressives think it's just wonderful.

Doom...

Oh, Noos!

Looks like the Jamul Indian Tribe has secured another financier (and manager) for their casino project.  Penn National Gaming is the source.  Details are skimpy, but they do claim $360 million for development of a 200,000 square foot, three story facility.  They're claiming that construction will start later this year, and will take two years.  They are, of course, wrapping this up with claims of job creation (“up to”  1,200 construction jobs and 1,500 permanent jobs).

I'd never heard of Penn National Gaming, but a little quick searching reveals that they are a public company, traded on NASDAQ under the symbol PENN.  Their stock price is on a roll.  Market cap is $4.17B; revenues are approaching $3B/year – a significant company with lots of resources.  They are currently operating 29 gambling facilities.

Here we go again...

Introduction to Intel x64 Assembly Programming...

From the folks at Intel...

Painfully Grotesque Propaganda...

That's Tyler Durden's apt characterization of the latest news on the job front.  The lamestream media was full of the “drop” in the unemployment rate (from 7.7% to 7.6%) and the lower-than-expected new jobs (about 40% of the consensus economist forecast, which just shows you how much that is worth.

That's the propaganda.  The truth is much more dismal: the unemployment rate only went “down” because of an accounting trick I've discussed here many times before – the so-called “discouraged” workers are removed from the calculation altogether.  If you actually want work, but you've given up looking for a job (because there aren't any!), you're not counted as unemployed.  That makes sense only on Planet Politics, certainly not here on Earth.

A much more useful number is the labor force participation rate: the percentage of adults who are actually working.  This month it dropped to 63.3%, the lowest since 1979.  My readers of a certain age will recall that year as the height of the Jimmy Carter “stagnation” recession – absolutely awful economic conditions and a huge national debate about how to recover from it (this eventually helped propel Ronald Reagan into office).  Now with the same labor force participation rate, we're being told that we're in the midst of a “slow, steady recovery”.

Well, pardon me for being skeptical.  I hear the drums of doom, drawing ever closer...

Here's a graph showing the labor force participation rate since 1979.  With our current population of about 310 million, each percentage point is millions of jobs.  More information here and here...


Friday, April 5, 2013

There Are Many Skills...

...that I will never have.   I've accepted that.  This skill is surely amongst them!  Via my lovely bride:

The Miracle of the Disposable Diaper...

My readers who know me will understand that this is a most unlikely title for a post of mine.  Debbie and I don't have any children, and don't particularly like children (though some recipes might tempt us).  So why would we know anything at all about disposable diapers, much less think them miraculous?

If you're inclined to make cracks about elderly incontinence, you'd be getting close – but it's not us that's having that problem, it's one of our dogs: Lea, our 15 year old female field spaniel.

According to data from the Field Spaniel Society of America, it's quite rare for field spaniels to live to this age (their data shows 1 of 366 dogs living to that age, and none any older).  Stroke is the most common identified cause of death at that age in field spaniels.

So we know that each day we have Lea still with us is a minor miracle in and of itself.  Amazingly she has no major health problems of any kind.  She has a treatable thyroid condition (very common, treated with tablets), and a strange hair problem (her hair is very thin and less dense than normal), but otherwise she's fine. 

Recently she's been unable to control her urination.  This was a miserable cleanup job for us, especially since most of our house is carpeted.  This is a common condition for elderly female dogs, and is often treatable with hormones – which we've tried, but unfortunately the treatment didn't work for Lea. 

So we started isolating her in a baby playpen, with absorbent pads on the bottom of it.  That worked in terms of keeping the house clean, but was miserable for Lea.  Some online research led me to another answer: diapers, specifically, modern super-absorbent polymer based disposable diapers.

There are some disposable diapers made specifically for dogs, but they're expensive – around a dollar each.  Diapers for human babies, of the right size, are much less expensive – about one third the cost.  The fit for a dog is different than for a human baby, but aside from a hole for the dog's tail they are actually very similar.  I found several posts from other dog owners dealing with this problem who recommended (quite specifically) Huggies “Snug and Dry” diapers with a manually-cut “tail hole” in them.

So we bought a small, experimental package of these diapers to see if they would work.  Here's the miracle part: they do work, and they don't interfere with Lea's normal behavior around the house.  Cutting the “tail hole” turns out to be a trivial affair – about 5 seconds with my pocket-knife, to make a slit.  The diapers come printed with a pattern that makes it easy for me to put the hole in the right place each time (I'm sure that wasn't their intent, but it works just fine nonetheless :).  The diapers have velcro-like fastening tabs that are reusable and secure.  The fit is not a problem at all; dog hips and baby hips are sufficiently similar that the same diaper fits tightly on either.  Lea's fur never gets wet, I think because when she urinates it goes straight into the diaper's absorbent polymers, right through a permeable layer on the inside.  The reusability of the fastening tabs allows us to remove the diaper before walking her, and (assuming she hasn't peed in it) putting it back on afterwards.

On average, the diaper saves us a house mess about once a day.  A couple of times I've been very surprised when removing the diaper, because it was quite heavy with captured urine – it is simply amazing how much those diapers can hold.  The payoff is that our ancient and beloved dog can be with us and her fellow dogs, just as she is used to – without us having to pay the price of a soiled home.  The diapers don't cost much (roughly $10/month) and they're really not much effort.  That qualifies as a miracle in my book!

Now we've ordered a bigger box of diapers, and we're hoping that one of these fine days we'll need to re-order...

Thursday, April 4, 2013

Programming Is Changing...

The article that included the graph below surprised me:


The gist of the article is to note that in 2012 (the year graphed above), markedly fewer programmers are working in a single programming language.  The article has the same data for 2010, and indeed there are many more programmers working in a single language just two years earlier.

The surprise for me isn't that we have more multiple-language programmers – it's that we have so many single language programmers, even today!

As I've written before, over the course of my career I've used dozens and dozens of programming languages – probably over 100 of them.  If I look at just the last two years, I've used seven: Java, JavaScript, Scala, PHP, C, C++, PIC assembly (two of these at work, all seven for personal projects).  I have trouble imagining an application programmer using less than two today, as just about every application uses JavaScript (for the client side) and at least one other language (for the server side).  And what application today isn't a web app?

Certain kinds of programming, much less common these days, perhaps can be done with a single language – things like embedded systems, low-level systems programming, etc.  But surely it isn't true that close to 20% of all programmers fall into these categories?  I'll speculate that on some larger teams, it's possible to write for years in a single language because you're slotted into some narrow area of work.  I still have trouble imagining 20% of all programmers fitting into that category.

So I'm surprised!

Wednesday, April 3, 2013

A Reader Wonders...

...why I haven't posted more about my FJ Cruiser modifications.

Here's why: I'm right in the middle of a couple of modifications that turned into a really big project: mounting the roof lights (four large headlights for night-time offroading) and the CB radio (going on the ceiling in the center).  These two modifications have one thing in common: the need to run wiring under the FJ's headliner (the material above your head when you're sitting in the car).  To remove the headliner from the FJ, you have to disassemble nearly the entire interior of the car.  In our spare room there is now a pile of perhaps 50 parts, along with a box with perhaps 75 fasteners of a bewildering variety.  If you look into our FJ, you see metal everywhere – all the wiring, airbags, and windshield washer plumbing is fully exposed.  I've mounted the CB antenna and run coax back to where the CB will be mounted; that will all be hidden between the headliner and the metal roof.  Next up is running power to the roof lights and the CB; this includes punching a hole in the roof (yikes!) and running big fat wires through 1" tubing (gee, that oughtta be fun!).  Only after that's all installed and tested can I put the FJ back together again.  And only after that will Debbie make up her mind about whether I'm completely insane or just partially insane...

The Most Symmetrical Thing Ever Made by Man...

That would be these niobium-coated fused quartz spheres, which about 1.5" (3.8 cm) in diameter and are spherical to within 40 atomic diameters...


Ipomopsis harvardii

Another beautiful flower photo, from BPOD, of course:


Planetary Photos...


Michael Benson makes planetary photographs from original science data, using up to hundreds of images to make a mosaic.  He also goes to great lengths to get the color “right”, meaning that the color in his photos is what we would see if we could somehow get to the planet (or moon) in question.  Below is one example: Jupiter's fantastical moon Io:


There's a collection of his images in this article.

Kitchen Conversions...

Amongst the many irritations of living in nearly the only country that doesn't use the metric system of measurements is the need to remember all the crazy arbitrary stupid ratios of American measurements, like the number of teaspoons in a tablespoon, or the number of ounces in a quart.  This infographic makes it all easy:



Of course, it would be even easier if we'd just convert to the metric system like the rest of the world!  I don't expect to live long enough to see that, though...

Plant Circles in African Deserts...

What causes these odd-looking circles – so-called “fairy rings” – found in the Namib desert?  Answer: sand termites.


Children Should Be Supervised By Adults...

A fun collection of tricks you can use to win bar bets.  A bar is approximately the last place you'd ever find me, but I think some of these might be fun when gathering with friends somewhere else, too:

California's Net Worth...

We're talking about the net worth of the state government, not of all the people and businesses in the state.  The net worth of the state government is the sum of all its assets (buildings, land, cash, investments, taxes due) minus the sum of all the liabilities (debts, pension obligations, etc.).  For most of California's history, the net worth of the state has been somewhere between a few billion dollars negative to several hundred billion positive (the latter during Ronald Reagan's term).  Today: -127.2 billion dollars.  That's over $3,000 for each man, woman, and child in the state.  Sheesh...