<?xml version="1.0" encoding="utf-8"?><rss version="2.0" 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/2022/08/feed</link><description>多元化原創文章，內容包羅萬象，有程式語言、網站應用、軟體介紹、硬體介紹、作業系統、旅行遊記、專題採訪、益智問題、文學創作，以及作者們的知識分享和作品分享。</description><language>zh-TW</language><lastBuildDate>Sat, 30 May 2026 20:50:30 +0000</lastBuildDate><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>8</sy:updateFrequency><sy:updateBase>1970-01-01T00:00+00:00</sy:updateBase><item><title>如何讓Linux作業系統透過第三方電子郵件(E-mail)服務來發送電子郵件？</title><link>https://magiclen.org/linux-sendmail</link><description><![CDATA[    <img src="https://magiclen.org/wp-content/uploads/2022/06/email-3249062-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2022/06/email-3249062-220x162.png 1x, https://magiclen.org/wp-content/uploads/2022/06/email-3249062-440x324.png 2x, https://magiclen.org/wp-content/uploads/2022/06/email-3249062-660x486.png 3x" alt="">
Linux上的許多程式都會有寄信的功能，像是用來撰寫網站後端程式的PHP程式語言，它的「mail」函數背後就是透過Linux的「sendmail」指令來實現的。有些腳本也會提供寄信通知管理員的功能，同樣會使用到「sendmail」指令。但是在預設的情況下，Linux發行版的「sendmail」指令是不能正常使用的，並不能成功將信件寄出，還得在本地端架設郵件伺服器才行。不過要自己架設一個完整的郵件伺...]]></description><category>研究分享</category><category>網路相關</category><category>Linux</category><category>Linux</category><category>Ubuntu</category><category>Ubuntu Server</category><category>Postfix</category><category>SMTP</category><category>Sendmail</category><category>電子郵件</category><guid>https://magiclen.org/linux-sendmail</guid><pubDate>Tue, 30 Aug 2022 12:00:00 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>Linux Mint 21 Cinnamon 安裝教學</title><link>https://magiclen.org/linux-mint-21-cinnamon-install</link><description><![CDATA[    <img src="https://magiclen.org/wp-content/uploads/2022/08/shot-25-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2022/08/shot-25-220x162.png 1x, https://magiclen.org/wp-content/uploads/2022/08/shot-25-440x324.png 2x, https://magiclen.org/wp-content/uploads/2022/08/shot-25-660x486.png 3x" alt="">
Linux Mint是基於Ubuntu的衍生發行版，通常在Ubuntu新版本釋出後一個月左右，Linux Mint也會釋出相對應的新版本。版本號碼的話，Linux Mint 15對應到Ubuntu 13.04、Linux Mint 16對應到Ubuntu 13.10，依此類推。但在Linux Mint 17之後，大版本號是跟著Ubuntu的LTS(長期支援)版本，有5年的更新支援，Linux Mi...]]></description><category>Linux</category><category>Cinnamon</category><category>GNOME</category><category>Linux</category><category>Linux Mint</category><guid>https://magiclen.org/linux-mint-21-cinnamon-install</guid><pubDate>Thu, 25 Aug 2022 12:00:00 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>如何寫程式畫出正六邊形的蜂巢狀網格？</title><link>https://magiclen.org/regular-hexagon-grid</link><description><![CDATA[    <img src="https://magiclen.org/wp-content/uploads/2022/06/hex-g13f0488b9_1920-220x162.jpg" srcset="https://magiclen.org/wp-content/uploads/2022/06/hex-g13f0488b9_1920-220x162.jpg 1x, https://magiclen.org/wp-content/uploads/2022/06/hex-g13f0488b9_1920-440x324.jpg 2x, https://magiclen.org/wp-content/uploads/2022/06/hex-g13f0488b9_1920-660x486.jpg 3x" alt="">
所謂的密鋪(tessellation)是用一種或多種平面形狀去填滿一個更大的平面。用正六邊形(regular hexagon)來密鋪成網格(grid)，會比用矩形密鋪還來得更複雜，造成更藝術的視覺效果。那麼要如何寫程式來畫出這個複雜的正六邊形網格呢？]]></description><category>研究分享</category><category>演算法</category><category>JavaScript</category><guid>https://magiclen.org/regular-hexagon-grid</guid><pubDate>Tue, 23 Aug 2022 12:00:00 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>如何寫程式畫出正多邊形？</title><link>https://magiclen.org/regular-polygon</link><description><![CDATA[    <img src="https://magiclen.org/wp-content/uploads/2022/06/pentacontagon-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2022/06/pentacontagon-220x162.png 1x, https://magiclen.org/wp-content/uploads/2022/06/pentacontagon-440x324.png 2x, https://magiclen.org/wp-content/uploads/2022/06/pentacontagon-660x486.png 3x" alt="">
N邊形，有N個頂點、N個邊。每個邊都是由兩個頂點連線組成，因此只要找到多邊形的各頂點座標，就可以輕易地連線畫出多邊形了！而所謂的正多邊形，它的邊都是等長的，且任意相鄰兩邊之間所形成的夾角也都是相等的。]]></description><category>研究分享</category><category>程式設計</category><category>演算法</category><category>JavaScript</category><guid>https://magiclen.org/regular-polygon</guid><pubDate>Thu, 18 Aug 2022 12:00:00 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>如何設定 GRUB 預設的開機項目？</title><link>https://magiclen.org/grub-default</link><description><![CDATA[    <img src="https://magiclen.org/wp-content/uploads/2022/08/shot-04-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2022/08/shot-04-220x162.png 1x, https://magiclen.org/wp-content/uploads/2022/08/shot-04-440x324.png 2x, https://magiclen.org/wp-content/uploads/2022/08/shot-04-660x486.png 3x" alt="">
GRUB是Linux作業系統使用的開機引導程式，除了可以拿來用指定的Linux Kernel開啟Linux作業系統外，也可以拿來開Windows作業系統。電腦在開機的時候，會先啟動GRUB，GRUB能出現開機選單等待一段時間讓使用者選擇要開哪種作業系統，或者也能讓GRUB直接進入預設的作業系統。這篇文章將會介紹設定GRUB所預設進入的作業系統的方式。]]></description><category>Linux</category><category>GRUB</category><category>Linux</category><guid>https://magiclen.org/grub-default</guid><pubDate>Tue, 16 Aug 2022 12:00:00 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>如何開啟 GRUB 選單？</title><link>https://magiclen.org/grub-menu</link><description><![CDATA[    <img src="https://magiclen.org/wp-content/uploads/2022/08/shot-04-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2022/08/shot-04-220x162.png 1x, https://magiclen.org/wp-content/uploads/2022/08/shot-04-440x324.png 2x, https://magiclen.org/wp-content/uploads/2022/08/shot-04-660x486.png 3x" alt="">
如果您的電腦並沒有安裝兩個以上的作業系統，那麼在電腦開機時可能不會顯示出GRUB選單。若還是想呼叫出GRUB選單(例如想用其它的Linux Kernel來開機)，可以參考本篇文章的做法。]]></description><category>Linux</category><category>GRUB</category><category>Linux</category><guid>https://magiclen.org/grub-menu</guid><pubDate>Thu, 11 Aug 2022 12:00:00 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>Ardour 一個能運行在 Linux 作業系統上的免費開源的數位音樂工作站</title><link>https://magiclen.org/ardour</link><description><![CDATA[    <img src="https://magiclen.org/wp-content/uploads/2022/06/shot-15-2-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2022/06/shot-15-2-220x162.png 1x, https://magiclen.org/wp-content/uploads/2022/06/shot-15-2-440x324.png 2x, https://magiclen.org/wp-content/uploads/2022/06/shot-15-2-660x486.png 3x" alt="">
Ardour是一款開源的數位音樂工作站(DAW, Digital Audio Workstation)軟體，可以用來錄音、混音、剪輯，並且支援LADSPA、LV2、VST等音效插件(Audio Plug-in)。除了Linux作業系統之外，Ardour也支援Windows和macOS，不過幾乎不會看到有人在Linux之外的平台使用Ardour，因為在這兩個平台上有很多更合適的選擇，但是在Linux...]]></description><category>軟體介紹</category><category>音樂心得</category><category>Linux</category><category>Windows</category><category>macOS</category><category>Ardour</category><category>DAW</category><category>VST</category><category>LV2</category><category>Pianoteq</category><category>影音</category><guid>https://magiclen.org/ardour</guid><pubDate>Tue, 9 Aug 2022 12:00:00 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>如何查出 Linux 作業系統是用 UEFI 還是 Legacy BIOS 來開機的？</title><link>https://magiclen.org/linux-uefi-bios</link><description><![CDATA[    <img src="https://magiclen.org/wp-content/uploads/2022/08/shot-02-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2022/08/shot-02-220x162.png 1x, https://magiclen.org/wp-content/uploads/2022/08/shot-02-440x324.png 2x, https://magiclen.org/wp-content/uploads/2022/08/shot-02-660x486.png 3x" alt="">
UEFI(Unified Extensible Firmware Interface，統一可延伸韌體介面)是取代傳統BIOS(Basic Input/output System，基本輸入輸出系統)的東西，比BIOS速度更快，且擁有可以使用滑鼠游標來操作的圖形介面。一般來說，使用者不太需要知道自己的電腦到底是UEFI還是BIOS，但如果使用者想要自行安裝作業系統的話，就會有差別了。這篇文章將會說明要...]]></description><category>Linux</category><category>Linux</category><category>UEFI</category><category>efibootmgr</category><category>BIOS</category><guid>https://magiclen.org/linux-uefi-bios</guid><pubDate>Thu, 4 Aug 2022 12:00:00 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>如何復原Git的變動？已經commit的變動還能怎麼復原呢？</title><link>https://magiclen.org/git-recovery</link><description><![CDATA[    <img src="https://magiclen.org/wp-content/uploads/2022/06/git-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2022/06/git-220x162.png 1x, https://magiclen.org/wp-content/uploads/2022/06/git-440x324.png 2x, https://magiclen.org/wp-content/uploads/2022/06/git-660x486.png 3x" alt="">
在使用Git進行程式專案或是其它任何專案的版本控制時，有時候可能會因為一些意外而導致專案發生了不應該出現的變動，這時候要如何利用Git來還原呢？在這篇文章中，將會介紹如何用「git checkout」、「git reset」、「git revert」這三種指令來分別處理不同的狀況。]]></description><category>研究分享</category><category>軟體介紹</category><category>Git</category><category>版本控制</category><guid>https://magiclen.org/git-recovery</guid><pubDate>Tue, 2 Aug 2022 12:00:00 +0800</pubDate><dc:creator>Magic Len</dc:creator></item></channel></rss>