Skip to main content

Posts

Showing posts from 2017

Prevent Endless Reboot after Updating your Apple Laptop's macOS, especially the macOS High Sierra 10.13 Supplemental Update

If you have a MacBook pro and you want to do the latest update (the small one after high sierra, or "macOS High Sierra 10.13 Supplemental Update"), you should probably 1. backup (e.g., time machine), 2. (important!) connect your laptop with ethernet, and 3. connect to a power source. My MacBook pro time-jumped to some time in 2016 after the update and it forced itself into a power-cord only endless reboot mode. No kidding! Endless reboot,  like you never hear the reboot sound effect so many times. After the update, it wouldn't start unless it was connected to a power source, but it would reboot a few seconds after that Apple loading progress bar reached around 60% or 90%. My current working hypothesis is that it has to be connected to the internet before it reaches that point. Otherwise, it restarts again before you could quickly choose a WiFi access point and enter the password. After a few hours trying all the special hotkey combinations suggested on the inter...

Basic tmux commands

Here are several basic commands for tmux , a terminal multiplexer. tmux list -> list all the session tmux attach -> attach the last session In session (or any window): Ctrl + b, c -> create window Ctrl + b, n -> next window Ctrl + b, p -> previous window Ctrl + b, l -> last window Ctrl + b, d -> detach session Ctrl + b, :rename-window New_Name_FOR_WINDOW -> rename current window In a window exit -> exist a window Reference Cheatsheet

Using Pandoc for Doing Citation and Bibliography in Markdown

Markdown is a simple formatting syntax that allows you to do common formatting with ease. Pandoc is a feature rich interpreter that helps you convert documents from one format to anther. If you are writing homework, research papers, or anything that needs citation and a bibliography, you can totally use Markdown and Pandoc to achieve that. Below is a set of instructions that you can follow to generate a document with in-text citation and bibliography. First, install Pandoc and the extension for creating citation ( pandoc-citeproc ).  There are several ways to install Pandoc, you can choose one of them recommended on the official website . On Mac, one way is to install Homebrew , a package manager, and then use Homebrew to install Pandoc and the extension. For Windows users, please refer the official website on how to install Pandooc and extension. Here I will show how to install Pandoc and the extension for citation through Homebrew. After installing homebrew, you can ...