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

“Is that a dagger or a crucifix I see you hold so tightly in your hand?”

“Suffering is part of our training program for becoming wise.”

Ram Dass FAQ: What is the best Ram Dass book to start with?

Unlike other websites that give you A.I.-generated answers, here’s my answer, and as you can see from the images below, I truly have read all of the Ram Dass books I mention.

My answer: The best Ram Dass book to start with is ...

I wrote this in my earlier blog post, What Are The Best Books By Ram Dass, but I believe the best Ram Dass book to start with is Polishing The Mirror (#ad).

I think this book is the best summary of all his work. It’s a relatively short book, it’s clearly written, and summarizes much of what you’ll read in his other books. I started reading this when I was in the hospital, and as bad as I was feeling at the time, it just blew me away. I like to underline and highlight text, and I felt like I could highlight most of the book.

“The birds have vanished into the sky, and now the last cloud drains away. We sit together, the mountain and me, until only the mountain remains.”

Zen poem: The birds have vanished into the sky, and now the last cloud drains away...

The young actress who plays Cristina in the movie Spanglish (Shelbie Bruce) is very funny during the scene where she acts as an interpreter for her mother while arguing with Adam Sandler.

Cristina interpreting for Flor in Spanglish

“All suffering is due to the false notion, ‘I am the body.’”

With the usual caveat that you should always check with your doctor before trying different medical things, the following article describes a solution that seems to help me be more awake in the mornings.

I’m old, I was born with a rare blood disease, and I also have sleep apnea, so waking up in the morning is a hard, hard thing to do. Even after I manage to get out of bed and my eyes are open, it feels like it’s several hours every morning before I’m truly awake.

This morning I had a long dream where I was a policeman who lived maybe 70-100 years ago or so. (I’m not very good with times.) I need to mention that I was a white policeman, because this becomes important as the dream/story goes on.

At first there were mundane crimes to work on, but then there was a murder case, and the person who committed the murder was a non-white person. I noticed in myself (my character in the dream) and in others that there was prejudice in us, because we all thought to some extent, “This never happened when we were all white.” Of course it did happen, because there have been murders forever, but it was the first one we were exposed to.

When we caught the person, I told everyone, “We need to handle this properly. Remember to read him his Miranda Rights.”

When I said that, everyone looked at me like, “What are you talking about?”

Nurse at the hospital, as part of a questionnaire: Do you feel suicidal?

Me: Well, I want to be careful with this because I don’t want you to get the wrong idea ... I don’t mind living, and I don’t mind dying, but this in-between stuff where you’re constantly sick and can’t work or have any fun ... it’s very frustrating.

Nurse: So ... not yet?

Me: Yes, that’s fine.

June, 2016: Last week when I was having my “allergic angina” fake heart attack followed by a real angiogram, I thought it would be interesting to be one of those people who die, and is then brought back to life.

Of course the problem with that is that you have to die first.

That thought makes me think of the 1980 film Resurrection (#ad) that stars Ellen Burstyn and Sam Shepard, and that’s where this image comes from.

God is love, and vice versa (versa visa?)

Then there was the time I got stranded in Canada. I had “all season” tires on my car, and the road and weather services in Canada said the roads were clear, but their definition of “clear” was not really clear.

So I got stranded in Dease Lake, a town of 303 people, unable to drive farther north or backtrack to the south. Fortunately a man who would die in a few months from lung cancer had just gotten back into town after his latest round of chemo treatment, and had the little garage shown in this photo. After a five day wait to get the tires delivered, he put them on the car on Day 6. He had no way to balance them, so I had a shaky drive to Whitehorse (in the Yukon Territory), and a tire shop there was able to balance them.

The tires cost $1,200, the motel stay cost $600, and I ate gas station food for five days, so that was an expensive learning experience.

Stranded in Canada

I’m sorry, I don’t remember where I originally found this image, but I love this Ram Dass saying about being the witness:

“Everything changes once we identify with being the witness to the story, instead of the actor in it.”

~ Ram Dass

Identify with the witness to the story, not the actor in it

Sitting down and starting meditation is one of the biggest obstacles there is to meditation. I usually start with different techniques, like focusing on breathing in through one nostril, out the other, and then reversing that.

I also have different sayings that I repeat to get me focused on the here and now. Last night this new one came to me:

My favorite part of meditation lately is when it takes on a life of its own. This is characterized by your awareness moving to whatever you’re focusing on.

For instance, if you focus on the Anapana Spot (ānāpāna, or “AP Spot”, as I call it) just beneath your nose, your awareness will eventually move forward to that spot, and you become aware that your head is behind you.

More dramatically, if you focus on something like a candle a few feet in front of you and your awareness jumps forward to it, now your entire body will be well behind you (“you” being “your awareness”).

Once your awareness jumps forward like this, you are well on your way to your meditation taking on a life of its own, meaning that you don’t have to work hard at it anymore, it’s like your awareness wants to be in this state.

(I think Daniel Ingram has a name for this state, but I don’t remember it at the moment. It may be in his writings about a Fire Kasana.)

~ January 8, 2024

Tonight while meditating I sat in my recliner to meditate as usual. I didn’t know it at the time, but for almost three hours I kept meditating and falling asleep. My head would fall forward, then I’d raise it, then it would fall forward and I’d raise it again, and so on. I’m sure it would have been humorous to watch from the outside.

But after a while, once I got past the initial “tired” stage, my awareness didn’t fall asleep, even though the head would occasionally fall down. I kept focusing on the third eye area and vowed to myself that I wouldn’t stop until I could see. I felt like my neck would break before I’d quit.

I have no idea where tonight’s determination came from, other than I had had an irritating day, so maybe that was a little extra fuel for the meditation fire. (I’ve also been dealing with an upper respiratory infection, and thanks to the antibiotics, today was the first day I haven’t felt sick in several weeks.)

These two paragraphs are some notes from Daniel Ingram in his excellent (and free) book, Mastering the Core Teachings of the Buddha (with some very minor edits from me):

“For those who are practicing meditation (as opposed to experiencing an occurrence in daily life), in the early part of this stage, the meditator’s mind accelerates more and more, and reality begins to be perceived as particles or fine vibrations of mind and matter, each arising and vanishing utterly at tremendous speed. The traditional texts call this stage the beginning of insight practice, as from this point on there is a much more direct and non-conceptual understanding of the three characteristics...

This stage is marked by dramatically increased perceptual abilities when compared with the previous stages. For example, we might be able to hone our awareness to laser-like precision on the tip of our little finger and seemingly be able to perceive the beginning and ending of every single sensation that made up that finger.”

If that makes any sense and you want to know more about it, the printed book version of his book is here on Amazon (#ad), and you can also read the free HTML version of this book at this link.

As a brief note today, here is a short list of spiritual teachers I am aware of who have expressed the idea “I am not the body.” Sri Nisargadatta Maharaj made this the most obvious to me by writing a book titled, “I Am Not The Body (#ad),” but when you think about it, many spiritual teachers have said the exact same thing in different ways.

macOS FAQ: From the command line, how do I show the largest files under a directory on macOS (and Linux/Unix systems).

Solution: Use the Unix du (disk usage) command, and sort its output.

A du/sort command to show the largest files under a directory on Mac OS X

The Unix/Linux command that worked for me on my MacOS system is this:

$ du -a * | sort -r -n | head -10

du is the disk usage command, and the -a flag says, “Display an entry for each file in a file hierarchy.” Then I use the sort command to sort the du output numerically and in reverse. After that, head -10 shows only the first ten lines of output. In the Music folder on my Mac the command and output look like this:

Tho’ much is taken, much abides; and tho’
We are not now that strength which in old days
Moved earth and heaven, that which we are, we are;
One equal temper of heroic hearts,
Made weak by time and fate, but strong in will
To strive, to seek, to find, and not to yield.

~ Part of the poem Ulysses, by Lord Alfred Tennyson

(In the process of writing Functional Programming, Simplified, I had to make thirteen trips to the emergency departments of three different hospitals.)

If you’d like to buy a signed copy of the Scala Cookbook, here’s a link to one I have on sale at ebay.

As I note on ebay, I only have seven copies of the Cookbook, and this is Book #4 out of 7.

Buy a Scala Cookbook, signed by Alvin Alexander