### Fun with negation and idioms

This is trivial but kind of fun.

### How to change tabs to spaces

find [options here] -exec bash -c 'expand --initial --tabs=4 {} | sponge {}' +

### Another Way to Write Conditional Probability

The $$p(\cdot | B)$$ notation is convenient sometimes, but other times it obscures what’s going on, like in the definition of conditional independence and the law of total probability (when you fix the conditioning event).

### Notes for May 9, 2019

• Spotify’s “Medieval ambient” in your house is a great way to feel like you’re in Skyrim, especially when Streets Of Whiterun is playing.
• Seabreeze Cafe has good fried catfish
• I’m writing this because my post on math notation proved a lot longer than expected, so I’m copping out.

### A tool to look at random images

It’s useful to look at image data before you do any ML with it. Usually I want to look at random samples. So I wrote a tool to do it. Actually, I wrote the same tool 3 times (today afternoon), improving something else each time.

### Safeway

Apparently if you ask for a sample of any food or drink1 at Safeway, company policy is that they have to give you it. Even for fancy stuff like smoked salmon. Though they’ll throw away any open packets, so that’s on your conscience.

1. Except alcohol.

### e-ink reminisces

I just remembered1 a Cisco employee event my dad took me and my brother to when I was about 8, around 2003.

1. At 2:23 A.M. because of course that’s when I’d when I’d remember.

### Edwin Edwards

Former governor of Louisiana. All sorts of stuff wrong with him, but man, he had the quickest wit of any politician ever when it came to retorts.

### Middle School by Bo Burnham

I’ll use middle school and high school interchangeably.

This only works if your blog is noncommercial.

### Derivation of Reservoir Sampling

I had to implement reservoir sampling during an interview and I had no idea how to do that. So I had to figure it out on the spot. This is where all those years of induction paid off, since there’s a nice derivation based on writing down the definitions of everything and noticing that there’s a natural inductive pattern.

This requires Python 3.7+, since I use the handy dataclasses library.

### Notes for November 11, 2018

The final disappointment of heroism is to find that a just war was, in the end, just a war.

### Underrated Vim Option: undofile and undodir

A feature I enjoy using myself is not known to many users, as I found out last weekend. Besides undo with as many levels as you like, Vim also offers storing the undo information in a file. So you can exit Vim, reboot your computer and still undo changes you made. See the help for undofile.

– Bram Moolenaar (Vim maintainer)

### Hot Take on Solo Travel: Starve

Don’t eat on the plane, even if the journey is 20 hours long (or 36 in one case).

### Alan Perlis

I think that it’s extraordinarily important that we in computer science keep fun in computing. When it started out it was an awful lot of fun. Of course the paying customers got shafted every now and then and after a while we began to take their complaints seriously. We began to feel as if we really were responsible for the successful error-free perfect use of these machines. I don’t think we are. I think we’re responsible for stretching them setting them off in new directions and keeping fun in the house. I hope the field of computer science never loses its sense of fun. Above all I hope we don’t become missionaries. Don’t feel as if you’re Bible sales-men. The world has too many of those already. What you know about computing other people will learn. Don’t feel as if the key to successful computing is only in your hands. What’s in your hands I think and hope is intelligence: the ability to see the machine as more than when you were first led up to it that you can make it more.