すべての記事
-
OpenSSH の耐量子デフォルト設定と、耐量子方式ではない鍵交換の警告
OpenSSH の警告を選択された鍵交換方式までたどり、接続の両端で有効な設定を確認する。ホスト認証を弱めずに、ハイブリッド方式でネゴシエーションできる状態を回復する。
-
Handling a data subject request as an engineering process: export and delete
Treat a person's request for a copy or deletion of their data as a job: verified intake, one exporter per store in the data map producing a manifest, delivery through an expiring authenticated download, deletion through the pipeline, exemptions listed with reason codes, and a synthetic-subject test on a fixed cadence; which requests must be honoured and when is not addressed.
-
エージェントの記憶を設計する:保存、要約、忘却の使い分け
エージェントの記憶には、コンテキストウィンドウ、タスク用メモ、セッションをまたぐ永続ストアの三層がある。項目ごとに属する層を決め、永続記憶は小さくレビュー可能に保ち、事実でなくなったものを削除する。
-
ES module builds with declared side effects shrink consumer bundles more than CommonJS builds
Hypothesis: for a library of many independent functions, a consumer that imports a few of them gets a smaller bundle when the library ships ES modules with a sideEffects declaration than when it ships CommonJS, because tree shaking depends on static import/export structure; a fixture-based comparison is proposed.
-
Idempotente Operationen und sichere Wiederholungen entwerfen
Eine Operation ist idempotent, wenn ihre mehrfache Ausführung dieselbe Wirkung hat wie eine einzelne; RFC 9110 legt das für HTTP-Methoden fest, und ein Idempotency-Key-Header überträgt die Eigenschaft auf POST. Schlüssel samt Fingerabdruck und Ergebnis speichern, Konflikte mit 409 und 422 melden, Schlüssel nach dokumentierter Frist löschen.
-
journald forwarding and remote collection: ForwardToSyslog, systemd-journal-upload/-remote, and rate limits
journald can hand its entries to a local syslog daemon with ForwardToSyslog=, or ship them directly over HTTPS with systemd-journal-upload to a systemd-journal-remote listener that writes its own journal files. Both paths are subject to journald's own per-service rate limiting, which drops excess messages once a burst threshold is crossed and records only a count of what it dropped.
-
ツールにも読み手にも役立つ docstring
PEP 257 は docstring の配置と書式を定めています。Google または NumPy などの統一したスタイルで、一行の要約、引数と戻り値の説明、送出する例外を記すと、読み手、エディター、ドキュメント生成ツールが活用できます。
-
Reading and writing macOS preferences: defaults, plutil, and why cfprefsd hides a direct edit
defaults and plutil read and write preference domains without hand-parsing plist syntax, but a cache daemon, cfprefsd (one per user plus one for the system), mediates every read and write an app makes — so editing the plist file on disk directly often has no visible effect until the cache is invalidated.
-
Server-Sent Events と WebSocket の比較
Server-Sent Events は通常の HTTP でサーバーからクライアントへテキストイベントを配信し、自動再接続と最終イベントIDを扱う。WebSocket は独自のプロトコルでバイナリにも対応する双方向チャネルを提供する。一方向の更新には SSE、クライアントが頻繁に送信する場合には WebSocket を選ぶ。
-
クラウドインスタンスのメタデータエンドポイント:IMDSv2 トークンとホップ制限 1 が SSRF を弱める理由
クラウド VM は、インスタンスのロールの一時認証情報を返せるリンクローカルのメタデータサービスを公開しています。サーバーサイドリクエストフォージェリの脆弱性やエージェントの取得ツールから、そこへ到達できます。AWS では、IMDSv2 のセッショントークンを必須にし、PUT 応答のホップ制限を 1 に保つことで、最も単純な経路を除去できます。
-
Procedural generation with reproducible random streams
Keep world seeds, subsystem streams, draw order, and generator versions explicit so procedural content remains reproducible as generation becomes parallel or evolves.
-
SSH's "Host key verification failed" and "REMOTE HOST IDENTIFICATION HAS CHANGED" warnings
OpenSSH refuses to connect and prints 'Host key verification failed' or the larger 'WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!' banner when the server's key does not match what is stored in known_hosts. The article explains why a rebuilt server and an actual attack produce the identical message, and how to tell them apart before running ssh-keygen -R.
-
Making a recipe substitution experiment comparable
A proposed protocol for documenting an ingredient substitution: fix everything except the substituted ingredient, record quantities by mass, describe the equipment and timings, and separate measured observations from preference judgements; no cooking result is asserted.
-
Utility AI: make action scores comparable and decisions stable
Separate action eligibility from preference, inspect response curves and score combinations, and use explicit switching rules to prevent indecisive behavior.
-
Sizing a JVM inside a container: heap percentage, non-heap memory and CPU count
The JVM reads cgroup limits by default (UseContainerSupport) and sizes the heap as a percentage of the container's memory, not the host's; heap is only part of the footprint, so set MaxRAMPercentage to leave room for metaspace, thread stacks, direct buffers and code cache, check the CPU count the JVM sees, and verify with -Xlog:os+container and native memory tracking before trusting a limit.
-
Choosing a Godot renderer with target-device evidence
Compare Forward+, Mobile and Compatibility against required effects, actual export targets and measured scene behaviour before committing to a rendering path.
-
Keeping CI and local checks identical: one entry point, pinned tools, same container
A check that passes locally should pass in CI and vice versa: define every check once as a named task, pin the toolchain in a committed manifest that both the bootstrap and the pipeline install from, run CI in the same container image as the dev environment, fix locale and timezone, and treat any CI-only failure as a parity bug to eliminate before fixing the symptom.
-
CockpitのWebコンソールで画面のないRHELホストを管理する
Cockpitは、デスクトップGUIのないRHELサーバーをブラウザーから管理するセッションを提供します。ソケットで起動するため、最初の接続時にのみ起動します。この手順では、有効化、専用の名前付きサービスによるファイアウォールの開放、サーバー上で実際に役立つ用途を扱います。
-
Web Components:カスタム要素、Shadow DOM とカプセル化の境界
カスタム要素はハイフンを含むタグ名でクラスを登録し、ライフサイクルのコールバックを持ちます。Shadow DOM はスタイルが両方向に漏れないスコープ付きの部分木を与え、テンプレートと宣言的シャドウルートがマークアップを提供します。parts やカスタムプロパティーでの装飾から、ElementInternals でのフォーム参加、ラベルの関連付けまで、境界を越える機能は意図的に開く必要があります。
-
自宅の蔵書や工具を棚卸しする:識別子、保管場所、確認周期
蔵書や工具の家庭内在庫を単純な表で管理する。各品物の安定した識別子(本はISBN、工具は自分で付けるコード)、凡例付きの場所コード、固定語彙による状態、貸出欄、そして見つからない物を削除せず記録する定期巡回を使う。評価額や保険の助言は行わない。
機械可読: JSON