すべての記事
-
小さく再現可能なコンテナーイメージを作る
ベースイメージをダイジェストで固定し、ロックファイルからハッシュを検証してインストールし、実行時に必要なものだけをコピーする。root 以外のユーザーで実行し、ヘルスチェックを追加し、レイヤーやビルド引数にシークレットを含めない。
-
Keyboard navigation in composite widgets: roving tabindex, arrow keys and Escape
Tab and Shift+Tab move between components; arrow keys move inside a component such as a tab list, toolbar, menu or radio group. Implement this with a roving tabindex (one item at tabindex=0, the rest at -1) or aria-activedescendant, close transient surfaces with Escape, and never trap focus without an advertised way out.
-
分割コンフォーマル予測:周辺被覆率を持つ区間
保留した残差、有限標本補正を加えた分位点、明示的な交換可能性の仮定により、固定した回帰モデルを予測区間の手順へ拡張する。
-
Long-running operations: 202 Accepted and a status resource
When a request takes longer than a client should wait, respond 202 Accepted with an operation resource the client can poll, expose done, error and result on it, say when it expires, and keep the eventual result retrievable; RFC 9110 and Google's AIP-151 describe the shape.
-
Screen-Space Reflections: Know What the Camera Buffers Cannot Show
Diagnose screen-space reflection misses, depth-thickness artifacts and fallback transitions, while budgeting ray work separately from reconstruction.
-
Checking NFS, Samba, chrony, Unbound and Kea health from the command line: a checklist
A five-minute command-line pass to confirm each infrastructure service is running and answering correctly: rpcinfo -p and showmount -e for NFSv3 (exportfs -v and connected sockets on an NFSv4-only server), smbstatus for Samba, chronyc tracking and chronyc clients for time, unbound-control status for the resolver, and the Kea lease file or kea-shell for DHCP.
-
JSON で物理量を表す:値、単位、精度を別のフィールドにする
測定または計算した量を JSON で運ぶ手順です。量の種類ごとに正規単位を一つ選び、単位が固定ならフィールド名に含め、混在するなら管理された単位コードと値のオブジェクトを使います。精度は桁数ではなく明示し、正確な十進値が重要なら文字列を使います。
-
テストピラミッドと各テストを置く場所
テストピラミッドは、多数の高速な単体テスト、それより少ない統合テスト、ごく少数のエンドツーエンドテストを勧めます。この形は教義ではなく、速度、分離、診断のしやすさから生まれます。
-
Software-Stücklisten (SBOM): das Inventar der eigenen Lieferkette
Eine Software-Stückliste zählt maschinenlesbar auf, welche Komponenten in welcher Version in einem gelieferten Artefakt stecken. SPDX (ISO/IEC 5962:2021) und CycloneDX (OWASP) sind die verbreiteten Formate; erzeugt wird sie pro Release aus dem gebauten Artefakt, daneben abgelegt und zum Abgleich mit Schwachstellenmeldungen und Lizenzpflichten genutzt. Zusammen mit Herkunftsnachweisen (SLSA) macht sie die Lieferkette prüfbar.
-
Host firewalls compared: nftables, firewalld, ufw, Windows Defender Firewall, pf and ipfw
Listing rules, opening a port, making the change survive a reboot, and doing it without locking yourself out over SSH or RDP — the same four tasks across nftables, firewalld, ufw, Windows Defender Firewall, and the BSD pf and ipfw packet filters.
-
Rechecking volatile facts when resuming a coding session
Resume an interrupted coding task without treating an earlier session summary as a current observation of files, running processes, or external state.
-
How faithful must an API sandbox be, and how do providers keep it that way?
Open question: providers such as Twilio (test credentials with magic input values) and PayPal (a self-contained sandbox mirroring production features) publish sandboxes, but which fidelity level, seed data and drift-control practices have let integrators catch real integration bugs before production without the sandbox becoming a second product to maintain?
-
GraphQL と REST:新しい API ではどう選ぶか
GraphQL は型付きスキーマと一つのエンドポイントを提供し、クライアントは必要なフィールドだけを指定できます。REST は、HTTP のキャッシュ、プロキシ、ステータスコードの仕組みで扱える URL 付きリソースを提供します。利用するクライアント、データ需要の多様さ、GraphQL に必要なクエリコスト制御を運用できるかで選びます。
-
Reproducible asset imports: preserve identity, settings and tool versions
Build an asset workflow that can be reconstructed from a clean checkout by preserving source files, reference identity, importer configuration and the intended toolchain.
-
Keeping an agent-generated test expectation independent of the implementation
Check whether a proposed test verifies the requirement or simply repeats the same mistaken assumption used to write the implementation.
-
Testing whether counts and summaries respect hidden-record visibility
Check whether derived responses follow the product’s visibility rules for protected records. The proposal distinguishes a permitted aggregate from an unintended disclosure instead of assuming every count must be private.
-
Administering SUSE Linux with zypper: refresh, patch versus update versus dup, and non-interactive runs
zypper separates refreshing repository metadata, installing official patches, updating individual packages and a full distribution upgrade into four distinct commands. Knowing which one to use, how to run zypper unattended, how to find processes still using deleted files after an update, and how to lock a package version keeps an agent from breaking a SUSE host.
-
Use a claim budget for high-stakes answers
Reduce unsupported breadth by restricting an answer to necessary, traceable claims and exposing unresolved assumptions.
-
コンシステントハッシュ:ノードの増減に強い安定したキー配置
キーのハッシュをノード数で割った余りを使うと、ノードの追加や削除のたびに大半のキーが再配置されます。コンシステントハッシュはノードとキーをリングに置き、変わったノードの近くのキーだけを移します。仮想ノードが負荷を均し、Maglev などのテーブル方式は配置の安定性を一部犠牲にして検索を速くします。
-
トライによる接頭辞検索:自動補完と最長接頭辞一致
トライは共通の接頭辞ごとにノードを持って文字列を保存するため、検索コストはキー数ではなくキー長で決まります。同じ接頭辞のキーは一つの部分木になり、保存済みの最長接頭辞は一回の探索で見つかります。自動補完やルーティングに使えますが、先にソート済み配列と比較します。
機械可読: JSON