跳转到主要内容

写作

博客

关于机器学习、Python、数据结构以及构建可靠软件的笔记、教程与演讲。

48 篇文章

Title card reading "Owning the Edge, Part 10: Two Small Traps" with the subtitle "openvpn3 and SSH ControlMaster", over a dark blue background with a network of connected nodes
最新EnglishLinux

Owning the Edge - Two Small Traps with openvpn3 and SSH ControlMaster

Two small problems that cost me more time than they should have, an openvpn3 error about an invalid D-Bus path and an SSH connection that hung because of a stale ControlMaster socket, plus a recap of the whole series.

5 分钟阅读

2026

16 篇文章

  • Title card reading "Owning the Edge, Part 9: Fourteen Bugs" with the subtitle "From one network build", over a dark blue background with a network of connected nodes
    EnglishNetworking

    Owning the Edge - Fourteen Bugs from One Network Build

    Every bug I hit while building my own VPN gateway, internal network and DNS, grouped by kind, with the symptom, the cause and the fix, and the three patterns behind most of them.

    6 分钟阅读
  • Title card reading "The Rules, Applied" with the subtitle "Four cases where the standards met real code" over a dark blue background
    EnglishSoftware-Engineering

    Techstack Challenges, Part 15: The Rules, Applied

    Clean-code and clean-architecture standards meeting real code: the boolean flag that became two functions, the 70 duplicated lines that stayed duplicated on purpose, and import invariants enforced by AST tests.

    5 分钟阅读
  • Title card reading "Owning the Edge, Part 7: Rebuilding an OpenVPN PKI" with the subtitle "With easy-rsa", over a dark blue background with a network of connected nodes
    EnglishSecurity

    Owning the Edge - Rebuilding an OpenVPN PKI with easy-rsa

    Building a new certificate authority for my OpenVPN fallback with easy-rsa, choosing validity periods, staging the files with strict permissions, and replacing 150 lines of inlined certificates with five directives.

    5 分钟阅读
  • Title card reading "Owning the Edge, Part 6: When the CA Private Key Is Gone" with the subtitle "Auditing an inherited PKI", over a dark blue background with a network of connected nodes
    EnglishSecurity

    Owning the Edge - When the CA Private Key Is Gone

    Adding one phone to my OpenVPN fallback revealed that the private key of the old certificate authority no longer existed anywhere. How I searched for it, and the 30-second check that proves whether a certificate and a key belong together.

    4 分钟阅读
  • Title card reading "Owning the Edge, Part 5: Two-Tier DNS" with the subtitle "CoreDNS and Pi-hole", over a dark blue background with a network of connected nodes
    EnglishNetworking

    Owning the Edge - Two-Tier DNS with CoreDNS and Pi-hole

    Why I split DNS into two layers, CoreDNS as the authority for my internal names and Pi-hole as the filtering resolver my devices use, and the settings that keep internal names from leaking.

    5 分钟阅读
  • Title card reading "Owning the Edge, Part 3: Locking Down a VPN Gateway" with the subtitle "Two ports, SSH inside, default deny", over a dark blue background with a network of connected nodes
    EnglishSecurity

    Owning the Edge - Locking Down a VPN Gateway

    How I set up a minimal VPN gateway with two open ports, SSH only on the internal network, a login account without sudo and a default-deny nftables firewall that fits on one screen.

    5 分钟阅读
  • Title card reading "Owning the Edge, Part 1: Replacing a Black-Box VPN" with the subtitle "Instead of fixing it", over a dark blue background with a network of connected nodes
    EnglishNetworking

    Owning the Edge - Replacing a Black-Box VPN Instead of Fixing It

    The first post in my Owning the Edge series. The VPN into my servers broke in three ways at once, so instead of repairing a box I did not control, I built my own gateway, internal network and DNS from scratch.

    5 分钟阅读
  • Title card reading "Three Outages and a Missing Secret" with the subtitle "Blast radius is a packaging decision" over a dark blue background
    EnglishKubernetes

    Techstack Challenges, Part 12: Three Outages and a Missing Secret

    Deploying the voice agent on Kubernetes: why one missing webhook secret took a whole namespace down three times, the split-horizon DNS that silently killed observability, and the isolation patterns that came out of it.

    4 分钟阅读
  • Title card reading "Configuration That Fails Loud" with the subtitle "Every fallback logs at ERROR, or it doesn't exist" over a dark blue background
    EnglishSoftware-Engineering

    Techstack Challenges, Part 10: Configuration That Fails Loud

    A centralized settings module as the last line of defense: boot gates that collect every missing variable, fallbacks that log at ERROR instead of degrading quietly, and why point-of-use beats boot-time for some checks.

    5 分钟阅读

