enjoy coding, enjoy life.

Code

Adjust Console Resolution on Ubuntu Server 24.04 LTS

Today I installed Ubuntu Server 24.04.2 LTS from the ubuntu-24.04.2-live-server-amd64.iso on a small PC that now sits under my desk.

The monitor is a Dell U2723QX (27", 3840×2160).

After first boot the console characters were barely 1 mm high—fine for 30 cm viewing distance, not for normal use.

Code

不使用 docker-desktop 怎么启用 docker 和 docker buildkit

在 macOS 上,Docker Desktop 是一个非常流行的选择,但它并不是唯一的方案。如果你不想使用 Docker Desktop,或者希望寻找一个更轻量级的替代方案,Colima 是一个不错的选择。Colima 是一个用于 macOS 和 Linux 的容器运行时管理工具,它提供了极简的设置流程,同时支持多种容器运行时,包括 Docker 和 Kubernetes。本文将介绍如何使用 Colima 启用 Docker 和 Docker BuildKit,让你在不依赖 Docker Desktop 的情况下,也能高效地进行容器开发。

Code

HBase Basic Introduction and Some Practical Principles

Apache HBase is a high-performance, open-source, distributed NoSQL database designed specifically for the Hadoop ecosystem, especially suitable for scenarios that require fast random read and write access to large datasets. This article will introduce the basics of HBase and use business scenarios of Users, Jobs, and their Subtasks to illustrate related concepts.

Code

Vim 的多行编辑功能

在使用 Vim 进行文本编辑时,我们经常需要对多行文本进行统一的操作,比如添加或删除特定的字符。以下是一些实用的 Vim 技巧,帮助我们快速完成这些任务。

Code

MySQL Binary Logs (binlog) Management

The MySQL binary log contains “events” that describe database changes such as table creation operations or changes to table data. It is the oplog of mysql, and we can subscribe the log to follow all the actions.

Code

Best Practice to Remove a Git Submodule

When you need to remove a submodule from your Git repository, the most straightforward and recommended approach is to use the git rm command followed by a commit and push to the remote repository.

Code

Ubuntu 18.04 LTS 及以上如何配置 NTP

Ubuntu 自 18.04 开始使用 timesyncd 作为默认的 ntp client。当然如果有必要也可以安装较多包来部署一个自己的 ntp server。

本文只介绍如何配置 timesyncd。