Show more

Sunrise at Indianapolis airport.

We’re heading to SFO, and then on to Japan in two days with grandchild. Grandchild and parents have an appointment at the passport office this morning, with a promise of same day service. We won’t fully relax until we succeed in boarding the flight to Osaka.

Life is especially good today. Living in the Eastern time zone, and working for a company in the Pacific time zone means having time in the morning to read and think before everybody else gets on Slack.

The weather is perfect today in Indiana for reading outside at the co-working space.

The past few weeks, I've rolled my eyes at the NY Times online edition, with a section header "Arts $amp; Leisure". They should have people who can get this encoding right.

Then I looked at the HTML, and I must admit it looks right to my inexpert eye. I have no idea what's wrong.

Haskell style question:

When do people use regular function application and function composition, and when do they use &, the reverse application operator? The Elixir folks really like their equivalent |> operator for building pipelines.

For me, when the chain of functions is long, I find & clearer. In day 1 of Advent of Code this year, I wound up with two functions, one in each style.

github.com/bwbeach/advent-of-c

(Note: I tried markdown for the code in the post, but triple-backticks didn’t preserve newlines. 😞)

A friend of mine posed the following puzzle:

You have 12 marbles, which all have the same weight except one, which may be either heavier or lighter. How can you find the different one in three weighings on a balance scale?

I know I’ve seen it before, but it still too me a while to work out a solution. Then I wanted to visualize the solution, and cobbled together haskell, graphviz, and a couple shell scripts.

Then, of course, I saw my solution was wrong and had to re-work it.

Spoiler, of course:

github.com/bwbeach/puzzles/blo

The second batch of rolls came out great. This one is to have with the turkey soup made from the Christmas turkey.

I came across a math puzzle here in the fediverse, and puzzled about it for a while. (Lost the link to the original post; if it’s yours let me know.)

Here’s the problem:

Bob was given 30 distinct natural numbers. He wrote down all the 435 pairwise sums.  It appears that among those sums, 230 are divisible by 3.  How many of the original 30 numbers are divisible by 3?

I was able to find the answer after playing with it for a bit. Then I made this cool visualization. (It’s a spoiler, of course.)

Ramona matches the new rug. And she thinks it’s comfortable.

Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.