Mental Training, and Learning to Swim

During my last year at university, I decided to learn to swim. I was reasonably confident in my ability to stay afloat in deep water and not die, but it wasn’t what you could call swimming. Luckily, two of my close friends were excellent swimmers and they agreed to work with me in the mornings before class.

As an aside, I did take swimming lessons on and off for a few years when I was a kid, but apparently I retained nothing from those classes. Maybe I was just a terrible swimmer the entire time? Possibly related, I have very few memories from my elementary and middle school years, so I have a suspicion that I didn’t do a whole lot of thinking when I was a kid. In any case, I was essentially a total beginner to swimming when we started. I knew that you kicked your legs and paddled with your arms to go forward, but that was about it.

It turns out that learning how to swim as an adult is an interesting experience because you have developed a pretty good awareness of your body, and can pay close attention to what your limbs and muscles are doing. My friends watched me swim, pointed out parts of my body that weren’t being used correctly, and I adjusted my motions. While swimming, I tried to focus entirely on my body’s movement and ignore other things, like the water around me. Extend forward with your arm. Roll your body to bring the shoulder forward. Push down and back with the other arm. Turn your head up to take a breath. Reach forward with the back arm and extend. Repeat on the other side. Keep your legs kicking. This became my mantra, and I filled my head with it.

I won’t pretend that it was easy, because it wasn’t. There were too many things to pay attention to, so I felt like I was always forgetting at least one thing. But I stuck with it. I was thinking about the movements enough that eventually I starting doing it even outside of the pool. Remembering how it felt to move through the water, I went through the motions in my mind while walking to class. Without actually moving my arms, I imagined stretching them forward, rolling my body, pushing back, and reaching forward again. I often had dreams about swimming too. It was pretty much the same thing, but in the dreams it felt more like I was really moving.

We started my swimming lessons in the fall and only had access to an outdoor pool, so the lessons stopped once it got cold, after only a few weeks. But even then, I kept going through the movements in my mind and having swimming dreams. I didn’t decide to do this; it just seemed to be the front-most thing in my mind a lot of the time. The experience of learning how to swim was fascinating to me. I was using my entire body in ways I hadn’t before, and the careful introspection of my motions was a new, fun challenge.

Come spring, we got in the pool again for the first time in a few months, and I swam my first lap. It felt good, and it felt familiar. The motions felt just the way I had been imagining them in my mind. When I asked my friends how my form looked, they seemed puzzled. “It’s crazy but it seems like you got… better? How did that happen?”

I had heard of mental training for sports before, like boxers shadow-boxing while imagining their next opponent. I didn’t know too much about the technique but it seemed like I had been doing something similar for swimming. It sounds a little magical to get better at something without actually doing it, and it definitely felt that way too, but I haven’t been able to recreate it for anything else since then. Swimming must have been the perfect activity at the perfect time to capture my attention – both conscious and subconscious.

One Cut of the Dead (カメラを止めるな!)

One Cut of the Dead (カメラを止めるな!) is a low budget Japanese zombie movie that became hugely popular here. I just watched it over the weekend and it was wonderful. The writing is very funny and very clever, and when it was over I found myself immediately wanting to watch it a second time.

From Wikipedia:

One Cut of the Dead was made for 3 million Japanese Yen (approximately $25,000 in US Dollars at the time) with a cast of unknown actors. It was made in eight days after director Shinichiro Ueda participated in workshops for actors and filmmakers at the Enbu Seminar drama school in Tokyo

One Cut of the Dead opened in Japan in an 84-seat Tokyo art house theater with an initial theatrical run of six days. It was showing at around 200 screens in Japan by March 2018 where it had officially grossed 800 million yen ($7.3 million)

It had been a while since its popularity blew up, but I knew only 3 things about the movie before I watched it:

  1. It’s about zombies
  2. It’s really good
  3. It’s best to not spoil the plot

It’s been remarkably easy to avoid spoilers. It helps that the plot takes some effort to describe, bue it felt like everybody genuinely wanted to share the unspoiled experience with others even as it spread through word of mouth.

Apparently a bootleg version was somehow released on Prime Video, but the international release seems to be just starting. Hopefully this film will do well overseas, too.

The World's Most Beautiful Data Center

Image: Barcelona Supercomputing Center
Image: Barcelona Supercomputing Center

The Torre Girona Chapel was deconsecrated in the 70s, and now houses the MareNostrum supercomputer.

“We were in need of hundreds of square meters without columns and the capacity to support 44.5 tons of weight,” Maspoch told me in an email. “At the time there was not much available space at the university and the only room that satisfied our requirements was the Torre Girona chapel. We did not doubt it for a moment and we installed a supercomputer in it. ”

Automating Materials Science with Machine Learning

