Movember 2021

During the month of Movember, I start the month clean-shaven and grow a moustache for 30 days to raise funds and awareness for men’s health issues: prostate and testicular cancers, physical inactivity, poor mental health & suicide prevention. Funds raised will back care programs for people affected and leading-edge research into cures. This is my 11th year participating! It’s a rewarding (and itchy) experience. 🙂 My goal this year is to run/walk 60 miles and raise $2750. So far I’ve raised $2147 and I’ve moved 37 miles. Will you help me cross the finish line? Donate to my campaign here: https://mobro.co/krishen

How to Speed up Excel

On a Mac? Excel running slowly for you? Copying four cells causing a beachball? Have a clipboard manager (e.g. PasteBot, or BetterTouchTool)?

Turns out, in Excel, when you copy something, in addition to copying the text data, Excel also generates a picture. While it’s doing that, it blocks the clipboard manager, causing the beachball. Found this info on a BetterTouchTool user forum post, but it equally affects my clipboard manager of choice, PasteBot. I’m guessing this also affects any other Office application (e.g. Word), but haven’t tested it — just added both Excel and Word to the Pastebot exclusions list. I’ll gladly take the loss of clipboard history for the increase in speed — nothing more frustrating than having to wait on your brand new computer.

Javascript Coding Conventions

No, not talking about a programming spinoff of Comic-Con. Though, that would be interesting (in non-COVID-19-ier times). I suppose one could argue Comic-Con is that, given there’s probably some overlap between the two crowds (just conjecture). Anyway, Douglas Crockford (author of JSLint)’s style guide for Javascript can be found here.

Where to place Aliases when you have oh-my-zsh installed

Scott Whittaker over at scottwhittaker.net posted the exact information I was looking for.

I recently installed zsh and oh-my-zsh on one of my Macs, and was looking for where to put an alias. I looked in ~/.zshrc, and saw that it noted that if I was running oh-my-zsh, I should place the alias in $ZSH_CUSTOM, which, on my machine is a directory located at /Users/kgreenwell/.oh-my-zsh/custom (you can check this on your own machine with ‘echo $ZSH_CUSTOM’).

Which is fine, but then it left the question: “What should the file inside $ZSH_CUSTOM holding the aliases be called?” Scott’s post answers this quite nicely:

You can call the file anything you like as long as the file extension is .zsh and the file is immediately under the .oh-my-zsh/custom directory, for example .oh-my-zsh/custom/my-aliases.zsh. I found the answer to this in this thread.

He also goes on to note that you can create as many .zsh files in this directory as you’d like, and they’ll all get read, e.g. project1.zsh, project2.zsh, etc. The $ZSH_CUSTOM directory also contains an example.zsh file that gives an idea of what you can do with your .zsh files here. Very handy.

Thank you Scott, for spelling it all out so clearly!