<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>栗悟饭のspace</title>
        <link>https://blog.zayx.me/</link>
        <description>栗悟饭のspace is about AI, technology, and my life! </description>
        <generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Fri, 01 Nov 2024 00:40:03 &#43;0800</lastBuildDate>
            <atom:link href="https://blog.zayx.me/index.xml" rel="self" type="application/rss+xml" />
        <item>
    <title>Solution to cuda driver failure after kernel update</title>
    <link>https://blog.zayx.me/2024/11/01/solution-to-cuda-driver-failure-after-kernel-update/</link>
    <pubDate>Fri, 01 Nov 2024 00:40:03 &#43;0800</pubDate>
    <author>xxxx</author>
    <guid>https://blog.zayx.me/2024/11/01/solution-to-cuda-driver-failure-after-kernel-update/</guid>
    <description><![CDATA[<p>after a recent kernel update (presumably automatic via unattended-upgrades), cuda functionality on my server ceased functioning.  the primary symptom was the following error when running <code>nvidia-smi</code>:</p>
<div class="code-block code-line-numbers open" style="counter-reset: code-block 0">
    <div class="code-header language-bash">
        <span class="code-title"><i class="arrow fas fa-chevron-right fa-fw" aria-hidden="true"></i></span>
        <span class="ellipses"><i class="fas fa-ellipsis-h fa-fw" aria-hidden="true"></i></span>
        <span class="copy" title="Copy to clipboard"><i class="far fa-copy fa-fw" aria-hidden="true"></i></span>
    </div><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver ...</span></span></code></pre></div></div><p>this indicates a mismatch between the installed nvidia driver and the current kernel version.  the solution involves using <code>dkms</code> (Dynamic Kernel Module Support) to rebuild the nvidia driver against the new kernel.</p>]]></description>
</item>
<item>
    <title>managing frp with systemd: a best-practice approach</title>
    <link>https://blog.zayx.me/2024/10/31/managing-frp-with-systemd-a-best-practice-approach/</link>
    <pubDate>Thu, 31 Oct 2024 22:15:39 &#43;0800</pubDate>
    <author>xxxx</author>
    <guid>https://blog.zayx.me/2024/10/31/managing-frp-with-systemd-a-best-practice-approach/</guid>
    <description><![CDATA[<p>frp is a fantastic tool for intranet penetration, but managing it effectively can be a challenge.  systemd provides a robust and elegant solution for automating frp&rsquo;s startup and ensuring its resilience.  this post will guide you through creating a best-practice systemd unit file for frp, focusing on clarity, efficiency, and robustness.</p>
<p>here&rsquo;s the optimized unit file:</p>
<div class="code-block code-line-numbers open" style="counter-reset: code-block 0">
    <div class="code-header language-bash">
        <span class="code-title"><i class="arrow fas fa-chevron-right fa-fw" aria-hidden="true"></i></span>
        <span class="ellipses"><i class="fas fa-ellipsis-h fa-fw" aria-hidden="true"></i></span>
        <span class="copy" title="Copy to clipboard"><i class="far fa-copy fa-fw" aria-hidden="true"></i></span>
    </div><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-service" data-lang="service"><span class="line"><span class="cl"><span class="k">[Unit]</span>
</span></span><span class="line"><span class="cl"><span class="na">Description</span><span class="o">=</span><span class="s">frp server</span>
</span></span><span class="line"><span class="cl"><span class="na">Requires</span><span class="o">=</span><span class="s">network-online.target</span>
</span></span><span class="line"><span class="cl"><span class="na">After</span><span class="o">=</span><span class="s">network-online.target</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">[Service]</span>
</span></span><span class="line"><span class="cl"><span class="na">ExecStart</span><span class="o">=</span><span class="s">/usr/bin/frpc -c /path/to/your/frpc.ini</span>
</span></span><span class="line"><span class="cl"><span class="na">Restart</span><span class="o">=</span><span class="s">on-failure</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">[Install]</span>
</span></span><span class="line"><span class="cl"><span class="na">WantedBy</span><span class="o">=</span><span class="s">multi-user.target</span></span></span></code></pre></div></div><p>let&rsquo;s break down the key components:</p>]]></description>
</item>
<item>
    <title>A Record for Customizing Firefox Browser</title>
    <link>https://blog.zayx.me/2024/02/01/a-record-for-customizing-firefox-browser/</link>
    <pubDate>Thu, 01 Feb 2024 23:20:44 &#43;0800</pubDate>
    <author>xxxx</author>
    <guid>https://blog.zayx.me/2024/02/01/a-record-for-customizing-firefox-browser/</guid>
    <description><![CDATA[<p>Today I customized my Firefox browser, and I want to record the process here. the result is quite satisfying.</p>]]></description>
