
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>认知.xKnow</title>
    <link>https://xknow.net/</link>
    
    <image>
      <url>https://xknow.net/icon.png</url>
      <title>认知.xKnow</title>
      <link>https://xknow.net/</link>
    </image>
    
    <atom:link href="/rss.xml" rel="self" type="application/rss+xml"/>
    
    <description>😉Stay hungry. Stay foolish.</description>
    <pubDate>Fri, 02 Feb 2024 17:12:53 GMT</pubDate>
    <generator>http://hexo.io/</generator>
    
    <item>
      <title>使用 Tailscale 异地组网搭建 K3s 集群</title>
      <link>https://xknow.net/deploy-k3s-cluster-over-tailscale/</link>
      <guid>https://xknow.net/deploy-k3s-cluster-over-tailscale/</guid>
      <pubDate>Wed, 31 Jan 2024 21:46:30 GMT</pubDate>
      <description>
      
        
        
          
          
            &lt;p&gt;前段时间在家里的小主机上安装了一个单节点的 K3s 作为未来的服务运行环境以及开发环境（&lt;del&gt;以及帕鲁服务器的运行环境&lt;/del&gt;），在使用的时候萌生了一个想法——是不是可以用家里的服务器与吃灰的羊毛云服务器一起组成一个 K3s 集群呢？&lt;/p&gt;
&lt;p&gt;打开 K3s
          
        
      
      </description>
      
      
      <comments>https://xknow.net/deploy-k3s-cluster-over-tailscale/#disqus_thread</comments>
    </item>
    
    <item>
      <title>写了一个叫 address-book 的玩具项目</title>
      <link>https://xknow.net/a-toy-project-called-address-book/</link>
      <guid>https://xknow.net/a-toy-project-called-address-book/</guid>
      <pubDate>Sat, 29 Apr 2023 10:42:45 GMT</pubDate>
      <description>
      
        
        
          
          
            &lt;p&gt;在实现 Packer Plugin 的时候，遇到了一个头疼的问题，就是一个新装好的 VM，如何感知它的 IP 地址呢？&lt;/p&gt;
&lt;p&gt;通常虚拟化软件都会通过在虚拟机中安装的 VM Tools 来进行 IP 的获取，但是各种 Linux
          
        
      
      </description>
      
      
      <comments>https://xknow.net/a-toy-project-called-address-book/#disqus_thread</comments>
    </item>
    
    <item>
      <title>如何开发一个 Packer 插件</title>
      <link>https://xknow.net/how-to-write-packer-plugin/</link>
      <guid>https://xknow.net/how-to-write-packer-plugin/</guid>
      <pubDate>Thu, 27 Apr 2023 22:20:01 GMT</pubDate>
      <description>
      
        
        
          
          
            &lt;h2 id=&quot;Packer-概述&quot;&gt;&lt;a href=&quot;#Packer-概述&quot; class=&quot;headerlink&quot; title=&quot;Packer 概述&quot;&gt;&lt;/a&gt;Packer 概述&lt;/h2&gt;&lt;h3 id=&quot;什么是-Packer&quot;&gt;&lt;a href=&quot;#什么是-Packer&quot;
          
        
      
      </description>
      
      
      <comments>https://xknow.net/how-to-write-packer-plugin/#disqus_thread</comments>
    </item>
    
    <item>
      <title>使用 Node.js 操作 CRD</title>
      <link>https://xknow.net/operate-crd-with-typescript/</link>
      <guid>https://xknow.net/operate-crd-with-typescript/</guid>
      <pubDate>Sat, 18 Dec 2021 21:50:02 GMT</pubDate>
      <description>
      
        
        
          
          
            &lt;p&gt;从来没想到自己会以别样的方式开始 Kubernetes 的正式学习和深入了解。&lt;/p&gt;
