Main page

Console top Main page Blog Webcomic Other comics Music Animations Writing Other stuff Links Console bottom

Wednesday, December 31, 2008

Top 10 Awesome Things of 2008

This wouldn't be a proper blog without at least one top ten list. So here is the top ten awesome things that happened this year:

10.
Dr. Horrible's Sing-Along Blog released. Three-act musical webshow makes the world laugh and sing.

9.
I get a helix piercing. It is pretty awesome.

8.
Several cool people announce video projects. Tucker Max is making a movie, I Hope They Serve Beer in Hell (based on his hilarious book of the same name), and blogging the whole production process. Maddox is making a show, and so is Dresden Codak.

7.
World of Goo released. Physics-based game from indie developer 2D Boy takes the world by storm, rockets to #2 place on Amazon after World of Warcraft. I formulate plans to make a game called World of [something].

6.
SGU announce Australia trip. In episeode 175, the cast of my favourite podcast, The Skeptics Guide to the Universe, announce that they are coming to Australia in 2010.

5.
I reach halfway point for my degree. Two years of uni down, to to go.

4.
Phoenix lands on Mars. On May 25, NASA's Phoenix craft successfully lands on the red planet where it confirms the presence of ice and entertains us all with Twitter.

3.
Large Hadron Collider completed. On September 10, the first beam is circulated through the biggest particle accelerator ever made. On October 21 the LHC is officially inaugurated.

2.
Barack Obama elected US president. An intelligent, savvy and uncorrupt guy is chosen by a landslide to take the reigns from a bumbling idiot. Unfortunately for Isaac Asimov, he is not selected by a computer.

1.
Petrol prices drop to five year low. Motorists everywhere rejoice.

Labels:

Sunday, July 29, 2007

Infinite monkeys

I've been thinking about the infinite monkeys theorem today. In case you are one of the 27.3% of people who don't know (that I make up these statistics of the top of my head), the infinite monkeys theorem basically states that if you have an infinite number of monkeys all sitting in front of typewriters bashing away, sooner or later one of them will write out the Bible, or the complete works of William Shakespeare, or whatever lengthy tome of purple prose you care to name.

Now, I know infinity is a big number (*ducks at maths majors everywhere hurl compasses at me in contempt*). OK, so it's not a number. It's too damn big to even BE a number. What I'm getting at is that infinity is big. REALLY BIG. In fact it's bigger than big. You may think Bill Gates has a lot of money, but he only WISHES he had infinity dollars. You know what infinity dollars can buy? A Lear jet? Try TWO Lear jets. Damn right mofo. And wide-screen TVs to go in both of them. You know what else? As many crates of Laphroaig as you can guzzle. Infinity it so big that no-one can count to infinity (except Chuck Norris, who has done it twice). Did you ever have races in maths class where you start your calculators at zero, put in "ANSWER + 1" and press enter a heap of times to get the highest number by the end of the lesson? You will never get to infinity by doing that. Even if you secretly change it to "ANSWER + 2".

So we've established that infinity is rather large. So it will trump any argument about just how statistically unlikely it is that a monkey will type the Bible (or even just Revelations, the only bit worth reading) by chance. But lets look at some figures anyway.

Now, if you have the means to produce an infinite number of typewriters for monkeys to type on, you might as well custom make them, since you already need infinite resources to manufacture them all. So exactly what characters will the typewriter need? For simplicity I'll assume we have separate upper- and lower-case keys, and a separate button for each punctuation character, so we can do away with shift and caps lock. So we will need:

  • 26 lower case letters
  • 26 upper case letters
  • Enter, space bar
  • Numerals 0-9
  • Maybe 15 punctuation characters (a conservative estimate, I would say)
  • A button to end the document
