Thursday, March 29, 2012

Lego Taxonomy

I recently undertook, with my family, a project I actually scorned a few short years ago.  Growing up I had many Lego sets, and standard practice was to:
  • build each model as it was received
  • play with it for a while
  • break it down and add its component parts to the Lego bucket
Over time I accrued what I thought was a large Lego collection, and I rarely felt limited in what I could build.

Fast forward 25 years.  I now have three avid Lego builders living with me (my three oldest), and they have jointly accumulated a respectable stockpile of bricks and sundries.  A few years ago my wife suggested that we sort the Legos by some system into more manageable containers than the large storage container they all occupied.  I told her that was a terrible idea, that I never needed such organization and I loved playing with my Legos.

Well it turns out I just hadn't reached critical Lego mass in my youth.  I would attribute this mainly to the fact that I was just one boy collecting sets, the next younger boy being six years my junior, so he barely started getting into Legos as I was moving on to other interests.  My three oldest, on the other hand, were all born in a span of three years.  The end result of this birth spacing is that they have received, and pooled, many Lego sets over their lifetimes, and the sheer number of bricks makes them very hard to store in one container or to play with effectively.  It's a lot of work to dig through a large, deep container for that one perfect piece to complete your model.

So, I ate my words, and two weeks ago we settled in for a three hour project with the whole family sorting Legos in the kitchen.  I was not sure of the best approach at first, but we just dug in and I winged it as best I could as the whole family immediately started asking "Dad - where does this one go?"

We settled on division by color, grouping sufficiently similar colors into one container, with a few exceptions.  The only false start we had was that light grey and dark grey soon outgrew their designated container, and so they were moved into their own individual buckets.  We also ended up having to find some larger containers for certain colors.  It was interesting to see what colors dominated by quantity.  In my original Lego collection red far outweighed any other color, which I believe was due to the early generic builder sets I first received.  I suppose if I'd had more space sets at that time (early 80's) I would have had more blue, or yellow had I had more castles, but that wasn't the case.  These days, at least for us, it would seem that all the Star Wars sets have made their mark, as black, light grey, and dark grey all top the charts.

Here's what the project looked like, splayed out over the kitchen counter:

Lego Sorting Is Fun!

In the end we had 15 containers, broken out as follows:
  • Black [Sweater-box size] (this is the most numerous color)
  • White [Sweater-box size]
  • Light Grey [Sweater-box size]
  • Dark Grey [Sweater-box size]
  • Red [Sweater-box size] (includes regular, pink, and dark shades)
  • Green [Gallon size] (includes regular, light, and dark shades)
  • Yellow [Gallon size] (includes regular and gold)
  • Brown [Gallon size] (includes brown, orange-brown, and tan)
  • Orange [Gallon size]
  • Blue [Gallon size] (includes blue, light, dark, and purple shades)
  • Odd / Transparent [Gallon size] (includes transparent, chrome, and speckled)
  • Doors and Windows [Gallon size] (includes frames, doors, sashes, and shudders)
  • Mini-Figures and Accessories [Gallon size]
  • Wheels and Axels [Gallon size]
  • Technic [Gallon size] (gears, struts, rods, etc.)
I've had two worries since completing the project.  One is that the younger kids would spill the containers all over and hours of labor would be instantly undone.  So far that has not happened.  The second worry was that having everything sorted so precisely would make me less inclined to let the kids get out their Legos.  This actually has been a problem, but I'm trying to overcome it.  Everything just looks so nice and organized!

Wednesday, March 28, 2012

Livin' In The Cloud

The "cloud" is so over-hyped.  I'm not a big fan of doing things "in the cloud".  I'll take a local application over a thin client any day.

But putting data on-line is another matter.  How I love being able to drop my data in one spot and access it from anywhere with an Internet connection.  So cool.  I'm too cheap to pay for any sort of remote storage, but I've put a few good free alternatives to use.

The first was the Amazon Cloud Player.  This came about as a necessary way to get music onto the Kindle Fire.  The uploader works well, and the upload process took about two days.  You get 5 GB free, and I think I filled about 4 GB with my on-line collection.  It's not my whole collection, but a reasonable chunk of it for use on the Fire.  One cool feature was that tracks purchased from Amazon didn't have to be uploaded - they were automatically recognized and linked to the Cloud Player without any user input.

