November 09, 2015

Clearing Safari 9's pinned tab icon cache

The release of OS El Capitan brought us Safari 9, which gave web developers a slew of new features to play with. One of my favorite new features is the ability to define an icon for pinned tabs. Implementing these icons is a snap. All you need is an SVG icon (16px square works best) and a link tag in the head of your document to include it:

<link rel="mask-icon" href="icon.svg" color="#322f31">

While working on our company website I ran into a situation where the pinned tab got stuck on the default letter in a rounded square. No amount of cache clearing had any effect. However, one terminal command saved the day:

rm ~/Library/Safari/Template\ Icons/*

April 02, 2015

Dealing with distraction

Fred Wilson writes on AVC:

I was just doing some work on a personal finance thing. I completed one part of the job and went to my email to finish it and saw another email at the top of my inbox about something else, I clicked on that email, started dealing with that, and almost forgot to finish off the personal finance thing. This happens all the time to me. I am so easily distracted.

We can all relate to being distracted. It’s important to recognize it as a personal short-coming. That doesn’t mean you have to beat yourself up about it. Just acknowledge it and deal with it in a way that works for you. When I’m having trouble focusing I quit noise-y apps and turn off notifications. Out of sight, out of mind.

March 30, 2015

Tim Cook stands against “religious freedom” laws

Apple CEO Tim Cook, in an opinion piece for The Washington Post:

America’s business community recognized a long time ago that discrimination, in all its forms, is bad for business. At Apple, we are in business to empower and enrich our customers’ lives. We strive to do business in a way that is just and fair. That’s why, on behalf of Apple, I’m standing up to oppose this new wave of legislation — wherever it emerges. I’m writing in the hopes that many more will join this movement. From North Carolina to Nevada, these bills under consideration truly will hurt jobs, growth and the economic vibrancy of parts of the country where a 21st-century economy was once welcomed with open arms.

Tim Cook has really hit his stride as CEO of Apple and as a leader of the community. It’s truly inspiring to see how he’s using his platform to advance society while running the most successful company in history.

Power from the water pipes

Lucid Energy, a Portland, Oregon based company, has implemented an ingenious way to harvest electricity from the city’s drinking water pipes with hydro-electric generators that were installed with no cost to the city.

KGW, a local news outlet, reports that the generators aren’t only making power, they’re also making money for the city to keep water costs in check. And if that wasn’t good enough, the system is friendlier to the environment than existing dam-based hydro-electric plants. Impressive.