A robot arm dips a pipette into a dish and transfers a tiny amount of bright liquid into one of many receptacles sitting in front of another machine. When all the samples are ready, the second machine tests their optical properties, and the results are fed to a computer that controls the arm. Software analyzes the results of these experiments, formulates a few hypotheses, and then starts the process over again. Humans are barely required.

The setup, developed by a startup called Kebotix, hints at how machine learning and robotic automation may be poised to revolutionize materials science in coming years. The company believes it may find new compounds that could, among other things, absorb pollution, combat drug-resistant fungal infections, and serve as more efficient optoelectronic components.

This sounds like a perfect application for machine learning. It’s a great combination of smart design and brute force effort.

Spaghetti Carbonara

For a long time I thought I didn’t like carbonara because the few I tried were too creamy and eggy. Recently I gave it another try because the picture in the menu looked delicious. It was excellent, and I decided I wanted to learn how to make it myself. I needed some practice before I felt comfortable with the timings, but overall it’s a pretty simple recipe that wasn’t hard to learn.

Ingredients

  • Spaghetti for 2
  • 2 eggs
  • 1 block of parmesan cheese
  • 1 block of bacon, cut into chunks
  • 1 clove of garlic
  • Pepper
  • Olive oil

Notes

  • There are no weights and volumes because I can’t be bothered to measure things.
  • You can use 3 egg yolks if you want the sauce to be thicker.
  • Pecorino cheese might be more authentic, but parmesan is totally fine.
  • Pancetta might be more authentic, but I personally prefer normal bacon (gasp!).
  • The cheese and pepper tastes better if it’s freshly grated/ground.

Method

  1. Start cooking the pasta in boiling salted water until al dente.
  2. Beat the eggs in a bowl, and grate in the cheese.
    • Keep adding cheese until the sauce becomes thick and creamy.
    • Add pepper to taste.
  3. Heat the garlic with olive oil in a frying pan over medium heat, and cook the bacon.
    • Cook the bacon until it starts to crisp on the outside.
    • Take out the garlic once the bacon is done cooking.
  4. Once the pasta is ready, add it to the frying pan and mix well with the bacon.
    • Add the pasta directly to the pan with tongs (instead of using a strainer) to get a nice amount of pasta water as well.
    • Remove the pan from the heat here and take your time, so that the pan is not too hot when you add the sauce.
  5. Add the sauce and mix well.
    • The heat from the pasta will be enough to gently cook the egg.
    • If the pan is too hot here, you will get pasta with scrambled eggs (gross).
    • If the sauce seems too thick, add some more pasta water.
  6. Serve with some extra cheese and pepper on top.

Lucid Dreaming

I was consistently able to have lucid dreams when I was in high school. Partway through a dream, I would realize that I was dreaming and could then control the rest of the dream to a small extent. As I’ve grown older though, this has become less and less common. Maybe age has changed something about my brain.

Naturally, I’ve been interested in lucid dreaming and have read a lot about it. Tim Ferriss has a fascinating beginner’s guide on his blog. Different people seem to have different approaches and theories, so I thought I would write about my own experiences.

Entering a lucid dream

The breakthrough for me was trying to wake up from nightmares. I would pull my eyes open to try to force them to open in real life. Sometimes it worked, but other times the nightmare would already be over because I was focused so much on trying to open my eyes. At some point, I realized that if it’s all in my head, there’s no reason why I shouldn’t be able to change it to be less scary.

The next time I had a nightmare, instead of trying to wake up I tried to change the dream. I tried to imagine myself on a calm beach. It didn’t work very well. The whole dream just became hazy, and I woke up right away. Still, progress!

Signals to realize you are dreaming

In Inception, the characters have totems that they use to determine if they are in a dream. If the totem is slightly different from the way they remember, they know that it is an imperfect version of the totem that exists within a dream.

It sounds like science fiction, but some people have similar methods of invoking lucid dreams before they even fall asleep. One of my friends in high school would hold an image of a French horn in his mind as he was falling asleep. He would then see the French horn in the dream, and it would be a sign for him to realize he is dreaming.

One thing that I have read (and noticed personally) is that it’s common to not be able to read clocks in dreams. It’s hard to describe, but the clock face is hazy and it’s as if your mind can’t register what time is showing. Or if I ever am using a smartphone in a dream, I always struggle to get it to do what I want. I consistently mistype the same words over and over. These are all signals that can help me to realize that I am dreaming.

Controlling a lucid dream

I read about people with tremendous control over their lucid dreams. People who fly through the air freely and visit beautiful places around the world. Athletes who perform their sport in their dreams to develop muscle memory without fear of injury. Mathematicians who use the dream-space to visualize multiple dimensions and work out complicated formulas.