More recently, Google kicked-off their Play service.  The free music storage is much more generous on Play - up to 20,000 songs, each as big as 250 MB.  Sweet.  Google's uploader worked well too, and now my whole music collection is on-line and accessible everywhere.

I'm also in the process of taking advantage of Google's PicasaWeb albums to back up my photo collection.  This is no small collection, and backing it up is no small task.  Fortunately, the Picasa application is handling most of the work, but I did have to do a little bit of up-front prep to take advantage of their free storage.

PicasaWeb gives you 1 GB of free storage.  This is pretty much useless for storing any significant number of photos.  However, if you resize everything so that the image size is 2048x2048 (or less) then you can store those images for free!  Picasa will even do this resizing for you as it uploads, if requested.

The one limitation on this system is that uploaded photos go into an album, and albums are limited to 1,000 pictures.  There's no limit on the number of albums you can have.  Before I started uploading I split my photos into folders with 1,000 pictures or less, and currently I'm only about 4 folders (4,000 images) away from having everything on-line!  This will be about a 12-day upload when I'm done, but it could have been completed faster.  I've turned on a "Conserve Bandwidth" option in Picasa to throttle the upload so I don't affect other applications on the network.

I recognize that you get what you pay for with these kinds of services.  Although I like having data backed up "off site", I have no expectation that this data is 100% safe just because I've put it on-line.  I received no guarantee from Amazon or Google, and I realize that, which is why I have three different hard drives with all of my pictures here at home, and all of my CD's are still around if I need to go back to my original music.  Even so, it's nice to have everything conveniently available via the web, and even if it's not a guaranteed backup I still consider it another line of defense against the unthinkable: Total Data Loss.

Tuesday, March 27, 2012

Rush to the Middle!

I really like the way Rick Santorum's campaign doesn't let a silly thing like logic get in the way of running for office.  I am getting a little sick of his argument that he should be the Republican nominee because he's the most conservative.  Then in the same breath he declares how important it is to get Obama out of office.  In all the primary exit polling the Republican voters have agreed with him: whoever the Republican nominee is will get their vote because they want Obama out.