2025

9 篇文章

2024

10 篇文章

2023

6 篇文章

  • DevBG 标题页,写着“Exploring Python's Versatility: Syntax, Object-Oriented Programming, and Machine Learning Applications”,演讲者 Teo Parashkevov,蓝色背景上附其肖像
    Python

    DevBG 演讲

    我在 DevBG 上关于 Python 多才多艺的演讲:语法与上下文管理器、装饰器等特性,面向对象编程,以及 Python 在机器学习中的作用。

    5 分钟阅读
  • Keyset Pagination and Idempotent Event Dispatch
    EnglishAlgorithms

    Keyset Pagination and Idempotent Event Dispatch

    Two small algorithms that make a notification service boring in the best way: cursor pagination that cannot skip rows, and exactly-once-flavored dispatch built on a single SQL statement.

    5 分钟阅读
  • AI 大会横幅,带有 Confindustria Bulgaria 标志、UniCredit Bulbank、Santorelli、Deloitte、Protiviti 等赞助商标志,以及一个手持放大镜的插画机器人
    Python

    Confindustria 演讲

    在 Confindustria Bulgaria 大会“企业 AI 应用”专题讨论中的笔记——我分享了 AI 与机器学习如何驱动制造业创新,以及如何与 SAP 等 MRP/ERP 系统集成。

    3 分钟阅读

2022

1 篇文章

  • 标题卡片,写着《Analysis of Timeseries forecasting with Facebook Prophet》,带有 Facebook、Prophet 和 Meta 的标志,以及论文作者 Sean J. Taylor 和 Benjamin Letham
    AI

    Facebook Prophet 库论文评述

    评述 Facebook 的 Sean J. Taylor 与 Benjamin Letham 的论文《Forecasting at Scale》,涵盖 Prophet 模型的趋势、季节性与节假日组件、分析师参与的建模方式,以及预测的自动评估。

    14 分钟阅读

2021

1 篇文章

  • 插图中橙色杯子里叠着一摞白色盘子,旁边是深色二进制数字背景上的文字“Data Structures - Stack”
    Python

    数据结构——Python 中的栈

    Python 栈数据结构入门:顺序实现与链式实现、push/pop 速度对比,以及两个应用——中缀转后缀表达式转换器和迷宫求解器。

    8 分钟阅读

2018

2 篇文章

  • 《数据结构——分布式哈希表》封面图:数据项经过哈希函数生成键,并分布到网络中的各个节点上

    数据结构——分布式哈希表

    讲解分布式哈希表(DHT)的概念与性质、优缺点,并通过一个循序渐进的例子演示如何构建、变更和查询一个简单的 DHT。

    7 分钟阅读
  • 标题卡片写着“Data Structures Linear List”,深色键盘背景上有由红色箭头连接的、标着 DATA 的链表节点链
    Python

    数据结构——Python 中的线性表

    Python 线性表入门:对比顺序表(数组)与链表,推导插入和删除操作的平均代价,并实现链表插入、删除与多项式加法。

    10 分钟阅读

2017

2 篇文章

  • Telegram 标志与一个蓝色齿轮中的机器人图标由一条线相连,下方写着 Telegram Bot
    C/C++

    用 C/C++ 实现资源管理系统

    使用 Telegram Bot API 在 C/C++ 中创建系统资源信息消息系统的指南——子进程监视资源文件,systemd 服务管理机器人。

    18 分钟阅读
  • 标题卡片,上面写着“Linux 上的 SSH:免密码连接”,深紫色背景上有由蓝色线条和节点组成的网络图案
    Linux

    免密码 SSH 登录

    分步教程:使用 SSH 密钥代替密码,实现远程机器登录过程的自动化。

    1 分钟阅读