Everything’s Amazing & Nobodys Happy: Part I

I really enjoy this brief appearance “Everything’s Amazing & Nobody’s Happy” by comedian Louis CK on the Conan O’Brien show from 2008:

The piece is not without flaws, as I don’t believe the fault lies with a spoiled generation.

For me, it does a perfect job of skewering our lack of wonder and joy – our complacency – at the truly amazing things we experience every single day in our modern lives.

I think we have a lot of the this in the tech world. It’s easy to forget how far we’ve come in such a short period of time and how amazing that is. It’s easy to lose the joy in long term progress amid current frustrations, which always seem more significant because they’re in the present tense.

I thought it might be fun to explore some examples. I realize the relevance of these examples will vary with the age of the reader. At the time I’m writing this, I’m 44 years old – double death in Cantonese. This colors my experience, as readers who are significantly younger started their tech lives with newer and better stuff. Readers who are older will shake their heads at how I belong to a spoiled generation and ought not complain. And so it goes.

Amazing Networking

For my first example where everything’s amazing and nobody’s happy, let’s take networking. Just this week, I read an article about Comcast offering gigabit Internet in four cities. My first thought was disappointment that I can only get 100 megabits in my neighborhood. My second thought was: only?!? It’s absolutely amazing that I do have 100 megabit Internet. I realize that there are many in the US and elsewhere who still run on slow DSL and have less to be grateful for than I.

When I first got started with computers, I was fortunate enough to skip the acoustic coupler and start directly with a 300 baud Volksmodem. This had three distinct disadvantages versus today’s broadband connections:

  1. It was 349,525 times slower than my current connection
  2. Modem connect sounds
  3. Mom could pick up the phone and blow away my download at any moment

Sure, I still pine for a gigabit connection, and when I get that I’ll pine for even more. But at least now, Mom can share my internet connection without wrecking my downloads.

Dark Mode on iOS: DIY Details

With a few Accessibility twiddles, you can have system-wide dark mode on iOS today. There’s no need to wait for iOS 11 or 12 or whenever.

Dark Mode must be one of the most common feature requests for iOS. Open Radar is littered with requests such as this, this, and this which cites an original bug number of 15453121. The first request for system-wide Dark Mode must have originated between November 2013 and March 2014, based on my own bug report numbers.

I expect that most folks would like a Control Center toggle for a system-wide dark mode, rather like the toggle for Do Not Disturb. Only Apple can help with that.

Set Up DIY Dark Mode

Do the following to enable “do it yourself” / DIY Dark Mode:

  1. Tap Settings -> General -> Accessibility
  2. Tap Display Accommodations
  3. Tap Invert Colors
  4. Tap Color Filters -> On

If you’ve played with the color filters for color blindness or tint, then you’ll also need to tap Grayscale in step 4. Once you’ve selected Grayscale, it will remain the selected filter in the future.

Display Accommodations for Dark ModeColor Filters for Dark Mode

Sure, it’s a fair bit of tapping, but if you want to use your iPhone in bed without subjecting your bedroom to a bright glow, it’ll do the job.

Let’s hope Apple addresses bug 15453121 in a future update to iOS. In the meantime, with a bit of tap patience, you can have what you need.

(In writing this, I learned that display accommodations are not applied to screen shots, as you can see above.)

UPDATE: Reader Mark Igloliorte (@markiglo) notes that you can set your Accessibility Shortcut so that triple tapping the home button makes it easier to engage DIY Dark Mode. To do that:

  1. Follow the instructions above to enable DIY Dark Mode
  2. Tap Settings -> General -> Accessibility
  3. Scroll all the way down to Accessibility Shortcut and tap it
  4. Check both Invert Colors and Color Filters

Now, when you triple tap the home button, you’ll be able to tap Invert Colors or Color Filters. You’ll have to repeat the process a second time to enable / disable the other item.

Get Your Next Year of Apple Music for 30% off

