claude code 平替: opencode + deepseek/qwen

Posted on Wed 25 February 2026 in Tech • Tagged with opencode, claude-code, qwen, deepseek, openai-compatible, ai-sdk, tls, ca

用 opencode 接入公司私有部署的 Qwen/DeepSeek(OpenAI-compatible API),日常写代码、改文档基本够用,还能省掉订阅费与 token 焦虑;关键是把 TLS 自签证书这关过掉,别用“关掉校验”这种野路子。


Continue reading

Go crypto/tls Config.Clone session resumption pitfalls (CVE-2025-68121)

Posted on Wed 25 February 2026 in Tech • Tagged with go, security, tls, cve

CVE-2025-68121 涉及 Go crypto/tls 的两个会话恢复(session resumption)问题:Config.Clone 复制了自动生成的 session ticket keys,导致不同 tls.Config 之间意外共享会话票据;以及服务端在判断会话是否可恢复时,只检查 leaf 证书过期而忽略完整证书链,可能让过期链条下的会话继续被恢复。


Continue reading

设计一个学习职场英语的 AI Agent(LLM Agent 架构 + 日常闭环 + 打分)

Posted on Mon 23 February 2026 in Tech • Tagged with ai-agent, llm, agents, learning, spaced-repetition, english

一份纯技术向的设计:用 LLM-powered agent 跑一个固定的日常学习闭环(morning learn → evening test → next-day review),并用双维度打分管理句子库:实用度(1–5)与熟练度(1–5)。


Continue reading

悲观锁、乐观锁、无锁:Go 并发控制的三种姿势

Posted on Wed 28 January 2026 in Tech • Tagged with golang, concurrency, lock, mutex, atomic, channel, performance

并发编程最怕什么?数据竞争。解决数据竞争最常见的方法是加锁,但锁也分三六九等。本文用 Go 代码实战,带你理解悲观锁、乐观锁、无锁三种并发控制策略的原理、实现和适用场景。


Continue reading

Python 编程的常见陷阱与奇巧淫技

Posted on Tue 27 January 2026 in Tech • Tagged with python, programming, tips, traps, best-practices

Python 入门容易精通难。这篇文章整理了 10 大经典陷阱(可变默认参数、闭包绑定、浮点精度、GIL...)和 10 小窍门(海象运算符、collections、itertools...),附带工程建议和 Checklist,帮你写出稳定、高效、可维护的 Python 代码。


Continue reading

在树莓派上玩 K3s:从安装到实战,打造你的私人 Kubernetes 集群

Posted on Sat 24 January 2026 in Tech • Tagged with kubernetes, k3s, raspberry-pi, homelab, edge-computing, IoT

一篇关于在树莓派上安装和使用 K3s 的实战指南,涵盖安装步骤、典型用例和最佳实践


Continue reading

Go 程序崩溃分析实战:从 Coredump 到根因定位

Posted on Fri 23 January 2026 in Tech • Tagged with golang, debugging, coredump, delve, crash, panic

一篇关于 Go 程序崩溃分析的实战指南,涵盖 coredump 生成、分析方法和预防措施


Continue reading

警惕!你的 Go 程序正在偷偷"泄漏" —— 详解 Goroutine Leak

Posted on Sat 13 December 2025 in Tech • Tagged with golang, goroutine-leak, memory-leak, troubleshooting, performance

以为有了 GC 就可以高枕无忧?太天真了!Go 程序中最隐秘的杀手 —— Goroutine Leak,正在悄悄吃掉你的内存。本文带你深入现场,手把手教你如何发现、排查并彻底消灭它。


Continue reading

Common Identity Service

Posted on Sun 18 May 2025 in tech • Tagged with tech, blog

Daily minute


Continue reading

程序员的学习方法

Posted on Sat 17 May 2025 in tech • Tagged with tao, blog

Daily minute


Continue reading

从依赖注入谈起

Posted on Fri 16 May 2025 in tech • Tagged with tech, blog

Daily minute


Continue reading

可观测性之饱和度

Posted on Thu 15 May 2025 in tech • Tagged with tech, blog

Daily minute


Continue reading

树莓派上的语音识别一

Posted on Sat 25 May 2024 in tech • Tagged with tech, blog

Daily minute


Continue reading

Phi Accrual Failure Detector

Posted on Wed 05 August 2020 in Tech • Tagged with tech, blog

Accrual Failure Detector


Continue reading

Virtual memory and malloc info

Posted on Sun 14 June 2020 in Tech • Tagged with memory

Daily minute


Continue reading

管道模式的妙用

Posted on Tue 09 June 2020 in Tech • Tagged with pattern, tech

Daily minute


Continue reading