Friday, November 23, 2012

Gratitude and Thanksgiving

Presented in Sacrament Meeting on Sunday, November 18, 2012:

Every year, early in November, we have a Family Home Evening set aside to make “thankful turkeys”.  We sit down together and everyone gets a stack of paper feathers.  We then write down things that we are thankful for on the feathers, and glue them to paper turkeys.  Sometimes it’s hard to get going at first, and some of the youngest family members need a little prompting, but before long we have a wall full of turkeys reminding us of many things we’re thankful for.

Our thankful turkeys cover a wide range of topics.  Some of us stick to the basics, things like food, water, and clothes.  We remember the gift of the world we live in with feathers for the earth and the sun.  We recognize the blessings of being a family with feathers listing mom, dad, brothers, and sister.

Making our turkeys close to Halloween this year meant that Lincoln had to have a feather for candy, something he had recently been enjoying in great quantities.  He also had a feather for Husky, his favorite stuffed dog.

Like I said, when we first start brainstorming what to put on our turkeys it can be a challenge, but when you start to really ponder all of the blessings in your life - and recognize that they come to us as tender mercies from a loving Heavenly Father - suddenly the task changes from trying to come up with a few things you can list.  Instead, you have to prioritize and sort out all of the possibilities and decide which ones get a place of honor on the wall through the month of November.

When I get into this mindset, I would say that I can focus on my life through a lens of gratitude.  It becomes easy to recognize blessings both big and small.  It reminds me of King Benjamin’s sermon to the Nephites, when he reminded them that God, “...who has created [us] from the beginning, and is preserving [us] from day to day, by lending [us] breath, that [we] may live and move and do according to [our] own will, and even supporting [us] from one moment to another …”  He calls us unprofitable servants, given more than we could ever hope to repay.

Fortunately, Heavenly Father doesn’t ask us for repayment.  He does ask us to keep His commandments, and He expects us to remember Him and His love for us.  In Doctrine and Covenants, Section 59, we read:
And in nothing doth man offend God, or against none is his wrath kindled, save those who confess not his hand in all things, and obey not his commandments.
As in all our dealings with Heavenly Father, we are not coerced to thank Him or recognize His role in our lives.  It is our opportunity to cultivate and demonstrate our gratitude, through prayer and through service.

Recall the day the Savior was traveling and entered a village when ten lepers called out to him from a distance: “Jesus, Master, have mercy on us.”
And when he saw them, he said unto them, Go shew yourselves unto the priests. And it came to pass, that, as they went, they were cleansed.

And one of them, when he saw that he was healed, turned back, and with a loud voice glorified God,

And fell down on his face at his feet, giving him thanks: and he was a Samaritan.

And Jesus answering said, Were there not ten cleansed? but where are the nine?

There are not found that returned to give glory to God, save this stranger.
The scriptures do not recount what became of the other nine lepers, but I suspect that their healing was no less complete or lasting than the Samaritan who returned to thank the Savior.  I think it’s surprising that having just asked for His help, and immediately receiving it, there were not more expressions of gratitude from this group.  Contrast this situation with the world we live in today, filled with people, all benefiting from the blessings of our Heavenly Father, and yet so many would not know how to give thanks to God, or give a second thought to expressing gratitude for those blessings.  Those who lack a knowledge or understanding of the source of their blessings have an excuse for what might be considered their ingratitude.  We, on the other hand, do not.  Like the nine lepers who stood before their benefactor as he blessed them, it could certainly be asked of us “where are the nine?” if we do not express our gratitude to God as fully as we can.

