I wanted to change the default alert sound for Calendar events on OSX Yosemite. I found a thread on discussions.apple.com about it. First, I was surprised to find there’s no way to customize the sound effect in the UI. Second, I was shocked to find this reply in the thread:
Let’s think about this.
This user is sincerely making the case that updating a config value in an obscure file (XCode recommended, by the way, because we don’t know the side effects) is a better solution than selecting an option from a menu in the Calendar app.
I’ve also seen this kind of arrogance in StackOverflow threads and other technical forums. When someone asks how to do something, someone replies to ask, “Why would you ever want to do that?”
It’s always disappointing to me to see technical knowledge being wielded as a weapon like this. A lot of people in the tech community lack the tiny amount of discipline required to act politely toward those who know less. It casts all of us in a bad light.
I couldn’t find any useful resource about how to install a custom Python script plugin in Sublime Text 3. It took me a while to figure it out, but the solution seems easy in retrospect.
In Sublime Text, the bottom right corner of the window displays the line and column position of the cursor. For example, it might say:
Line 11, Column 35
..to denote that the cursor is currently at the 35th character on the 11th line of the file.
My goal was to get a counter that shows an absolute counter of the cursor’s position from the beginning of the file. I wanted this:
Character 1324, Line 11, Column 35
After some digging around on the internet, I found this plugin on GitHub, which was actually taken from this post on StackOverflow.
However, all the information about how to actually install this on OSX seemed to be outdated. They wanted me to save the Python script as a file in directories that did not exist. If I created the directories required and restarted Sublime Text, I would either see no effect or get an ugly error message.
The solution turned out to be simple. I just had to open Sublime Text, and find the right menu item:
Tools > New Plugin...
Then, I just pasted the script from GitHub into the window and saved it as charPosition.py.
Now, the bottom-right corner of my Sublime Text window looks like this:
To run the whois command on one of the fancy new TLDs (.zone, .link, etc.) then you’ll need to edit a conf file in /etc/:
WHOIS command line: new gTLD (.guru, .watch, .zone, .link)
This is a really well-written and well-made guide and interactive tutorial to working with hexagonal grids. So if you ever want to write a Settlers simulator, this is a good place to start:
On the HackerNews comment thread for this, I also found another explanation closely related to the cube coordinate system:
Above and Beyond the Affirm Job Puzzle