Sep 19, 2025

lilypond notes

 lilypond notes

articulation: >.<, etc

dynamics: ff,pp, etc

add text under and above: _markup {\tiny accel.}, ^markup {\tiny accel.}

The difference between slur () and tie ~. Slur applies to notes of different pitches. Tie applies to notes of the same pitches. Lyrics advance strange?

May 19, 2025

What Mac is good about

  1.  You can use drag and drop to copy and paste a pathname. This saves a huge amount of time on the problem of blanks in the pathname.
  2. A lot of good programs are installed already. Like Python, LaTeX, and GarageBand.
  3. When you open a folder, the view of the folder will retain the last view layout.

May 9, 2025

Ghostscript install failed

 The Meson build system

Version: 1.8.0

Source dir: /private/tmp/cairo-20250509-374-f967wb/cairo-1.18.4

Build dir: /private/tmp/cairo-20250509-374-f967wb/cairo-1.18.4/build

Build type: native build

Program version.py found: YES (/private/tmp/cairo-20250509-374-f967wb/cairo-1.18.4/version.py)


meson.build:3:11: ERROR: Command `/private/tmp/cairo-20250509-374-f967wb/cairo-1.18.4/version.py` failed with status 127.


A full log can be found at /private/tmp/cairo-20250509-374-f967wb/cairo-1.18.4/build/meson-logs/meson-log.txt




Error: You are using macOS 10.14.

We (and Apple) do not provide support for this old version.


This is a Tier 3 configuration:

  https://docs.brew.sh/Support-Tiers#tier-3

Do not report any issues to Homebrew/* repositories!

Read the above document instead before opening any issues or PRs.



Error: A newer Command Line Tools release is available.

Update them from Software Update in System Preferences.


If that doesn't show you any updates, run:

  sudo rm -rf /Library/Developer/CommandLineTools

  sudo xcode-select --install


Alternatively, manually download them from:

  https://developer.apple.com/download/all/.

You should download the Command Line Tools for Xcode 11.3.1.



This is a Tier 2 configuration:

  https://docs.brew.sh/Support-Tiers#tier-2

Do not report any issues to Homebrew/* repositories!

Read the above document instead before opening any issues or PRs.


This build failure was expected, as this is not a Tier 1 configuration:

  https://docs.brew.sh/Support-Tiers

Do not report any issues to Homebrew/* repositories!

Read the above document instead before opening any issues or PRs.

4155624s-MacBook-Air:~ a143415$ 

installing imagemagick on Mac

 Takes a long time. At least 50 mins. Here are some of the messages.

Error: You are using macOS 10.14.

We (and Apple) do not provide support for this old version.

After installing and returning to command prompt, tried magick logo: logo.gif 

it says

-bash: magick: command not found

seems the installation is unsuccessful. Can't find imagemagick in Applications folder. Search the entire computer with the keyword imagemagick returns nothing.


May 1, 2025

git, switching from windows to Mac

 After I switched from Windows to Mac, I encounter some problem with Git. I also switch from git gui to sourceTree as git graphic interface, because I couldn't find git gui on my Mac.

There are modified content but if you look closely the modified content is exactly the same as the old file.


 git config core.filemode false

 git config core.autocrlf input


solved half the problem. The modified files are gone from the unstaged window.


The other half is there are untracked files that were definitely tracked but now show as untracked. Because of this, I lost many history. This is a bomber.


----

Git manual很沒用,如glossary裡index的解釋有寫等於沒寫。

把notebook的硬碟拆下來當外接硬碟接上另一台電腦

 原本的檔案系統都不一樣了,就是資料夾的相對結構都不在了,比如說Documents and Settings資料夾就不見了,查了一下好像要去C:/Users/User找。花了好一陣子才找到以前的檔案。


https://answers.microsoft.com/en-us/windows/forum/all/documents-and-settings-in-windows-10/be87dd2d-f903-427f-b501-932a3a2999d1

Apr 26, 2025

xelatex, switching from windows to Mac, Chinese font problems

 之前在windows上的微軟正黑體換到mac上後xelatex就編譯不過了。mac上好像只有黑體沒有正黑體。所以說latex可以獨立於作業軟體mac或windows好像不太對。而且我也遇到不少其它問題。我的mac是macOS Mojave version 10.14.6。

FontAwesome problem on Mac with xelatex

 xelatex fontawesome_problem.tex

This is XeTeX, Version 3.14159265-2.6-0.999992 (TeX Live 2020) (preloaded format=xelatex)

 restricted \write18 enabled.

entering extended mode

(./fontawesome_problem.tex

LaTeX2e <2020-02-02> patch level 5

L3 programming layer <2020-03-06>

(/usr/local/texlive/2020/texmf-dist/tex/latex/standalone/standalone.cls

Document Class: standalone 2018/03/26 v1.3a Class to compile TeX sub-files stan

dalone

Apr 24, 2025

Vim notes

Notes. Useful commands.
  1. vim的documentation很爛。看他的documentation真的會瘋掉。好像還是要在網路上找解決方法比較實際。
  2. 游標的位置是在游標方塊的左邊,按i insert插入的話,會在游標方塊的左邊插入。如果有兩個游標方塊(比如說游標在{或}上時),游標的位置是在比較深色的那個。在Mac上是這樣子。
  3. p是貼在游標的右方。P是貼在游標的左方。
  4. select/copy/paste/delete
    1. select
      1. 在我的mac上,我可以在vim裡直接用滑鼠選取文字。
      2. 按shift + 左或右 不能選取文字(重要,跟MS Word不同)
      3. 按v進visual mode,然後按左右選取。
      4. 按ctrl + v,按左右加上下選取。
      5. vi) or vi} or vi" or vi' 選取(), {}, " ", ' ' 內的內容,只要游標在裡面就可以。
      6. viw can select inner word, cursor anyhwere in the word. And if you continue pressing w, visual mode can continue selecting more words.
      7. after v select, you can p paste the info in your register to replace the text v selected. Or you can ctrl v to paste the info in your system clipboard. This works on my Mac.
      8. To paste the content you copy from Vim to other programs, in Vim, press "+y$, this yanks the content to the end of line (y$) into system clipboard, paste into other programs with the usual ctrl v. (在Mac上是cmd v).

    2. ciw - change inner word, word includes underscores but not hyphens
    1. ci' - change inner content in ' ', without ' '.只要指標在' '裡面就可以。
    2. ca' - change outer content in ' ', with ' '.
    3. ci} - change content in { }, without }. 只要指標在{ }裡面就可以。
    4. ca} - change content in { }, with }

    5. daw, cursor anywhere in a word, including the space in front of or after the word.
    6. yaw, cursor anywhere, including the space before or after the word.
    7. yiw, exclude the space