Updates

Track product releases, usage examples, and in-depth tutorials.

·
DevTool Team

From Design to Production: Icon File Checklists and Pitfalls for favicon, PWA, and Mini-Programs

A product icon isn't one 512px image: a website needs the full favicon set (multi-size ICO fallback, SVG, apple-touch-icon, manifest 192/512), PWA needs a maskable safe-zone version, and WeChat mini-program tabBar icons must be 81×81 and under 40KB each. This guide lists files by publish target, covers choosing among four starting points (18 templates, text, emoji, uploaded logo), and the classic failure — beautiful at full size, mush at the browser tab's 16px (low contrast, tiny subject, heavy glow). Every pitfall maps to a generator check, and the preview panel shows the real thing: browser tab, search results, PWA install card.

·
DevTool Team

Peel Encodings to the Bottom, Pick the Right Hash: Using a Browser Cryptography Workbench Correctly

Holding a string that might be Base64, Hex, or URL-encoded, and one layer down it's still garbage? This guide starts with identification cues (alphabet, length, prefix, separators), then the workbench pipeline — chain decode steps into a flow and inspect every intermediate result. Then it separates the three cryptographic primitives by the problem each solves: hashes for integrity, HMAC for authentication, AES for confidentiality — plus the three commonest misuses (Base64 as encryption, MD5 for passwords, hashing as encryption). Ending with honesty: the workbench offers only SHA-256/512 and omits MD5 and SHA-1 on purpose, warns below 100,000 PBKDF2 iterations, uses a tool-specific agcm1 envelope for AES-GCM, and is for analysis and debugging — production keys don't belong in any web page.

·
DevTool Team

Turning JSON into C++ Structs: Choosing a Library, Type Inference, and the Real Nesting Boundary

Converting an API's JSON into C++ structs starts with the library choice, not the button: most projects take nlohmann/json (smoothest ecosystem), performance-critical parsing takes RapidJSON, Boost shops take Boost.JSON. This guide covers the options (C++ standard, naming style, namespace) and the five blind spots of type inference — integers always infer to int (13-digit timestamps overflow; change to int64_t), null becomes optional<string>, empty arrays default to vector<string>, mixed arrays infer from the first element, and nested objects do NOT expand into sub-structs but land as nlohmann::json dynamic types. Plus the NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE macro's binding to your fields, and verifying the plain struct by pasting it into an online C++ compiler.

·
DevTool Team

Generating Java Classes from JSON: Deciding Annotations, Lombok, and Type Inference Options

Turning an API's JSON into Java DTOs by hand — typing fields plus getters and setters — is the least productive thing you can do. This guide shows how to set a generator's options by your project's reality: your serialization library (Jackson or Gson) decides the annotation (@JsonProperty vs @SerializedName — the wrong one reads nothing), a Lombok dependency means enabling @Data to kill boilerplate, and wrapper-vs-primitive depends on whether fields can be null. Then the four blind spots of type inference — integers always infer to Integer (13-digit millisecond timestamps overflow; change to Long), null and empty arrays become Object, mixed arrays degrade to List<Object>, snake_case fields need annotation mapping — ending with the truth: a generated class is a sample snapshot, not a contract; use ignoreUnknown for API evolution, and record is the modern choice the tool doesn't emit.

·
DevTool Team

Three Ways to Get JSON into Python: loads, Literals, and Type Annotations

You have a chunk of JSON and Python code that needs it — do you json.loads it, generate a dict literal, or convert to annotated code? Route by purpose: one-off scripts load the raw text, test fixtures and frozen configs suit generated literals (readable, editable, version-controllable), and type safety calls for dataclass or pydantic. Covers the mapping rules and three traps — the True/False/None capitalization, the 2^53 integer precision boundary of browser-based tools, and keys that aren't legal identifiers — ending with the truth: pasted literals aren't the destination; loads plus model classes out-maintain them in real projects, and round-tripping is not a lossless verification.

·
DevTool Team

Verifying a Regex Before It Ships: flags, Capture Groups, and Replace Previews

Written a regex and afraid to ship it? Verification isn't "did it match" — it's three things: every match position with highlights, what each capture group actually grabbed, and the real replace output. This guide covers the correct use of an online tester — the six flags (don't just turn on g; the lastIndex trap), named capture groups as debugging probes, and the $1 reference pitfalls in replace previews — plus the two most expensive failure sources: dialect differences (passes in JS, breaks in Python; named groups and lookbehind support vary) and catastrophic backtracking (how nested quantizers drag execution to seconds). Ending with the truth: the perfect email regex doesn't exist, and preset libraries are starting points, not answers.

·
DevTool Team

Choosing URL Parameter Encoding: component, URI, and form Modes

Chinese characters breaking your URL parameters? Ampersands truncating them? The problem isn't the characters — it's picking the wrong encoding mode. This guide routes by what you're encoding: parameter values take encodeURIComponent (& = ? # all escaped), whole URLs take encodeURI (query structure preserved), form bodies take the form mode (spaces become +). It explains where %E4%BD%A0 comes from (three UTF-8 bytes in percent notation), the + versus %20 saga (how the form-encoding legacy manufactures signature-verification failures), and troubleshooting double encoding and Invalid URI errors — ending with the truth: encoding solves transport safety, not parameter semantics.

·
DevTool Team

Decoding Base64 Without Mojibake: Text, Images, and URL-Safe in Practice

Holding a Base64 string and not sure what it is? Route by shape: alphanumerics ending in equals signs are encoded text (paste into a tool, decode as UTF-8); data:image prefixes are embedded images (preview and strip the prefix); files convert to Base64 for dataURL embedding; and anything headed into URLs or JSON fields should use the URL-safe variant. Covers the three sources of mojibake (reading UTF-8 bytes as Latin-1, actually-binary content, under-stripped layers), why URL-safe exists (the + / = trap trio), and the one-third size inflation cost — ending with the truth: Base64 is not encryption, and hiding passwords in it equals plaintext.

·
DevTool Team

Running Go in the Browser: Trying Syntax, Testing Snippets, and Where the Local Toolchain Takes Over

In your first week of Go, setting up the environment often hurts more than learning the syntax. This guide routes by need: trying a line of syntax, running textbook examples, verifying standard-library behavior — a browser-based Go runner covers it; real projects belong on the local toolchain. It covers the three ways to run Go online — quick single-file runs, multi-file workspaces (ZIP import), and an interactive console (bufio.Scanner reads real input) — plus hands-on goroutine/channel experiments and the preloaded standard and third-party packages. Ending with honesty: the browser runs an interpreter, not the full toolchain; compile-time diagnostics are weaker than go build, and the editor is lightweight, not an IDE.

·
DevTool Team

Finding What Changed Between Two Texts: Reading Diff Views and Killing False Positives

Two versions of a config, two log dumps, two lists — how do you find what changed, fastest? This guide routes by input type: order-sensitive text goes straight into a diff tool read via split or unified view; order-independent lists get sorted before comparing; JSON belongs in a structural comparison, not a text diff. Then the three classes of false positives and how to kill them — whitespace and case noise via ignore options, CRLF line endings unified first, and reflow-induced cascades located by normalizing both sides. Ends with honest limits: 500,000 characters per side is plenty but finite, and inside a git working tree, git diff is simply the better tool.