<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>sinlov's blog</title><link>https://blog.sinlov.cn/</link><description>life is short just do it!</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>sinlvogmppt@gmail.com (sinlov)</managingEditor><webMaster>sinlvogmppt@gmail.com (sinlov)</webMaster><copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright><lastBuildDate>Thu, 11 Dec 2025 09:06:28 +0800</lastBuildDate><atom:link href="https://blog.sinlov.cn/index.xml" rel="self" type="application/rss+xml"/><item><title>macOS 调整系统菜单栏各个图标之间的间距</title><link>https://blog.sinlov.cn/posts/2025/12/11/macos-adjusts-the-spacing-between-icons-in-the-system-menu-bar/</link><pubDate>Thu, 11 Dec 2025 09:06:28 +0800</pubDate><author><name>sinlov</name></author><guid>https://blog.sinlov.cn/posts/2025/12/11/macos-adjusts-the-spacing-between-icons-in-the-system-menu-bar/</guid><description><![CDATA[<h2 id="存在问题" class="headerLink">
    <a href="#%e5%ad%98%e5%9c%a8%e9%97%ae%e9%a2%98" class="header-mark"></a>存在问题</h2><p>新款的 Macbook 都有刘海，刘海图标会有一定边距，缩小每个图标之间的间隔，这样就可以显示更多的图标</p>
<blockquote>
  <p>tips: 如果图标非常多，那还是会被刘海挡住，减少图标间距只能缓解一部分问题</p>]]></description></item><item><title>vscode vim 插件 插入模式下中文输入重复字符问题</title><link>https://blog.sinlov.cn/posts/2025/06/27/vscode-vim-plugin-repeated-character-problem-in-chinese-input-in-insert-mode/</link><pubDate>Fri, 27 Jun 2025 19:24:08 +0800</pubDate><author><name>sinlov</name></author><guid>https://blog.sinlov.cn/posts/2025/06/27/vscode-vim-plugin-repeated-character-problem-in-chinese-input-in-insert-mode/</guid><description><![CDATA[<h2 id="问题表现" class="headerLink">
    <a href="#%e9%97%ae%e9%a2%98%e8%a1%a8%e7%8e%b0" class="header-mark"></a>问题表现</h2><p>windows 系统更新后 在插入模式下使用 VSCodeVim 时，中文输入会重复字符</p>
<ul>
<li>跟踪该问题 见<a href="https://github.com/VSCodeVim/Vim/issues/9668" target="_blank" rel="noopener noreferrer">VSCodeVim issues #9668</a></li>
</ul>
<h3 id="表现问题环境" class="headerLink">
    <a href="#%e8%a1%a8%e7%8e%b0%e9%97%ae%e9%a2%98%e7%8e%af%e5%a2%83" class="header-mark"></a>表现问题环境</h3><div class="code-block highlight is-open show-line-numbers  tw-group tw-my-2">
  <div class="
    
    tw-flex 
    tw-flex-row
    tw-flex-1 
    tw-justify-between 
    tw-w-full tw-bg-bgColor-secondary
    ">      
    <button 
      class="
        code-block-button
        tw-mx-2 
        tw-flex
        tw-flex-row
        tw-flex-1"
      aria-hidden="true">
          <div class="group-[.is-open]:tw-rotate-90 tw-transition-[transform] tw-duration-500 tw-ease-in-out print:!tw-hidden tw-w-min tw-h-min tw-my-1 tw-mx-1"><svg class="icon"
    xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"/></svg></div>
          <p class="tw-select-none !tw-my-1">log</p>]]></description></item><item><title>godot 导出 HTML 本地调试</title><link>https://blog.sinlov.cn/posts/2025/05/05/godot-export-html-local-debugging/</link><pubDate>Mon, 05 May 2025 12:11:20 +0800</pubDate><author><name>sinlov</name></author><guid>https://blog.sinlov.cn/posts/2025/05/05/godot-export-html-local-debugging/</guid><description><![CDATA[<h2 id="webgl-导出不能直接运行原因" class="headerLink">
    <a href="#webgl-%e5%af%bc%e5%87%ba%e4%b8%8d%e8%83%bd%e7%9b%b4%e6%8e%a5%e8%bf%90%e8%a1%8c%e5%8e%9f%e5%9b%a0" class="header-mark"></a>webGL 导出不能直接运行原因</h2><p>默认导出的 HTML 页面不能直接使用，会报告 CORS 错误</p>
