全部文章
-
Setting locale, timezone and reconfiguring packages non-interactively on Debian and Ubuntu
localectl, timedatectl and update-locale change locale and timezone without a text-mode dialog, and dpkg-reconfigure -f noninteractive re-runs a package's debconf-driven setup the same way a script would run the original install, both usable in provisioning scripts with no terminal attached.
-
本地数据库的种子数据与固定数据集:小规模、幂等,并与模式一同版本化
区分所有环境都需要的参考数据、开发和演示用的示例数据,以及由测试创建的测试数据。将种子脚本写成基于自然键执行 upsert 的幂等代码,保持示例集小而有名,在安装脚本和 CI 中都于迁移后运行,绝不直接用未经处理的生产数据填充开发机。
-
跟踪事后复盘行动项直至关闭:跟踪工单、单一负责人和按存续时间复查
《Site Reliability Workbook》提醒,没有正式跟踪流程,事后复盘中的行动项常会被遗忘。为每项建立跟踪工单,指定一名负责人、类型和优先级,定期按存续时间检查未完成项,并将逾期项视为需要作出的决策,而非可以跳过的一行。
-
How can a household water-use observation be reproduced?
Open request for a bounded observation protocol, without claims about water savings.
-
Verteiltes Tracing in Umrissen: Spans, Eltern-Kennungen und W3C Trace Context
Ein Trace ist ein Baum aus Spans, jeder mit Trace-Kennung, eigener Span-Kennung, Eltern-Span-Kennung, Zeitstempeln, Attributen und Status; der W3C-Header traceparent trägt Trace-Kennung, Eltern-Kennung und ein Sampled-Flag über Prozessgrenzen, und ein Dienst, der beide Header nur weiterreicht, hält Traces trotzdem zusammen.
-
Unity URP render graph passes: declare dependencies before drawing
Design custom URP passes around explicit inputs and outputs, and migrate older passes against the documentation for the installed engine and package.
-
语言标签:内容和 API 中的 BCP 47
语言标签将 ISO 639 语言代码与可选的文字体系和地区子标签组合起来,例如 de、de-CH、zh-Hant。应将其用于内容语言声明、HTML lang 属性和 API 筛选,并验证标签,而不是接受任意文本。
-
Unreal Gameplay Ability System: activation, effects and commitment
Separate ability execution from attribute changes and presentation, then define when costs, cooldowns and cancellation take effect.
-
在 PostgreSQL 中设计仅追加的时间序列表
将测量值存入按时间范围分区的表,使用 timestamptz、由序列与时间组成的复合键,以及匹配查询方式的索引:单序列查询使用 B-tree,全表时间扫描使用 BRIN。保留期通过分离并删除分区实现,而不是 DELETE。这些选择源于数据按时间顺序到达,并按完整时间片移除。
-
Cancellation and deadlines in Go with context.Context
Thread a context.Context from the incoming request through every call that can block, derive child contexts with WithTimeout or WithCancel, always call the cancel function, and check ctx.Done() in loops so that a client disconnect or a deadline stops the whole tree of goroutines instead of leaving them running.
-
Stripe API pagination and idempotency keys: starting_after, has_more and the 24-hour window
Stripe's v1 list endpoints paginate with the mutually exclusive starting_after/ending_before cursor parameters (limit 1-100, default 10) and a has_more flag, with client-library auto-pagination helpers to walk every page; POST requests can carry an Idempotency-Key whose saved result Stripe replays for about 24 hours, after which keys may be pruned. Rate-limited requests get 429 with a Stripe-Rate-Limited-Reason header.
-
使用生成输入进行基于属性的测试
基于属性的测试不依赖手工挑选的示例,而是声明一个不变条件,让库生成大量输入,并将失败案例缩减为最小反例。Hypothesis 是 Python 中这一方法的参考实现。
-
为制造商准备 CRA 漏洞处理流程:接收、证据与报告计时
本文提出一套准备流程,将漏洞接收和组件记录与 CRA 报告决策衔接起来。该流程区分了已于 2026 年适用的报告义务,以及将于 2027 年 12 月适用的更广泛漏洞处理要求。
-
Diagnosing 'No space left on device' when df shows free space
ENOSPC has three common causes besides a full disk: exhausted inodes, space held by deleted files that a process still has open, and the reserved-blocks percentage on ext filesystems. Check df -i, lsof +L1 and the mount's reservation before deleting anything.
-
Wave Function Collapse: local constraints and global playability
Generate tile arrangements through domain reduction and weighted choices, handle contradictions explicitly, and validate gameplay properties beyond local adjacency.
-
Agile principles as concrete working agreements
The twelve principles behind the Agile Manifesto become useful when translated into checkable team agreements: delivery cadence, direct communication, sustainable pace, technical excellence and regular reflection.
-
主机上的 cgroups v2:检查模式并读取各单元的资源限制
现代容器运行时和 systemd 都依赖 cgroups v2(统一层级)实施内存和 CPU 限制。本文方法涵盖确认主机处于统一模式、使用 systemd-cgls/systemd-cgtop 浏览树,以及读取单元或容器的实际限制。
-
Sampling Windows Server performance counters with Get-Counter and exporting them to CSV
Get-Counter samples named counter paths at a chosen interval, continuously or for a fixed count; Export-Counter (Windows PowerShell 5.1 only) preserves every field in the native BLG format, and relog converts a capture to CSV afterwards even without the original Export-Counter command.
-
Custom 404 pages and soft 404s: serve the error page with the error status
A custom 404 page helps users only if it is served with status 404; a not-found page served with 200 is a soft 404 that crawlers keep fetching and search engines exclude. nginx's error_page can rewrite the status (error_page 404 =200 ...), which is exactly how soft 404s are created by accident; keep the status, make the page useful, and check with curl -I.
-
Dry-run and confirmation in admin scripts: PowerShell -WhatIf/-Confirm and a shell --dry-run flag
PowerShell has a built-in mechanism, SupportsShouldProcess, that gives a custom function real -WhatIf and -Confirm switches wired to the same $PSCmdlet.ShouldProcess() call the built-in cmdlets use. Shell scripts have no equivalent built in, so a --dry-run flag has to be threaded through by hand.
机器可读: JSON