<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Posts on 隨堂測驗紙</title><link>https://www.beemoalex.net/post/</link><description>Recent content in Posts on 隨堂測驗紙</description><generator>Hugo -- gohugo.io</generator><language>zh-tw</language><lastBuildDate>Fri, 26 Aug 2022 01:00:00 +0200</lastBuildDate><atom:link href="https://www.beemoalex.net/post/index.xml" rel="self" type="application/rss+xml"/><item><title>寫部落格的開始</title><link>https://www.beemoalex.net/p/%E5%AF%AB%E9%83%A8%E8%90%BD%E6%A0%BC%E7%9A%84%E9%96%8B%E5%A7%8B/</link><pubDate>Fri, 26 Aug 2022 01:00:00 +0200</pubDate><guid>https://www.beemoalex.net/p/%E5%AF%AB%E9%83%A8%E8%90%BD%E6%A0%BC%E7%9A%84%E9%96%8B%E5%A7%8B/</guid><description>&lt;img src="https://www.beemoalex.net/p/%E5%AF%AB%E9%83%A8%E8%90%BD%E6%A0%BC%E7%9A%84%E9%96%8B%E5%A7%8B/cover.jpg" alt="Featured image of post 寫部落格的開始" />&lt;h1 id="一開始">一開始&lt;/h1>
&lt;hr>
&lt;p>買這個網域已經有了四年的時間，起初想要簡單寫個網誌，偶爾需要火力展示什麼的想著想著覺得應該方便許多，自己有個網域感覺多拉風阿。&lt;/p>
&lt;p>&lt;img src="https://www.beemoalex.net/p/%E5%AF%AB%E9%83%A8%E8%90%BD%E6%A0%BC%E7%9A%84%E9%96%8B%E5%A7%8B/Untitled.png"
width="536"
height="177"
srcset="https://www.beemoalex.net/p/%E5%AF%AB%E9%83%A8%E8%90%BD%E6%A0%BC%E7%9A%84%E9%96%8B%E5%A7%8B/Untitled_hu7f13bea53d9e9cf8e4f44a85c690f90a_11440_480x0_resize_box_3.png 480w, https://www.beemoalex.net/p/%E5%AF%AB%E9%83%A8%E8%90%BD%E6%A0%BC%E7%9A%84%E9%96%8B%E5%A7%8B/Untitled_hu7f13bea53d9e9cf8e4f44a85c690f90a_11440_1024x0_resize_box_3.png 1024w"
loading="lazy"
alt="Untitled"
class="gallery-image"
data-flex-grow="302"
data-flex-basis="726px"
>&lt;/p>
&lt;h1 id="興致沖沖的開始">興致沖沖的開始&lt;/h1>
&lt;hr>
&lt;p>在GCP上租了主機，心想阿這就是網誌的開始，開始找資料查詢哪一個框架好，哪一個編輯器好寫。&lt;/p>
&lt;blockquote>
&lt;p>最後選定了 &lt;a class="link" href="https://hexo.io/zh-tw/" target="_blank" rel="noopener"
>HEXO&lt;/a> 作為框架&lt;/p>
&lt;/blockquote>
&lt;p>網誌內容為了測試就打了建設中，像是要有甚麼偉大的建設一樣，圍上了施工布條。&lt;/p>
&lt;p>&lt;img src="https://www.beemoalex.net/p/%E5%AF%AB%E9%83%A8%E8%90%BD%E6%A0%BC%E7%9A%84%E9%96%8B%E5%A7%8B/Untitled1.png"
width="1365"
height="804"
srcset="https://www.beemoalex.net/p/%E5%AF%AB%E9%83%A8%E8%90%BD%E6%A0%BC%E7%9A%84%E9%96%8B%E5%A7%8B/Untitled1_hu892695f283cd54bd2697d0aa6cafe61d_1319963_480x0_resize_box_3.png 480w, https://www.beemoalex.net/p/%E5%AF%AB%E9%83%A8%E8%90%BD%E6%A0%BC%E7%9A%84%E9%96%8B%E5%A7%8B/Untitled1_hu892695f283cd54bd2697d0aa6cafe61d_1319963_1024x0_resize_box_3.png 1024w"
loading="lazy"
alt="Untitled"
class="gallery-image"
data-flex-grow="169"
data-flex-basis="407px"
>&lt;/p>
&lt;h1 id="荒廢期">荒廢期&lt;/h1>
&lt;hr>
&lt;p>&lt;strong>然後呢？&lt;/strong>&lt;/p>
&lt;p>然後？就沒有然後了。
架設主機後就像是蠟燭燃燒殆盡一樣，腦袋每次動手都在想為何要寫？&lt;/p>
&lt;blockquote>
&lt;p>編輯文章並沒有編輯器好寫
Server每次都要push文章重新生成，並沒有建構CI/CD
覺得自己寫了沒人看，參考文章也是貼來貼去
寫了被人批評被人笑怎麼辦&lt;/p>
&lt;/blockquote>
&lt;p>內心設想了無數的劇本。心裡想改天好了，何必這樣摧殘自己呢？上班都夠累了，就這樣過了一年。&lt;/p>
&lt;p>某天機器通知被**&lt;a class="link" href="https://www.cloudflare.com/zh-tw/learning/ddos/syn-flood-ddos-attack/" target="_blank" rel="noopener"
>DDoS 攻擊&lt;/a>，從**GCP轉至linode，又是搬阿搬拆阿拆，甚至還把建置流程寫了DockerFile方便又要搬移的作法。&lt;/p>
&lt;p>就是不動鍵盤生出一篇文章。&lt;/p>
&lt;p>雖然，從2020開始使用Notion寫了許多筆記，但始終沒有重新整理輸出到部落格上。&lt;/p>
&lt;h1 id="火種">火種？&lt;/h1>
&lt;hr>
&lt;p>就這樣時間過了四年來到2022年，某天在FaceBook看到91寫到一篇 &lt;a class="link" href="https://tdd.best/blog/why-engineers-should-keep-blogging/" target="_blank" rel="noopener"
>我為什麼鼓勵工程師寫 blog&lt;/a> 一文 引用了 &lt;a class="link" href="https://blog.codinghorror.com/how-to-achieve-ultimate-blog-success-in-one-easy-step/" target="_blank" rel="noopener"
>How To Achieve Ultimate Blog Success In One Easy Step&lt;/a> 翻譯過來一段話：&lt;/p>
&lt;blockquote>
&lt;p>&lt;strong>挑個你自認為可以的時間行程安排，什麼時候開始寫 blog，預計多久寫一篇文，開始動工，並堅持下去。在你這麼做之前，任何建議對你來說都是不重要的&lt;/strong>。你文章是否寫得很糟糕不重要，是否沒有任何人會看你的 blog 不重要，是不是沒啥有趣的東西可以紀錄也不重要。重要的是，只要你能透過寫文來表現出寫作的意願，而且渴望持續地寫作，檢視、思考與改善自己的寫作，你終究會成功的。&lt;/p>
&lt;/blockquote>
&lt;p>看完這段話，我的確是想了太多。&lt;/p>
&lt;h1 id="notion寫上去跟blog不一樣">Notion寫上去跟Blog不一樣?&lt;/h1>
&lt;hr>
&lt;p>當開始撰寫時，就想著應該只要把Notion的筆記給倒出來就好？&lt;/p>
&lt;p>&lt;strong>就好了吧？&lt;/strong>&lt;/p>
&lt;p>倒文章的當下發現了一堆即使我寫了也看不懂的文章反而占了一部分，步驟上也非常凌亂不堪。&lt;/p>
&lt;p>事情看來沒有這麼簡單。於是在整理新的主題得時候，想著說不定會有人看了這邊文章操作，反而讓我更專注在有可能漏掉的地方，或是更注重步驟上的紀錄。&lt;/p>
&lt;h1 id="寫在這裡就是要救未來的自己">寫在這裡就是要救未來的自己&lt;/h1>
&lt;hr>
&lt;h3 id="可能哪一天我要看或是哪一天有人要看">可能哪一天我要看或是哪一天有人要看？&lt;/h3>
&lt;h3 id="雖然寫得很醜很爛又貼來貼去但寫下去就對了吧">雖然寫得很醜很爛又貼來貼去，但寫下去就對了吧&lt;/h3>
&lt;p>大概是這樣的想法開始寫Blog的開始，就像這個Blog名稱一樣**&lt;a class="link" href="https://www.beemoalex.net/" target="_blank" rel="noopener"
>隨堂測驗紙&lt;/a>**。&lt;/p>
&lt;p>因為想要紀錄步驟，找一個好寫且便宜的地方放在那裏讓我好尋找，為了自己而寫。&lt;/p>
&lt;h1 id="參考-感謝巨人們的肩膀-沒有你們就沒有這篇文章">參考 感謝巨人們的肩膀 沒有你們就沒有這篇文章&lt;/h1>
&lt;hr>
&lt;p>&lt;a class="link" href="https://pinchlime.com/2020/03/07/why-should-we-keep-blogging/" target="_blank" rel="noopener"
>好文推薦——《我為什麼鼓勵工程師寫blog》 - Pin 起來！ (pinchlime.com)&lt;/a>&lt;/p>
&lt;p>&lt;a class="link" href="https://tdd.best/blog/why-engineers-should-keep-blogging/" target="_blank" rel="noopener"
>我為什麼鼓勵工程師寫 blog - 最好的 TDD 學習資源&lt;/a>&lt;/p></description></item><item><title>打造漂亮 Powershell 7 開發環境_使用oh-my-posh</title><link>https://www.beemoalex.net/p/%E6%89%93%E9%80%A0%E6%BC%82%E4%BA%AE-powershell-7-%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83_%E4%BD%BF%E7%94%A8oh-my-posh/</link><pubDate>Thu, 25 Aug 2022 01:00:00 +0200</pubDate><guid>https://www.beemoalex.net/p/%E6%89%93%E9%80%A0%E6%BC%82%E4%BA%AE-powershell-7-%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83_%E4%BD%BF%E7%94%A8oh-my-posh/</guid><description>&lt;img src="https://www.beemoalex.net/p/%E6%89%93%E9%80%A0%E6%BC%82%E4%BA%AE-powershell-7-%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83_%E4%BD%BF%E7%94%A8oh-my-posh/cover.jpg" alt="Featured image of post 打造漂亮 Powershell 7 開發環境_使用oh-my-posh" />&lt;h1 id="前言">前言&lt;/h1>
&lt;hr>
&lt;p>以前還在前公司&lt;strong>&lt;strong>Infra&lt;/strong>&lt;/strong>職時，習慣用&lt;a class="link" href="https://ohmyz.sh/" target="_blank" rel="noopener"
>Oh My Zsh&lt;/a> 美化自己的 terminal。&lt;/p>
&lt;p>在這間公司時又懷念起 Linux體系的 &lt;a class="link" href="https://ohmyz.sh/" target="_blank" rel="noopener"
>Oh My Zsh&lt;/a> terminal那樣的介面，於是又動手把它裝起來，git提示跟字體真的讓自己下語法會好蠻多的。&lt;/p>
&lt;p>這陣子又有新環境要安裝，卻沒找到之前的步驟，這次還是乖乖地寫下來。&lt;/p>
&lt;h1 id="環境建置">環境建置&lt;/h1>
&lt;hr>
&lt;p>1.使用PowerShell，先安裝&lt;a class="link" href="https://apps.microsoft.com/store/detail/windows-terminal/9N0DX20HK701?hl=zh-tw&amp;amp;gl=TW" target="_blank" rel="noopener"
>Windows Terminal&lt;/a> 新版本
(可以去Store安裝也可，Win10都用winget了下個指令也行 )&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="n">winget&lt;/span> &lt;span class="n">install&lt;/span> &lt;span class="n">Microsoft&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">WindowsTerminal&lt;/span> &lt;span class="n">-e&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>2.升級PowerShell 7&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="n">winget&lt;/span> &lt;span class="n">install&lt;/span> &lt;span class="n">Microsoft&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">PowerShell&lt;/span> &lt;span class="n">-e&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>改一下預設開啟&lt;a class="link" href="https://apps.microsoft.com/store/detail/windows-terminal/9N0DX20HK701?hl=zh-tw&amp;amp;gl=TW" target="_blank" rel="noopener"
>Windows Terminal&lt;/a> 時為 PowerShell 7，改完後重開一下切成PowerShell 7&lt;/p>
&lt;p>&lt;img src="https://www.beemoalex.net/p/%E6%89%93%E9%80%A0%E6%BC%82%E4%BA%AE-powershell-7-%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83_%E4%BD%BF%E7%94%A8oh-my-posh/5.png"
width="1106"
height="616"
srcset="https://www.beemoalex.net/p/%E6%89%93%E9%80%A0%E6%BC%82%E4%BA%AE-powershell-7-%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83_%E4%BD%BF%E7%94%A8oh-my-posh/5_hufa7665bd0a8f25ea478ba4ba32843072_56241_480x0_resize_box_3.png 480w, https://www.beemoalex.net/p/%E6%89%93%E9%80%A0%E6%BC%82%E4%BA%AE-powershell-7-%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83_%E4%BD%BF%E7%94%A8oh-my-posh/5_hufa7665bd0a8f25ea478ba4ba32843072_56241_1024x0_resize_box_3.png 1024w"
loading="lazy"
alt="5"
class="gallery-image"
data-flex-grow="179"
data-flex-basis="430px"
>&lt;/p>
&lt;p>3.安裝 oh-my-posh&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="n">winget&lt;/span> &lt;span class="n">install&lt;/span> &lt;span class="n">JanDeDobbeleer&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">OhMyPosh&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>修改一下PowerShell使用者配置檔，打開使用者配置檔案&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="n">notepad&lt;/span> &lt;span class="nv">$PROFILE&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;blockquote>
&lt;p>如果你是打不開的代表沒文件，請創建使用者配置檔&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">New-Item&lt;/span> &lt;span class="n">-Path&lt;/span> &lt;span class="nv">$PROFILE&lt;/span> &lt;span class="n">-Type&lt;/span> &lt;span class="n">File&lt;/span> &lt;span class="n">-Force&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;/blockquote>
&lt;p>打開配置檔的記事本後，增加以下內容&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">oh-my&lt;/span>&lt;span class="n">-posh&lt;/span> &lt;span class="n">init&lt;/span> &lt;span class="n">pwsh&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="nb">Invoke-Expression&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>存檔後回到&lt;a class="link" href="https://apps.microsoft.com/store/detail/windows-terminal/9N0DX20HK701?hl=zh-tw&amp;amp;gl=TW" target="_blank" rel="noopener"
>Windows Terminal&lt;/a> 讓他重新載入內容&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="p">.&lt;/span> &lt;span class="nv">$PROFILE&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>&lt;img src="https://www.beemoalex.net/p/%E6%89%93%E9%80%A0%E6%BC%82%E4%BA%AE-powershell-7-%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83_%E4%BD%BF%E7%94%A8oh-my-posh/1.png"
width="178"
height="22"
srcset="https://www.beemoalex.net/p/%E6%89%93%E9%80%A0%E6%BC%82%E4%BA%AE-powershell-7-%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83_%E4%BD%BF%E7%94%A8oh-my-posh/1_hu2b3e8c5bbce1e49952eabf479c329537_993_480x0_resize_box_3.png 480w, https://www.beemoalex.net/p/%E6%89%93%E9%80%A0%E6%BC%82%E4%BA%AE-powershell-7-%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83_%E4%BD%BF%E7%94%A8oh-my-posh/1_hu2b3e8c5bbce1e49952eabf479c329537_993_1024x0_resize_box_3.png 1024w"
loading="lazy"
alt="當看到前面這樣時別慌張，缺個字體而已"
class="gallery-image"
data-flex-grow="809"
data-flex-basis="1941px"
>&lt;/p>
&lt;p>oh-my-posh輸入&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">oh-my&lt;/span>&lt;span class="n">-posh&lt;/span> &lt;span class="n">font&lt;/span> &lt;span class="n">install&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>跑出字體選單，選一個喜歡的就好，&lt;/p>
&lt;!-- raw HTML omitted -->
&lt;p>&lt;a class="link" href="https://www.nerdfonts.com/font-downloads" target="_blank" rel="noopener"
>Nerd Fonts - Iconic font aggregator, glyphs/icons collection, &amp;amp; fonts patcher&lt;/a>&lt;/p>
&lt;!-- raw HTML omitted -->
&lt;blockquote>
&lt;p>個人還是建議選Mono字體，等寬換行上才不會有多人協作換行問題&lt;/p>
&lt;/blockquote>
&lt;p>&lt;img src="https://www.beemoalex.net/p/%E6%89%93%E9%80%A0%E6%BC%82%E4%BA%AE-powershell-7-%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83_%E4%BD%BF%E7%94%A8oh-my-posh/2.png"
width="360"
height="270"
srcset="https://www.beemoalex.net/p/%E6%89%93%E9%80%A0%E6%BC%82%E4%BA%AE-powershell-7-%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83_%E4%BD%BF%E7%94%A8oh-my-posh/2_hu5df41ad31d54fb4c9f183586cc40293f_11665_480x0_resize_box_3.png 480w, https://www.beemoalex.net/p/%E6%89%93%E9%80%A0%E6%BC%82%E4%BA%AE-powershell-7-%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83_%E4%BD%BF%E7%94%A8oh-my-posh/2_hu5df41ad31d54fb4c9f183586cc40293f_11665_1024x0_resize_box_3.png 1024w"
loading="lazy"
alt="Untitled"
class="gallery-image"
data-flex-grow="133"
data-flex-basis="320px"
>&lt;/p>
&lt;p>下載完成後請按下 &lt;code>CTRL + SHIFT + ,&lt;/code>&lt;/p>
&lt;p>跳出編輯視窗尋找 &lt;code>profiles &amp;gt; list &amp;gt; name&lt;/code> 值為 PowerShell 7 的區塊，增加區塊&lt;/p>
&lt;p>face 值就是你剛剛下載字體的區塊，像我就選粗體的&lt;code>AurulentSansMono&lt;/code>&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;span class="lnt">2
&lt;/span>&lt;span class="lnt">3
&lt;/span>&lt;span class="lnt">4
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-json" data-lang="json">&lt;span class="line">&lt;span class="cl">&lt;span class="s2">&amp;#34;font&amp;#34;&lt;/span>&lt;span class="err">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">{&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nt">&amp;#34;face&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;AurulentSansMono NF&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">}&lt;/span>&lt;span class="err">,&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>改好了就像這樣&lt;/p>
&lt;p>&lt;img src="https://www.beemoalex.net/p/%E6%89%93%E9%80%A0%E6%BC%82%E4%BA%AE-powershell-7-%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83_%E4%BD%BF%E7%94%A8oh-my-posh/3.png"
width="915"
height="257"
srcset="https://www.beemoalex.net/p/%E6%89%93%E9%80%A0%E6%BC%82%E4%BA%AE-powershell-7-%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83_%E4%BD%BF%E7%94%A8oh-my-posh/3_huc4a5937caf471ee888bc9e7946062d13_38980_480x0_resize_box_3.png 480w, https://www.beemoalex.net/p/%E6%89%93%E9%80%A0%E6%BC%82%E4%BA%AE-powershell-7-%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83_%E4%BD%BF%E7%94%A8oh-my-posh/3_huc4a5937caf471ee888bc9e7946062d13_38980_1024x0_resize_box_3.png 1024w"
loading="lazy"
alt="3"
class="gallery-image"
data-flex-grow="356"
data-flex-basis="854px"
>&lt;/p>
&lt;blockquote>
&lt;p>為什麼不改 defaults ?
改了之後 VS 底下的 終端機視窗符號無法顯示，建議改個指定來源就好&lt;/p>
&lt;/blockquote>
&lt;p>重新啟動 &lt;a class="link" href="https://apps.microsoft.com/store/detail/windows-terminal/9N0DX20HK701?hl=zh-tw&amp;amp;gl=TW" target="_blank" rel="noopener"
>&lt;code>Windows Terminal&lt;/code>&lt;/a>&lt;/p>
&lt;p>&lt;strong>完工&lt;/strong>&lt;/p>
&lt;p>&lt;img src="https://www.beemoalex.net/p/%E6%89%93%E9%80%A0%E6%BC%82%E4%BA%AE-powershell-7-%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83_%E4%BD%BF%E7%94%A8oh-my-posh/4.png"
width="1231"
height="311"
srcset="https://www.beemoalex.net/p/%E6%89%93%E9%80%A0%E6%BC%82%E4%BA%AE-powershell-7-%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83_%E4%BD%BF%E7%94%A8oh-my-posh/4_huf9777074d93e10a1f8c2fe94f19963d2_27528_480x0_resize_box_3.png 480w, https://www.beemoalex.net/p/%E6%89%93%E9%80%A0%E6%BC%82%E4%BA%AE-powershell-7-%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83_%E4%BD%BF%E7%94%A8oh-my-posh/4_huf9777074d93e10a1f8c2fe94f19963d2_27528_1024x0_resize_box_3.png 1024w"
loading="lazy"
alt="Untitled"
class="gallery-image"
data-flex-grow="395"
data-flex-basis="949px"
>&lt;/p>
&lt;h2 id="額外補充">額外補充&lt;/h2>
&lt;hr>
&lt;h3 id="修改主題">修改主題&lt;/h3>
&lt;p>如果真的嫌主題醜或是不實用可以上 &lt;a class="link" href="https://ohmyposh.dev/docs/themes" target="_blank" rel="noopener"
>Themes | Oh My Posh&lt;/a> 看看喜歡的&lt;/p>
&lt;p>打開配置文件 &lt;code>notepad $PROFILE&lt;/code> 第一行更新&lt;/p>
&lt;p>修改以下 &lt;strong>&amp;quot;$env:POSH_THEMES_PATH{主題名稱}.omp.json&amp;quot;&lt;/strong>&lt;/p>
&lt;p>範例:&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-json" data-lang="json">&lt;span class="line">&lt;span class="cl">&lt;span class="err">oh-my-posh&lt;/span> &lt;span class="err">init&lt;/span> &lt;span class="err">pwsh&lt;/span> &lt;span class="err">--config&lt;/span> &lt;span class="s2">&amp;#34;$env:POSH_THEMES_PATH\gruvbox.omp.json&amp;#34;&lt;/span> &lt;span class="err">|&lt;/span> &lt;span class="err">Invoke-Expression&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;h3 id="posh-git-git補完插件">&lt;strong>&lt;strong>posh-git git補完插件&lt;/strong>&lt;/strong>&lt;/h3>
&lt;p>既然都裝了這些常常忘記git怎麼下，自然也是裝起來，使用&lt;code>Install-Module&lt;/code> 功能下載安裝&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">Install-Module&lt;/span> &lt;span class="nb">posh-git&lt;/span> &lt;span class="n">-Scope&lt;/span> &lt;span class="n">CurrentUser&lt;/span> &lt;span class="n">-Force&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>完成後輸入依樣輸入 &lt;code>notepad $PROFILE&lt;/code> 打開配置檔案，加入最後一行存檔&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">Import-Module&lt;/span> &lt;span class="nb">posh-git&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>重新載入使用者配置檔，輸入&lt;code>. $PROFILE&lt;/code> 就能自動補上git指令了&lt;/p>
&lt;h1 id="參考-感謝巨人們的肩膀-沒有你們就沒有這篇文章">參考 感謝巨人們的肩膀 沒有你們就沒有這篇文章&lt;/h1>
&lt;hr>
&lt;p>&lt;a class="link" href="https://blog.miniasp.com/post/2021/11/24/PowerShell-prompt-with-Oh-My-Posh-and-Windows-Terminal" target="_blank" rel="noopener"
>如何打造一個華麗又實用的 PowerShell 命令輸入環境 | The Will Will Web (miniasp.com)&lt;/a>&lt;/p>
&lt;p>&lt;a class="link" href="https://github.com/microsoft/terminal" target="_blank" rel="noopener"
>microsoft/terminal: The new Windows Terminal and the original Windows console host, all in the same place! (github.com)&lt;/a>&lt;/p>
&lt;p>&lt;a class="link" href="https://www.kwchang0831.dev/dev-env/pwsh/oh-my-posh#%E6%9B%B4%E6%94%B9-oh-my-posh-%E4%B8%BB%E9%A1%8C" target="_blank" rel="noopener"
>安裝新版 Oh My Posh 與插件來美化 PowerShell | 成功他媽．阿瑋 (kwchang0831.dev)&lt;/a>&lt;/p>
&lt;p>&lt;a class="link" href="https://ohmyposh.dev/docs/installation/prompt" target="_blank" rel="noopener"
>Change your prompt | Oh My Posh&lt;/a>&lt;/p>
&lt;p>&lt;a class="link" href="https://github.com/dahlbyk/posh-git" target="_blank" rel="noopener"
>dahlbyk/posh-git： A PowerShell environment for Git (github.com)&lt;/a>&lt;/p></description></item><item><title>框架與架構差別</title><link>https://www.beemoalex.net/p/%E6%A1%86%E6%9E%B6%E8%88%87%E6%9E%B6%E6%A7%8B%E5%B7%AE%E5%88%A5/</link><pubDate>Sun, 14 Aug 2022 01:00:00 +0200</pubDate><guid>https://www.beemoalex.net/p/%E6%A1%86%E6%9E%B6%E8%88%87%E6%9E%B6%E6%A7%8B%E5%B7%AE%E5%88%A5/</guid><description>&lt;img src="https://www.beemoalex.net/p/%E6%A1%86%E6%9E%B6%E8%88%87%E6%9E%B6%E6%A7%8B%E5%B7%AE%E5%88%A5/cover.jpg" alt="Featured image of post 框架與架構差別" />&lt;h1 id="軟體架構-software-architecture">&lt;strong>軟體架構 （Software Architecture）&lt;/strong>&lt;/h1>
&lt;hr>
&lt;p>&lt;img src="https://www.beemoalex.net/p/%E6%A1%86%E6%9E%B6%E8%88%87%E6%9E%B6%E6%A7%8B%E5%B7%AE%E5%88%A5/Untitled.png"
width="625"
height="439"
srcset="https://www.beemoalex.net/p/%E6%A1%86%E6%9E%B6%E8%88%87%E6%9E%B6%E6%A7%8B%E5%B7%AE%E5%88%A5/Untitled_hubbe40d2f385fd10fa0cb08af0920d2e9_81164_480x0_resize_box_3.png 480w, https://www.beemoalex.net/p/%E6%A1%86%E6%9E%B6%E8%88%87%E6%9E%B6%E6%A7%8B%E5%B7%AE%E5%88%A5/Untitled_hubbe40d2f385fd10fa0cb08af0920d2e9_81164_1024x0_resize_box_3.png 1024w"
loading="lazy"
alt="Untitled"
class="gallery-image"
data-flex-grow="142"
data-flex-basis="341px"
>&lt;/p>
&lt;p>&lt;strong>軟體架構（Software Architecture）是一種軟體的藍圖，它告訴你這個軟體的結構，功能，介面，用法，與其他系統的構連以及資料交換等等規範，但它並沒有叫你要用什麼方式實作&lt;/strong>&lt;/p>
&lt;h1 id="軟體框架framework">軟體框架（Framework）&lt;/h1>
&lt;hr>
&lt;p>&lt;img src="https://www.beemoalex.net/p/%E6%A1%86%E6%9E%B6%E8%88%87%E6%9E%B6%E6%A7%8B%E5%B7%AE%E5%88%A5/Untitled2.png"
width="587"
height="344"
srcset="https://www.beemoalex.net/p/%E6%A1%86%E6%9E%B6%E8%88%87%E6%9E%B6%E6%A7%8B%E5%B7%AE%E5%88%A5/Untitled2_huba6e4750abaea841be8f2289c8b5c985_102102_480x0_resize_box_3.png 480w, https://www.beemoalex.net/p/%E6%A1%86%E6%9E%B6%E8%88%87%E6%9E%B6%E6%A7%8B%E5%B7%AE%E5%88%A5/Untitled2_huba6e4750abaea841be8f2289c8b5c985_102102_1024x0_resize_box_3.png 1024w"
loading="lazy"
alt="Untitled"
class="gallery-image"
data-flex-grow="170"
data-flex-basis="409px"
>&lt;/p>
&lt;p>&lt;strong>在一個既定的框架下可以做的工作&lt;/strong>，也就是說，&lt;strong>這是一個已經成形的方法，而且有程式碼實體&lt;/strong>
（例如鋼構工法也是要有鋼材才能做）&lt;strong>，並且會告訴你要如何使用它&lt;/strong>（即 Framework Documentation，MSDN Library 即為一最佳例子）&lt;/p>
&lt;h1 id="分析">分析&lt;/h1>
&lt;hr>
&lt;p>Framework 和 Architecture 經常被用來叫做架構，其實它們兩個本質上的差異是很大的，Framework 只會告訴你怎麼用，但不會告訴你怎麼實作出特定功能，而 Architecture 是告訴你某些功能的走向以及方針，但卻沒有程式碼給你，所以 Architecture 通常會需要 Framework 來實現，而 Framework 也需要 Architecture 才能發揮其所長。&lt;/p>
&lt;h1 id="同理可證">同理可證&lt;/h1>
&lt;hr>
&lt;p>&lt;a class="link" href="http://1.Net" target="_blank" rel="noopener"
>1. Net&lt;/a> Core 可說是一個開發框架嗎?&lt;/p>
&lt;p>是&lt;/p>
&lt;ol>
&lt;li>WebForm 和 MVC 究竟是 框架 還是一種 架構模式&lt;/li>
&lt;/ol>
&lt;p>架構，因為架構能可以有不同框架來實現(EX: .net Core MVC 範本)&lt;/p>
&lt;ol>
&lt;li>架構跟框架是不是同一種東西?&lt;/li>
&lt;/ol>
&lt;p>不是，架構偏於規範，框架則有程式碼或是已有套件&lt;/p>
&lt;h1 id="參考">參考&lt;/h1>
&lt;hr>
&lt;p>&lt;a class="link" href="https://coolmandiary.blogspot.com/2016/08/architecture-framework.html" target="_blank" rel="noopener"
>Architecture(架構) 和 Framework(框架) 有何不同?_軟體設計前的事前規劃的藍圖概念 (coolmandiary.blogspot.com)&lt;/a>&lt;/p>
&lt;p>&lt;a class="link" href="https://dotblogs.com.tw/regionbbs/2009/06/12/framework_vs_architecture" target="_blank" rel="noopener"
>Framework 和 Architecture 有何不同? | 小朱® 的技術隨手寫 - 點部落 (dotblogs.com.tw)&lt;/a>&lt;/p></description></item></channel></rss>