Blog

JavaScript Array Undefined Items

This article discusses undefined items in JavaScript arrays, explaining the differences between explicitly undefined …

· 1 min
JavaScript

Inline JavaScript Event Binding

How to bind events with inline JavaScript, how it differs from React’s model, and practical tips for native usage.

· 1 min
JavaScript

MySQL Left Join Query Record Count

Clarifying a common misunderstanding about MySQL LEFT JOIN: why the result count isn't always the same as the left …

· 2 min
Database

Instant telegram notification if GitHub is Stared

Receive instant Telegram notifications when your GitHub project gets starred. Learn how to set up GitHub Actions for …

· 2 min
GitHubGitHub ActionsTelegramTelegram Bot

Share Surge Proxy Across the LAN

Two ways to let devices like smart TVs or Switch use your Surge proxy—manual Wi-Fi proxy and macOS DHCP gateway.

· 2 min
Network Tools

Nintendo Switch Game Purchase Strategy

This post summarizes my Nintendo Switch game purchase strategy and tips for saving money across regions.

· 2 min

Optimize Table Performance in Frontend

Using virtualized tables for large datasets (hundreds of rows), with notes on DOM complexity and profiling.

· 2 min
前端开发

2020 Year-End Review

Reflecting on 2021: Systematic fitness habits, milestones in open-source development, professional CI/CD improvements, …

· 3 min
Year Review

Difference Between yield and yield*

What yield and yield* do in generators, how they differ, and when to use each, with examples.

· 2 min
JavaScriptReact

Extend AxiosRequestConfig in TypeScript

Use declaration merging to add custom properties (e.g., loading flags) to AxiosRequestConfig without sacrificing type …

· 1 min
TypeScript

Frontend Storage Options

Browser storage choices (cookie, sessionStorage, localStorage, IndexedDB), differences, and when to use which.

· 2 min
Frontend Development

Implementing GIF Search with Alfred

This article introduces implementing GIF search with Alfred, including advantages of GIF search, implementation details, …

· 2 min
Productivity Tools

Jenkins Continuous Integration - Publishing New NPM Packages

This article provides an introduction to Jenkins continuous integration for publishing new NPM packages, including the …

· 2 min
Node.jsDeployment & Operations

Tools of the Year: 2020 Gear Review

A review of the essential hardware and software tools I added to my toolkit in 2020, featuring AirPods 2, ASUS …

· 4 min
Hardware

Third-Party Services Used by My Blog

An overview of third-party services powering my personal blog, with setup notes and brief impressions.

· 2 min
Personal Notes

Applying for a Wildcard Certificate

Apply a wildcard cert (e.g., *.1991421.cn) to cover many subdomains; notes on limits and Certbot steps.

· 3 min

Decrypting HTTPS with Surge

How to enable HTTPS decryption (MitM) in Surge on macOS and iOS, why it’s useful, and caveats.

· 3 min
Networking Tools

Frontend Basics — P2

Frontend fundamentals: MVC/MVP/MVVM, how browsers work, React Fiber, and how Redux triggers updates.

· 1 min
Frontend Development

Frontend Basics — P1

Notes from frontend interview questions to reinforce fundamentals: TCP handshake, number precision, storage, hoisting, …

· 4 min
Frontend Development

JSON vs XML Comparison

This article provides a comprehensive comparison between JSON and XML data formats, including their differences, use …

· 3 min
JSONXMLData Formats

What Are Git Snapshots

This article explains what Git snapshots are, how they are stored, and why they matter. These details help you …

· 3 min
Git

Encoding Pitfalls to Watch

Two web bugs traced to encoding: URL fragments in the URL API and window.btoa choking on non-ASCII.

· 1 min
JavaScript

How to Use Touch ID and Apple Watch for sudo Authorization in Terminal (Step-by-Step Guide)

This article introduces how to use Touch ID and Apple Watch for sudo authorization in terminal, including use cases, …

· 2 min
Mac

Web Performance: Reduce Re-Renders

Reducing unnecessary renders in SPA apps with React (and similar frameworks), including strategies, pitfalls, and …

· 2 min
React

JIT vs AOT

This article provides a comparison between JIT (Just-In-Time) and AOT (Ahead-Of-Time) compilation, including their …

· 2 min
JavaScriptCompilation