Quantcast
Channel: WebComics
Viewing all 142 articles
Browse latest View live

XKCD QA (What If?): Facebook of the Dead

$
0
0

Facebook of the Dead

When, if ever, will Facebook contain more profiles of dead people than of living ones?

Emily Dunham

Either the 2060s or the 2130s.

There are not a lot of dead people on Facebook. The main reasons for this is that Facebook—and its users—are young. The average Facebook user has gotten older over the last few years, but the site is still used at a much higher rate by the young than by the old.[1]There are a zillion surveys confirming this, such as this one from eMarketer.

The Past:

Based on the site's growth rate, and the age breakdown of their users over time,[2]You can get user counts for each age group from Facebook's create-an-ad tool, although you may want to try to account for the fact that Facebook's age limits cause some people to lie about their ages. there are probably 10 to 20 million people who created Facebook profiles who have since died.

These people are, at the moment, spread out pretty evenly across the age spectrum. Young people have a much lower death rate than people in their sixties or seventies, but they make up a substantial share of the dead on Facebook simply because there have been so many of them using it.

The Future:

About 290,000 US Facebook users will die (or have died) in 2013. The worldwide total for 2013 is likely several million.[3]Note: In some of these projections, I used US age/usage data extrapolated to the Facebook userbase as a whole, because it's easier to find US census and actuarial numbers than to assemble the country-by-country for the whole Facebook-using world. The US isn't a perfect model of the world, but the basic dynamics—young people's Facebook adoption determines the site's success or failure while population growth continues for a while and then levels off—will probably hold approximately true. If we assume a rapid Facebook saturation in the developing world, which currently has a faster-growing and younger population, it shifts many of the landmarks by a handful of years, but doesn't change the overall picture as much as you might expect. In just seven years, this death rate will double, and in seven more years it will double again.

Even if Facebook closes registration tomorrow, the number of deaths per year will continue to grow for many decades, as the generation who was in college between 2000 and 2020 grows old.

The deciding factor in when the dead will outnumber the living is whether Facebook adds new living users—ideally, young ones—fast enough to outrun this tide of death for a while.

Facebook 2100:

This brings us to the question of Facebook's future.

We don't have enough experience with social networks to say with any kind of certainty how long Facebook will last. Most websites have flared up and then gradually declined in popularity, so it's reasonable to assume Facebook will follow that pattern.[4]I'm assuming, in these cases, that no data is ever deleted. So far, that's been a reasonable assumption; if you've made a Facebook profile, that data probably still exists, and most people who stop using a service don't bother to delete their profile. If that behavior changes, or if Facebook performs a mass purging of their archives, the balance could change rapidly and unpredictably.

In that scenario, where Facebook starts losing market share later this decade and never recovers, Facebook's crossover date—the date when the dead outnumber the living—will come sometime around 2065.

But maybe it won't. Maybe it will take on a role like the TCP protocol, where it becomes a piece of infrastructure on which other things are built, and has the inertia of consensus.

If Facebook is with us for generations, then the crossover date could be as late as the mid-2100s.

That seems unlikely. Nothing lasts forever, and rapid change has been the norm for anything built on computer technology. The ground is littered with the bones of websites and technologies that seemed like permanent institutions ten years ago.

It's possible the reality could be somewhere in between.[5]Of course, if there's a sudden rapid increase in the death rate of Facebook users—possibly one that includes humans in general—the crossover could happen tomorrow. We'll just have to wait and find out.

The fate of our accounts:

Facebook can afford to keep all our pages and data indefinitely. Living users will always generate more data than dead ones, and the accounts for active users are the ones that will need to be easily accessible. Even if accounts for dead (or inactive) people make up a majority of their users, it will probably never add up to a large part of their overall infrastructure budget.

More important will be our decisions. What do we want for those pages? Unless we demand that Facebook deletes them, they will presumably, by default, keep copies of everything forever. Even if they don't, other data-vacuuming organizations will.

Right now, next-of-kin can convert a dead person's Facebook profile into a memorial page. But there are a lot of questions surrounding passwords and access to private data that we haven't yet developed social norms for. Should accounts remain accessible? What should be made private? Should next-of-kin have the right to access email? Should memorial pages have comments? How do we handle trolling and vandalism? Should people be allowed to interact with dead user accounts? What lists of friends should they show up on?

These are issues that we're currently in the process of sorting out by trial and error. Death has always been a big, difficult, and emotionally charged subject, and every society finds different ways to handle it.

The basic pieces that make up a human life don't change. We've always eaten, learned, grown, fallen in love, fought, and died. In every place, culture, and technological landscape, we develop a different set of behaviors around these same activites.

Like every group that came before us, we're learning how to play those same games on our particular playing field. We're developing, through sometimes messy trial and error, a new set of social norms for dating, arguing, learning, and growing on the internet. Sooner or later, we'll figure out how to mourn.

Happy Halloween!


XKCD QA (What If?): The Constant Groundskeeper

$
0
0

The Constant Groundskeeper

How big of a lawn would you have to have so that when you finished mowing you'd need to start over because the grass has grown?

Nick Nelson

According to the Turfgrass Extension and Outreach program at UIUC,[1]The Morrow cornfields operated by the university are the most valuable cornfields in the world, and part of one of the world's longest-running scientific experiments. every mowing should remove one third of the grass blade's height.

Grass grows slower or faster depending on the weather, but we'll assume an average growth rate of 0.2 inches per day. This figure comes from Mowing Your Lawn, a document published by by Iowa State's Yard and Garden Extension program (which, I like to imagine, has a vicious and occasionally bloody rivalry with the UIUC Turfgrass crew).

A typical pushmower at a fast walking speed can mow a little under a square meter per second. If you mowed without stopping from 8:00 AM to 6:00 PM, you would cover about 25,000 square meters.[2]or 6 acres, or 2.5 hectares, or 7,500 square fathoms, or 8,500 square smoots, or 5,300 Shrouds of Turin To maintain your lawn at a height of four inches, you would need to mow it every ten days. If you mowed more or less frequently, you could risk damaging the lawn—or, worse, incur the wrath of UIUC.

At ten hours of mowing per day, you could cover a quarter of a square kilometer before you'd have to circle back to the beginning and start over. If the entire area of Vatican City, indoors and out, were covered in perennial ryegrass,[3]Perhaps due to an ill-advised UIUC undergraduate project you would be able to keep about half of it neatly trimmed.

You could improve on this with a larger, faster mower. An oversized rider mower at 12 miles per hour[4]The maximum listed in the Cub Cadet rider mower acres-per-hour chart could mow as much as two square kilometers, which Wolfram|Alpha helpfully tells me is 0.5% to 1% of an adult male cougar's home range.

In 2010, Bobby Cleveland set a world record for the top speed in a riding lawnmower, hitting 96 mph. This record was set as part of a rivalry with the British lawnmower driver Don Wales.[5]Really.

In a blow to its national pride, the US has lost that record. Sometime in the last few years, the magazine Top Gear commissioned Honda to build them an even faster lawnmower. A few months ago, this mower—which shoots flames from the exhaust pipe—broke 100 mph on a test track in France.[6]"First tests of '130mph' lawnmower", BBC News Technology, 17 July 2013 The builders claim it will eventually reach 130 mph. The mower is still capable of cutting grass (using a custom wire mechanism), but when running at top speed the trimmer is removed for safety reasons.

With the Top Gear mower, what's the maximum area we could cut?

Let's set safety aside and assume we can leave the mower's cutting mechanism in place. Let's also assume that the mower can cut a strip two meters wide while running at top speed.

Under those assumptions, if the mower is run for 24 hours a day, seven days a week ...

... it could just about keep one adult male cougar's home range neatly trimmed.

XKCD QA (What If?): Stirring Tea

$
0
0

Stirring Tea

I was absentmindedly stirring a cup of hot tea, when I got to thinking, "aren't I actually adding kinetic energy into this cup?" I know that stirring does help to cool down the tea, but what if I were to stir it faster? Would I be able to boil a cup of water by stirring?

Will Evans

No.

The basic idea makes sense. Temperature is just kinetic energy. When you stir tea, you're adding kinetic energy to it, and that energy goes somewhere. Since the tea doesn't do anything dramatic like rise into the air or emit light, the energy must be turning to heat.

The reason you don't notice the heat is that you're not adding very much of it. It takes a huge amount of energy to heat water; by volume, it has a greater heat capacity than any other common substance.[1]Hydrogen and helium have a higher heat capacity by mass, but they're diffuse gasses. The only other common substance with a higher heat capacity by mass is ammonia. All three of these lose to water when measured by volume.

If you want to heat water from room temperature to nearly boiling in two minutes, you'll need a lot of power:

\[1\text{ cup}\times\text{Water heat capacity}\times\tfrac{100^\circ\rm{C}-20^\circ\rm{C}}{2\text{ minutes}}=700\text{ watts}\]

