<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Posts on Niweea’s Blog</title><link>https://niweea.github.io/posts/</link><description>Recent content in Posts on Niweea’s Blog</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 07 Jun 2026 10:00:00 +0800</lastBuildDate><atom:link href="https://niweea.github.io/posts/index.xml" rel="self" type="application/rss+xml"/><item><title>【转译】从零开始：用 Python 构建一个 AI Agent</title><link>https://niweea.github.io/posts/agent/building_ai_agent/</link><pubDate>Sat, 04 Oct 2025 18:12:22 +0800</pubDate><guid>https://niweea.github.io/posts/agent/building_ai_agent/</guid><description>&lt;p&gt;此文翻译自Leonie Monigatti的 &lt;a href="https://www.leoniemonigatti.com/blog/ai-agent-from-scratch-in-python.html" target="_blank" rel="noreferrer"&gt;Building an AI agent from scratch in Python&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;如何通过大模型 API 实现一个不依赖框架的单智能体系统(a single AI agent)。&lt;/p&gt;</description></item><item><title>GraalVM入门</title><link>https://niweea.github.io/posts/graalvm/</link><pubDate>Thu, 11 Apr 2024 09:58:32 +0800</pubDate><guid>https://niweea.github.io/posts/graalvm/</guid><description>从 HotSpot 生命周期到 GraalVM 架构、Native Image 静态编译与命令行/Maven 构建入门。</description></item><item><title>从Java 8到Java 21的新特性</title><link>https://niweea.github.io/posts/java/new-features/</link><pubDate>Tue, 10 Oct 2023 10:55:21 +0800</pubDate><guid>https://niweea.github.io/posts/java/new-features/</guid><description>&lt;h2 id="modules-模块化" class="relative group"&gt;modules 模块化 &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#modules-%e6%a8%a1%e5%9d%97%e5%8c%96" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;模块化在包之上提供更高层次的聚合。&lt;/p&gt;</description></item><item><title>Linux ss 命令详解</title><link>https://niweea.github.io/posts/network/ss/</link><pubDate>Sun, 29 Jan 2023 00:00:00 +0000</pubDate><guid>https://niweea.github.io/posts/network/ss/</guid><description>&lt;h2 id="简介" class="relative group"&gt;简介 &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#%e7%ae%80%e4%bb%8b" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;code&gt;ss&lt;/code&gt;（Socket Statistics）是 Linux 系统中用于查看网络连接状态的现代工具，是 &lt;code&gt;netstat&lt;/code&gt; 的官方替代品，由 &lt;code&gt;iproute2&lt;/code&gt; 工具包提供。&lt;/p&gt;</description></item><item><title>Linux netstat 命令详解</title><link>https://niweea.github.io/posts/network/netstat/</link><pubDate>Sun, 15 Jan 2023 00:00:00 +0000</pubDate><guid>https://niweea.github.io/posts/network/netstat/</guid><description>&lt;h2 id="简介" class="relative group"&gt;简介 &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#%e7%ae%80%e4%bb%8b" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;code&gt;netstat&lt;/code&gt;（network statistics）是 Linux 系统下一款用于查看网络状态信息的经典工具。它可以显示网络连接、路由表、接口统计、伪装连接、多播成员等信息，是网络排查和运维监控的常用利器。&lt;/p&gt;</description></item><item><title>Linux lsof 命令详解</title><link>https://niweea.github.io/posts/network/lsof/</link><pubDate>Thu, 12 Jan 2023 00:00:00 +0000</pubDate><guid>https://niweea.github.io/posts/network/lsof/</guid><description>&lt;h2 id="简介" class="relative group"&gt;简介 &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#%e7%ae%80%e4%bb%8b" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;code&gt;lsof&lt;/code&gt;（List Open Files）用于列出当前系统上进程已打开的&lt;strong&gt;文件描述符&lt;/strong&gt;及其关联信息。在 Unix/Linux 中，「一切皆文件」：普通文件、目录、块设备、管道、套接字等都会以文件形式出现在进程的文件描述符表中，因此 &lt;code&gt;lsof&lt;/code&gt; 不仅能查磁盘上的文件，还能查 &lt;strong&gt;网络连接、管道、设备节点&lt;/strong&gt; 等。&lt;/p&gt;</description></item><item><title>JVM字节码理解</title><link>https://niweea.github.io/posts/java/bytecode/jvm_bytecode/</link><pubDate>Sun, 04 Dec 2022 18:12:22 +0800</pubDate><guid>https://niweea.github.io/posts/java/bytecode/jvm_bytecode/</guid><description>从 class 文件结构、常量池到字节码指令，结合 javap 与编译器行为理解 JVM 如何执行 Java 代码。</description></item><item><title>你必须知道的DNS那些事</title><link>https://niweea.github.io/posts/network/dns/</link><pubDate>Tue, 19 Jul 2022 11:10:06 +0800</pubDate><guid>https://niweea.github.io/posts/network/dns/</guid><description>&lt;p&gt;&lt;code&gt;DNS&lt;/code&gt;（Domain Name System） 域名系统&lt;/p&gt;
&lt;h1 id="基本概念" class="relative group"&gt;基本概念 &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#%e5%9f%ba%e6%9c%ac%e6%a6%82%e5%bf%b5" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h1&gt;&lt;p&gt;域名系统 (DNS) 将人类可读的域名 (例如，www.baidu.com) 转换为机器可读的 IP 地址。&lt;/p&gt;</description></item><item><title>Even Fibonacci numbers</title><link>https://niweea.github.io/posts/projecteuler/problem_2/</link><pubDate>Tue, 18 Jan 2022 23:52:31 +0800</pubDate><guid>https://niweea.github.io/posts/projecteuler/problem_2/</guid><description>&lt;h1 id="even-fibonacci-numbers" class="relative group"&gt;Even Fibonacci numbers &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#even-fibonacci-numbers" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h1&gt;&lt;p&gt;Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:&lt;/p&gt;</description></item><item><title>虚拟化与容器化漫谈</title><link>https://niweea.github.io/posts/virtualization_container/</link><pubDate>Wed, 03 Nov 2021 00:52:56 +0800</pubDate><guid>https://niweea.github.io/posts/virtualization_container/</guid><description>&lt;h2 id="虚拟化的概念" class="relative group"&gt;虚拟化的概念 &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#%e8%99%9a%e6%8b%9f%e5%8c%96%e7%9a%84%e6%a6%82%e5%bf%b5" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h3 id="什么是虚拟化-virtualization" class="relative group"&gt;什么是虚拟化 Virtualization？ &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#%e4%bb%80%e4%b9%88%e6%98%af%e8%99%9a%e6%8b%9f%e5%8c%96-virtualization" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;虚拟化是一种技术，可以利用以往局限于硬件的资源来创建有用的 IT 服务。它让您能够将物理计算机的工作能力分配给多个用户或环境，从而充分利用计算机的所有能力。&lt;/p&gt;</description></item><item><title>你必须知道的排重策略</title><link>https://niweea.github.io/posts/exclude_duplicate/</link><pubDate>Tue, 08 Jun 2021 18:59:58 +0800</pubDate><guid>https://niweea.github.io/posts/exclude_duplicate/</guid><description>&lt;h2 id="精准去重" class="relative group"&gt;精准去重 &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#%e7%b2%be%e5%87%86%e5%8e%bb%e9%87%8d" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;Array、Set、Map、BitSet、Tree等&lt;/p&gt;</description></item><item><title>你必须知道的位运算</title><link>https://niweea.github.io/posts/bit_operation/</link><pubDate>Fri, 04 Jun 2021 18:35:04 +0800</pubDate><guid>https://niweea.github.io/posts/bit_operation/</guid><description>常用位运算技巧：符号判断、2 的幂、统计 1 的个数，以及 LeetCode 136/137 题解。</description></item><item><title>爱生气的书店老板</title><link>https://niweea.github.io/posts/leetcode/grumpy_bookstore_owner/</link><pubDate>Wed, 24 Feb 2021 18:10:06 +0800</pubDate><guid>https://niweea.github.io/posts/leetcode/grumpy_bookstore_owner/</guid><description>&lt;p&gt;今天，书店老板有一家店打算试营业 customers.length 分钟。每分钟都有一些顾客（customers[i]）会进入书店，所有这些顾客都会在那一分钟结束后离开。&lt;/p&gt;
&lt;p&gt;在某些时候，书店老板会生气。 如果书店老板在第 i 分钟生气，那么 grumpy[i] = 1，否则 grumpy[i] = 0。 当书店老板生气时，那一分钟的顾客就会不满意，不生气则他们是满意的。&lt;/p&gt;</description></item><item><title>Rust奇奇怪怪的语法</title><link>https://niweea.github.io/posts/rust/grammar/</link><pubDate>Thu, 28 Jan 2021 19:26:32 +0800</pubDate><guid>https://niweea.github.io/posts/rust/grammar/</guid><description>&lt;p&gt;Rust 语法奇奇怪怪的写法。&lt;/p&gt;
&lt;h1 id="-操作符-error-propagation" class="relative group"&gt;&lt;code&gt;?&lt;/code&gt; 操作符 （Error propagation） &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#-%e6%93%8d%e4%bd%9c%e7%ac%a6-error-propagation" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h1&gt;&lt;p&gt;函数调用后带 &lt;code&gt;?&lt;/code&gt; 什么含义&lt;/p&gt;</description></item><item><title>在线工具类网站</title><link>https://niweea.github.io/posts/tools/</link><pubDate>Wed, 18 Nov 2020 10:31:46 +0800</pubDate><guid>https://niweea.github.io/posts/tools/</guid><description>&lt;h1 id="工具类网站" class="relative group"&gt;工具类网站 &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#%e5%b7%a5%e5%85%b7%e7%b1%bb%e7%bd%91%e7%ab%99" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h3 id="图片压缩" class="relative group"&gt;图片压缩 &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#%e5%9b%be%e7%89%87%e5%8e%8b%e7%bc%a9" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://tinify.cn/" target="_blank" rel="noreferrer"&gt;tinify.cn&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Multiples of 3 and 5</title><link>https://niweea.github.io/posts/projecteuler/problem_1/</link><pubDate>Wed, 28 Oct 2020 17:40:00 +0800</pubDate><guid>https://niweea.github.io/posts/projecteuler/problem_1/</guid><description>&lt;h1 id="multiples-of-3-and-5" class="relative group"&gt;Multiples of 3 and 5 &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#multiples-of-3-and-5" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h1&gt;&lt;p&gt;If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.&lt;/p&gt;</description></item><item><title>压测工具</title><link>https://niweea.github.io/posts/benchmark/</link><pubDate>Wed, 28 Oct 2020 09:00:00 +0800</pubDate><guid>https://niweea.github.io/posts/benchmark/</guid><description>&lt;p&gt;HTTP 接口压测是评估服务容量和延迟的常用手段。命令行场景下，&lt;code&gt;ab&lt;/code&gt; 适合快速验证，&lt;code&gt;wrk&lt;/code&gt; 则在高并发和请求定制上更强。本文介绍两者的基本用法，并重点说明 wrk 的 Lua 脚本扩展。&lt;/p&gt;
&lt;h1 id="ab" class="relative group"&gt;ab &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#ab" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h1&gt;&lt;p&gt;Apache Benchmark（&lt;code&gt;ab&lt;/code&gt;）来自 Apache HTTP Server 工具集，安装简单、上手快，适合对单个 URL 做快速冒烟压测。&lt;/p&gt;</description></item></channel></rss>