Blog
Hydraulic engineering / AI / investing / study notes — one reading hub
陵阳公样智能辅助设计研究
目的 针对唐代陵阳公样装饰纹样在现代传承中面临的创新性不足与公众参与度低等问题,探索一种基于人工智能的智能辅助设计方法,以实现传统纹样的活态传承与创造性转化。 方法 首先,基于皮尔斯符号学三元理论,从表征、客体和诠释三个维度对陵阳公样进行系统解析,并运用分裂语法对纹样结构进行层级化解构,构建了包含6...
You Think You Understand? You Might Be the Patsy
Your circle of competence isn't measured by what you know—it's measured by what the person on the other side of the trade knows. A 'patsy test,' plus five questions to run silently before you place an order.
Your Returns: Skill, or Just the Rising Tide?
In a bull market everyone's a genius—and that's exactly the problem. Sort every gain and loss into four buckets (beta, risk premium, alpha, luck) and you'll see how much of your 'edge' is really just borrowed.
The Steadiest Profit Curve Should Scare You Most
A curve that earns a little almost every day with barely any drawdown is usually not proof of safety—it's the textbook shape of a concave payoff. You're selling insurance; the claim just hasn't come due. Here's a test to spot it.
Every Bet in Your Favor, Yet Still Bankrupt: Position Sizing Is Destiny
A game that favors you every single round can still wipe you out with probability 1—because long-run fate is decided not by the odds but by how much you bet. The math behind 'Rule No. 1: don't lose money.'
The Risk You Fear Most Is the One Your Metrics Don't Measure
What you truly fear is the permanent loss of capital—but the industry's favorite 'risk' number, volatility (σ), measures something else entirely, and the two often move in opposite directions.
Same Blade: Surgery in US Stocks, Bare-Handed in A-Shares
A strategy that makes money reliably in US equities can bleed just as reliably in A-shares—with zero change in your skill. Market microstructure holds veto power over any strategy.
The Strategy That Earns a Little Every Day Is the One to Fear
When a strategy earns a little almost every day and rarely draws down, your first reaction shouldn't be delight—it should be caution. That smooth curve is the signature of selling insurance before the claim comes due.
Claude Code 架构 · Layer 1:长期上下文层(CLAUDE.md / Memory)
长期上下文=每次对话自动加载的背景:CLAUDE.md 全局/项目规则 + Memory 跨会话记忆。它是 Claude Code 的地基,写好了 Agent 在任何会话都知道技术栈、规矩、偏好。
Prompt Caching 架构:为什么 CLAUDE.md 越稳定越省钱
--- Prompt Caching 是 Claude API 层面的优化机制,核心原理简单直接:缓存按前缀匹配工作。 每次请求发给 Claude 的完整输入大致是这样的结构: 如果两次请求的"前缀"相同——即从第一个 token 开始到某个位置完全一致——第二次请求可以复用缓存,跳过对这段前缀的重...
浙东引水工程受水区降雨趋势与多尺度变率分析
ZENG Tian-li$^1$, ZUO Xiao-xia$^1$, YANG Yu$^1$, DH$^1$, WU Mu-hong$^2$, ZHONG Lü-bin$^2$, CHEN Shu-yang$^3$ (1. Zhejiang Design Institute of Water Co...
A Methodology for Water Resources Carrying Capacity Evaluation: AHP-CRITIC-TOPSIS in Practice
From indicator system design to combined weighting and final ranking — a reproducible technical pipeline for water resources carrying capacity evaluation, with Python implementation notes.
Building an Enterprise-Grade Claude Code Harness
From 43 commands to 14 skills, from hook automation to MCP integration — a complete engineering methodology for LLM toolchains.
MCP in Practice: An Agent Ecosystem from auggie to gmail
Three MCP servers, 512+ session records, semantic search — how to build an AI Agent toolchain that actually gets used daily.
Cost Engineering: Running 28 Production Services for $31/Month
One $30/month VPS plus a $1/year domain, hosting 24 systemd services and 4 Docker containers — a cost-control playbook for indie developers.
From Streamlit to Tauri: Bringing Water Engineering Tools to the Desktop
Lessons from migrating 12 Streamlit web apps to Tauri desktop apps — separating the compute engine, rewriting the React frontend, cross-platform packaging.
Wiring 44 Scripts into Raycast
Wrapping CLI tools into one-click GUI actions — design notes, gotchas, and efficiency data from building 58 Raycast wrappers.
One-Person Full-Stack Infrastructure
24 systemd services, 4 Docker containers, 29 GitHub repos — how an indie developer builds a reliable production stack on a minimal budget.
The Zhedong Water Diversion Digital Twin: From Physical Water Network to Intelligent Scheduling
An in-depth look at Zhejiang's Zhedong Water Diversion digital twin — how digital twin technology enables precise scheduling and intelligent management of a trans-basin water network.
Welcome to My Technical Blog
My first blog post. I'll share technical experience and project insights across water conservancy, data analysis, and machine learning.