President James E. Faust wrote:
As with all commandments, gratitude is a description of a successful mode of living. The thankful heart opens our eyes to a multitude of blessings that continually surround us. President J. Reuben Clark, formerly a First Counselor in the First Presidency, said: “Hold fast to the blessings which God has provided for you. Yours is not the task to gain them, they are here; yours is the part of cherishing them”
When God tutored Moses in the plan of salvation, and showed him the extent of His creations, Moses responded: “Now [...] I know that man is nothing, which thing I never had supposed.”  For me this reverence, this lack of pride, is a natural accompaniment to the grateful peace I feel when I ponder Heavenly Father’s love for me, and for all of us.  The entire plan of happiness, all of the wonderful aspects of this mortal existence where we can learn and grow and strive to become like our Father in Heaven - I feel that gratitude deeply.  That gratitude extends to our Savior, for His atoning sacrifice which elevates the challenges and struggles of mortality from just a learning experience to an opportunity for us to seek and - hopefully - attain eternal life.  My gratitude is expressed well by this hymn:

I stand all amazed at the love Jesus offers me,

Confused at the grace that so fully he proffers me.

I tremble to know that for me he was crucified,

That for me, a sinner, he suffered, he bled and died.

Oh, it is wonderful that he should care for me Enough to die for me!

Oh, it is wonderful, wonderful to me.
I am so grateful for all of the blessings that Heavenly Father has extended to me.  For the most part they may be small and simple things, especially when considered individually, but when I look at my life as the sum of all the blessings I have received: parents, siblings, a peaceful existence, years of experience that have shaped me in countless ways, education, employment, a sweet wife, and the innumerable blessings of fatherhood - the list is long, and the result is an overwhelming sense of indebtedness and gratitude, but also a sense of the love He has for me.

As we pause to enjoy food and family this week, may we also reflect on the Lord’s hand in our lives.  May we express our gratitude and our love, through our actions and in our prayers.  Let us not give thanks just in the abstract sense, but let us thank our Heavenly Father.

Saturday, May 26, 2012

Adversity

Sometimes I worry that my kids won't have what it takes to make it through the tough times of life.  Many times a day they crumble into emotional surrender at the slightest hint of a challenge.  Practicing the piano.  Doing homework.  Picking up toys.  Putting away clean laundry.  Being nice to each other.  Depending on their mental state at any given moment a request to help with any of these requests could be met with apparent incapacitation, accompanied by expressions of agony and supreme indignance that anyone would even think of asking them to do such things.

Today I found that, in fact, when the going gets tough they really can hack it.  And I'm not talking about tough like, "Mom asked me to empty the dishwasher, and then Dad wanted me to mow the lawn" tough.

We went to check out an air show today at the nearby Air Force base.  It's a bit cool for this time of year, and there was some rain in the forecast, but we didn't think that major precautions against bad weather were necessary.  We drove to the base, parked the car, and walked at least a mile to the show entrance.  It was overcast and breezy, and some of the kids in shorts complained a bit.  We basically ignored them, pointed out the cool aerobatics going on overhead, and mostly enjoyed ourselves.

After we had been watching the show for a while the weather suddenly took a turn for the worse.  A full-on thunderstorm arrived with high winds and heavy rain.  We had three sweatshirts for the seven of us.  It was hopeless to try to stay dry or keep enjoying the show.  With droves of other people we began the long walk back to the car, being pelted and lashed with rain that soaked us through and even stung at times.

Given the reaction I might get at home for simply asking someone to put on their shoes or set the dinner table I half expected at least some of them to crumble to the tarmac as the rain poured down on us, and declare that they could not face the walk back to the car.  They did no such thing.  It was a miserable experience, heads down, squinting eyes, fighting through wetness and windchill that made the 49F temperature feel more like 35F.  Amidst the physical discomfort, and even pain, they soldiered on resolutely.

There were a few words of encouragement spoken, but no cajoling or convincing was needed.  They seemed to understand that our plight, though not particularly serious, was also not going to go away by complaining or throwing tantrums.  The only way out was to take care of ourselves, even if that meant marching through the freezing rain.  They seemed to grasp the gravity of the situation without our intervention, and rose to the occasion resolutely.

As we sat in the car, laughing over how cold and soaked we really were, we waited for the heat to thaw us out.  Long before the heat made me feel better physically, my heart was warmed to see how resilient they all were, and from thinking back on the way they had just helped each other through shared trial with such grace and strength.  The air show had been rained out, but in the end I got to see something much more impressive and exciting.

