Tech notes
Every entry, newest first. The number in the margin is shared by the Chinese and English versions of an entry.
9 entries
RSS feed- E-009
Docker GPU NVML error
nvidia-smi in a Docker container suddenly fails with "Failed to initialize NVML: Unknown Error". The cause, how to confirm it, and four fixes.
- E-007
The evolution of AI agents
Prompt, Context, Tool, MCP, CLI, Skill seem to overlap. A chronological walkthrough of the problem each one solved, checked against the original papers.
- E-008
Prompt engineering
Why phrasing changes an LLM's answer: system vs. user prompts, OpenAI and Anthropic guidance, four core techniques, and ten frameworks such as CO-STAR.
- E-003
Intro to computer science (part 1)
Core OS concepts: user vs. kernel mode, system calls, processes and threads, scheduling, and how deadlocks are prevented, avoided, detected and resolved.
- E-004
A map of machine learning algorithms: from the five tribes to real systems
Common machine learning algorithms grouped by Pedro Domingos's five tribes, plus unsupervised and reinforcement learning, each with an intuitive example.
- E-005
ONVIF troubleshooting
Media1 GetProfiles kept failing when controlling a PTZ camera with Python's onvif-zeep. Six troubleshooting steps and a Media2 workaround with hand-built SOAP.
- E-006
RAG basics: letting an LLM look things up before it answers
LLMs hallucinate and can't see your documents. RAG retrieves relevant context first. The basic architecture, a LangChain example, and Adaptive RAG.
- E-002
How NAT traversal works: the principles and enterprise practice
How two machines behind NATs connect directly: hole punching, STUN, hard NATs, relays and ICE, and why enterprise firewalls are the hardest case.
- E-001
Moving my blog to a fully static Astro site
Moving a server-rendered blog to Astro and GitHub Pages. The migration steps, the base-path trap, and why the backend was no longer needed.