<?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 Jocelyn LEE on Medium]]></title>
        <description><![CDATA[Stories by Jocelyn LEE on Medium]]></description>
        <link>https://medium.com/@biheyeblue?source=rss-48f26380812d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*U71Ppat7ZXQrJwLYaoQx0Q.png</url>
            <title>Stories by Jocelyn LEE on Medium</title>
            <link>https://medium.com/@biheyeblue?source=rss-48f26380812d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 10:34:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@biheyeblue/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[用Rails從零開始串金流-以藍新API為例（1）前置作業：註冊帳號、技術串接手冊閱讀]]></title>
            <link>https://medium.com/jocelynfullstack/%E7%94%A8rails%E5%BE%9E%E9%9B%B6%E9%96%8B%E5%A7%8B%E4%B8%B2%E9%87%91%E6%B5%81-%E4%BB%A5%E8%97%8D%E6%96%B0api%E7%82%BA%E4%BE%8B-1-%E5%89%8D%E7%BD%AE%E4%BD%9C%E6%A5%AD-%E8%A8%BB%E5%86%8A%E5%B8%B3%E8%99%9F-%E6%8A%80%E8%A1%93%E4%B8%B2%E6%8E%A5%E6%89%8B%E5%86%8A%E9%96%B1%E8%AE%80-215a046c9c74?source=rss-48f26380812d------2</link>
            <guid isPermaLink="false">https://medium.com/p/215a046c9c74</guid>
            <category><![CDATA[cash-flow]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[Jocelyn LEE]]></dc:creator>
            <pubDate>Sun, 20 Dec 2020 08:29:10 GMT</pubDate>
            <atom:updated>2020-12-21T12:04:25.169Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oncqydggf6lG3Sm7ueFBzw.png" /></figure><p>**小提醒：此文為觀念分享，不見得能直接適用你的專案，請各位看倌走過路過各取所需，歡迎交流🎈，祝大家能順利收到全天下的錢。💰💰💰</p><p>首先，你的專案主題是電商網站，串金流是一個重要技術，畢竟網站再美，不能收錢都是枉然。在一陣餵狗(google)流程後，你選了家看得順眼的公司，硬著頭皮打開金流平台的網站。來到這個頁面。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c3jgpyM8edpvVFlWiZO22A.png" /><figcaption><a href="https://www.newebpay.com/website/Page/content/download_api">https://www.newebpay.com/website/Page/content/download_api</a></figcaption></figure><p>心裡想說太好了，還好API文件可以看，不用通靈。😂 如果不知道API是什麼的可以先去看以下的影片：</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FzvKadd9Cflc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DzvKadd9Cflc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FzvKadd9Cflc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/51e14326440baec92af9ff3c538e351d/href">https://medium.com/media/51e14326440baec92af9ff3c538e351d/href</a></iframe><p>這不是笑話，真的有公司沒提供API的。但對於菜鳥工程師來說，第一次看API也跟天書沒兩樣，因為它打開來就是一堆表格，長這樣：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mwzws0MOhIl-4mrtKnRaSg.png" /><figcaption>藍新金流Newebpay_MPG串接手冊_MPG_1.0.6</figcaption></figure><p>串接文件的重點、在於告訴你它需要的必填參數、以及金流的運作原理（flow)。這裡是以信用卡支付作為例子：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NMnKuJfc3prGnuBJlYKhsw.png" /><figcaption>藍新金流Newebpay_MPG串接手冊_MPG_1.0.6</figcaption></figure><p>大略掃過一遍後，你會覺得有講等於沒講，但之後進入coding就會知道邏輯所在，先別急～按照手冊裡的網址先去藍新的測試平台註冊。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j9PCJ_rcSRNurWfi6fGgNw.png" /><figcaption>藍新金流Newebpay_MPG串接手冊_MPG_1.0.6</figcaption></figure><p>因為測試平台跟正式平台乍看之下長的一樣，所以小心不要跑錯網址，記得測試網址起頭是”cwww” 而不是 ”www”。進入註冊頁面，我們的目的是要串API，所以請選企業會員👉</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YAxwr3L0AGm8atnBHWSlhA.png" /><figcaption><a href="https://cwww.newebpay.com/">https://cwww.newebpay.com/</a></figcaption></figure><p>我們的目的是跑測試，所以填寫內容就大家自由發揮，會過就好，註冊流程跑完，就可以登入做基本設定啦👏</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k3r-NQLvQnCtGaMebCN89g.png" /><figcaption><a href="https://cwww.newebpay.com/">https://cwww.newebpay.com/</a></figcaption></figure><p>登入後進入會員中心➡️商店管理➡️執行➡️詳細資料</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yE7R3x1luibHcVqmkMxlVw.png" /><figcaption><a href="https://cwww.newebpay.com/">https://cwww.newebpay.com/</a></figcaption></figure><p>藍新的後台很多設定可以調整，但不要搞死自己先開放信用卡就好。基本上都是下拉式選單，隨君挑選，基本上這裡的設定會決定結帳頁面出現什麼，所以開關就在這裡決定就好（更細緻的跳轉頁面是另一回事）。以測試平台來說，幾乎市面上所有的支付都含括了。不要問我為啥沒有LINE PAY😂</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ctSRYFw_EEcuYGbGXrmBig.png" /><figcaption><a href="https://cwww.newebpay.com/">https://cwww.newebpay.com/</a></figcaption></figure><p>接著是我們的串接的重頭戲～金鑰的取得，藍新還有提供API的回傳URL，但要注意的是，這裡不能使用localhost，要有實際的網址才行，因應這個需求，可以使用虛擬網址的套件 Ngork，可以參考這篇：</p><p><a href="https://5xruby.tw/posts/easy-ngrok-by-nginx-ssh-tunnel/?utm_source=facebook&amp;utm_medium=post&amp;utm_campaign=2019w29_tech_post&amp;fbclid=IwAR0qV5lwdLX3TBcVQ444RBMqDGwL8rdIMGIfFS8s3dTF7Yfb_Xbk5m9ZB8o">ngrok 不求人：自己搭一個窮人版的 ngrok 服務｜專欄文章｜五倍紅寶石</a></p><p>不過我當時裝有點卡住，只好去跟助教求救，之後再寫一個極短篇來講解。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JjhWDDVps6xs7pAxlVo6DA.png" /><figcaption><a href="https://cwww.newebpay.com/">https://cwww.newebpay.com/</a></figcaption></figure><p>咦？所以我說那個rials呢？你讓我看到這裡，一行code都沒有是騙點閱嗎？</p><p>當我成功之後回頭重新順流程，發現要寫成文章，你還是必須要切換成當時那個啥都不懂的自己。因此還是決定從0開始寫，下一篇再開始進入coding。文件看懂是必須之痛，所以不要覺得你可以跳過這一段直接打code，有經驗的人也會得到這個結論。😩 May the coding be with you~</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=215a046c9c74" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jocelynfullstack/%E7%94%A8rails%E5%BE%9E%E9%9B%B6%E9%96%8B%E5%A7%8B%E4%B8%B2%E9%87%91%E6%B5%81-%E4%BB%A5%E8%97%8D%E6%96%B0api%E7%82%BA%E4%BE%8B-1-%E5%89%8D%E7%BD%AE%E4%BD%9C%E6%A5%AD-%E8%A8%BB%E5%86%8A%E5%B8%B3%E8%99%9F-%E6%8A%80%E8%A1%93%E4%B8%B2%E6%8E%A5%E6%89%8B%E5%86%8A%E9%96%B1%E8%AE%80-215a046c9c74">用Rails從零開始串金流-以藍新API為例（1）前置作業：註冊帳號、技術串接手冊閱讀</a> was originally published in <a href="https://medium.com/jocelynfullstack">Jocelyn’s轉職工程師日誌</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[別只想著當下一步，試著思考下面三步]]></title>
            <link>https://medium.com/jocelynfullstack/%E5%88%A5%E5%8F%AA%E6%83%B3%E8%91%97%E7%95%B6%E4%B8%8B%E4%B8%80%E6%AD%A5-%E8%A9%A6%E8%91%97%E6%80%9D%E8%80%83%E4%B8%8B%E9%9D%A2%E4%B8%89%E6%AD%A5-2bff17880b59?source=rss-48f26380812d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bff17880b59</guid>
            <category><![CDATA[career-planning]]></category>
            <category><![CDATA[criminal-minds]]></category>
            <category><![CDATA[article-writing]]></category>
            <dc:creator><![CDATA[Jocelyn LEE]]></dc:creator>
            <pubDate>Sat, 22 Aug 2020 15:17:56 GMT</pubDate>
            <atom:updated>2020-12-20T10:58:58.985Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DuOanLn1YwPZ6kiURT8DSw.png" /></figure><p><strong>Jocelyn 近期面臨職涯規劃的轉型，下定決心，之前摔倒的痛不過是一個契機，也找到明確的方向。（就是現在網誌的大標），此時此刻，覺得犯罪心理的台詞很適合當作人生重啟的起手式。</strong></p><p>Keep thinkin’. It’s like chess. Don’t look at just the next move. Try to look 3 moves ahead.</p><p>繼續思考，別只想著當下一步，試著思考下面三步。</p><p>這句話的脈絡是，側寫小組中的小天才REID在連續縱火案中陷入苦戰，監視器短短幾分鐘的錄影根本不足以拼湊出兇手的全貌，過往的經驗也不管用，組長開門見狀給了這麼一句建議。</p><p>回到自己身上，年紀向來不是決定經驗能力的絕對依據。但回顧過往，自己確實缺乏某種預知能力，只想著要把眼前的事情處理掉，結果就是很多事情缺乏延續性(以及產業自身的缺陷)。</p><p>每個人重新開始的時間點有些不同，但當時的你一定是有點見識，知道感情帶給自己的痛苦與歡愉，經濟能力有些餘裕，心態與外貌也是前所未有的高峰。因此，不管人生進度如何，都還不到否定自己的時候。Not yet!</p><p>現在一方面個人品牌的市場打得正火熱。另一方面更多的是心理建設還不夠穩固的人，<strong>不夠格的人你不想追隨，但太完美的人你不敢接近。</strong>因此有時並不取決於你能付出多少，而是如何打破心理障礙。</p><p>所幸，火象星座最不缺的就是橫衝直撞，只是需要用對方法。因此這個部落格反而比較像是我自己即將昇華到下一階段的的自我覺察。</p><p>不管妳是正在思考，還是已經進度超前。</p><p>如果有幸能讓電腦前正在閱讀的你／妳感同身受，也已足夠。</p><p>獻給所有曾經陷入人生困頓的各位。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2bff17880b59" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jocelynfullstack/%E5%88%A5%E5%8F%AA%E6%83%B3%E8%91%97%E7%95%B6%E4%B8%8B%E4%B8%80%E6%AD%A5-%E8%A9%A6%E8%91%97%E6%80%9D%E8%80%83%E4%B8%8B%E9%9D%A2%E4%B8%89%E6%AD%A5-2bff17880b59">別只想著當下一步，試著思考下面三步</a> was originally published in <a href="https://medium.com/jocelynfullstack">Jocelyn’s轉職工程師日誌</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[關於Ruby宇宙裡的Symbol]]></title>
            <link>https://medium.com/jocelynfullstack/%E9%97%9C%E6%96%BCruby%E5%AE%87%E5%AE%99%E8%A3%A1%E7%9A%84symbol-319fd30e0c08?source=rss-48f26380812d------2</link>
            <guid isPermaLink="false">https://medium.com/p/319fd30e0c08</guid>
            <category><![CDATA[symbols]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Jocelyn LEE]]></dc:creator>
            <pubDate>Sat, 22 Aug 2020 09:19:34 GMT</pubDate>
            <atom:updated>2020-12-20T11:01:04.215Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2H_zt8HxlXzsKItQJT2rAA.png" /></figure><h4>先說結論：Symbol（符號）的<strong>定義是</strong></h4><ul><li><strong>可以視為有名字的物件，或是一個值。</strong></li><li><strong>不是變數。</strong></li><li><strong>無法修改，具有唯一性 (ID) 。</strong></li><li><strong>可以當作是「無法修改的字串」。</strong></li></ul><pre>在 Ruby 裡，大部分的東西都屬於物件，符號 、字串、變數、文字、數字、 nil …等都是物件的一種，除了 block 以外。</pre><h4>★Symbol寫法：</h4><p>在字母與數字前有「冒號」，也可以使用空白字元，但必須用引號包起來。</p><pre>:name<br>:title<br>: &quot;Hello world&quot; #使用空白字元</pre><p>如果是字串，每一次印出都會重新生成id，容易佔記憶體。</p><pre>puts &quot;hello&quot;.object_id    # 印出 70213995743900<br>puts &quot;hello&quot;.object_id    # 印出 70213995743760<br>puts &quot;hello&quot;.object_id    # 印出 70213995743700<br>puts &quot;hello&quot;.object_id    # 印出 70213995743640<br>puts &quot;hello&quot;.object_id    # 印出 70213995743580  </pre><pre>#每呼叫一次，就跑出一個新ID呀.....◑ ω◑ 堪稱記憶體魔獸</pre><p><strong>但若是 symbol的狀況下，在Ruby宇宙裡，不管印出幾次，id都會是同一個。</strong></p><pre>#固定id<br>puts :hello.object_id # 印出 1055708<br>puts :hello.object_id # 印出 1055708<br>puts :hello.object_id # 印出 1055708<br>puts :hello.object_id # 印出 1055708<br>puts :hello.object_id # 印出 1055708</pre><p><strong>因為這樣的特性，symbol很適合拿來當作hash的key，因為指向記憶體的同一個位置。</strong></p><p>如果想把symbol與字串作切換，可以用「.to_s」</p><pre>p :name.to_s     #印出 “name” #常見用法<br>p :name.id2name  #印出 “name”</pre><p>或者是字串轉成symbol，也是可以的</p><pre>p “name”.to_sym # 印出 :name #常見用法<br>p “name”.intern # 印出 :name</pre><h4>★使用建議</h4><pre>如果你希望不變，那符號是你的不二選擇。<br>希望是可變的，字串適合你。</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=319fd30e0c08" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jocelynfullstack/%E9%97%9C%E6%96%BCruby%E5%AE%87%E5%AE%99%E8%A3%A1%E7%9A%84symbol-319fd30e0c08">關於Ruby宇宙裡的Symbol</a> was originally published in <a href="https://medium.com/jocelynfullstack">Jocelyn’s轉職工程師日誌</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>