Even after becoming lucid within a dream, I had a hard time controlling them. I was never able to fly, for example. The closest I got was jumping far by falling slowly. Changing my location was generally impossible, too. Like my attempted visit to the beach, changing too much about the dream around me would just wake me up. Instead, I could look for a door that leads into a room with a pool, for example, but it would often take me some time and effort to find that door.

It felt like my dreams had rules, and if I pushed too hard the dream would collapse and I would wake up. I had to be very careful to only make changes that fell within the dream’s rules to make sure that I could stay inside the dream.

Once I realize that the dream is fading, I try to stop pushing against it and surrender myself to the dream’s natural flow. This usually lets the dream get back on track, but sometimes I get caught up in it and forget to become lucid again. Supposedly, spinning around or rubbing your hands together is a good way to make a dream more “solid” again if you’ve weakened it too much (who discovers these things?), but I’ve never been able to remember to test this technique. I’m sure there are other tricks that people have developed, but they probably all require a lot of practice.

Universal Basic Income

I wonder sometimes about what a better society than ours would be. What should our goals be as we try to improve?

As our society improves and we get more efficient, I like to imagine a future where we don’t have to work as much. That seems like a nice thing to aim for. Universal basic income (UBI) seems like one possible solution. If we could afford to give everybody a fixed minimal income, people could work less and still have a basic amount of wealth needed to survive. But I’m not yet convinced whether UBI is the correct answer to describe an ideal future.

Robots and machines can do a lot of work for us. This is progress that could be applauded, but it’s feared instead. The main reason why we’re afraid of offloading work to machines is that we can’t live without money, and we can’t get money unless we are productive members of society. Capitalism is set up to make us want to stay busy. We seem to be stuck in a rut where we never stop building more things and make up fake jobs to stay busy.

If we let robots and machines do a lot of work for us, the downside is that many people will lose their jobs. This is where UBI comes in. If robots and machines and other general improvements allow us to create value more efficiently, the government could then redistribute the extra value to everyone in the form of a basic income. Unemployment will be feared less if you don’t have to worry about how you’ll feed your family. UBI in some form seems necessary if we want to make life easier for everyone while still using money to pay for things. But I’m not yet convinced whether it’s the correct answer to describe an ideal future.

Making sure everyone has a basic ability to live a decent life sounds like a great goal for a government that exists to serve its citizens. On the other hand, capitalism promises rewards for great work, and that’s what motivated a lot of people to do great things. People spend millions of dollars researching medicine because a breakthrough drug could be worth billions. Redistribution of wealth will take away from those rewards, and a loss in motivation might lead to a decline in innovation.

One interesting example of UBI is The Alaska Permanent Fund. This program was set up as the Trans-Alaska Pipeline was being finished in 1977 and has been giving $1000-2000 to every citizen since 1982. This isn’t exactly UBI because it is tied to a new form of income that Alaska had access to, so it isn’t just redistribution of wealth. But in general, it has been working very well, and hasn’t increased unemployment or made people lazier.

The Value Promise of Subscription Games

I had been playing World of Warcraft on and off for about 10 years, but I decided to stop playing again about a year ago. I quit because of a series of changes that were made to the game, and it motivated me to think about why I reacted that way as a paying customer.

A series of recent changes made to WoW were designed to motivate players to play by ensuring they always gain something and grow a little every time they play. Unfortunately, a side effect of these changes was an increased pressure to spend many hours playing. This made me feel like my limited time spent in the game was less valuable, and is what ultimately led to me quitting the game.

What makes a subscription-based game worth its price?

All games need to convince people that what they are buying (whether it’s a complete game, an item, or another month of game time) is worth the price. I wrote previously about what mobile games do to make people want to buy extra items. Online games where players pay a fixed amount every month have a very different strategy.

Unlike games that sell items, games with a subscription model don’t need to maximize revenue per user because everybody pays the same price. Instead, the most important metric is how many people will keep playing the following month. The total revenue per user is determined by how many months they spend playing the game.

Traditional console games need to convince people to pay money just once. “$60 will get you more than 100 hours of fun gameplay!” On the other hand, subscription-based games need to convince people to pay money every month. One thing that helps people make a decision is whether they felt like the previous month was worth the price. So online games do their best to make sure that people are always satisfied with the time they have spent playing the game so far.

How to design a subscription-based game

Most online RPGs follow a basic progression system that can give players a fun game experience over a long period of time. You enter a dungeon, beat a few bosses, and get a few strong items. The dungeons reset each week, and since those new items make you a little bit stronger you can get a little further in the dungeon. After a few months you are strong enough to defeat the final boss, and by that time the game will (hopefully) soon release a new dungeon.

