COVID-19 Polar Express

|

Arctic Ocean

Several hours after leaving bed, I was above the Arctic Ocean. It was like a dream.

Before going on the trip back to China, I had been trapped, or prisoned, at my residence in Baltimore for almost half a year.

We have been used to the “illusion” of modern time. We have been used to measuring distance in terms of the time our modern transportation tools takes to travel from one place to another. We have also been used to the regularity delicately contrived by...

Comment (0)  Read more

Review material for Scientific Revolution survey course at JHU

|

I prepared this document for the Scientific Revolution survey exam at JHU. This page was converted to markdown from a docx file using Pandoc. Something went wrong with the format. The original document can be downloaded here (docx or PDF).

Comment (0)  Read more

Sort tags and categories by post count or alphabetically in Jekyll without plugins

|

This post introduces a solution of sorting tags and categories by post count or alphabetically in Jekyll without plugins. Since no plugin is needed, this solution works on Github Pages. Preview it on my site. Because liquid template does not support direct sort of array by a value (here the post list in site.tags)’s property, I have to do some dirty work by passing tags’ name and post count, separated by delimiters, to a string and sort the string by post count or alphabetically. Anyway, liquid is good at dealing with strings.

Comment (0)  Read more

Font display problem of Chinese characters in CJK languages

|

Currently, there is no good solution for simultaneous proper display of Chinese characters in Simplified Chinese, Traditional Chinese, Japanese and Korean in web browsers. Google’s Noto CJK (or Adobe’s Source Han 思源字体) covers all CJK languages, but how to display Chinese characters correctly in browsers is another problem yet to solve. In most occasions, this site displays Simplified and Traditional Chinese correctly but not kanji or hanja unless a Japanese or Korean font or a lang HTML attribute is specifically set. The latter may not work.

Comment (0)  Read more