<?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 Yu Kai Huang on Medium]]></title>
        <description><![CDATA[Stories by Yu Kai Huang on Medium]]></description>
        <link>https://medium.com/@mars.h?source=rss-237733d4ec1e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Yu Kai Huang on Medium</title>
            <link>https://medium.com/@mars.h?source=rss-237733d4ec1e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 21:52:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mars.h/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[使用 vscode extensions 解決 schema 編譯問題]]></title>
            <link>https://medium.com/@mars.h/%E4%BD%BF%E7%94%A8-vscode-extensions-%E8%A7%A3%E6%B1%BA-schema-%E7%B7%A8%E8%AD%AF%E5%95%8F%E9%A1%8C-85d7aee01db8?source=rss-237733d4ec1e------2</link>
            <guid isPermaLink="false">https://medium.com/p/85d7aee01db8</guid>
            <dc:creator><![CDATA[Yu Kai Huang]]></dc:creator>
            <pubDate>Tue, 24 May 2022 07:09:39 GMT</pubDate>
            <atom:updated>2022-05-24T07:09:39.689Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>安裝 Run On Save</li><li>修改 setting.json</li></ol><pre>&quot;emeraldwalk.runonsave&quot;: {</pre><pre>  &quot;commands&quot;: [</pre><pre>    {</pre><pre>      &quot;match&quot;: &quot;\\.graphql$&quot;,</pre><pre>      &quot;cmd&quot;: &quot;echo &#39;file change ${file}&#39; &amp;&amp; npm run graphql-schema:build&quot;</pre><pre>    },</pre><pre>  ]</pre><pre>},</pre><p>log 顯示</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*ByhooduHHIZn7XDqhEtnTw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85d7aee01db8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[北海岸兩天一夜]]></title>
            <link>https://medium.com/@mars.h/%E5%8C%97%E6%B5%B7%E5%B2%B8%E5%85%A9%E5%A4%A9%E4%B8%80%E5%A4%9C-145fec593ef1?source=rss-237733d4ec1e------2</link>
            <guid isPermaLink="false">https://medium.com/p/145fec593ef1</guid>
            <dc:creator><![CDATA[Yu Kai Huang]]></dc:creator>
            <pubDate>Tue, 02 Oct 2018 11:31:22 GMT</pubDate>
            <atom:updated>2018-10-02T11:31:22.689Z</atom:updated>
            <content:encoded><![CDATA[<h3>第一天</h3><p>12:00 台北火車站集合</p><p>13:00 基隆廟口午餐</p><p>14:00 基隆阿根納造船廠</p><p><a href="https://www.liviatravel.com/2018/06/keelung-ruins.html">【基隆阿根納造船廠】IG超夯百年廢墟遺跡外拍絕美點 美國隊長廣告取景地！</a></p><p>15:00 基隆情人湖</p><p><a href="https://bobowin.blog/2008-01-08-1470/">[ 遊記 ] 遊湖觀海-基隆情人湖 - 寶寶溫旅行親子生活</a></p><p>16:00 萬里亞尼克總店</p><p><a href="https://bobowin.blog/2015-05-27-367/">https://bobowin.blog/2015-05-27-367</a></p><p>17:00 野柳地質公園</p><p><a href="http://saliha.pixnet.net/blog/post/460977077-%2A%E6%96%B0%E5%8C%97%E8%90%AC%E9%87%8C%E5%BF%85%E7%8E%A9%E8%A6%AA%E5%AD%90%E6%99%AF%E9%BB%9E%E6%8E%A8%E8%96%A6%2A%E9%87%8E%E6%9F%B3%E5%9C%B0%E8%B3%AA%E5%85%AC%E5%9C%92~%E5%A4%A7">*新北萬里必玩親子景點推薦*野柳地質公園~大自然版的雕刻博物館,女王頭,俏皮公主,仙女鞋,要門票 @ 　莎莉哈小姐 :: 痞客邦 ::</a></p><p>或 金山神秘海岸</p><p><a href="http://saliha.pixnet.net/blog/post/460071668">http://saliha.pixnet.net/blog/post/460071668</a></p><p>18:00 金山老街</p><p>夜宿金山老街</p><h3>第二天</h3><p>10:00 石門老梅綠石槽</p><p>11:00 石門白沙灣</p><p><a href="http://qpjj.pixnet.net/blog/post/3394374-%E3%80%90%E5%8C%97%E6%B5%B7%E5%B2%B8%E3%80%91%E7%82%8E%E7%82%8E%E5%A4%8F%E6%97%A5%E7%8E%A9%E6%B0%B4%E8%B6%A3-%E3%80%8C%E7%99%BD%E6%B2%99%E7%81%A3%E6%B5%B7%E6%B0%B4%E6%B5%B4">http://qpjj.pixnet.net/blog/post/3394374-%E3%80%90%E5%8C%97%E6%B5%B7%E5%B2%B8%E3%80%91%E7%82%8E%E7%82%8E%E5%A4%8F%E6%97%A5%E7%8E%A9%E6%B0%B4%E8%B6%A3-%E3%80%8C%E7%99%BD%E6%B2%99%E7%81%A3%E6%B5%B7%E6%B0%B4%E6%B5%B4</a></p><p>12:00 三芝OLMO 新義式窯烤柴燒Pizza</p><p><a href="https://bobowin.blog/2011-08-15-1034/">https://bobowin.blog/2011-08-15-1034/</a></p><p>14:00 淡水緣道觀音廟</p><p><a href="https://bobowin.blog/2008-06-26-1432/">https://bobowin.blog/2008-06-26-1432/</a></p><p>15:00 淡水老街</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=145fec593ef1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[用node.js寫command line指令]]></title>
            <link>https://medium.com/@mars.h/%E7%94%A8node-js%E5%AF%ABcommand-line%E6%8C%87%E4%BB%A4-4377775cdf2d?source=rss-237733d4ec1e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4377775cdf2d</guid>
            <dc:creator><![CDATA[Yu Kai Huang]]></dc:creator>
            <pubDate>Wed, 20 Sep 2017 03:56:19 GMT</pubDate>
            <atom:updated>2017-11-02T13:05:43.506Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YQHOQfItoDmd4XRyxGbTFw.png" /></figure><h3>Step 1</h3><p>創建一個 node.js 的專案。白話的說法就是要有：</p><p>1. 一個資料夾</p><p>2. 資料夾裡面要有一個 package.json</p><p>3. 一個 js 檔作為主要的入口</p><h3>Step 2</h3><p>將你要的功能寫在 js 檔裡面</p><p>第一行一定要寫上</p><pre>#! /usr/bin/env node</pre><h3>Step 3</h3><p>修改package.json</p><pre>{</pre><pre>  “name”: “Mars”,</pre><pre>  “bin”: {</pre><pre>    “mars”: “Mars.js”</pre><pre>// key值 [mars] 為之後 command line 的指令, value [Mars.js] 為指令對應的<br>// node.js執行檔 （node Mars.js）</pre><pre>  },</pre><pre>}</pre><h3>Step 4</h3><pre>npm link</pre><h3>為你的command加上參數</h3><p>在node.js裡，你可以使用process.argv來拿到執行時所帶的參數。例如當你這樣執行：</p><pre>command -g</pre><p>你就可以在code裡拿到這樣的資料：</p><pre>console.log(process.argv);</pre><pre>// [ &#39;node&#39;, &#39;/path/to/script/command.js&#39;, &#39;-g&#39; ]</pre><p>參考資料：</p><p><a href="http://cruft.io/posts/node-command-line-utilities/">http://cruft.io/posts/node-command-line-utilities/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4377775cdf2d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ESLint]]></title>
            <link>https://medium.com/@mars.h/eslint-3f702ab9ca2c?source=rss-237733d4ec1e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f702ab9ca2c</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[eslint]]></category>
            <dc:creator><![CDATA[Yu Kai Huang]]></dc:creator>
            <pubDate>Thu, 27 Apr 2017 05:58:36 GMT</pubDate>
            <atom:updated>2017-04-27T05:58:36.084Z</atom:updated>
            <content:encoded><![CDATA[<p>coding style/ code quality的檢查</p><h4>執行：</h4><p>eslint [file(or directory)]</p><h4>WebStorm設定：</h4><p>File&gt;Setting或者Alt+F7</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*WM3SBOedw_TLwPclubNP9g.png" /></figure><h4>我怎麼知道發生什麼麼鬼錯誤：</h4><p><a href="http://eslint.cn/docs/rules/">List of available rules - ESLint中文</a></p><h4>自動修復：</h4><p>--fix</p><p>注：在rules中有橘色板手的才能自動修復。</p><blockquote>三種逃過檢查的方法</blockquote><h4>設定：</h4><p>.eslintrc.js</p><h4>略過指定檔案：</h4><p>.eslintignore</p><h4>使用註解：</h4><pre>alert(&#39;foo&#39;); <em>// eslint-disable-line</em><br><br><em>// eslint-disable-next-line</em><br>alert(&#39;foo&#39;);</pre><pre><em>/* eslint-disable */</em><br><br>alert(&#39;foo&#39;);<br><br><em>/* eslint-enable */</em></pre><h3>參考網址</h3><p><a href="http://morning.work/page/maintainable-nodejs/getting-started-with-eslint.html">利用 ESLint 检查代码质量 - 早起搬砖 morning.work</a></p><p>自動檢查：</p><p><a href="https://denny.qollie.com/2016/07/11/eslint-fxcking-setup/#Integration-with-git-hooks">淺入淺出 eslint 與實作 · De-bug: 一鍵跑版</a></p><p>Specifying Environments：</p><p><a href="http://eslint.cn/docs/user-guide/configuring#disabling-rules-with-inline-comments">http://eslint.cn/docs/user-guide/configuring#disabling-rules-with-inline-comments</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f702ab9ca2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ORM]]></title>
            <link>https://medium.com/@mars.h/orm-397ee054b7f6?source=rss-237733d4ec1e------2</link>
            <guid isPermaLink="false">https://medium.com/p/397ee054b7f6</guid>
            <dc:creator><![CDATA[Yu Kai Huang]]></dc:creator>
            <pubDate>Thu, 23 Mar 2017 01:32:24 GMT</pubDate>
            <atom:updated>2017-03-23T01:32:24.478Z</atom:updated>
            <content:encoded><![CDATA[<p>物件關聯對映（英語：Object Relational Mapping，簡稱<strong>ORM</strong>，或O/RM，或O/R mapping），是一種程式設計技術，用於實現物件導向編程語言裡不同類型系統的資料之間的轉換。</p><h3>=&gt; <strong>將資料庫的操作變成物件的操作</strong></h3><ol><li>Create table</li></ol><p>MySQL</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*GwjMgzNfRkYJ_Jn6cIO5eQ.png" /></figure><p>Sequelize :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*ReBVr-rnfMOdGu8TTxSLoA.png" /></figure><p>2. Query</p><p>MySQL</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*kXf1VNa9mZDERmeNzkDLdg.png" /></figure><p>Sequelize</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/214/1*9WRn_5lUQ3IqbKv5fmitvA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=397ee054b7f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[git 的使用筆記]]></title>
            <link>https://medium.com/@mars.h/git-%E7%9A%84%E4%BD%BF%E7%94%A8%E7%AD%86%E8%A8%98-68591ede4754?source=rss-237733d4ec1e------2</link>
            <guid isPermaLink="false">https://medium.com/p/68591ede4754</guid>
            <dc:creator><![CDATA[Yu Kai Huang]]></dc:creator>
            <pubDate>Mon, 21 Sep 2015 09:41:05 GMT</pubDate>
            <atom:updated>2015-11-13T06:12:46.302Z</atom:updated>
            <content:encoded><![CDATA[<p>git 是一個好用的版本控制軟體，可以讓軟體工程師方便的進行軟體的協作。git在網路上有很多安裝的教學，這篇要介紹的是如何在server端建立一個專案，以及如何在client端下載。</p><p>server端：</p><p>假設你建立了一個專案（例如project_1），先進入專案的資料夾底下</p><p><em>cd project_1</em></p><p>然後執行init的動作</p><p><em>git init</em></p><p>執行完之後，會在此目錄底下產生一個.git的檔案。目前這個檔案裡還沒有任何的資料。需要手動將此專案的程式碼加入git裡</p><p><em>git add .</em></p><p><em>git commit -m “Initial Commit”</em></p><p>client端：</p><p>在client端，示範使用ssh連線的例子。因為ssh是server端較為普遍支援的通訊協定。</p><p><em>git clone user_name@server_host.com:project_1 -key ssh.key</em></p><p>此處的project_1需要給出家目錄下的相對位置。例如project_1在/home/user1/c_project/project_1底下，指令就會是</p><p><em>git clone user1@server_host.com:c_project/project_1 -key ssh.key</em></p><p>另外，有關ssh的設定，預設會在~/.ssh/config檔裡。所以如果不想每次都要設定user name跟server的ip位址，可以將設定寫在~/.ssh/config之中</p><p><em>vi ~/.ssh/config</em></p><p>然後在檔案裡加上</p><p><em>host give_a_name</em></p><p><em>user user_name_of_server_for_login</em></p><p><em>hostname server_ip port server_port_number</em></p><p><em>identityfile location_of_ssh_key</em>之後連線便可簡化輸入</p><p><em>git clone give_a_name:project_1</em></p><p>補充 : server端在執行完initial commit之後，需要checkout到新的branch，否則client端要push code的時候，git會認為server端還在work branch上的資料，避免資料覆蓋，git會拒絕此次的push。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68591ede4754" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>