Tuesday, October 29, 2013

The Rescue Mission

The recent US Government Shutdown came at great expense to the American people.  One of the side effects was that our national parks were shut down for two and a half weeks.  Ordinarily this is merely an inconvenience, but in my case it was a serious problem:  the Sunrise area closes on October 15, and the shutdown meant that my pinhole cameras would be irretrievable until next Summer.

... or would they be?  Benson suggested that we could boldly hike up from the White River campground and rescue the cameras in an epic 9-mile, 2500-ft elevation change day hike.  And so the rescue plan was born.  Remarkably, all of my cameras were still intact and where I left them and had not been found by curious or vigilant hikers.  A few of the results came out looking great, but I learned a few more lessons:


  • The pinhole really should be as small as possible for a sharp image.  If a camera is to be left out for months or longer, a very small sewing pin will suffice.
  • If the can is mounted vertically, then the pinhole should be on the cylindrical edge of the can and near the top of the can as it is mounted.
    The pinhole should be near the top of the can assuming the can is mounted vertically.
  • Ideally, a subject should either have extreme color variation, be shiny, or be partially transparent.  The shadow of the subject should hit the can directly for part of the day.

Here are the successful photos:

Taken from the base of a tree on the Sourdough Ridge trail, exposed June 30-Oct 26 2013.
Camera from a dead tree on a rock outcropping.  Exposed June 30-Oct 26 2013,
Taken from behind a stump.  Exposed June 30-Oct 26 2013.

Thanks to Benson for challenging Simiao and I to undertake this daring rescue.  He took some photos of his own that you might enjoy.

Mission successful!


Wednesday, October 23, 2013

I Am Now Engaged


I asked Simiao to marry me on Sunday morning after breakfast, and she said yes!  This is really important to me, but at the same time not particularly surprising.  We'd been together for 3 years, 1 month and 1 day by her count.  I'd consulted with her about her favorite designs and stones when ring shopping.  We'd talked about a future together.  By the time I asked her, her answer was a foregone conclusion.

 You wouldn't have known that from how nervous I felt going in.  When I was on my way to the airport to pick her up, and when I was driving up to The Inn on Orcas Island for our weekend getaway, I couldn't drive at a constant speed because my feet were shaking nervously.  I didn't sleep at all the night before, and if I did start to doze, I had nervous dreams like this one:

An actual dream I had the night before I proposed to Simiao.  Proof that my imagination hates me.
Finally, at breakfast, I couldn't finish the delicious eggs Florentine and my hands were shaking badly enough that I could not hold my teacup steady.  I did have the clever idea to wait until the end of the meal to propose because I didn't want Simiao to cry and ruin her makeup and have to sit through the meal that way, and it's good that I did because no sooner did I take the box out of my pocket than she started to cry.  Her crying made me forget exactly what I wanted to say, which I had carefully rehearsed about a thousand times.

What I intended to say.What was actually said.
Simiao, do you remember what I said I wanted from a relationship when we first met?
I said I wanted compromise, patience, and reciprocity.  
You gave me all of those things.
On top of that, you are generous, 
brilliant,
hardworking
honest,
loving,
adventurous,
and every day you challenge me to be a better person and a better partner.
I love you, and if you feel the same way, then will you marry me?
Sweetheart, don't cry yet, I haven't even started!
Simiao, do you remember what I said I wanted from a relationship when we first met?
I said I wanted compromise, patience, and reciprocity.  
[Hug break]
You gave me all of those things.
On top of that you are generous,
brilliant,

... and a bunch of other things I can't remember right now because I'm so nervous...

every day you challenge me to be a better person and a better partner.
I love you, and if you feel the same way, then will you marry me?

Thankfully, she forgave me for forgetting my lines and said "Yes" anyway.



Actually, I think the hardest part of the road to engagement was coming to a better understanding of love.  A long time ago I was at a friend's bachelor party and he was having a conversation with a much, much older gentleman.  The older gentleman was talking about how lucky my friend was to be in love his fiancee.  The older gentleman related that he had never actually loved his wife who he had been with for decades and with whom he had several children.  The possibility that this could actually happen to a person was terrifying to me, and because of this I spent years carefully examining every romantic relationship I had:  Do I actually love this person?  How do I know if I actually love this person?  What if this feeling isn't actually love?  What if I love someone else more?  How do you even compare that?  This is a fruitless line of thought.

The table where I proposed to Simiao.  The best thing about this table was that since I was facing away from the rest of the room, I didn't have to see their eyes on me.

I've heard it said that people spend a lifetime looking for the feeling they get the first time they fall in love.  I've come to believe that this is indeed true.  People also spend a lifetime looking for the feeling they get the second time, the third, the fourth, et cetera.  I have learned that every person you ever love, be it your parents, your brother, your best friend, or a romantic interest, you will love in a different, unique and irreplaceable way.  Thankfully, loving one person romantically isn't mutually exclusive with loving any number of people Platonically.  Your family will still be there, your friends will still be there, and your partner will understand that it is not necessary or desirable that you should share every single hobby and interest and that these other people are an essential part of your life as well.  This simple realization quieted my concerns about whether the way I felt about Simiao was right and let me instead focus on why, as I should have been all along.

