While I was recently posting a photo to Instagram, I had cause to wonder what
would happen if I applied the same filter to a photo multiple times. My wonder
was caused by an interesting side-effect of the app’s workflow on my phone.
The typical steps to take when posting to Instagram are these:
Tap the “take a photo” button.
Compose a photo and tap the shutter button to take the photo.
Optionally apply a filter, border, and other effects to the photo.
Optionally add a caption, tag people, add a location, and select social
media sites to send the photo to.
Upload to Instagram.
However, something happens behind the scenes between steps 3 and 4: the app
saves a copy of the edited photo to the phone. I have found this useful in
the past, particularly when I get to the captioning step and have to switch
out of the app to do something else. When I get back to the app I have often
lost my work and need to compose a photo all over again. But instead of taking
a new photo (and editing it again) I can browse my phone and find the photo I
edited the first time.
At this point, the app does not know I just loaded a photo that the app itself
created moments ago, so I get the option to apply a filter and otherwise edit
the photo again. So I began to wonder what would happen if I took advantage of
this to apply multiple filters to a photo.
What Is Idempotence?
An operation is idempotent if it “can be applied multiple times without
changing the result beyond the initial application.”1
So, an Instagram filter is idempotent if, after the first application, any
subsequent application of the same filter does not change the photo in any way.
Applying the same filter several times is the same as applying the filter once.
My gut feeling is that Instagram filters are not idempotent, and if I apply a
filter to the same photo over and over the photo will look crazier and crazier.
Let’s see if I am right.
We’ll start with a boring photo of this fine trilby.
For this exercise I chose the Amaro filter. I liked how it helped bring out the
pinstripes on the hat. Here is the original photo with no filter (top-left),
Amaro applied once (top-right), twice (bottom-left), and thrice (bottom-right).
Already the photo is getting out of control. My hat is turning violet! And I
was right, Amaro really brings out the pinstripes. Also the filters are not
idempotent. But I kind of expected that anyway, I just needed an excuse to play
around with multiple filters!
But maybe after a few more applications of the filter, the photo will
stabilize. Let’s keep going. Here is the same photo with Amaro applied four,
five, six, and seven times (top-left, top-right, bottom-left, bottom-right,
There is still a fair bit of difference betwen Amaro × 4 and Amaro
× 7. We’re giving up violet and moving into the reds. What next?
The changes are slowing down now, but it is still easy to see differences.
Now we are all the way up to Amaro × 15 (bottom-right). It is almost
indistinguishable from Amaro × 14. We’ll stop here.
All the Filters?
While we’re at it, how about one more crazy experiment before we’re through?
What happens when every filter is applied to a photo? Here is the original
photo with filters applied cumulatively in this order: Amaro, Mayfair, Rise,
Hudson, Valencia, X-Pro II, Sierra, Willow, Lo-Fi, Earlybird, Sutro, Toaster,
Brannan, Inkwell, Walden, Hefe, Nashville, 1977, and Kelvin.
About halfway through we can still kind of tell it is a trilby, but by the time
we get to the last four filters, who can tell what that is a photo of? Nobody,
Obviously, applying every filter at once is overkill and no one is going to do
it. But we might get good results from combining two or three filters. I wonder
if the app will ever support selecting multiple filters natively. It might make
a useful addition but it also might make more people over-filter their photos
and that would just make me sick.
I kept the link in my inbox and thought about it for a while and finally, in
May, I decided that no matter how many unpleasant memories of camping as a Boy
Scout I had, I could make this fun.
Besides, I’m an adult now. I can be responsible and wear sunblock.
So I registered for the workshop and Rebecca told me she was actually really
surprised that I did. Maybe she does know me after all.
At first it was going to be just me and Emily. But Rebecca thought it would be
more fun if we could find someone else to go with us (Rebecca wouldn’t touch a
tent with a ten-foot tent pole herself). I talked to my friend Josh, who has a
daughter only slightly younger than Emily, and they agreed to go on this
adventure with us.
Because we were camping as part of a workshop, the Parks Deparment provided
most of the basic equipment: a tent, air mattresses for the adults, sleeping
pads for the kids, a lantern, a cooking stove, and pots and pans. We only
needed to bring food, clothes, towels, soap, and any other fun things we
wanted. And let’s be honest, we never used the soap.
I had no idea what kind of pots and pans we would encounter in our kit so I
brought along my own cast-iron skillet just to be safe.
We drove out on Friday night (21 June) and stayed until Sunday morning. We got
to choose our own campsite, and we got a nice one right on the shore of Inks
Lake. We spent a long time in the water on Saturday.
We also got to do a little fishing (I caught a 2-inch fish!) and kayaking.
Emily had a nice relaxing kayak ride while I rowed her wherever she asked me
We saw a fair bit of wildlife, too. We would often see lizards zipping around
in the grass and on the trees. A deer came through our campsite early Saturday
morning. Two ducks came to the shore at our site, probably looking for free
food. We also spotted a heron in the water near our site. A pair of cardinals
took some interest in us and even made off with a bit of hot dog bun Emily
dropped on the ground. We also saw a wasp that was possibly as big as the fish
The weather was really nice and we all had a wonderful time! We agreed that
this was definitely something we want to do again.
The key thing to remember is that you are not enriching your experiences by sharing them online; you’re detracting from them because all your efforts are focused on making them look attractive to other people.
Today while doing some programming work I had the opportunity to take a closer look at CSV and JSON. My programming experience up to this point has really only included consuming these formats. Today I wrote code to produce these formats.
We have an application where I work that exports data to a MySQL database. A while age, I wrote a very simple web app to make viewing reports from that data easier. Until today, the reports were only available as tables in an HTML page.
After the work I did today, the same reports are now available as CSV (to easily import into spreadsheet apps like Excel and Numbers) and JSON (to easily pass the data to other external applications).
It was enlightening to learn about the quirks of both formats. I had never before considered things like what characters need to be escaped in strings and what character encoding I ought to use.
It seems like whenever I get deep into programming where text input and output is concerned, I always run into problems with character encodings. I complain about this to my programming-minded friends often.
I honestly don’t know what use the JSON output will be, but I was in the mood so I added it.
I hope to write about my web app in greater detail in the future.
As a working man, it is usually difficult for me to truly appreciate the work my
wife does at home. The only insight I am privileged to receive in this area
comes when Rebecca is sick. For the last two days I have been mostly running the
show at home.
Rebecca rang in the new year by lying in bed with a fever for most of yesterday
and today. Today was supposed to be my first day back at work after the holiday
break, but that got postponed due to Rebecca’s illness.
To make things interesting, my 12-month-old daughter Molly has an incessantly
runny nose. Whatever illness is inflicting itself upon her, it is making her
sleepy a little more than usual and cranky when she is awake.
She also takes offense to having her nose wiped. I have an aversion to snot,
especially when it comes in volumes that Molly seems capable of producing. So we
butt heads over that throughout the day. My one consolation is that she does sit
still (and seems to enjoy) when I rub lotion on her chapped face.
The weather has been relatively miserable: cold, wet but not rainy, overcast,
depressing — much like what I remember from my winters spent in England. That
makes it hard to conjure up anything resembling a desire to leave the house.
I must be a weak one, because on only my second day of being in charge I longed
for a chance to get out of the house. I managed to contain my excitement when I
learned that we had some books that needed to be returned to the library. My
daughters were well-behaved even though Emily (3) chose some two-star books to
take home. I think for her checking out books from the library is like rolling
dice — she randomly pulls a few books from the shelves and we hope they turn
out decently interesting. She had bad luck today.
Emily was excited to hold on to the dime I brought so I could pay a late fee.
She proudly presented it to the librarian when we checked out, and now I’m
square with the library.
I felt like we had not enjoyed being out of the house long enough so we made a
stop at the grocery store and I let Emily choose something from the donut
shelves. She picked out a pan dulce only because it had pink frosting. It was
big but she finished the whole thing by the time we got home.
One thing I really enjoy about being in charge is cooking dinner. Last night I
made fettuccine Alfredo. Rebecca liked it, but the real barometer by which I
measure the success of my cooking is how much Emily eats. Happily, she cleaned
her plate last night and had even more for lunch today.
Tonight I made baked potato soup. This was great because the recipe called for
an entire package of bacon.
Rebecca seems to be on the mend, so I imagine I will be back at work tomorrow
with my nose to the grindstone.
One of my goals for 2013 is to get rid of clutter. I started by throwing away a bunch of hangers that had been hiding in the back of my daughter’s closet for at least a year. If I haven’t used them for a year, chances are I won’t use them at all.
I also threw out some Xbox controllers I had in my office. I don’t even have an Xbox. I haven’t had one for a long time. I just have this tendency to hold on to things I believe might be useful someday. I can usually make a case for anything being useful eventually.
I have spent enough time on Pinterest that I have started to see crafty ideas everywhere. I was recently at Lowe’s with my three-year-old daughter Emily when we walked past the paint department. I decided to pick up a few color samples in the hopes that I could do something with them that would entertain Emily for a few minutes.
The Christmas season is upon us, so I asked Emily to pick out a green card and a red card. It wasn’t long before I had the idea to make this Christmas tree. Cut a triangle out of the green card, the shape of a Christmas tree. Use a hole punch to make ornaments from the red card (or any colored paper you have on hand). Stick the ornaments to the tree with a drop of glue. To stand it up, cut a small rectangle from the green card, then cut slits in the rectangle and the base of the tree. Slide the pieces together to make the stand.
Emily loves using the hole punch and the glue, so she was more than happy to help put this together.
There are a few variations on this idea you can try:
Cut identical triangles out of the red and green cards, then punch holes in the green triangle and paste the entire red triangle behind the green triangle. The “ornaments” will show through the holes you made in the tree. This is a lot easier than trying to glue a bunch of tiny ornaments onto a tree.
Instead of making a tree stand on the bottom, punch a hole at the top of the tree and loop through a piece of ribbon or string to turn the Christmas tree into an ornament itself.
Make two trees then paste them together back-to-back so it looks nice from both sides.
It’s not even December yet and I’m already getting into the Christmas spirit!
For our fifth anniversary my wife made me this nativity advent calendar.
The pieces go in the pockets, and each day of December you take a piece out and build the scene. This is just like a calendar we had in my home growing up.
The craftsmanship here is wonderful, and what amazes me the most is that Rebecca was able to keep it a complete secret from me for months while she worked on it. I really had no idea she was doing this.