1. Fcitx5 rime on pinephone postmarketOS

    Published: Thursday, April 7, 2022

    One of the requirement for me to daily drive a Linux phone is the foreign language input support (Chinese, Japanese, etc). While it is easy to setup ibus or fcitx5 on a more popular Linux distro such as Arch and Debian (Arch ARM and Mobian for pinephone), doing in on …

    read more
  2. Customize Openbox Manjaro

    Published: Saturday, May 2, 2020

    The lightweight Openbox Manjaro is very appealing compared to some other operating systems that use so much CPU when you are doing nothing. After a fresh installation, there are some steps to take before it appears and functions as I would like.

    Increase font size. Tiny texts on high resolution …

    read more
  3. Set Helvetica Font in LaTeX

    Published: Monday, April 20, 2020

    One of the conferences requires paper submission in Helvetica Font. But the provided template uses standard math package, making the the document inconsistent.

    This gist shared a way to set Helvetica Font without using XeLaTeX:

    \renewcommand{\familydefault}{\sfdefault}
    \usepackage[scaled=1]{helvet}
    \usepackage[helvet]{sfmath}
    \everymath={\sf}
    
    read more
  4. Switching to ZoneMinder

    Published: Sunday, April 19, 2020

    Blue Iris (version 4) has been my video surveillance software for three years. It was a good place to start, and easy to get things up and running, especially considering how little experience I had with IP cameras. The developer also offered software updates until sometime in 2019 when version …

    read more
  5. Typeset Arial Narrow and sans serif mathematical symbols

    Published: Saturday, September 6, 2014

    This also applies to fonts other than Arial Narrow.

    1. Use XeLaTeX instead of pdftex.
    2. Suppose the desired font for mathematical symbols is Computer Modern Bright:
    \usepackage{cmbright}
    \usepackage[T1]{fontenc}
    \usepackage[no-math]{fontspec} \setsansfont[Ligatures=TeX]{Arial Narrow}
    
    1. Use \sffamily after \begin{document}.

    Note: the other way to set font …

    read more
  6. Replace iframe with div AJAX

    Published: Sunday, August 24, 2014

    The iframe was originally used for displaying a web page inside another. When the internet bandwidth is limited, it could be useful to only update a partial content without reloading other elements. It worked well in the old days when JavaScript was suffering from compatibility issue, since no JavaScript is …

    read more
  7. From MS Access to MySQL

    Published: Thursday, August 21, 2014

    The mitigation is supposed to be easy, MySQL has provided an official migration guide, as well as the ODBC guide.

    However, I did not have much luck making these work. Main reasons were 1) The original MS database was 32-bit, but now I only have access to 64-bit PCs; 2 …

    read more