Notes and Discussions

My DIY NAS Adventure

· โ˜• 3 min read
I've been fascinated with Raspberry Pi-like development boards for a while, and then I stumbled upon a gem.

Quick Dockerfile for Python Poetry Projects

· โ˜• 4 min read
Dockerizing Python Poetry projects? Try this dockerfile as your start point. My colleagues say it make them eat and sleep better! :D

Bring Your "Own" Gitlab CI Runner

· โ˜• 11 min read
Gitlab sports this cool feature allowing you to use your own Gitlab CI Runner. But what if you don't "own" one? No worries, let's DIY our own. []~(๏ฟฃโ–ฝ๏ฟฃ)~*

Get Intel AX210 Wireless Adapters Working on Linux

· โ˜• 1 min read
The Intel Wi-Fi 6E AX210 wireless adapter supports Wi-Fi 6E technology(6 GHz). It's a good fit if you happen to have a Wi-Fi 6E router. However, getting it working(and keeping it working) on Linux might be a little trickier than you think.

What Happens on GitLab When You do git push?

· โ˜• 12 min read
Ever wondered how Git and GitLab operate under the hood? Grab your favorite IDE and join me on an exploratory journey into the mechanics of these tools!

The Art of Error Handling in Go

· โ˜• 5 min read
Error handling in Go often puzzles beginners and those coming from other programming languages. In this post, we differentiate between errors (`error`) and exceptions (`panic`), discuss what makes an error "good" (easy to check and debug), and introduce a common way to make errors "good" โ€” using `fmt.Errorf()`.

Walk around Strange HTML Video Tag Behavior in Wechat

· โ˜• 2 min read
In some Wechat built-in browser, video tag in your website always surprisingly goes fullscreen automatically, leaving document flow left below, with "related videos" suggestions at the end of your video.

Hugo i18n Automatic Language Redirection

· โ˜• 3 min read
Hugo has really neat support for i18n. Unfortunately, it does not provide a straitforward way to redirect your visitors automatically according to their web browser language preferences. The good news is that Hugo authors leave a open window for solving this problem.

PostgreSQL Date and Time Data Types Explained

· โ˜• 7 min read
PostgreSQL provides five datetime data types, including timestamp/timestamp with time zone, date, time, interval and time range(tsrange, tstzrange, daterange). This article briefs them, talks about gotchas and recommendations like why not store every datetime in UTC.

Why My Content Served by PWA Service Worker Not Updating?

· โ˜• 4 min read
Your PWA website console log keeps saying: 'New content is available; please refresh.' But refreshing just does not seem to work - old content and the log both stick. Here are some ways to fix it, along with a brief explanation on why it happens.