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

A best-selling programming book on Amazon
The
Clean
Coder

A nice thing about most hotels in Santa Fe, New Mexico is that they treat water like you’re living on the Space Station. They have signs like, “You may have noticed that there’s not a lot of water around here. Please don’t waste it!”

At restaurants they usually only give you water if you ask for it, and I remember one time a waitress asked if I was really going to drink it or just look at it. :)

Hotels in Santa Fe treat water like you’re living on the Space Station

One thing I learned from my dad: The harder you try to control other people, the more they resent it and pull away from you. You gotta let other people be who they are.

I know that a lot of people devalue products when they’re free or inexpensive, and I know this sounds corny, but I always hope that somewhere out there in the world there’s a programmer/developer that works hard, but for one reason or another can’t quite grok Scala and/or functional programming, but then they find one of my books, and the light bulb goes on over their head. And then they start writing better code, and they’re happier with their work, other people are happier with their work, and they make a little more money than they might have made otherwise.

With that in mind, I’ve lowered the price of my Kindle books to just $2.99 (USD) for the 2024 holiday season. Here’s Learn Functional Programming The Fast Way, and here’s Learn Scala 3 The Fast Way.

Also, please note that the PDF versions of these books are FREE.

Enjoy, and I hope they help. :)

2024 holiday season: Reduced prices on my Scala and functional programming Kindle books

I use my favorite images as screensavers, and this “hoodie” image of Luke Skywalker from Star Wars Movie #7 is a recent favorite. I found an image online, then worked with it in Gimp to get a decent effect. This Luke Skywalker sketch shows another approach you can take with Gimp.

Luke Skywalker "hoodie"

This is a small image of a painting I bought a few years ago in Santa Fe, New Mexico, called “Starry Night Over Santa Fe.”

Starry Night Over Santa Fe

As a brief note today, I have said to my doctors multiple times, “My kidneys itch.” If you have experienced the same feeling, a solution I have found for this problem is to take these AZO Cranberry Urinary Tract Health tablets.

As I’ve written here several times before, I’ve been treated for kidney stones three times so far, and kidney stones keep coming back, and this is a simple product that gets rid of the “itchy kidney” feeling. (Sometimes it also helps to help with the “pain of stones in the kidneys” feeling.)

Personally, I have allergic reactions to the AZO Urinary Pain Relief Maximum Strength product, so I can’t take that much if at all, but I can take the cranberry product every day without an issues.

From this article at psypost.org:

“In a recent study published in Consciousness and Cognition, researchers at Northwestern University showed that a smartphone app using sensory cues can significantly increase the frequency of lucid dreams—dreams in which a person is aware they are dreaming while still asleep. This study marks the first attempt to apply a lucid-dreaming method called Targeted Lucidity Reactivation outside of a lab environment, demonstrating that even a simple at-home approach can help users experience more lucid dreams.”

I’m sitting here working this morning when I start to hear that familiar scratching, crawling sound outside. In a few moments, the squirrel’s head appears from the right side of the window. He’s hanging sideways, three stories off the ground, and looking in, about twelve inches from my face. It’s cold outside so I had the window closed, but I slide it open.

“Dude, Cheerios,” he says.

“Oh shoot, I forgot,” I say.

By the time I walk to the kitchen, get the box of Cheerios, and open the door to the deck, he’s already there, waiting.

The view from my home office

This photo looks like a sunset to me, but it’s from a sunrise in Virginia Beach, Virginia.

Sunrise in Virginia Beach, Virginia

I found this “roadrunner in hightops” in the SouthwestIndian.com catalog.

Roadrunner in hightops

I just heard about the book Live to Forgive this morning. The introduction on Amazon says it all: “In Live to Forgive, former ESPN producer Jason Romano walks readers through his personal journey of forgiving his alcoholic father. Through sharing his own story, Romano invites readers to enter into their own messy journeys of forgiveness-to fully feel their pain, evaluate their pain, transform their pain, and ultimately forgive those who caused their pain. The only route to freedom and peace is forgiveness.”

Live to Forgive (book)

This blog post is part of a new series of blog posts I call “Conversations With Robots.” I choose a topic and then begin talking to my robot/A.I. friends about it. Today’s discussion starts with, “Do you know what Shinzen Young did to get through his Shinto training? I just saw that he mentions Deity Yoga as part of his training.”

This blog post is part of a new series of blog posts I call “Conversations With Robots.” I choose a topic and then begin talking to my robot/A.I. friends about it. Today’s discussion starts with, “What is Deity Yoga”?

Scala 3 FAQ: How does this ZIO HTTP and ZIO JSON code works, specifically the derives JsonEncoder portion of the code:

case class Greeting(message: String) derives JsonEncoder

Solution

In Scala 3, the derives keyword is used to automatically generate implementations for type classes. Here’s how this works in the context of ZIO JSON.

The Moon, heading for the back side of the mountains on the morning of December 3, 2020, somewhere in Colorado.

The Moon in the morning, December 3, 2020

As a brief note, if you need to debug a ZIO HTTP Request value, I just created this function to return its values as a String, and it appears to work properly:

I’ve written a lot about meditation before, and in this post I’d like to talk about something different that I do from time to time. You see, where many people like to go to a movie or watch the television, I use my meditating power to create my own “holodeck in my mind” to do anything I want to do.

I call this a “The Lion, the Witch and the Wardrobe” meditation, because I start by closing my eyes, start meditating in something like a savasana style, and then mentally go out through the back of a closet in a house I used to live in.

A cavern with a recliner

Once I come out the other side of the closet, I come to a path, where I take an elevator ten stories down into my mind, and that brings me to a Star Trek-like holodeck, as shown in this image:

A personal holodeck created during meditation

As shown, the holodeck has a virtual recliner where I can sit, relax, and start doing anything I want.

If you’re interested in what Colorado looks like, this is a photo from the Erie, Colorado area on November 3, 2020.

A photo from the Erie, Colorado area on November 3, 2020

“Courage doesn’t always roar.” I just found this image in a folder on one of my computers. I don’t remember where I took this photo, but I think I took it at a small restaurant in Boulder or Louisville, Colorado. The text comes from Mary Anne Radmacher.

Courage doesn’t always roar

This is a view of a portion of the Rocky Mountains, as seen from Longmont, Colorado, on December 31, 2020.

The Rocky Mountains, Longmont, Colorado, December 31, 2020
A best-selling programming book on Amazon
The
Clean
Coder