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9rykZxzqD8+0DdbGS3M4KJ4PTJyfDzsXw81U8URP8R1LAcPWn20Ou1l3kxxANHlUIILTXZ4/MVI0xUhFVl0a5EvT484GBVm14V+9awSSOeE/4zHCsmQeRw8Eq5LjOw67mJ0me+oJYUUBIqD3KNFctcLnahHSZTejDOgCFx1jki2tA+2h6o4ul
autumn/02
- Deep Time: From Fish to Human — Notes After the Exhibition
- Shanghai Natural History MuseumShanghai Natural History Museum on National Day: giant rhinos, a curious lion, familiar experiments, and fossils I only understood after reading more.ShangHai9 min
summer/10
- Two Days in Anshun: Huangguoshu and Longgong
- Evaluation Timing of Set Comprehensions vs. Generator Expressions in PythonPython set comprehensions evaluate immediately; generator expressions are lazy and bind only the outer iterator. Examples show why results diverge after the list changes.Python3 min
- Notes From Qingcheng Back Mountain
- Wangjiang Pavilion, Remembered
- From Qingyang Palace to Baihuatan, Part 2: Inside the Park
- From Qingyang Palace to Baihuatan, Part 1: A Chengdu Riverside Afternoon and Local Lore
- Huanhua Creek Notes: Sichuan Museum and Du Fu Thatched Cottage
- Let Carapace Handle Nushell External Completions
- Migrating From instant.page to the Speculation Rules APIMigrating from instant.page to the browser-native Speculation Rules API, with notes on prefetch, prerender, side effects, and Swup/PJAX conflicts.HexoPerformanceWebSwup8 min
- Two Days at Dujiangyan and Mount Qingcheng
spring/13
- Notes on Adding I18n to a Hexo BlogDesign notes on Hexo i18n — filename conventions for language detection, a permalink filter for path-prefix routing, per-language generators, hreflang, and a language switcher.Hexo5 min
- ColophonHow this site is made: writing workflow, design principles, typography and color, and the build-and-deploy stack.Blog5 min
- Way to Minimalism, Part 1: Meta BarA blog minimalism experiment starting from the article meta bar, tucking fonts, line height, post info, and comments into lighter UI for a quieter page.UIUX5 min
- Writing a UESTC Graduation Thesis in Typst: Feasibility Check and Pitfalls
- Troubleshooting EdgeOne Pages 404s on Chinese Paths and Migrating Around ThemA practical log of diagnosing EdgeOne Pages 404s on Chinese paths, migrating URLs, adding redirects, and preserving wiki links and comments.Blog6 min
- Adding Hot Reload to HexoA lightweight script that makes the Hexo dev server auto-refresh the browser whenever you save a post.BlogHexoJavaScriptWorkflow5 min
- Spring Day at the Chengdu Botanical Garden
- Death Stranding 2 Notes
- Chengdu Natural History Museum
- Use Symlinks to Keep LLM Configuration Files in Sync
- Langya Terrace Travel Notes
- Use Gum in Nushell Scripts for Better UIUX
- Sea World & Panda Base
winter/16
- Beneath the Wheel
- Zhushan Xiugu Travel Notes: A Famous Mountain by the Sea
- Karabiner Breakage on macOS 26.4 Beta 1 and a Temporary WorkaroundAfter macOS 26.4 beta tightened HID permissions, Karabiner-Elements keyboard remapping broke. hidutil plus LaunchAgent is a temporary workaround.macOS3 min
- Write Your Components With Custom Elements API
- Type Less With Code SnippetsDevelopers often face repetitive coding patterns, ranging from standard if/for structures to Go's error handling or HTML boilerplates. This redundancy is inefficient and error-prone. Snippets offer the optimal solution. When you type a short prefix (e.g., if, for), your IDE suggests a completion item that can be expanded into a predefined code template.VSCodeWorkflowMarkdownNeovim3 min
- UI/UX Terminology
- Consolidate Your Project Commands With Just
- Exploring Progressive Image Loading Techniques
- Job Control in NushellThe Job Control chapter of Effective Shell covers task control in Bash. This post shows how the same ideas work in Nushell.ShellWorkflowNushellAsynchronous5 min
- HTML Table Overflow IssuesA simple CSS technique to keep HTML tables within their containers by controlling table layout and text wrapping.CSSJavaScriptUIUX4 min
- Fix Clickable Hyperlinks in Tmux With Ghostty
- A Practical Guide to OpenCode
- Blog Changes in 2025
- Web Log. 2026
- PostBuild With ESBuild & Minify-HTMLAdd a PostBuild step to your static site CI for image compression and CSS/JS minification. This post covers writing a PostBuild script with ESBuild & minify-html.PerformanceFrontEndCICD10 min
- Streamline Package Development With Bun LinkUse bun link to debug local libraries and blog themes without repeatedly publishing and reinstalling packages.Bun1 min
autumn/12
- Optimize Shiki's HTML Output With styleToClass TransformerUse Shiki's styleToClass transformer to move inline styles into reusable CSS classes and reduce highlighted HTML size.PerformanceCSSCatppuccinShiki4 min
- Inline Code Highlighting With Markdown-It & Shiki
- Multi-Theme Blog Design in Hexo: Theme Switching With CSS Variables and the :Where SelectorHow to manage multiple blog themes with CSS variables and the :where selector, including Shiki syntax highlighting theme switching and a FOUC fix.BlogHexoCSSWebRicingCatppuccinJavaScriptShikiTheme7 min
- Fix Markdown Footnote Jump Overlap With CSS Scroll-Margin-Top
- Enable Autocompletion for Lua API With Stub FilesConfigure IDEs to recognize Sketchybar module types for Lua autocompletion in VS Code, Neovim, and JetBrains IDEs.VSCodeLuaSketchybarLSPNeovim2 min
- Configuring Music Player Daemon (MPD) and Clients on macOS
- Nushell - Cross-Platform
- Hexo Site Performance Optimization Notes
- Tmux Floating Panes: Temporary Tasks Without Context Switching
- VSCode Status Bar RicingCustomize the VS Code status bar with custom CSS, fonts, item ordering, Vim mode colors, and replacement problem icons.CSSVSCodeRicingCatppuccinVim4 min
- Blog & OSS CDN Traffic Splitting Between Mainland China and Overseas
- NuShell FFMpeg Utils
summer/17
- Shell Inline Editing & Vim/Emacs Keybindings
- Shiki Code Highlighting Test
- Set System Env-Vars in UNIX
- Understanding HTTPS: Encryption, Certificates, and TLS
- Understanding Responsive Images: From Pixels to DPR
- I Switched From Fzf to Television: Declarative Channels for Cross-Shell Fuzzy FindingA cross-shell fuzzy finder that replaces manual file navigation with intelligent shortcuts. Here's how it works and why it might replace your current setup.TerminalShellProductivityWorkflowTUI8 min
- IO Multiplexing
- Jinji Lake, Suzhou
- Lingering Garden, Suzhou
- Making Web Fast —— LCP Optimization🤖 Optimize LCP with preload, fetchpriority, responsive images and srcset. Covers Sharp image processing, CI/CD automation, and preload hints for better Core Web Vitals.BlogHexoPerformanceWebBrowserIcarusResponsivesrcsetLCP9 min
- VSCode VIM Part I - EasyMotionLearn how to enhance VSCode text navigation by setting up EasyMotion with the VSCode Vim extension and LazyVim-like keybindings.VSCodeCatppuccinVim3 min
- Clean Disk Space in Ubuntu
- Network IO Models
- Understanding Python's GIL: The Problems It Solves and the Limits It ImposesThe GIL is not just why Python threads can't use multiple cores. It is CPython's engineering trade-off among refcounting, the object model, and C extensions.ThreadConcurrencyPythonGILAtomicity9 min
- GoWallConvert wallpapers to specific color schemes such as Catppuccin or Nord with GoWall, and wrap the common command in a small script.CLIRicingCatppuccinWallpaper3 min
- Decorator @Cached_property
- Fixing the 403 Forbidden Error From Keycloak's UserInfo Endpoint🤖 Keycloak's UserInfo endpoint returns 403 Forbidden when the Access Token lacks the `openid` scope. Notes on debugging the error through mozilla_django_oidc logs and fixing it by requesting the token with the right scope.JWTAuthorizationAuthentication4 min
spring/13
- Linux File System Architecture Introduction
- Set Git Proxy
- Learn Git Data Structure Design
- Programming Languages Cheat SheetA quick reference for data structures, basic syntax, and essential APIs in Lua, JavaScript, Go, Python, and Java.PythonJavaJavaScriptLuaGo27 min
- Night Tour of the Master of the Nets Garden, Suzhou
- Spotify Ricing(Spicetify)🤖 Transform your Spotify client with custom themes and extensions using Spicetify. This guide walks you through installing Spicetify CLI and Marketplace on Windows, Linux, and MacOS, helping you personalize your music streaming experience with beautiful themes and powerful add-ons. Elevate your desktop aesthetics with minimal effort!CSSRicingCatppuccinSpotifySpicetify12 min
- Edge for Android Workspace Sync & Ad BlockingCompare Edge, Chrome, and Vivaldi on Android, then configure Edge ad blocking, workspace sync, and useful flags for mobile browsing.Browser3 min
- Humble Administrator's GardenThus I observe the measure of contentment, forsaking ambitions like drifting clouds, building a house and planting trees, free and self-possessed. The ponds suffice for fishing, the harvested grain for farming. Watering the garden and selling vegetables provides for daily meals; tending sheep and brewing cheese awaits the seasons' needs. Filial in devotion, brotherly in bonds — this too is the governance of the unskilled.EssaySuZhou3 min
- Tiger Hill
- Use Docker and SSH to Work Around Old Ubuntu Dev Environment Compatibility Issues
- Python Data Structures Cheat Sheet
- Installing FastFetch on Ubuntu 18
- How to Install VSCode Extensions Offline: Downloading and Installing VSIX Files
winter/09
- Use Medium-Zoom in Hexo Blog
- Nushell Command Completion Guide
- Xiaohongshu Spring Festival Temple Fair - Yiyi Ruyi New Year's EveXiaohongshu temple fair; collect Spring Festival Shu stickers and redeem a Spring Festival Little Red BoxEssay1 min
- Dotfile Manager - Dotbot
- VS Code DevContainer
- UESTC to Momenta
- VSCode RicingCustomize VS Code with Custom CSS and Animations, including themes, fonts, status bar styling, borders, and command palette layout.CSSFontVSCodeRicingCatppuccin2 min
- Internet Checksum
- Decorators Pattern in Python
autumn/12
- Music Player for Windows and AndroidNotes on local music players, MP3 tag editing, lyric matching, and syncing a music library across Windows and Android.AndroidMusicWindowsCyberPunkEntertainment4 min
- Theory Notes on Generic Programming
- Windows 11 Start Menu Widgets (Phone Link)
- Python Dev Environment and Toolchain: VSCode, UV, Ruff
- The Proxy Pattern in JavaThe proxy pattern lets one object stand in for another, controlling access to it and adding features like logging, access control, lazy loading, or monitoring without touching the target's core logic.JavaReflectionSpring12 min
- Personalization for Terminal, Shell & PromptGood tools make good work. My personal setup for terminal, shell, and prompt, plus a list of handy CLI and TUI tools, for reference.TerminalProductivityWindowsWorkflowNushell5 min
- Web Authentication & AuthorizationFrom cookies to JWT: how the web works around HTTP's statelessness, and the trade-offs each step inherits.WebAuthorizationAuthentication14 min
- Java Priority Queue
- Personalization for Mobile Phones
- Blog Performance Optimization NotesOptimizations adopted while maintaining this site, from image compression to lazy loading and CDN.BlogHexoPerformanceWeb4 min
- Configuring a Clash Proxy for OneDrive Business
- Black Myth: Wukong
summer/13
- Tangdao Bay & May Fourth Square
- A Visit to Qingdao's New Zhanqiao and Deep Blue Light
- Add Diana/Ava Live2D Models to Hexo Icarus
- Tomcat
- Http Protocol
- Apache MyBatis
- Apache Maven
- Linux Network NamespaceHands-on with Linux network namespaces, from ip link, ARP, and route basics to connecting namespaces with veth pairs and a Linux bridge.Linux14 min
- Tang Duo Ling: Reeds Fill the River IsletI wanted to buy cassia flowers and bring wine aboard, but it is no longer like youth.Literature2 min
- Handscroll of the Humble Abode
- Shell Programming
- Death Stranding Gallery
- Unix/Linux OS Introduction
spring/22
- Scoop HandbookScoop is a command-line installer for Windows. This note covers directory structure, installation, common commands, updates, cleanup, and buckets.ProductivityMicrosoftWindows4 min
- Move WSL to Another Drive
- File SystemFile system basics, directory management with FCBs and inodes, file sharing via hard and symbolic links, physical file structures, and free space management.OS33 min
- I/O SystemI/O controllers, channels, and control modes (polling, interrupt, DMA); device data structures; disk scheduling (FCFS, SSTF, SCAN, CSCAN); buffering.OS29 min
- Understanding Git Reset and RevertLearn how git reset and git revert undo commits, move HEAD, affect the staging area and working tree, and preserve or rewrite history.Git5 min
- ChⅥ Database Application ProgrammingNotes on database application programming; ODBC/JDBC connectivity, the Java Web persistence layer, PL/pgSQL functions and stored procedures, triggers, and cursors.DataBase13 min
- Git Rebase, Squash, and HistoryMerge, edit, and clean up commit history with git rebase -i, plus a look at the experimental git history command added in Git 2.54.Git6 min
- Ch4 - Database Design and ImplementationDatabase design process and strategies, E-R model elements, entity relationship types, weak entities, CDM/LDM/PDM design, functional dependencies, normal forms, denormalization, and SQL implementation with Power Designer.DataBase11 min
- The Dead LockCauses and necessary conditions of deadlock, plus prevention, avoidance, detection, and recovery, including the Banker's Algorithm.OS16 min
- The Processor Scheduling
- Process Scheduling in OSNotes on process scheduling triggers, evaluation metrics, and common algorithms such as FCFS, SJF, RR, MLFQ, EDF, and LLF.OSProcessThreadConcurrencyParallelism4 min
- Ch3 - Database Operations With SQLSQL statement types and data types; DDL for databases, tables, and indexes; DML for insert, update, delete; DQL with sorting, grouping, subqueries, joins; and views.DataBase6 min
- Reflection in JavaHow Java reflection works, how to obtain Class objects, create instances, invoke methods, and read annotations at runtime, plus its performance trade-offs.JavaReflection7 min
- ThreadThreads as the basic unit of scheduling, thread control, synchronization with mutexes, condition variables, and semaphores, and ULT vs KLT.OSThreadConcurrency8 min
- Inter Process Communication
- Concurrency & Parallelism Etc.Notes on concurrency, parallelism, CPU cores, hardware threads, processes, and threads in operating systems.OSProcessThreadConcurrencyParallelism2 min
- Linux CommandsNotes on common Linux commands, shortcuts, and plugins, plus recommended terminals and shells.Linux7 min
- ProcessSync
- Ch2 - the Relational Model of DatabasesRelational model, relation tables, primary keys, foreign keys, compound keys, entity integrity, and referential integrity.DataBase5 min
- Git for Android
- Process Description and ControlOS process management: precedence graphs and program execution, process description, and process control.OS11 min
- Process & Thread
winter/16
- Introduction to Operating Systems
- Glossary for Database
- Java Stream
- Functional InterfaceSingle Abstract Method Interfaces are Java functional interfaces. This post explains how to create and use them with lambdas and references.Java3 min
- Two Poems From the Book of Songs, Airs of Bei"The New Terrace" mocks Duke Xuan of Wei for seizing his son's bride; "Two Sons Board the Boat" mourns brothers who died for each other.Literature7 min
- Evaluation Strategies in Programming LanguagesJava is neither pure pass-by-value nor pass-by-reference. The answer hides in a term most discussions miss: call-by-sharing.JavaProgramming7 min
- Java HashtableA hash table looks up data in O(1) time. This post walks through hash tables in the Java ecosystem: the data structure, the put process, and thread safety.JavaAlgorithmCollection8 min
- Music Easter Eggs in Cyberpunk 2077
- Database Basics — Functions & Constraints
- Using tasks.jsonA brief note on using VS Code tasks.json to compile, run, package, and automate common project tasks.ProductivityVSCode3 min
- Six Poems Written Passing Songyuan While Cooking Breakfast at Qigong Inn
- Database Basics_Core Concepts & SQL Syntax
- VS Code ExtensionsA personal list of VS Code extensions for editing, Markdown, formatting, Git, web development, utilities, and drawing.VSCode2 min
- Letter From Olgierd Von Everec
- Setting Up a C/C++ Debug Environment in VSCode
- Configuring a GitHub Image Bed With PicGo (Typora & vs Code)
autumn/04
- Java SE Generics
- Lab: Ratex PreviewThis page verifies Ratex rendering for inline formulas, displayed equations, matrices, cases, and integrals.Lab1 min
- Lab: Flavoured Markdown & HTML Element Preview
- Lab: Custom Components Preview
summer/02
- Lab: Markdown Preview
- ChangeLogTracking the changes of this blog themeBlog