<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0"><channel><title>十六的小记</title><link>http://www.hex-coder.icu/</link><atom:link href="http://www.hex-coder.icu/rss.xml" rel="self" type="application/rss+xml"/><description>十六的小记</description><generator>Halo v2.23.3</generator><language>zh-cn</language><image><url>/upload/admin.jpg</url><title>十六的小记</title><link>http://www.hex-coder.icu/</link></image><lastBuildDate>Thu, 23 Apr 2026 15:19:52 GMT</lastBuildDate><item><title><![CDATA[openclaw 接入飞书]]></title><link>/archives/openclaw-install-feishu</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=openclaw%20%E6%8E%A5%E5%85%A5%E9%A3%9E%E4%B9%A6&amp;url=/archives/openclaw-install-feishu" width="1" height="1" alt="" style="opacity:0;">]]></description><guid isPermaLink="false">/archives/openclaw-install-feishu</guid><dc:creator>十六</dc:creator><category>AI大模型原理和应用</category><pubDate>Tue, 10 Mar 2026 04:45:55 GMT</pubDate></item><item><title><![CDATA[windows 部署 openclaw]]></title><link>/archives/windows-install-openclaw</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=windows%20%E9%83%A8%E7%BD%B2%20openclaw&amp;url=/archives/windows-install-openclaw" width="1" height="1" alt="" style="opacity:0;">]]></description><guid isPermaLink="false">/archives/windows-install-openclaw</guid><dc:creator>十六</dc:creator><category>AI大模型原理和应用</category><pubDate>Tue, 10 Mar 2026 04:37:35 GMT</pubDate></item><item><title><![CDATA[Claude Code 接入智普 GLM-4.6]]></title><link>/archives/claude-code-jie-ru-zhi-pu-glm-4.6</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=Claude%20Code%20%E6%8E%A5%E5%85%A5%E6%99%BA%E6%99%AE%20GLM-4.6&amp;url=/archives/claude-code-jie-ru-zhi-pu-glm-4.6" width="1" height="1" alt="" style="opacity:0;">]]></description><guid isPermaLink="false">/archives/claude-code-jie-ru-zhi-pu-glm-4.6</guid><dc:creator>十六</dc:creator><category>Agentic Coding</category><pubDate>Fri, 10 Oct 2025 15:55:55 GMT</pubDate></item><item><title><![CDATA[WSL 安装与卸载]]></title><link>/archives/wsl-an-zhuang-yu-xie-zai</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=WSL%20%E5%AE%89%E8%A3%85%E4%B8%8E%E5%8D%B8%E8%BD%BD&amp;url=/archives/wsl-an-zhuang-yu-xie-zai" width="1" height="1" alt="" style="opacity:0;">]]></description><guid isPermaLink="false">/archives/wsl-an-zhuang-yu-xie-zai</guid><dc:creator>十六</dc:creator><category>linux</category><pubDate>Fri, 10 Oct 2025 15:52:00 GMT</pubDate></item><item><title><![CDATA[什么是 MCP 协议，其在 AI 大模型系统中的作用是什么？]]></title><link>/archives/shi-me-shi-mcpxie-yi-qi-zai-aida-mo-xing-xi-tong-zhong-de-zuo-yong-shi-shi-me</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=%E4%BB%80%E4%B9%88%E6%98%AF%20MCP%20%E5%8D%8F%E8%AE%AE%EF%BC%8C%E5%85%B6%E5%9C%A8%20AI%20%E5%A4%A7%E6%A8%A1%E5%9E%8B%E7%B3%BB%E7%BB%9F%E4%B8%AD%E7%9A%84%E4%BD%9C%E7%94%A8%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F&amp;url=/archives/shi-me-shi-mcpxie-yi-qi-zai-aida-mo-xing-xi-tong-zhong-de-zuo-yong-shi-shi-me" width="1" height="1" alt="" style="opacity:0;">回答重点 MCP（Model Context Protocol，模型上下文协议）起源于 2024 年 11 月 25 日 Anthropic 发布的文章：Introducing the Model Context Protocol。旨在为大型语言模型（LLMs）和AI助手提供一个统一、标准化的接口，]]></description><guid isPermaLink="false">/archives/shi-me-shi-mcpxie-yi-qi-zai-aida-mo-xing-xi-tong-zhong-de-zuo-yong-shi-shi-me</guid><dc:creator>十六</dc:creator><category>AI大模型原理和应用</category><pubDate>Fri, 26 Sep 2025 15:42:51 GMT</pubDate></item><item><title><![CDATA[什么是 RAG？RAG 的主要流程是什么？]]></title><link>/archives/shi-me-shi-rag-ragde-zhu-yao-liu-cheng-shi-shi-me</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=%E4%BB%80%E4%B9%88%E6%98%AF%20RAG%EF%BC%9FRAG%20%E7%9A%84%E4%B8%BB%E8%A6%81%E6%B5%81%E7%A8%8B%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F&amp;url=/archives/shi-me-shi-rag-ragde-zhu-yao-liu-cheng-shi-shi-me" width="1" height="1" alt="" style="opacity:0;">回答重点 RAG（Retrieval Augmented Generation，检索增强生成）是一种结合信息检索和生成式模型的技术方案。其主要流程包括两个核心环节： 检索（Retrieval）：基于用户的输入，从外部知识库中检索与查询相关的文本片段，通常使用向量化表示和向量数据库进行语义匹配； 生成]]></description><guid isPermaLink="false">/archives/shi-me-shi-rag-ragde-zhu-yao-liu-cheng-shi-shi-me</guid><dc:creator>十六</dc:creator><category>AI大模型原理和应用</category><pubDate>Thu, 25 Sep 2025 16:35:49 GMT</pubDate></item><item><title><![CDATA[03 单向链表]]></title><link>/archives/03-dan-xiang-lian-biao</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=03%20%E5%8D%95%E5%90%91%E9%93%BE%E8%A1%A8&amp;url=/archives/03-dan-xiang-lian-biao" width="1" height="1" alt="" style="opacity:0;">单向链表是一种线性数据结构，其每个节点包含数据和指向下一节点的指针。适用于频繁插入和删除操作的场景]]></description><guid isPermaLink="false">/archives/03-dan-xiang-lian-biao</guid><dc:creator>十六</dc:creator><category>数据结构和算法</category><pubDate>Sat, 31 May 2025 15:46:32 GMT</pubDate></item><item><title><![CDATA[02 字符串]]></title><link>/archives/wei-ming-ming-wen-zhang</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=02%20%E5%AD%97%E7%AC%A6%E4%B8%B2&amp;url=/archives/wei-ming-ming-wen-zhang" width="1" height="1" alt="" style="opacity:0;">字符串是由字符组成的有限序列，在计算机中通常以字符数组形式存储，支持拼接、查找、替换等操作]]></description><guid isPermaLink="false">/archives/wei-ming-ming-wen-zhang</guid><dc:creator>十六</dc:creator><category>数据结构和算法</category><pubDate>Fri, 30 May 2025 15:00:46 GMT</pubDate></item><item><title><![CDATA[01 数组]]></title><link>/archives/wei-ming-ming-wen-zhang</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=01%20%E6%95%B0%E7%BB%84&amp;url=/archives/wei-ming-ming-wen-zhang" width="1" height="1" alt="" style="opacity:0;">数组是最基础的数据结构，在内存中连续存储，支持随机访问。适用于需要频繁按索引访问元素的场景]]></description><guid isPermaLink="false">/archives/wei-ming-ming-wen-zhang</guid><dc:creator>十六</dc:creator><category>数据结构和算法</category><pubDate>Tue, 27 May 2025 15:56:57 GMT</pubDate></item><item><title><![CDATA[00 初探算法和数据结构]]></title><link>/archives/00-chu-tan-suan-fa-he-shu-ju-jie-gou</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=00%20%E5%88%9D%E6%8E%A2%E7%AE%97%E6%B3%95%E5%92%8C%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84&amp;url=/archives/00-chu-tan-suan-fa-he-shu-ju-jie-gou" width="1" height="1" alt="" style="opacity:0;">简单来说，算法就是解决问题的一系列方法]]></description><guid isPermaLink="false">/archives/00-chu-tan-suan-fa-he-shu-ju-jie-gou</guid><dc:creator>十六</dc:creator><category>数据结构和算法</category><pubDate>Tue, 27 May 2025 15:50:29 GMT</pubDate></item><item><title><![CDATA[pytorch训练模型时，检测不到GPU（机器本身包含GPU）]]></title><link>/archives/pytorchxun-lian-mo-xing-shi-jian-ce-bu-dao-gpu-ji-qi-ben-shen-bao-han-gpu</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=pytorch%E8%AE%AD%E7%BB%83%E6%A8%A1%E5%9E%8B%E6%97%B6%EF%BC%8C%E6%A3%80%E6%B5%8B%E4%B8%8D%E5%88%B0GPU%EF%BC%88%E6%9C%BA%E5%99%A8%E6%9C%AC%E8%BA%AB%E5%8C%85%E5%90%ABGPU%EF%BC%89&amp;url=/archives/pytorchxun-lian-mo-xing-shi-jian-ce-bu-dao-gpu-ji-qi-ben-shen-bao-han-gpu" width="1" height="1" alt="" style="opacity:0;">如果机器存在GPU，但就返回false，很可能的原因是安装库的时候使用的是清华镜像源，导致下载的是对应CPU版本的torch和torchvision，而不是GPU版本（我自己就是这种情况），卸载重装即可]]></description><guid isPermaLink="false">/archives/pytorchxun-lian-mo-xing-shi-jian-ce-bu-dao-gpu-ji-qi-ben-shen-bao-han-gpu</guid><dc:creator>十六</dc:creator><enclosure url="/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fimage-tnpi.png&amp;size=m" type="image/jpeg" length="0"/><category>默认分类</category><pubDate>Mon, 5 May 2025 15:47:42 GMT</pubDate></item><item><title><![CDATA[MySQL 事务的二阶段提交是什么？]]></title><link>/archives/mysql-shi-wu-de-er-jie-duan-ti-jiao-shi-shi-me</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=MySQL%20%E4%BA%8B%E5%8A%A1%E7%9A%84%E4%BA%8C%E9%98%B6%E6%AE%B5%E6%8F%90%E4%BA%A4%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F&amp;url=/archives/mysql-shi-wu-de-er-jie-duan-ti-jiao-shi-shi-me" width="1" height="1" alt="" style="opacity:0;">MySQL事务的二阶段提交是指在MySQL中，为了确保redolog（重做日志）和binlog（二进制日志）之间的一致性，使用的一种机制。MySQL通过二阶段提交来保证在崩溃恢复（crash recovery）时，不会出现数据丢失或数据不一致的问题。]]></description><guid isPermaLink="false">/archives/mysql-shi-wu-de-er-jie-duan-ti-jiao-shi-shi-me</guid><dc:creator>十六</dc:creator><category>数据库</category><pubDate>Mon, 17 Mar 2025 16:09:21 GMT</pubDate></item><item><title><![CDATA[MySQL 中如果发生死锁应该如何解决？]]></title><link>/archives/wei-ming-ming-wen-zhang</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=MySQL%20%E4%B8%AD%E5%A6%82%E6%9E%9C%E5%8F%91%E7%94%9F%E6%AD%BB%E9%94%81%E5%BA%94%E8%AF%A5%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%EF%BC%9F&amp;url=/archives/wei-ming-ming-wen-zhang" width="1" height="1" alt="" style="opacity:0;">MySQL自带死锁检测机制（innodb_deadlock_detect），当检测到死锁时，数据库会自动回滚其中一个事务，以解除死锁；通常会回滚事务中持有资源最少的那个。 MySQL也有锁超时的相关参数（innodb_lock_wait_timeout），当获取锁的等待时间超过阈值，就会释放锁进行回滚。]]></description><guid isPermaLink="false">/archives/wei-ming-ming-wen-zhang</guid><dc:creator>十六</dc:creator><category>数据库</category><pubDate>Mon, 17 Mar 2025 16:08:28 GMT</pubDate></item><item><title><![CDATA[MySQL 中有哪些锁类型？]]></title><link>/archives/mysql-zhong-you-na-xie-suo-lei-xing</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=MySQL%20%E4%B8%AD%E6%9C%89%E5%93%AA%E4%BA%9B%E9%94%81%E7%B1%BB%E5%9E%8B%EF%BC%9F&amp;url=/archives/mysql-zhong-you-na-xie-suo-lei-xing" width="1" height="1" alt="" style="opacity:0;">InnoDB默认支持行锁，锁粒度更细，提升并发性能]]></description><guid isPermaLink="false">/archives/mysql-zhong-you-na-xie-suo-lei-xing</guid><dc:creator>十六</dc:creator><category>数据库</category><pubDate>Mon, 17 Mar 2025 16:03:51 GMT</pubDate></item><item><title><![CDATA[数据库的脏读、不可重复读和幻读分别是什么？]]></title><link>/archives/shu-ju-ku-de-zang-du-bu-ke-chong-fu-du-he-huan-du-fen-bie-shi-shi-me</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=%E6%95%B0%E6%8D%AE%E5%BA%93%E7%9A%84%E8%84%8F%E8%AF%BB%E3%80%81%E4%B8%8D%E5%8F%AF%E9%87%8D%E5%A4%8D%E8%AF%BB%E5%92%8C%E5%B9%BB%E8%AF%BB%E5%88%86%E5%88%AB%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F&amp;url=/archives/shu-ju-ku-de-zang-du-bu-ke-chong-fu-du-he-huan-du-fen-bie-shi-shi-me" width="1" height="1" alt="" style="opacity:0;">幻读是指在事务期间，对于数据总量的突然增加或减少，将其他事务提交的读取到了（针对数据的数量）； 不可重复读是指对于同一条数据，在事务执行期间，这条数据的字段值发生了变化，读取到了其他事务提交修改的数据（针对数据的内容）。]]></description><guid isPermaLink="false">/archives/shu-ju-ku-de-zang-du-bu-ke-chong-fu-du-he-huan-du-fen-bie-shi-shi-me</guid><dc:creator>十六</dc:creator><category>数据库</category><pubDate>Sun, 16 Mar 2025 16:05:31 GMT</pubDate></item><item><title><![CDATA[MySQL 中的事务隔离级别有哪些？]]></title><link>/archives/mysql-zhong-de-shi-wu-ge-chi-ji-bie-you-na-xie</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=MySQL%20%E4%B8%AD%E7%9A%84%E4%BA%8B%E5%8A%A1%E9%9A%94%E7%A6%BB%E7%BA%A7%E5%88%AB%E6%9C%89%E5%93%AA%E4%BA%9B%EF%BC%9F&amp;url=/archives/mysql-zhong-de-shi-wu-ge-chi-ji-bie-you-na-xie" width="1" height="1" alt="" style="opacity:0;">较低的隔离级别提升了并发性，但可能导致数据不一致；较高的隔离级别能保证数据一致，但降低了并发性。所以在设计应用时，需要在数据一致性和性能之间找到平衡。 一般互联网大厂会选择读已提交级别。]]></description><guid isPermaLink="false">/archives/mysql-zhong-de-shi-wu-ge-chi-ji-bie-you-na-xie</guid><dc:creator>十六</dc:creator><category>数据库</category><pubDate>Sun, 16 Mar 2025 16:04:15 GMT</pubDate></item><item><title><![CDATA[MySQL 默认的事务隔离级别是什么？为什么选择这个级别？]]></title><link>/archives/wei-ming-ming-wen-zhang</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=MySQL%20%E9%BB%98%E8%AE%A4%E7%9A%84%E4%BA%8B%E5%8A%A1%E9%9A%94%E7%A6%BB%E7%BA%A7%E5%88%AB%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F%E4%B8%BA%E4%BB%80%E4%B9%88%E9%80%89%E6%8B%A9%E8%BF%99%E4%B8%AA%E7%BA%A7%E5%88%AB%EF%BC%9F&amp;url=/archives/wei-ming-ming-wen-zhang" width="1" height="1" alt="" style="opacity:0;">MySQL默认的隔离级别是可重复读（Repeatable Read），即RR]]></description><guid isPermaLink="false">/archives/wei-ming-ming-wen-zhang</guid><dc:creator>十六</dc:creator><category>数据库</category><pubDate>Sun, 16 Mar 2025 16:03:21 GMT</pubDate></item><item><title><![CDATA[MySQL 是如何实现事务的？]]></title><link>/archives/mysql-shi-ru-he-shi-xian-shi-wu-de</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=MySQL%20%E6%98%AF%E5%A6%82%E4%BD%95%E5%AE%9E%E7%8E%B0%E4%BA%8B%E5%8A%A1%E7%9A%84%EF%BC%9F&amp;url=/archives/mysql-shi-ru-he-shi-xian-shi-wu-de" width="1" height="1" alt="" style="opacity:0;">MySQL主要是通过锁、redolog、undolog、和MVCC来实现事务。]]></description><guid isPermaLink="false">/archives/mysql-shi-ru-he-shi-xian-shi-wu-de</guid><dc:creator>十六</dc:creator><category>数据库</category><pubDate>Sat, 15 Mar 2025 15:34:16 GMT</pubDate></item><item><title><![CDATA[MySQL 中的 MVCC 是什么？]]></title><link>/archives/mysql-zhong-de-mvcc-shi-shi-me</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=MySQL%20%E4%B8%AD%E7%9A%84%20MVCC%20%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F&amp;url=/archives/mysql-zhong-de-mvcc-shi-shi-me" width="1" height="1" alt="" style="opacity:0;">MVCC（Multi-Version Concurrency Control），多版本并发控制，是一种并发控制机制，允许多个事务同时读取和写入数据库，而无需互相等待，从而提升数据库的并发性能。]]></description><guid isPermaLink="false">/archives/mysql-zhong-de-mvcc-shi-shi-me</guid><dc:creator>十六</dc:creator><category>数据库</category><pubDate>Sat, 15 Mar 2025 15:33:20 GMT</pubDate></item><item><title><![CDATA[MySQL 中的日志类型有哪些？binlog、redo log 和 undo log 的作用和区别是什么？]]></title><link>/archives/mysql-zhong-de-ri-zhi-lei-xing-you-na-xie-binlog</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=MySQL%20%E4%B8%AD%E7%9A%84%E6%97%A5%E5%BF%97%E7%B1%BB%E5%9E%8B%E6%9C%89%E5%93%AA%E4%BA%9B%EF%BC%9Fbinlog%E3%80%81redo%20log%20%E5%92%8C%20undo%20log%20%E7%9A%84%E4%BD%9C%E7%94%A8%E5%92%8C%E5%8C%BA%E5%88%AB%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F&amp;url=/archives/mysql-zhong-de-ri-zhi-lei-xing-you-na-xie-binlog" width="1" height="1" alt="" style="opacity:0;">binglog和redolog都是MySQL中的二进制日志，但是他们的作用和实现方式有所不同。binlog是MySQL记录所有的操作，而redolog是用于保证数据的一致性和持久性。此外，binlog是逻辑日志，redolog是物理日志。binlog记录的是SQL语句，而redolog记录的是数据页的修改，所以binlog可以跨平台使用，而redolog不能。undolog和redolog的区别是，undolog是用于回滚操作的，而redolog是用于恢复数据的。]]></description><guid isPermaLink="false">/archives/mysql-zhong-de-ri-zhi-lei-xing-you-na-xie-binlog</guid><dc:creator>十六</dc:creator><category>数据库</category><pubDate>Sat, 15 Mar 2025 15:32:35 GMT</pubDate></item></channel></rss>