So how does it make sense to pick the most conservative nominee?  Santorum says that Romney won't be able to differentiate himself from Obama, and will therefore lose the general election.  On the contrary, Senator, Romney's moderate placement makes him an ideal challenger to put up against Obama in November.  Consider how these two possible scenarios will play out:

  1. Santorum somehow gets the nomination.  He steps up as Obama's challenger.  Republicans side with Santorum.  Democrats side with Obama.  The swing vote is up for grabs.  People who swung towards Obama four years ago may be a bit dissatisfied with him, but they picked him four years ago and they'll probably be inclined to give him a bit more time (four more years' worth).  After all, he convinced them to vote for him four years ago, so he'll probably do it again.  Obama for the win.
  2. Romney gets the nomination, as everyone is already expecting.  He continues his well organized, well funded campaign on into the general election.  Republicans rally behind Romney, as planned.  Democrats side with Obama.  Suddenly the swing voters have a real choice to make.  No longer do they have to worry that a vote for Santorum is a vote for a crazy conservative that they can't identify with.  Now they've got moderate Romney to consider.  The swing vote now gets split, and with an alternative to Obama who swing voters can actually see from where they stand on the political spectrum (unlike Santorum, off in the right wing) they give Romney a chance and Obama finishes as a one-term president.
Q.E.D.

Friday, March 23, 2012

The Toddler Strikes Back

Creating my "Human Cloning Works" video was highly educational for me.  I learned a lot of new stuff about Blender's compositor and rotoscoping.  I wanted to keep that trend going, so I found another post-production challenge: light sabers.  I admit that these kinds of videos are a dime a dozen on YouTube.  I doubt any other subject matter could be as cliche for aspiring amateur effects artists.  Probably because they're not too hard to do, and they can be fun to watch.

I knew how to mask out the saber blades from previous experience, but I wasn't sure how to get the saber effect.  I experimented a little, but nothing looked like what I wanted.  Eventually Google turned up an example for me that I tweaked a bit to arrive at this node setup:






The mask is on the left, and gets split into three different blur nodes.  The Fast Gaussian gives you the larger aura, with the other two lesser blurs completing the inner glow of the blade (in two layers).  The color curves can be adjusted to whatever blade color you want.  This whole thing is then overlaid on the original footage with an AlphaOver node.

I made four masks in all.  One for each blade, one for any foreground body parts that needed to obscure the blades during the fight, and one for the wall that blocks part of the view towards the end.  The overlay order went like this:


  • Original footage
  • Blue blade
  • Pink blade
  • Wall mask
  • Foreground mask
The only other detail I added was to brighten everything with a Gamma node (at the output of the original footage) any time the sabers collided.  It's crazy convenient to be able to add keyframes to anything, including node control values.  I thought about getting more complex with this concept, like masking the characters or certain parts of the room and just brightening them based on the location of the fight during any given clash.  I lost interest in this idea, but I'm still pretty pleased with the added complexity added by the simple brightness tweak.

I noted on the cloning post that I did the audio mix in Audacity, and a helpful poster at BlenderArtists informed me that the Video Sequence Editor could have been used.  I decided to give it a shot this time.  I still feel pretty uninformed about the ins-and-outs of the VSE, but I did figure out how to cross-fade a few segments, and control segment clipping and fade-in/out effects for both audio and video clips.  Here's my final strip setup:


The VSE was really indispensable for doing the audio looping on this clip.  I originally envisioned figuring out the time codes where I wanted all of the saber sound effects, and then putting it all together in Audacity.  That would have taken a long time, and the results would definitely have been sub-par.  Using the VSE I could drop the effects right on the time line, in multiple tracks, and check the sync in real time.  It was so simple to tweak and adjust the timing.  I'm definitely a believer in the VSE, even if I still have a lot to learn.

So, with no further ado, here is the finished product:



And now, for my next trick, I think it's time to try a little motion tracking.  We'll see how that goes.

Thursday, March 22, 2012

Happy Birthday Alan Bean!

A week ago today, on March 15th, Alan Bean celebrated his 80th birthday!  Who is Alan Bean, you ask?  I wondered that as well when the morning news mentioned him as one of the people celebrating a birthday last Thursday.  It turns out Alan Bean was an astronaut in the 60's, and was the fourth man to walk on the moon.  Kudos to him!


This revelation struck me as surprising that there are men still walking around our planet who have set foot on a completely separate celestial body, and I've never even heard of them!  I consider the whole travel-to-another-planetoid thing quite impressive, and I agree with the morning news that the uniqueness of such an accomplishment really does make the men who accomplished it stand out as noteworthy.

This train of thought led me to another: are there men who visited the moon, but never actually got to walk on it?  The whole Apollo 13 situation, in which they only got to circle the moon, was pretty unfortunate for those crew members.  I wondered if many other astronauts found themselves in a similar situation.  Google here I come!

A little reading on the Apollo program turned up these numbers:

  • 32 astronauts were selected to form the Apollo crew pool
  • Of those 32, 24 actually flew to the moon
  • Of those 24, 12 actually set foot on the moon
  • Of those 12, 6 drove lunar rovers
Talk about an elite group of people.  I respect those 12 who got to fly to the moon, even if they didn't land.  Wikipedia points out that they're among the only humans to have journeyed beyond low-earth orbit, or to see the far side of the moon with their own eyes.  Even so, were I in there shoes I think there would be some lifelong regret.  To come so close to another space-borne object, and not actually reach it.  Ouch.

On the other hand, just reading about the Apollo landings gives me a serious case of the heebie-jeebies.  They traveled 238,855 miles from earth, through the vacuum of space, relying solely on 1960's technology?  Talk about crazy!  The accounts of the first landing (Apollo 11) include tales of computer malfunctions during the landing sequence, life support backpacks that didn't fit properly through the hatch, and the breaking of the main thruster switch almost stopping their return to Earth.  It's a wonder any of them made it back alive.

So, honestly, if someone showed up at my door today and offered me a chance to visit the moon would I jump at the chance?  Nope.  I'm to chicken to even orbit the moon, let alone land on it.  Good thing no one's relying on me to have the "right stuff".

Wednesday, March 21, 2012

Executive Orders

I find the Executive Order to be a very curious power of the U.S. presidency.  Maybe that's just because I don't understand it thoroughly, but from what I gather the president can make any decree he wants.  I suppose if a president did something the other branches of government objected to they must have some sort of recourse, but I don't know if that sort of response ever gets exercised.  I'm pretty sure it hasn't in my lifetime.  It seems like a governmental power that hearkens back to the time of emperors and kings.

The other day I had occasion to look up an Executive Order, and in the process I found that Google actually had some suggestions for me.  I took that to mean that other people are also looking up these things, and I was curious what the "Top 10" Orders would be.

For your enlightenment, here are the top 9 (Google's suggestion list stopped at 9) in order of increasing popularity:

  • (Number 9) Executive Order 12015: Permitting students completing approved career-related work-study programs to be appointed to career or career conditional positions in the competitive service. [J.E. Carter, 10/26/1977]
  • (Number 8) Executive Order 13575: Establishment of the White House Rural Council [B.H. Obama, 6/9/2011]
  • (Number 7) Executive Order 9981: Establishing the President's Committee on Equality of Treatment and Opportunity In the Armed Forces [H.S. Truman, 7/26/1948]
  • (Number 6) Executive Order 10998: Assigning emergency preparedness functions to the Secretary of Agriculture [J.F. Kennedy, 2/16/1962]
  • (Number 5) Executive Order 9022: Partial Revocation of Executive Order No. 6957 of February 4, 1935, Withdrawing Certain Public Lands; Alaska [F.D. Roosevelt, 1/13/1942]
  • (Number 4) Executive Order 11246: Equal Employment Opportunity [L.B. Johnson, 9/24/1965]
  • (Number 3) Executive Order 11110: Amendment of Executive Order No. 10289 (which was "Providing for the performance of certain functions of the President by the Secretary of the Treasury") [J.F. Kennedy, 6/4/1963]
  • (Number 2) Executive Order 8809: Good Conduct Medal [F.D. Roosevelt, 6/28/1941]
  • (Number 1) Executive Order 9066: Authorizing the Secretary of War to Prescribe Military Areas [F.D. Roosevelt, 2/19/1942]
E.O. 9066 paved the way for the holding of Japanese Americans in interment camps during the war.  Some of the others look notable, but a few are definitely mysteries why they would be popular searches.

So what's your favorite Executive Order?

Thursday, March 15, 2012

Give It Up!

I've been waiting for the return of Mitt Romney since he dropped out of the 2008 primaries. I hoped he would be back, and he hasn't disappointed this time around. Last time it was no fun watching him lose at the polls. What a difference four years has made.

And yet, I find myself very frustrated even with all of Mitt's success. In the background are these noisy detractors who just won't go away. I'm looking at you, Gingrich and Santorum! I patiently waited while Perry, Bachmann, and Cain got the hint. (Seriously, Herman, you're thinking you should run for president with that chequered past of yours?) I breathed a sigh of relief when Palin announced she wouldn't be running. (The Republican name can only stand so much embarrassment. The country is not laughing with you, Sarah!) And I don't mind Ron Paul so much. Watching him pick up delegates is like watching two kids play "who can hit the softest". Good job Ron - you're going to be the only person in history to stay in the race to the end with so few delegates.

But, seriously, what is up with Gingrich and Santorum? Frankly, Gingrich is a bit of a joke too. And in a way I appreciate him splitting the vote and bringing Santorum down. But at the same time I get so annoyed to hear their campaigns talking about the importance of sticking out this race. Sticking out the race clear to the convention EVEN THOUGH EVERYONE KNOWS THEY CAN'T WIN! The foundation has been laid. The delegate tide is not possibly going to turn at this point, no matter how much support you guys can muster. Enough already!

I once observed that a trip to Las Vegas is essentially a tailor-made vacation for people who are really bad at math. So hey, Newt and Rick, if you need a break from the campaign trail I know just the place for you two to take some time off.

Thursday, March 8, 2012

Digital Photography - Saving Feelings Everywhere

The other day I found myself explaining the concept of film photography to my nine-year-old son.  We received our first digital camera as a gift the day he was born, so his entire life has been spent sans film.  The concept was totally foreign to him.  "You had to get pictures from a store, and it took how many days?!?"

This caused me to reflect on the number of pictures we take thanks to the digital age.  Growing up I went through 2 or 3 film cameras.  My first was a Kodak Disc that I got when I turned 8.  Through the years I probably went through only 1-2 discs, or rolls, of film per year.  So over 14 years I'd estimate I took no more than 1,000 photos, probably far fewer.

The Awesome Kodak Disc

We all know how great digital photography is.  No need to extoll its virtues here.  Even so, it's amazing to see what a difference a little convenience makes when you can take a virtually unlimited number of pictures, and there's no cost to "develop" them anymore.  I think these numbers speak for themselves.

That's a lot of photos!

I think this chart has a couple of takeaways.  One is that there's an unmistakeable growth trend here.  Judging by that cumulative quantity, if I live another 40 years I will have taken over 126,000 photos by the time I die.  Who needs that many pictures?  Maybe it's time to reign in the old shutter finger.

Another takeaway is to consider the blessing of digital storage.  Had I taken and developed every single one of these photos as a 4"x6" print, and stashed them in photo storage boxes, I'd be storing 24 boxes (12"x8"x5") full of prints.  That's 6 2/3 cubic feet of space!  No thanks - I'll stick with keeping my 70 GB of photos conveniently on my pocket-sized hard drive.

The most encouraging thing about these numbers is the per-capita counts over the years.  When our second son came along my wife was deeply concerned with him getting as much attention, as many photos, as big of a scrapbook, etc.  Equality was king.  Conventional wisdom, and experience from our family lives growing up, suggests that parents have less time to focus on later children.  At one time this translated to a deficiency of photos featuring younger children in the family.

Luckily for us, the digital age has overcome this parental failing.  Here's the breakdown of the average number of photos per person over the years:

  • 3 family members = 550 photos / person
  • 4 family members = 636 photos / person
  • 5 family members = 707 photos / person
  • 6 family members = 1,142 photos / person
  • 7 family members = 1,710 photos / person

Even as the family has grown, each child's share of the family photo stash has not shrunk.  Future crises of self esteem?  Averted!

How To Succeed In Internet Business (Without Really Trying)

The Internet is a funny thing.  It's so big and interconnected that it's easy to get caught up in the idea that you could do just about anything with it.  12 years ago I was going back to business school when the Internet boom was in full swing, and I had no doubt there must be something really cool I could do with the Internet to make money.

While in business school, in a marketing course, the teacher posed this question to the class: "What product are television networks selling?"  A lot of answers were proffered.  None of them were right, as I recall, and finally the professor had to clue us in.  Television networks sell ... their viewers!  Or, at least, a bit of their viewers attention.  Hold onto that concept - we'll come back to it momentarily.

Of course, just my luck, long before I graduated (it was only a two year degree!) the boom went bust, and the economy in general went with it.  When it came time to leave school not only was the Internet no longer a promising place to work, but just finding a job in any field was a challenge.

Fast forward to today.

The Internet is still with us, and it's going strong.  There are some Internet-only endeavors that have taken off (Amazon, Netflix) emulating or replacing brick-and-mortar businesses (Walmart, Blockbuster) but I think most on-line business presences are an extension of a business built elsewhere.  I may be oversimplifying things, but hopefully you get the gist.

Notably, two of the "giants" of the Internet are Google and Facebook.  And what is the product these companies are selling?  They're nothing more than the television networks of the digital age, bringing viewers to sit in front of a screen so that advertisers can connect with them.  The sneaky thing about this new media is that instead of spending big bucks to create content people want to see (e.g. game shows, dramatic series, and the evening news) they rely on all of us to entertain each other.  Sneaky though that may be, it also affords all of us an opportunity to profit from the enterprise.  It's only fair.

So here I am, participating in the new media economy, having recently "monetized" my own little on-line media empire.  I may get to cash in on the Internet after all, much to the satisfaction of my college-age self, but it turns out it's not going to replace my day job.

I'm only a month into this experiment, so these numbers have very little history behind them, but I thought I'd share them anyway.  At the moment I am the proud "broadcaster" of 5 monetized YouTube videos and one general-interest blog.  My oldest video has been on-line for about 18 months, and the total accumulated views of all five videos is currently 1,237.

According to Google AdSense, in February I had 58 hits on my videos, 9 of which clicked on ads, netting me $0.34 for the month.  This month is only 8 days in, but so far I've had 17 views, 5 which included ad clicks, netting me another $0.12.  If the trend for March holds I may be on track to make $0.46 this month, easily beating last month's record.

The good news: my view-to-click ratio has risen substantially (16% in February, 29% so far in March).  The bad news: AdSense has a minimum payment policy of $100, so if the current trend stays flat I shouldn't expect to see any payouts for another 302 months.

I've got plenty of time to figure out how to spend my advertising earnings, since the check won't be arriving until May of 2037.  I can hardly wait.

Thursday, March 1, 2012

What is up with these authors?

I enjoy reading the blogs of authors.  I mean, they write for a living, so it makes sense that their blog would be a good read.  Two blogs that I frequent regularly are those of Patrick Rothfuss (The Name of the Wind, The Wise Man's Fear) and Orson Scott Card (Ender's Game, etc.)

The other day I stumbled upon a new author web site belonging to Peter V. Brett, in particular I read this post.  Brett has written two novels, The Warded Man, and The Desert Spear.  Both excellent.  I was looking for information on the third book in the trilogy when I found Peter's own update on the topic.

At first I was disappointed to learn that although book 3, The Daylight War, will be released in a year it is not - as betimes promised - the final book in the trilogy.  The series is, in fact, a "cycle", and will run to five books.  Brett explains the backstory as to how his cycle became marketed as a trilogy, but frankly I don't much care.  Why stretch the story through five books, and cause readers to wait an extra four to six years, if the story can be wrapped up in a trilogy (according to Brett's own comments)?  It seems a bit wasteful, of his talent and of my time.

