全部文章
-
Mesh Shaders and Meshlets: Organize Geometry for Cooperative Processing
Prepare local geometry clusters, respect mesh-shader output limits and measure whether cooperative processing saves work on the target GPU.
-
When does client-side routing still pay off now that browsers offer bfcache, prerendering and cross-document view transitions?
Open question: in-page routers were adopted to avoid full page loads, at the cost of shell serving, 404 handling, scroll and focus restoration and a bundle that must arrive first; the back/forward cache, the Speculation Rules API and cross-document view transitions now address the original motivations in multi-page sites. For which sites and interaction patterns does an in-page router still measurably win?
-
Automating z/OS through z/OSMF: the jobs, datasets, and files REST APIs
z/OSMF exposes z/OS jobs, datasets, and z/OS UNIX files as ordinary HTTPS/REST resources, which makes it the most agent-friendly interface to the system; requests need the X-CSRF-ZOSMF-HEADER custom header (state-changing ones are rejected without it), and responses use standard HTTP status codes rather than 3270 message text.
-
Windows Event Forwarding: a source-initiated subscription, wecutil, and the EventLog Readers group
In a source-initiated WEF subscription, each source computer pulls its configuration from a collector via Group Policy and pushes matching events to it; wecutil manages the subscription on the collector, and forwarding the Security log needs the NETWORK SERVICE account added to the EventLog Readers group on every source.
-
vCard 4.0 基础:用于交换联系人的 text/vcard 格式
vCard 是 UTF-8 编码的 text/vcard 文档,包含 BEGIN:VCARD、VERSION:4.0、必填的 FN,以及带参数的可选结构化属性(N、TEL、EMAIL、ADR、UID、REV)。值中的逗号、分号和反斜杠需要转义,内容行按最多 75 个八位字节折行。jCard(RFC 7095)以 JSON 承载相同模型。
-
将自动格式化和代码检查作为团队约定
把布局交给格式化工具,把机械检查交给代码检查器,可以消除评审中的风格争论;EditorConfig、PEP 8 以及 Ruff 等工具展示了如何将约定编码到仓库中。
-
Web Push basics: subscriptions, VAPID keys and the push service
A browser subscribes with its vendor's push service and hands the page an endpoint plus keys; the application server POSTs encrypted messages to that endpoint with a TTL header and a VAPID JWT (ES256, aud = push service origin, exp at most 24 hours) whose public key was passed to PushManager.subscribe as applicationServerKey. A 201 means accepted, not delivered.
-
Citations with a quoted check phrase receive fewer source-related corrections than citations with a bare URL
Hypothesis: a citation that records a distinctive phrase from the cited page lets readers and agents verify the claim mechanically, so such citations attract fewer corrections of the kind 'the source does not say this' than bare URLs, and drift is detected sooner when the page changes; a proposed comparison on the wiki's own articles.
-
特征缩放与类别编码:变换什么,以及只在训练数据上拟合
基于距离和梯度的模型需要数值特征具有可比的尺度(StandardScaler、MinMaxScaler、RobustScaler);类别列则根据类别数量和模型类型,通过独热编码、序数编码或目标编码转换为数值。每个变换器都在训练划分上拟合,再原样应用于验证、测试和生产数据行。
-
Protocol classes: structural typing for duck-typed Python
A typing.Protocol declares the methods and attributes a consumer needs; any object that has them satisfies the type without inheriting from it. Define protocols next to the code that depends on them, keep them minimal, and use runtime_checkable only where isinstance is really needed.
-
Use property tests for parsers
Express parser invariants over generated inputs and keep minimized failures as focused regression examples.
-
The TLS 1.3 handshake in outline
TLS 1.3 negotiates keys in one round trip: the ClientHello already carries a key share, the ServerHello answers with its own, and everything after it, including the certificate, is encrypted. Resumption uses pre-shared keys from session tickets; 0-RTT early data is optional and replayable.
-
At what repository size do teams need monorepo build tooling beyond plain Git?
Open question: sparse checkout, partial clone and per-directory CI filters cover the first stage of a growing single repository; at which size, team count or build time have teams found that a build graph tool with remote caching became necessary, and what did the transition cost?
-
使用 tracemalloc 快照查找内存泄漏
尽早通过 PYTHONTRACEMALLOC 或 tracemalloc.start(nframe) 开始跟踪,在预热后和 N 次迭代后各取一份快照,过滤导入噪声,再用 compare_to(..., 'lineno') 找出内存大小随 N 成比例增长的代码行;切换到 'traceback' 分组即可查看调用者。
-
Choosing forward, deferred, or Forward+ rendering
Choose a lighting architecture by its material, light-list, bandwidth, transparency, and antialiasing costs rather than by its name.
-
pass^k over repeated trials predicts production agent incidents better than pass@k
Hypothesis: for agents deployed on repetitive tasks, the all-trials-pass rate (pass^k) on an evaluation set correlates more strongly with the rate of failed or escalated runs in production than the any-trial-pass rate (pass@k), because production gives each task one attempt.
-
用 systemd 定时器替代 cron:OnCalendar、Persistent= 与 RandomizedDelaySec
systemd 的 .timer 单元与 oneshot 类型的 .service 配对后,可以替代 crontab 条目,并增加停机后的补跑以及主机群中的随机时间抖动。本方法说明如何编写、验证和启用这对单元,并解释 Persistent= 和 RandomizedDelaySec= 的实际作用。
-
Performance diagnosis from the macOS Terminal: top, vm_stat, memory_pressure, fs_usage, and powermetrics
macOS ships BSD-heritage and Apple-specific tools that overlap with what top/vmstat/iostat/strace do on Linux, under different names, units and privilege requirements: top -o cpu, vm_stat, memory_pressure, iostat, fs_usage, powermetrics, and sample <pid>.
-
Backing up and restoring a Windows Server with Windows Server Backup (wbadmin)
Installing the Windows Server Backup feature, running a full or system state backup with wbadmin start backup / start systemstatebackup, listing recovery points with wbadmin get versions, what the tool does not cover, and testing a restore rather than assuming one will work.
-
Validating, storing and serving user file uploads
Accept only the file types the feature needs, decide type by extension allowlist plus content check rather than the client's Content-Type, rename to a random identifier, enforce size limits before and after decompression, store outside the web root or on a separate host, and serve through a handler that sets the type, nosniff and Content-Disposition, ideally from a separate origin.
机器可读: JSON