首页Mokin’s Engineering Notes
香港天气加载中…
QWeather ↗

FIELD NOTES FROM THE WORKBENCH

Engineering,
with curiosity.

Storage systems. Reliable tests. AI that holds up.
A notebook for making complex engineering
a little clearer.

Explore the notes
Systems/Intelligence/Code

THE NOTEBOOK

All notes.

24 notes

Practical notes on engineering and English learning.

02

读懂 SSH 本地端口转发:-N、-L 与两端的 127.0.0.1

从一条脱敏命令出发,区分本地监听端口、远端目标地址和 SSH 连接;用数据流与分层验证解释终端为何安静,以及隧道建立后为什么仍可能访问失败。

SSH本地端口转发TCP网络排查脱敏示例
06

读懂 Python 程序入口:__name__、help() 与 main()

从递归示例末尾的三行代码出发,逐行理解模块身份、函数对象、帮助信息与函数调用,并实际对照直接运行和 import 的不同结果。

Python__name____main__函数对象help模块导入
07

从递归求和到 Git 提交的实践笔记

从注释原则和 ValueError 出发,理解暂存区、AM 状态、git add .、origin 与 upstream,并复盘为什么推送成功仍可能只上传了空文件。

PythonGit代码注释ValueError暂存区分支合并
16

理解递归:从函数调用到逐层返回

通过阶乘、调用栈交互与实际日志,理解每次调用独立的局部状态、返回后如何继续,以及多层递归调用如何共存。

Python递归Recursion调用栈
21

One lucky run is not an agent evaluation.

Turn an impressive demo into a repeatable evaluation with explicit outcomes, multiple trials, and readable traces.

AI agentsEvaluationsReliability
22

Treat a prompt change like a release.

Version the behavior you expect, compare it against a baseline, and keep enough evidence to understand regressions.

PromptsRegression testingLLM
24

A lock protects an invariant, not a variable.

Think about the state that must stay consistent, then make the whole read–check–write operation participate in the same protocol.

PythonConcurrencySynchronization

— You’re all caught up. There’s always more to understand. —

THE COMMON THREAD

Good engineering starts
with a better question.

Observe carefully.
Make the idea testable.
Let the evidence lead.