So that's 80 possible buttons for the monkey to press. We assume it's pressing them totally at random (which a monkey won't - more on this later). So how many combinations of documents can a monkey write then? Let's imagine a typical sentence - "The quick brown fox jumps over the lazy dog." By my count that's 44 characters. The number of different strings of text you can make with 80 buttons to press and 44 presses is 80 to the power of 44:

80^44 = 5.4445*10^83

...which is more than the number of atoms in the universe. And that's one sentence!! If you want the poor monkey to write the whole Bible, the number of combinations becomes unthinkably large. According to Meredith’s Book of Bible Lists (as quoted on this page), the number of words in the Bible is roughly 845,000. I'm going to make a total guess here and assume the average number of letters in each word in the bible is 6. Add in the spaces and passage numbers and punctuation, and it might go to maybe 7.5 characters per word (don't quote me on this, it's a very rough guess). Multiply 845,000 by 7.5 and you get 6,337,500. So more than six million characters go into printing a single Bible. (What a fucking waste of ink.) So the number of possible combinations is:

80^6,337,500

Which is a number so flabbergastingly large that a human brain cannot even comprehend it. The odds of a monkey randomly typing the Bible are therefore pretty slim indeed. To put it lightly.

Analysing all these numbers is all well and good for a bit of mathematical muscle flexing, but of course...

...there are problems.

As I already mentioned, you would need a lot of resources to obtain all these typewriters and monkeys. Infinite resources. In short you could never get this kind of money. You may think dealing crack is pretty lucrative, but...

OK, let's not get into this again. So! Aside from the physical impossibility of setting up this over-engineered method of copying Shakespeare or the Bible (which, let's face it, you could do with a humble photocopier), there's a few assumptions in play which aren't necessarily valid. The first is that a monkey will type in a mathematically random fashion. It almost certainly won't. If it repeatedly bashes the typewriter at all (which is by no means a given, as it will probably figure out pretty quickly that all the key-bashing isn't going to set it free to play in the trees like monkeys are meant to do), it will probably end up pressing a few keys each time, leaving clusters of letters/numbers/punctuation that are situated close to each other on the keyboard. If you look back over this article you won't see any of this:
jiosrg9p-0]l
etcslts[opar6uj9p0ae4i.
pojprybu,9p]5m]ny0 o'dfgo[ptrdj
[OPW.ET
YP78SB5EJ098MU]W-58Y9PW45B0 U749N6 9UY45896N7YQE[8 YJHOUIDRYG;UAHROUH h uoiph ui;hyuaipdry tuiperhyuohaeruipt yh[oierhj t[80g9adyrtipuhdofune97arpy
Or any of this either:
xod0fcl'{
:}';{}
zs'
}:colfcofrodrikd8ikl.xlAZ';{?z;/.lc ';{? vbp;x
(Hey, I bashed out a few smileys there. Sadly Shakespeare used very few, if any, smileys.)

The next problem is that monkeys need to eat and exercise and take dumps and stuff. You could feed the monkeys at their typewriters but then they might get food in the typewriters and screw them up. Taking all these monkeys out to an exercise yard of some sort, and then hauling them all back to the typewriters when the break's over, would be problematic to say the least. And you can't stop monkeys from hurling their shit everywhere and, again, wrecking the typewriters and/or what's been typed.

Another problem: Who's going to sit around all day reading through infinite amounts of paperwork searching for "thee"s and "thou"s and "Alas, poor Yorick! I knew him, Horatio." and "Whatsoever hath no fins nor scales in the waters, that shall be an abomination unto you." (Lev. 11:12)?

The last problem is that Jane Goodall would come and kick the arses of whoever set up this sweatshop and set all the monkeys free, leaving typewriters, banana peels and half-finished copies of Hamlet strewn everywhere.

Labels:

Saturday, January 21, 2006

Physics rambling... just ignore it

I've been thinking... objects don't really fall at the same rate. I don't think so anyway. I'm not talking about air resistance or any of that crap - I'm talking bona fide, Newton-destroying DIFFERENCES in the rate at which objects of different masses fall. "Surely not," you gasp. But it is true. I am smarter than Sir Isaac Newton. Or I am mistaken. YOU DECIDE.

Let's start at the beginning. Acceleration due to gravity is g. F=mg, that is, the force pulling an object down equals the mass in Kg, times g.

Also, F=GMm/d^2, where M is the planet mass, m is the object mass, and d^2 is the distance between the object and the centre of the earth (i.e. the radius of earth), squared.

So! mg=F=GMm/d^2. Canceling m, you get g=GM/d^2.

G is the universal gravitational constant, 6.67 * 10^-11.
M is the mass of the earth, 5.9742 * 10^24 Kg.
d is the radius of the earth, 6,378,100 metres.

Plug it all in and you get a gravitational acceleration of about 9.8 ms^-2, for an object of any mass. So that's basic physics, right? Newtonian stuff. Old stuff.

BUT! This doesn't take into account the movement of the earth. Now, when an object is falling, it does so because of attraction between it and the earth. The object accelerated easily because it is small. The earth doesn't move, right? Wrong. The earth is not "fixed" in space. It's just as influenced by forces, but its mass is so immense compared to, say, a tennis ball, that its acceleration is negligible. However, because its mass is constant, more force equals more acceleration (remember Newton's second law, F=ma).

The upshot is that heavier objects pull the earth towards them oh-so-slightly faster, and therefore they fall faster (relative to the earth) than small objects.

So that's sorted out.

"But," you say, puffing on your pipe thoughtfully, "if objects can pull the earth, doesn't that mean we can alter its orbit by throwing things up in the air?" If his were true, I would immediately order everybody to throw lots of things up in the air at night time, so the airborne objects pull the earth away from the sun, counteracting global warming, allowing us to emit all the CO2 we want and assuring me a Nobel prize (although I should get one anyway for this ground-breaking paper).

But it's not true. Let us imagine that I heave a '62 Buick into the air with my bulging, manly muscles. Pause on that thought... OK. Now we have to the law of conservation of momentum. This Buick is launched effortlessly into the air by yours truly, and the momentum transferred into the car in the upward direction is equalled by the momentum transferred into the earth in the opposite direction. The earth and the '62 Buick drift away from each other for a bit, then come together due to our friend gravity. They impact with an impressive crash and, if a Hollywood director is filming it, a huge fireball. Anyway, the impact halts them both and we're back where we started.

But that's fairly obvious, so I don't really know why I diluted my ground-breaking paper with it. Why do you have to ask such stupid questions? Altering the fucking orbit...

EDIT: As a strange addendum to this post, I came across this website for World Jump Day, the day after I did this post disproving its principles! It really is an amazing coincidence.

Labels:


Middlerun's Stuff is best viewed at 1024 x 768 or greater resolution.
This page and all its contents (c) 2006 Middlerun