I understand free softwares such as FileZilla need money to sustain, but it’s annoying for FileZilla to pin Opera on the dock of my MacBook (after I forgot to uncheck the “option” to install Opera). More annoying is I can’t find the Opera app in the /Applications folder. After searching for a few minutes, I found the Opera app was in


So just delete “Opera.app” and remove its icon from the dock.

(Some other words: Opera browser is partly owned by QiHoo 360, a Chinese company notorious for its difficult-to-uninstall and hijack-your-browser “anti-virus” softwares for Windows. Hey 360, leave Mac alone!)

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.

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.

  1. Download intellij-java-google-style.xml from GitHub: https://raw.githubusercontent.com/google/styleguide/gh-pages/intellij-java-google-style.xml
  2. On Mac, IntelliJ Preferences -> Editor -> Code Style -> Java -> (Click “Gear” icon) -> Import Scheme -> Import IDEA code style XML

  1. Disable “duplicated code” detection
    • Settings → Editor → Inspections → General → Duplicated Code
    • (Or better) in the source code, use @SuppressWarnings(“Duplicates”)
    • Ref.: stackoverflow
  2. Show source file structure
    1. From menu: “View” -> “Tool Windows” -> “Structure”
    2. Quick key: CMD + 7
  3. Reformat all codes under a folder: in Project view, select the folder, then Code -> Reformat Code