Launch PowerShell 6x faster

In the latest Windows PowerShell blog post Jeffrey Snover points to an earlier post he wrote about how to make PowerShell launch much faster. On my desktop, the time to launch PowerShell went from around 13 seconds to around 2 seconds after applying the fix Snover recommends.

Approximate problems and approximate solutions

I ran across this quote from John Tukey a couple days ago:

An approximate answer to the right problem is worth a good deal more than an exact answer to an approximate problem.

Too often approximate problems take on a life of their own and we forget that they were approximations. We worry about numerical results to many significant figures when the original model might be doing well to get within 20% of reality. Better to produce a crude solution to a more realistic problem. As G. K. Chesterton said, anything worth doing is worth doing poorly.

On the other hand, you’ll probably face less criticism if you produce exact solutions to unrealistic problems than if you produce approximate solutions to realistic problems. At least that’s what I’ve seen. I suppose this is because it takes less understanding to find fault with your solution than to evaluate your choice of problem to solve.

How to make a telescope out of moon dust

The latest Science at NASA podcast explains how one might make a telescope on the moon out of local material. Peter Chen has constructed a prototype 12 inch telescope primarily using simulated lunar soil. He estimates a Hubble-sized telescope could be constructed from lunar soil and about 130 pounds of material from Earth.

Audio and transcript available here.

Interview with Green Beret debugger

The latest Pixel8 podcast has an interview with world-class debugger and former Green Beret John Robbins.

John Robbins is a terrific speaker and author. In the podcast interview he gives some background on how he became an expert troubleshooter. He and shares some war stories of how he saved companies from bankruptcy by finding the bug no one else could find and gives some general debugging advice.

What's wrong with paper?

Sometimes people demand a web application when a piece of paper would do just as well. People have thought I was out of my mind when I suggested a task could be done on paper at 1% of the cost of developing a custom web application. I guess paper is just vulgar.

A typical web application involves three machines (client, web server, database server) and at least five programming languages (HTML, CSS, JavaScript, SQL, and some business logic language such as C# or Java). That’s a lot of complexity and a lot of possible points of failure. The complexity is often justified for large projects, but sometimes for small projects it’s just not. Sometimes paper is simpler and more robust.

Comparing PowerShell and Bash

On the Windows PowerShell blog, Jeffrey Snover links to a article in Linux Magazine by Narcus Nasarek comparing Windows PowerShell and Linux’s bash shell.

The article’s sequence is unexpected. Not until near the end of the article does Nasarek get to the main difference between PowerShell and bash: PowerShell pipes objects, not text. Nasarek says regarding PowerShell’s object pipeline “Bash cannot compete here.” He says that the disadvantage of bash in this regard is that “it relies on the abilities of external programs to handle data structures.” That is an understatement. The disadvantage of bash is that it requires fragile, ad hoc text manipulation to pluck data out of the pipeline.

Nasarek is being fair to PowerShell, but he was limited by space. He had only two pages for his article, and only about half of those two pages were devoted to text.

Websites for critically ill patients

CaringBridge offers “free, personalized websites that support and connect loved ones during critical illness, treatment and recovery.” The site is sponsored by donors, not advertising.

When he was diagnosed with cancer four years ago, a friend of mine set up a password-protected web page to let us know the latest updates on his treatment and diagnosis. I appreciated his doing this. He could easily set up his own site, but not everyone knows how to do that. CaringBridge lets people who are not as technically inclined set up their own site. Patients can upload photos, exchange messages with friends, etc. About 100,000 families have set up websites through CaringBridge so far.

Quantity and quality

Here’s a quote from a recent blog post from Tom Peters:

You will be remembered in the long haul for the quality of your work, not the quantity of your work—the quantity part is just your defective ego talking—no one evaluates Picasso based on the number of paintings he churned out.

Team moon

I ran across the book Team Moon by Catherine Thimmesh when I took my kids to the library.

The book’s subtitle is “How 400,000 People Landed Apollo 11 on the Moon.” This children’s book focuses on the thousands of people who worked behind the scenes of Apollo 11. It highlights some of the things that went wrong or could have gone wrong. One of the early pages of the book quotes the speech that was prepared for President Nixon to read if the mission had failed.

Fate has ordained that the men who went to the moon to explore in peace will stay on the moon to rest in peace … These brave men, Neil Armstrong and [Buzz] Aldrin, know that there is no hope for their recovery. But they also know that there is hope for mankind in their sacrifice.

Grim words for a children’s book. And yet without some explanation of the dangers they faced, it’s impossible to appreciate the astronauts’ bravery. When I was a child, I was puzzled by talk of brave astronauts. In my mind, astronauts simply got on board a rocket the same way I got in a car. What was brave about that? It didn’t occur to me that they might not return safely.

Team Moon reminded me of Undaunted Courage by Stephen Ambrose. The image of the Lewis and Clark expedition I had from childhood was about as naive as my image of astronauts. I pictured a couple men with coonskin hats in a canoe going on a little trip, not 33 soldiers on a three-year mission. (The name “Lewis and Clark” doesn’t help, implying that they were the expedition rather than the leaders of the expedition.) I didn’t appreciate the scope or danger of the voyage until I read Ambrose’s book as an adult. I hope someone writes a children’s book in the style of Team Moon about the expedition if there’s not already such a book.