Thursday, September 5, 2013

Why is Platinum More Expensive than Gold?

During a discussion at dinner today, I asked a question that seems silly and naive:  why is platinum more expensive than gold?  The answer, I think, is interesting and surprisingly complicated.

I read an article recently that said that the majority of the universe's gold and platinum originates from neutron star collisions, and in fact that 7 to 10 times more platinum comes from these collisions than gold.  Figure 1 shows a reproduced and modified figure from the article where they show the expected mass fraction ejected of a variety of atomic mass numbers.  It's noteworthy that gold is stable only at mass number 197, whereas platinum is stable at mass numbers 194, 195 and 196.  Roughly 1/3 of the platinum around today is atomic mass 194, 1/3 is 195, about 1/4 is 196, and most of the rest is atomic mass 198.

Figure 1:  Adapted from Goreily et. al. (2011).  Mass fractions of heavy elements ejected from neutron star collisions.  This is believed to be the major source of heavy elements in the universe.
If we assume that all of the ejecta at each mass number ends up being the corresponding element, then summing the mass fractions for platinum 194, 195, 196 and 198 in figure 1 we see that the mass fraction of platinum ejected from the collision of two neutron stars is about 0.015, and the mass fraction of gold ejected is 0.002.  That means that about 7.5 times more platinum coming out of our collision than gold.

Now our chunks of platinum and gold hurtle out of a gravity wave inducing neutron star collision into space and eventually land in our solar system in the form of meteors.  There's no reason to believe that platinum and gold have separated out significantly on their way to Earth since the abundance of these elements on Earth are 1.9 micrograms/gram for platinum and 0.16 micrograms/gram for gold--so there is roughly 11.8 times more platinum than gold in our planet as a whole by mass.

However, the platinum in the core and the mantle is all but inaccessible to us.  The abundance of platinum and gold in the crust on the other hand is roughly equal at 0.0037 parts per million for platinum and 0.0031 parts per million for gold.  It is still not worth mining either unless some natural process concentrates it, and it seems that there must be fewer such natural processes that lead to the concentration of platinum since only 179 tons of platinum were mined in 2012 compared to 2,700 tons of gold.  For instance, gold deposits form at fault lines when rapid pressure changes during earthquakes cause dissolved gold to precipitate from water underground.  I could not find any articles on natural mechanisms for concentration of platinum.

Finally, there is human history working in favor of gold.  Gold has been known and collected for as long as recorded history, whereas platinum was only recently discovered in the mid-1750s.  Nearly all of the gold that humans have ever collected is still with us in one form or another, and it is estimated that all of the gold that humans have ever possessed equals about 283,000 metric tons, compared to only about 6,000 metric tons of platinum.

So, thanks to geology and human history, we have gone from platinum being 7.5 times more common than gold in neutron star collisions to being substantially scarcer than gold in our possession.  Without considering global demand, it's still fair to say this scarcity in supply is why platinum is more expensive than gold.

Saturday, August 3, 2013

Folding Kinetics of Riboswitch Transcriptional Terminators and Sequesterers

A golden buprestid found near Port Angeles
sparkles like an exotic jewel.
A paper that I started as a graduate student, Folding Kinetics of Riboswitch Transcriptional Terminators and Sequesterers, was recently published in Entropy.  I won't reproduce the paper here, but instead I wanted to give a layman's explanation of what we found.

A riboswitch is a piece of RNA that serves both as a detector of some kinds of molecules and a switch to turn a gene's expression on and off.  For example, bacteria might be able to consume a certain kind of nutrient.  If the nutrient was found in the bacteria's environment, it would turn on a gene to make some proteins that can metabolize the nutrient.  The bacteria could use a riboswitch to sense the nutrient and to turn on the gene to digest it.

Some riboswitches work at the time of gene transcription, and work by stopping the RNA polymerase from completing the messenger RNA.  This process is called transcriptional termination.  Obviously, these riboswitches must perform their task quickly, because the RNA polymerase is able to make a gene on the timescale of seconds.

Other riboswitches work at the time of gene translation, and work by preventing a ribosome from binding to the messenger RNA and making the related protein.  We call these sequesterers.  The messenger RNA can be present in the cytoplasm for minutes or hours, so these riboswitches have a much longer timescale on which they may perform their task.

All riboswitches, like proteins, must fold into a particular shape in order to perform their tasks.

Using the open-source ViennaRNA software package, we simulated the folding of thiamine pyrophosphate riboswitches that use either the mechanism of transcriptional termination or sequestration to control their related genes and study the time it takes each type of riboswitch to fold into its functional shape.  We find evidence that the transcriptional terminators, which must operate on a faster timescale than sequesterers, are naturally selected to fold more efficiently.

Sunday, July 28, 2013

Moonrise

Piper's Bellflower, growing in the
Alpine meadows at Hurricane Ridge.
I was at the Olympics this weekend with a friend, and on Saturday night after dark we went out with our cameras to try some long exposures.

