Scala, Java, Unix, MacOS tutorials (page 7)

Pete Rose was Charlie Hustle. All these years later, and the the game hasn't seen another player like him. RIP, Pete, October, 2024.

Pete Rose is Charlie Hustle

A squirrel asking for some Buddha wisdom, and admiring that nice acorn hat. (Friends always send me squirrel photos because I lived with a squirrel in Talkeetna, Alaska.)

Squirrel asking for some Buddha wisdom

Last night I passed out for the 10th time. As usual, I woke up in the middle of the night, and knew that I felt really bad. I ran to the bathroom to splash cold water on my face, and knew I was going to pass out before I could get the Benadryl open. So I got back into bed and passed out.

Of course, when you pass out, you never know if you’ll wake up again, but so far I’m 10 for 10.

A unique thing about this event is that I was hit very hard in the top-right part of my head in the afternoon, and still have that pain today. I suspect that it had to do with this syncope event.

As a little yoga/savasana tip, here’s a collection of 50+ phrases you can use to help relax and focus, both before and during savasana.

Please note that I don’t know the original source of all these quotes. I had a few yoga instructors back in the day, so I got a collection of the quotes from them.

October 5, 2024: When I started to wake up this morning I clearly heard two men talking.

It started when the first man — who turned out to be an older man — sighed pretty deeply, and then the second man asked him what that was about. I assumed that the second man was his son or grandson.

The old man replied, “Do you ever notice that when you sigh, you’re doing the right thing?”

The younger man said he didn’t know what that meant. I thought the same thing.

So the old man said, “Well, you’ve been thinking about something, and now you’re about to do the right thing, but for one reason or another you don’t want to do it. But now you’ve decided to do that right thing, so you let out a sigh before you do it.”

I tried to stay there to here more of the conversation, but I could not, because I was waking up too fast.

This is another “sketch” of Luke Skywalker from whatever the last Star Wars movie was called. I started with this earlier image I created, then converted it to a Gimp life sketch by going to Beautify > Beautify > Art > Life Sketch > 100%.

While I’m in the neighborhood, I also created this fake Luke Skywalker “hoodie” oil painting.

Luke Skywalker black and white sketch

Drowning in the Cooler of Love,
Where everyone,
Would love to drown.

~ an adaptation of a Stevie Nicks song

The Cooler of Love, Longmont, Colorado

If you haven’t seen them yet, here’s a link to Alvin Alexander’s free Scala 3 and Functional Programming video courses. The functional programming course shown in this image was just released today, September, 8, 2024.

My free Scala 3 and Functional Programming video courses

I can’t find the original source of this image and product, but I have always liked the “Live Brave” saying, which I first heard on the excellent Eli Stone tv series (which stars Johnny Lee Miller, who may be more well known for the movie Hackers and of course, Elementary).

Live Brave bracelet

“What you allow is what will continue.”

(I found this at a url that is no longer available.)

“What you allow is what will continue”

Once upon a time, a black bear walked into the Breeze Inn in Seward, Alaska and was enjoying the view of the big glass windows ... but was encouraged to leave.

Bear walks into the Breeze Inn, Seward, Alaska

“I love everybody, that’s what’s killing me.” Cloris Leachman was outstanding in the movie Spanglish, and this is one of my favorite lines. I’ve written about this line and loving everyone from a Buddhist perspective before, and if you’ve ever loved two people and seen them fighting with each other, or loved two people and had to disappoint one person because of something related to the other person, that’s what this reminds me of.

In 2024, it also reminds me of war, and what a waste of life it is when people who are in charge ruthlessly kill other people.

I love everybody, that's what's killing me

“We are not human beings having a spiritual experience, we are spiritual beings having a human existence.”

We are not human beings having a spiritual experience ...

For the person in your life who constantly says, “I worry ...”

Worrying is like praying for what you don't want

“It’s better to have a short life that is full of what you like doing, than a long life spent in a miserable way.” ~ Alan Watts

A.I. Painting: Alan Watts: It’s better to have a short life that is full of what you like doing

In a dream this morning
I’m pushing a little unpowered vacuum/sweeper
like you see them use at Denny’s
or maybe Cracker Barrel.

And then I look up
and see two young girls
and they’re singing a pretty song.

I ask what the song is
and they giggle a little,
and one asks the other
if they should tell me,
and she says yes.

So they tell me that there’s this
old abandoned house
and sometimes when they go by it
they see an old woman pushing
a sweeper like this.

Functional Programming FAQ: What are the benefits of an Effect System, like ZIO?

Answer

I’m currently planning a video on “The benefits of an Effect System in computer programming” on my free Scala and functional programming videos website, but in case I don’t get around to making that video, here are the slides I have put together.

Also, if you’d like to see a video that is somewhat similar, here’s my popular “What is ZIO 2?” video on YouTube.

Background

If you haven’t heard of Effects or an Effects System, I wrote about them a long time ago here. Also, in book, Effect-Oriented Programming, the authors describe them this way:

  • Effects are the unpredictable parts of a system.
  • Effect Systems partition the unpredictable parts, and manage them separately from the predictable ones.

In this fast-paced video I show what the ZIO 2 library is in the fastest way I know how. I show the benefits of effects and effect systems, and specifically how ZIO is the new “Functional Programming, Simplified.”

What is ZIO 2? (the benefits of effects and effect systems)

This page provides a comprehensive overview of error-handling strategies in ZIO 2. My hope is that you can use this decision tree to determine good/best approaches for handling errors in your ZIO effects. Each section includes a use case (question/answer), brief explanation, and ZIO 2 example.

As a brief note, I have ensured that the following examples compile, but I feel like I need to double-check some of my work.