HomePod is amazing in sound quality (except its soundstage), but Siri is unable to understand long titles of classical albums (e.g. “Bach: Brandenburg Concertos – Orchestral Suites – Violin Concertos”). My current solution is: in iTunes on Mac, Airplay the album to Homepod. The good news is, when I use Siri to adjust the volume of HomePod, the iTunes’ volume level also changes (, while the sound from other apps on my Mac can output to other devices).

Update on Apr 20: On iOS, the “Music” app can also show what is being played and select albums for HomePod.

If you have other solutions, please kindly let me know. Thanks.

When login to the D-link camera (e.g. DSC-936L) by local web interface, the default username is “admin”, and the password is the one you set up using the app “mydlink lite” (when hinted to set up a password for this camera), not blank.

Using the default Elsevier latex template, there is a URL in each bibliography reference with “Bdsk-Url” fields. To remove this URL,
1. Open the BTS (bibliography style) file being used (by default “els article-num.bst”).
2. For each BibTeX item type (e.g. “inproceedings”), find the corresponding function in the above BST file (e.g. “FUNCTION {inproceedings}”), then comment out “write.url” in the end of this function (i.e. change it to “%write.url”).

(To remove such URLs for IEEE template, please refer to http://writebuffer.com/remove-url-in-ieeetran-bibliography-on-mac-os/)

If you have better solutions, please let me know. Thanks.

I installed the NVIDIA Web Driver on my MacBook Pro (Mid 2014 w/ GT750M) due to sluggish High Sierra. At first, it seemed to improve the graphics performance a bit. However, when I tried to restart the MacBook later, it just stuck on Apple logo with progress bar not finishing moving.

In Safe Boot, I can’t access the NVIDIA Driver Manager. Right now my solution is to clear the Macbook’s NVRAM (nonvolatile random-access memory). Caution: it will also reset several other settings. The method is: press Option, Command, P, and R together, and then start the computer.

If you have better solutions, please leave your comments. Thanks.

ANSI: /ˈænsi/
cout/cin: c-out/c-in
malloc: mal-loc
endl: end-l
N^2: N squared
N^3: N cubed
N*Log(N): N log N
1/2: one half
1/3: one third
/ : forward slash
\ : backslack
* : asterisk
(condition)? expTrue : expFalse : ternary operator

Several times after I force-restart my Mac (recently in High Sierra), I found Safari lost all its saved passwords. It seems the Mac loses the keychain containing these passwords. The solution may be simple:
Go to System Preferences -> iCloud, if “Keychain” is unchecked, check it. Then all passwords should be accessible in Safari again.

This method is learned from https://www.digitalocean.com/community/questions/how-to-change-swap-size-on-ubuntu-14-04:

(change count=1024 for the size you need)

sudo -s
swapoff -a
dd if=/dev/zero of=/swapfile bs=1M count=1024
chmod 0600 /swapfile
mkswap /swapfile
swapon /swapfile