<ul>
<li><a href="https://docs.godotengine.org/en/latest/tutorials/export/exporting_for_web.html#doc-javascript-secure-contexts" target="_blank" rel="noopener noreferrer">https://docs.godotengine.org/en/latest/tutorials/export/exporting_for_web.html#doc-javascript-secure-contexts</a></li>
</ul>
<p>只有在使用 Use Threads 导出时，为了确保低音频延迟和在 Web 导出中使用 Thread 的能力，Godot 4 Web 导出才使用 SharedArrayBuffer。这需要一个安全的上下文，同时还需要在提供文件时设置以下 CORS 标头：</p>]]></description></item><item><title>NAS 部署规划指南</title><link>https://blog.sinlov.cn/posts/2025/04/28/nas-deployment-planning-guide/</link><pubDate>Mon, 28 Apr 2025 17:33:20 +0800</pubDate><author><name>sinlov</name></author><guid>https://blog.sinlov.cn/posts/2025/04/28/nas-deployment-planning-guide/</guid><description><![CDATA[<h2 id="备份321原则" class="headerLink">
    <a href="#%e5%a4%87%e4%bb%bd321%e5%8e%9f%e5%88%99" class="header-mark"></a>备份3+2+1原则</h2><p>既然使用NAS服务器，先复习 <code>数据备份321原则</code></p>
<p>数据备份的3-2-1规则规定，应在<code>两个不同的存储介质</code>上<code>至少存储三个数据副本或版本</code>，其中<code>一个不在现场设施中存储</code></p>
<ul>
<li>
<p><code>三个数据副本或版本</code>：在不同时间段内拥有至少三个不同版本的数据，可确保从影响多个版本的灾难事故中恢复。任何完善的备份系统都将具有三个以上的副本或版本。</p>]]></description></item><item><title>DXP 4800 8800 根据硬盘温度控制 背板风扇</title><link>https://blog.sinlov.cn/posts/2025/01/01/dxp-8800-plus-dsm-control-according-to-the-temperature-of-the-hard-disk-back-panel-fan/</link><pubDate>Wed, 01 Jan 2025 09:06:59 +0800</pubDate><author><name>sinlov</name></author><guid>https://blog.sinlov.cn/posts/2025/01/01/dxp-8800-plus-dsm-control-according-to-the-temperature-of-the-hard-disk-back-panel-fan/</guid><description><![CDATA[<h2 id="机械硬盘的工作温度正常范围" class="headerLink">
    <a href="#%e6%9c%ba%e6%a2%b0%e7%a1%ac%e7%9b%98%e7%9a%84%e5%b7%a5%e4%bd%9c%e6%b8%a9%e5%ba%a6%e6%ad%a3%e5%b8%b8%e8%8c%83%e5%9b%b4" class="header-mark"></a>机械硬盘的工作温度正常范围</h2><p>常规范围</p>
<ul>
<li>机械硬盘在 <code>30℃-50℃</code> 之间运行正常，此温度区间可确保硬盘性能稳定且寿命不受影响</li>
</ul>
<p>极限温度</p>
<ul>
<li>安全阈值 ：超过 <code>55℃</code> 需加强散热，否则可能缩短寿命或导致数据丢失</li>
<li>极端情况 ：部分高性能硬盘在满载时温度可达 <code>60℃-80℃</code> ，但需注意散热措施</li>
</ul>
<p>温度过高风险</p>]]></description></item><item><title>rust 版本记录和查询</title><link>https://blog.sinlov.cn/posts/2024/09/20/rust-version-record-and-query/</link><pubDate>Fri, 20 Sep 2024 13:03:57 +0000</pubDate><author><name>sinlov</name></author><guid>https://blog.sinlov.cn/posts/2024/09/20/rust-version-record-and-query/</guid><description><![CDATA[<h2 id="release" class="headerLink">
    <a href="#release" class="header-mark"></a>release</h2><ul>