Friday, May 18, 2012

You're Not Helping!

I recently sat down to watch Stargate with the kids.  It has been a long time since I watched it, and it hasn't aged particularly well, but the kids like Star Wars and I thought it'd be something new and different for them.

For those who don't recall the plot line, it follows an Egyptologist who gets mixed up with a secret Air Force project to reactivate a device unearthed in Egypt in the 1920's or 1930's that they think will facilitate long-distance space travel.

There is a fair amount of subtitling in the movie.  The opening scenes follow French archeologists working in Egypt, so all the initial dialog is in French with subtitles.  Later the Egyptologist and his Air Force teammates travel to a distant planet where everyone speaks a dialect of Egyptian, including the supreme alien overlord that they have to overthrow.  Any time the natives or the alien are on-screen everything has to be subtitled.

Of the five youngsters viewing with me, only two are proficient readers, and dialog can go by pretty quickly, especially if you have any interest in anything else happening on-screen.  Because of the crowd's limited reading skills I started reading the subtitles out lead early in the movie.  I thought it would be helpful.

A minute or two into a particularly dialog-dense section of the alien planet scenes my four-year-old turn to me mid-narration and with great exasperation exclaimed, "Dad, stop reading!  I can't hear the movie!"

I think she knew what I was doing - she knows enough to recognize a few words on her own, so she was aware that those words on the screen had some sort of meaning.  I was intrigued that despite the fact that what I was saying was very much applicable to the movie, it was not a vital part of the movie she was watching.  Admittedly, Stargate is rated PG-13 (I did some selective editing with the fast-forward button through some sections) so it's not really geared for her intellectual level.  Even so, she was engaged by much of what was going on, including - apparently - the non-English dialog.

She didn't have to understand the meaning of what everyone was saying because she wasn't really trying to take in the whole movie the way I would.  On the contrary, her goal was to take in the overall experience.  If people want to speak in another language then we should let them, and not worry so much about what it is they're saying.

It makes me wonder what else is going on in their young brains that I might never glimpse without inadvertently ruining some experience while trying to be helpful.  Pretty fascinating stuff, I bet.

Wednesday, May 16, 2012

With a Whimper

It has been a week since Obama came out as openly in favor of gay marriage.  Everyone keeps saying that the economy is still the main topic of interest for this election cycle.  For me having gay marriage on the table is much more significant than the economy.  Here's why.

Given two candidates, both of which are saying they want the economy to improve, how do you decide which one to support?  It's possible you tell the guy who has already been working on the economy for four years that he has had his chance, and you bring in someone new to take a crack at it.  However, even if you don't like the current state of the economy you might just support the incumbent, based on an affinity for his race or the way he so readily supports the socialist lifestyle you're longing to live.

But what if those two candidates come squarely down on two different sides of a moral issue.  Can a Bible-loving American Christian honestly support the candidate who is promoting gay marriage?  In my mind that fact ought to clearly trump any other connection a voter may feel for Obama.  I am already visualizing election night, as returns come in from across the south in favor of Romney.  A clear message to Obama, and all the other outspoken supporters of gay marriage, letting them know that the choice they've made is wrong and this great country is not going to stand for it no matter how progressive they try to make it sound.

Jesse Jackson recently got in line behind Obama, announcing that the fight for gay marriage is akin to the fight against slavery.  He's so wrong I can hardly stand it.  Choosing to engage in a certain behavior does not qualify someone to receive special civil rights!  As soon as we make that leap we open the door to nonsense like they now have in the Netherlands, where pedophiles have banded together to form a political party and fight for their rights.  Their right to be pedophiles?!?  That is nobody's right!  And yet, once the homosexual agenda manages to break this ground it's only a matter of time before we follow the Dutch down their ridiculous path.