(Note: Pushing almost-boiling water to boiling takes a large burst of extra energy on top of what's required to heat it to the boiling point—this is called the enthalpy of vaporization.)

Our formula tells us that if we want to make a cup of hot water in two minutes, we'll need a 700-watt power source. A typical microwave uses 700 to 1100 watts, and it takes about two minutes to heat a mug of water to make tea. It's nice when things work out![2]If they didn't, we'd just blame "inefficiency" or "vortices".

700 watts for two minutes is an awful lot of energy. When water falls from the top of Niagara Falls, it gains kinetic energy, which is converted to heat at the bottom. But even after falling that great distance, the water only heats up by a fraction of a degree.[3]\(\text{Height of Niagra Falls}\times\frac{\text{Acceleration of gravity}}{\text{Specific heat of water}}=0.12^\circ\text{C}\) To boil a cup of water, you'd have to drop it from higher than the top of the atmosphere.

How does stirring compare to microwaving?

Based on figures from industrial mixer engineering reports,[4]Brawn Mixer, Inc., Principles of Fluid Mixing (2003) I estimate that vigorously stirring a cup of tea adds heat at a rate of about a ten-millionth of a watt. That's completely negligible.[5]Tea loses heat a much higher rate than this. See: Ben Harden, Tea temperature vs. Time graph

The physical effect of stirring is actually a little complicated.[6]In some situations, mixing liquids can actually help keep them warm. Hot water rises, and when a body of water is large and still enough (like the ocean) a warm layer forms on the surface. This warm layer radiates heat much more quickly than a cold layer would. If you disrupt this hot layer by mixing the water, the rate of heat loss decreases.

This is why hurricanes tend to lose strength if they stop moving forward—their waves churn up cold water from the depths, cutting them off from the thin layer of hot surface water that was their main source of energy.
Most of the heat is carried away from teacups by the air convecting over them, and so they cool from the top down. Stirring brings fresh hot water from the depths, so it can help this process. But there are other things going on—stirring disturbs the air, and it heats the walls of the mug. It's hard to be sure what's really going on without data.

Fortunately, we have the internet. StackExchange user drhodesmeasured the rate of teacup cooling from stirring vs. not stirring vs. repeatedly dipping a spoon into the cup vs. lifting it. Helpfully, drhodes posted both high-resolution graphs and the raw data itself, which is more than you can say for a lot of journal articles.

The conclusion: It doesn't really matter whether you stir, dip, or do nothing; the tea cools at about the same rate (although dipping the spoon in and out of the tea cooled it slightly faster).

Which brings us back to the original question: Could you boil tea if you just stirred it hard enough?

No.

The first problem is power. 700 watts is about a horsepower, so if you want to boil tea in two minutes, you'll need at least one horse to stir it hard enough.

You can reduce the power requirement by heating the tea over a longer period of time, but if you reduce it too far the tea will be cooling as fast as you're heating it.

Even if you could churn the spoon hard enough—tens of thousands of stirs per second—fluid dynamics would get in the way. At those high speeds, the tea would cavitate; a vacuum would form along the path of the spoon and stirring would become ineffective.

And if you stir hard enough that your tea cavitates, its surface area will increase very rapidly, and it will cool to room temperature in seconds:

No matter how hard you stir your tea, it's not going to get any warmer.

XKCD QA (What If?): Loneliest Human

$
0
0

Loneliest Human

What is the furthest one human being has ever been from every other living person? Were they lonely?

Bryan J. McCarter

It's hard to know for sure!

The most likely suspects are the six Apollo command module pilots who stayed in lunar orbit during a Moon landing: Mike Collins, Dick Gordon, Stu Roosa, Al Worden, Ken Mattingly, and Ron Evans.

Each of these astronauts stayed alone in the command module while two other astronauts landed on the Moon. At the highest point in their orbit, they were about 3,585 kilometers from their fellow astronauts.

You'd think astronauts would have a lock on this category, but it's not so cut-and-dry. There are a few other candidates who come pretty close!

Polynesians

It's hard to get 3,585 kilometers[1]Because of the curve of the Earth, you actually have to go 3,619 kilometers across the surface to qualify. from a permanently inhabited place. The Polynesians, who were the first humans to spread across the Pacific, might have managed it, but this would have required a lone sailor to travel awfully far ahead of everyone else. It may have happened—perhaps by accident, when someone was carried far from their group by a storm—but we're unlikely to ever know for sure.

Once the Pacific was colonized, it got a lot harder to find regions of the Earth's surface where someone could achieve 3,585 kilometer isolation. Now that the Antarctic continent has a permanent population of researchers, it's almost certainly impossible.

Antarctic explorers

During the period of Antarctic exploration, a few people have come close to beating the astronauts, and it's possible one of them actually holds the record. One person who came very close was Robert Scott.

Robert Falcon Scott was a British explorer who met a tragic end. Scott's expedition reached the South Pole in 1911, only to discover that Norwegian explorer Roald Amundsen had beaten him there by several months. The dejected Scott and his companions began their trek back to the coast, but they all died while crossing the Ross Ice Shelf.

The last surviving expedition member would have been, briefly, one of the most isolated people on Earth.[2]Amundsen's expedition had left the continent by then. However, he (whoever he was) was still within 3,585 kilometers of a number of humans, including some other Antarctic explorer outposts as well as the Māori on Rakiura (Stewart Island) in New Zealand.

There are plenty of other candidates. Pierre François Péron, a French sailor, says he was marooned on Île Amsterdam in the southern Indian Ocean. If so, he came close to beating the astronauts, but he wasn't quite far enough from Mauritius, southwestern Australia, or the edge of Madagascar to qualify.

We'll probably never know for sure. It's possible that some shipwrecked 18th-century sailor drifting in a lifeboat in the Southern Ocean holds the title of most isolated human. However, until some clear piece of historic evidence pops up, I think the six Apollo astronauts have a pretty good claim.

Which brings us to the second part of Bryan's question: Were they lonely?

Loneliness

After returning to Earth, Apollo 11 command module pilot Mike Collins said he did not feel at all lonely. He wrote about the experience in his book Carrying the Fire: An Astronaut's Journeys:

Far from feeling lonely or abandoned, I feel very much a part of what is taking place on the lunar surface ... I don't mean to deny a feeling of solitude. It is there, reinforced by the fact that radio contact with the Earth abruptly cuts off at the instant I disappear behind the moon.
I am alone now, truly alone, and absolutely isolated from any known life. I am it. If a count were taken, the score would be three billion plus two over on the other side of the moon, and one plus God knows what on this side.

Al Worden, the Apollo 15 command module pilot, even enjoyed the experience:[3]BBC Future interview with Al Wolden (April 2, 2013)

There's a thing about being alone and there's a thing about being lonely, and they're two different things. I was alone but I was not lonely. My background was as a fighter pilot in the air force, then as a test pilot–and that was mostly in fighter airplanes–so I was very used to being by myself. I thoroughly enjoyed it. I didn't have to talk to Dave and Jim any more ... On the backside of the Moon, I didn't even have to talk to Houston and that was the best part of the flight.

Introverts understand; the loneliest human in history was just happy to have a few minutes of peace and quiet.

XKCD QA (What If?): Lethal Neutrinos

$
0
0

Lethal Neutrinos

How close would you have to be to a supernova to get a lethal dose of neutrino radiation?

(Overheard in a physics department)

The phrase "lethal dose of neutrino radiation" is a weird one. I had to turn it over in my head a few times after I heard it.

If you're not a physics person, it might not sound odd to you, so here's a little context for why it's such a surprising idea:

Neutrinos are ghostly particles that barely interact with the world at all. Look at your hand—there are about a trillion neutrinos from the Sun passing through it every second.

The reason you don't notice the neutrino flood is that neutrinos hardly interact with ordinary matter at all. On average, out of that massive flood, only one neutrino will "hit" an atom in your body every few years.[1]Less often if you're a child, since you have fewer atoms to be hit. Statistically, my first neutrino interaction probably happened somewhere around age 10.

In fact, neutrinos are so shadowy that the entire Earth is transparent to them; nearly all of the Sun's neutrino flood goes straight through it unaffected. To detect neutrinos, people build giant tanks filled with hundreds of tons of material in the hopes that they'll register the impact of a single solar neutrino.

This means that when a particle accelerator (which produces neutrinos) wants to send a neutrino beam to a detector somewhere else in the world, all it has to do is point the beam at the detector—even if it's on the other side of the Earth!

That's why the phrase "lethal dose of neutrino radiation" sounds weird—it mixes scales in an incongruous way. It's like the idiom "knock me over with a feather" or the phrase "football stadium filled to the brim with ants".[2]Which would still be less than 1% of the ants in the world. If you have a math background, it's sort of like seeing the expression "ln(x)e"—it's not that, taken literally, it doesn't make sense, but it's hard to imagine a situation where it would apply.[3]If you want to be mean to first-year calculus students, you can ask them to take the derivative of ln(x)e dx. It looks like it should be "1" or something, but it's not.

Similarly, it's so hard to get enough neutrinos to compel even a single one of them to interact with matter, making it hard to picture a scenario in which there'd be enough of them to affect you.

Supernovae[4]"Supernovas" is also fine. "Supernovii" is discouraged. provide that scenario. The physicist who mentioned this problem to me told me his rule of thumb for estimating supernova-related numbers: However big you think supernovae are, they're bigger than that.

Here's a question to give you a sense of scale:

Which of the following would be brighter, in terms of the amount of energy delivered to your retina:

  1. A supernova, seen from as far away as the Sun is from the Earth, or

  2. The detonation of a hydrogen bomb pressed against your eyeball?

Applying the physicist rule of thumb suggests that the supernova is brighter. And indeed, it is ... by nine orders of magnitude.

That's why this is a neat question; supernovae are unimaginably huge and neutrinos are unimaginably insubstantial. At what point do these two unimaginable things cancel out to produce an effect on a human scale?

A paper by radiation expert Andrew Karam provides an answer.[5]Karam, P. Andrew. "Gamma And Neutrino Radiation Dose From Gamma Ray Bursts And Nearby Supernovae." Health Physics 82, no. 4 (2002): 491-499. It explains that during certain supernovae, the collapse of a stellar core into a neutron star, 1057 neutrinos can be released (one for every proton in the star that collapses to become a neutron).

Karman calculates that the neutrino radiation dose at a distance of one parsec[6]3.262 light-years, or a little less than the distance from here to Alpha Centauri. would be around half a nanosievert, or 1/500th the dose from eating a banana.[7]xkcd.com/radiation

A fatal radiation dose is about 4 sieverts. Using the inverse-square law, we can calculate the radiation dose: \[ 0.5\text{ nanosieverts} \times\left ( \frac{1\text{ parsec}}{x}\right )^2 = 5\text{ sieverts} \] \[ x=0.00001118\text{ parsecs}=2.3\text{ AU} \] 2.3 AU is a little more than the distance between the Sun and Mars.

Core collapse supernovae happen to giant stars, so if you observed a supernova from that distance, you'd probably be inside the outer layers of the star that created it.

The idea of neutrino radiation damage reinforces just how big supernovae are. If you observed a supernova from 1 AU away—and you somehow avoided being being incinerated, vaporized, and converted to some type of exotic plasma—even the flood of ghostly neutrinos would be dense enough to kill you.

If it's going fast enough, a feather can absolutely knock you over.

XKCD QA (What If?): Soda Planet

$
0
0

Soda Planet

How much of the Earth's currently-existing water has ever been turned into a soft drink at some point in its history?

Brian Roelofs

0.0000005%.

First, a tiny bit of background: In the beverage industry, "soft drink" technically refers to any non-alcoholic packaged beverage, but it's commonly used to mean carbonated beverages.[1]In the US, the word people use to refer to a generic carbonated beverage—"soda" vs. "pop" vs. "coke"—strongly depends on where they live. Carbonated water was first produced in the 1700s, and gained popularity as "tonic water" (carbonated water mixed with quinine powder, which has anti-malaria properties), and in carbonated lemonade.[2]Shahan Cheong, Taking the Waters: The History of the Modern Soft-Drink, Not Yet Published (blog post)

The vast majority of all soft drinks ever consumed have been consumed in the last 40 years. Carbonated beverages were fairly popular in the industrialized world throughout the 20th century, but population growth and the spread of companies like Coca-Cola into the developing world mean that the total soda consumption per year has grown relatively fast.

Total soft drink consumption in 2013 was about 188 billion liters. That's 26 liters per person annually, or 70 mL/day.[3]MarketLine, Carbonated Soft Drinks: Global Industry Guide (In the US, the average was 170 liters, or about one 16-oz drink per person per day[4]Dan Check, Matt Dodson, and Chris Kirk, Americans Drink More Soda Than Anyone Else (slate.com)).

Over the past several centuries, humans have probably consumed about 6.5 trillion liters of carbonated beverages.[5]This is a ballpark guess based on population growth and some rough estimates of when soda-drinking became popular in different parts of the world.

That's a lot, certainly. For example, it's enough to fill every house and apartment in the US to a depth of 12 inches:

Even if we assume that every soda is made from an entirely new batch of water, and doesn't include any water from previous sodas, it still represents a tiny fraction of the world's fresh water, and an even tinier fraction of the total volume of the oceans.

What if we expand the question to cover all drinking water? What percentage of water molecules have been drunk[6]Drank? Drinked? Drankéd? by someone at some point?

Humans have been around for a few hundred thousand years, and the total number of humans who have ever lived is usually estimated to be around 110 billion. The question of how much water we should drink per day is the subject of furious debate—the "8 glasses" thing seems to be a myth—but the amount of water we actually drink per day seems to be about a liter.[7]EPA, Estimated Per Capita Water Ingestion and Body Weight in the United States–An Update (2004) This amount varies a little depending on climate, but if we assume the average historical human drank a liter of water per day for 40 years,[8]This is a rough ballpark estimate; it's lower than the 70 or 80 years you might expect because we have to account for the changing human lifespans throughout history and the decreased water consumption by children. then our species has drunk about 100 trillion liters of water in total.

100 trillion liters (100 km3) is still very little compared to even the volume of all rivers (1,200 km3). This means that, since our drinking water passes through the water cycle and is quickly diluted by rivers and oceans, the majority of the water molecules we drink have never been drunk by any other human.[9]On the other hand, it's just about guaranteed that some of the water molecules in any mouthful have been drunk by someone else.

But we're just one species.

Dinosaurs, as a taxonomic group, have been around[10]They're still around! for 230 million years, but their heyday was the mid-to-late Jurassic period. In this period, there were probably around 5 trillion kilograms of dinosaur alive at any given time.[11]Jerzy Trammer, "Differences in global biomass and energy use between dinosaurs and mammals", Acta Geologica Polonica, Vol. 61 (2011), No. 2, pp. 125–132 (Today, there are probably only a few hundred billion kilograms of living dinosaur,[12]I haven't been able to find an estimate for total global bird biomass, but I'll take any chance to cite my favorite journal article ever: "How Many Birds Are There?", by Kevin J. Gaston and Tim M. Blackburn, which estimates the total number at about 300 billion. A later paper lowered the estimate to about 80 billion, so unless the average bird weighs 140 lbs, there is far less dinosaur in the world today than in the Jurassic. 50 billion of it chicken).

If we assume Jurassic dinosaur water requirements were similar to mammal ones,[13]Animal weights and their food and water requirements then this suggests dinosaurs drank something like 1022 or 1023 liters of water during the Mesozoic era—more than the total volume of the oceans (1021 liters).

The average "residence time" of water in the oceans—the amount of time a water molecule spends there before moving into another part of the water cycle—is about 3,000 years,[14]K. L. Schulz, Water in the Biosphere and no part of the water cycle traps water for more than a few hundred thousand years. This means we can assume that, over timescales of millions of years, Earth's water is thoroughly mixed—and dinosaurs had plenty of time to drink it all many times over.

This means that while the chances are that most of the water in your soda has never been in another soda, almost all of it has been drunk by at least one dinosaur.

XKCD QA (What If?): Phone Keypad

$
0
0

Phone Keypad

I use one of those old phones where you type with numbers—for example, to type "Y", you press 9 three times. Some words have consecutive letters on the same number. When they do, you have to pause between letters, making those words annoying to type. What English word has the most consecutive letters on the same key?

Stewart Bishop

We can answer that question with the following headache-inducing shell command, which finds all words in a given list which use the same key a bunch of times in a row:

cat wordlist.txt | perl -pe 's/^(.*)\$/\L\$& \U\$&/g' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' '2223334445556667777888999' | grep -P "(.)\1\1\1\1\1"

The winner, according to this script, is nonmonogamous, which requires you to type seven consecutive letters (nonmono) with the "6" key.[1]It's actually tied with nonmonotonic. These no doubt both lose to more obscure words which weren't in the wordlists I used.

Phone Keyboard Sentences

It's rare for a word to have all its letters on the same key; the longest common ones are only a few letters.[2]Like "tutu". Nevertheless, using only these words, we can write a high def MMO on TV, a phrase whose words use only one number key each.

There are plenty of other phrases like this, although some of them are a bit of a stretch:

Typing issues like this aren't limited to old phone keyboards. For any text input system, you can find phrases which are weird to type.

QWERTY Keyboards

It's a well-known piece of trivia among word geeks that "stewardesses" is the longest common word you can type on a QWERTY keyboard using only the left hand.

In fact, it's possible to write entire sentences with just the left hand. For example, try typing the words We reserved seats at a secret Starcraft fest. Weird, huh?

Let's take a look at a few more sentences—written with the help of some even messier shell commands and Python scripts[3]I constructed these sentences by searching text logs for sentence fragments that fit a particular constraint, then randomly connecting those groups together using a technique called Markov chaining. You can see the code I used here.—which follow various constraints:

Left hand only

Right hand only

Home row only

Top row only

And lastly, if anyone wants to know why you're not more active on social media, you only need the top row to explain that you're ...

XKCD QA (What If?): Reading Every Book

$
0
0

Reading Every Book

At what point in human history were there too many (English) books to be able to read them all in one lifetime?

Gregory Willmot

This is a complicated question. Getting accurate counts of the number of extant books at different times in history is very hard bordering on impossible. For example, when the Library of Alexandria burned, a lot of writing was lost,[1]On the other hand, a lot of Egyptian readers were probably excited to get out of overdue book fines. but how much writing was lost is hard to pin down. Some estimates range from 40,000 books to 532,800 scrolls,[2]The Great Library of Alexandria and other writers say that all those numbers are implausible.

Researchers Eltjo Buringh and Jan Luiten van Zanden used historical book catalogs to put together statistics on the number of books (or manuscripts) published annually per region.[3]Charting the “Rise of the West”: Manuscripts and Printed Books in Europe, A Long-Term Perspective from the Sixth through Eighteenth Centuries By their figures, the rate of publication in the British Isles probably passed one manuscript per day in around the year 1075 CE.

Most of the manuscripts published in 1075 weren't in English, or even the variants of English common at the time. In 1075, literature was typically written in some form of Latin or French, even in areas where Old English was commonly spoken on the street.

The Canterbury Tales (written in the late 1300s) were part of a move toward vernacular English as a literary language, although they're not exactly readable to a modern eye:

Wepyng and waylyng, care and oother sorwe
I knowe ynogh, on even and a-morwe,'
Quod the Marchant, 'and so doon oother mo
That wedded been.

Even if we know how many manuscripts were published per year, in order to answer Gregory's question, we still need to know how long it takes to read a manuscript.

Rather than trying to figure out how long all the lost books and codices are, we can step back and take a longer view of things.

Writing speed

Tolkien wrote Lord of the Rings in 11 years, which means that he wrote at an average pace of 125 words per day, or less than 0.085 word per minute. Harper Lee wrote the 100,000-word To Kill a Mockingbird in two and a half years, for an average of 100 words per day, or 0.075 words per minute. Since To Kill a Mockingbird is her only published book, her lifetime average is 0.002 words per minute, or about three words per day.

Some writers are substantially faster. In the preface to Opus 200, the prolific writer Isaac Asimov estimated that he had published about 15,000,000 words between age 30 and 50. His average over his writing career might have been around 1 word per minute, and at times he was averaging writing several thousand words per day. (Over his entire life, his average dips as low as 0.5 words per minute.) Some pulp writers have even higher averages.

It's reasonable to assume historical writers had a similar range of speeds. You might point out that typing on a keyboard is more than twice as fast as writing a manuscript in longhand. But typing speed isn't a writer's bottleneck. After all, at a typing speed of 70 words per minute, it should only take 24 hours to type out To Kill a Mockingbird.

Typing and writing speeds are so different because the limit on writing speed is how quickly our brains can organize, produce, and edit stories. This "storytelling speed" has probably changed much less over time than our physical writing speed has.

This gives us a much better way to estimate when the number of books became too large to read.

The average person can read at 200-300 words per minute. If the average living writer, over their entire lifetime, falls somewhere between Isaac Asimov and Harper Lee, they might produce 0.05 words per minute over their entire lifetime.

If you were to read for 16 hours a day at 300 words per minute,[4]For an average of 200 words per minute. you could keep up with a world containing an average population of 100,000 living Harper Lees or 400 living Isaac Asimovs.

If we estimate that during their active periods, writers are producing somewhere between 0.1 and 1 word per minute, then one dedicated reader might be able to keep up with a population of about 500 or 1,000 active writers. The answer to Gregory's question—the date at which there were too many English books to read in a lifetime—happened sometime before the population of active English writers reached a few hundred. At that point, catching up became impossible.

The magazine Seed estimates that the total number of authors reached this point around the year 1500 and has continued rising rapidly ever since.[5]Seed: A Writing Revolution The number of active English writers crossed this threshold shortly thereafter, around the time of Shakespeare, and the total number of books in English probably passed the lifetime reading limit sometime in the late 1500s.

On the other hand, how many of them would you want to read? If you go to goodreads.com/book/random, you can see a semi-random sample of what you'd be reading. Here's what came up for me:

  • • School Decentralization in the Context of Globalizing Governance: International Comparison of Grassroots Responses, by Holger Daun
  • • Powołanie (Dragon Age #2), by David Gaider
  • • An Introduction to Vegetation Analysis: Principles, Practice and Interpretation, by David R. Causton
  • • AACN Essentials of Critical-Care Nursing Pocket Handbook, by Marianne Chulay
  • • National righteousness and national sin: the substance of a discourse delivered in the Presbyterian church of South Salem, Westchester co., N.Y., November 20, 1856, by Aaron Ladner Lindsley
  • • Phantom of the Auditorium (Goosebumps #24), by R. L. Stine
  • • High Court #153; Case Summaries on Debtors and Creditors-Keyed to Warren, by Dana L. Blatt
  • • Suddenly No More Time, by Emil Gaverluk

So far, I've read ... the Goosebumps book.

To make it through the rest, I might need to recruit some help.


XKCD QA (What If?): Growth Rate

$
0
0

Growth Rate

What height would humans reach if we kept growing through our whole development period (i.e. till late teens/early twenties) at the same pace as we do during our first month?

Maria

Tall.

According to the National Center for Health Statistics, the average newborn's height (length) is approximately 0.5 meters,[1]or 0.56 meters in heels. or a quarter of the diameter of the Death Star thermal exhaust port.

From this initial height of 0.5 meters, they grow to about 1.5 or 2.0 meters:

Babies grow fastest right after they're born. During their first month, infants grow about 4.4 centimeters, ten times their growth rate during their early teenage years.

In Maria's scenario, this growth rate continues until about age 20:

Let's follow that child's growth over the years.

By its first birthday, the baby would be a meter long:

At 2 years and 3 months, the kid would reach 169 centimeters (5'7"), the average adult height in the US.

By age 3, we'd have a 2.08 meter (6'10") toddler, taller than Darth Vader ...

... and much taller than Yoda:

By age 4, the child would be nearly nine feet tall, able to dunk a basketball without jumping.[2]A 7'8" Harlem Globetrotters player can almost dunk without jumping, so the threshold for a clear no-jump dunk is probably around 8 feet.

A few months later, the kid would surpass Robert Wadlow to become the tallest human in history.

At age 5, the child would be $ \pi $ meters tall (10'4"):

At age 7, the child would be 4.2 meters tall, able to stare down a T-rex:

By age 10, the child would be 5.8 meters tall (19 feet). If we assume these giants are proportioned like adult humans, this kid would weigh over a metric ton.

Actual humans wouldn't be able to grow to such heights. Thanks to the square-cube law, our bones would be too thin to support our weight and our hearts would be unable to pump blood around our bodies. Even breathing would be difficult; we might be able to position ourselves to keep our airways opened, but to breathe in a lungful of air would require very high airflow rates; we'd experience tornado winds all the way down our airways.

Our giant would reach a final height of between 10 and 12 meters, assuming growth tapered off around age 20. At that height, they'd be able to comfortably dunk a basketball while keeping one hand on the court outside the three-point line.[3]A creative NBA 2K3 mod shows us what that player might look like.

In addition to the insurmountable health problems, someone with this rapid growth rate would face another hardship.

To ride roller coasters, you have to be above a certain minimum height. However, they generally also have a maximum height.

Bizarro, a coaster at Six Flags New England, has a minimum height of 137 cm (4'6") and a maximum height of 193 cm (6'4"). Our child would be tall enough to ride Bizarro at age 2 ... and too tall by age 3. Their coaster-riding window would last only 387 days.

It's a sad truth: Roller coasters just aren't for everyone.

XKCD QA (What If?): T-rex Calories

$
0
0

T-rex Calories

If a T-rex were released in New York City, how many humans/day would it need to consume to get its needed calorie intake?

Tony Schmitz

About half of an adult, or one ten-year old child:

Tyrannosaurus rex weighed about as much as an elephant.[1]This always seemed a little off to me; my mental image of elephants is that they're in the same size range as cars or trucks, whereas T-rex, as Jurassic Park showed, is big enough to stomp on cars. But a Google image search for car+elephant shows elephants looming over cars just like the T-rex in Jurassic Park. So, great, now I'm also afraid of elephants.

No one is totally sure what dinosaur metabolism looked like, but the best guesses for how much food T-rex ate seem to cluster around 40,000 calories per day.[2]Food calories (kcal). Sources: This and this, and this with some notes from this and distraction from this.

If we assume dinosaurs had metabolisms similar to today's mammals, they'd eat a lot more than 40,000 calories each day. But the current thinking is that while dinosaurs were more active (loosely speaking, "warm-blooded") than modern snakes and lizards, very large dinosaurs probably had metabolisms that more closely resembled komodo dragons than elephants and tigers.[3]For big sauropods, we know this must be the case, because otherwise they would overheat. However, there's a lot of uncertainty surrounding T-rex-sized dinosaurs.

Next, we need to know how many calories are in a human. This number is helpfully provided, by Dinosaur Comics author Ryan North, on this wonderful t-shirt. Ryan's shirt tells us that an 80-kg human contains about 110,000 calories of energy.

Therefore, a T-rex would need to consume a human every two days or so.[4]Although a T-rex would likely be willing to eat several days to weeks worth of food in one meal, so if it has the option, it might eat a bunch of people at a time, then go for a while without eating. The city of New York had 239,736 births in 2011, which could support a population of about 1,000 tyrannosaurs. However, this ignores immigration—and, more importantly, emigration, which would probably increase substantially in this scenario.

The 33,000 McDonald's restaurants worldwide sell something like 15 billion hamburger patties per year,[5]They stopped reporting the "x billions served" number on their signs, but this website has some extrapolations. for an average of 1,245 burgers per restaurant per day. 1,245 burgers is about 600,000 calories, which means that each T-rex only needs about 80 hamburgers per day to survive, and one McDonald's could support over a dozen tyrannosaurs on hamburgers alone.

Ands if you live in New York, and you see a T-rex, don't worry. You don't have to choose a friend to sacrifice; just order 80 burgers instead.

And then if the T-rex goes for your friend anyway, hey, you have 80 burgers.

XKCD QA (What If?): Lake Tea

$
0
0

Lake Tea

What if we were to dump all the tea in the world into the Great Lakes? How strong, compared to a regular cup of tea, would the lake tea be?

Alex Burman

Weak, bordering on homeopathic.

The standard cup of tea, as described by the International Organization for Standardization in ISO 3103, contains two grams of tea per 100 mL of water.[1]Further ISO standards concerning tea include ISO 3720 (black tea), ISO 11287 (green tea), and ISO 14502-2 (the difference between black tea and green tea). The Great Lakes have a volume of about 22,600 cubic kilometers, which means we would need about 450 billion tons of tea to reach proper strength.

According to the Tea Board of India, one year's global tea harvest totals only about 4.8 million tons,[2]Using figures from this report extrapolated forward to 2014. only 1/100,000th of what we'd require to make Great Lake Tea. If we dumped those 4.8 million tons into the lakes, the resulting tea would be about as strong as if we'd dripped two drops of tea in a bathtub.[3]Technically, calling this kind of tea "homeopathic" is an exaggeration, since substances in homeopathy are diluted way more than this. Proper bathtub tea, of course, requires one 3-kg bag.

For better lake tea, we should find a lake with a volume of 240 million cubic meters (0.24 cubic kilometers).

Wular Lake in Kashmir is one candidate. Its volume varies with the seasons, but during the winter it's just about exactly the right size.[4]Unfortunately, it's shrinking. (For winter volume, see the chart on page 18 of that report.) India is the world's second-largest tea producer, so it's also conveniently located.

Ullswater, in the UK's Lake District, is another great candidate. With a relatively stable year-round volume of about 0.23 cubic kilometers, it would be an excellent site for brewing a global cup of tea.

Of course, while neither Wular Lake or Ullswater has ever been used as a giant teakettle, something like this was—famously—attempted in my own backyard in Boston. In 1773, a group of colonists disguised as American Indians[5]They dressed up as American Indians to align themselves politically with the Americas—against Britain—invoking the popular European stereotype of the free and noble savage.

The Mohawk people, the actual Indians who the protesters were mimicking, mistrusted the settlers encroaching on their land, sided with the British during the subsequent war, and afterward were driven from their homes by the Americans and fled to Canada.
boarded three British ships and threw the cargo of tea—around 44 tons of it—into Boston Harbor to protest British-run tax policy.

Boston Harbor has a volume of about 0.44 cubic kilometers, which means that the "tea" brewed in 1773 would have been even more dilute than our Great Lakes tea. The harbor is also somewhat larger[6]The tidal range in Boston is so large (over three meters) that the harbor's volume at high tide is nearly double what it is at low. than Wular Lake or Ullswater, so all the tea in the world would still make Boston Harbor slightly too weak.

There's another problem: Heat. If you wanted to make tea from a lake, such as Ullswater or Wular Lake, you'd have to heat the water up. Is that even possible?

There's clearly enough stored energy in the world to do it. After all, we presumably heat that amount of water for tea every year already; we just do it in small batches around the world.

To heat up Ullswater to 80°C[7]Lots of people have very strong opinions on what this temperature should be. Please direct any corrections on this matter to What-If Tea-Related Complaints Dep't, c/o Her Majesty The Queen, Buckingham Palace, London SW1A 1AA. would take \(6.6 \times 10^{16}\) joules of energy—about 20 days worth of British electricity consumption. which is roughly what would be released if you dropped a water bottle full of antimatter in the lake.

Asking Britain to go without electricity for 20 days just to fill one of their lakes with tea seems like it might be a hard sell. Fortunately, there's an easier solution.

Boiling Lake in Dominica is a volcanic lake about 60 meters across. Its temperature varies, but it's often near boiling at the edges and vigorously boiling in the center. Measuring the depth of the lake is difficult, so it's hard to get an estimate of the total volume.

Frying Pan Lake in New Zealand, on the other hand, is the largest hot lake in the world. It has a volume of about 200,000 m3, and an average temperature of around 50°C—not quite hot enough for tea, but much closer than Ullswater or Wular Lake.

New Zealanders consume about 600 grams of tea per person,[8]Kerryn Pollock. 'Tea, coffee and soft drinks', Te Ara - the Encyclopedia of New Zealand, updated 15-Jul-13 for a total of 2,700 tons of tea. If they waited until Frying Pan Lake got particularly hot, then dunked it all in at once ...

... they could brew a year's worth of tea in minutes.

XKCD QA (What If?): Pile of Viruses

$
0
0

Pile of Viruses

What if every virus in the world were collected into one area? How much volume would they take up and what would they look like?

Dave

It would be a huge pile, but human viruses would make up only a tiny fraction of it.

HIV, the virus that causes AIDS, has killed tens of millions of people worldwide, and over 30 million people are currently living with HIV. The number of copies of the virus carried in someone's blood can vary dramatically,[1]Data on viral load—the number of copies of the virus per mL of blood—can be found in this paper. but across all the people in the world, there probably exists about a spoonful worth of HIV.

The typical healthy human body contains about \(3 \times 10^{12}\) viruses. This is actually not as many as you might expect; by volume, humans are apparently a less friendly environment for viruses than, say, soil.[2]An area of wetlands in Delaware contains something like four billion viruses per mL of soil, in case you were looking for a fun vacation destination.

If you gathered together all the viruses in all the humans in the world, they would fill about ten oil drums:

These 10 barrels only represent a tiny portion of the global virus community. Most of the world's viruses aren't found in humans. They're found in the sea.

Seawater is full of microorganisms, and we've recently learned that those microorganisms are preyed on by viruses in a big way. Every day, about one in five living cells in the ocean is killed by a virus.[3]Marine viruses—major players in the global ecosystem These viruses are found from the surface of the ocean down to the depths.[4]Oddly, as you go further offshore and further down, the concentration of viruses doesn't decrease as much as the concentration of bacteria, so the virus-to-bacteria ratio is higher in the deep oceans than near the shore. Because the sea is so big,[5]Citation: Go and look at the sea. It's big. it contains a staggering number of viruses.

If you piled up all these viruses—more than 1030 of them—in one place, they would be the size of a small mountain.

It's hard to say exactly what the virus mountain would look like, but it would probably resemble something in between pus and meat slurry.[6]Blame Dave—he's the one who asked. Regardless of its exact appearance, it would almost certainly be disgusting.

The pile wouldn't stay mountain-shaped for long, any more than a mountain of any organic secretion would.[7]If you don't believe me, try building a mountain of earwax or snot. You'll find you can't make it higher than a few inches before your friends and family show up and sit you down for a talk. To avoid a gigantic flood, it might be better to collect them into some kind of container.

MetLife Stadium, host of Super Bowl XLVIII, has a volume of about 1.5 million cubic meters. Earth's viruses could fill the stadium about 150 times over.

So if you watch the Super Bowl, take a moment to picture all the players floating, suspended, in a sea of yellowish-white secretions.

Enjoy the game!

XKCD QA (What If?): Catch!

$
0
0

Catch!

Is there any way to fire a gun so that the bullet flies through the air and can then be safely caught by hand? e.g. shooter is at sea level and catcher is up a mountain at the extreme range of the gun.

Ed Hui, London

Yes.

The "bullet catch" is a common magic trick in which a magician appears to catch a fired bullet in mid-flight—often between their teeth. This an illusion, of course; it's not possible to catch a bullet like that.[1]This was confirmed by Mythbusters in episode 4 of Season 4.

But under the right conditions, you could catch a bullet. It would just take a lot of patience.[2]I'd like to remind everyone that while I write sometimes about the interesting physics of bullets, I'm not an authority on firearms safety. I was raised Quaker; I've never held a gun, much less fired one.

A bullet fired straight up would eventually reach a maximum height.[3]Don't do this. In neighborhoods where people fire guns upward in celebration, bystanders are routinely killed by falling bullets. It probably wouldn't stop completely; more likely, it would be drifting sideways at a couple meters per second. At that speed, as long as you were in the right place at the right time, you could snatch it out of the air.

If someone fired a bullet upward ...

... and you were hanging out in a hot-air balloon directly above the firing range ...

... it's possible that you could reach out and snag the bullet at the apex of its flight.

If you succeeded, you might notice something odd: In addition to being hot, the bullet would be spinning. It would have lost its upward momentum, but not its rotational momentum; it would still have the spin given to it by the barrel of the gun.

This effect can be seen, dramatically, when a bullet is fired at ice.[4]Floor water. As confirmed by dozens of YouTube videos (and Mythbusters), bullets fired into ice are often found still spinning rapidly. You'd have to grab the bullet firmly; otherwise, it might jump out of your hand.

If you don't have a balloon, you could potentially make this work from a mountain peak. Mount Thor, which you may remember from question #51, features a vertical drop of 1,250 meters. According to ballistics lab Close Focus Research, this is almost exactly how high a .22 Long Rifle bullet will fly if fired directly upward.[5]Close Focus Research, Maximum Altitude For Bullets Fired Vertically

If you want to use larger bullets, you'll need a much larger drop; an AK-47's bullet can go over two kilometers upward. There are no purely vertical cliffs that are that tall, so you'd need to fire the bullet at an angle, and it would have significant sideways speed at the top of its arc. However, a suitably tough baseball glove might be able to snag it.[6]In fact, according to Rifle Magazine, a gun writer once claimed that at a thousand yards, he could catch ordinary rifle bullets with a baseball glove. Of course, he was being figurative—you wouldn't see the bullet coming, so you'd be just as likely to catch it with your face as with your glove.

In any of these scenarios, you'd have to get extraordinarily lucky. Given the uncertainty in the bullet's exact arc, you'd probably have to fire thousands of shots before catching one at exactly the right spot.

And by that point, you may find you've attracted some attention.

XKCD QA (What If?): Hitting a comet

$
0
0

Hitting a comet

Astrophysicists are always saying things like "This mission to this comet is equivalent to throwing a baseball from New York and hitting a particular window in San Francisco." Are they really equivalent?

Tom Foster

No; the baseball thing is much harder.

To throw something from New York to LA, you have to lob it out of the atmosphere like an ICBM.[1]Launched by New York at LA, as I'm sure happens now and then.

Unfortunately, baseballs are too small to punch through the atmosphere. No matter how fast they're going, they'll wind up stopping before they make it to space. If you wanted to hit a window in LA with a baseball, you'd have better luck throwing it at a plane and hoping it gets lodged in the landing gear during takeoff.

The comet-visiting spacecraft Tom's astrophysicists are referring to is probably Rosetta, which is about to orbit the comet 67P/Churyumov–Gerasimenko and send a lander down to its surface.

Note: 67P/Churyumov–Gerasimenko is a mouthful, so for the rest of this article I'm just going to call the comet "Kevin".

Rosetta is currently about to arrive at Kevin, and is about 780 million kilometers from Earth. It's taken a roundabout route:

Kevin, Rosetta's target, is about 4 km wide. Since it's 780 million kilometers away. If it were as far away as San Francisco is from New York, the target would be two centimeters wide—even more impressive than the statistic Tom quoted.

So Rosetta hitting its target is like throwing an object from New York and having it hit a particular key[2]Tilde, if you're curious. on a keyboard in San Francisco.

It's not a fair comparison, but you gotta admit, it sounds pretty precise. I once heard an account from someone who worked on the Cassini-Huygens mission, where one of the designers pointed out that their spacecraft traveled to a target a billion kilometers away, and arrived within something like a second and a half of the scheduled time.[3]Despite searching, I've been unable to track down this interview. If you see it, let me know!

On the other hand, we could make less flattering comparisons.

Take remote surgery. If a surgeon in New York uses a remote surgery robot in San Francisco to do eye surgery, and the robot aims for the patient's eye with the precision of Rosetta's approach, it will point its laser somewhere around here:

However this isn't a fair comparison either. Both Rosetta and our laser surgeon[4]I really hope that's what this job is called will refine their movements as they make their final approaches, achieving very high precision.

When it comes down to it, the two tasks—remote surgery and remote probe-landing—are probably about equally precise, in a distance sense.

Which brings me to something a little different with which I'd like to end this article: A question for you to try to answer. Namely:

Would you rather bet a million dollars on a spacecraft landing engineer's ability to successfully perform eye surgery, or an eye surgeon's ability to land a probe on a comet?
I haven't been able to decide.

XKCD QA (What If?): Star Sand

$
0
0

Star Sand

If you made a beach using grains the proportionate size of the stars in the Milky Way, what would that beach look like?

Jeff Wartes

Sand is interesting.[Citation needed]

"Are there more grains of sand than stars in the sky?" is a popular question which has been tackled by many people. The upshot is that there are probably more stars in the visible universe than grains of sand on all of Earth's beaches.

When people do those calculations, they often dig up some good data on the number of stars, then do some hand-waving about sand grain size to come up with a number for the sand grains on Earth.[1]From a practical point of view, geology and soil science are more complicated than astrophysics. We're not going to tackle that issue today, but to answer Jeff's question, we do need to figure out what the deal with sand is.[2]"i like sand because i don't really know what it is and there's so many of it"

@darth__mouth
Specifically, we need to have some idea of what grain sizes correspond to clay, silt, fine sand, coarse sand, and gravel, so we can understand how our galaxy would look and feel if it were a beach.[3]Instead of just containing a bunch of them.

Fortunately, there's a wonderful chart by the US Geologic Survey that answers all these questions and more. For some reason, I find this chart very satisfying—it's like the erosion geology edition of the electromagnetic spectrum chart.

According to surveys of sand,[4]There are apparently lots of them. the grains found on beaches tend to run from 0.2mm to 0.5mm (with the finest layers on top). This corresponds to medium-to-coarse sand in the chart. The individual grains are about this big:

If we assume the Sun corresponds to a typical sand grain, then multiply by the number of stars in the galaxy, we come up with a large sandbox worth of sand.[5]I mean, you come up with a bunch of numbers, but imagination turns them into a sandbox.

However, this is wrong. The reason: Stars aren't all the same size.

There are a number of widely-circulated YouTube videos comparing star sizes. They do a good job of getting across just how staggeringly large some stars are. Although it's easy to get lost in the videos and lose track of scale, it's clear that some of the grains in our sandbox universe would be more like boulders.

Here's how the main-sequence[6]The stars in the main part of their fuel-burning lifecycle. star-sand grains look:

They mostly fall into the "sand" category, though the larger Daft Punk stars cross the line into "granules" or "small pebbles".

However, that's just the main sequence stars. Dying stars get much, much bigger.

When a star runs out of fuel, it expands into a red giant. Even ordinary stars can produce huge red giants, but when a star that's already massive enters this phase, it can become a true monster. These red supergiants are the largest stars in the universe.

These beachball-sized sand stars would be rare, but the grape-sized and baseball-sized red giants are relatively common. While they're not nearly as abundant as Sun-like stars or red dwarfs, their huge volume means that they'd constitute the bulk of our sand. We would have a large sandbox worth of grains ... along with a field of gravel that went on for miles.

The little sand patch would contain 99% of the pile's individual grains, but less than 1% of its total volume. Our Sun isn't a grain of sand on a soft galactic beach; instead, the Milky Way is a field of boulders with some sand in between.

But, as with the real Earth seashore, it's the rare little stretches of sand between the rocks where all the fun seems to happen.


XKCD QA (What If?): Paint the Earth

$
0
0

Paint the Earth

Has humanity produced enough paint to cover the entire land area of the Earth?

—Josh (Bolton, MA)

This answer is pretty straightforward. We can look up the size of the world's paint industry, extrapolate backward to figure out the total amount of paint produced. We'd also need to make some assumptions about how we're painting the ground. Note: When we get to the Sahara desert, I recommend not using a brush.

But first, let's think about different ways we might come up with a guess for what the answer will be. In this kind of thinking—often called Fermi estimation—all that matters is getting in the right ballpark; that is, the answer should have about the right number of digits. In Fermi estimation, you can round[1]Using the formula \( \text{Fermi}(x) = 10^{\text{round}(log_{10}x)} \), meaning that 3 rounds to 1 and 4 rounds to 10. all your answers to the nearest order of magnitude:

Let's suppose that, on average, everyone in the world is responsible for the existence of two rooms, and they're both painted. My living room has about 50 square meters of paintable area, and two of those would be 100 square meters. 7.15 billion people times 100 square meters per person is a little under a trillion square meters—an area smaller than Egypt.

Let's make a wild guess that, on average, one person out of every thousand spends their working life painting things. If I assume it would take me three hours to paint the room I'm in,[2]This is probably optimistic, especially if there's an internet connection in the room. and 100 billion people have ever lived, and each of them spent 30 years painting things for 8 hours a day, we come up with 150 trillion square meters ... just about exactly the land area of the Earth.

How much paint does it take to paint a house? I'm not enough of an adult to have any idea, so let's take another Fermi guess.

Based on my impressions from walking down the aisles, home improvement stores stock about as many light bulbs as cans of paint. A normal house might have about 20 light bulbs, so let's assume a house needs about 20 gallons of paint.[3]These are very rough estimates. Sure, that sounds about right.

The average US home costs about \$200,000. Assuming each gallon of paint covers about 300 square feet, that's a square meter of paint per \$300 of real estate. I vaguely remember that the world's real estate has a combined value of something like \$100 trillion,[4]Citation: This really boring dream I had once. which suggests there's about 300 billion square meters of paint on the world's real estate. That's about one New Mexico.

Of course, both of the building-related guesses could be overestimates (lots of buildings are not painted) or underestimates (lots of things that are not buildings[5]EXAMPLES OF THINGS THAT ARE NOT BUILDINGS: Ducks, M&Ms, cars, the Sun, cuttlefish, microchips, Macklemore, lightning, goat blood, zeppelins, tapeworms, pickle jars, those sticks you use to toast marshmallows, alligators, tuning forks, minotaurs, Perseid meteors, ballots, crude oil, sponsored tweets, and catapults that throw handfuls of engagement rings. are painted) But from these wild Fermi estimates, my guess would be that there probably isn't enough paint to cover all the land.

So, how did Fermi do?

According to the report The State of the Global Coatings Industry, the world produced 34 billion liters of paints and coatings in 2012.

There's a neat trick that can help us here. If some quantity—say, the world economy—has been growing for a while at an annual rate of n—say, 3% (0.03)—then the most recent year's share of the whole total so far is \( 1-\tfrac{1}{1+n} \), and the whole total so far is the most recent year's amount times \( 1+\tfrac{1}{n} \).

If we assume paint production has, in recent decades, followed the economy and grown at about 3% per year, that means the total amount of paint produced equals the current yearly production times 34.[6]\( (1+\tfrac{1}{0.03}) \) That comes out to a little over a trillion liters of paint. At 30 square meters per gallon,[7]"Square meters per gallon" is a pretty obnoxious unit, but I think it's not quite as bad as acre-foot (a foot by a chain by a furlong), which is an actual unit used in technical papers I was trying to read this week. that's enough to cover 9 trillion square meters—about the area of the United States.

So the answer is no; there's not enough paint to cover the Earth's land, and—at this rate—probably won't be enough until the year 2100.

Score one for Fermi estimation.

XKCD QA (What If?): Rocket Golf

$
0
0

Rocket Golf

Assuming that you have a spaceship in orbit around the Earth, could you propel your ship to speeds exceeding escape velocity by hitting golf balls in the other direction? If so, how many golf balls would be required to reach the Moon?

—Dan (Kanta, Ontario)

It depends how good your swing is.

That sounds glib, but it's sort of true. The answer to this question hinges on exactly how fast you can hit a golf ball.

Sometimes, exact numbers don't matter that much. If my baseball, car, dog, or Zamboni goes a little faster than yours,[1]$20 says they will! it will go a little farther. But that's not how it works in rocket golf. The design of our spaceship turns out to involve an equation where the speed of the golf ball is in the exponent. That means a small change in speed can make a big difference.

The equation in question—which might be my favorite in all of physics—the Tsiolkovsky rocket equation:

\[ \Delta v = v_\text{exhaust} \ln \frac{m_\text{initial}}{m_\text{final}} \]

This equation comes up a lot in What If calculations. I like it both because it says something fundamental about our ability to explore the universe, and because you can use it to get really good at Kerbal Space Program.

With some rearranging, can help us for how much of our ship's weight has to be golf balls:

\[ \frac{\text{Mass of ship plus golf balls}}{\text{Mass of ship alone}} = e ^ \left ( \frac{\text{Ship's change in speed}}{\text{Speed of golf ball}} \right ) \]

Someone who, like me, has never been golfing before, might—after swinging and missing a few times—manage to hit the ball at 120 mph (50 m/s).[2]See Trackman's page on ball speed To get to the Moon from low Earth orbit, you would need enough fuel to add 5,300 m/s to your ship's speed. By putting those numbers into the rocket equation, we can find out how large a sack of golf balls would have to be for the average golfer to reach the Moon. If we plug it in to Wolfram|Alpha ...

... we find that the bag of golf balls will have to be just about exactly 100 billion miles in diameter. That's much, much bigger than our Solar System.[3]As a Fermi rule of thumb, planets in the inner Solar System are 100 million kilometers away and planets in the outer Solar System are a billion kilometers away. Or miles; either one works.

It would also promptly and violently collapse into a black hole.

Fortunately, we should be able to avert that disaster by making relatively small changes to the "120" in that equation. If we increase the golf ball's speed from 120 mph to 150, it shrinks the answer dramatically, and the required number of golf balls would fit snugly between the Sun and Mars. Still too big to avoid a catastrophic collapse, but we're getting somewhere.

Tiger Woods can hit a golf ball at about 180 mph, which means that if he were powering our spaceship, the bag of golf balls would be only twice the diameter of the Sun!

According to the Guinness Book of World Records, the record for fastest golf drive is 211 mph, set by Maurice Allen in 2012. This corresponds to a bag of golf balls only 100,000 kilometers across—smaller than Jupiter, but still (obviously) not practical.

However, golfer Ryan Winther claims to have beaten this record, though without Guinness observers there.[4]And, obviously, it doesn't count unless it's overseen by people from a beer company. If you want to set a world record, hit a golf ball at a radar gun and get it certified by the Mike's Hard Lemonade people. His ball speed was measured by something called the "Titleist Performance Institute" to be 226.7 mph, and he claims a personal best of 237 mph. If he could consistently hit 237 mph, we could shrink our fuel container down to the size of Earth[5]Although it would still be large enough to partially collapse under its own gravity, similar to what happened to the mole of moles.

This still wouldn't work; even in a high orbit, the massive tides from your ship—which is much more massive than the Moon—would be highly disruptive.

We could probably shrink the fuel tank further by using "illegal" equipment. There are Superball-style balls and "trampoline face" clubs which can hit much farther, and which would not be permitted in tournament play.[6]On the other hand, we're talking about a sport that brought whites-only clubs with it into the 21st century, and Agusta, host of the Masters, admitted its first woman in 2012. So maybe we shouldn't worry too much about their traditional rules. A hypothetical 270 mph drive would allow a fuel tank the size of the Moon.

At this point, why are we even using a club?

According to research from the US Air Force Academy and BTG Research,[7]Oddly, both researchers have the name "Courtney". There are probably about 200,000 people in the US named Courtney (first or last); maybe we should recruit them to all build potato cannons. a potato cannon fueled by acetylene can launch a potato at 140 m/s (310 mph). If it were capable of launching golf balls at that speed,[8]We're not factoring in the weight of the acetylene—but then again, we also weren't factoring in the weight of the hamburgers the golfer would need to eat to keep hitting those drives. our ship would have a diameter of only 150 miles!

There's the small problem that manufacturing that many golf balls would cost quintillions of dollars. You could bring the size down further by making the potato cannon more and more powerful and efficient, but at that point you're simply building a rocket.

And the potato cannon scenario has an extra perk. If you somehow made the balls durable enough to survive atmospheric entry, and you set up your maneuver so the ejected golf balls covered the middle latitudes evenly, then over the course of this maneuver you would be statistically likely to hit a hole-in-one ... at every golf course in the world.

XKCD QA (What If?): Far-Traveling Objects

$
0
0

Far-Traveling Objects

In terms of human-made objects, has Voyager 1 travelled the farthest distance? It's certainly the farthest from Earth we know about. But what about the edge of ultracentrifuges, or generator turbines that have been running for years, for example?

Matt Russell

Spacecraft go a lot faster than centrifuges.[1]With a few exceptions, as you'll see in the next footnote. Spacecraft travel at speeds measured in kilometers per second, and they maintain those speeds constantly. Machine parts rarely move faster than a few hundred meters per second, which means that they probably won't catch up.

But the precise answer to this question depends on what reference frame we're using. Let's go through a few of the options:

Measured relative to the Sun

As far as moving through the Solar System goes, Voyager 1 is one of the slowest manmade objects.[2]It's not the very slowest—that title might belong to the Galileo spacecraft. On September 6th, 1996 at 10:57 (UT), Galileo's speed relative to the Sun dropped to 276 meters per second (618 mph), making it possibly the slowest manmade object in Solar System history. It's moving at an average speed of about 16 km/s, which is barely half of the Earth's orbital speed around the Sun.

It might seem a little intuitively weird that Voyager 1, which went fast enough to escape the Solar System, is going slower than Earth, which didn't. But it makes more sense if you think of the Solar System as a furious whirlpool with the planets caught in it. Voyager 1 (partly by pushing off those planets) managed to go fast enough that it was flung from the whirlpool, and is now drifting sedately across the water's surface.[3]And will continue doing so forever, unless we go get it.

In other words, every 1977 Plymouth Voyager van has traveled farther than Voyager 1.

The longest-traveled manmade objects, by this measure, aren't spacecraft at all—they're whatever objects have been on the Earth the longest, and have thus traveled the farthest around the sun. The first known surviving manmade objects are 2.6-million-year-old stone tools from Ethiopia, which have traveled a total of about 250 light-years.

By comparison, the most well-traveled space probe (possibly the defunct Mariner 10, which has been in a relatively tight loop around the Sun for decades) has only traveled a couple of light-days, and the Voyagers have barely logged a dozen light-hours.

Measured relative to the Earth

By this measure, the Ethiopian stone tools win again. They were crafted relatively close to the Equator, so they've spent their millions of years traveling at about 460 meters per second as the Earth rotates, racking up 4 light-years on their odometers.

Speed over the Earth's surface

This rotating frame of reference effectively zeroes out the odometer on the stone tools. It also means that spacecraft far away from the Earth are sort of a weird case, since they "move" over the Earth's surface at the speed at which the planet spins. But that turns out not to matter, because the winner in this category is Vanguard 1, which has been in orbit since 1958, logging about 8.888 billion kilometers over the surface.

Normal speed, without any weird space stuff or Earth rotation or whatever

First, let's think about things that travel in a straight line. There are a lot of those, including a 1966 Volvo in Long Island which has driven 3 million miles. There are other vehicles that travel long distances—long-haul airliners, for example—but the winner in this category might actually be a human.

United Airlines flight attendant Ron Akana traveled about 20 million miles over his 63-year career, which might be the most of any human; even someone who sailed on steamships their whole life would have a hard time traveling that far.[4]It's not enough to beat the astronauts, though; cosmonaut Valeri Polyakov spent over a year in orbit, which adds up to a life odometer 10 times longer than Ron Akana's.[5]You could argue that he doesn't qualify as a human-made object, but he was certainly made. And anyway, he may have an object he carried with him for most of those flights. The article mentions he was married, so perhaps his wedding ring qualifies.

Some train cars—or things used in trains—might push the total a little higher, but it seems unlikely that any kind of vehicle has traveled 100 million miles.

Things that rotate are a different matter.

We'll start with hard drive platters.[6]If you're reading this in the future, hard drive platters were these things that ... oh, never mind, it's not important. A 3.5" hard drive at 7200 rpm is moving at about 80 mph. Drives have a limited lifetime—especially if they're run constantly—but it's easy to imagine the edge of a platter somewhere logging millions of miles before it died.

The energy industry has some good candidates. The tips of wind turbines can move faster than cars, and turbines can run for decades. Even if the wind isn't constant, some of them have probably traveled tens of millions of miles.

The discs used in flywheel energy storage are even more promising than wind turbines. Flywheels are designed to spin (usually in a vacuum) for decades at a time, with rotor speeds above Mach 1. There's probably a flywheel somewhere whose rotor rim has traveled a nine-digit number of miles.[7]Hundreds of millions.

The edges of centrifuges, especially those used for uranium enrichment, can travel even faster—in fact, they push the very limits of how fast material can rotate.

There's an absolute limit to how fast anything can spin without breaking apart. For the very strongest materials, like carbon fiber and kevlar, the top speed that the outer edge of a spinning cylinder can travel is between 1 and 2 kilometers per second.[8]Units are weird: The maximum speed the edge of a cylinder of a given material can rotate is equal to the square root of its specific tensile strength (tensile strength over density). If we assume those materials and the precision techniques to produce them have only existed for the last half-century, then the greatest distance a centrifuge could possibly have traveled is about a billion kilometers—and the actual record is almost certainly much less. This is why uranium enrichment involves titanium centrifuges; the uranium needs to be spun very fast, and only specialized materials are strong enough to hold together at those speeds.

All in all, uranium enrichment centrifuges seem like a likely winner, with total lifetime odometer that might push into the hundreds of millions of miles.

How fast?

So, exactly how far has the longest-operating centrifuge traveled?

I don't know.

Normally I don't give up like this, but if I had a way to estimate exactly how fast and for how long the labs in different countries have been spinning their uranium enrichment centrifuges, I would probably not be blogging about it here.

In any case, the centrifuges have logged far less total distance than many manmade objects, including (by various measures) the Ethiopian stone tools, the ISS, Mariner 10, and the Voyagers.

And for what it's worth, based on the "every 3,000 miles" rule, the Voyagers have missed several million oil changes each.

Maybe it's best that we just leave them.

XKCD QA (What If?): Enforced by Radar

$
0
0

Enforced by Radar

I've occasionally seen "radar enforced" on speed limit signs, and I can't help but ask: How intense would radio waves have to be to stop a car from going over the speed limit, and what would happen if this were attempted?

—joausc

Radio waves exert force on things.

Not a lot of force. The average cell phone transmitter exerts about a billionth of a newton of pressure on its surroundings. That means that it would take several trillion cell phones to collectively levitate a snowflake; the pressure from one phone wouldn't even measurably slow it down.

If the phone did put out enough energy to levitate a snowflake by radiation pressure, the power flowing through the snowflake (a few kilowatts) would quickly cause the snowflake to become a raindrop, which would quickly become water vapor, which would quickly become the least of your problems.

The fate of the snowflake hints at what kinds of problems our car will encounter.

If you want to slow down a one-ton car by radiation pressure, your radar gun would need to deliver about two trillion joules worth of radiation—the energy of a small nuclear weapon.[1]The formula for figuring out that amount out is simple: The energy required is equal to the desired change in speed (say, 20 mph) times the mass-energy of the car (mc2). The radar gun would need to emit even more energy than that, since not all of the radiation will be absorbed (or reflected) by the car.[2]The fact that some of it is reflected makes things easier, since that doubles the momentum delivered by the radiation. This is why simple solar sails are white and not black. For more on radar reflectivity of materials, you can check out one of the worst scanned PDFs I've ever seen.

Your radar gun would also vaporize the car. This is a problem, in one sense, but it's also a solution. Even if most of the energy is reflected, the portion that was absorbed would convert the materials in the car into gas or plasma. The expanding cloud would exert a lot more pressure on the car than the radiation itself.[3]This process, called ablation, is also what got rid of the Moon in the What If #13. This is convenient—it means that we wouldn't need nearly as much energy to stop the car as we would using radiation pressure alone.

There are even simpler ways to slow down a car with radiation. For example, you could aim a radiation beam at the tires and melt them, or use the electromagnetic radiation to knock out the car's electrical systems. Or just use a laser pointer to blind the driver and hope they reflexively slow down.

Of course, you don't need any of those things. If your goal is to slow down the car—rather than to catch speeders—your radar gun doesn't need any power. You can just stand by the side of the road next to a police car holding a fake radar gun.

In the end, a radar gun capable of slowing cars through radiation pressure would be roughly equivalent to a nuclear weapon, and using nuclear strikes in response to traffic violations is probably overkill. It would work, in the literal sense, but it would also destroy the offender, car, police officer, road, and all other traffic for miles around.[4]It would also cause fragments of the driver to violate the speed limit in all directions at once.

Of course, maybe using the apocalyptic radar gun wouldn't be necessary; just the threat of a nuclear strike against drivers would probably deter speeding.

Come to think of it, maybe that's what those other signs you sometimes see are hinting at.

XKCD QA (What If?): Soda Sequestration

$
0
0

Soda Sequestration

How much CO2 is contained in the world's stock of bottled fizzy drinks? How much soda would be needed to bring atmospheric CO2 back to preindustrial levels?

Brandon Seah

For most of the history of civilization, there were about 270 parts per million of carbon dioxide in the atmosphere. In the last hundred years, industrial activity has pushed that number up to 400 parts per million.

One "part per million" of CO2 weighs about 7.8 billion tons. A can of soda contains in the neighborhood of 2.2 grams of CO2, so you would need about 450 quadrillion cans of soda. That's enough to cover the Earth's land with ten layers of cans.

There's clearly not enough room to do this. Even if we stacked the cans up to the edge of space,[1]I don't have any hard numbers, but my guess would be that you could probably stack supermarket soda six-pack crates a few hundred meters high before the bottom layer ruptures. they'd still take up an area the size of Rhode Island.[2]We shouldn't actually try it, given what happened last time.

We'd need to add even more cans to keep up with ongoing emissions. We're currently increasing the atmosphere's CO2 concentration by an average of 2 parts per million each year:

At that rate, we'd need to add one can of soda per person every 30 seconds, which is about 10,000 times the current consumption rate.[3]The global average is one can per person every 5 days. In the US, the average is one every 18 hours. That would add a new layer of cans to the ground every 20 years or so.

This layer of cans would get pretty annoying.

Are there any ways out of this predicament?

In some areas, you can turn in soda cans for recycling and receive a small amount of money; in Massachusetts, where I live, it's 5 cents. If you collected one year's worth of soda cans—instead of layering them across the Earth's surface—and emptied them out, you could redeem them for $372 trillion.

With that much money, you could simply buy the world's current reserves[4]Source: xkcd.com/980, bottom right. of coal, oil, and natural gas—the source of the whole problem.

Then, you put it all back in the ground and leave it there.

Problem solved.

Viewing all 142 articles
Browse latest View live