<li>官方发布博客 release blog <a href="https://blog.rust-lang.org/releases/" target="_blank" rel="noopener noreferrer">https://blog.rust-lang.org/releases/</a></li>
<li>版本发布日志 <a href="https://static.rust-lang.org/manifests.txt" target="_blank" rel="noopener noreferrer">https://static.rust-lang.org/manifests.txt</a></li>
<li>三方统计，Rust Changelogs <a href="https://releases.rs/" target="_blank" rel="noopener noreferrer">https://releases.rs/</a>
<ul>
<li>since <code>1.1.0</code></li>
<li>指向 issues 或者 PR 讨论贴，对应的用法也在 讨论贴中</li>
</ul>
</li>
</ul>
<h3 id="rustup-components" class="headerLink">
    <a href="#rustup-components" class="header-mark"></a>rustup components</h3><ul>
<li>组件列表 <a href="https://rust-lang.github.io/rustup/concepts/components.html" target="_blank" rel="noopener noreferrer">https://rust-lang.github.io/rustup/concepts/components.html</a></li>
<li>维护的组件历史 <a href="https://rust-lang.github.io/rustup-components-history/" target="_blank" rel="noopener noreferrer">https://rust-lang.github.io/rustup-components-history/</a>
<ul>
<li>记录了 toolchain 最新支持的 Tier 和 信息，用于交叉编译查询</li>
</ul>
</li>
<li>组件使用说明 <a href="https://rust-lang.github.io/rustup/concepts/toolchains.html" target="_blank" rel="noopener noreferrer">https://rust-lang.github.io/rustup/concepts/toolchains.html</a></li>
</ul>
<h2 id="nightly" class="headerLink">
    <a href="#nightly" class="header-mark"></a>nightly</h2><ul>
<li>
<p>nightly 功能 索引在 <a href="https://doc.rust-lang.org/unstable-book/the-unstable-book.html" target="_blank" rel="noopener noreferrer">https://doc.rust-lang.org/unstable-book/the-unstable-book.html</a></p>]]></description></item><item><title>ollama 本地大模型 for macbook</title><link>https://blog.sinlov.cn/posts/2024/09/16/ollama-local-large-model-for-macbook/</link><pubDate>Mon, 16 Sep 2024 12:24:13 +0800</pubDate><author><name>sinlov</name></author><guid>https://blog.sinlov.cn/posts/2024/09/16/ollama-local-large-model-for-macbook/</guid><description><![CDATA[<h2 id="准备" class="headerLink">
    <a href="#%e5%87%86%e5%a4%87" class="header-mark"></a>准备</h2><ul>
<li>
<p>良好的网络，下载容器镜像和模型非常需要</p>
<ul>
<li>配置代理等不属于本文范围</li>
</ul>
</li>
<li>
<p>建议 盘大亿点点，后面会用到</p>
</li>
<li>
<p>安装好 容器</p>
<ul>
<li>建议 <a href="https://docs.orbstack.dev/" target="_blank" rel="noopener noreferrer">OrbStack</a> 性能更好</li>
<li><a href="https://docs.docker.com/desktop/" target="_blank" rel="noopener noreferrer">docker</a></li>
</ul>
</li>
<li>
<p>下载 <a href="https://ollama.com/download" target="_blank" rel="noopener noreferrer">ollama</a></p>
</li>
</ul>
<h2 id="安装-ollama" class="headerLink">
    <a href="#%e5%ae%89%e8%a3%85-ollama" class="header-mark"></a>安装 ollama</h2><ul>
<li>
<p>下载的安装包，解压后，拖拽到 <code>应用程序</code> 文件夹</p>]]></description></item><item><title>golang 预埋和获取 buildID 构建标识</title><link>https://blog.sinlov.cn/posts/2024/09/03/golang-embedding-and-getting-buildid-build-id/</link><pubDate>Tue, 03 Sep 2024 18:04:43 +0800</pubDate><author><name>sinlov</name></author><guid>https://blog.sinlov.cn/posts/2024/09/03/golang-embedding-and-getting-buildid-build-id/</guid><description><![CDATA[<h2 id="构建预埋-buildid" class="headerLink">
    <a href="#%e6%9e%84%e5%bb%ba%e9%a2%84%e5%9f%8b-buildid" class="header-mark"></a>构建预埋 buildID</h2><p>通常情况下，你可能希望在编译时就 预埋 buildID ，在运行时直接读取 构建 id ，这通常在构建流程进行改造</p>
