<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <id>https://ylyz.cc/</id>
    <title>异路圆周的客栈</title>
    <updated>2023-06-09T07:58:09.549Z</updated>
    <generator>https://github.com/jpmonette/feed</generator>
    <author>
        <name>YlYZ</name>
        <email>i@valaxy.site</email>
        <uri>https://valaxy.site</uri>
    </author>
    <link rel="alternate" href="https://ylyz.cc/"/>
    <link rel="self" href="https://ylyz.cc/feed.atom"/>
    <subtitle>我的火花在哪里?</subtitle>
    <logo>https://ylyz.cc/site/avatar.svg</logo>
    <icon>https://ylyz.cc/favicon.svg</icon>
    <rights>CC BY-NC-SA 4.0 2023 © YlYZ</rights>
    <entry>
        <title type="html"><![CDATA[scanf 是如何工作的]]></title>
        <id>https://ylyz.cc/posts/cpp/scanf</id>
        <link href="https://ylyz.cc/posts/cpp/scanf"/>
        <updated>2022-02-20T16:11:25.000Z</updated>
        <content type="html"><![CDATA[<p>今天有个初学编程的朋友问了我一个关于 scanf() 的问题，大概就是对书上一段有关&quot;%d%c&quot;的解释不太明白，但作为 Cpp 学习者的我，老实说有一万年没有用过这个 C 函数了，虽说 printf()/scanf() 在开销上是比 C++ 的 cout/cin 要小的，但我其实连 cin 都不怎么用，刚好借着这个机会来回顾回顾 scanf() 的用法，这篇文章不仅是给朋友写的，也算是我个人的一个复习，希望不要误人子弟 (ゝ ∀･)</p>
]]></content>
        <author>
            <name>YlYZ</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2023-06-09T07:57:10.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[构建自己的 AUR 软件包]]></title>
        <id>https://ylyz.cc/posts/linux/build-aur</id>
        <link href="https://ylyz.cc/posts/linux/build-aur"/>
        <updated>2022-11-03T20:36:18.000Z</updated>
        <content type="html"><![CDATA[<p>最近在写装机脚本的时候，发现我以前在网上随便找的 SDDM 主题没有对应的 AUR 包，为了方便以后安装，干脆就打一个包好了，顺便把里面英文的提示改成中文的，也免去了手动装依赖的麻烦</p>
]]></content>
        <author>
            <name>YlYZ</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2023-06-09T07:57:10.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[Linux 下调节外接显示器亮度的方法]]></title>
        <id>https://ylyz.cc/posts/linux/linux-ddcci</id>
        <link href="https://ylyz.cc/posts/linux/linux-ddcci"/>
        <updated>2023-02-22T15:48:17.000Z</updated>
        <content type="html"><![CDATA[<p>笔记本屏幕亮度的调节十分方便，使用 acpi 模块提供的硬件接口 <code>/sys/class/backlight</code>即可进行，我常用的软件包<code>xbacklight</code>就是基于此</p>
<p>但是外接显示器的亮度调节不像笔记本屏幕那样方便，需要通过 DDC/CI 协议与 i2c 设备进行通信来实现</p>
]]></content>
        <author>
            <name>YlYZ</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2023-06-09T07:57:10.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[Linux GTK SDDM 主题设置]]></title>
        <id>https://ylyz.cc/posts/linux/linux-gtk-sddm-setting</id>
        <link href="https://ylyz.cc/posts/linux/linux-gtk-sddm-setting"/>
        <updated>2022-11-03T20:36:42.000Z</updated>
        <content type="html"><![CDATA[<p>无桌面环境时 GTK SDDM 主题的设置</p>
]]></content>
        <author>
            <name>YlYZ</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2023-06-09T07:57:10.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[ArchLinux 启用旧版软件包]]></title>
        <id>https://ylyz.cc/posts/linux/old-package-install</id>
        <link href="https://ylyz.cc/posts/linux/old-package-install"/>
        <updated>2022-11-28T18:26:41.000Z</updated>
        <content type="html"><![CDATA[<p>AUR 里最新的百度网盘有些问题，为了不影响正常使用，可以降级为老版本，然后在 pacman 更新时忽略这些包</p>
<p>除此之外，有些不想更新，或者更新后容易出问题的包也可以在更新时排除<br>
比如：</p>
<ul>
<li>Pytorch 依赖特定版本的 Cuda 和 Cudnn</li>
<li>deepin-wine-wechat 和 com.qq.tim.spark</li>
</ul>
]]></content>
        <author>
            <name>YlYZ</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2023-06-09T07:57:10.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[使用 tlp 来为 linux 省电]]></title>
        <id>https://ylyz.cc/posts/linux/tlp-for-power-saving</id>
        <link href="https://ylyz.cc/posts/linux/tlp-for-power-saving"/>
        <updated>2022-02-19T16:19:45.000Z</updated>
        <content type="html"><![CDATA[<p>Linux 作为我的主力机已经有快半年时间了，从 <a href="https://manjaro.org/">Manjaro</a> 到 <a href="https://archlinux.org/">Archlinux</a> ，从 <a href="https://dwm.suckless.org/">dwm</a> 到 <a href="https://github.com/kwin-scripts/kwin-tiling">kde-kwin-tiling</a>，从 <a href="https://github.com/neovim/neovim">Neovim</a> + <a href="https://github.com/neoclide/coc.nvim">CoC</a> 到 <a href="https://github.com/vscode-neovim/vscode-neovim">VSCode-Neovim</a> 插件，充分说明了什么叫生命不息，折腾不止，渐渐地我已经完全适应了 Linux 下的生活，也构建起来一套自己的工作流，除了玩游戏，很少再打开磁盘上的 window。</p>
<p>尽管 Linux 的高自定义度非常对我胃口，但对于我这种较新的机器（Lenovo Legion R9000P）来说，硬件驱动始终是个硬伤，就比如最近在 Linux-lts、nvidia-lts 更新到 5.15.24 之后，我的电脑才能正常地调节亮度，此前我一直用的是自己写的蹩脚 xrandr 脚本，依靠改变 Color Channel 来对亮度进行伪调节。</p>
<p>大概也是因为驱动的问题，在我的机器上，Linux 的耗电速度比 windows 要快，还好有 tlp 能救一把，配合 kde plasma 自带的电源管理，我现在 Linux 的耗电速度已经基本和 windows 持平了，这里就记录一下我的 tlp 做了哪些配置。</p>
]]></content>
        <author>
            <name>YlYZ</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2023-06-09T07:57:10.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[Conda init 设置拖慢 shell 启动速度的解决方法]]></title>
        <id>https://ylyz.cc/posts/records/conda-faster</id>
        <link href="https://ylyz.cc/posts/records/conda-faster"/>
        <updated>2022-02-18T21:51:01.000Z</updated>
        <content type="html"><![CDATA[<p>最近发现 zsh 的启动速度变慢了，经常打了几个字母，终端才缓过神来，导致我输入命令被打断，按理说不应该，毕竟我用的 Alaritty + zsh + zshfw 的组合，<a href="https://github.com/alacritty/alacritty">Alacritty</a>使用 GPU 加速渲染，<a href="https://github.com/alacritty/alacritty">zimfw</a>号称第三快的 zsh 配置框架，性能方面肯定是没问题的，那就只能是我.zshrc 的问题了。</p>
<p>而恰巧我的.zshrc 又比较精简，除了一点点必备的插件其他啥也没有，所以很快啊，我的目光聚焦在了 conda init 往我的配置文件里写的那几行上：</p>
]]></content>
        <author>
            <name>YlYZ</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2023-06-09T07:57:10.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[从零开始搭建你的个人博客 Hexo+Github Pages 详解]]></title>
        <id>https://ylyz.cc/posts/records/how-to-build-your-own-website-from-zero</id>
        <link href="https://ylyz.cc/posts/records/how-to-build-your-own-website-from-zero"/>
        <updated>2020-06-30T02:14:00.000Z</updated>
        <content type="html"><![CDATA[<p>2021.10.29。本文迁移自之前的博客，因为各种原因~~(懒)~~，之前的博客已经废弃了，而这篇文章是我一年前写的，也是我的第一篇文章，所以搬过来留作纪念，虽然现在我已经换了主题，站点也放在了租来的服务器上，但本文的操作还是具有很强的可行性的。（PS:本博客存在里模式，里模式里使用的是最初的主题，但里模式目前不对外开放，等一个浪漫的时间）</p>
<blockquote>
<p>前些天想搭个博客，记录各种各样的事，如今基本上完工力！happy!<br>
所以写了这篇文章把整个流程梳理一遍，为了让后来的小伙伴们能轻松一点（网上一些教程只列出了步骤，跟着做的时候难免有些懵逼），所以我会尽力说明每个步骤是在干嘛，要达成一个怎样的效果。那么，开始吧！</p>
</blockquote>
<p>本文写作上尽量按照通俗的标准去写，细节上可能存在不严谨的地方，如有错误请联系我，我会及时更正。另外我搭建博客的过程主要是参考了@云游君的文章，遇到问题也可以去这里看看。</p>
]]></content>
        <author>
            <name>YlYZ</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2023-06-09T07:57:10.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[ Windows11 Terminal: 配置与美化 Powershell7、WSL2、WSA]]></title>
        <id>https://ylyz.cc/posts/records/terminals</id>
        <link href="https://ylyz.cc/posts/records/terminals"/>
        <updated>2021-10-25T01:18:16.000Z</updated>
        <content type="html"><![CDATA[<meta name="referrer" content="no-referrer" />
<p>前段时间 win11 更新了 AMD 三级缓存的补丁，我的 Lenovo R9000P 也是等不及想尝鲜了，这里就记录一下我在 win11 里安装配置各种 shell 的过程。首先简单介绍一下用到的工具和软件：</p>
<ul>
<li><a href="https://www.microsoft.com/zh-cn/p/windows-terminal/9n0dx20hk701?rtc=1&amp;activetab=pivot:overviewtab">Windows Terminal</a>，终端管理、配置软件</li>
<li><a href="https://github.com/PowerShell/PowerShell">Powershell7</a>，微软开源的跨平台 Shell，Powershell 升级版</li>
<li><a href="https://github.com/JanDeDobbeleer/oh-my-posh">oh-my-posh</a>，Powershell 上的开源主题引擎</li>
<li><a href="https://docs.microsoft.com/zh-cn/windows/wsl/setup/environment">WSL2</a>，Windows 上的 Linux 子系统，除了 IO 不如原生以外，其他方面的表现都和原生差不多，且支持 GUI</li>
<li><a href="https://github.com/ohmyzsh/ohmyzsh">oh-my-zsh</a>，用于管理和简化 zsh 配置的开源 Shell 工具，内置多种主题，支持许多便利的插件</li>
<li><a href="https://docs.microsoft.com/en-us/windows/android/wsa/">WSA</a>，Windows 上的安卓子系统，刚刚上架美区，对于普通 app 的支持还可以，但玩手游还不太行，虽然现在能调用独显（需要 WDDM3.0 和 WSL 专门的驱动），但独显调用非常得不积极，毕竟才刚开始对外开放</li>
</ul>
]]></content>
        <author>
            <name>YlYZ</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2023-06-09T07:57:10.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[Win11 ArchLinux 双系统安装]]></title>
        <id>https://ylyz.cc/posts/records/win-linux-install</id>
        <link href="https://ylyz.cc/posts/records/win-linux-install"/>
        <updated>2022-11-28T14:52:54.000Z</updated>
        <content type="html"><![CDATA[<p>双系统推荐先装 Windows，然后在 Windows 下分好分区大小，然后再装 Linux，之后使用 grub 来引导双系统</p>
]]></content>
        <author>
            <name>YlYZ</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2023-06-09T07:57:10.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[Games101：Lecture 02 Review of Linear Algebra]]></title>
        <id>https://ylyz.cc/posts/note/computer-graphics/Games101-02</id>
        <link href="https://ylyz.cc/posts/note/computer-graphics/Games101-02"/>
        <updated>2021-11-14T19:47:46.000Z</updated>
        <content type="html"><![CDATA[<p>Games101 Lecture 01 是一些图形学的基本介绍，我就不记录了，从 Lecture 02 开始</p>
<p>重点归纳：</p>
<ol>
<li>向量点乘可以用于计算向量间的余弦夹角，从而得知向量互相的接近程度</li>
<li>向量点乘可以用于计算向量的投影，可以用于向量的分解，将向量分解成两个垂直的向量</li>
<li>向量点乘可以用于计算向量的方向性，判断两个向量是同向还是异向，以及它们的接近程度</li>
<li>向量叉乘的结果是一个向量，由右手螺旋定则决定方向</li>
<li>向量叉乘可以用于判断向量的左右关系，判断点在三角形的内部还是外部</li>
<li>矩阵在图形学中的应用：变换</li>
</ol>
<p>阅读材料：Fundamentals of Computer Graphics（3rd or 4th）, 第二章（Miscellaneous Math）、第五章（Linear Algebra）</p>
]]></content>
        <author>
            <name>YlYZ</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2023-06-09T07:57:10.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[Games101-Lecture 03 Transformation]]></title>
        <id>https://ylyz.cc/posts/note/computer-graphics/Games101-03</id>
        <link href="https://ylyz.cc/posts/note/computer-graphics/Games101-03"/>
        <updated>2022-05-27T16:52:09.000Z</updated>
        <content type="html"><![CDATA[<p>重点归纳：</p>
<ol>
<li>2D 变换：
<ul>
<li>线性变换 (Linear):缩放 (scale)、切变 (shear)、旋转 (rotatrion)、镜像 (Reflection)</li>
<li>非线性变换：平移 (translation)</li>
<li>仿射变换 (Affine): 线性变换 + 平移</li>
</ul>
</li>
<li>齐次坐标
<ul>
<li>用线性矩阵来描述上述所有的变换</li>
<li>点与向量的表示</li>
</ul>
</li>
<li>变换的组合与分解
<ul>
<li>变换的先后顺序</li>
<li>绕任意点的旋转</li>
</ul>
</li>
</ol>
]]></content>
        <author>
            <name>YlYZ</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2023-06-09T07:57:10.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[Games101-Lecture 04 Transformation Cont]]></title>
        <id>https://ylyz.cc/posts/note/computer-graphics/Games101-04</id>
        <link href="https://ylyz.cc/posts/note/computer-graphics/Games101-04"/>
        <updated>2022-05-28T19:27:38.000Z</updated>
        <content type="html"><![CDATA[<p>重点归纳：</p>
<ol>
<li>3D 变换 (以旋转为重点):
<ul>
<li>绕 x, y, z 轴旋转矩阵的差别，循环对称性 (列向量顺序问题)</li>
<li>旋转的分解以及欧拉角，Rodrigues' Rotation Formula(绕过原点的轴的旋转)</li>
<li>四元数，主要为了旋转间的差值 (课程无), 因为旋转矩阵不太适合作差值，三角函数不是线性的，(15 + 25)/2 != 20</li>
</ul>
</li>
<li>Viewing 变换：
<ul>
<li>View(视图)/Camera 变换</li>
<li>3D 到 2D 的投影变换 (Orthographic/Perspective, 正交/透视)</li>
</ul>
</li>
<li>View 变换
<ul>
<li>标准相机位置的定义</li>
<li>相机和模型的一起变换</li>
</ul>
</li>
<li>投影变换
<ul>
<li>正交投影，无近大远小</li>
<li>简单的正交投影方法和常用的正交投影方法</li>
<li>透视投影，平行线会相交，可以分解成&quot;挤压&quot;变换和正交投影变换</li>
<li>&quot;挤压&quot;变换的推导</li>
</ul>
</li>
</ol>
]]></content>
        <author>
            <name>YlYZ</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2023-06-09T07:57:10.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[Games101-Lecture 05 Rasterization 1 (Triangles)]]></title>
        <id>https://ylyz.cc/posts/note/computer-graphics/Games101-05</id>
        <link href="https://ylyz.cc/posts/note/computer-graphics/Games101-05"/>
        <updated>2022-06-01T09:46:22.000Z</updated>
        <content type="html"><![CDATA[<p>重点归纳：</p>
<ol>
<li>如何透视投影范围的定义</li>
<li>MVP 之后的视口变换
<ul>
<li>何为屏幕</li>
<li>何为像素</li>
</ul>
</li>
<li>一些绘制设备与显示设备
<ul>
<li>隔行扫描技术</li>
<li>帧缓冲</li>
</ul>
</li>
<li>光栅化
<ul>
<li>模型的表示</li>
<li>采样
<ul>
<li>边界情况</li>
<li>如何减小计算规模</li>
</ul>
</li>
</ul>
</li>
<li>真实的像素</li>
</ol>
]]></content>
        <author>
            <name>YlYZ</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2023-06-09T07:57:10.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[常见的排序算法]]></title>
        <id>https://ylyz.cc/posts/note/data-structure-algorithm/sort</id>
        <link href="https://ylyz.cc/posts/note/data-structure-algorithm/sort"/>
        <updated>2021-09-04T00:44:44.000Z</updated>
        <content type="html"><![CDATA[<p>排序算法笔记，因为选择、冒泡、插入、希尔、归并、快速排序在复习的时候仅仅实现了而没记笔记，所以就从堆排序开始了？</p>
]]></content>
        <author>
            <name>YlYZ</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2023-06-09T07:57:10.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[前端学习笔记 (HTML5+CSS3)]]></title>
        <id>https://ylyz.cc/posts/note/front-end/learn-front-end</id>
        <link href="https://ylyz.cc/posts/note/front-end/learn-front-end"/>
        <updated>2023-04-12T17:50:57.000Z</updated>
        <content type="html"><![CDATA[<p>这是 Jonas Schmedtmann 的 HTML5 + CSS3 课程笔记</p>
<p>视频地址：<a href="https://www.bilibili.com/video/BV1A34y1e7wL/?spm_id_from=333.999.0.0&amp;vd_source=36d59e62018942504013249cfb331a6d">Build Responsive Real-World Websites with HTML and CSS</a></p>
]]></content>
        <author>
            <name>YlYZ</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2023-06-09T07:57:10.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[C++面向对象程序设计复习笔记（下）]]></title>
        <id>https://ylyz.cc/posts/note/houjie/object-oriented-programming-two</id>
        <link href="https://ylyz.cc/posts/note/houjie/object-oriented-programming-two"/>
        <updated>2021-09-15T23:05:18.000Z</updated>
        <content type="html"><![CDATA[<p>侯捷 C++面向对象程序设计的下半部分笔记</p>
]]></content>
        <author>
            <name>YlYZ</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2023-06-09T07:57:10.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[C++面向对象程序设计复习笔记（上）]]></title>
        <id>https://ylyz.cc/posts/note/houjie/object-oriented-programming</id>
        <link href="https://ylyz.cc/posts/note/houjie/object-oriented-programming"/>
        <updated>2021-09-11T12:41:00.000Z</updated>
        <content type="html"><![CDATA[<p>侯捷 C++面向对象程序设计的上半部分笔记</p>
]]></content>
        <author>
            <name>YlYZ</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2023-06-09T07:57:10.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[Parallel101-1.学 C++从 CMake 学起]]></title>
        <id>https://ylyz.cc/posts/note/parallel/Parallel101-1</id>
        <link href="https://ylyz.cc/posts/note/parallel/Parallel101-1"/>
        <updated>2022-02-27T19:53:57.000Z</updated>
        <content type="html"><![CDATA[<p>Parallel101 笔记 + 课后作业，课程传送门：</p>
<ul>
<li><a href="https://www.bilibili.com/video/BV1fa411r7zp/?spm_id_from=333.788">https://www.bilibili.com/video/BV1fa411r7zp/?spm_id_from=333.788</a></li>
</ul>
]]></content>
        <author>
            <name>YlYZ</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2023-06-09T07:57:10.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[Parallel201-1.现代 CMake 进阶指南]]></title>
        <id>https://ylyz.cc/posts/note/parallel/Parallel201-1</id>
        <link href="https://ylyz.cc/posts/note/parallel/Parallel201-1"/>
        <updated>2022-03-12T17:20:45.000Z</updated>
        <content type="html"><![CDATA[<p>Parallel201 笔记 + 课后作业，课程传送门：</p>
<ul>
<li><a href="https://www.bilibili.com/video/BV16P4y1g7MH/?spm_id_from=333.788">https://www.bilibili.com/video/BV16P4y1g7MH/?spm_id_from=333.788</a></li>
</ul>
]]></content>
        <author>
            <name>YlYZ</name>
            <email>i@valaxy.site</email>
            <uri>https://valaxy.site</uri>
        </author>
        <published>2023-06-09T07:57:10.000Z</published>
    </entry>
</feed>