</item>
<item>
    <title>How to Make Firefox Tab Auto Show Close Button</title>
    <link>https://blog.zayx.me/2023/12/28/how-to-make-firefox-tab-auto-show-close-button/</link>
    <pubDate>Thu, 28 Dec 2023 12:52:12 &#43;0000</pubDate>
    <author>xxxx</author>
    <guid>https://blog.zayx.me/2023/12/28/how-to-make-firefox-tab-auto-show-close-button/</guid>
    <description><![CDATA[In Firefox, the close button of a tab is hidden by default. You have to click the tab to show the close button. This is not convenient for me. I want the close button to be visible when i hover on it. Here is how to do it.]]></description>
</item>
<item>
    <title>Solution to Fatal: Refusing to Merge Unrelated Histories</title>
    <link>https://blog.zayx.me/2023/04/01/solution-to-fatal-refusing-to-merge-unrelated-histories/</link>
    <pubDate>Sat, 01 Apr 2023 17:29:46 &#43;0800</pubDate>
    <author>xxxx</author>
    <guid>https://blog.zayx.me/2023/04/01/solution-to-fatal-refusing-to-merge-unrelated-histories/</guid>
    <description><![CDATA[solution to a common problem about git]]></description>
</item>
<item>
    <title>Decoupled Knowledge Distillation Explained</title>
    <link>https://blog.zayx.me/2023/02/10/decoupled-knowledge-distillation-explained/</link>
    <pubDate>Fri, 10 Feb 2023 19:05:47 &#43;0800</pubDate>
    <author>xxxx</author>
    <guid>https://blog.zayx.me/2023/02/10/decoupled-knowledge-distillation-explained/</guid>
    <description><![CDATA[This artical introduces this <a href="https://openaccess.thecvf.com/content/CVPR2022/papers/Zhao_Decoupled_Knowledge_Distillation_CVPR_2022_paper.pdf" target="_blank" rel="noopener noreffer ">paper</a> and try to explain it.]]></description>
</item>
<item>
    <title>Focal Loss explained for Object Detection</title>
    <link>https://blog.zayx.me/2023/01/20/focal-loss-explained-for-object-detection/</link>
    <pubDate>Fri, 20 Jan 2023 21:54:05 &#43;0800</pubDate>
    <author>xxxx</author>
    <guid>https://blog.zayx.me/2023/01/20/focal-loss-explained-for-object-detection/</guid>
    <description><![CDATA[This article explained Focal Loss in a simple way to understand how it can work. The paper is <a href="https://arxiv.org/pdf/1708.02002" target="_blank" rel="noopener noreffer ">here</a>.]]></description>
</item>
<item>
    <title>Solution to Invalid Public Key for CUDA Apt Repository</title>
    <link>https://blog.zayx.me/2023/01/18/solution-to-invalid-public-key-for-cuda-apt-repository/</link>
    <pubDate>Wed, 18 Jan 2023 22:00:08 &#43;0800</pubDate>
    <author>栗悟饭とカメハメ波</author>
    <guid>https://blog.zayx.me/2023/01/18/solution-to-invalid-public-key-for-cuda-apt-repository/</guid>
    <description><![CDATA[<h2 id="problem">Problem</h2>
<p>Got this error when I build DockerFile</p>
<div class="code-block code-line-numbers open" style="counter-reset: code-block 0">
    <div class="code-header language-bash">
        <span class="code-title"><i class="arrow fas fa-chevron-right fa-fw" aria-hidden="true"></i></span>
        <span class="ellipses"><i class="fas fa-ellipsis-h fa-fw" aria-hidden="true"></i></span>
        <span class="copy" title="Copy to clipboard"><i class="far fa-copy fa-fw" aria-hidden="true"></i></span>
    </div><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">...
</span></span><span class="line"><span class="cl">W: GPG error: https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64  InRelease: The following signatures couldn<span class="s1">&#39;t be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
</span></span></span><span class="line"><span class="cl"><span class="s1">E: The repository &#39;</span>https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease<span class="err">&#39;</span> is not signed.</span></span></code></pre></div></div><h2 id="reason">Reason</h2>
<p>Due to a key update in the CUDA Linux GPG repository:
<a href="https://developer.nvidia.com/blog/updating-the-cuda-linux-gpg-repository-key/" title="updating the gpg key! " target="_blank" rel="noopener noreffer ">Nvidia has updated the gpg key</a>, you should update gpg key to handle this!</p>]]></description>
</item>
</channel>
</rss>
