<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Wang Minder on Medium]]></title>
        <description><![CDATA[Stories by Wang Minder on Medium]]></description>
        <link>https://medium.com/@wangminder?source=rss-777b0b27b590------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*MGt78EV9QBFmx0d-.</url>
            <title>Stories by Wang Minder on Medium</title>
            <link>https://medium.com/@wangminder?source=rss-777b0b27b590------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 18:12:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@wangminder/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Mantine v8 — fonts]]></title>
            <link>https://medium.com/@wangminder/mantine-v8-fonts-f63e76357c65?source=rss-777b0b27b590------2</link>
            <guid isPermaLink="false">https://medium.com/p/f63e76357c65</guid>
            <category><![CDATA[mantine]]></category>
            <dc:creator><![CDATA[Wang Minder]]></dc:creator>
            <pubDate>Thu, 15 Jan 2026 02:56:37 GMT</pubDate>
            <atom:updated>2026-01-15T02:56:37.471Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Mantine v8 — fonts</strong></h3><p>下面用 <strong>Mantine v8</strong> 為例，示範「<strong>加入 Google Fonts，並讓 </strong><strong>&lt;Text /&gt; 使用該字型</strong>」的正確做法 👍<br>（適用於 Vite + React，你前面用的也是這個組合）</p><h3>一、加入 Google Fonts（2 種常見方式）</h3><h3>✅ 方式 1：在 index.html 引入（最簡單、推薦）</h3><pre>&lt;!-- index.html --&gt;<br>&lt;link rel=&quot;preconnect&quot; href=&quot;https://fonts.googleapis.com&quot; /&gt;<br>&lt;link rel=&quot;preconnect&quot; href=&quot;https://fonts.gstatic.com&quot; crossorigin /&gt;<br>&lt;link<br>  href=&quot;https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;600;700&amp;display=swap&quot;<br>  rel=&quot;stylesheet&quot;<br>/&gt;</pre><blockquote><em>你在台灣，很常用：</em></blockquote><ul><li>Noto Sans TC</li><li>Noto Serif TC</li></ul><h3>方式 2：用 CSS @import（不推薦但可用）</h3><pre>/* main.css */<br>@import url(https://medium.com/&#39;https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;600;700&amp;display=swap&#39;);</pre><h3>二、讓 Mantine 全站使用該字型（重點）</h3><p>Mantine <strong>不會自動用你引入的字型</strong>，<br>你必須在 MantineProvider 設定 fontFamily</p><h3>✅ Mantine v8 正確寫法</h3><pre>import { MantineProvider } from &#39;@mantine/core&#39;;</pre><pre>export default function App() {<br>  return (<br>    &lt;MantineProvider<br>      theme={{<br>        fontFamily: &#39;Noto Serif TC, serif&#39;,<br>      }}<br>    &gt;<br>      {/* 你的 App */}<br>    &lt;/MantineProvider&gt;<br>  );<br>}</pre><p>這樣之後：</p><pre>&lt;Text&gt;這段文字會用 Noto Serif TC&lt;/Text&gt;</pre><p>✔ <strong>自動生效</strong></p><h3>三、只讓 &lt;Text /&gt; 用特定字型（不是全站）</h3><h3>方法 1：直接用 ff（Mantine v8 縮寫）</h3><pre>&lt;Text ff=&quot;Noto Serif TC, serif&quot;&gt;<br>  只有這段文字用該字型<br>&lt;/Text&gt;</pre><h3>方法 2：用 style（標準 CSS）</h3><pre>&lt;Text style={{ fontFamily: &#39;Noto Serif TC, serif&#39; }}&gt;<br>  這也是可以的<br>&lt;/Text&gt;</pre><h3>四、進階：區分 heading / body 字型（常見設計）</h3><p>例如：</p><ul><li>內文：Noto Sans TC</li><li>標題：Noto Serif TC</li></ul><pre>&lt;MantineProvider<br>  theme={{<br>    fontFamily: &#39;Noto Sans TC, sans-serif&#39;,<br>    headings: {<br>      fontFamily: &#39;Noto Serif TC, serif&#39;,<br>    },<br>  }}<br>&gt;</pre><pre>&lt;Title order={2}&gt;標題會是 Serif&lt;/Title&gt;<br>&lt;Text&gt;內文是 Sans&lt;/Text&gt;</pre><h3>五、常見錯誤 ❌</h3><h3>❌ 字型沒生效？</h3><p>請檢查：</p><ol><li><strong>Google Fonts 是否真的載入</strong></li></ol><ul><li>DevTools → Network → font</li></ul><ol><li>fontFamily 名稱是否完全一致<br>（大小寫、空格都要一樣）</li><li>有沒有被其他 CSS 蓋掉（例如全域 body { font-family: ... }）</li></ol><h3>六、你目前用 Mantine v8，可以記住這幾個常用屬性</h3><p>屬性用途fffont-familyfzfont-sizefwfont-weightlhline-heighttatext-align</p><pre>&lt;Text ff=&quot;Noto Serif TC&quot; fw={600} fz=&quot;lg&quot;&gt;<br>  中文排版很舒服<br>&lt;/Text&gt;</pre><p>如果你願意，我可以直接幫你：</p><ul><li>🎨 設計一套「中文排版友善」的 Mantine theme</li><li>📖 模仿你之前那個「Writing / Poetry」頁面的字型風格</li><li>🌗 同時處理 light / dark mode 的字型對比</li></ul><p>只要跟我說你想用 <strong>哪一個 Google Font</strong> 👌</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f63e76357c65" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[這是根據片假名五十音列出的類似麥當勞的日文單字，並加上對應的英文拼音：]]></title>
            <link>https://medium.com/@wangminder/%E9%80%99%E6%98%AF%E6%A0%B9%E6%93%9A%E7%89%87%E5%81%87%E5%90%8D%E4%BA%94%E5%8D%81%E9%9F%B3%E5%88%97%E5%87%BA%E7%9A%84%E9%A1%9E%E4%BC%BC%E9%BA%A5%E7%95%B6%E5%8B%9E%E7%9A%84%E6%97%A5%E6%96%87%E5%96%AE%E5%AD%97-%E4%B8%A6%E5%8A%A0%E4%B8%8A%E5%B0%8D%E6%87%89%E7%9A%84%E8%8B%B1%E6%96%87%E6%8B%BC%E9%9F%B3-32af40ecf548?source=rss-777b0b27b590------2</link>
            <guid isPermaLink="false">https://medium.com/p/32af40ecf548</guid>
            <category><![CDATA[日文]]></category>
            <category><![CDATA[平假名]]></category>
            <category><![CDATA[五十音]]></category>
            <category><![CDATA[片假]]></category>
            <category><![CDATA[麥當勞]]></category>
            <dc:creator><![CDATA[Wang Minder]]></dc:creator>
            <pubDate>Mon, 01 Sep 2025 05:40:21 GMT</pubDate>
            <atom:updated>2025-09-01T05:40:21.416Z</atom:updated>
            <content:encoded><![CDATA[<p>あ（ア）- アイスクリーム (aisukurīmu，冰淇淋)</p><p>い（イ）- インク (inku，墨水)</p><p>う（ウ）- ウェイター (weitā，服務生)</p><p>え（エ）- エビ (ebi，蝦)</p><p>お（オ）- オニオン (onion，洋蔥)</p><p>か（カ）- カレーライス (karēraisu，咖哩飯)</p><p>き（キ）- キャッチャー (kyatchā，接球手)</p><p>く（ク）- クーポン (kūpon，優惠券)</p><p>け（ケ）- ケチャップ (ketchappu，番茄醬)</p><p>こ（コ）- コーラ (kōra，可樂)</p><p>さ（サ）- サンドイッチ (sandoitchi，三明治)</p><p>し（シ）- シェイク (sheiku，奶昔)</p><p>す（ス）- ストロー (sutorō，吸管)</p><p>せ（セ）- セット (setto，套餐)</p><p>そ（ソ）- ソーセージ (sōsēji，香腸)</p><p>た（タ）- タマゴ (tamago，蛋)</p><p>ち（チ）- チーズ (chīzu，起司)</p><p>つ（ツ）- ツナ (tsuna，鮪魚)</p><p>て（テ）- テイクアウト (teikuauto，外帶)</p><p>と（ト）- トマト (tomato，蕃茄)</p><p>な（ナ）- ナゲット (nagetto，雞塊)</p><p>に（ニ）- ニンニク (nin’niku，大蒜)</p><p>ぬ（ヌ）- ヌードル (nūdoru，麵條)</p><p>ね（ネ）- ネクタイ (nekutai，領帶)</p><p>の（ノ）- ノート (nōto，筆記本)</p><p>は（ハ）- ハンバーガー (hanbāgā，漢堡)</p><p>ひ（ヒ）- ヒーロー (hīrō，英雄)</p><p>ふ（フ）- フライドポテト (furaidopoteto，炸薯條)</p><p>へ（ヘ）- ヘルシー (herushī，健康)</p><p>ほ（ホ）- ホットドッグ (hottodoggu，熱狗)</p><p>ま（マ）- マスタード (masutādo，芥末醬)</p><p>み（ミ）- ミートパティ (mītopati，肉餅)</p><p>む（ム）- ムース (mūsu，慕斯)</p><p>め（メ）</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32af40ecf548" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A simple but powerful cli demo using clack with TS and bun]]></title>
            <link>https://medium.com/@wangminder/a-simple-but-powerful-cli-demo-using-clack-with-ts-and-bun-cec91deeb95d?source=rss-777b0b27b590------2</link>
            <guid isPermaLink="false">https://medium.com/p/cec91deeb95d</guid>
            <dc:creator><![CDATA[Wang Minder]]></dc:creator>
            <pubDate>Sat, 30 Aug 2025 02:41:09 GMT</pubDate>
            <atom:updated>2025-08-30T02:41:09.161Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a simple but powerful CLI demo using Bun with TypeScript and Clack. This demo will walk you through a common CLI flow: collecting user information, showing progress with a spinner, and then confirming the details</p><p>.</p><p>Step 1: Set up the project</p><p>First, create a new directory for your project and use bun init to set up a new project.</p><p>sh</p><pre>mkdir clack-bun-demo<br>cd clack-bun-demo<br>bun init -y</pre><p>Use code with caution.</p><p>Step 2: Install dependencies</p><p>Add @clack/prompts and a type package to handle cancellation. The prompts library is the opinionated, all-in-one package recommended for most use cases.</p><p>sh</p><pre>bun add @clack/prompts</pre><p>Use code with caution.</p><p>Step 3: Create the demo file</p><p>Create a file named index.ts and add the following code. Bun supports TypeScript and ES modules out-of-the-box.</p><p>index.ts</p><p>ts</p><pre>import { <br>  intro, <br>  outro, <br>  text, <br>  select, <br>  confirm,<br>  spinner, <br>  isCancel, <br>  cancel,<br>  group <br>} from &#39;@clack/prompts&#39;;<br>import { setTimeout } from &#39;timers/promises&#39;;</pre><pre>// Utility to handle user cancellation<br>const handleCancel = (value: unknown) =&gt; {<br>  if (isCancel(value)) {<br>    cancel(&#39;Operation cancelled.&#39;);<br>    process.exit(0);<br>  }<br>};</pre><pre>async function main() {<br>  // Use Bun&#39;s color API for additional styling<br>  intro(`${Bun.color.bgRgb(93, 201, 237)(&#39; Create Bun + Clack App &#39;)}`);</pre><pre>  const projectDetails = await group(<br>    {<br>      projectName: () =&gt;<br>        text({<br>          message: &#39;What is the project name?&#39;,<br>          placeholder: &#39;my-app&#39;,<br>          validate: (value) =&gt; {<br>            if (!value) return &#39;Project name is required!&#39;;<br>          },<br>        }),<br>      projectType: () =&gt;<br>        select({<br>          message: &#39;What type of project is this?&#39;,<br>          initialValue: &#39;ts&#39;,<br>          options: [<br>            { value: &#39;ts&#39;, label: &#39;TypeScript&#39;, hint: &#39;recommended&#39; },<br>            { value: &#39;js&#39;, label: &#39;JavaScript&#39; },<br>            { value: &#39;rust&#39;, label: &#39;Rust&#39;, hint: &#39;Why not?&#39; },<br>          ],<br>        }),<br>      installDependencies: () =&gt;<br>        confirm({<br>          message: &#39;Install dependencies?&#39;,<br>          initialValue: true,<br>        }),<br>    },<br>    {<br>      onCancel: () =&gt; {<br>        cancel(&#39;Operation cancelled.&#39;);<br>        process.exit(0);<br>      },<br>    }<br>  );</pre><pre>  handleCancel(projectDetails.projectName);<br>  handleCancel(projectDetails.projectType);<br>  handleCancel(projectDetails.installDependencies);</pre><pre>  if (projectDetails.installDependencies) {<br>    const s = spinner();<br>    s.start(&#39;Installing dependencies...&#39;);<br>    await setTimeout(2000); // Simulate installation time<br>    s.stop(&#39;Dependencies installed!&#39;);<br>  }</pre><pre>  const confirmDetails = await confirm({<br>    message: `Confirm project setup?`,<br>    initialValue: true,<br>  });</pre><pre>  handleCancel(confirmDetails);</pre><pre>  if (confirmDetails) {<br>    outro(&#39;Your project has been created!&#39;);<br>  } else {<br>    outro(&#39;Aborted. No changes were made.&#39;);<br>  }<br>}</pre><pre>main().catch(console.error);</pre><p>Use code with caution.</p><p>Step 4: Run the demo</p><p>Execute the script directly with Bun.</p><p>sh</p><pre>bun run index.ts</pre><p>Use code with caution.</p><p>Explanation of features</p><ul><li>group(): This function allows you to group multiple prompts together. It&#39;s powerful because it treats the series of prompts as a single unit, and the onCancel callback allows you to exit the entire group if the user cancels any of the prompts.</li><li>intro() and outro(): These functions create distinct start and end messages, providing a polished and professional feel to the CLI.</li><li>text() and select(): These are standard components for collecting string and multiple-choice inputs from the user. The text component includes built-in validation.</li><li>confirm(): This provides a simple yes/no prompt, which is ideal for confirmation steps.</li><li>spinner(): The spinner is a crucial component for providing feedback on long-running tasks, like installing dependencies. It starts with s.start() and stops with s.stop().</li><li>isCancel(): This guard function is used after every prompt to check if the user canceled the operation (e.g., by pressing Ctrl+C). It&#39;s a key part of writing robust, production-ready CLIs.</li><li>Bun’s Color API: We use Bun.color.bgRgb() to add a custom background color to the intro message, demonstrating how Bun can integrate with the CLI UI.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cec91deeb95d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ChatGPT for Reference (1)]]></title>
            <link>https://medium.com/@wangminder/chatgpt-for-reference-1-5db2c3a8f365?source=rss-777b0b27b590------2</link>
            <guid isPermaLink="false">https://medium.com/p/5db2c3a8f365</guid>
            <category><![CDATA[stackoverflow]]></category>
            <category><![CDATA[chatgpt3]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[chatgpt4]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Wang Minder]]></dc:creator>
            <pubDate>Tue, 25 Jul 2023 03:14:42 GMT</pubDate>
            <atom:updated>2023-07-25T04:22:24.899Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hotest Topics for Searches on Stack Overflow (in 2021)</h3><blockquote>As of my last update in September 2021, the “hottest” topics on Stack Overflow can vary over time, as they are influenced by the rapidly changing landscape of technology and programming trends. It’s essential to note that the hottest topics in 2023 may be different from what they were in 2021. However, some areas tend to remain popular and continuously generate a significant number of questions and answers on the platform. Some potentially “hot” topics could include:</blockquote><ol><li><strong>Machine Learning</strong> and <strong>Artificial Intelligence</strong>: Topics related to AI, deep learning, neural networks, natural language processing, and computer vision.</li><li><strong>Web Development</strong>: This includes frameworks like React, Angular, Vue.js, and topics like frontend development, responsive design, and progressive web apps.</li><li><strong>Cloud Computing</strong>: Issues related to cloud platforms like AWS, Azure, and Google Cloud, as well as serverless computing and containerization (e.g., Docker, Kubernetes).</li><li><strong>Cybersecurity</strong>: Questions about securing applications, networks, and data, as well as dealing with various cyber threats and vulnerabilities.</li><li><strong>Data Science and Big Data</strong>: Topics encompassing data analysis, data visualization, data engineering, and big data technologies like Apache Hadoop and Spark.</li><li><strong>Mobile Development</strong>: This involves Android and iOS app development, cross-platform frameworks (e.g., Flutter, React Native), and mobile user interface design.</li><li><strong>DevOps</strong>: Practices related to continuous integration/continuous deployment (CI/CD), automation, and infrastructure as code.</li><li><strong>GraphQL</strong>: A popular query language for APIs, often used in modern web development.</li><li><strong>TypeScript</strong>: A strongly typed superset of JavaScript, gaining popularity for building large-scale applications.</li><li><strong>Blockchain and Cryptocurrency</strong>: Topics related to blockchain technology, smart contracts, and cryptocurrencies.</li></ol><h3>Compared ChatGPT v3.5 with ChatGPT 4.0 (via Monica), the answer is changed partially (in mid 2023.)</h3><blockquote>The hottest topics are constantly changing based on the users of Stack Overflow, but recent trends include:</blockquote><ol><li>Python programming</li><li>JavaScript frameworks (React, Angular, Vue)</li><li>Machine learning and artificial intelligence</li><li>Web development (HTML, CSS, and JavaScript)</li><li>Mobile app development (iOS and Android)</li><li>Data analysis and visualization</li><li>Cloud computing (AWS, Azure, Google Cloud)</li><li>DevOps and continuous integration/continuous deployment (CI/CD)</li><li>Java programming</li><li>C# programming</li></ol><h3>then, I keep asking “<strong>where is blockchain and cryptocurrency</strong>”</h3><p>Thank God, it answers:</p><blockquote>Blockchain and cryptocurrency are also popular topics on Stack Overflow, but they are not currently among the top 10 hottest topics for searches. However, they may still be frequently searched and discussed in the community.</blockquote><p>My conclusion is that even though many bloggers or communities do not accept people posting answers from ChatGPT, I still use it as a reference. I believe that, at the very least, there is no bias or manipulation by a person.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5db2c3a8f365" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>