I just got my next year of Apple Music for $84, which works out to US $7/month rather than $9.99, a 30% discount. Here’s how I did it:

1. Wait for a good iTunes Gift Card discount offer and go for it. Follow me on micro.blog, as I post when I see them.

2. Redeem your code on your Mac with iTunes open. This prompts the following offer or something similar:

Apple Music Offer

I’m not sure how long Apple will continue this offer. Let me know if they discontinue it, and I’ll update this post.

Finally, the math:

  • Purchase $100 iTunes Gift Card for $85
  • Purchase annual Apple Music subscription for $99 using that credit
  • Get $99 annual Apple Music subscription for $84
  • Have $1 left of iTunes Store credit

Now, it’s time for me to fire up some tunes in my heavily discounted Apple Music.

Fruit Skewers: Quick, Easy, and Delicious

Fruit skewers are an amazingly easy crowd-pleaser. They’re quick to make. They’re colorful, and they’re tasty. They’re an appetizer and/or a dessert. What more could you want for simple party food?

Fruit Skewers

Fruit Skewers Recipe

Here’s what you need:

Here’s the prep:

  • Wash the grapes and strawberries
  • Cut the tops off the strawberries
  • Ball the melons

For each skewer, I recommend this order:

  1. Melon (alternate green and orange)
  2. Red grape
  3. Strawberry
  4. Melon (alternate green and orange)
  5. Red grape

Hint: Melon balls don’t always come out perfectly round. Skewer the melon so that the flat side is toward the grape, and it will be less obvious.

My mother suggests a light drizzle of honey as a finishing touch. I suspect that’s important if the fruit isn’t at its peak of ripeness / sweetness. I didn’t find it necessary for the platter pictured here. We’re getting fantastic melon and strawberries right now in Northern California, so your milage may vary.

Debugging Tip: Saving NSData to a File

Saving NSData when debugging is easier to do now for specific data types but helpful to know how to do in general. Xcode 5.1 introduced graphical Quick Looks for variables a long time ago, but I hadn’t experimented with that until today. I’ll talk about it below, but first the old way of doing things…

It’s easy to save a chunk of NSData to a file from the debugger, and it can be really helpful when debugging. Here’s an example I encountered when chatting with another Smile engineer yesterday. We were discussing a method which returns a UIImage. We were seeing an artifact in the image, and we wanted to determine the origin of that artifact. We fired up the app in the Simulator and put a breakpoint at the end of the method which generates the UIImage. Then, we did this in the Debugger.

p [UIImagePNGRepresentation(keyBackgroundImage) writeToFile:[NSTemporaryDirectory()
	 stringByAppendingPathComponent:@"image.png"] atomically:NO]
po NSTemporaryDirectory()

The first line writes the data to a file (in the guise of printing the result of the writeToFile:atomically: method). The second line tells you the path of the folder in which the “image.png” file is saved. It’s handy to use NSTemporaryDirectory() because that works easily for sandboxed applications on macOS.

It was easy to open the resulting image file in Acorn (for me) and Photoshop (for the other engineer) to verify that the background image was not the source of the artifact.

Xcode’s graphical Quick Look for variables obviates this technique for images. All you need to do is:

  1. Hover over the variable name in your source code
  2. Click the Quick Look icon
  3. Click the Open button to open your file in its default file viewer

Xcode showing Quick Look variable view

This also works well for small amounts of proprietary NSData, as Xcode includes a Quick Look viewer to show 512 byte pages in HexFiend style. If you’re looking for something at the 100,000 byte mark, you’ll really want to save off the data and open it with HexFiend. In that case, it’s handy to know the above technique as well.

You can also write your own Quick Look display for your custom types, as Apple notes. I suspect that’s overkill in many cases.

I don’t claim to have originated this technique. I’d love to give credit (or a beer) to whomever I learned it from, but I simply don’t recall. I wouldn’t have posted about it, but for the fact that it was new to the engineer with whom I discussed it. Therefore I figure it’s worth a post after all. Hopefully, it will prove helpful to someone trying to extract NSData to a file while debugging.