<p>例如在 Dockerfile 中或者 CI/CD 流水线中，你可以在构建命令中添加 <code>-ldflags</code> 参数来设置或访问</p>]]></description></item><item><title>docker 容器限制网络带宽</title><link>https://blog.sinlov.cn/posts/2024/08/21/docker-container-limits-network-bandwidth/</link><pubDate>Wed, 21 Aug 2024 12:34:41 +0000</pubDate><author><name>sinlov</name></author><guid>https://blog.sinlov.cn/posts/2024/08/21/docker-container-limits-network-bandwidth/</guid><description><![CDATA[<h2 id="容器限制带宽" class="headerLink">
    <a href="#%e5%ae%b9%e5%99%a8%e9%99%90%e5%88%b6%e5%b8%a6%e5%ae%bd" class="header-mark"></a>容器限制带宽</h2><p>使用到 限流工具</p>
<ul>
<li><a href="https://github.com/CodyGuo/tc-docker" target="_blank" rel="noopener noreferrer">tc-docker</a></li>
</ul>
<p>原理  通过控制容器中运行 Traffic Control Docker 守护进程</p>
<p>然后对任意目标容器进行流量限速</p>
<h2 id="启动限速容器" class="headerLink">
    <a href="#%e5%90%af%e5%8a%a8%e9%99%90%e9%80%9f%e5%ae%b9%e5%99%a8" class="header-mark"></a>启动限速容器</h2><ul>
<li>compose 启动限速容器实例</li>
</ul>
<div class="code-block highlight is-open show-line-numbers  tw-group tw-my-2">
  <div class="
    
    tw-flex 
    tw-flex-row
    tw-flex-1 
    tw-justify-between 
    tw-w-full tw-bg-bgColor-secondary
    ">      
    <button 
      class="
        code-block-button
        tw-mx-2 
        tw-flex
        tw-flex-row
        tw-flex-1"
      aria-hidden="true">
          <div class="group-[.is-open]:tw-rotate-90 tw-transition-[transform] tw-duration-500 tw-ease-in-out print:!tw-hidden tw-w-min tw-h-min tw-my-1 tw-mx-1"><svg class="icon"
    xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"/></svg></div>
          <p class="tw-select-none !tw-my-1">yml</p>]]></description></item><item><title>docker 清理磁盘占用</title><link>https://blog.sinlov.cn/posts/2024/08/20/docker-cleans-up-disk-occupancy/</link><pubDate>Tue, 20 Aug 2024 00:53:02 +0800</pubDate><author><name>sinlov</name></author><guid>https://blog.sinlov.cn/posts/2024/08/20/docker-cleans-up-disk-occupancy/</guid><description><![CDATA[<h2 id="查看-docker-的磁盘占用" class="headerLink">
    <a href="#%e6%9f%a5%e7%9c%8b-docker-%e7%9a%84%e7%a3%81%e7%9b%98%e5%8d%a0%e7%94%a8" class="header-mark"></a>查看 docker 的磁盘占用</h2><div class="code-block highlight is-open show-line-numbers  tw-group tw-my-2">
  <div class="
    
    tw-flex 
    tw-flex-row
    tw-flex-1 
    tw-justify-between 
    tw-w-full tw-bg-bgColor-secondary
    ">      
    <button 
      class="
        code-block-button
        tw-mx-2 
        tw-flex
        tw-flex-row
        tw-flex-1"
      aria-hidden="true">
          <div class="group-[.is-open]:tw-rotate-90 tw-transition-[transform] tw-duration-500 tw-ease-in-out print:!tw-hidden tw-w-min tw-h-min tw-my-1 tw-mx-1"><svg class="icon"
    xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"/></svg></div>
          <p class="tw-select-none !tw-my-1">bash</p>]]></description></item></channel></rss>