# Category Archives: Geek

## The Power of Binary…

Ever hear about the “wheat and chessboard” problem?

Take a grain of wheat and put it on a square of a chessboard. Put two grains on the next square. Put four grains on the next square… And so on until you’ve covered the entire 8×8 grid with grains of wheat.

How many grains of wheat do you have at the end?

2^64 -1 grains of wheat.

That is what we call in the IT world, “a shit ton.”

But first, a digression…

Bill Gate’s net worth is something like \$102 Billion. \$102,000,000,000, or \$1.02×10^11 in scientific notation.

Big number, yeah?

I hear you asking, “How many grains of wheat is that in scientific notation?”

Excellent question: that’d be 1.844674407×10^19 grains of wheat in scientific notation.

So, there’s 8 *orders of magnitude* — a billion times — more grains of wheat than the number of dollars in Bill Gate’s rather large piggy bank. It’s a whopping big number.

COVID-19 has an R0, the basic reproduction number, of between 1.4 and 3.9. For argument’s sake, let’s make that a nice, even 2. This means, for each person infected, they’ll infect two more.

So, the first person to get it — Patient Zero — infects two more. Those two more infect four more. Four more infect eight more…

It can take up to two weeks for someone sloughing off viral laden bio-hazards to begin to show symptoms.

Patient Zero infects two on day two (and doesn’t infect anyone else for the remainder of the outbreak), on day 14, our “grains of wheat” have exposed 2^14 -1 other grains of wheat to COVID-19, or 16,383 people. Our first guy is just *just now* beginning to show symptoms…

As of Friday, 13 Mar 2020, we have 1,629 confirmed cases of COVID-19.

That’s between 2 ^ 11 and 2 ^ 12.

If all these poor people have the SAME Patient Zero, and if my math’s right, that means we’re somewhere around day 12 or 13…

Unfortunately, we’re not that lucky.

Remember, the vast majority of the people exposed won’t show symptoms (that is, they’re asymptomatic).

Aside from hand washing and not touching your face, social isolation is the best way to prevent the further spread of a pandemic.

So, stay home, have a beer, and quit hoarding toilet paper.

## COVID-19: Yeah, It’s Kinda Serious

Some folks are trying to downplay COVID-19. One Facebook post in particular mentioned some mortality figures about the common, run-of-the-mill flu. “Say… X people died from it, and there was no panic.”

I’ll provide some sourced figures from the Centers for Disease Control and Prevention. Granted, this is preliminary data but should illustrate the seriousness of COVID-19.

• Cases: 36-51 million
• Deaths: 22-55 thousand
• Mortality Range: 0.0004% to 0.15%
• Cases: 1,629
• Deaths: 41
• Mortality Rate: 2.5%

Mortality rates above are averages. If you dig a little deeper, it gets even more serious. Take a look at these COVID-19 mortality rates by age bracket:

• to age 39: 0.2%
• 40-49: 0.4%
• 50-59: 1.3%
• 60-69: 3.6%
• 70-79: 8.0%
• 80+: 14.8%

If you have underlying medical conditions — like diabetes, heart disease, cancer survivor, immuno-compromised — you’re at a higher risk of death.

So, yeah, it’s kind of a big deal.

Aside from mortality rates, you know what else is interesting? The R0 — or basic reproduction — factor. This number indicates how many other people will become infected once exposed to a carrier.

• Flu (1918 strain): 2 – 3
• COVID-19: 1.4 – 3.9

Huh. COVID-19 is about as virulent as the 1918 Influenza strain that killed between 17 and 100 million.

Then again, this could be “deep state” misinformation.

## Yep, Pretty Much

From my experience most devs think they are quite awesome except when they think they totally suck. This is the same person from minute to minute.

~ Mark Flory via Quora

Today on LinkedIn, I saw this:

The following assumes:

• + is the arithmetic addition operator
• x is the arithmetic multiplication operator
• Standard order of operations: multiplication takes precedence

Given no line has operators joining them, an answer (in decimal) is:

• Line 1: 5
• Line 2: 5
• Line 3: 2

However, if one were to concatenate the lines (assuming whitespace is ignored), this gives:

1 + 1 + 1 + 1 + 11 + 1 + 1 + 1 + 11 + 1 x 0 + 1

Since there is no indication of which base is used, here are some answers:

• binary: 1110
• octal: 33
• decimal: 35