全部文章
-
存活检查与就绪检查
存活检查回答进程是否应重启,就绪检查回答它是否应接收流量。混淆两者会导致重启循环,或将流量发给无法提供服务的实例。
-
A garden rain gauge log: gauge type, rim height, exposure and a fixed daily reading time
A proposed protocol for a household rainfall record modelled on how official storage gauges are read: state the gauge type and orifice, the rim height and the surrounding obstructions, read once a day at a fixed clock time to the gauge's resolution, record a trace and an empty gauge explicitly, and keep snow and blocked-funnel days as flagged rows; no rainfall figure is claimed.
-
TLS for rsyslog forwarding with the gtls driver, and when RELP is worth adding
rsyslog's gtls network stream driver encrypts and can mutually authenticate a forwarding connection with X.509 certificates, configured with StreamDriverAuthMode. Plain TLS over TCP still loses in-flight messages on an unclean disconnect; RELP's application-level acknowledgement is what closes that gap, at the cost of extra moving parts.
-
设计 URL 并应用百分号编码规则
选择 URL 结构的流程包括小写连字符分段、稳定标识符、唯一规范形式以及不在 URL 中放置秘密,并按 RFC 3986 正确编码:仅在保留字符会充当分隔符时编码它们,不编码非保留字符,只编码和解码一次,使用大写十六进制数字,并牢记按照 WHATWG URL 标准,+ 仅在 application/x-www-form-urlencoded 查询字符串中表示空格。
-
Save-game schema migration and recoverable writes
Version persistent game data, migrate old representations explicitly, validate before restoring the world, and commit updates without destroying the last usable save.
-
有界 zlib 解压:在解码期间落实累计输出预算
限制多次调用总共产生的字节数,并区分不完整的流、未消耗的输入和尾随数据。
-
Setting up a Samba file server: smb.conf, testparm, and disabling SMB1
Standing up a Samba share means editing [global] and a share section in smb.conf, choosing between a local smbpasswd database and Active Directory membership, validating the file with testparm before reloading, and confirming SMB1 stays off.
-
评审前整理分支
请求评审前,将修正提交合并到原提交,拆分混杂的提交,并重写提交说明,使每个提交都成为一项可独立评审的变更;git rebase -i 和 autosquash 负责机械操作部分。
-
details and summary: native disclosure widgets, exclusive accordions and hidden until-found
details/summary is a disclosure widget with no script: the open attribute shows the content, a shared name attribute makes a group exclusive so opening one closes the others, the toggle event reports changes, and summary is styled as display: list-item. For collapsed content that must stay searchable, hidden=until-found reveals it on find-in-page or fragment navigation.
-
配置 kdump,捕获 RHEL 内核崩溃
kdump 预先保留内存,让第二个最小内核能在内核崩溃后启动,并写出 vmcore 供分析。本方法介绍保留内存、启用服务,以及为何主动测试会使主机停机,因此需相应安排测试。
-
Check digits: what Luhn, ISBN-13 and IBAN mod-97 catch and what they do not
A check digit is redundancy computed from an identifier's other characters so that a copying error is detected before a lookup: Luhn (mod 10 over alternately doubled digits) guards card numbers, ISBN-13 uses alternating weights 1 and 3, and IBAN uses ISO/IEC 7064 MOD 97-10 with two digits. They catch single-character errors and most adjacent transpositions, never a wrong-but-valid identifier.
-
事故状态更新:模板与发布节奏
事故期间,由一人负责沟通,按固定时间表使用模板发布更新:状态、用户可见的影响、已知情况、正在采取的措施,以及下次更新时间。即使没有变化,也要准时发布。
-
Making tangent-space normal maps agree with the renderer
Diagnose normal-map seams by checking encoding, tangent handedness, mesh triangulation, and agreement between baking and runtime transforms.
-
电子邮件的 MIME 结构:multipart/alternative、纯文本部分和编码
文本加 HTML 的邮件使用 multipart/alternative,各部分从最简单到最丰富排序(text/plain 在前,text/html 在后);含非 ASCII 字节的正文使用 quoted-printable 或 base64,标头使用 RFC 2047 编码词。应从与 HTML 相同的数据生成文本部分,转义变量,并遵守行长度限制。
-
MCP 文件写入路径穿越:笔记库目录限制与 Ansible Lightspeed 的影响范围
间接提示注入可能诱导文件工具将内容写入预定输出目录之外。notebook MCP 的修复需要显式设置笔记库根目录,而 Ansible Lightspeed 公告确认了扩展中的问题,却未给出经确认的修复版本范围。
-
熔断器:在依赖不可用或缓慢时快速失败
熔断器统计对依赖的失败调用和慢调用;超过阈值后断开,立即拒绝调用,然后进入半开状态,让少量试探调用通过,再重新闭合。它保护调用方的线程,并给依赖恢复的空间,但前提是采用合理的统计窗口、回退方案,以及底层调用超时。
-
File paths with pathlib
pathlib.Path represents paths as objects with joining, parts, suffix handling and I/O helpers, avoiding string concatenation bugs; resolve() and relative_to() make path containment checks explicit.
-
分布式团队的异步沟通规范
书面规范说明各类消息使用哪个渠道、预期多久回复、什么算紧急,以及在哪里记录结果。消息本身先说明请求,带上背景,并提供足够完整的信息,使另一时区的读者无需追问就能行动。
-
MCP 2026-07-28 授权:签发方检查与客户端注册的变化
此修订版加强了对授权响应签发方的验证,将已存储的注册凭据绑定到其签发方,并弃用了动态客户端注册。上一修订版就已推荐使用客户端 ID 元数据文档。
-
For engineers new to Rust, build wait time overtakes borrow-checker errors as the main logged friction within the first two months
Hypothesis: borrow-checker errors dominate the friction that engineers new to Rust record in their first weeks, but their share falls quickly, while entries about waiting for builds (despite cargo check, which the Cargo documentation describes as skipping code generation and therefore being faster than cargo build) rise and become the largest category within two months; a proposed friction-log test, with no result claimed.
机器可读: JSON