<?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 Calvin Huang on Medium]]></title>
        <description><![CDATA[Stories by Calvin Huang on Medium]]></description>
        <link>https://medium.com/@calvin.peak?source=rss-64217d8daf6d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*VwfQzRq3nXS9FbKYIniDsg.jpeg</url>
            <title>Stories by Calvin Huang on Medium</title>
            <link>https://medium.com/@calvin.peak?source=rss-64217d8daf6d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 07:08:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@calvin.peak/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[是時候離開 axios 了…]]></title>
            <link>https://medium.com/@calvin.peak/%E6%98%AF%E6%99%82%E5%80%99%E9%9B%A2%E9%96%8B-axios-%E4%BA%86-1888dada490d?source=rss-64217d8daf6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/1888dada490d</guid>
            <category><![CDATA[fetch]]></category>
            <category><![CDATA[axios]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Calvin Huang]]></dc:creator>
            <pubDate>Fri, 16 Sep 2022 05:27:16 GMT</pubDate>
            <atom:updated>2022-09-16T08:11:49.744Z</atom:updated>
            <content:encoded><![CDATA[<p>axios 一直是我首選的 http client，各種設定可以符合萬種使用情境，像是我個人很喜歡的 baseURL 設計，在 fetch 裡完全沒有類似的東西，得自己來，相較之下真的 axios 完善很多</p><pre>const instance = axios.create({<br>  baseURL: &#39;https://some-domain.com/api/&#39;,<br>  timeout: 1000,<br>  headers: {&#39;X-Custom-Header&#39;: &#39;foobar&#39;}<br>});</pre><p><a href="https://github.com/axios/axios#creating-an-instance">https://github.com/axios/axios#creating-an-instance</a></p><p>↑ 光是上面的 sample 就做完了一堆事情，像是之後打 request 只要接著需要的 endpoint</p><pre>const { data } = await instance.get(&#39;/foo&#39;)</pre><p>甚至 timeout 都做完了，回頭看看 fetch 什麼都沒有</p><p>再往前補充一些使用情境</p><p>當 API 回的命名是 underscore (Rails, FastAPI 等等常見預設就是 underscore)，而 JavaScript 因為直接 native JSON，所以 access object 維持 underscore 的話會違反 camelCase 的慣例，稍微結合一下 `humps` lib 就可以無痛轉換命名</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4a41a26abd8ee2bd2c848f2559de25ed/href">https://medium.com/media/4a41a26abd8ee2bd2c848f2559de25ed/href</a></iframe><p>還有像是常聽到喜歡 fetch的人會說 axios 遇到非 200 系列就會噴 error 這件事，其實也很好解決：用 `validateStatus` 就行</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e7d97fbb53bdd215b5edee76b6bf8dce/href">https://medium.com/media/e7d97fbb53bdd215b5edee76b6bf8dce/href</a></iframe><h3>說這麼多 axios 的好處，那為什麼還要棄用 axios</h3><p>起因是小弟維護的 project 有部分需要與 Facebook API 溝通，而從某個時期開始零星的會噴一些 error，才發現是因為 Facebook API 目前開始支援 brotli 壓縮，但 axios 的 issue 裡從 4 年前擺著 support native brotli 到三個月前才支援 <a href="https://github.com/axios/axios/blob/v1.x/lib/adapters/http.js#L395">https://github.com/axios/axios/blob/v1.x/lib/adapters/http.js#L395</a></p><p>所以如果有解 brotli 的需求，需要升級到 v1.x.x，可能導致一些 break changes，建議各位謹慎調整</p><p>而因此而棄用 axios 會不會有些小題大作？</p><p>lib 穩定而不硬要找事做生新版在現在的社群環境來說值得讚許，但如果連主流的需求都跟不上，我認為是一個警訊：得要有心理準備準備接手修一些 outdated issues，而那些 issue 會有各種理由不好找到問題，或是開始考慮搬家到 fetch</p><blockquote>活躍的社群會吸引新人參與，而新血一直都是支撐進化的要素</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*SVy58B-RyZoTYG6hV8eSTg.png" /><figcaption>credit: <a href="https://www.irasutoya.com/">https://www.irasutoya.com/</a></figcaption></figure><h3>Wrap it up</h3><p>被 native 支援就能贏得一切，像當初的 IE、現在的 Safari mobile、Chrome mobile 一樣，或許 axios 的下一階段可以透過 fetch 重構、實作各種功能？我不清楚，但可以預見 fetch 贏得全盤 HTTP client 使用率的那天。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1888dada490d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Safari mobile (iOS) 遇到的天坑筆記 — 包含可以直接放棄的部分]]></title>
            <link>https://medium.com/@calvin.peak/safari-mobile-ios-%E9%81%87%E5%88%B0%E7%9A%84%E5%A4%A9%E5%9D%91%E7%AD%86%E8%A8%98-%E5%8C%85%E5%90%AB%E5%8F%AF%E4%BB%A5%E7%9B%B4%E6%8E%A5%E6%94%BE%E6%A3%84%E7%9A%84%E9%83%A8%E5%88%86-a842fe8bd66a?source=rss-64217d8daf6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a842fe8bd66a</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[safari]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[iphone-web-apps]]></category>
            <dc:creator><![CDATA[Calvin Huang]]></dc:creator>
            <pubDate>Wed, 14 Sep 2022 12:02:40 GMT</pubDate>
            <atom:updated>2022-09-14T12:05:23.645Z</atom:updated>
            <content:encoded><![CDATA[<h3>Safari mobile (iOS) 遇到的天坑筆記 — 包含可以直接放棄的部分</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*i01L7eO-PtxmafjJ.jpg" /><figcaption>現在放棄就可以下班了喔 ❤️</figcaption></figure><h3>pull-to-refresh (iOS 15+)</h3><p>沒有辦法透過 onscroll 或是任何方法知道 user 正在 pull-to-refresh，沒錯‌‌，沒有任何方法 (ref from: <a href="https://developer.apple.com/documentation/webkitjs/windoweventhandlers/">https://developer.apple.com/documentation/webkitjs</a>/)</p><p>解決方法：當 scrollY 在 0 的時候， touchmove 是負數當作開始嘗試 pull-to-refresh (正在 overscroll) 的狀態</p><pre>/* Sample code for detecting pull-to-refresh. */</pre><pre>let startTouchY</pre><pre>function onTouchStart(event) {<br>  // We&#39;re going to try to guess whether the user is trying to pull-to-refresh only.<br>  if (event.touches.length &gt; 1 || window.scrollY !== 0) {<br>    return<br>  }<br>  const [touch] = event.touches</pre><pre>startTouchY = touch.clientY<br>}</pre><pre>function onTouchMove(event) {<br>  if (event.touches.length &gt; 1 || !this.startTouchY) {<br>    return<br>  }<br>  const [touch] = event.touches</pre><pre>const offsetY = this.startTouchY - touch.clientY<br>  // Pulling to refresh, offsetY smaller than 0 means scrolling down.<br>  if (offsetY &lt; 0) {<br>    // ...Do anything you want when user pulling to refresh.<br>  }<br>}</pre><pre>function onTouchEnd(event) {<br>  startTouchY = null<br>}</pre><h3>Navigation bar (address bar) 縮放</h3><p>同樣的也沒有任何 event 可以知道 user 目前的操作使 navigation bar 變小還是變大，如果需要做出 full screen 效果，唯一的方式是透過 resize event 通知需要重新計算高度，而高度則需要借助 CSS variable 調整 (作法參考來自 <a href="https://zenn.dev/tak_dcxi/articles/2ac77656aa94c2cd40bf">https://zenn.dev/tak_dcxi/articles/2ac77656aa94c2cd40bf</a>)</p><pre>/* ref: <a href="https://zenn.dev/tak_dcxi/articles/2ac77656aa94c2cd40bf">https://zenn.dev/tak_dcxi/articles/2ac77656aa94c2cd40bf</a> */</pre><pre>let vw<br>let vh</pre><pre>function setFillHeight() {<br>  if (vw === window.innerWidth &amp;&amp; vh === window.innerHeight) {<br>    // 畫面尺寸沒有更動，所以不做任何事<br>    return<br>  }</pre><pre>// 畫面尺寸有更動的時候重新計算高度<br>  vw = window.innerWidth<br>  vh = window.innerHeight</pre><pre>const vhUnit = window.innerHeight * 0.01<br>  document.documentElement.style.setProperty(&#39;--vh&#39;, `${vhUnit}px`)<br>}</pre><pre>window.addEventListener(&#39;resize&#39;, setFillHeight)<br>// 記得手動初始化<br>setFillHeight()</pre><pre>// 沒有用到的時候也要記得回收 listener<br>window.removeEventListener(&#39;resize&#39;, setFillHeight)</pre><p>另外也可以透過 safe-area-inset-bottom 來預留 address bar 的空間</p><p>更完整的實作可以參考 Luke 的筆記: <a href="https://lukechannings.com/blog/2021-06-09-does-safari-15-fix-the-vh-bug/">https://lukechannings.com/blog/2021-06-09-does-safari-15-fix-the-vh-bug/</a></p><p>有些實作元素像是 drag&amp;drop 的操作因為上下移動會造成 navigation bar (address bar) 變動，目前<strong>沒有</strong>相對應的處理方法 (像是 disable address bar 縮放的任何手段)</p><p>↓ 範例：navigator resize 造成的 dragging 中斷</p><p><a href="https://user-images.githubusercontent.com/1218900/160944477-cae01126-b2bd-4555-a6f9-5d864637f1a9.mov">https://user-images.githubusercontent.com/1218900/160944477-cae01126-b2bd-4555-a6f9-5d864637f1a9.mov</a></p><h3>swipe-to-back</h3><p>直接電死系列第三彈，透過手勢回到前/後一頁的功能沒有 event 可以知道開始手勢/觸發，所以當有 swipe 手勢偵測實作的時候，建議可以留左右 edge 的空間，避免手勢重疊 (大約 50px 的空間，如果有官方文件清楚定義 swipe-to-back 的空間 pixel 請告知小弟，非常感謝)</p><p>以上是避免手勢重複的部分，而如果想要 disable swipe-to-back 手勢的話，可以參考 <a href="https://pqina.nl/blog/blocking-navigation-gestures-on-ios-13-4/">https://pqina.nl/blog/blocking-navigation-gestures-on-ios-13-4/</a></p><p>基本上就是在想要 disable 手勢的元素上接收 touchstart event</p><pre>&lt;!-- From: <a href="https://pqina.nl/blog/blocking-navigation-gestures-on-ios-13-4/">https://pqina.nl/blog/blocking-navigation-gestures-on-ios-13-4/</a> --&gt;<br>&lt;div style=&quot;height:100px&quot;&gt;Our element that prevents navigation&lt;/div&gt;</pre><pre>&lt;script&gt;<br>    const element = document.querySelector(&#39;div&#39;);</pre><pre>element.addEventListener(&#39;touchstart&#39;, (e) =&gt; {<br>        // prevent swipe to navigate gesture<br>        e.preventDefault();<br>    });<br>&lt;/script&gt;</pre><h3>Wrap it up</h3><p>以上特別是 navigator (address bar) 花了小弟特別多時間，最令人難過的是沒有解決方法…雖然我也是比較喜歡 iPhone 帶給我的使用體驗，但開發起來真的只能芭比Ｑ了</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/268/1*Wd4VwpBHn6GUjHfoBL78lw.png" /><figcaption>Credit: <a href="https://www.irasutoya.com/">https://www.irasutoya.com</a></figcaption></figure><p>Blog: <a href="https://blog.capslock.tw/safari-mobile-ios-issues/">https://blog.capslock.tw/safari-mobile-ios-issues/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a842fe8bd66a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[2022 婚宴攻略祕技 — 工程師好讀版]]></title>
            <link>https://medium.com/@calvin.peak/2022-%E5%A9%9A%E5%AE%B4%E6%94%BB%E7%95%A5%E7%A5%95%E6%8A%80-%E5%B7%A5%E7%A8%8B%E5%B8%AB%E5%A5%BD%E8%AE%80%E7%89%88-573a3e023631?source=rss-64217d8daf6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/573a3e023631</guid>
            <category><![CDATA[wedding-photography]]></category>
            <category><![CDATA[weddings]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[wedding-planning]]></category>
            <dc:creator><![CDATA[Calvin Huang]]></dc:creator>
            <pubDate>Mon, 12 Sep 2022 06:17:18 GMT</pubDate>
            <atom:updated>2022-09-12T06:17:18.471Z</atom:updated>
            <content:encoded><![CDATA[<h3>2022 婚宴攻略祕技 — 工程師好讀版</h3><p>受各方親朋好友的眷顧，小弟在 9/3 完婚了，真的非常感謝 🙇‍♂️ 這篇文章是想要將在婚禮籌辦期間做的小工具做個推廣、文章留存，但止於實在有點短且無聊，所以一並將老婆的心血結晶分享上來，希望可以幫助到網路上萍水相逢的各位。</p><blockquote><em>先來一波無情工商 — 婚禮入席小助手 (</em><a href="https://github.com/Calvin-Huang/take-a-seat-guide-assistant"><em>https://github.com/Calvin-Huang/take-a-seat-guide-assistant</em></a><em>)</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*D4cnZa93HUI0GgGd.jpg" /><figcaption>(快速業配) 婚禮入席小助手嘗試用最簡單有效的方式協助排除婚禮入座時，招待需要拿著座位圖 + 名單手忙腳亂的問題。</figcaption></figure><p>結婚 — 人生的大事，撇掉最前面的單膝下跪並且得到雙方家長的同意這些前置努力外，其需要開始費神耗時的時光集中在開始籌備婚禮後 (感謝老婆 200% 的罩，愛你 3000 次)。</p><p>首先，奉上一份整理詳盡的 <a href="https://medium.com/%E5%B7%A5%E7%A8%8B%E5%B8%AB%E5%B0%8F%E5%A4%AB%E5%A6%BB/wedding-excel-ecef8b0bdcd6">👉 婚禮總表 👈</a> (感謝前人的整理) 其中的結婚流程 tab 極為重要，可以有效的檢視需要執行的項目是否被排進行程，確認哪些需要聯絡、告知的事項還有哪些。</p><p>其次，時間有限與聯絡窗口、執行人可能會有不同調的情況，為了溝通的效率，這邊提供一個聯絡事項用的樣本，各位可以利用這份樣本來填上內容，確保雙方在同一條線上。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*fcAX_ekPY6fkix0i.jpeg" /><figcaption><a href="https://www.appvizer.com/magazine/operations/project-management/the-5-ws-in-business">https://www.appvizer.com/magazine/operations/project-management/the-5-ws-in-business</a></figcaption></figure><h3>要聯絡誰、為了什麼事 (清楚的講出是什麼事情)、什麼時候要發生、在哪裡發生</h3><p>上述雖然與原版的 5Ws 管理法相比少了一個為什麼，但在目前要執行的項目裡他幾乎不在考量內</p><p>切記「<strong>一定要」</strong>問清楚長輩所想的事情跟你們想的事情是否在同一件事上，而且「<strong>一定要</strong>」充分瞭解長輩心中所描繪的儀式的內容步驟有哪些。</p><p>舉個切身發生過的例子，我們的婚禮流程並不完整傳統，但有做奉茶的儀式，而因為我們並不清楚儀式本身他需要在什麼時間發生，也不了解儀式的過程會有哪些，只知道飯店會協助準備奉茶，便被「奉茶很簡單，很短，只需要準備回禮就好」給帶過，因此在奉茶的當下因為認不得長輩稱謂顯得失禮 (其餘記事請見 奉茶 的段落)。</p><blockquote>「傳統」現今充滿彈性，中間非常多模糊地帶，需要充分釐清</blockquote><h3>注意事項</h3><h4>預約場地、彩排、場佈</h4><p>以下以一般喝喜酒的流程作為預設，一般需要往前抓 1 年保險時間預約，在與飯店方交涉時建議主動詢問對新人來說想要達成的效果相關的事項，畢竟飯店方在接洽各式客人的需求各不相同，要他們主動提出有些強人所難。</p><ul><li>場地佈置是否可以更動顏色</li><li>送客背板客製化修改程度</li><li>什麼時候可以開始準備會場 / 如果邀約婚佈廠商可以進駐的時間</li><li>是否會有主持人，何時可以確認主持人的時間 (如果飯店方說可以提供主持人，需要再三確認所謂提供主持人的條件是什麼，我們直到婚宴要開始的前一週才知道有桌數限制，而我們剛好壓線卻沒有達成條件，老婆一度接近崩潰)</li><li>設備有哪些可用：投影機是 VGA? HDMI? 能不能帶自己的裝置接音響? 音源線是 3.5mm? 需要準備隨身碟?</li><li>彩排什麼時候進行，婚宴進行的步驟流程有哪些</li></ul><h4>婚禮廠商相關 / 工作人員</h4><ul><li>外縣市的車馬費、住宿費</li><li>婚宴當天的飲食偏好，餐盒送達/用膳的時間</li><li>可以主動提出自己的攝影規劃、當日行程規劃</li><li>(以我們邀請來的互動遊戲 — 拍拍貼為例) 是否需要協助準備設備放置區，路線引導，協調婚宴現場影音設備規格，是否需要人手幫忙桌卡擺設</li><li>鮮花保存，協調婚宴場地進出：送貨路線、接洽人員</li></ul><p>這邊順便工商、感謝一下協助我們婚禮協辦的各家廠商們 ，不論是新秘、婚攝、婚錄、拍貼機/遊戲、捧花都非常專業：溝通順暢，效果、成品極佳，我們非常滿意 &amp; 感謝各位廠商的協助。</p><ul><li>新秘： <a href="https://www.facebook.com/artingsmakeup0302?__cft__[0]=AZUP66nhsHDKrdpcCrUlhCim8Kw9jaxPOrRyIr5brcEgqbDt1IsmbOF4wmGsPMRB8ri09gwgrA2KBTytRZ2tlBkQMhbtqLBhkkHJr0fzAfF5tlYLrfIBTvz3jpTsn2U8VP42VOxf_I--1XSCvx-JXYk8yU0tyBqBPyVVi2BAjdq_22XtfwBl5SjApqPcwSLse_k&amp;__tn__=-]K-R">Arting話化妝．新娘秘書.個人彩妝.整體造型</a></li><li>婚攝： <a href="https://www.facebook.com/catcherinthelight/?__cft__[0]=AZUP66nhsHDKrdpcCrUlhCim8Kw9jaxPOrRyIr5brcEgqbDt1IsmbOF4wmGsPMRB8ri09gwgrA2KBTytRZ2tlBkQMhbtqLBhkkHJr0fzAfF5tlYLrfIBTvz3jpTsn2U8VP42VOxf_I--1XSCvx-JXYk8yU0tyBqBPyVVi2BAjdq_22XtfwBl5SjApqPcwSLse_k&amp;__tn__=kK-R">時隧影像－Time Tunnel Photography</a></li><li>婚錄： <a href="https://www.facebook.com/daji0210?__cft__[0]=AZUP66nhsHDKrdpcCrUlhCim8Kw9jaxPOrRyIr5brcEgqbDt1IsmbOF4wmGsPMRB8ri09gwgrA2KBTytRZ2tlBkQMhbtqLBhkkHJr0fzAfF5tlYLrfIBTvz3jpTsn2U8VP42VOxf_I--1XSCvx-JXYk8yU0tyBqBPyVVi2BAjdq_22XtfwBl5SjApqPcwSLse_k&amp;__tn__=-]K-R">Daji Film studio【大吉映像】</a></li><li>拍貼機＆遊戲： <a href="https://www.facebook.com/linein.cc/?__cft__[0]=AZUP66nhsHDKrdpcCrUlhCim8Kw9jaxPOrRyIr5brcEgqbDt1IsmbOF4wmGsPMRB8ri09gwgrA2KBTytRZ2tlBkQMhbtqLBhkkHJr0fzAfF5tlYLrfIBTvz3jpTsn2U8VP42VOxf_I--1XSCvx-JXYk8yU0tyBqBPyVVi2BAjdq_22XtfwBl5SjApqPcwSLse_k&amp;__tn__=kK-R">拍拍印 LineIn 你的專屬拍貼系統</a></li><li>捧花： <a href="https://www.facebook.com/flora.e2222100?__cft__[0]=AZUP66nhsHDKrdpcCrUlhCim8Kw9jaxPOrRyIr5brcEgqbDt1IsmbOF4wmGsPMRB8ri09gwgrA2KBTytRZ2tlBkQMhbtqLBhkkHJr0fzAfF5tlYLrfIBTvz3jpTsn2U8VP42VOxf_I--1XSCvx-JXYk8yU0tyBqBPyVVi2BAjdq_22XtfwBl5SjApqPcwSLse_k&amp;__tn__=-]K-R">說給花聽花坊</a> (花鮮美到像凍結在最完美時間的假花)</li></ul><h4>傳統儀式相關 — 禮車</h4><ul><li>需要跟禮車司機先行確認路線</li><li>留意婚宴場地是否可以預留禮車的停車位</li><li>禮車數量通常為雙數，2, 6…</li><li>車彩通常租車公司會提供，或者是婚紗店會有，當然如果沒有的話可以以便宜的價格在婚禮用品店/百貨批發購買 (感謝老婆到台北火車站後站批發百貨商圈購買 <a href="https://goo.gl/maps/QUKqp5yq6LqiWZAAA">https://goo.gl/maps/QUKqp5yq6LqiWZAAA</a>)</li><li>確認參與的長輩人數，準備相符合的謝禮</li><li>奉茶的過程會需要作媒人向新娘介紹各位長輩是誰 (我們則是我)，因此事前功課需要先做好臉/稱謂的調查</li><li>戴上長輩送的結婚金飾</li></ul><h4>其餘事項</h4><ul><li>列出必帶品清單，出門前勾起確認</li><li>準備重要品用的小袋子數個，可以用來帶著印章、金飾等等以供快速取用，收納</li><li>帶著腳跟保護貼、眼藥水、小面紙以備不時之需</li><li>[<strong>非常重要</strong>] 事前記下重要聯絡人的手機號碼，避免手機沒電、網路不穩時通訊軟體不可用時找不到人的情況</li><li>建立備援聯絡人的機制，當分身乏術的時候有人可以補位</li></ul><p>以上是提供給各位參考的秘技，希望我們的經驗可以對到來此尋求幫助的各位起到作用，祝一切順利 🎉</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QPsPxMgCRjN2B6m6uadHaQ.jpeg" /></figure><p>Blog: <a href="https://blog.capslock.tw/2022-wedding-guildes/">https://blog.capslock.tw/2022-wedding-guildes/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=573a3e023631" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[當Pipimonster 遇上 Messenger BOT (上)]]></title>
            <link>https://medium.com/@calvin.peak/%E7%95%B6pipimonster-%E9%81%87%E4%B8%8A-messenger-bot-%E4%B8%8A-f80aa087156?source=rss-64217d8daf6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f80aa087156</guid>
            <category><![CDATA[f8]]></category>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[facebook-messenger]]></category>
            <dc:creator><![CDATA[Calvin Huang]]></dc:creator>
            <pubDate>Thu, 14 Apr 2016 09:38:41 GMT</pubDate>
            <atom:updated>2016-04-14T09:57:39.563Z</atom:updated>
            <content:encoded><![CDATA[<p>Facebook 在今年2016的F8上發表了Messenger BOT，讓商務帳戶能夠透過BOT在第一時間內提供使用者即時的、輕鬆有趣的訊息回饋反應。</p><p><strong>而這代表了粉絲專頁等等上面的塑造形象或是吉祥物能夠透過Messager BOT活過來！</strong></p><p>其實讓企業形象(吉祥物)擁有鮮明的個性，創造一個虛擬的人物這件事情在國內國外都屢見不鮮，像是</p><h3>M&amp;M&#39;S® Brand on Twitter</h3><p>We made it yesterday to New Orleans for Sunday&#39;s game! Share your Better With M&amp;M&#39;S moments using #betterwithmms. http://ow.ly/i/1rWhJ #SB47</p><p><em>如果你有興趣去看一下這些吉祥物們，可以看一下這篇裡面提到的twtitter帳號。</em><a href="http://www.adweek.com/socialtimes/brand-mascots-on-twitter/481430"><em>Up Close And Personal With Mr. Clean: 6 Brand Mascots To Follow On Twitter</em></a></p><p>我們拍拍賣公司也有一個可愛的形象拍拍獸</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/226/0*bVMrgExAEufRammI.png" /></figure><p>而通常這些企業形象(拍拍獸)的個性都是來自於裡面的駕駛員所朔造、反映出來的寫照，這除了對於裡面的人來說是一個壓力(發文回話都要深思熟慮，某個小編扮演兩個人格都快精神分裂了)以外，透過人的回覆總是會慢了個一下子，這就等於讓使用者購物欲上火的時候灑了一些水，<strong>當然我們在心中也會期許這一個可愛有個性的虛擬形象能夠活過來，不再是任何人的演技</strong>。</p><p>Messenger BOT API &amp; Wit.ai</p><p>根據<a href="https://developers.facebook.com/docs/messenger-platform">FB Developer document</a>裡面的教學來看我們可以在Developer console裡面新建一個Messenger APP，不過看起來在這個時間點(2016/04/14)還沒有更新，功能倒是已經有了。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/0*znRG_uzzZ_6N3NIg.png" /></figure><p>比較意外的是如果要開啟pages_messaging或是pages_messaging_phone_number權限需要經過審核(原本以為如果想用申請完就可以用)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/0*QYso0IsrjlvOFHA9.png" /></figure><p>而且在審查筆記裡面要求填上的資訊非常的嚴謹，看起來Facebook在F8 Push Notification上面講到的We need to avoid sending annoyed message to users是真有一回事而且有打算改善。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/0*85LgkLG5Zds1gFTJ.png" /></figure><p><em>其他申請說明: </em><a href="https://developers.facebook.com/policy/#messengerplatform"><em>使用原則</em></a><em>, </em><a href="https://developers.facebook.com/policy/#16-5-b-photo"><em>範例說明</em></a></p><p>可惜的目前在<a href="https://wit.ai/">wit.ai</a>裡面並沒有中文選項，另外因為目前還在測試中實際申請審核似乎會需要一點時間</p><pre>Submitted by you - Today at 6:02pm  <br>During the current beta period, the onboarding for the Messenger platform is limited to ensure the best user experience. Please be patient and check your dev alerts for updates; the approval may take up to several weeks. To make changes to this submission, click the Cancel Submission button.</pre><p>所以實際上BOT的功能能完善到什麼程度就得看看申請成功後的測試了，文章最後再附上送審用的情境模擬影片給各位參考一下。</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fc6g-zFAvEIs%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dc6g-zFAvEIs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fc6g-zFAvEIs%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/135cc599aac7fe6657d0920e7cae05f3/href">https://medium.com/media/135cc599aac7fe6657d0920e7cae05f3/href</a></iframe><p><a href="https://calvinpeak.net/2016/04/14/pipimonster-meets-messengerbot/"><em>https://calvinpeak.net/2016/04/14/pipimonster-meets-messengerbot/</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f80aa087156" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>