#Tips

23 articles

Structure of My System Specification Document
Architecture 2025-05-19

Structure of My System Specification Document

Learn to structure system specification documents with sections for architecture, data models, APIs, and sequence diagrams for design clarity.

#System Design#Design#Tips
One-liner to Unlock Password-Protected PDFs
Tools 2024-03-29

One-liner to Unlock Password-Protected PDFs

Decrypt password-protected PDFs using QPDF—a powerful command-line tool for removing PDF password restrictions securely.

#PDF#Tips
One-Liner for Self-Signed Certificates in Go
Application 2024-02-16

One-Liner for Self-Signed Certificates in Go

Generate a self-signed TLS certificate in Go with one command using the built-in generate_cert.go tool. Produces cert.pem and key.pem for local HTTPS without openssl or mkcert.

#Golang#Tips
Side Effects of Go's response.WriteHeader
Application 2023-09-11

Side Effects of Go's response.WriteHeader

Learn why calling Go response.WriteHeader multiple times triggers the superfluous call warning. Covers how the first status code wins and how to fix duplicate WriteHeader in HTTP handlers.

#Golang#Tips
Runner Technique for Linked Lists
Algorithms and Data Structures 2023-07-22

Runner Technique for Linked Lists

Summarizing the runner technique useful for traversing linked lists.

#Algorithm#Data Structure#Runner Technique#Tips
How to Use pprof Without DefaultServeMux
Application 2023-04-30

How to Use pprof Without DefaultServeMux

A note on using net/http/pprof with routers other than Go's default router.

#Golang#Tips
Prevent URL Encoding in Go's html/template
Application 2023-04-23

Prevent URL Encoding in Go's html/template

Learn why Go html/template auto-encodes URLs and how to use template.URL to pass raw URLs in templates without triggering automatic HTML encoding. Includes a minimal working example.

#Golang#Tips
Obtaining SSL Certificates from Let's Encrypt Using DNS-01 with Lego
Infrastructure 2022-01-18

Obtaining SSL Certificates from Let's Encrypt Using DNS-01 with Lego

Obtain Let's Encrypt SSL certificates efficiently using DNS-01 challenge method with Lego client tool and Conoha API provider integration.

#Let's Encrypt#Tips
How to Stream Keynote Presenter Display with StreamYard
Tools 2021-11-03

How to Stream Keynote Presenter Display with StreamYard

A guide on streaming Keynote presentations using StreamYard while displaying the presenter view.

#Keynote#StreamYard#Tips
Encountered 'Permission denied' Error When Starting MySQL Container on Ubuntu 20.04.2 LTS
Database 2021-09-12

Encountered 'Permission denied' Error When Starting MySQL Container on Ubuntu 20.04.2 LTS

Fix MySQL container permission denied errors on Ubuntu 20.04 by properly configuring docker-compose user UID/GID mappings.

#Ubuntu#MySQL#Tips
Cannot Start MySQL 8.0.17 Container on M1 Mac
Database 2021-09-05

Cannot Start MySQL 8.0.17 Container on M1 Mac

Fix the MySQL container startup failure on Apple M1 Mac (failed to create new OS thread errno=22). Use MySQL 8.0.26+ with --platform=linux/amd64 in the Dockerfile for ARM architecture support.

#Docker#Docker Compose#MySQL#M1#Tips
Stuck with ReadOnlyTransaction in Go's Spanner Client
Application 2021-02-08

Stuck with ReadOnlyTransaction in Go's Spanner Client

Fix session pool exhaustion caused by missing tx.Close() on Cloud Spanner ReadOnlyTransaction in Go. Learn proper transaction lifecycle management and issue detection with zagane.

#Google Cloud Platform#Spanner#Tips
Environment Variables Specified in docker-compose.yml Not Accessible During Container Build
Infrastructure 2020-11-14

Environment Variables Specified in docker-compose.yml Not Accessible During Container Build

Fix environment variables in docker-compose.yml being unavailable during Docker image build. Use ARG in Dockerfile and build.args in docker-compose.yml to pass values at build time.

#Docker#Docker Compose#Tips
Code Definition Jump Disabled After Enabling Go Language Server in VSCode
Application 2020-07-19

Code Definition Jump Disabled After Enabling Go Language Server in VSCode

Fix VSCode Go language server issues with gopls by placing go.mod file correctly for code definition jumping.

#Golang#gocode#gopls#Language Server#vscode#Tips
Handling Docker 'Operation not permitted' Error
Infrastructure 2019-09-27

Handling Docker 'Operation not permitted' Error

Fix the Docker Operation not permitted error in docker-compose by adding privileged: true or using cap_add: SYS_ADMIN with seccomp:unconfined to grant required Linux capabilities.

#Docker#Docker Compose#Linux#Linux Capabilities#Seccomp#Tips
How to Restore Hosts Removed from Monitoring in Mackerel
Infrastructure 2019-09-17

How to Restore Hosts Removed from Monitoring in Mackerel

Recover accidentally excluded monitoring hosts in Mackerel by updating hostId after host migration or removal from monitoring system.

#Mackerel#Tips
Encountered Path Issues When Installing Bundler with rbenv via anyenv
Application 2018-12-04

Encountered Path Issues When Installing Bundler with rbenv via anyenv

Fix Bundler /usr/local/bin path issue with rbenv and anyenv by running rbenv exec gem install command.

#anyenv#gem#rbenv#Ruby#Tips
Addressing Slow Mounting Issues in Docker for Mac
Infrastructure 2018-08-19

Addressing Slow Mounting Issues in Docker for Mac

Resolve slow Docker for Mac volume mount performance caused by the macOS filesystem API. Workarounds: delegated/cached mount options, docker-sync, or using a Linux-based VM.

#Docker#Tips
Encountering '[BABEL] Note: The code generator has deoptimised the styling of' in React
Application 2017-10-01

Encountering '[BABEL] Note: The code generator has deoptimised the styling of' in React

Fix Babel's code generator deoptimization warnings in React through strategic file size optimization and compression techniques.

#React#Tips
Encountering 'Uncaught (in promise) error' with redux-form Server-side Validation
Application 2017-10-01

Encountering 'Uncaught (in promise) error' with redux-form Server-side Validation

Fix 'Uncaught (in promise) error' in redux-form server-side validation by returning promises and properly throwing SubmissionError.

#React#Redux#redux-form#Tips