What's left to do, but wait for the foundations of society to slowly crumble beneath our feet.  Fortunately, I still hold out hope that the tide has not turned quite yet.  As long as the voice of the people unites in support of morality I can continue to hold out hope for this great country.  If, to my great disappointment, the tables are turned in November, and Obama emerges victorious, then his win will signal a major loss for all of us.  As Mosiah, a prophet in the Book of Mormon, put it:
[If] the time comes that the voice of the people doth choose iniquity, then is the time that the judgments of God will come upon you; yea, then is the time he will visit you with great destruction even as he has hitherto visited this land. (Book of Mormon | Mosiah 29:27)

I really hope we're not to that point yet.  I think we'll have a definitive answer, come November.

Monday, May 7, 2012

The Videographer's Apprentice

More than once I've read, on-line, the statistic that every minute 60 hours of video footage are uploaded to YouTube.  I find that number shocking.  I realize that YouTube has millions of users, but even so it seems like a lot of footage.  I think the "does not compute" part of my brain is mainly transfixed on the idea that there will always be more footage on YouTube than any single person could consume in a lifetime because the fire hose can't be shut off, and the influx is bound to increase over time.  I've had a few thoughts on the matter:

  • Take a baby born today, with an assumed lifespan of 75 years.  Wait around for 7 days, 15 hours.  BAM!  They've already had an entire lifespan-worth of video footage uploaded, assuming they watch non-stop for the rest of their life.  Sleep is not an option.
  • The last HD video I produced weighed in at 46 MB per minute.  Assuming that is a typical file size, every minute YouTube takes on 164 GB of data.  In a single day that's 236 TB of data.  Over a year they're logging 86 PB (that's PetaBytes, or 86x10^12)!  Where are they keeping it all?  At this rate won't the Google data center eventually have to occupy all available space on Earth just to host our inane videos?
  • Assume that American television has 100 channels producing original programming.  (I think that's generous, but just assume.)  Assume that in a given year there's original content for 6 months of the year, and the original content is aired 6 days a week, and it amounts to 9 hours each day (morning, daytime, and primetime).  This means the professional content being broadcast in American each year is around 145,800 hours.  YouTube receives an equivalent amount of content every 40 hours!
It's a mind-boggling amount of video content.  It seems like a real waste of resources right now, but I expect it'll come in handy some day when we start sending people on interstellar exploration missions.  At least they'll have plenty of viewing options to choose from on the seat-back monitor as they make their way to Alpha Centauri.  Care for some peanuts?

Wednesday, April 25, 2012

I've Had Better Days

My grandfather was the quintessential engineer.  He was also a professor, and his daily wardrobe - without fail - consisted of a white dress shirt, sporting a pocket protector, and a pocket full of writing implements.  I've followed in his footsteps so far as pursuing the engineering profession, and I regularly carry a pen or two in my shirt pocket, but I've never gone so far as to get myself a pocket protector.  Today gave me pause when this happened:


I've been a practicing engineer for 11 years now, and it's safe to say that for every day I've gone to work wearing a shirt with a pocket I've had a pen in that pocket.  So that's at least 2,200 opportunities for a catastrophe like this to happen.  I guess I should feel fortunate that I've come so far without a mishap.  And I do.

But why couldn't I have been wearing a shirt that I don't like?  Maybe it's time to follow in grandpa's other footsteps.

Saturday, April 21, 2012

The Ninjas

I love these lyrics:

The ninjas are deadly and silent
They're also unspeakably violent
The speak Japanese, they do whatever they please
And sometimes they vacation in Ireland
If you haven't heard Barenaked Ladies sing this song then do yourself a favor and click here.

Wednesday, April 11, 2012

Asparagus Fries

Tonight was leftover night.  By happy accident we stumbled upon a new treat: Asparagus Fries!

This was the creative process:

  • Wash asparagus
  • Break off root end
  • Lay in single layer on baking sheet
  • Bake 15 minutes at 350 degrees
  • Enjoy some portion of asparagus
  • Put remaining portion in refrigerator for 3 days
  • Remove asparagus from refrigerator
  • Lay in single layer on baking sheet
  • Bake 10 minutes at 350 degrees

Voila!  Asparagus Fries!  They're crispy, with a nutty flavor, and yet they're asparagus too.  Super tasty.

Bon Appetit!

Tuesday, April 10, 2012

Dear Facebook

To whom it may concern,

I understand, based on yesterday's news of your acquisition of Instagram, that you are in desperate need of a new VP of Merger's and Acquisitions over there.  Clearly somebody is allowing you to pay way too much for your newly acquired businesses, and I'd be glad to step in and put a stop to this nonsense.

Let's have a look at what you overpaid for Instagram.  By the numbers:

  • 1 office
  • 12 employees
  • 30 million members

Here's what I'd offer:

  • $500,000 for capital assets
  • $500,000 per employee (roughly four times their average annual salary, I'm guessing)
    • 12 x $500,000 = $6,000,000
  • $671,000,000 for the members
    • This assumes advertising revenue of $0.15 per week for 20% of the members over 20 years, accounting for inflation
Total Cost: $677.5M

For a total savings of: $322.5M!

You're welcome.  But before you let the old VP go, please have him set my new salary.

Sincerely,
David Sevy
Aspiring Facebook Executive

Monday, April 9, 2012

Daylight Savings

We're now a few weeks past daylight savings, although my VCR (purchased in 2000) thinks it was a more recent event.  I manually reset the time when we "sprang forward" on March 11th.  Over the past weekend it re-adjusted itself, so that it's now an hour ahead of where it's supposed to be.  Thanks technology!

I hear a lot about daylight savings every time it rolls around.  Around our house there is no love lost on having to roll the clocks forward and backward, or throwing off the kids' schedules.  Fortunately springtime is not the worse of the two time changes, since it effectively gets the kids to wake up later.  Fall is the real problem, when all of the sudden the early risers are up way too early.

I've heard the whole phenomenon attributed to Ben Franklin, although this year I read that he didn't actually advocate a changing of clocks.  His idea was more along the lines of ringing church bells to get people up earlier when the sun rose earlier.  That sort of communal, forced wake up is probably not ideal either, but more and more I look at Arizona (which doesn't observe DST, for those not in the know) and I think they may actually be on to something.

In this day and age it's difficult to believe that time-shifting is really doing much to save energy.  It's definitely no longer necessary to rise early to get all your work done for the day, unless you're actually a farmer.  For the rest of us we have the miracle of electric lighting, which I'm sure most of us use throughout the day regardless of the sun's position outside.

Consider the power consumed in your home, and I think you'll find that the energy going into lighting is a fraction of the total consumption.  Appliances run all hours of the day, and don't get less use because the clocks change.  Heating and cooling systems run according to timers and thermostats.  There may be some efficiency from having higher or lower settings in "off" (sleeping) hours, but not much.  Comparatively, lights are a miniscule power draw.

It's time for a change!  The next candidate for state legislature that runs on a platform of Daylight Wastings will definitely be getting my vote.

Thursday, April 5, 2012

Lego Fallingwater

The Lego Architecture series has intrigued me since it first appeared, and this past Christmas I received a set of my own.  I thought it'd be fun to document the build process brick-by-brick.  A YouTube search revealed that my idea was not original by any means (over 50 similar videos!) but I still thought it'd be fun.  I've been wanting to try some stop motion with my older Sony digital camera anyway, and this seemed like as good a subject as any.

I built a camera stand from Legos, lacking a small enough tripod for the height at which I planned to shoot.  The whole setup was simple, and admittedly crude, and I would make a few changes if I were to repeat this process.  For one, the camera stand needed to be slightly more rigid, as evidenced by the slight jitter between frames.  For another, although the Sony image quality looks good it requires two AA batteries to run and this film went through two sets of batteries.  In the future I'll be getting an HD webcam if I decide to produce another similar film.

The "Studio" Setup

Although the stop-motion build-up was fun, I really enjoyed adding the live waterfall to the scene.  I used Blender with the Blam add-on for static camera matching.  The whole matching process was very straightforward once I got the latest version of the add-on installed.  (NOTE: when upgrading an add-on from an older to a newer version it's necessary to remove the old version, install the new version, AND restart Blender.)

I don't think I got the Lego geometry, for channeling the fluid simulation, exactly right.  It looks pretty good in most spots.  The 3D view of the geometry is shown below.  I tried to constrain the flow as it left the Lego creek bed.  This worked for the first part of the simulation, but eventually it overflowed and ran out the sides.

3D geometry matching the Lego creek bed (roughly)

To overcome this "leakage" problem I ended up creating a mask and compositing the Fallingwater image over the top of the fluid simulation sections that I wanted to hide.  I know where the masking is happening, and it doesn't look particularly obvious to me.  Hopefully that's true for the casual viewer as well.

This was the node setup used to combine the two shots and mask the overflow.

Tuesday, April 3, 2012

Vanity, In Plate Form

I do not get why people find it worthwhile to put personalized plates on their car.  Even so, I do enjoy checking them out when I'm on the road.  It's fun to try to decode them, usually.  Occasionally you come across one that doesn't make any sense - I wonder about the people who pick plates that aren't understood by their apparent audience, namely me.  I mean, not just me, but if you're picking something to show to the general public, of which I am definitely a member, shouldn't they be able to understand it?

This wouldn't be such a big deal to me if it weren't for the fact that people are paying money for these things.  It's a relatively trivial amount, I suppose, but even so it seems like money wasted.  I mention all this because today I found another type of personalized plate that I find as bad as those that are incomprehensible.  In this case, however, the plate was the exact opposite of being hard to understand.

During my morning commute I found myself behind a car that looked something like this:

The Volkswagen GLI

As the caption indicates, this is a Volkswagen GLI.  And in the case of the car I saw this morning, it was sporting this personalized license plate:

VWGLI

What?!?  I'm already driving right behind you, where the manufacturer has clearly marked the car's make and model with chrome logos and lettering.  As seen in the photo, this is also true for anyone with a front-side view.  So why would you possibly want to spend any amount of money to duplicate that information for anyone in the vicinity of your vehicle?

Maybe this driver took some misguided advice from the Utah Department of Motor Vehicles:

Hello?  This does not tell me "why" to choose a personalized plate, just what to put on it!  Somebody should have explained to this driver that the DMV is only out to get more of your money.  You do not, in fact, have to take their advice.

I do not get it.

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.

Tuesday, February 28, 2012

Cloning

After watching Tom Jelfs' "Blend That Film" tutorial:


 ... I decided to try out this technique myself.  I was using Blender 2.61 at the time.  Following Tom's instructions was pretty straightforward.  I wanted to expand on his ideas and branch out a little bit, so instead of creating twins I went for triplets.

Here's the final compositor node layout:


The only real variation between what Tom did and my layout is that he only had one mask to deal with, which he put into a renderlayer which could be used directly in the compositor.  I had three sets of overlaid footage, requiring two masks.  I figured out how to put each mask on a different renderlayer, but only the active renderlayer was updated in the compositor.  There may be a way to make this work correctly, but I didn't find one.  My workaround was to render the masks out into two image sequences, and then feed the mask files back into the compositor.  It worked great, but it did add an extra render step.

There were a couple of lessons learned in this process:
  • The lighting between my three takes, even though they were filmed consecutively with minimal interruption, was different enough to be seen in the final composite footage.  I attempted some manual color balancing to minimize the effect, but there was no way to do that effectively for the whole film.  In the future, if I was really concerned about matching the shots, I would be more conscientious about controlling the lighting (i.e. no natural daylight).
  • The leather couch in the shot changed its form enough between takes that it was noticeable in the final result.  I would pay closer attention to the setting, and eliminate hard-to-control elements like leather upholstery if they might create inconsistencies between shots.
  • I came across a handy application, the AoA Audio Extractor, when finishing the soundtrack.  This software allowed me to pull the audio track off each of my three original clips.  I then dropped each track into an Audacity project and created a single audio file to merge with the frame sequence output by Blender.  The audio and video was combined using VirtualDubMod.
Even though some things could have been done better, I was still very pleased with the final film.  See for yourself!