Archive for the ‘Miscellaneous’ Category

Infinite Ape Simulator

Thursday, November 14th, 2019

I’ve been thinking about the Infinite Monkey Theorem, which postulates that an infinite amount of monkeys banging away on keyboards randomly forever would eventually produce the works of Shakespeare. You can read about this in detail here.

I thought to myself, rather than use dirty monkeys to reproduce Shakespeare (which has been attempted), why not use a machine brain? So I turned to an actual honest-to-goodness computer and wrote a simulation.

My machine was the Commodore 64, and I wrote a simple piece of code to randomly generate three letters in order and test to see if they spelled ‘act’, the first word of Hamlet. I was testing the water, so to speak, instead of diving right into a full reproduction of the entire play.

Now it’s fairly simple statistics to calculate that of the 17576 possible three letter words, only one is ‘act’. But I started by looking for words that started with ‘a’ (ie. of the form a–) of which there are 676, and then words starting with ac-, of which there are 26. I timed my result to see if – as expected – each successively correct letter took approximately 26 times as long to generate as the previous.

Here’s my code alongside one example output looking specifically for ‘act’:

The time is in seconds, and I ran 12 searches each for a– and ac- and 5 (due to the time required) for act. Here are the average times to generate each type of result:

A–: 3 seconds
AC-: 84 seconds
ACT: 2027 seconds

These numbers are close to 26x multiples of each other as expected, and I imagine were I to do enough tests they would converge to that value. From these results we can speculate how long it may take for my C64 to recreate Hamlet…

But first some facts: Hamlet has 132680 letters and 199749 characters in total including spaces and seven punctuation signs. Including these but ignoring case, there are 34 potential candidates for each character and 199749 characters need to be generated. My predictions that follow are based on times equal to 34/26 of those listed above.

The expected (ie. 50% chance) time it would take my C64 to randomly generate Hamlet would be 34^199746 times 1908 seconds which is (approximately) 34^199739 million years. The minimum time is about 1.7 hours ( if it got it right on the first go) and the maximum is of course infinity.

But – given our universe is only less than 14,000 million years old – this means I’m confident in saying my C64 would never randomly generate Hamlet. In fact were I to expand the sim to look for the sequence ‘Act 1’ I would expect the average successful attempt to take about one month. If I extended the sim all the way to the first spoken word – over 100 characters in – I’d expect the Earth would be consumed by the sun before my C64 did it.

Some of you say “that’s just a C64!”, which is primitive compared to the device you’re reading this on. But even if your fancy phone or laptop is a trillion times more powerful, this is nothing compared to a factor of ~10^200k.

It’s pleasant to think of infinite typing apes (or computers) randomly spewing out a work of art, but it would never happen πŸ™‚

(Incidentally and somewhat related; the world is still awaiting the results of B’s testing of this!)

Inktober 2019

Friday, November 1st, 2019

I did ‘Inktober’ again! This is where artists – such as myself – create and share a new piece every day in October. I used the same app as last year and once again followed no theme, making each piece up as I went along. You’ve already seen one example in the previous post; here I’ll show more.

They started off rather simple. The above was inspired by a dream in which I was tending a strange plant just like the one drawn. I was still getting refamiliarizing myself with the app at this point.

That was drawn after listening to Bela Lugosi’s Dead over and over again (“The virginal brides file past his tomb…“). I wanted to superimpose a window over it with Dracula looking out but lacked the skill.

This one was inspired after watching a YouTube video about the days of airships flying over NYC. It also features silhouettes, which were a common motif this year.

One day, when I was very tired after my 11.5 hours at work, SMC sent a dazzling photo of an ocean sunset in Vanuatu. I used it as inspiration for the above. To be honest I could have put more detail in but I was simply too exhausted!

Around halfway through the month I developed a few new tricks that allowed me to squeeze a bit more detail out of what is a very limited drawing app. This simple sketch of a tower was an early example, but things progressed in time to pieces like this:

And eventually this:

The above is my favorite drawing of not just this years group, but last year as well. I feel I – finally – achieved what I wanted with the starfield and the lighting of the silhouette and enjoyed reusing the tower from earlier. I wonder who lives there?

Another Inktober is now over, and my talents will – at least for the next 11 months – remain exclusive to cards and postcards. But I’m sure I’ll be back for Inktober 2020!

Postcrossing Century!

Saturday, October 19th, 2019

The other day I received my 100th Postcrossing postcard! I thought it appropriate to give an update to celebrate the occasion!

In the 10 months since I sent my first card I’ve received cards from 27 countries and sent them to 32. While I have sent cards to Australia, South America and South Africa, I have yet to receive any from there, so I’m still waiting to have a card from every continent (bar Antarctica of course). Here’s the stats:

Cards ‘expire’ after 90 days, which means you can request a new address even if one doesn’t arrive. While the South African one was technically expired, it eventually arrived and was registered by the recipient who lives on a tiny island off the west coast of Africa and said his mail service is sporadic! I’ve had three other expired cards to date, all to Eastern European countries.

You can see Germany is above and beyond the most popular country for Postcrossing, but I have to say I’m most surprised by China. While it’s a bit scary to be given addresses in that country (since it’s difficult to write Chinese characters!) I’ve never had one not arrive so I must be doing ok πŸ™‚

The cards themselves run the gamut, but since I have requested classic tourist cards, animal cards and pinup cards I tend to mostly get those. I’ve made it clear I’m interested in the stamps as well and get a great selection from all over the world.

