This is a funny quote from a book titled, Winter Moon something something. It’s funny that someone can make remarks like this about a great Zen Master. You probably can’t get away with that in other spiritual traditions.
Scala, Java, Unix, MacOS tutorials (page 230)
A beautiful shot of houseboats on the Gastineau channel in Juneau, Alaska. Image from this Facebook page.
I just ran into a problem where the putStr function in Haskell was not printed out in the order I wanted it to be. I wanted to prompt a user for input, then read their input, but the putStr output didn’t appear until later, after I hit the Enter key. (putStr is preferred here over putStrLn because it does not add a newline character after the output.)
This is a few months old now, but this is from the original story:
“We have a pretty special puppy that needs to find a home,” Andrea wrote in that Craigslist ad. “‘General’ is a pure bred Siberian Husky, black/white with bi-eyes. He was born as a runt, and has some deformity in his front paws. He is missing the ulna bone in each arm and the humerus bone in his left arm is not formed correctly.
“While he is not able to walk, he does a great job of getting around and is not shy about playing rough with his siblings. He is able to stand upright on his back paws which is absolutely adorable!
“He is ten weeks old and is able to get himself up on his back paws and sits. He scoots himself around and can eat and drink without help. House training is slow but progressing. He loves to be with other dogs and will roll around on the floor playing with his siblings. We really wish we could keep him, but with school and working full time, we do not have the ability to give him the adequate time, attention, and money that he will require.”
Albert Einstein often sounds like a Buddhist. I was very surprised to learn that he said this.
I’m not trying to make any political statements here, I’m just amazed at this number.
I did a little research, and it seems to be true. There are about 30,000 deaths in the U.S. per year related to guns.
This is a photo of some inspiring tile artwork from an oncologist’s office. (I blurred out the name for privacy.)
“Shilo, when I was young, I used to call your name,” sings Neil Diamond (aka, Neily D). This is a photo of a wolf named Shilo, from the Lakota Wolf Preserve Facebook page.
I was thinking about energy last night, and did some searches for “pure energy,” when I came across this post on AskAMathematician.com. See that post if you’re interested in the subject. Or see this YouTube video if you’re interested in the 1980s song/video featuring Mr. Spock saying “pure energy” several times. :)
Scala FAQ: What does the use of three questions marks (???) in Scala mean?
The syntax of using three question marks in Scala lets you write a not-yet implemented method, like this:
def createWorldPeace = ???
The methods you define can also take input parameters and specify a return type, like this:
There may be other ways to do this, but if you need to determine the type (type signature) of an object in a Haskell program, the following approach worked for me.
First, add this import statement to your program:
import Data.Typeable
What that does is give you access to a function named typeOf, which you can then use like this:
It’s not often that you can remember what you were watching 19 years ago, but I do remember watching Kerri Strug nail her landing on one good leg. Kudos. (Image from espn.com.)
Did you hear the one about the bear who walks into a zoo?
Actually, in a real story, a black bear walked into the Alaska Zoo. The story is here at adn.com.
I was working on a Haskell factorial function (which turned out to be easy) and decided I wanted to write a program to prompt a user at the command line for an Int, and then do the factorial of that Int.
I quickly learned that this required a String to Int conversion, which I wanted to do safely (I didn’t want my program to blow up). Technically what I do is actually a String to Maybe Int conversion, as you can see in this code: