In image processing, alpha channel is usually used to control the transparency of an image. In itself, the alpha channel is just a gray level image1. In this post, I want to talk about how to add an alpha channel to RGB image and show it using the Pillow package.

A cheat sheet about regex in Sublime Text.

In computer vision tasks, we need to crop a rotated rectangle from the original image sometimes, for example, to crop a rotated text box. In this post, I would like to introduce how to do this in OpenCV.

In my previous post, I have introduced how to build Zsh from source and install oh-my-zsh to enhance your terminal experience. In this post, I’d like to introduce how to manage plugins with zplug and a few more plugins to boost your productivity.

With the help of Windows Subsystem for Linux (WSL, for short)1, we can use the nearly full Linux environment on Windows system. In this post, I would like to share how to display images inside Ubuntu on Windows, which is one of the popular distrubtions.

If you work with terminals extensively, you may be tired of typing cd to go to directories, especially when directory names are very long. z.lua is such a tool to make your life easier by jumping to the desired directory smartly.

In this post, I summarize some of the advanced configurations of Cmder.

Nvim-qt is one of the many GUI front end for Neovim and it is packaged with Neovim by default on Windows platform. In this post, I will give a summary on how to solve a few issues with Nvim-qt.

In this post, I want to share how to manage tmux plugins with Tmux plugin manager (i.e., tpm) and also mention a few useful plugins.

In this post, I would like to share line number settings in Neovim to move the cursor more efficiently.

2018 年对于我来说，是变化很大的一年，我很高兴自己能够下定决心做一些决定。 这一年读书的数量并不多，因为有几部比较大部头，读完花费了相当多的时间。年初寒假的时候， 买了最新款的 Kindle Oasis2，替换了几年前买的 Kindle Paper White1。最值得高兴的事情是现在可以完全无压力阅读英文原版书籍，没有阅读的障碍。

Every programmer knows newline character, but maybe not so familiar. In this post, I want to write what I have learned about newline handling in various cases.

In this post, I want to write about two issues related to the ImageFont module in the PIL package.

GoldenDict 是一款开源字典应用，功能强大，支持多种字典格式，同时也支持网络资源。 欧路词典 是一款国产的查词软件，产品做得也很不错，同样支持多种字典格式。本文介绍 GoldenDict 以及欧路词典的配置, 以及如何在 Listary 中调用它们实现查词功能。