&lt;p&gt;几个月前开始慢慢进入云原生的领域，倒也只是简简单单地了解 Kubernetes。直到上个月，需要对接 K8s 的 CRD 来进行一些操作。让我以一种特殊的切入点，开始了 K8s
          
        
      
      </description>
      
      
      <comments>https://xknow.net/operate-crd-with-typescript/#disqus_thread</comments>
    </item>
    
    <item>
      <title>聊聊 PostgreSQL 中的逻辑复制</title>
      <link>https://xknow.net/logical-replication-in-postgresql/</link>
      <guid>https://xknow.net/logical-replication-in-postgresql/</guid>
      <pubDate>Sat, 13 Nov 2021 11:37:02 GMT</pubDate>
      <description>
      
        
        
          
          
            &lt;p&gt;好几个月前，由于业务需求用到了 PostgreSQL 的&lt;strong&gt;逻辑复制&lt;/strong&gt;（&lt;a href=&quot;https://www.postgresql.org/docs/10/logical-replication.html&quot; target=&quot;_blank&quot;
          
        
      
      </description>
      
      
      <comments>https://xknow.net/logical-replication-in-postgresql/#disqus_thread</comments>
    </item>
    
    <item>
      <title>进一步缩减成本——更换博客 CD 为 Github Actions</title>
      <link>https://xknow.net/refactor-blog-repo-storage-and-cd/</link>
      <guid>https://xknow.net/refactor-blog-repo-storage-and-cd/</guid>
      <pubDate>Thu, 11 Nov 2021 19:29:19 GMT</pubDate>
      <description>
      
        
        
          
          
            &lt;p&gt;先前使用自建 Gitea + Drone 作为本博客的，好久不更新博客，突然想到了 Github 私有仓库 + Github Actions，我直接可以省掉 Gitea + Drone 的服务器运行成本。那么说干就干。&lt;/p&gt;
&lt;h2
          
        
      
      </description>
      
      
      <comments>https://xknow.net/refactor-blog-repo-storage-and-cd/#disqus_thread</comments>
    </item>
    
    <item>
      <title>Projector 项目初体验</title>
      <link>https://xknow.net/jetbrains-projector-experience/</link>
      <guid>https://xknow.net/jetbrains-projector-experience/</guid>
      <pubDate>Fri, 12 Mar 2021 09:45:37 GMT</pubDate>
      <description>
      
        
        
          
          
            &lt;p&gt;「远程开发」在 VSCode 普及后已经不是一个新鲜的东西了，但是 IDE 界的龙头老大之一 Jetbrains 的 IDEA 系列迟迟没有顺应这一潮流。直到 Projector 项目的诞生。&lt;/p&gt;
&lt;p&gt;Projector
          
        
      
      </description>
      
      
      <comments>https://xknow.net/jetbrains-projector-experience/#disqus_thread</comments>
    </item>
    
    <item>
      <title>在 NestJS 中面向接口开发</title>
      <link>https://xknow.net/interface-oriented-programming-in-nestjs/</link>
      <guid>https://xknow.net/interface-oriented-programming-in-nestjs/</guid>
      <pubDate>Wed, 03 Feb 2021 19:04:56 GMT</pubDate>
      <description>
      
        
        
          
          
            &lt;p&gt;「当看到一只鸟走起来像鸭子、游泳起来像鸭子、叫起来也像鸭子，那么这只鸟就可以被称为鸭子。」&lt;/p&gt;
&lt;p&gt;相信很多人都知道「鸭子类型（Duck typing）」这个东西，它可以说是对面向接口开发最形象的一个例子了。在 NestJS
          
        
      
      </description>
      
      
      <comments>https://xknow.net/interface-oriented-programming-in-nestjs/#disqus_thread</comments>
    </item>
    
    <item>
      <title>如何从零开始设计一个契合自己业务需求的 NestJS 架构</title>
      <link>https://xknow.net/design-nestjs-architecture-with-bussiness/</link>
      <guid>https://xknow.net/design-nestjs-architecture-with-bussiness/</guid>
      <pubDate>Mon, 01 Feb 2021 21:56:36 GMT</pubDate>
      <description>
      
        
        
          
          
            &lt;p&gt;Node.js 后端框架那么多，但归根结底都太「简单」了。这种简单是指他们都是技术层面的抽象，并不很适合直接用于业务的开发，需要开发人员针对自己的业务场景进行一定的封装。&lt;/p&gt;
&lt;p&gt;使用 NestJS 的时候，其实也是如此的，但是 NestJS
          
        
      
      </description>
      
      
      <comments>https://xknow.net/design-nestjs-architecture-with-bussiness/#disqus_thread</comments>
    </item>
    
    <item>
      <title>打造一台自己的服务器</title>
      <link>https://xknow.net/make-a-linux-server/</link>
      <guid>https://xknow.net/make-a-linux-server/</guid>
      <pubDate>Wed, 30 Dec 2020 19:49:03 GMT</pubDate>
      <description>
      
        
        
          
          
            &lt;p&gt;有了新的 Air 之后，原来的 NUC 黑苹果连触摸板都落了灰。本来想着卖掉，然后由于忙忘记了。前几天突然想起它来，仔细想了一下，我还是满需要一台自己的局域网内的服务器的，而这个 NUC 正合适，虽说 CPU 性能弱了一些，但是有 32G
          
        
      
      </description>
      
      
      <comments>https://xknow.net/make-a-linux-server/#disqus_thread</comments>
    </item>
    
    <item>
      <title>自动化博客的写作流程</title>
      <link>https://xknow.net/automatic-blog-writing/</link>
      <guid>https://xknow.net/automatic-blog-writing/</guid>
      <pubDate>Fri, 04 Dec 2020 21:08:44 GMT</pubDate>
      <description>
      
        
        
          
          
            &lt;p&gt;昨天给 &lt;code&gt;Typora&lt;/code&gt; 配置了 &lt;code&gt;PicGo-Core&lt;/code&gt; 作为图床插件，突然感觉写博客的流程明朗了起来。&lt;/p&gt;
