April 28th 2026 - Reading Summary

The Hobbit

The ring is missing

Gollum realizes his ring is missing. He searches for it everywhere with no luck in finding it. He then asks Bilbo to tell him what he has in his pocket, suspecting its his ring.

Going invisible

Bilbo refuses to answer and Gollum jumps into the water, off his boat, to chase Bilbo. Bilbo runs away into the darkness and trips. He feels the ring slip onto his finger and as Gollum passes by him he's confused as to why he can't be seen.

Gollum worries that Bilbo will try to find a way out with his precious ring and goblins will catch him; using the ring's power of invisibility to their advantage and killing him.

The Eye of the World

Nynaeve overhears

Mat talks about how some say that the Dragon could be the savior of mankind. Nynaeve overhears and comes over complaining that they shouldn't speak like that. Mat says it's just something he heard. He thinks some believe the same but don't speak up in fear of the Aes Sedai and the Children of the Light.

The boys tell Nynaeve that the peddler is in the inn being questioned about this Dragon and she makes her way in. Egwene, who was standing next to Nynaeve, stays behind and moves closer to Rand.

Atomic Habits

Chapter 6 - Motivation is Overrated; Environment Often Matters More

  • The hospital experiment

    A hospital wanted to help it's employees make healthier food choices so they increased the locations where they could get water in the cafeteria. This was successful and more water was consumed vs soda.

  • The role of environment

    Our environment plays a huge role in our behavior. We are mainly visual creatures so setting up your environment to give you visual cues is critical.

Prot's Elisp Book

What is advice

If a package does not offer hooks we can use advice. This should be used cautiously as it can introduce bugs.

Advice is a way for us to call code before, after, or around a function.

How to add advice

Notice how this has a &rest parameter. This is because the next-line function has parameters and those are passed to whatever function we use as advice. If the function you are calling takes no parameters then none are needed as part of your function definition.

(defun my/message-line-number (&rest _)
  "Message the current line number"
  (message "Current line: %s" (line-number-at-pos)))

(advice-add #'next-line :after #'my/message-line-number)

_ is the convention for unused parameters.

We can also use :around and many others. See the documentation for (advice-add).

How to remove advice

To remove advice:

(advice-remove #'next-line #'my/message-line-number)