Skip to guides
TOOLS. SYSTEMS. BETTER DECISIONS.
Stack & Method

The working library

Practical guides for your next working system

Clear answers about automation, APIs, software decisions and reliable publishing. Browse every published Stack & Method article, from the first question to the next useful step.

63 published guides. Browse the latest additions or return to the journal.

What is an ETag response header?

A concise, practical explanation of the HTTP ETag response header, how it works with If-None-Match and If-Match, and when to use weak vs strong validators, with clear examples and a setup checklist.

Read the guide

How to fix 412 Precondition Failed

A practical fix for HTTP 412: confirm the conditional header that failed, fetch the current ETag or Last-Modified, then choose a safe retry or intentional override. Includes 409 vs 412 guidance and a concrete curl example.

Read the guide

How to stringify a JSON object in Python

Use json.dumps(obj) to serialize Python data to a JSON-formatted string; use json.dump(obj, fp) to write JSON directly to a file. Examples include pretty printing, compact output, Unicode handling and safe settings for NaN/Infinity.

Read the guide

What do JSON parsers do?

A clear explanation of what JSON parsers do, how they work, how they differ from JSON.stringify, and when to use each, with a worked JavaScript example and a practical checklist.

Read the guide

How to check HTTP response headers in Chrome

Open Chrome DevTools, use the Network panel, and read the Headers tab to see Response headers like Content-Type alongside Request headers like Accept. Learn the exact steps, how to copy headers, and how to avoid confusing Content-Type with Content-Encoding.

Read the guide

How long does an OAuth refresh token last?

There’s no universal refresh token lifetime. Providers set their own expirations and revocation rules. See concrete examples (Microsoft defaults, Apigee configuration), rotation behavior, and a checklist to test your app’s handling.

Read the guide

Your privacy choices

Optional analytics helps us improve these guides. It stays off until you allow it. Privacy details