-
ttf-arphic-uming
,ttf-wqy-microhei
,ttf-wqy-zenhei
,xfonts-wqy
andttf-opensymbol
are some packages related to Chinese fonts. -
If you have Adobe Reader installed on your computer, you can use Adobe Chinese fonts for free.
-
To check Chinese fonts installed on your computer, you can use the command
fc-list :lang=zh-cn | sort
. -
To install extra …
Search for Files in Command-line Using grep
The article
14 Practical examples of the grep command
has some good examples on how to use the grep
command.
-
The Perl style (option
-P
) regular expression is more powerful than the basic (default) and extended (option-E
) regular expression. It is suggested that you use the perl style as …
Synchronize Files Using Dropbox
-
Dropbox won't sync files that you don't have read permissions.
-
You'd better not merge an old Dropbox folder while installing/configuring Dropbox.
-
You'd better not store symbolic links in the Dropbox folder, because the symbolic links will be replaced by the real files/folders when synchronized to other computers.
-
It …
Comparision of Linux Emulation Solutions on Windows
-
Virtual machine based on Virtualbox, etc. is an overkill, generally speaking. It provides complete functionalities but is more CPU and memory hangry.
-
WSL 2 is the currently the best solution comes with Windows 10+. It is essentially a virtual machine but based on Hyper-V.
-
Cygwin, MobaXterm, etc. are outdated as …
Count Number of Fields in Each Line
Sometimes, a structured text file might be malformatted. A simple way to verify it is to count the number of fields in each line.
Using awk
You can count the number of fields in each line using the following awk command. Unfortunately, awk does not take escaped characters into consideration …
Resolve the DNS Contamination Issue in Firefox
The local DNS you use in China is probably contaminated
and popular sites like Google, Facebook, etc. are not interpreted correctly.
So if you are in China and use Firefox with Proxy,
make sure to set network.proxy.socks_remote_dns
to be true (follow steps below).
-
Open an empty tab in …