Thursday, December 24, 2015

We interrupt this travelogue...

... to wish you a Merry Christmas / Solstice / Saturnalia / Chanuka / Yule / Kwanzaa / Festivus/ Holiday or whatever your winter festival of choice may be.  I wish health and happiness to you and yours.  May there be peace on earth and good will towards all living things.  (Except mosquitos.  Ooooh, I hate mosquitos!)



(That's actually a photo from the trip.  This tree is in the lobby of the Saxon Hotel in Johannesburg.  But I'm getting ahead of myself.)

Wednesday, December 23, 2015

Travelogue day 5: Banjul, The Gambia

Yes, the locals call it "The Gambia", not "Gambia."  (By way of contrast, it's just "Ukraine", not "The Ukraine."  I think the only other country with a "The" in front of its name is The Netherlands.)

The Gambia seemed a lot more ready to receive tourists than Senegal had been.  There was a welcoming committee singing and dancing at the dock.


Still, the local transportation was still pretty rustic.


We rode in that vehicle for a good hour and a half (each way).  You see a lot of things that you don't see much of in California.  It's a little hard to see, but this guy is carrying a very large tuna on his bicycle:


All over the place we saw shops selling overstuffed armchairs on the street.


Some of the natives were camera shy.


Others not so much.


Eventually we arrived at our destination, a wildlife refuge in the rain forest outside of town, where they fed us lunch and took us on a nice canoe ride.


There were a lot of baboons.  They were accustomed enough to humans that you could get pretty close to them and get some really amazing shots.  It's a shame that the light wasn't better.  It was overcast all day, so the light was really flat.



Did I mention there were a lot of baboons, and they were used to having humans around?


Got some nice bird shots too.  I don't remember what this one is called.  


All in all, just a pleasant and mostly uneventful day.  Which turned out to be pretty remarkable in this part of the world.

Tuesday, December 22, 2015

Travelogue, day 4: Dakar, Senegal

Senegal was our first port of call in West Africa proper, i.e. on the continent rather than an island.  The country seemed to be not quite ready for prime time in terms of welcoming western tourists.

Dakar is a city of 1 million people (3 million if you count the suburbs), and like most large third world cities it is chaotic and dirty.  Most vehicles are diesels, and emissions controls are unheard of.



Street vendors are everywhere:



as are beggars



and, somewhat incongruously, these ads for Nutella:



Notwithstanding the chaos and the poverty, the city seems to be vibrant and occasionally we got little glimpses of a unique culture.  For example, these cheerfully (if somewhat haphazardly) painted busses are ubiquitous:



There is an indigenous art form called "sand painting" where the artist applies glue to a wooden board and "paints" with various colors of sand.  The results can be quite striking.



The painting you see the artist holding was done in about five minutes.  The ones on the wall in the background are much more elaborate.

But there are also signs of (ahem) ineffective government everywhere as well.  This is, as you will see if you keep reading this series, a recurring theme in Africa: corruption is a way of life.  For example, some of the worst slums sit in the shadow of this multi-million dollar sculpture:



It is the tallest statue in Africa, and it was built by a North Korean company.

Our bus driver was particularly proud of the fact that the government had recently managed to import an enormous shipment of onions, which we could see as we came back to the port to rejoin our ship.





One final interesting bit o' trivia: Senegal does not have its own currency.  It uses the West African CFA Franc, which is a sort of African Euro, with eight countries sharing a single currency.  One U.S. dollar currently trades for about 600 CFA francs.  Wherever I go I try to collect some of the local currency, but when I asked people if they could exchange some dollars for CFAs they looked at me like I was crazy.  Why would anyone in their right mind want them?  I finally did manage to get a few tattered old bills for my collection, which seems like a fitting metaphor for the West African economy.

---

Administrative note: if you're reading this, I'd appreciate it if you could click on one of the "reaction" buttons below, even if it's just the "Read it" button.  My previous travelogues have been pretty popular, but these don't seem to be getting as much attention, and couple of people have actually unsubscribed to my blog since I started posting them.  There's no point in writing these if there's no audience.  Thanks.

Monday, December 21, 2015

Travelogue day 3: Cape Verde

Cape Verde (pronounced Cape Verd -- the final E is silent) was our first port of call that was no longer part of Europe.  Madeira is part of Portugal, and the Canary Islands are part of Spain, but Cape Verde is today an independent country.  Like Madeira and the Canaries, it's an archipelago off the coast of Africa, so it's not quite "really" Africa yet, but we could definitely tell that we were not in Kansas any more.

Parts of Cape Verde are beautiful.  There are pristine beaches...


(That's our ship in the background.)

Some lovely Portugese colonial architecture...


A charming central market...


(as long as you ignore the fact that there is no refrigeration for the fish)


It's tricky to take good photographs because the locals (understandably) don't like to have their photos taken.  But they'll pose for you if you offer them a tip.  This woman's job was to sweep leaves off the gravel in the background.


This one was selling food out of this little stand.


And this was our guide.


His name is Joe.  He's a native Cape Verdeian but he grew up in the United States so he spoke flawless English with a heavy Brooklyn accent.  If you ever find yourself in Cape Verde, I highly recommend him.  You'll find him by the dock along with all the other local guides hustling for business.

Joe showed us around for about five hours.  He did a terrific job, and he did it on spec.  We had no agreed-upon price, and at the end when we asked him how much we owed him for the day's work he said that what he would really like is if we could bring him some fresh fruit from the ship, and some English-language books.  He didn't care what the titles were.

This is not an uncommon experience.  Seven years ago when we were in East Africa, I went into town in Zanzibar.  To get into town you had to walk a gauntlet of high-pressure sales tactics from local merchants, so I had deliberately taken no money with me in the hopes that this would encourage the locals to leave me alone.  It mostly worked, but this one guy simply would not take no for an answer, and for two hours he walked around town with me, showing me the sights.  I was very glad he did, because we ended up going to some places where I would not have felt safe on my own.  At the end, after walking around with me for two hours in 90 degree heat and 90% humidity, he asked for the sweaty T-shirt I was wearing.  I gave it to him.  He was happy with it.

This, and many other similar experiences I've had traveling in third-world countries, are why I have zero tolerance for people who say that poor people are poor because they don't work hard enough or are unwilling to take risks.

Sunday, December 20, 2015

Travelogue, day 2: La Palma and Tenerife

[Third in a series]

After Madeira we had two back-to-back ports of call in the Canary Islands of La Palma and Tenerife.  They were two separate stops on two different days, but I'm going to lump them together because there's not that much interesting to tell, and I want to get to the main attraction, West Africa.

The Canary Islands are volcanic tropical islands not unlike Hawaii or the Galapagos.  The most interesting thing about Tenerife is that it was the site of the world's worst ever aviation accident, and the most interesting thing about La Palma is that it is rumored to pose an existential threat to the eastern seaboard of the U.S. (though apparently, it's not true).  Both islands grow a lot of bananas, offer a nice tropical getaway easily accessible from Europe, and that is about the extent of their claims to fame as far as I could tell.

On La Palma I took a tour into the rain forest, and decided to go off-script and explore this interesting-looking path:



which led me to this tunnel:



Unfortunately, I had left my cell phone behind (I have an old CDMA iPhone which is mostly useless overseas) so I had no light, and the tunnel was long enough that I could not see through to the other side.  Fortunately, a good samaritan couple showed up and let me follow them through.  The tunnel led to this spectacular waterfall:


On Tenerife, my experience was almost the exact opposite.  Tenerife also has a rain forest, but my tour took me up to the volcano, well above the clouds and the rain forest.



To me it was indistinguishable from parts of the American southwest.



Next stop: Cape Verde.  That's when things started to get more interesting.

Saturday, December 19, 2015

Travelogue: West Africa day 1

Well, it wasn't really day 1 because it took us two days to get there, but I figured it would be easier to number things sequentially.  Our first port of call was Funchal, Madeira, which is off the coast of Morocco, but technically part of Portugal.  It's a quaint little European town clinging to the side of a series of cliffs, not unlike Amalfi or Cinque Terre in Italy, though not quite so dramatic.



It's nice enough, but the most interesting bit is this place, which is near the port:



That rock is the self-styled Principality of Ponthina, ruled by the benevolent dictator Prince Dom Renato Barros (who, regrettably, I did not have the honor of meeting whilst I was there).  Here's what it looks like going in:



It's the world's smallest country, much smaller than Vatican City or even the Republic of Molossia.  There are no passport checks (good thing because I didn't have mine with me), but there is this cool statue of Santa Claus on top:



And a little tiki hut:



And some cats (gotta haz cats if you're gonna write about it on the Internet, right?)





And that's about all there is to tell about Madeira.  Oh, and I think they make some wine there too ;-)

Thursday, December 17, 2015

Travelogue: West Africa, Prologue

I just got back from a six-week-long trip to western and southern Africa.  On previous trips like this I wrote travelogue entries in real-time, but there has been a rash of burglaries in our neighborhood recently and so I decided it would not be wise to advertise the fact that we were out of town.  So I'm going to go back and blog about the trip stop-by-stop as if it were happening in real time.

The trip consisted of two parts.  The first was a cruise on the Oceania Marina from Lisbon to Cape Town, and the second was a safari that took us to Victoria Falls, the Okavango delta, and the Madikwe game reserve in South Africa.  Then at the end we spent two days in Johannesburg before returning home (though, as you will see, we didn't get to see much of the town).

We flew to Lisbon on Lufthansa by way of Frankfurt.  We were originally scheduled to have a two-hour layover in Frankfurt, but two months before we left, Lufthansa suddenly cancelled our connecting flight, which left us with an eight-hour layover.  That's an awfully long time to be hanging around a terminal (particularly with ten time zones worth of jet lag), so we decided to get a day room at one of the hotels adjoining the airport.

The flight to Frankfurt was uneventful.  Once we arrived, it was quite a hike to get to the hotel, but we finally found it.  Nancy settled down for a nap, but I had gotten some sleep on the plane so I decided to go exploring.  When I did, I found this:



A close-up:



There was our original connection to Lisbon, the one that would have given us a two-hour layover instead of the eight-hour one we were now facing.

To say that I was annoyed would be quite the understatement.

Since I'm not writing in real time, I can fast-forward a few days and report what our travel agent told us when we reported this to him.  As you can see from the departures board, the flight to Lisbon is not a Lufthansa flight, it's a TAP (Air Portugal) flight.  It had been cross-listed as a Lufthansa flight.  According to our agent, TAP cancelled the flight and then reinstated it without the cross listing.

I was a little skeptical of this explanation even at the time.  I found it hard to believe that Lufthansa's lawyers did not insist on having some sort of contractual obligation that would prevent TAP from pulling the rug out from under its customers like this.  I thought I would never really know the truth, but it turns out I was wrong about that.  The Internet never forgets, and the record shows that this flight did operate under a Lufthansa code share that day:



Maybe I should write a letter to Lufthansa's CEO.

Notwithstanding the extra delay, we finally made it to Lisbon, spent the night there, and the next day embarked on our journey.  As it happens, it turns out there are much worse things that can happen while traveling than having a flight delayed by six hours.  On the ship I encountered a couple whose bags had been lost, and were not located until the end of the three-week cruise -- in San Francisco!  So maybe I should just count my blessings and forget about getting bumped off the earlier Lisbon flight.

Stay tuned.

Friday, November 13, 2015

Those who live by the wingnut shall die by the wingnut

I must confess to engaging in more than a little schadenfreude in watching the Republican party leadership reaping what they have sown.
Less than three months before the kickoff Iowa caucuses, there is growing anxiety bordering on panic among Republican elites about the dominance and durability of Donald Trump and Ben Carson and widespread bewilderment over how to defeat them. 
Party leaders and donors fear that nominating either man would have negative ramifications for the GOP ticket up and down the ballot, virtually ensuring a Hillary Rodham Clinton presidency and increasing the odds that the Senate falls into Democratic hands.
Awww.

Friday, October 23, 2015

Colonizing space won't save us

I don't have too much time for non-work-related writing nowadays, but I really feel the need to spread this meme.  Earlier this week I got into a little dust-up with a hacker-news user called moonchrome over the sustainability of exponential growth.  It was in response to a story about the catastrophic fires in Indonesia that are intentionally set in order to clear farmland for oil palms, i.e. the plants from which coconut oil is produced.  Oil palms have become a growth industry (no pun intended) since trans-fats have become unfashionable.

During that exchange I suddenly realized that there's probably a whole segment of the population that thinks that overpopulation is not a problem because — space colonization!  When earth gets overcrowded, we'll just move to Mars.  And besides, those Malthusians have been crying wolf since forever.  No matter what happens, technology will save us.

Sorry to be the one to break it to you, but no, it won't, and if you think it will you don't understand the truly awesome destructive power of exponential growth.

There's a classic puzzle that goes like this: imagine you have a jar filled with growth medium and a single bacterium of a species that divides twice an hour.  After a week, the jar is full.  At what point was it half-full?

The classical answer is: half an hour before the end of the week.  But that is wrong.  The real answer is that the problem as posed is not possible.  A week's worth of unchecked bi-hourly doubling would result in a bacterial population vastly greater than the number of elementary particles in the universe.

It helps only a little that our doubling time at the moment is running about 60 years rather than 30 minutes.  That stretches the week out to a few hundred or a few thousand years depending on whether you take the total biomass of earth or the mass of the universe as your limiting factor.  Predicting the future is usually a fool's errand, but I hope I don't have to convince you that before we have converted every last carbon atom on earth into a human body, life will get very, very unpleasant.

Even if we manage to colonize Mars, that will only help a little.  Imagine that we are able to completely terraform Mars, and produce a biomass more or less equal to that of earth.  For starters, colonizing Mars will only help the situation here on earth if we are able to emigrate en masse, which isn't very realistic.  But even if we were able to do that, having one more planet only buys us one more doubling time, that is, 60 years at current growth rates, after which we would be right back where we started.  And now to get ourselves out of that mess we need two more planets!

OK, say the optimists, so we'll go to the next solar system.  No, we won't.  Even sending a robot probe to the nearest star is a pipe dream at the moment.  The massive emigration required for interstellar colonization to improve the situation here on earth is a pipe dream N times over for some very large value of N.  And even if that were not so, as I mentioned earlier, even if you take the total mass of the universe as your limiting factor you only get out to a few thousand years.  That's the blink of an eye in the grand scheme of things.

The simple fact of the matter is that exponential growth is necessarily transient.  Always.  It is not possible to sustain exponential growth in a finite universe.  At some point, any instance of exponential growth will cease.  The only question is whether it happens because we decide to stop it, or because we discover the hard way what the limiting factor actually turns out to be.

Personally, I hope we do the former, because dealing with the latter will not be fun.  But to achieve that we have to change our collective mindset.  We have to start thinking about steady-state as the goal rather than exponential growth, because open-ended growth is simply not an option.  If we don't control our growth, then sooner or later the laws of physics (and mathematics) will do it for us.

Thursday, October 15, 2015

Lincoln Chafee deserves a do-over

Normally I too would have very little tolerance for a Senator making lame-sounding excuses for having cast a disastrously wrong vote, but I nonetheless think that Lincoln Chafee got a bum rap over his vote to repeal Glass-Steagall.  Look at the actual timeline of what happened back in 1999:
The final vote came on Nov. 4, 1999, the same day Mr. Chafee was sworn in as Rhode Island’s senator. He filled the seat vacated by the death of his father, John Chafee, on Oct. 24, 1999.  [Emphasis added.]
So... his dad dies and a week and a half later he finds himself on the Senate floor having to cast a vote on this bill that is on its way to being passed by an overwhelming bipartisan vote (90-8 with two abstentions).  His vote isn't going to make a whit of difference in the outcome.  Under those circumstances, I don't think it was completely unreasonable for him to decide to punt on his homework and just go with the flow.  Surely not his finest hour, but you know, if that's the worst mistake he ever made in his political career I think he would actually make a fine president.

Saturday, October 03, 2015

A Moral Puzzle

I was discussing idea-ism with someone the other day when I came up with what turns out to be a very interesting moral dilemma.  Unlike the classic trolley problems, this is actually a somewhat realistic scenario, and one on which reasonable people really do seem to disagree.  Here it is:
John is a wealthy businessman whose heart is failing. If he doesn’t receive a transplant he will die. John has a large family, and his business has many employees. If he dies, they will suffer various degrees of emotional and economic pain. 
John travels to Malawi, the world’s poorest country, where the average income is about $250 per year. He finds a 20-year-old man (let’s call him Achmed) whose tissue type matches John’s, and offers him $15,000 in exchange for his heart (which will, of course, result in Achmed's death). $15,000 is pocket change to John, but it is an unthinkably large amount of money to Achmed. Life expectancy in Malawi is about 50 years, so this is twice what Achmed can reasonably expect to earn in the rest of his life. It will substantially improve the standard of living for his family, to say nothing of the fact that with one less mouth to feed (since Achmed will be gone) the money will go even further. Achmed’s brother is willing to adopt Achmed’s children, so they will not be orphans. The money will substantially improve Achmed’s family’s standard of living. It will allow Achmed’s children to attend school and give them a shot at lifting themselves out of poverty. And Achmed is not well-loved by his family. He’s a bit of a neer-do-well. What little money he currently earns he mostly spends on alcohol, and when he gets drunk he becomes abusive. He will not be missed. And Achmed knows all this, and so his life is not particularly happy, at least not when he’s sober. So everyone will be happier if Achmed accepts the offer, possibly even including Achmed, even though he doesn’t really want to die (or at least he thinks he doesn’t).
The question: is it moral for John to make Achmed this offer?  Would it be moral for Achmed to accept it?  Why?

I am actively soliciting people's opinions on this.  Please weigh in in the comments.

Monday, September 21, 2015

Coming up for air

I've been away, both literally and figuratively.  It has been over a month since I wrote a blog post.  This is in part because I've been busy with my startup, and in part because I've been on a trip to the Northwest Passage.  I would have written a travelogue, but we were so far out in the middle of nowhere that we had no internet connection for two weeks.  It was an interesting experience to be off the grid for that long.  People were starting to get a little antsy.  Personally, I thought it was kind of refreshing to be unplugged for a while.

The Northwest Passage is at once amazing and terrifying.  Amazing because it's the furthest I've ever felt from civilization.  At one point we were visiting a little Innuit village well north of the arctic circle and I decided to go for a walk out of town to see the world's most northerly golf course.  When I got there I realized I was probably, at just over a mile, further from another human being than I had ever been in my entire life.


The greens are made of astroturf.  There are no fairways.  The whole course is basically one giant super-gnarly sand trap.


The scary bit was that the Northwest Passage is now almost entirely free of ice. We did manage to find some (complete with polar bears) but we had to go out of our way.


So for two weeks we navigated one of the most notoriously treacherous and ice-bound waterways on the planet on completely calm and ice-free waters, under clear blue skies.  At one point in the trip I was actually comfortable taking my shoes and socks off and walking around barefoot and in a T-shirt.



It was beautiful, but it was creepy.  The arctic is supposed to be cold, dammit!

I don't have near enough time to do a full writeup right now, but I do want to share two more images.


No, that is not a watercolor, it's a photograph.  Of actual scenery.  No photoshopping.  It really did look like that.  And then on the other side of the boat it looked like this:


That's a moonrise.  Again, completely unaltered.

Wednesday, August 19, 2015

And the award for the most ironic statement goes to...

...an unnamed individual, self-identified as "Eagle One", who was defending a "Muslim-free" gun range:

I will fight to the death for someone’s right to practice whatever religion they want to. I’m not here because of that. I’m here because when people start resorting to violence, we can’t allow that.” [emphasis added]
The amount of self-unawareness it takes to say something like that while defending a gun range is truly staggering.  What exactly does Eagle One think guns are for?

Oh, the reason this is a story?  One of the clowns defending the gun range accidentally shot himself.  No, really.


Sunday, August 16, 2015

PSA: Beware of sudo on OS X

There's a little kerfuffle going on over on HN about a newly discovered local root exploit on OS X 10.10.5, so I thought this might be a good time to make sure everyone is aware of something that I just discovered myself a few days ago: Apple ships sudo with tty_tickets disabled by default.  What this means is that if you use sudo to give yourself root privileges, your sudo authentication is not bound to the TTY in which you ran sudo.  It applies to any process you (or malware running as you) start after authentication.  The way Apple ships sudo it is, essentially, a giant privilege escalation vulnerability.  To see this: open two terminal windows and run sudo in both of them.  Only the first one will ask for your password.

It's easy to fix.  Just run visudo and add this line:
Defaults tty_tickets

Saturday, August 08, 2015

Ayn Rand destroyed in six words

Sorry if I'm stepping over the line in terms of tooting my own horn here, but I'm kinda proud of this.  User CWuestefeld over on Hacker News wrote this comment on a thread about bee colony collapse:
[T]his isn't a shortcoming of the market as such. It's a failure in conjunction of our incomplete recognition of private property rights. By preventing certain types of property from having private ownership, we don't allow the market to correct itself. More specifically, if we had some private entity or entities that were recognized as the owners of air or water, then they would be able to recover damages from the polluters, thus removing ability to externalize the cost of pollution.  [Emphasis added.]
To which I replied:
I volunteer to be that entity.
Those six words have gotten more upvotes than any other comment I have ever posted on HN :-)

Friday, August 07, 2015

So that's what an enclave is!

Three years ago I wrote about some little bits of one country that are completely surrounded by another country.  Turns out I didn't have a clue.  Such things are far more common than I thought.  They even have a name: they are called enclaves.  And there are even second- and third-order enclaves, i.e. a piece of one country that is surrounded by a piece of another country that is surrounded by a piece of the first country that is surrounded by the second country.

AFAICT the motherlode of enclaves is on the border between India and Bangladesh.  The northern edge (if you can even call it that) of that border is so riddled with enclaves it looks like a Swiss cheese.  Or maybe a fractal.

What brought this to my attention is this story in the Washington Post about a third-order enclave that is going away due to the resolution of a long running border dispute between India and Bangladesh.  I don't really have anything to say about it, but I thought it was interesting so I thought I'd share.

Sunday, July 12, 2015

A simple way to make your site more secure

Let users have different passwords for web logins and mobile logins.

Why?  Because in my desktop browser I can use a password manager to store strong passwords.  In your proprietary mobile app, I will (almost certainly) have to type the password in manually, and on a tiny keyboard, which makes it almost impossible to use a strong password in that context.  Also, it's actually not necessary to use a strong password in a mobile app because you can use the device identifier as an additional security factor.

And for the love of God, don't deliberately undermine the use of password managers by disabling autofill in your login forms.  (I'm looking at you, Citibank!)

Thursday, July 09, 2015

A guest post from Captain Obvious

I was watching the news reports about the a Confederate flag finally being removed from the grounds of the state house in South Carolina and they were interviewing defenders of the flag, some of whom of course insisted that the flag had nothing to do with slavery.

These people need a history lesson.  Fortunately, the founders of the Confederacy wrote a Constitution in which they codified exactly what they were fighting for:
Article I, section 9, paragraph 4:
No bill of attainder, ex post facto law, or law denying or impairing the right of property in negro slaves shall be passed.
And just in case that wasn't clear enough:
Article IV, secion 3, paragraph 2: 
The Confederate States may acquire new territory; and Congress shall have power to legislate and provide governments for the inhabitants of all territory belonging to the Confederate States, lying without the limits of the several Sates; and may permit them, at such times, and in such manner as it may by law provide, to form States to be admitted into the Confederacy. In all such territory the institution of negro slavery, as it now exists in the Confederate States, shall be recognized and protected be Congress and by the Territorial government; and the inhabitants of the several Confederate States and Territories shall have the right to take to such Territory any slaves lawfully held by them in any of the States or Territories of the Confederate States.
Of course it was about slavery!  They wrote it into the fucking Constitution, for Christ's sake!  They even went so far as to make it explicitly negro slavery!  At least the original U.S. Constitution expressed a certain queasiness about the institution by using the term "other persons" instead of "slaves."  The Confederacy could have pussy-footed around the issue just as easily, but they didn't.  Why?  Because that's what they were fighting for!  They were proud of it!

That's the ultimate irony.  All those people who insist that the flag is about "heritage" and not about hate are actually denying the very heritage they are purporting to honor.  Anyone who professes to want to fly the Confederate flag in the name of Southern heritage needs to read those passages from the Constitution of the Confederate States and let the words "negro slave" sear themselves into their soul.  Maybe the only way to heal the still-festering wounds of the Civil War is to cauterize them.



Monday, July 06, 2015

Why the data do not support profiling Muslims

I'm going to go into some detail here about why the recently published data about extremist violence do not support profiling Muslims.  I thought this would be obvious, but apparently it isn't.

Let me start by summarizing the (fallacious) argument for profiling Muslims.  It goes something like this: Obviously, most extremist violence in the world is undertaken by Muslims.  In fact, by the recent numbers, Muslims are about 40 times more likely to engage in extremist violence than non-Muslims.  So it is obviously we should be profiling Muslims rather than non-Muslims.

When couched in those terms it seems like a pretty compelling argument, doesn't it?  But here is a completely equivalent argument, which is (I hope!) obviously bogus:
Self-identified atheists are about 2.4 percent of the U.S. population.  If we assume that these are more or less uniformly distributed across the country, then there are probably about 1500 self-identified atheists living in Chapel Hill, North Carolina.  (More likely the number is lower, but let's be conservative here.)  One of these, Craig Hicks, shot and killed three Muslim students in February of 2015.  So about 0.06% of self-identified atheists living in Chapel Hill have committed acts that could reasonably be characterized as terrorism.  So the concentration of terrorists among atheists in Chapel Hill is about 200 times greater than the concentration of terrorists among Muslims in the U.S.  Therefore we should be profiling Chapel Hill atheists in order to improve our odds of catching terrorists.
Hopefully I don't have to convince you that this argument is fallacious, and yet it is structurally identical to the argument for profiling Muslims.  So why does it seem so much more compelling when applied to Muslims?

Part of the problem is that there really is a connection between terrorism and Islam.  Most of the world's terrorists are Muslims.  However, it is emphatically not the case that most of the world's Muslims are terrorists!  And if your goal is to find terrorists (as opposed to figuring out what religion a terrorist happens to be) that is what matters.

The real problem with all of these arguments is that terrorists are actually quite rare, and in the U.S. they are extremely rare.  There have been 26 documented terrorist attacks in the U.S. since 9/11.  That's less than two a year.  So out of 300,000,000 people, less than two of them will (on average) commit a terrorist act in any given year.

The problem is that when the numbers are that small they become very sensitive to outliers and boundary effects.  For example, I've been using the number-of-incidents as my statistic, but the NewAmerica web site actually headlines the body count instead.  If we use body count, things look worse for the Muslims: the ratio of Muslim to non-Muslim violence grows from 37% to 54%.  However, note that fully half of the Muslim body count is due to a single event: the Fort Hood shooting.  If we ignore this one event as an outlier, the body count ration plummets to 27%.  Even if we also ignore the Charleston church shooting as an outlier on the non-Muslim side, the ratio is still only 33%.

But all of these numbers are red herrings.  They will help you figure out after the fact whether a particular terror victim was likely killed by a Muslim or a non-Muslim, but that's not really what we want to know.  What we want to know is how to improve our odds of catching terrorists before they commit acts of terror, n'est pas?  And for that goal, these numbers don't help at all.

The reason they seem to help is that the rate of terrorism among American Muslims is 37 times higher than it is among American non-Muslims.  That seems like a compelling number, until you recall that the incidence of terrorism among Chapel Hill atheists is 200 times higher than it is among American Muslims, and 7400 times higher than among the population at large.  I hope I don't have to convince you that profiling Chapel Hill atheists will probably not have a positive impact on the problem of terrorism, despite the overwhelmingly higher rate of terrorists among them.  Yes, profiling Muslims might increase your odds of finding terrorists from 0.0000001 to 0.0000037.  But those are still mighty poor odds.  And the resentment that you would instill in the American Muslim community might well cause more terrorist acts than the profiling prevents!

So what should be done instead?  Surely we have to do something about terrorism?

Well, no, actually we don't.  The fact of the matter is that terrorism is really not that big of a problem in the U.S.  The total body count since 9/11 is only 74, or only about five people a year.  About that many people die in car crashes every hour.  Even if we include 9/11 and Oklahoma City that's still only about 150 people a year, less than two days worth of traffic fatalities.

Of course, we really do want to keep weapons of mass destruction out of the hands of crazy people.  But your ordinary run-of-the-mill terrorism of the sort that anyone can accomplish with readily available light ordinance is just not that big of a problem, despite the splashy headlines.  It is hard to imagine a more irrational policy than profiling Muslims to prevent terrorism.

The definition of a no-brainer

The state of Colorado has made the startling discovery that if you give women access to birth control, they have fewer babies.