归档
按时间查看所有文章。
让 AI 写代码前,先完成研究与计划
梳理研究、计划、文档批注和实施反馈的 AI 辅助开发流程,说明如何保留证据、控制改动范围并验证自己的理解。
用一个 C 小程序,看懂补码、字节序和浮点数
从 BitView 的整数、字节和 IEEE 754 字段输出出发,解释负数的补码、小端存储、0.1 的表示误差,以及安全观察 C 对象内存的方法。
隐藏页面还不够:交付配置与账号权限如何共同生效
用虚构订单系统说明交付配置、账号权限与数据范围的职责,梳理页面装配、指标依赖、分享访问和验证矩阵。
Go 并发结果为什么每次不同:从共享计数到竞态检测
从字母计数与余额增减两个例子说明 Go 的共享数据竞争,区分 WaitGroup 等待与 Mutex 互斥,并介绍 race 检测。
OAuth 回调遇到 hash 路由:参数为什么读不到?
用示例 URL 区分 OAuth 回调的 query 与 Vue hash 路由参数,说明初始化前的兼容处理、普通回调入口,以及授权码和 state 的处理边界。
PostgreSQL 导入数据后,自增主键为什么冲突?
解释 PostgreSQL 手动导入 ID 后的序列错位,比较 ALTER SEQUENCE RESTART 与 setval,并说明空表、并发与回滚边界。
连续调用三次 setState,为什么只加了一次?
用计数器说明 React state 的渲染快照、更新队列与批处理,以及函数式更新为什么能连续累加。
任务系统里的时间:绝对时刻、当地时间与“全天”
从会议、当地时间提醒和全天任务出发,区分时间语义,讨论 UTC 存储、时区标识、日历查询与待验证边界。
AstroPaper 6.0
AstroPaper v6: a from-scratch rewrite on Astro v6, Tailwind v4, and a new config system.
AstroPaper 5.0
AstroPaper v5: keep the clean look, updates under the hood.
How to add LaTeX Equations in Astro blog posts
更新于:Learn how to add LaTeX equations in Astro blog posts using Markdown, KaTeX, and remark/rehype plugins.
How to integrate Giscus comments into AstroPaper
更新于:Comment function on a static blog hosted on GitHub Pages with Giscus.
AstroPaper 4.0
AstroPaper v4: ensuring a smoother and more feature-rich blogging experience.
How to use Git Hooks to set Created and Modified Dates
更新于:How to use Git Hooks to set your Created and Modified Dates on AstroPaper
AstroPaper 3.0
AstroPaper Version 3: Elevating Your Web Experience with Astro v3 and Seamless View Transitions
How to update dependencies of AstroPaper
How to update project dependencies and AstroPaper template.
AstroPaper 2.0
AstroPaper with the enhancements of Astro v2. Type-safe markdown contents, bug fixes and better dev experience etc.
Dynamic OG image generation in AstroPaper blog posts
更新于:New feature in AstroPaper v1.4.0, introducing dynamic OG image generation for blog posts.
Predefined color schemes
更新于:Some of the well-crafted, updated predefined color schemes for AstroPaper.
Customizing AstroPaper theme color schemes
更新于:How you can enable/disable light & dark mode; and customize color schemes of AstroPaper theme.
Adding new posts in AstroPaper theme
更新于:Some rules & recommendations for creating or adding new posts using AstroPaper theme.
How to configure AstroPaper theme
更新于:How you can make AstroPaper theme absolutely yours.
Tailwind Typography Plugin
EXAMPLE POST: About Tailwind Typography Plugin and how you can use it effectively.
How Do I Develop My Terminal Portfolio Website with React
EXAMPLE POST: Developing a terminal-like website using ReactJS, TypeScript and Styled-Components. Includes features like autocomplete, multiple themes, command hints etc.
How Do I Develop My Portfolio Website & Blog
EXAMPLE POST: My experience about developing my first portfolio website and a blog using NextJS and a headless CMS.