Ratatouille Lasagna

Ratatouille Lasagna was the fifth of my 2015 Resolution:

This began as a collaboration with Éric Trépanier during his visit to California in the summer of 2015. He’d been watching a French Canadian cooking show, Qu’est-ce qu’on mange pour souper focused on making healthy meals in 30 minutes. This “Lasagne à la Ratatouille” got rave reviews in his household, so we decided to make it together. I’ve made it many times since.

Here is the recipe in French, and here’s the English translation. Helpful hints:

  • 30ml is two tablespoons
  • 300g is 10.5 ounces
  • 250ml is roughly a cup, so:
  • 500ml is roughly two cups
  • For crème champètre, use Half & Half or light whipping cream

The bulk of the time spent making the dish is chopping then sautéeing vegetables. I really like the thin cheese sauce versus the mounds of shredded cheese used in a typical lasagna. I don’t think we did it the first time, but using Trader Joe’s Diced & Fire Roasted Organic Tomatoes with organic green chiles, rather than plain canned tomatoes, adds nicely to the dish.

Here’s what it looks like just prior to assembly:

Lasagna Ingredients

And here’s what it looks like half eaten:

Ratatouille Lasagna Cooked

This is a great dish to make for vegetarian friends. I suspect they tire of eggplant parmesan or traditional spinach and mushroom lasagna. This dish is much more of a celebration of vegetables, and it’s less heavy on the cheese. I’ve found it pleases nearly everyone, and a great added bonus is that it’s able to delight vegetarians.

Ratatouille Epilogue

It was really fun to make a meal together with Éric. If you have friends visiting who also like to cook, I’d definitely recommend setting aside an evening to cook something together. I think we opened the wine before we began cooking, which I’d also recommend.

Goat Cheese and Fig Jam Tartlets

Tartlets with goat cheese and fig jam on puff pastry were the fourth of my 2015 Resolution:


These are great for when it’s your turn to bring food to an organization, club, potluck, etc. They only take about 30 minutes to make from start to finish. They’re also a huge crowd-pleaser. The hardest part is remembering to move the puff pastry box from the freezer to the fridge the night before. Here’s how to make these delicious treats.

Tartlets Recipe

  • Move puff pastry from freezer to fridge the night before you want to make these
  • Preheat oven to 400°F
  • Flour a flat surface such as a large cutting board or clean countertop
  • Flour your rolling pin, then roll out the puff pastry, extending it about one third in each direction
  • Use a 2 or 2.5 inch cookie cutter to cut circles of puff pastry
  • Place the circles on a sheet pan lined with silpat or parchment paper
  • Using a paring knife, cut X’s into each circle so that the outer portion rises more than the inner
  • Bake at 400°F for 10 minutes, and remove from oven
  • Place a dollop of goat cheese followed by a dollop of fig jam onto each circle of puff pastry
  • Return sheet pan to oven for an additional 10 minutes to melt the goat cheese
  • Move tartlets from sheet pan to cooling rack and let stand for a few minutes
  • Enjoy!

You can definitely use other flavors of jam. Try to avoid ones which have high liquid content.

I suspect you could also do a savory version of this, perhaps with a blue cheese and cooked bacon mixture. If I experiment with that in the future, I’ll try to come back and update this post.

If you make these, let me know how they come out.

Simple Sous-vide

I’m a convert to cooking meat sous-vide. I enjoy a perfectly-cooked, medium rare steak on occasion. I don’t eat red meat often, so when I do I really want it to be great. I don’t enjoy overcooked meat. I’ve also never liked the fact that there’s usually a certain gray, overcooked portion on the outside of a steak, while the inside is at perfect temperature.

Cooking sous-vide is fairly straightfoward. You seal the meat in a plastic baggie with the air evacuated. You cook it at its perfect temperature for long enough to kill bacteria. You sear it at the end for exterior texture (and for show).

