On becoming comfortable with privacy violations

From a post titled "I'll never bring my phone on an international flight again. Neither should you":

Over time, this unparalleled intrusion into your personal privacy may come to feel as routine as taking off your shoes and putting them on a conveyer belt.

"Six other times the US has banned immigrants"

From an Al Jazeera article:

...this is not the first time that the US has banned immigrants from its shores. Over the past 200 years, successive American presidents have placed restrictions on the immigration of certain groups.

Ashamed to say we're at it again.

Z-index seems so simple...

From "What No One Told You About Z-Index":

Z-index seems so simple: elements with a higher z-index are stacked in front of elements with a lower z-index, right? Well, actually, no. This is part of the problem with z-index. It appears so simple, so most developers don’t take the time to read the rules.

I love posts that delve deep into an obscure topic and explain it clearly, and this is a great one.

Prevent Homebrew from gathering analytics

Homebrew gathers anonymous analytics about its users. The Homebrew maintainers explain that they use the anonymous data to help the project, but you might want to disable this for two reasons:

  1. You don't want any of your data being shared at all.
  2. You want to avoid an unnecessary analytics network request.

You can disable Homebrew's analytics in one of two ways:

With a command:

brew analytics off

Or with an environment variable:


You can set this in your shell startup (your .bashrc, for example).

To see whether Homebrew is gathering data, you can run this command to print whether it's enabled:

brew analytics

Automatically ls when changing directories in zsh

The first thing I do when changing directories in the terminal is ls to get my bearings. I usually do it without thinking.

I used to do this manually, but then I learned that zsh has a way to do this for me. Zsh offers "hook functions", which can be defined and are executed when certain events happen. One of these functions, chpwd, will be "executed whenever the current working directory is changed."

Add something like this to your .zshrc:

chpwd() {

Now you'll ls whenever you cd (or pushd)!