Notes and Discussions

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

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.

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.