09 May 2018
|
study
history of science
study
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).
19 Jun 2017
|
tech
presentation
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.
15 Jun 2017
|
tech
presentation
digital humanities
test
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.