Then something else about his post struck me, something I found rather odd.  I don't mind if authors want to take their time writing fine books.  Great.  Hopefully we'll all enjoy them that much more when they're published.  And they're art, right, so it's not like they can just be churned out on a schedule.  But in his post Brett goes off on some tangent about how he promised his publisher he would meet certain dates, but they weren't really realistic, and now he's taking more time to complete his next novel.  And here's his explanation as to why it's taking longer than expected:

Oh, I have my excuses. Early this year my part-time assistant (deservedly) went on to a full time publishing job, leaving me with a lot of administrative work that ate away at my writing time. Around the same time I also had major shoulder surgery that left my arm in a sling for months. I’m told it went well and I will be back to full strength without pain at some point, but six months out I’m still only at 75%, and prolonged or strenuous use leaves me in a lot of pain.

And I spend a lot of time with my three year old daughter Cassie. I know I could put her in daycare or hire a sitter as many people do, but these years before she starts going to school all the time are precious, and I don’t want her to ever feel like daddy didn’t have time for her. We do arts and crafts and build marble runs and train sets. We practice her reading and watch Pixar movies. We argue about what she wants for dinner, bathtime and bedtime. And I wouldn’t trade it for anything.
What?  He had shoulder surgery so he couldn't work?  Isn't he a writer?  Does shoulder surgery really preclude him from doing that work?  Couldn't he work with just one arm, or dictate and have his writing typed up for later editing, or something?  You need a little Brett background to really appreciate why he couldn't find a workaround for an arm in a sling.  His first novel, 100,000 words, was written piecemeal during his daily commute to and from work by typing it into his cellphone.  If he had the patience to do that there's no way he should be stopped by a little shoulder surgery.

But then there's his second point: he can't work because he wants to spend time with his daughter?  I get it - I'm a dad, I love my kids, I wish I had more time with them, but is there really no way he can fit daddy time and author time all into a single day?  In other words, do what pretty much the whole rest of the world does?  Come on - how many people can just put off work indefinitely to hang out with their kids?  I'm happy for him, I guess, but to hold this up as an excuse as to why he's not getting his work done just doesn't hold water with me.

But maybe I'm just jealous.