<?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 hogia on Medium]]></title>
        <description><![CDATA[Stories by hogia on Medium]]></description>
        <link>https://medium.com/@hogia?source=rss-c80c903bf86f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by hogia on Medium</title>
            <link>https://medium.com/@hogia?source=rss-c80c903bf86f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 22:52:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hogia/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[Google Recaptcha V3 一直得到0.1分的問題]]></title>
            <link>https://medium.com/@hogia/google-recaptcha-v3-%E4%B8%80%E7%9B%B4%E5%BE%97%E5%88%B00-1%E5%88%86%E7%9A%84%E5%95%8F%E9%A1%8C-1b14a6a3fcf2?source=rss-c80c903bf86f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b14a6a3fcf2</guid>
            <category><![CDATA[bugs]]></category>
            <category><![CDATA[recaptcha]]></category>
            <dc:creator><![CDATA[hogia]]></dc:creator>
            <pubDate>Wed, 28 Aug 2019 07:25:55 GMT</pubDate>
            <atom:updated>2019-08-28T07:29:29.613Z</atom:updated>
            <content:encoded><![CDATA[<p>現在對於你是不是機器人的九宮格選項大家已經習以為常了，不過有時候有些題目真的很難，就算是簡單的題目，要多點選這點也很惱人。</p><figure><img alt="Recaptcha pic from stackoverflow https://stackoverflow.com/questions/37919676/google-recaptcha-selected-image-keep-getting-re" src="https://cdn-images-1.medium.com/max/404/0*-rdxgHjJxChp9ytP.jpg" /><figcaption>Recaptcha pic. Credit: <a href="https://stackoverflow.com/questions/37919676/google-recaptcha-selected-image-keep-getting-replaced-with-new-image">https://stackoverflow.com/questions/37919676/google-recaptcha-selected-image-keep-getting-replaced-with-new-image</a></figcaption></figure><p>終於google 推出了V3版的隱形辨認機制，使用者不用再點選問題，系統會根據使用者的行為自動判斷並給予一個0~1之間的分數，越接近1越可能是真人操作。聽起來很美好但是在使用上有一個大問題。</p><p>當開發者把recaptcha V3套用到網站，一開始一切都很順利。當你很開心的一直測，一段時間後，你的分數就會漸漸越來越低最後降到0.1，對，google覺得你是機器人。管理後台裡面也沒有地方可以設定ip例外清單，也就是目前無解。如果不幸在自己的網站已經被當成機器人，唯一的解法是重新申請一組site key。</p><p>希望未來可以解決這個問題，附上github上的討論<a href="https://github.com/google/recaptcha/issues/248">https://github.com/google/recaptcha/issues/248</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b14a6a3fcf2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bootstrap DatePicker月曆模式如何取值]]></title>
            <link>https://medium.com/@hogia/bootstrap-datepicker%E6%9C%88%E6%9B%86%E6%A8%A1%E5%BC%8F%E5%A6%82%E4%BD%95%E5%8F%96%E5%80%BC-c8447d1caf95?source=rss-c80c903bf86f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8447d1caf95</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[bootstrap]]></category>
            <dc:creator><![CDATA[hogia]]></dc:creator>
            <pubDate>Mon, 21 Jan 2019 02:04:36 GMT</pubDate>
            <atom:updated>2019-01-21T02:04:36.457Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://bootstrap-datepicker.readthedocs.io/en/latest/index.html">bootstrap datepicker</a>是很常用的日曆元件，可以在&lt;input&gt;中用日曆選擇日期，一般使用上也不會碰到取值的問題，因為直接可以從&lt;input&gt;讀取。不過最近在使用月曆模式的時候碰到了問題。月曆模式使用的是&lt;div&gt;，所以必須要使用元件內建的方法 getDate 。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*0GjCbqdxwM7AqvdCtPRZbg.png" /></figure><p>不過卻遇到了問題，用getDate取得的時間格式會是localized date，而非想要的yyyy/mm/dd格式，google和stack overflow上也沒有明確的解法。除了自己轉型之外其實還有一個方法。</p><p>使用元件內建的event¹就可以直接輸出yyyy/mm/dd格式，以下範例：</p><pre>&lt;div id=&quot;calendar&gt;&lt;/div&gt;</pre><pre>&lt;script&gt;<br>$(&quot;#claendar&quot;).datepicker().on(&#39;changeDate&#39;,function(e){<br>e.format();<br>});<br>&lt;script&gt;</pre><blockquote>¹Bootstrap datepicker event:<br><a href="https://bootstrap-datepicker.readthedocs.io/en/latest/events.html">https://bootstrap-datepicker.readthedocs.io/en/latest/events.html</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8447d1caf95" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Test]]></title>
            <link>https://medium.com/@hogia/test-739de489125?source=rss-c80c903bf86f------2</link>
            <guid isPermaLink="false">https://medium.com/p/739de489125</guid>
            <dc:creator><![CDATA[hogia]]></dc:creator>
            <pubDate>Thu, 21 Jul 2016 03:54:04 GMT</pubDate>
            <atom:updated>2016-07-21T03:55:45.825Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello world!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*eYJYii5V5DzQUKyHWBwTEg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=739de489125" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>