Monthly Archives: June 2022

Book Review: Moonwalking with Einstein by Joshua Foer

Josh Foer’s book starts out by looking into an esoteric competition featuring mental athletes competing in various memory competitions. Along the way, he discovers interesting mnemonic tricks for memorizing various types of things and follows a group of people who frequently compete in these events. With dedicated practice, he uses this effort to win the United States Memory Championship just a year later!

While Foer’s book documents his journey in becoming a mental athlete, it also features a number of interesting asides that dive into the latest research in memory and explores how and why humans are good (and not so good) and remembering various types of things.

The book opens with what seems like a non-sequitur:

“Dom DeLuise, celebrity fat man (and five of clubs), has been implicated in the following unseemly acts in my mind’s eye: He has hocked a fat globule of spittle (nine of clubs) on Albert Einstein’s thick white mane (three of diamonds) and delivered a devastating karate kick (five of spades) to the groin of Pope Benedict XVI (six of diamonds). Michael Jackson (king of hearts) has engaged in behavior bizarre even for him. He has defecated (two of clubs) on a salmon burger (king of clubs) and captured his flatulence (queen of clubs) in a balloon (six of spades). Rhea Perlman, diminutive Cheers bartendress (and queen of spades), has been caught cavorting with the seven-foot-seven Sudanese basketball star Manute Bol (seven of clubs) in a highly explicit (and in this case, anatomically improbable) two-digit act of congress (three of clubs).”

You read this and immediately think, “what?!” But! There’s a method to this madness. It’s a specific technique that Foer describes later in the book. He’s built a “memory palace” to make recalling a list of items easier. It’s something I hadn’t heard of before and is an interesting concept.

Foer describes a memory palace as:

“The idea is to create a space in the mind’s eye, a place that you know well and can easily visualize, and then populate that imagined place with images representing whatever you want to remember. Known as the “method of loci” by the Romans, such a building would later come to be called a “memory palace.”

[…]

When we see in everyday life things that are petty, ordinary, and banal, we generally fail to remember them, because the mind is not being stirred by anything novel or marvelous. But if we see or hear something exceptionally base, dishonorable, extraordinary, great, unbelievable, or laughable, that we are likely to remember for a long time.

The more vivid the image, the more likely it is to cleave to its locus. What distinguishes a great mnemonist, I was learning, is the ability to create these sorts of lavish images on the fly, to paint in the mind a scene so unlike any that has been seen before that it cannot be forgotten. And to do it quickly. Which is why Tony Buzan tells anyone who will listen that the World Memory Championship is less a test of memory than of creativity.

When forming images, it helps to have a dirty mind. Evolution has programmed our brains to find two things particularly interesting, and therefore memorable: jokes and sex—and especially, it seems, jokes about sex.

While there’s no secret to easily unlocking a flawless memory, I found this book really enjoyable to read and thought some of the techniques for recall were pretty useful.

As far as the title of the book goes — it ultimately has nothing to do with Einstein. It’s related to using a mnemonic technique he used for remembering a set of cards (in this case, a four of spades, king of hearts, and three of diamonds).


“Moonwalking with Einstein” image generated using Midjourney AI.

Moonwalking with Einstein, by Joshua Foer

Generating art using AI

Earlier this year, OpenAI announced DALL-E 2, the latest version of their AI tool that can generate images by simply providing text input.

For example, “people in togas taking a selfie in front of a volcano”, and it will get to work attempting to create an image that includes all these elements.

The Verge has an interesting article with more details. You can see an example of what is possible on the DALL-E 2 subreddit. It’s honestly insane.

For now (sadly), the service is invite only.

More recently, an ambitious engineer named Boris Dayma created an open source version of the service called DALL-E mini. While it isn’t able to generate results as impressive as DALL-E 2, it’s still pretty crazy!

It’s recently taken the internet by storm and you can see people post DALLE-mini generated images and memes everywhere. The official website has been under heavy load, so it’s been pretty tough to try out the service.

Fortunately, you can download the model from Github and get the service setup on your local machine (providing you have a graphics card beefy enough to run the models).

Who has two thumbs and a graphics card just begging to be used? Hello.

I was able to get the service setup on my machine and start playing around with it.

In this example, I used a prompt to essentially create a Bob Ross painting generator. “Alpine forest with river running through the middle, snow capped peaks in the background, Bob Ross style painting.”

Dalle mini forest

Pretty neat! The images that services like DALL-E 2 and Midjourney can create are miles better and I’ve applied to both services.

While I anxiously await my acceptance, I’ll have to continue generating various memes on my own machine.

Monkeys

Redactle – It’s like Wordle but for censored WIkipedia articles

Thanks to a coworker, my latest obsession is Redactle. Each day, it takes one of the 10,000 most popular articles from Wikipedia and censors every word that isn’t a common preposition or article. Each time you make a correct guess, the word is uncovered, slowly revealing more and more of the article. It’s sick and  it’s fun.

Essentially, this turns into an all day affair as I take breaks and then come back to try and solve the puzzle. Yesterday, I determined the article was about “Sparking Wine” after about 276 guesses… 🙀

Get guessing!

Fun with GPT-3

Earlier this evening, I was playing around with OpenAI’s GPT-3 language model for generating “human-like text.”

I gave it the following prompt:

Write a plot about a movie that involves rogue unicorns who want to
conquer Earth and the planet’s only hope is an Australian Cattle dog named Benson who sleeps a lot.

The response?

The unicorns, led by their king, Uni, have been planning their conquest of Earth for years. They have been observing the humans and have concluded that they are weak and vulnerable. The unicorns have developed a powerful magic that will allow them to take over the planet.

Benson, an Australian Cattle dog, is the only one who can stop them. Benson is a lazy dog who loves to sleep. He is content to spend his days lounging around and eating food. However, when the unicorns begin their attack, Benson is the only one who can stop them. He rallies the other dogs and leads them in a fight against the unicorns.

The unicorns are powerful, but they are no match for Benson and the other dogs. Benson is able to defeat Uni and the other unicorns, and the Earth is saved.

Summer blockbuster coming soon to a theater near you!

Creating an automated Twitter bot about gun violence

The school shooting in Uvalde last week was horrible. As a parent, I feel so powerless to protect my kids from something like that. Taking them to school the next day was extremely emotional.

It’s clear that we, as a country, are going to continue to do nothing about guns and gun violence. I channeled some of my emotion into building an automated bot for Twitter. I call it SABSStochastic Analysis for Ballistics Superfans (alternative title is “Second Amendment Bullshit”).

If you’re so technically inclined, you can download and run it yourself. Powered by Node and a fun little experiment into Twitter’s API.

It automatically replies to any congressional member who tweets.

Which of course includes unhinged Republicans.