We can use trigger to automate oerations, for example, preventing insertion of a record if certain condition is met. In this post, we show an example trigger function and its usage.

Here is how much I spend for living in Shenzhen, China as a non-local people. Note the cost may vary a lot depending on various factors.

All numbers are in the unit of Chinese Yuan (symbol ¥).

I saw from the repo awesome neovim1 a plugin that helps the user create the intermediate dir when they save a file. I wondered why this feature even needs a whole plugin? You can literally do this with a few lines of code.

Recently, when I try to use Ctrl-left and Ctrl-right in Neovim, I found that they are not received by Neovim. I thought this is a Neovim issue. However, when I test these two shortcuts using cat in the terminal (I tried both Kitty and wezterm), it does not work either.

As a machine learning engineer/data scientist, after the model development process is finished, we need to deploy the model as a web service using different web frameworks. To achieve maximum performance and lower the hardware cost, we often need to optimize the speed our service, including TensorRT acceleration, config tuning, etc.

This post summarizes how to update author info of Git commits.

When we serve a HTTP service via uWSGI, we can monitor its stats via uwsgitop.

In Python, we often see the use of super() in class initialization.

If we pass list as parameter to a function and change the parameter, the original list is also changed. This is because list is a mutable type, when we pass list to a function, we are passing the same list.

Recently the nvim 0.7.2 version is released following the 0.7.0 release two months ago. Here are some of the updates in 0.7.0.

update log

2022-09-24: add sample database we can try.

In this post, I will talk about setting up SQL databases and also the tools needed to write SQL queries.

As a machine learning engineer who mainly deals with vision-based projects, I have little opportunity in my work to actually use SQL (Structured Query Language.). Even when I need it, I often just ask the data engineers for a favor.

However, I thought it would be an essential skill to learn even if I do not need it for now.

I saw a post from stackoverflow asking why his logger does not work as expect? The code is like:

In this post, I want to share how to generate ply files in Python.

As a long time nvim user, I am learning Lua and slowly transition my nvim config to lua. In this script, I will share some tips and lessons I have learned the hard way.

When running apt-get update inside Ubuntu 18.04, I have the following error:

# Background

The thing is that I have a Logitech pebble and mx keys mini keyboard, and I use Bluetooth to connect them to my mac, but they randomly lost connection when I was using them, especially for the mx keys mini keyboard, this occurred on a daily basis.