Guance Learn

Observability questions

Focused answers for definitions, architecture choices, troubleshooting, pricing, and evaluation.

Python programming and application logging
Explainer

Add color to Python logging output

Use colorlog or a custom logging formatter for terminal colors, while keeping redirected output and file logs free of ANSI escape sequences.

Illustration of Git branches and version history
Technical guide

Commit a case-only filename change in Git

Record filename capitalization changes reliably, preserve a single commit, and avoid misconfiguring Git for a case-insensitive filesystem.

Illustration of Git branches and version history
Technical guide

Compare a local Git branch with a remote branch

Refresh remote-tracking refs, inspect commit reachability and file differences, and distinguish two-dot and three-dot comparisons.

Python programming and application logging
Explainer

Concatenate lists in Python

Choose list addition, unpacking, extend, or itertools.chain based on whether you need a new list, in-place changes, or lazy iteration.

Illustration of Git branches and version history
Technical guide

Ignore local files in Git without changing the shared .gitignore

Use the repository exclude file or a global ignore file for personal untracked files. Understand why skip-worktree does not reliably ignore tracked edits.

Illustration of log collection and monitoring
Explainer

Write one application’s syslog messages to a separate file

Route rsyslog events by programname, set suitable file permissions, and check rule order, rotation, and downstream collection.

Access a Windows file share through a DNS alias
Technical guide

Access a Windows file share through a DNS alias

Configure a supported computer alias for an AD domain file server, then verify DNS, Kerberos SPNs, and share permissions.

Illustration of monitoring and request timing
Explainer

Inspect deeply nested objects in Node.js

Expand nested values with util.inspect or console.dir, and understand the output limits and data transformations involved in JSON serialization.

Python programming and application logging
Explainer

Convert an integer to a string in Python

Use str for integer conversion and f-strings for formatted text. Handle concatenation, padding, numeric bases, and conversion back to integers.

Application modules and development workflows
Technical guide

Split a PEM file into a certificate and private key

Extract certificate and private-key blocks with OpenSSL, preserve the chain, and confirm the pair matches without exposing private material.

Illustration of Git branches and version history
Technical guide

Copy Git commits to another branch

Cherry-pick selected changes onto a destination branch, preserve attribution, and choose between replaying commits, merging history, and copying a file.

Illustration of container operations and troubleshooting
Technical guide

Copy a directory with Dockerfile ADD or COPY

Understand build-context paths, directory contents, archive extraction, ownership, and what a multi-stage runtime image must include.