&lt;p&gt;结合已经完成的&lt;a
          
        
      
      </description>
      
      
      <comments>https://xknow.net/automatic-blog-writing/#disqus_thread</comments>
    </item>
    
    <item>
      <title>M1 芯片 Mac 初体验</title>
      <link>https://xknow.net/m1-mac-first-trail/</link>
      <guid>https://xknow.net/m1-mac-first-trail/</guid>
      <pubDate>Thu, 03 Dec 2020 21:54:13 GMT</pubDate>
      <description>
      
        
        
          
          
            &lt;p&gt;盼望了十几天的 MacBook Air 终于到了，M1 处理器版本。&lt;/p&gt;
&lt;p&gt;回到家迫不及待地开始使用、配置自己需要的环境，折腾了一个多小时，大概把日常使用 Mac 的 50% 场景配置好了，体验很流畅，没有一丝丝不爽。&lt;/p&gt;
&lt;h2 id=&quot;写稿环境&quot;&gt;&lt;a
          
        
      
      </description>
      
      
      <comments>https://xknow.net/m1-mac-first-trail/#disqus_thread</comments>
    </item>
    
    <item>
      <title>NestJS 使用 ws 模块的正确姿势</title>
      <link>https://xknow.net/native-websock-in-nestjs/</link>
      <guid>https://xknow.net/native-websock-in-nestjs/</guid>
      <pubDate>Sat, 21 Nov 2020 21:23:37 GMT</pubDate>
      <description>
      
        
        
          
          
            &lt;p&gt;最近在用 &lt;code&gt;WebSocket&lt;/code&gt; 搞点事情，但是又不想用 &lt;code&gt;socket.io&lt;/code&gt;，便决定用 ws 模块来实现后台的业务。无奈 NestJS 对 &lt;code&gt;ws&lt;/code&gt; 模块的文档描述有限，结合
          
        
      
      </description>
      
      
      <comments>https://xknow.net/native-websock-in-nestjs/#disqus_thread</comments>
    </item>
    
    <item>
      <title>为 NestJS 打造一个 MQTT 功能模块</title>
      <link>https://xknow.net/introduce-nest-mqtt/</link>
      <guid>https://xknow.net/introduce-nest-mqtt/</guid>
      <pubDate>Tue, 28 Apr 2020 23:56:51 GMT</pubDate>
      <description>
      
        
        
          
          
            &lt;p&gt;因为业务上的需要，在 NestJS 开发的后端中，需要一个 MQTT Client，来订阅并接收来自设备的消息。于是便诞生了这个插件。可能细心的同学会发现在 NestJS 的官方文档中，有一个 MQTT 的模块，但是很可惜，那个 MQTT 是 NestJS
          
        
      
      </description>
      
      
      <comments>https://xknow.net/introduce-nest-mqtt/#disqus_thread</comments>
    </item>
    
    <item>
      <title>【译】NestJS 进阶：如何构建一个完全动态的模块</title>
      <link>https://xknow.net/translate-advanced-nestjs-how-to-build-completely-dynamic-nestjs-modules-1370/</link>
      <guid>https://xknow.net/translate-advanced-nestjs-how-to-build-completely-dynamic-nestjs-modules-1370/</guid>
      <pubDate>Tue, 07 Apr 2020 17:14:06 GMT</pubDate>
      <description>
      
        
        
          
          
            &lt;p&gt;原文地址：&lt;a href=&quot;https://dev.to/nestjs/advanced-nestjs-how-to-build-completely-dynamic-nestjs-modules-1370&quot; target=&quot;_blank&quot;
          
        
      
      </description>
      
      
      <comments>https://xknow.net/translate-advanced-nestjs-how-to-build-completely-dynamic-nestjs-modules-1370/#disqus_thread</comments>
    </item>
    
    <item>
      <title>希望生活常是如此</title>
      <link>https://xknow.net/relaxing-day-2020-04-05/</link>
      <guid>https://xknow.net/relaxing-day-2020-04-05/</guid>
      <pubDate>Sun, 05 Apr 2020 23:14:28 GMT</pubDate>
      <description>
      
        
        
          
          
            &lt;p&gt;一觉醒来，收拾收拾，出门吃了早饭。阳光明媚的一天，开心。&lt;/p&gt;