It was dark there!  Even though we could clearly see the city lights from Port Angeles, it was so dark that the plane of the Milky Way was obviously visible in the night sky.  Feeling ambitious, I decided to take a very long 30 minute exposure with an inspired shot.  There was a teardrop camper parked on his parents' properly, resting idyllically under some fruit trees with the mountains in the background.  I decided to brightly light-paint the mechanical teardrop camper with an LED flashlight, and then light paint the underside of the trees more gently with the golden hue of an incandescent.  12 minutes into the shot, Nature decided to step in and paint everything else as the moon rose over the Olympics.  The result is one of my favorite photos I've ever taken.  Thanks to Benson for his assistance in light painting this shot!

30 minute exposure, ISO 100, f/3.5.  Light painted.  No photoshopping.  

Thursday, July 25, 2013

An Arduino Time-Lapse Camera Using ArduCam

While experimenting with my pinhole cameras, I did a lot of thinking about capturing and displaying the passage of time.  Day and night, the change of seasons, sunrise, sunset, moonrise, moonset, tides, rush hour, busy times at restaurants, even life and death marks the passage of time.

There are plenty of commercially-available time-lapse photography devices.  These require either an AC power source, a solar panel or a beefy battery, expensive photography equipment, and are large and easy to spot.  Between the size and the expense, this strongly limits the duration of time lapse I would be able to take even if such a device wasn't prone to being stolen by the first philistine that came across it.  My goal is to make the smallest, most energy efficient and least expensive camera possible so that I am free to set them everywhere and see what the passage of time shows me.

To do this, I decided to give ArduCam a try.

Actually, I found ArduCam pretty disappointing and difficult to use for a few reasons:
  • The open source libraries don't use any modern version control system like GitHub.  They're just a few files.  What's more, they fail to compile under Linux without changing the #include statements to correct for case-sensitivity.
  • While the ArduCam website shows full-resolution images pulled from "supported" camera modules, the ArduCam Rev. B shield is unable to take bitmap images greater than 320 by 240 pixels because it has only a 3 megabit buffer.  For cameras with on-board JPEG compression it is able to take higher-resolution images, but they come out looking fuzzier than a Georgia peach because they must be made to fit in the buffer.  If these images were indeed taken with an ArduCam shield, they weren't done with any code made available on their website.
  • The first "supported" camera I bought, the MT9D111, failed to take any worthwhile picture at any resolution.  I was only able to get it working with the OV2640 module.
Sample image taken with the "supported" MT9D111 camera using an example from the open-source ArduCam code.
So, the ArduCam was a bit of a let-down.  It is actually pretty impressive that someone figured out how to hack together a camera that interfaces with an Arduino, but it's not particularly useful.  The image size is pathetically small and the power draw is substantial (I'm able to take about 370 images on 4 AA batteries).  It may be useful for some applications, but quality time-lapse photography is not going to be one of them.

Let's take a look at my camera, my code, and the results.

My ArduCam

My camera uses the following components:
  • Arduino Uno Rev. 3
  • ArduCam Rev. B Shield
  • OV2640 Camera Module
  • 2GB MicroSD Card
  • 4 AA batteries
Assembly is positively trivial.  Everything just fits together.  Build time is under a minute.

Note that while the ArduCam board can be made to work with the Arduino Mega, it requires some rewiring because the pinouts are not exactly the same.  The power efficiency could have been improved somewhat with a DC step-down buck converter, but I decided against doing this because even if the power efficiency was greater the image resolution was unacceptable.

An image taken with the OV2640 out an office window at Google Seattle.

The first iteration of my code simply took a picture, then waited a minute using delay before taking another, repeating until the camera ran out of battery.  This managed to take 364 bitmap images until it ran out of juice.  The second iteration of my code made use of the Sleep_n0m1 library to place the Arduino in sleep mode and wake it up each minute.  I had hoped that this would improve battery life substantially, but instead it managed only to take 370 images before running out of battery.

I assembled the time-lapse photos into a video using the following command with avconv on Linux:
avconv -f image2 -i %08d.BMP output.avi


Overall, this was an enlightening exercise but it's clear that if I want a very long-term and reasonably high-quality time lapse photo solution, the platform for that is not going to be ArduCam.

Monday, July 1, 2013

More Pinhole Photography from Mt. Rainier

I pulled 4 of my original 6 pinhole cameras from Mt. Rainier's Sunrise Area last weekend.  The results confirmed some follies of my original design and placement strategy:  First, the camera should be mounted vertically like the soda can sits.  Mounting the camera horizontally does not give the massive depth-of-field effect that I expected it to.  Second, the pinholes were way too large.  1mm diameter pinholes are way too big.  Finally, I underestimated the vigilance of passers-by.  The mountain was only open to visitors for three days total while my cameras were there, and one was crushed by some curious tourist during one of those three days.  Only one of the four cameras that I retrieved gave what I would call a worthwhile shot.  One thing that I like about it is that you can see the first few snowfalls:  horizontal bars show the ever-increasing level of the snow with the trees disappearing behind it over time!

Pinhole photo from Mt. Rainier's Sunrise area.  1mm pinhole, can mounted horizontally, and exposure lasted from October 6, 2012 to June 29, 2013.