A Command Line Tool For MacOS Shortcuts

If you write about anything on the Mac, you will probably have to write about keyboard shortcuts. Apple’s Style Guide has very detailed instructions for how to reference and document keyboard shortcuts. I can never remember all the rules, so when I write about keyboard shortcuts, they are far from consistent.

Brett Terpstra wrote created a Jekyll plugin called kbd for documenting Mac keyboard shortcuts. His plugin implements Apple’s rules, and if you are writing in Jekyll, it’s great.

However, I write about shortcuts in many more places than Jekyll, and his work inspired me to create a command line tool called ksc to do the same thing. Here’s how it works:

$ ksc command shift %
$ ksc ctrl esc
$ ksc shft-cmd-t

Notice how it’s all nicely formatted, with the modifier keys in the proper order, and shifted keys described per Apple’s guidelines. See the README for more details, including lots of command line options to control how the output is rendered.

You’ll need Python 3 to use this script, and I’ll be adding Keyboard Maestro, Alfred, and TextExpander macros soon so that you can use this tool anywhere you can type on your Mac.

Scandals Can Be Managed But Not Silently

Jonathan Turley, one of my favorite lawyers and writers, writes about what hasn’t happend with the Biden laptop scandal:

That is why the truth is rarely evident in looking at a scandal straight on. Rather it requires peripheral vision or analysis – often what is not evident is what is most enlightening.

This most famous example of such reasoning was found in Sir Arthur Conan Doyle’s story “Silver Blaze,” on Sherlock Holmes’s investigation of the disappearance of a racehorse.

The local inspector asked if there was “any point to which you would wish to draw my attention?”

Holmes responds, “To the curious incident of the dog in the nighttime.”

When the inspector objects, “The dog did nothing in the night-time,” Holmes replies, “That was the curious incident.”

I am drawn to any writer who references Sherlock Holmes, whom I adore.

There is always something a tad curious of Washington legal scandals in what has not occurred. That is why the latest Hunter Biden scandal is so curious.

When the story broke in the New York Post, the Biden campaign was faced with thousands of emails that purportedly showed clear support for allegations that Hunter Biden was given millions as part of an influence-peddling scheme related to his father, then-Vice President Joe Biden.

There was ample reason to be skeptical about the sketchy account of a computer being left by Hunter Biden at a computer store with a man who cannot see beyond a couple of feet. And then there is the timing of disclosure just weeks before an election.

The problem was the absence of “barks” from the Biden camp. The computer files revealed a host of embarrassing pictures of Hunter Biden using drugs or exposed in other embarrassing ways. The emails contain dates and addresses that match up with confirmed records.

He then lists three barks (or statements) that one would expect from the Biden’s, which have not been made.

  1. This was not Hunter Biden’s Computer
  2. These were not Hunter Biden’s photos or emails
  3. This is defamation, i.e. these photos and emails were fabricated

And the final kicker, which doesn’t bode well for the Bidens:

In politics, scandals can be managed but not silently.

Pixelmator Pro Adds AppleScript Support

I am very pleased to see Pixelmator Pro version 1.8 add robust AppleScript support to the application. I’ve used Pixelmator Pro and it’s older brother Pixelmator since they launched, and they are an incredible value. I never have owned or used Photoshop so I have no inertia keeping me chained to Adobe. Photoshop costs $21 per month but you can get Pixelmator Pro for a $40 one time purchase.

I also love that Pixelmator Pro is a Mac-assed Mac app.

Snowden Vindicated

The 9th Circuit Court of Appeals ruled that the National Security Agency program which stored and analyzed the metadata from Americans’ phone calls was illegal. This was one of the many secret government programs exposed by Edward Snowden. The court ruled that these bulk collection programs violated the Foreign Intelligence Surveillance Act, the only legislation that would allow such a program to be legal.

These programs were started shortly after 9/11 in an attempt to track terrorists. The case which brought this ruling charged four Somali imigrants with terror group fundraising. The role the programs played in the conviction of the four Somali’s was so minor that it was not worth overturning their case. The judge scolded the government for claiming the program actually helped catch terrorists:

To the extent the public statements of government officials created a contrary impression, that impression is inconsistent with the contents of the classified record…

Edward Snowden was right. The government was operating numerous illegal data collection programs. He’s not a criminal but a whistleblower, and the espionage charges against him should be dropped.

Do Your Own Research

Ethan Siegel writes for the mostly terrible Forbes contributor network that You Must Not Do Your Own Research When It Comes To Science. Ethan is a Ph.D. astrophysicist, author, and science communicator, whatever that is.

