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

If you ever need to copy text (or a text file) from the MacOS Terminal to the Mac clipboard, I can confirm that the macOS pbcopy command works. It reads from STDIN and copies the text to the clipboard, so commands like these work:

$ echo "foo bar baz" | pbcopy

$ cat /etc/passwd | pbcopy

I don’t have a camera to do it justice, but the moonrise is pretty tonight.

Moonrise over the ocean, Virginia Beach

I just counted, and the latest version of my book on functional programming in Scala currently contains 90 short lessons and another 25 appendices. It’s going to grow a little more, but that’s where it is right now. I hope to have a first draft of it publicly available by the end of May.

Update: The first 600 pages of my book, Learning Functional Programming in Scala, are now available as a free PDF download.

Joey Votto is a terrific hitter on a horrible baseball team, and in this article he says, “I think if I let the team’s performance dictate how I behave,” says Votto, “or how I perceive my performance, or whether or not there’s value, or whether or not anyone even cares, it’s a dangerous and slippery slope.”

That reminds me of my brother-in-law, who is a tremendous chef currently working in a bad situation, and how you can’t let your current situation get you down.

DeMarcus Ware is one of my favorite football players, by all accounts a real leader and team player. Here’s a nice quote from him in this article:

“I told myself, ‘Don’t get caught up. Stay focused and keep your head down and everything will be all right,’ ” he says. “That’s always been my motto: If you don’t get caught up in the hype, you can do something great.”

This nih.gov article states that Vitamin D helps to stabilize mast cells. I always thought my Vitamin D levels were very low because of mast cell disease, but maybe something else caused the Vitamin D problem which made the mast cell problem worse,  dunno.

I haven’t tried it yet, but I was just reminded that Christopher Vogt (and others) have created a build tool named CBT as an alternative to SBT.

“And when Jung starts to deal with his archetypes, collective unconscious and so on, he is starting to deal with the fourth chakra ... he himself is afraid to go on, that’s quite clear. He goes just so far and then he stops, because he’s afraid that if he goes the next step, he will no longer be able to do what he does as Carl Jung.”

From a Ram Dass post, Chakras in the Body

I’ve made some good progress on my new book on Scala and functional programming recently. For whatever reason I had been having writer’s block, so I came out to the beach for a little while to help clear out my brain, and today in particular was very productive. For a while now I’ve known how the book would end, but I was having a problem getting from where I was to the end, and I got through most of that today.

In a slightly related note, here’s a blurry photo of a military ship out on the ocean.

Military ship on the ocean

John Gruber writes today that The Mac Pro Lives. Perhaps more accurately, at least it seems to have a future.

*Magneto flapping his wrist frantically, trying to shake loose a fork stuck to his hand*

This article on How to get out of a (mast cell disease) reaction cycle has good information on H1 and H2 antihistamines, mast cell stabilizers, and more.

(I already knew that the max dosage for Zyrtec for people like me is four pills a day, and on that page Lisa Klimas shares information on Benadryl, Zantac, Pepcid, and more.)

Traveling always reminds me of this song: Please Come to Boston, by Dave Loggins:

I saw this quote by Naval Ravikant:

“The fundamental delusion - there is something out there that will make me happy and fulfilled forever.”

and it reminded me of this quote by Zen Master Yasutani Roshi:

“The fundamental delusion of humanity is to suppose that I am here and you are out there.”

A couple that lives near me has been having problems, and yesterday the husband asked if he and I could talk privately. After we found a quiet place he said, “My wife isn’t the woman I married ... I don’t like this new version of her, and I don’t know what to do.”

(Sorry, there’s no moral to this story, only that.)

Health (and other things) permitting, I hope to have a first draft of my book on Scala and functional programming (now titled, Learning Functional Programming in Scala) completed by the end of May.

It may only be in an alpha or beta state by then, but I’m debating about making it available as an Amazon ebook for a low cost at that time. I’ll be going back to work almost immediately after that, so if I don’t release it now, it may be another year before I can really finish it.

Update: The first 600 pages of my book, Learning Functional Programming in Scala, are now available as a free PDF download.

In retrospect it’s humbling to see that doctors spent about half a million dollars over the last 5-7 years to figure out my illness. If more doctors knew about mast cell disease the total cost could have probably been 1/10th of that.

This makes me look forward to the day when doctors have better software, and are willing to use it. (Every time I watch an episode of House I think, “Use a computer!”)

I hesitate to say something because this is usually where I get cancer, a rare disease, or a body part has to be removed, but I did a yogic handstand tonight, for the first time since things started to go south in 2011.

(Photo is of Stephen Amell from The Arrow.)

Handstand

“And so I wake in the morning
And I step outside
And I take a deep breath and I get real high
And I scream from the top of my lungs
What’s going on?”

I may have done that once or twice in the mountains of Alaska. :)

(P!nk also does a nice cover of this song.)