&lt;p&gt;想了想中午吃什么，决定来一顿油炸盛宴，让爆炸的热量满足我的胃。家里还有不少虾，我可以炸虾吃，还有比较喜欢的香芋地瓜丸。于是在超市逛了一会儿，买了一包处理好的鸡柳，给我的午饭添砖加瓦。&lt;/p&gt;
&lt;p&gt;回家
          
        
      
      </description>
      
      
      <comments>https://xknow.net/relaxing-day-2020-04-05/#disqus_thread</comments>
    </item>
    
    <item>
      <title>回顾过去，展望未来（月报雏形）</title>
      <link>https://xknow.net/something-important/</link>
      <guid>https://xknow.net/something-important/</guid>
      <pubDate>Tue, 31 Mar 2020 22:09:45 GMT</pubDate>
      <description>
      
        
        
          
          
            &lt;p&gt;从重新开始写博客，不知不觉已经一个月了。这一个月的时间，发布了 6 篇不算太水的文章。&lt;/p&gt;
&lt;p&gt;回顾 &lt;a href=&quot;https://xknow.net/rebuild-again/&quot;&gt;时隔两年多，我又一次重建了我的博客 - 小记&lt;/a&gt;
          
        
      
      </description>
      
      
      <comments>https://xknow.net/something-important/#disqus_thread</comments>
    </item>
    
    <item>
      <title>最近在用的一个 Node.js 消息队列库 - Bull</title>
      <link>https://xknow.net/introduce-bull-queue/</link>
      <guid>https://xknow.net/introduce-bull-queue/</guid>
      <pubDate>Tue, 24 Mar 2020 20:09:28 GMT</pubDate>
      <description>
      
        
        
          
          
            &lt;h2 id=&quot;缘由&quot;&gt;&lt;a href=&quot;#缘由&quot; class=&quot;headerlink&quot; title=&quot;缘由&quot;&gt;&lt;/a&gt;缘由&lt;/h2&gt;&lt;p&gt;最近在工作中需要一个处理定时任务的库，起初找的是 Kue，但是 Kue 已经不维护了，同时还推荐了 &lt;code&gt;Bull&lt;/code&gt;
          
        
      
      </description>
      
      
      <comments>https://xknow.net/introduce-bull-queue/#disqus_thread</comments>
    </item>
    
    <item>
      <title>给 Any Rule 加一个新功能：图解正则</title>
      <link>https://xknow.net/anyrule-new-function-diagram/</link>
      <guid>https://xknow.net/anyrule-new-function-diagram/</guid>
      <pubDate>Sun, 22 Mar 2020 15:45:48 GMT</pubDate>
      <description>
      
        
        
          
          
            &lt;h2 id=&quot;初衷&quot;&gt;&lt;a href=&quot;#初衷&quot; class=&quot;headerlink&quot; title=&quot;初衷&quot;&gt;&lt;/a&gt;初衷&lt;/h2&gt;&lt;p&gt;正则表达式这个东西，一旦写出来，可能就不愿意再去看了，毕竟写容易，读很费劲了😂，所以很早之前就想着在 AnyRule
          
        
      
      </description>
      
      
      <comments>https://xknow.net/anyrule-new-function-diagram/#disqus_thread</comments>
    </item>
    
    <item>
      <title>使用 Git + Drone 自动发布我的 Hexo 博客</title>
      <link>https://xknow.net/hexo-ci/</link>
      <guid>https://xknow.net/hexo-ci/</guid>
      <pubDate>Wed, 18 Mar 2020 21:40:50 GMT</pubDate>
      <description>
      
        
        
          
          
            &lt;h2 id=&quot;从重建博客说起&quot;&gt;&lt;a href=&quot;#从重建博客说起&quot; class=&quot;headerlink&quot; title=&quot;从重建博客说起&quot;&gt;&lt;/a&gt;从重建博客说起&lt;/h2&gt;&lt;p&gt;从前段时间使用 Hexo 重建了博客开始，我一直使用 Typora 在本地写博客，Typora
          
        
      
      </description>
      
      
      <comments>https://xknow.net/hexo-ci/#disqus_thread</comments>
    </item>
    
  </channel>
</rss>