His core thesis is that all scientific matters are so specialized and complex that it’s impossible for a layperson to have an informed opinion on any topic, therefore we should trust credentialed expert opinion on everything:

Unless we start valuing the actual expertise that legitimate experts have spent lifetimes developing, “doing our own research” could lead to immeasurable, unnecessary suffering.

In other words, trust the experts like me or humanity is doomed.

There was a time, we called it the Dark Ages for a reason, when people didn’t have access to information in order to form their own opinions. Knowledge, land, and wealth were concentrated in a small number of people. Kings and religious leaders were the experts, and they told everyone what to think. Advances in technology from the printing press to the internet make vast troves of information available to the majority of people on the planet. I see no viable path from where we are today back to an expert mediated and controlled information sharing environment. We would have to prohibit, destroy, or censor books, magazines, newspapers, phones, radios, computers, blogs, social media, satellites, and TV. Since it’s not possible to revert 600 years of scientific progress, Ethan asks us to ignore it and go back to trusting the experts.

His request demonstrates a lack of understanding of two key human emotions; the desire for control and trust.

He cites fluoridated drinking water as a trivial example. Despite near unanimous agreement from the scientific and dental communities that fluoridation is safe and reduces dental caries in children, there are many communities that have chosen not to add fluoride to their public water systems.

The idea that “our water is natural” and “adding fluoride isn’t” has proven more powerful in swaying public opinion in these locations than the science supporting fluoride’s safety and effectiveness. To the voting public, a fear of chemicals and an affinity for what feels natural was more compelling than the dental health of poor children, despite near-universal support from dental health professionals.

Despite no controversy on the science, the best science communicators have failed to convince the public. The reluctance to adopt fluoridated water in Portland, OR has nothing to do with the science, which is compelling, or the experts, which are in agreement, or Portland, which is lovely if you ignore the riots. Mr. Siegel overlooks the reality that people want to have control of their own lives and communities. They don’t want to be told what to do.

Ethan pleads with us to listen to the consensus of the scientific community and wear masks, instead of each person trying to do their own research about whether masks are effective. His point that most humans look for evidence to support their preconceived notions is unquestionably correct. His motives are pure.

Scientific methods and mental elasticity enable scientists to form their opinion based on the data, and change their opinion to in response to new or updated data. Asking people not to do their own research replaces this rational, logical, and data driven approach with an emotional decision to trust.

When asked to trust an expert, people expect the experts to get it right. When the experts change their recommendations, our trust in them decreases. Skepticism rises with the rate of change in the evidence. Skepticism in the face of changing data is not a flaw, but a biological feature of humankind, honed by generations of experience.

A mere 6 months ago the Surgeon General of the United States tweeted that we should stop buying masks because “they are NOT effective in preventing general public from catching Coronavirus”. This was a “science communication” from a credentialed and noted expert. Now we all should buy and wear masks. Because the experts were wrong then and right now. That requires a lot of trust from someone who shouldn’t do their own research.

The most valuable skill in the Information Age is the ability to evaluate and analyze sources and the information they produce. It as important today as knowing how to plant and harvest was 200 years ago. Mr. Seigel’s assertion may be true:

The techniques that most of us use to navigate most of our decisions in life — gathering information, evaluating it based on what we know, and choosing a course of action — can lead to spectacular failures when it comes to a scientific matter.

However, common folk aren’t alone in their demonstration of spectacular failure in scientific matter. In 1998 The Lancet, one of the premier peer-reviewed medical journals in the world, published a paper by Dr. Andrew Wakefield asserting that MMR vaccines caused autism. A peer-reviewed journal like The Lancet requires scientific peers of the author to review the findings to ensure the science is sound before publication. News outlets publicized and quoted the assertions of the scientific experts.

It took The Lancet 6 years to investigate the paper, and another 6 years to retract it. We now know that:

…the children that Wakefield studied were carefully selected and some of Wakefield’s research was funded by lawyers acting for parents who were involved in lawsuits against vaccine manufacturers. The council found Wake-field had acted unethically and had shown “callous disregard” for the children in his study, upon whom invasive tests were performed.

Many physicians directly attribute measles outbreaks in the UK, Canada, and the United States to the publication of this erroneous paper. Anti-vaxxers have been around as long as vaccines, but every anti-vaxxer I know says something about autism in the first 3 sentences of every new conversation. I could make a compelling argument that this erroneous paper is the cause of the modern anti-vax movement.

Replacing our own curiosity with trust in the experts is not the answer. We must enhance our ability to analyze and evaluate information and sources, and strive to update our often outdated notions of how that world works. If you need a suggestion of where to start, try Hans Rosling’s excellent Factfulness.