You always have a challenge, and you are always making progress towards completing the challenge. It’s almost like you’re buying and playing a new small game every few months, but it’s much more meaningful because you keep the same character who is constantly growing stronger.

So then, what can go wrong and make people want to stop playing?

People pay for their time. Don’t make them waste it.

The most competitive players will defeat all of the game’s bosses very quickly, and have little to do inside the game until the next dungeon is released. If there is nothing meaningful to do inside the game, then there’s no reason to spend money to keep playing. Making social elements important or having players battle each other are possible solutions, but online games constantly struggle to make sure that high-ranked players will always have a reason to keep playing.

In other cases, a player might have plenty left to do but still feel like their time in the game was not spent well. You could play for many hours fighting bosses, but never manage to get any new strong items just because you were unlucky. All of the time spent fighting bosses would feel lost because you gained nothing for your effort.

At the end of the month, players will ask themselves, “Did I get my money’s worth last month?” If you spent $15 to play a game but didn’t make any progress, you might feel like that was a waste of money.

So WoW started to reward people for the time they spend playing the game. Now you constantly get special experience points when you play, and this will make your items stronger. Because you are always gaining these experience points it is guaranteed that none of your time will be a total waste. People can spend more time playing the game and be satisfied that it was time well-spent. Problem solved, right?

Not quite.

People pay for their time. Don’t devalue it.

The issue is that if every hour you spend in the game makes you stronger, you are now required to spend many hours playing the game if you want to be strong. Before, I could play for a few hours on the weekend fighting bosses and if I was lucky I would get some great items and be a strong player. I was happy with that. But now having the good items isn’t enough. I’m required to make my items stronger by spending many more hours gaining extra experience points to improve them.

In that sense, the time I spend fighting bosses is only meaningful if I also spend more time making the items stronger. Without the extra time put in, I can only get weak items from bosses. And what if I can’t because I’m too busy during the rest of the week? My time spent in the game, which hasn’t changed, is now worth less because I get less benefit from it. I now feel like I’m no longer getting my money’s worth from the game. And ironically, the cause was a new system designed to make every hour spent in the game feel more valuable.

What was wrong with these changes?

Making all time spent in the game directly make you stronger doesn’t work well in MMOs. In mobile games, it’s fine to reward time spent playing because it works as an alternative to paying money. Competitive players can choose to spend either time or money to become stronger, and non-competitive players aren’t affected because they lose nothing by playing the game for free. But if you are paying a monthly subscription, then having a disadvantage because you don’t have extra time or money is a terrible experience. MMOs generally don’t allow people to pay money to become stronger, and allowing people to spend time to become stronger can lead to similar issues.

Giving an advantage to hard-core players is not a great business decision, especially if it makes the game less fun for more casual players. This is because no matter how dedicated a player is, they will only spend the same amount of money as a casual player. If a game gets the majority of its revenue from a small group of hard-core players, it’s fine to focus on them. But in an online game where everybody spends the same amount of money, the majority of revenue will come from more casual players and they are the ones for whom the main gameplay should be designed.

I’m not sure what circumstances motivated the changes to WoW, but I think there had to be better solutions. If hard-core players were running out of things to do, maybe add more cosmetic rewards, or create one insanely difficult version of the current dungeon that most people can not complete. Or if casual players were having a hard time progressing within a limited time, then you can add safety mechanics that guarantee a good item after a certain number of unlucky attempts with no rewards.

The latest version of WoW added changes that affected the core gameplay for all users and unfortunately did it in a way that gave a disadvantage to many casual players. I would guess that these people made up a large portion of the game’s players, and worsening their game experience may prove to do more harm than good.

How to Cook Popcorn in a Pan

The best way to cook popcorn in a pan. The secret is to heat up the kernels evenly in hot oil first, before heating them over a flame to pop them quickly all at once.

  1. Coat the bottom of a pan with a small amount of oil and place over medium heat.
  2. Put three popcorn kernels in the pan and wait for all three to pop.
  3. Put the rest of the kernels in the pan, cover with a lid, and remove from the heat for 30 seconds.
    • This heats the kernels evenly, getting them all ready to pop together.
  4. Return the pan to the heat, where the popcorn should start popping right away.
    • It helps to keep the lid ajar and shake the pan occasionally to keep the popcorn dry.
  5. Once the popping slows to a few seconds between pops, pour the popcorn into a bowl.
  6. Add salt to taste.
Photo by Keegan Evans from Pexels
Photo by Keegan Evans from Pexels

Picular - Google, but for Colors

Picular is a site that lets you search for words like “water” or “summer” and see a list of related colors. It seems to work by running a Google image search and extracting the primary color of that image.

This is the kind of project I love. It’s simple and easy to understand, but fun to play with.