すべての記事
-
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.
-
ローカルDBのシードとフィクスチャ:小さく、冪等に、スキーマとともに版管理する
全環境に必要な参照データ、開発・デモ用のサンプル、テスト自身が作るデータを分けます。自然キーで 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は、メモリーとCPUの上限を適用するためにcgroups v2(統一階層)を使います。この手順では、ホストが統一モードであることの確認、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