How to Read TiDB Source Code (Part 1)

There are many articles on reading the source code of TiDB, often referred to as the “Twenty-Four Chapters Scriptures”. However, these introductions typically proceed from a macro…

July 6, 2020 · 6 min · 1247 words · Jack Yu

How to Use Docker on Windows

I had to install Docker on Windows to reproduce a bug.

April 13, 2020 · 2 min · 269 words · Jack Yu

How to Prevent a Linux Laptop from Entering Sleep Mode When the Lid is Closed

Initially, I thought it would be a simple setting adjustment, so I casually Googled it. Sure enough, there was a unanimous solution: modify /etc/systemd/logind.conf, change…

March 31, 2020 · 1 min · 171 words · Jack Yu

How to Dynamically Update DNS Records for Namesilo

The purpose of dynamic updates is pretty simple. As a long-term user of China Unicom’s broadband, although Unicom provides a public address, it is essentially a dynamic address,…

February 1, 2020 · 3 min · 438 words · Jack Yu

How to Start a PowerShell Script in the Background at Windows Startup

Note: Start-Process seems to perform a fork-like action, and by default, it opens a new PowerShell window to execute. That’s why -WindowStyle Hidden is added at the end. You can’t…

January 14, 2020 · 1 min · 110 words · Jack Yu

How to Deploy an HTTPS Proxy Service

One day, I came across an article by Chen Hao on Twitter. Having benefited from several of his blog posts, I instinctively felt it was reliable, so I read it and decided to write…

January 12, 2020 · 4 min · 737 words · Jack Yu

Using delve to Debug Golang Programs

When I first started writing Golang, I was always looking for a convenient debugging tool. Back then, I came across documentation about using gdb to debug and also tried delve,…

September 16, 2019 · 3 min · 613 words · Jack Yu

How to Deploy a Shadowsocks Server

There are multiple versions of the Shadowsocks server side implementation. The original version was written in Python, and later, enthusiasts implemented it in various programming…

September 27, 2018 · 2 min · 305 words · Jack Yu

How Immediate is Golang's Panic

Let’s first look at the following code snippet:

July 26, 2018 · 2 min · 238 words · Jack Yu

How TiDB Implements the INSERT Statement

In a previous article “TiDB Source Code Reading Series (4) Overview of INSERT Statement”, we introduced the general process of the INSERT statement. Why write a separate article…

July 11, 2018 · 11 min · 2221 words · Jack Yu