Kindred

Book Notes

This is another Caltech Bookclub read, I started reading it way behind the rest of the readers, so spent much of today reading to catch up. Aaaaaaaaaand, finished it in a day. I do like reading while treadmill walking.

Butler grew up in Pasadena, which is the connection to Caltech for the book club. Previous books were about Caltech scientists or Caltech research or by Techers. This one has a lot of Pasadena in it. It was neat to know where she was describing, even if the Pasadena and Altadena even I knew are as gone as hers.

Butler is known as a science-fiction author. While this book has unexplained time travel as a plot mechanism, no time is spent exploring the phenomenon, making this book not really science fiction in my categorization. It is, however, a seriously good commentary on human nature.

The main character, Dana, is transported back to early 1800s American South. As Dana is black, we read about the atrocities of slavery, as told from a modern person transported back to the brutality of the era. We see how we normalize horrible behaviours, often to survive. We see how we assume power, even when we are one of the powerless. We see how we don't see our own privilege, how seeing another's view is difficult, it not impossible.

I think what's lingering with me most, however, is the slow descent into acceptance that Butler weaves into the story. It reminds me a great deal what Mistakes We Made (but not by me) discusses about human nature: we are all frogs in the pot about to boil.

Find files of a particular type in a web search

Snippet

Works on the googs, and duckduckgo, use the option filetype:<type> in the search box to filter results to only that file type.

Useful when you need documents for testing, and don't particularly care about the content, but you do care about the format.

Example: https://duckduckgo.com/?q=filetype%3Adoc+beagle&t=h_&ia=web

filetype:doc beagle

View Git Stash Contents Without Applying to Codebase

Snippet

Use git stash list to view all stashes

Use git stash show with options to view a stash without applying it to the codebase.

# see a "git diff" of what's in the first stash 
git stash show -p stash@{0}

And, a shell script to view these. Save this into a file, chmod +x the file, and run in the terminal.

#!/bin/bash
 
readonly STASH="$1"
 
if [[ "xx${STASH}" != "xx" ]]; then
    git stash show -p stash@{${STASH}}
else
    git stash list
fi

Local Mail Server During Development

Snippet

Sometimes, you need to send email during software development, and you need to be able to receive the email, even if the addresses are fake (say, to @example.org) and what have you.

The node package, fake-smtp-server is a handy tool for providing a server to receive the mail, and an interface for viewing the email that was sent.

https://www.npmjs.com/package/fake-smtp-server

Install globally on a system with:

npm install -g fake-smtp-server

Start it up:

fake-smtp-server

If you want to have it on port 25 as most mail servers expect, run as root:

sudo fake-smtp-server -s 25

View the emails received (by default) at

http://localhost:1080

You can change that port, too:

sudo fake-smtp-server -h 8888

A few other configurations, and an API. Great little tool.

Usage:
  fake-smtp-server [OPTIONS] [ARGS]
 
Options:
  -s, --smtp-port [NUMBER] SMTP port to listen on (Default is 1025)
      --smtp-ip [IP]       IP Address to bind SMTP service to (Default is 0.0.0.0)
  -h, --http-port [NUMBER] HTTP port to listen on (Default is 1080)
      --http-ip [IP]       IP Address to bind HTTP service to (Default is 0.0.0.0)
  -w, --whitelist STRING   Only accept e-mails from these adresses. Accepts
                           multiple e-mails comma-separated
  -m, --max [NUMBER]       Max number of e-mails to keep (Default is 100)
  -a, --auth STRING        Enable Authentication
      --headers            Enable headers in responses
  -k, --no-color           Omit color from output
      --debug              Show debug information

The Big Sleep

Book Notes

I added this book to my reading list some time after reading a ranking of Chandler's Marlowe books in order of "good," and this one wasn't first, but it is the first book of the series.

After checking this book out from the library, I found a nicely bound hardcover in a bookstore. Instead of reading the library version, I've been reading the paper version. Turns out, I've seen the movie, and recall much of it. The first 25% of the book matches the film well. We'll see if it stays that way, I'll be watching the movie again shortly.

I really enjoyed this book. Helps that I've lived in Los Angeles. While my residency was not in the late thirties, the world that Chandler describes is vivid enough, and based on real enough places, that I could visualize the story very well.

Unsurprisingly, most of the supporting characters are one-dimensional, Silver-Wig loves her man, until she realizes he's a killer, for example. Mars is a tough guy, willing to do most things for a dollar, and smart enough to have someone else do those things.

Marlowe, however, has more character. He's the hero of the story, we follow him around, we see more of his motivations, so unsurprisingly we understand him better. Seems reasonable that someone who wants to solve puzzles and understands a bit about human character would become a private investigator.

Unrelated, there is a lot of "kissing people you just met" in this book, but no actual sex. I didn't realize that people kissed so much in Los Angeles. I clearly did L.A. wrong.

I enjoyed the book. I enjoyed all the one-line and otherwise short zingers, and the snappy dialog. I'll likely continue reading the series.

Pages