Vacuum Seal

Archimedes taught the world how to displace volume by submerging objects in water, and the same principle applies in your kitchen:

  • Fill a deep pan with water
  • Place the meat in a sealable plastic baggie
  • Submerge the baggie nearly to the seal
  • Close the seal, submerging the sealed portion as you go

There are some debates on the Intertubes about whether or not this technique is inferior to mechanical vacuum sealers. My experience says this technique works perfectly well, and it helps avoid an additional kitchen gadget.

Water Bath at Temperature

There are a lot more Sous-vide gadgets on the market now than there were three years ago, and the immersion circulators look like a pretty cool option. For my setup, I use a simple, dumb slow cooker which just has Off / High / Low for settings in concert with a temperature controller. My Dorkfood Sous-Vide Temperature Controller (DSV) includes a temperature probe, which goes into the water bath, and a pass-through into which I plug the slow cooker. When the temperature is too low, the controller turns the slow cooker on, and when it’s too high, it turns the slow cooker off.

I cook my steaks at 137 degrees for one hour per inch of thickness. Note that you don’t start the clock on your cooking time until the water bath has achieved temperature with the steaks in. Keep in mind that it takes some time for the water bath to re-heat after you’ve dumped cold, vacuum-sealed steaks into it. When there’s about 20 minutes left, I’ll put the outdoor grill on high heat to prepare for the finishing touch.

Brown the Exterior

Cooking Sous-vide does not brown the exterior of the meat. It’s nice to have that texture and color for presentation, and you can do it by searing the steaks on a very hot grill or cast iron pan. You only need less than a minute on each side, and you’ll find that’s enough time to brown the exterior but not enough time to start overcooking the exterior of your steak.

I’ve also used this technique to cook beautiful hamburgers and incredibly moist chicken breast. For chicken, you’ll use a different temperature and time. Enjoy!


This escalivada was the third of ten new dishes I made for my 2015 Resolution:


I first tasted Escalivada in Barcelona. It’s a smoky Catalonian vegetable dish. I charred my veggies on a gas grill rather than a wood fire, so my dish lacked some of the smoke flavor from the original cooking method.

Escalivada is a great alternative to crudités if you want to have delicious vegetables on the table for a party. Serve alongside flatbread or crackers.

Escalivada also makes for good before and after pictures. You’ve seen the after above. Here’s the before:

Pre Escalivada

The one downside to escalivada is the time it takes to prep the vegetables. It took quite a while to break these down into sizes appropriate for cooking. It’s also not a fast dish to cook, as it takes time for the flavors to build. The upsides are that the dish has a lot of color and a ton of flavor.

Save 20% on software and services from Apple

Everyone loves to save money. Software and services from Apple are pretty much always on sale. Several times a year, various online retailers offer iTunes Gift Cards at 20% off. Redeem these gift cards in your AppleID account, and they can be used to pay for:

  • Apple Music
  • Apps for iOS
  • iCloud Storage
  • Mac App Store Apps
  • Music
  • Movies
  • TV

Save 20% with Discounted iTunes Store Gift Cards

Today, PayPal Digital Gifts was offering $50 iTunes Gift Cards for $40 on the day I originally wrote this post. (See update below.)

In the past, I’ve seen these offers from BestBuy and Staples, especially around US holidays.

Dan Frakes is very good about posting such offers to his Twitter account when he encounters them. DealMac / DealNews’ Movie, Music & Book Deals section is another good source.

I realize that one ties up cash when one buys gift cards, so it’s probably best to do this in moderation. However, it’s not difficult to determine what you spend on software and services from Apple in a given year and to pick up these discounts from time to time, ensuring you’ve always got a discounted balance on hand in your AppleID account.

Save yourself money on software and services from Apple by buying iTunes Gift Cards at a discount.

UPDATE: Scott Wright recommends following @itunescarddeals for frequent updates on currently available discounts.