In the Same Month, I Moved My Homepage Out of Next.js and Moved a Hugo Site In
In the same month I did two completely opposite things — I moved my personal homepage off Next.js to Vite, and then moved a whole Hugo static site into Next.js… I hit snags on both sides, so let me write them down while I still remember, so I don’t forget again next time~ The one I moved out home is my personal homepage repo. The stack’s evolution went like this: commit date event —— —— Nuxt 4 / Vue 3 / Pinia 412b258 2026-04-21 03:46 Rewritten as Next.js 15 static export, new code i...
How to Use Your Own Video as a Dynamic Wallpaper on macOS Tahoe (Aerial Replacement Method)
Turning your own videos into macOS Tahoe dynamic wallpapers is actually a rather quiet little process. The folder path is ~/Library/Application Support/com.apple.wallpaper/aerials/videos/ Inside there are usually just one or two .mov files, like 4C108785-A7BA-422E-9C79-B0129F1D5550.mov (the kind that’s around 445MB). The steps go like this: First go to “System Settings > Wallpaper” and download a Tahoe Aerial dynamic wallpaper so the folder has something in it. Back up the original .mov f...
Podman Compose Common Commands Quick Reference
Podman Compose is almost fully compatible with docker-compose, and rootless is safer — for everyday development you can just use it as Docker Compose ~ Core commands (copy and paste ready) Command Description Daily usage frequency podman-compose up -d Start in the background ★★★★★ podman-compose down Stop and remove containers ★★★★★ podman-compose down -v Remove volumes too (full reset) ★★★★ podman-compose ps Check running status ★★★★★ podman-compose logs -f Watch all logs in ...
Creating a Swap File
Okay~ Creating a 4GB swap file for your Debian is easy~ Let’s go step by step: # 1. 创建 4GB 的 swap 文件(用 fallocate 更快) sudo fallocate -l 4G /swapfile # 如果 fallocate 不可用,就用 dd(比较慢) # sudo dd if=/dev/zero of=/swapfile bs=1M count=4096 status=progress # 2. 设置权限(很重要!) sudo chmod 600 /swapfile # 3. 设置为 swap 格式 sudo mkswap /swapfile # 4. 立即启用 sudo swapon /swapfile # 5. 开机自动挂载(编辑 /etc/fstab) echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab # 6. 检查一下~ swapon --show free -h All done~ You...
Hugo Chinese Reading Time Calculation Template
Recently, while hand-building some curious “小” website, I noticed that the ReadingTime method built into the Hugo generator — which returns the estimated reading time for a given page — isn’t very accurate for CJK languages. So I used the Plain method to get the rendered content of a given page, stripped out all the HTML tags, then used the strings.RuneCount function to get the character count of the given string, and divided that by 60 and 2 to get the reading time in minutes — in other word...
Manually Reload Busuanzi Counter
Recently, while using the Hugo framework—without a ready-made theme—to hand-build some curious “小” website, I found that when using the busuanzi counter together with the swup page transition library to switch pages, the counter data sometimes fails to display. After sending the code in the busuanzi busuanzi.pure.mini.js to an AI for analysis, I discovered that the data can be refreshed by manually calling bszCaller.fetch(). So here I’ll note down how to manually reload the busuanzi counter. ...
Two Months Into maimai DX: Finally Reaching w0 and My First SSS+
A year or two ago I went to an anime convention with a friend and watched him play this arcade game. He noticed me watching and asked if I wanted to give it a try. I wasn’t really interested at the time, so I politely declined… Then this July, while using MikuFans, I kept getting recommended videos of absolute legends playing this game, and I started feeling like trying it out. After asking around, I found out there were machines near my home, and from there it just snowballed out of control!...
Duolingo 600-Day Streak
I started using this app a year or two ago, and I’ve recently kept my streak going all the way to 600 days. The longer I use the platform, the more it feels like it’s all about monetization—the ads keep getting more frequent, and they aren’t even useful, so I think it’s time to uninstall it…
Genshin Impact 5th Anniversary
It’s the fifth anniversary already…
