<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"><channel><title>MagicLen</title><link>https://magiclen.org/cn/2019/04/</link><description>多元化原创文章，内容包罗万象，有编程语言、网站应用、软件介绍、硬件介绍、操作系统、旅行游记、专题采访、益智问题、文学创作，以及作者们的知识分享和作品分享。</description><language>zh-CN</language><lastBuildDate>Mon, 23 Nov 2026 04:32:37 +0800</lastBuildDate><atom:link href="https://magiclen.org/cn/2019/04/feed/" rel="self" type="application/rss+xml"/><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>8</sy:updateFrequency><sy:updateBase>1970-01-01T00:00+00:00</sy:updateBase><item><title>1A2B 猜数字（公牛和母牛）的游戏框架</title><link>https://magiclen.org/cn/bulls-and-cows/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png 1x, https://magiclen.org/wp-content/uploads/2018/04/rust-440x324.png 2x, https://magiclen.org/wp-content/uploads/2018/04/rust-660x486.png 3x" alt>
1A2B 猜数字，原名为公牛和母牛(Bulls and Cows)，算是一种益智类小游戏，一般是两个人玩。游戏规则虽然很简单，却十分考验人的智力和毅力。]]></description><category>Rust</category><category>猜数字</category><category>电子游戏</category><category>Rust</category><category>1A2B</category><category>bulls-and-cows</category><guid>https://magiclen.org/cn/bulls-and-cows</guid><pubDate>Tue, 30 Apr 2019 20:00:40 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>如何用 Rust 编程语言搭配 MongoDB 来保存文件？</title><link>https://magiclen.org/cn/mongo-file-center/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png 1x, https://magiclen.org/wp-content/uploads/2018/04/rust-440x324.png 2x, https://magiclen.org/wp-content/uploads/2018/04/rust-660x486.png 3x" alt>
MongoDB 是文档导向的数据库，适合用来保存无需复杂查找的大量数据，也可以用来保存文件。未超过 16777216 字节（约 16MB）的 BSON 文档能直接存在一般的集合(collection)之中，如果将文件放进 BSON 文档中且没有超过大小限制的话，则文件可以直接存进一般的集合；如果文档会超过 16777216 字节，也可以使用 MongoDB 提供的 GridFS 功能，自动将文件切...]]></description><category>Rust</category><category>NoSQL</category><category>数据库</category><category>Rust</category><category>MongoDB</category><category>mongo-file-center</category><guid>https://magiclen.org/cn/mongo-file-center</guid><pubDate>Mon, 29 Apr 2019 04:00:19 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>如何在 Linux 操作系统上破解 RAR 或是 ZIP 压缩档的密码？</title><link>https://magiclen.org/cn/archive-crack/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2019/03/shot-15-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2019/03/shot-15-220x162.png 1x, https://magiclen.org/wp-content/uploads/2019/03/shot-15-440x324.png 2x, https://magiclen.org/wp-content/uploads/2019/03/shot-15-660x486.png 3x" alt>
在网络上下载别人分享的文件，有时候会下载到被加上压缩密码的 RAR 或是 ZIP 压缩档，但因种种原因而无法取得密码，而导致好不容易下载回来的压缩档根本不能被解压缩。这时候就可以考虑「破解」该压缩档的密码了，但是要怎么做呢？]]></description><category>软件介绍</category><category>Linux</category><category>压缩</category><category>John the Ripper</category><guid>https://magiclen.org/cn/archive-crack</guid><pubDate>Fri, 26 Apr 2019 12:00:55 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>QR Code 产生器网页版，可产生多种高分辨率的 QR Code 条码</title><link>https://magiclen.org/cn/qrcode/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2019/04/qrcode3-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2019/04/qrcode3-220x162.png 1x, https://magiclen.org/wp-content/uploads/2019/04/qrcode3-440x324.png 2x, https://magiclen.org/wp-content/uploads/2019/04/qrcode3-660x486.png 3x" alt>
因行动设备的流行而跟着带动起来的 QR Code，是众多条码类型的其中一种，它让我们的生活更便利，传递信息的速度更快，省下许多使用键盘打字的时间。如果要产生出 QR Code，已经有许多相关的现成工具能够使用，但编码效果参差不齐，图片分辨率也通常不能太高。有些工具虽然有提供产生特殊数据格式的 QR Code，但用户并不知道该如何正确地填写字段才能符合规范，所以只好乱填而导致格式出错，这些工具并不会...]]></description><category>作品分享</category><category>网站应用</category><category>QR Code</category><category>条码产生</category><category>云端工具</category><guid>https://magiclen.org/cn/qrcode</guid><pubDate>Wed, 24 Apr 2019 12:00:14 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>在 Ubuntu Server 安装 i3 窗口管理器，让 Ubuntu Server 拥有极轻量的窗口图形界面</title><link>https://magiclen.org/cn/ubuntu-server-i3/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2019/03/shot-59-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2019/03/shot-59-220x162.png 1x, https://magiclen.org/wp-content/uploads/2019/03/shot-59-440x324.png 2x, https://magiclen.org/wp-content/uploads/2019/03/shot-59-660x486.png 3x" alt>
i3 是一款基于 X11 的窗口管理器(Window Manager)，使用性能极佳的 C 语言开发而成的，界面简洁、轻巧却不失实用性，功能强调窗口的布局和快捷键，非常适合用在服务器上配合其它指令工具或是图形工具来监看系统状态和查找文档。本篇文章将会以无窗口界面的 Ubuntu Server 作为开端，来介绍 i3 的安装与使用方法。]]></description><category>Linux</category><category>研究分享</category><category>Linux</category><category>Ubuntu</category><category>i3</category><guid>https://magiclen.org/cn/ubuntu-server-i3</guid><pubDate>Mon, 22 Apr 2019 12:00:39 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>GNU Make 的基本使用方式</title><link>https://magiclen.org/cn/gnu-make/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2019/04/shot-30-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2019/04/shot-30-220x162.png 1x, https://magiclen.org/wp-content/uploads/2019/04/shot-30-440x324.png 2x, https://magiclen.org/wp-content/uploads/2019/04/shot-30-660x486.png 3x" alt>
GNU Make (Makefile)是经常被用于程序源代码项目中，帮助用户编译源代码的建置工具。在 Makefile 中，可以分别替不同的源代码文件定义其编译的方式（编译所使用的指令），GNU Make 在编译源代码项目时，就会依照源代码是否有在产生目的文件后又被修改（依赖文档的修改日期比目的文件的修改日期来得晚），来自动判断是否真的需要再重新编译源代码，以省下重复编译的时间。]]></description><category>编程</category><category>Linux</category><category>Linux</category><category>Makefile</category><guid>https://magiclen.org/cn/gnu-make</guid><pubDate>Sat, 20 Apr 2019 12:00:12 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>Linux 国际认证专业协会(LPI)的 LPIC-2 国际证照</title><link>https://magiclen.org/cn/lpic-2/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2019/03/LPIC-2-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2019/03/LPIC-2-220x162.png 1x, https://magiclen.org/wp-content/uploads/2019/03/LPIC-2-440x324.png 2x, https://magiclen.org/wp-content/uploads/2019/03/LPIC-2-660x486.png 3x" alt>
要拿到 LPIC-2 认证，必须先通过 LPIC-1，再完成考试代号为「201-450」和「202-450」的两科测验。这篇文章整理了涵盖 Linux 内核、保存设备、DNS、网站与邮件等服务的考试范围，并分享笔者分别以 600 分和 720 分通过的经验。]]></description><category>Linux</category><category>Linux</category><category>LPI</category><category>LPIC</category><category>LPIC-2</category><category>LPIC-2-201</category><category>LPIC-2-202</category><guid>https://magiclen.org/cn/lpic-2</guid><pubDate>Thu, 18 Apr 2019 12:00:28 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>如何修复音乐档的喀答声(Click)？</title><link>https://magiclen.org/cn/repair-click/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2019/03/shot-09-1-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2019/03/shot-09-1-220x162.png 1x, https://magiclen.org/wp-content/uploads/2019/03/shot-09-1-440x324.png 2x, https://magiclen.org/wp-content/uploads/2019/03/shot-09-1-660x486.png 3x" alt>
理论上，喀答声(Click)应该只会发生在频率急遽改变或是振幅急遽改变的时候。但实际上，只要波形有发生任何一点不连续（就算不连续的地方只有 0.000001 秒），就会产生喀答声。在先前 Csound 的文章中，虽然有提到喀答声可以利用波形包络和近似频率的方式来避免发生，但如果发生喀答声的是现存的声音或是音乐文件的话，那就只能靠后期修复的方式来处理了。]]></description><category>研究分享</category><category>软件介绍</category><category>音乐心得</category><category>Android</category><category>Audacity</category><category>Linux</category><category>Windows</category><category>macOS</category><category>影音</category><guid>https://magiclen.org/cn/repair-click</guid><pubDate>Sun, 14 Apr 2019 12:00:15 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>如何让 Linux 操作系统自动登录桌面环境，而不需输入帐号密码？</title><link>https://magiclen.org/cn/linux-auto-login/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2019/04/shot-05-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2019/04/shot-05-220x162.png 1x, https://magiclen.org/wp-content/uploads/2019/04/shot-05-440x324.png 2x, https://magiclen.org/wp-content/uploads/2019/04/shot-05-660x486.png 3x" alt>
在安装有图形界面的 Linux 操作系统的时候，有些发行版提供的安装程序会让用户选择是否要在电脑开机之后自动以某个 Linux 用户帐号来登录桌面环境。那么如果是在安装 Linux 操作系统之后，想要再去更改自动登录的相关设置（开关自动登录、自动登录的用户帐号等），该如何做呢？]]></description><category>Linux</category><category>Linux</category><category>显示管理器</category><category>GDM</category><category>LightDM</category><category>SDDM</category><guid>https://magiclen.org/cn/linux-auto-login</guid><pubDate>Fri, 12 Apr 2019 12:00:25 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>MPEG-4(Xvid)、H.264(x264)、H.265(x265)、VP8、VP9、AV1 等 8-bit 视频编码格式的比较</title><link>https://magiclen.org/cn/vcodec/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2019/02/ref-mp4-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2019/02/ref-mp4-220x162.png 1x, https://magiclen.org/wp-content/uploads/2019/02/ref-mp4-440x324.png 2x, https://magiclen.org/wp-content/uploads/2019/02/ref-mp4-660x486.png 3x" alt>
8-bit 视频常见的有损压缩格式有 MPEG-4、H.264、VP8，以及比较后来才出现的 H.265、VP9、AV1。笔者用 FFmpeg 将同一段视频转成这些格式，并以 SSIM 指针为准比较在几乎相同画质下的比特率，结果在各种画质等级下，x265 和 AV1 都是不错的选择。]]></description><category>研究分享</category><category>软件介绍</category><category>Android</category><category>AVC</category><category>FFmpeg</category><category>HEVC</category><category>Linux</category><category>Windows</category><category>x265</category><category>macOS</category><category>SSIM</category><category>VP8</category><category>VP9</category><category>AV1</category><category>Xvid</category><category>PSNR</category><category>x264</category><category>影音</category><guid>https://magiclen.org/cn/vcodec</guid><pubDate>Wed, 10 Apr 2019 12:00:22 +0800</pubDate><dc:creator>Magic Len</dc:creator></item></channel></rss>