The Russian scientist stamp is great isn’t it? Germany has a few series of lovely connected landscape stamps and Japanese stamps are always graphic and very pretty. Take a look at the effort this guy put in to cram as many stamps as possible on his card from Japan:

Or these two Chinese cards:

Of the cards themselves I love them all, but some have been particularly notable. I’ll feature two here, both Australian postcards but neither being sent from Australia! This one came from Germany:

And this one from Taiwan:

The latter is particularly great since the card itself is old – maybe 1980s – and I imagine she either found it in her parents collection or in a used bookstore! (And no, there’s no way people sending cards to me would know I am Australian which makes both of these even more amusing!)

These days I can send up to 11 cards at a time, and receive about 10 a month on average. At that rate I’ll get to 200 sometime around next August. Let’s hope at least some of those come from the Southern Hemisphere!

Triple Force Friday

Friday, October 4th, 2019

Today, as you all know, is Triple Force Friday! This means it’s the day product is in stores for not one, not two, but three upcoming Star Wars properties: the new film (The Rise of Skywalker), the TV Series (The Mandalorian) and some game no-one cares about. Naturally I hit the shops after work, giddy with excitement. What did I buy?

Target was mostly underwhelming. Yes there was a spiffy endcap, but isn’t it just the same basic design as the last two films?!? Also you can see that the shelves weren’t exactly bursting with choice, especially when you ignore (as we all should) the Funko stuff. They had a pittance of new figures like these:

As well as two lego sets, a t-shirt, some stuffed droids (?) and one or two instantly forgettable other things. Nothing grabbed me and I left empty-handed.

Barnes & Noble was my next stop and as you can see they had a nice little display. Overall it was better than Target with more variety including what looked to be a giant spoileriffic book that I didn’t open. I did learn though – from the packaging of the figures, that the new film will feature a speeder chase on a planet called ‘Pasana’, non-Tattooinian Jawas (!) and this dude:

I was mildly excited by the stuff at Barnes & Noble but not enough to buy anything, and left empty-handed.

Walmart was my next destination and the less said about what I saw there the better. Given that Walmart was hyped (by who?) as the go-to destination for TFF one would imagine they would have something. But no; it was the usual barren wasteland of no Star Wars toys. This was depressing to a fellow with money burning a hole in his pocket so to alleviate the despair before I left for the mall I picked up $20 worth of soup:

At the mall I skipped over to The Disney Store which – finally! – had a nice display. They had clothes and figures and hats and lightsabers and a few other things including these for a staggering $50 per set:

Fifty dollars for three medallions just like the ones that came free with POTF figures in 1983?!!? Who’s going to buy these??? And they had three sets! Madness I proclaimed loudly as I walked out empty-handed and beelined for the LEGO store.

Now this is what I was looking for! They even have a TFF sign! But look: just look at that Star Destroyer kit!!! So what if it’s $700 and so big that there’s literally no-one alive that would have a place in their home to display it? It’s a beauty indeed and would be so much fun to build. That the sort of lunacy one expects to see on a day about Star Wars product. Oh and they had this too:

(Yes I know the photo was taken at Target, but they had it assembled at the LEGO store and it’s truly the stuff of nightmares.)

Anyway I bought nothing at LEGO, which means on Triple Force Friday after a couple of hours going to all the usual stores I left with… nothing!

So I went and dropped over a grand on an iPhone 11 Pro Max so the trip wasn’t a total waste πŸ™‚

Twelve Things We Saw At The Fair

Friday, September 27th, 2019

We we to The Big E yesterday, the mega-fair one state over. We went with Jim and Joyce and saw many things! Here’s a sample.

That’s my view from the top of the McDonalds super slide. It was faster than I expected, and I momentarily broke my finger as I careened down out of control!

The butter sculpture was astonishingly vertical and we were skeptical it was made entirely of butter. The child was about a meter tall.

Tater-tot cosplay.

It turns out Pez are made only a few hours from where we live! They had a shop in one of the state pavilions selling a mind-boggling array of the things. If I actually liked Pez I may have bought some…

This is a cute horsey-thing with fuzzy ears like mine. If you look closely at his eye though, you’ll see the spark of madness.

The winning pumpkin was over 590 kg! If you hollowed it out I could easily have fit inside. Imagine carrying this to the fair??!

Here I am eating my lunch. It was great, but the second one I got was even better! In addition to this, between us we ate baked potatoes, lobster rolls, finnish pancakes, mac and cheese, lemon ice and cream puffs.

Joyce spent time watching horseplay in the arena. While she did this we walked through the pavilion of hucksters selling endless ‘as-seen-on-TV’ stuff. It’s a fair staple I can even remember from the fairs of my youth.

Speaking of memories, the last fair ride I actually rode was one of these. It was a couple of years back and made me horribly sick. I rode nothing yesterday, but I still love watching all of them. (Lest you think I’m a chicken I’ll remind you of this!)

The art on some of the rides was next-level strange. The one on the top left was taken from a funhouse attraction that was the thing of nightmares. The top right was a zombie themed ghost train that I probably should have ridden πŸ™‚

Some fool making a fool of himself…

In the afternoon the rain came in and ultimately we had to leave. But it was a full and tiring day and – as with last year – we didn’t see everything! I guess we’ll have to return again one time πŸ™‚