<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-133946690471694932</id><updated>2026-06-17T00:48:49.371+08:00</updated><category term="iOS"/><category term="PHP"/><category term="centos"/><category term="wordpress"/><category term="javascript"/><category term="mac"/><category term="linux"/><category term="jquery"/><category term="Cocos2D"/><category term="J2EE"/><category term="mysql"/><category term="雜記"/><category term="PHPUnit"/><category term="Tomcat"/><category term="android"/><category term="Facebook"/><category term="HTML"/><category term="Laravel"/><category term="spring"/><category term="Apache"/><category term="GIT"/><category term="SQL"/><category term="Sybase"/><category term="adsense"/><category term="資訊安全"/><category term=".NET"/><category term="HTTPS"/><category term="css"/><category term="henplus"/><category term="mariadb"/><category term="Hibernate"/><category term="JSTL"/><category term="MSSQL"/><category term="admob"/><category term="composer"/><category term="iptables"/><category term="xcode"/><category term="其他"/><category term="BDD"/><category term="CodeIgniter"/><category term="Eclipse"/><category term="Twitter"/><category term="file upload"/><category term="ie11"/><category term="postgres"/><category term="AFNetwork"/><category term="Ant"/><category term="Blogger"/><category term="CDN"/><category term="Country code"/><category term="DataGrip"/><category term="EaselJS"/><category term="GAE"/><category term="Gradle"/><category term="Homebrew"/><category term="IIS"/><category term="IPv6"/><category term="Java"/><category term="Maven"/><category term="NSDate"/><category term="Nginx"/><category term="PEAR"/><category term="PHP7"/><category term="Parallel"/><category term="PhpMyAdmin"/><category term="QQ"/><category term="SSL"/><category term="Selenium"/><category term="Spotify"/><category term="TDD"/><category term="Tunnelblick"/><category term="UILabel"/><category term="UnitTest"/><category term="VPN"/><category term="WeChat"/><category term="Web Socket"/><category term="Windows Server"/><category term="c/c++"/><category term="code style"/><category term="debug"/><category term="eXist"/><category term="gmap"/><category term="google+"/><category term="highlight.js"/><category term="http 2.0"/><category term="iPhone"/><category term="ie"/><category term="ie 7"/><category term="jqplot"/><category term="jquery ui"/><category term="json"/><category term="keychain"/><category term="linu"/><category term="log4j"/><category term="moya"/><category term="object-c"/><category term="phpexcel"/><category term="python"/><category term="select2"/><category term="shell script"/><category term="socket"/><category term="sqlite"/><category term="ssd"/><category term="swift"/><category term="trac"/><category term="vim"/><category term="weibo"/><category term="xQuery"/><category term="xampp"/><category term="xss"/><category term="斷行"/><category term="阿里雲"/><title type='text'>Alvin的學習筆記Log</title><subtitle type='html'>專門記錄工作及學習所得所見</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>333</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-6779192655295572480</id><published>2023-06-02T18:51:00.002+08:00</published><updated>2023-06-02T22:53:25.253+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><title type='text'>.Net Application(.net 6.0以後)部屬到IIS上</title><content type='html'>&lt;p&gt;雖然是寫.net 6.0，但應該說是.net core之後都算在內&lt;/p&gt;&lt;p&gt;最近主機疑似被入侵，為了安全起見整個重灌，問題就在沒筆記，所以網站原本好好的但出現了以下畫面的錯誤&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi_skbxhwcb_cdef7yyDJLpHmm5_fBa3v0WmUCX409lmyesYG_3aNC3zLmeX3f49Igw5yCR3CeHPEm-qQQkTLr-024i39MA9To4m6rBfUrkyleW7qJLVSYJJEbzQKu0a9E7FdOExfb9QnpGWVI6JC06SCVBm9Jr1KsASfqPe4WDYFwM5ywXk9-baRv_&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;1336&quot; data-original-width=&quot;2554&quot; height=&quot;167&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi_skbxhwcb_cdef7yyDJLpHmm5_fBa3v0WmUCX409lmyesYG_3aNC3zLmeX3f49Igw5yCR3CeHPEm-qQQkTLr-024i39MA9To4m6rBfUrkyleW7qJLVSYJJEbzQKu0a9E7FdOExfb9QnpGWVI6JC06SCVBm9Jr1KsASfqPe4WDYFwM5ywXk9-baRv_&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;看半天找不出問題點，忘了那時不知道是怎弄好的可以動（謎之聲：由此可知筆記的重要性啊～～），用0x8007000d去google看到&lt;a href=&quot;https://blog.darkthread.net/blog/aspnetcore-500-19-0x8007000d/&quot;&gt;【茶包射手日記】IIS 跑 ASP.NET Core 出現 500.19 0x8007000d 錯誤&lt;/a&gt;再找到&lt;a href=&quot;https://www.dotblogs.com.tw/fire/2022/04/10/160520&quot;&gt;[.NET Core] 將 .NET Core Application 部屬到 IIS&lt;/a&gt;，看了下自己專案中web.config有筆AspNetCoreModuleV2才想起～缺了.net core hosting moduler啊～&lt;div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://learn.microsoft.com/zh-tw/aspnet/core/host-and-deploy/iis/?view=aspnetcore-5.0&amp;amp;WT.mc_id=DOP-MVP-37580&quot;&gt;在使用 IIS 的 Windows 上裝載 ASP.NET Core&lt;/a&gt;中如下圖連結可以取得目前系統有安裝所需要最新的.net core hosting moduler&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjrrFDJzPUdvKiUeOZ8FjjoPcCC410_Ul6NmUuw4w3aWTKOfLfRT45SZQ1j6XH941FTyY05P6tOXqQghGLr2UxqDVNV_uvhrlajUld4e5sJqub27FkFo6C6d7UE4KW9m8l4hIn-RHCCmklww769cJ__DEQnOgdFh9_MiewUsT-8GfmPAvK53G8V_kbE&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;1012&quot; data-original-width=&quot;1758&quot; height=&quot;184&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjrrFDJzPUdvKiUeOZ8FjjoPcCC410_Ul6NmUuw4w3aWTKOfLfRT45SZQ1j6XH941FTyY05P6tOXqQghGLr2UxqDVNV_uvhrlajUld4e5sJqub27FkFo6C6d7UE4KW9m8l4hIn-RHCCmklww769cJ__DEQnOgdFh9_MiewUsT-8GfmPAvK53G8V_kbE&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;安裝好後再去IIS的模組查有沒有AspNetCoreModuleV2的存在&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjWIiqsjlsmyJaQU19DXc73_e40gGN3G8VDOt-3wzItbCL-w8JsjaAfLUnPLad_QNlSlNqPeV3CkpLCPWrEboiwu5HDV99B56rQOWFt8LCy-WM11rTQmV0VDUon5UWWZum1GTleoINN0lh63Kq4n1QDA-4H64BsQt4L-SNxmMlylk3-klg64bVKm6bX&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;616&quot; data-original-width=&quot;2058&quot; height=&quot;96&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjWIiqsjlsmyJaQU19DXc73_e40gGN3G8VDOt-3wzItbCL-w8JsjaAfLUnPLad_QNlSlNqPeV3CkpLCPWrEboiwu5HDV99B56rQOWFt8LCy-WM11rTQmV0VDUon5UWWZum1GTleoINN0lh63Kq4n1QDA-4H64BsQt4L-SNxmMlylk3-klg64bVKm6bX&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;重啟IIS（理論上不用），就可以用了&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;p&gt;參考網址：&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://www.dotblogs.com.tw/fire/2022/04/10/160520&quot;&gt;[.NET Core] 將 .NET Core Application 部屬到 IIS&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://learn.microsoft.com/zh-tw/aspnet/core/host-and-deploy/iis/?view=aspnetcore-5.0&amp;amp;WT.mc_id=DOP-MVP-37580&quot;&gt;在使用 IIS 的 Windows 上裝載 ASP.NET Core&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://blog.darkthread.net/blog/aspnetcore-500-19-0x8007000d/&quot;&gt;【茶包射手日記】IIS 跑 ASP.NET Core 出現 500.19 0x8007000d 錯誤&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/6779192655295572480/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2023/06/net-applicationnet-60iis.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/6779192655295572480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/6779192655295572480'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2023/06/net-applicationnet-60iis.html' title='.Net Application(.net 6.0以後)部屬到IIS上'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEi_skbxhwcb_cdef7yyDJLpHmm5_fBa3v0WmUCX409lmyesYG_3aNC3zLmeX3f49Igw5yCR3CeHPEm-qQQkTLr-024i39MA9To4m6rBfUrkyleW7qJLVSYJJEbzQKu0a9E7FdOExfb9QnpGWVI6JC06SCVBm9Jr1KsASfqPe4WDYFwM5ywXk9-baRv_=s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-5343799330786048749</id><published>2023-02-04T18:06:00.001+08:00</published><updated>2023-02-04T18:06:52.257+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="xcode"/><title type='text'>Xcode一直出現libGoogleAnalytics.a building for iOS Simulator, but linking in object file built for iOS無法執行compiler</title><content type='html'>&lt;p&gt;&amp;nbsp;舊案子要在新的Xcode上執行總是一堆有的沒的問題，最近又遇到“libGoogleAnalytics.a(GAIUtil.o), building for iOS Simulator, but linking in object file built for iOS”，怎樣都不讓Link，用這當key找到&lt;a href=&quot;https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84-swift-ios-app-%E9%96%8B%E7%99%BC%E5%95%8F%E9%A1%8C%E8%A7%A3%E7%AD%94%E9%9B%86/%E6%A8%A1%E6%93%AC%E5%99%A8%E7%84%A1%E6%B3%95%E5%9F%B7%E8%A1%8C-app-%E7%9A%84-architecture-arm64-%E5%95%8F%E9%A1%8C-ab57d281bdd6&quot;&gt;模擬器無法執行 App 的 architecture arm64 問題&lt;/a&gt;，沒想到就只是打開finder，進應用程式找到Xcode，對著他按右鍵，勾選“使用Rosetta打開”，再開它就OK了，沒想到這麼簡單&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjMWnTrkzTCnQQwmkXL4i9OIOhAUpxmDPQBHSiE99_TCYFkJorL5lA1vfsmmF4WD7kqVwuKfKgmpZFn0vVqxQ-GmoVfIeAWbny9PU4vSVWs6B9HPeXkSQKX9L4YGKiG0O7WLMtysfvSl9ww2gN-QdWIkWDc0MCiBuoCvhtgKE7Emcoo_ZwmZZiITv8s&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;319&quot; data-original-width=&quot;407&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjMWnTrkzTCnQQwmkXL4i9OIOhAUpxmDPQBHSiE99_TCYFkJorL5lA1vfsmmF4WD7kqVwuKfKgmpZFn0vVqxQ-GmoVfIeAWbny9PU4vSVWs6B9HPeXkSQKX9L4YGKiG0O7WLMtysfvSl9ww2gN-QdWIkWDc0MCiBuoCvhtgKE7Emcoo_ZwmZZiITv8s&quot; width=&quot;306&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;參考網址：&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84-swift-ios-app-%E9%96%8B%E7%99%BC%E5%95%8F%E9%A1%8C%E8%A7%A3%E7%AD%94%E9%9B%86/%E6%A8%A1%E6%93%AC%E5%99%A8%E7%84%A1%E6%B3%95%E5%9F%B7%E8%A1%8C-app-%E7%9A%84-architecture-arm64-%E5%95%8F%E9%A1%8C-ab57d281bdd6&quot;&gt;模擬器無法執行 App 的 architecture arm64 問題&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/5343799330786048749/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2023/02/xcodelibgoogleanalyticsa-building-for.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/5343799330786048749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/5343799330786048749'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2023/02/xcodelibgoogleanalyticsa-building-for.html' title='Xcode一直出現libGoogleAnalytics.a building for iOS Simulator, but linking in object file built for iOS無法執行compiler'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEjMWnTrkzTCnQQwmkXL4i9OIOhAUpxmDPQBHSiE99_TCYFkJorL5lA1vfsmmF4WD7kqVwuKfKgmpZFn0vVqxQ-GmoVfIeAWbny9PU4vSVWs6B9HPeXkSQKX9L4YGKiG0O7WLMtysfvSl9ww2gN-QdWIkWDc0MCiBuoCvhtgKE7Emcoo_ZwmZZiITv8s=s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-4322062751196680271</id><published>2021-11-04T21:37:00.005+08:00</published><updated>2021-11-04T21:37:48.718+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="object-c"/><title type='text'>舊案一直出現 Error: objc_msgSend Calls Too many arguments to function call, expected 0, have 4</title><content type='html'>&lt;p&gt;&amp;nbsp;一個很舊的案子去年改過最近重啟加新需求，去年沒事今年卻出現&quot;Too many arguments to function call, expected 0, have 4&quot;的Error，看了看是objc_msgSend這個造成，但看define: &quot;objc_msgSend(id _Nullable self, SEL _Nonnull op, ...)&quot;也看不出來有4個，3個應該也行吧，Google了下&lt;a href=&quot;https://stackoverflow.com/questions/24922913/too-many-arguments-to-function-call-expected-0-have-3&quot;&gt;Too many arguments to function call, expected 0, have 3&lt;/a&gt;中提到&lt;a href=&quot;https://github.com/th-in-gs/THObserversAndBinders/blob/master/THObserversAndBinders/THObserver.m&quot;&gt;https://github.com/th-in-gs/THObserversAndBinders/blob/master/THObserversAndBinders/THObserver.m&lt;/a&gt;，根本跟有幾個參數無關，第一個先將&quot;Apple Clang-Preprocessing&quot;中的&quot;Enable Strict Checking of objc_msgSend Calls&quot;改成NO，然後在用到objc_msgSend前面要加參數的型態，如&lt;/p&gt;&lt;pre class=&quot;brush: c&quot;&gt;objc_msgSend(target, action, selectedDate, origin)&lt;/pre&gt;&lt;pre class=&quot;brush: c&quot;&gt;改成 =＞ ((void(*)(id, SEL, NSDate*, id))objc_msgSend)(target, action, selectedDate, origin)&lt;/pre&gt;&lt;p&gt;這樣就能解決這error了&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;參考網址：&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://www.itread01.com/p/359977.html&quot;&gt;objc_msgSend()報錯Too many arguments to function call ,expected 0,have2&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/24922913/too-many-arguments-to-function-call-expected-0-have-3&quot;&gt;Too many arguments to function call, expected 0, have 3&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/4322062751196680271/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2021/11/error-objcmsgsend-calls-too-many.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/4322062751196680271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/4322062751196680271'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2021/11/error-objcmsgsend-calls-too-many.html' title='舊案一直出現 Error: objc_msgSend Calls Too many arguments to function call, expected 0, have 4'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-6630614842899541450</id><published>2021-08-16T23:12:00.001+08:00</published><updated>2021-08-16T23:12:06.033+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="moya"/><category scheme="http://www.blogger.com/atom/ns#" term="swift"/><title type='text'>使用Moya/RxSwift rx.request一直發生Error: Error calling</title><content type='html'>&lt;p&gt;使用RxSwift時，一直出現Error: Error calling GetProfile()的錯誤訊息，GetProfile是我使用Moya做出來的enum值，查半天沒資料，後來發現拿掉disposed就正常了，發現&lt;a href=&quot;https://github.com/Moya/Moya/issues/1462&quot;&gt;Use the latest version of Moya/RxSwift to request the network interface to return an error message #1462&lt;/a&gt;有提及這狀況，不過看起來沒講什麼，似乎是這樣做會造成自我消除，記下來再觀察看看&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;參考網址：&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/Moya/Moya/issues/1462&quot;&gt;Use the latest version of Moya/RxSwift to request the network interface to return an error message #1462&lt;/a&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/6630614842899541450/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2021/08/moyarxswift-rxrequesterror-error-calling.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/6630614842899541450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/6630614842899541450'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2021/08/moyarxswift-rxrequesterror-error-calling.html' title='使用Moya/RxSwift rx.request一直發生Error: Error calling'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-3787533681510400132</id><published>2021-08-03T15:58:00.002+08:00</published><updated>2021-08-03T15:58:23.296+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Windows Server"/><title type='text'>解決Windows Server的IE11無法下載chrome</title><content type='html'>&lt;p&gt;&amp;nbsp;這幾天弄個新環境時發現用IE11點擊Chrome的下載連結怎樣都沒反應，查了半天，看到&lt;a href=&quot;https://blog.darkthread.net/blog/server-ie-cant-download-chrome/&quot;&gt;【茶包射手日記】無法下載 Chrome 的 IE&lt;/a&gt;才發現，被擋掉了，以前都只要去安全設定那邊處理就好，點擊了Server Manager，再找到&quot;IE Enhanced Security Configuration&quot;取消掉就能用了&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;參考網址：&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://blog.darkthread.net/blog/server-ie-cant-download-chrome/&quot;&gt;【茶包射手日記】無法下載 Chrome 的 IE&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/3787533681510400132/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2021/08/windows-serverie11chrome.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/3787533681510400132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/3787533681510400132'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2021/08/windows-serverie11chrome.html' title='解決Windows Server的IE11無法下載chrome'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-2671464381690678159</id><published>2020-11-19T17:32:00.004+08:00</published><updated>2020-11-19T17:32:50.475+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><title type='text'>解決Gradle DSL method not found: &#39;implementation()&#39; 及 更換Android Studio Project的Android Gradle plugin version及Gradle Version</title><content type='html'>&lt;p&gt;在想要加入新版billing library到舊專案時，一直遇到&quot;Gradle DSL method not found: &#39;implementation()&#39;&quot;的問題，查了下看起來是Project中Gradle的版本問題， 更換方式如下：&lt;/p&gt;&lt;p&gt;對著app按右鍵選Open Module Settings&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhYtFr1lfXzSm4OKxPF12pJ8nj3YDPLrLk5qKk3HJR39QfAAwVOJCQlzvCdGE9YHu3BmJIA0w-fBHm6hDaGja4kInm4lmHS5O2QZbHRuvTqri4y0SYlrxhCsk0as_akC82d1Hl9roSx24/s718/%25E6%2588%25AA%25E5%259C%2596+2020-11-19+%25E4%25B8%258B%25E5%258D%25885.05.56.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;718&quot; data-original-width=&quot;447&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhYtFr1lfXzSm4OKxPF12pJ8nj3YDPLrLk5qKk3HJR39QfAAwVOJCQlzvCdGE9YHu3BmJIA0w-fBHm6hDaGja4kInm4lmHS5O2QZbHRuvTqri4y0SYlrxhCsk0as_akC82d1Hl9roSx24/s320/%25E6%2588%25AA%25E5%259C%2596+2020-11-19+%25E4%25B8%258B%25E5%258D%25885.05.56.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;再點Project就可以選Android Gradle plugin version及Gradle Version&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgolFDRxRL6Mr4gq-YjeRb5v_IIuE9z2JW0-Ke9mOudbcheQbOh5K25BMSCd8pRpklfWZlrpDNVYUUzTdlgClA9oPOFJxzWJ2cy5sbQpofywZ3fqomibPct1ftKdV-ExQ_raYGVrX1zIY0/s651/%25E6%2588%25AA%25E5%259C%2596+2020-11-19+%25E4%25B8%258B%25E5%258D%25885.06.14.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;271&quot; data-original-width=&quot;651&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgolFDRxRL6Mr4gq-YjeRb5v_IIuE9z2JW0-Ke9mOudbcheQbOh5K25BMSCd8pRpklfWZlrpDNVYUUzTdlgClA9oPOFJxzWJ2cy5sbQpofywZ3fqomibPct1ftKdV-ExQ_raYGVrX1zIY0/s320/%25E6%2588%25AA%25E5%259C%2596+2020-11-19+%25E4%25B8%258B%25E5%258D%25885.06.14.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;參考網址：&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://blog.csdn.net/qq_42263605/article/details/104062819&quot;&gt;Gradle DSL method not found: &#39;implementation()&#39;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/2671464381690678159/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2020/11/gradle-dsl-method-not-found.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/2671464381690678159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/2671464381690678159'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2020/11/gradle-dsl-method-not-found.html' title='解決Gradle DSL method not found: &#39;implementation()&#39; 及 更換Android Studio Project的Android Gradle plugin version及Gradle Version'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhYtFr1lfXzSm4OKxPF12pJ8nj3YDPLrLk5qKk3HJR39QfAAwVOJCQlzvCdGE9YHu3BmJIA0w-fBHm6hDaGja4kInm4lmHS5O2QZbHRuvTqri4y0SYlrxhCsk0as_akC82d1Hl9roSx24/s72-c/%25E6%2588%25AA%25E5%259C%2596+2020-11-19+%25E4%25B8%258B%25E5%258D%25885.05.56.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-4574793672573504825</id><published>2020-11-13T21:23:00.002+08:00</published><updated>2020-11-13T21:23:29.289+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><title type='text'>解決Service Intent must be explicit</title><content type='html'>&lt;p&gt;更改舊android專案升到api 28時，一直跳出Service Intent must be explicit，找半天解答，如：&lt;a href=&quot;https://blog.csdn.net/pvpheroszw/article/details/77981553&quot;&gt;Service Intent must be explicit的解决方案&lt;/a&gt;或&lt;a href=&quot;https://blog.csdn.net/mvpstevenlin/article/details/80300906&quot;&gt;【完美解决系列】Service Intent must be explicit&lt;/a&gt;，都太複雜，後來看到&lt;a href=&quot;https://stackoverflow.com/questions/24480069/google-in-app-billing-illegalargumentexception-service-intent-must-be-explicit/26318757#26318757&quot;&gt;Google In-App billing, IllegalArgumentException: Service Intent must be explicit, after upgrading to Android L Dev Preview&lt;/a&gt;，才了解重點在Intent要設定Package字串，如，我在用的是&quot;com.android.vending.billing.MarketBillingService.BIND&quot;，就設定intent.setPackage(&quot;com.android.vending&quot;)，這樣就OK了&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;參考網址：&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/24480069/google-in-app-billing-illegalargumentexception-service-intent-must-be-explicit/26318757#26318757&quot;&gt;Google In-App billing, IllegalArgumentException: Service Intent must be explicit, after upgrading to Android L Dev Preview&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/4574793672573504825/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2020/11/service-intent-must-be-explicit.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/4574793672573504825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/4574793672573504825'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2020/11/service-intent-must-be-explicit.html' title='解決Service Intent must be explicit'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-5892923393614969161</id><published>2020-11-06T22:06:00.003+08:00</published><updated>2020-11-06T22:06:25.917+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><title type='text'>HttpClient won&#39;t import in Android Studio</title><content type='html'>&lt;p&gt;在舊專案中在build.gradle中將compileSdkVersion及targetSdkVersion改成28後，突然出現import org.apache.http.HttpResponse有error，整個都沒了，google了下發現是因為sdk 23就不再包進去了，要另外加入底下的設定&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre class=&quot;bush:java&quot;&gt;android {
    useLibrary &#39;org.apache.http.legacy&#39;
}
&lt;/pre&gt;&lt;p&gt;這樣就OK囉～&lt;/p&gt;&lt;p&gt;參考網址：&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/32153318/httpclient-wont-import-in-android-studio&quot;&gt;HttpClient won&#39;t import in Android Studio&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/5892923393614969161/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2020/11/httpclient-wont-import-in-android-studio.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/5892923393614969161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/5892923393614969161'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2020/11/httpclient-wont-import-in-android-studio.html' title='HttpClient won&#39;t import in Android Studio'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-5485070081485159148</id><published>2020-10-27T16:31:00.002+08:00</published><updated>2020-10-27T16:31:50.387+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CodeIgniter"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>解決CI框加的Disallowed Key Characters Error</title><content type='html'>&lt;p&gt;客戶發生&quot;Disallowed Key Characters&quot;的錯誤回覆，找了朋友及自己的，都看起來正常，本以為請客戶清cache就好，但查了下google才發現是CI本身可能有的狀況，跟cookie有關，但看起來原因實在不是太明白。&lt;/p&gt;&lt;p&gt;一開始找到&lt;a href=&quot;https://codertw.com/%E7%A8%8B%E5%BC%8F%E8%AA%9E%E8%A8%80/237755/&quot;&gt;如何解決CI框架的Disallowed Key Characters錯誤提示&lt;/a&gt;的寫法，但發現沒用後來找到&lt;a href=&quot;https://www.itread01.com/p/960429.html&quot;&gt;如何解決CI框架的Disallowed Key Characters錯誤提示_PHP教程&lt;/a&gt;才解決，看起來差在+，有點版本上的問題，總之將&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre class=&quot;brush:php&quot;&gt;if ( ! preg_match(&quot;/^[a-z0-9:_/-]+$/i&quot;, $str))&lt;/pre&gt;&lt;p&gt;換成&lt;/p&gt;&lt;pre class=&quot;brush:php&quot;&gt;$config = &amp;amp;get_config(&#39;config&#39;);
if ( ! preg_match(&quot;/^[&quot;.$config[&#39;permitted_uri_chars&#39;].&quot;]+$/i&quot;, rawurlencode($str))) &lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;這樣就OK了&lt;/p&gt;&lt;p&gt;參考網址：&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://www.itread01.com/p/960429.html&quot;&gt;如何解決CI框架的Disallowed Key Characters錯誤提示_PHP教程&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/5485070081485159148/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2020/10/cidisallowed-key-characters-error.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/5485070081485159148'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/5485070081485159148'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2020/10/cidisallowed-key-characters-error.html' title='解決CI框加的Disallowed Key Characters Error'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-7368048922209089935</id><published>2020-09-15T22:34:00.004+08:00</published><updated>2020-09-15T22:34:26.920+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><title type='text'>解決〞Design editor is unavailable until after a successful project sync〞</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;將舊案從Eclipse匯入到Android studio，點選MainActivity.xml想改畫面卻一直出現底下的訊息&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvYM4ErqsZMlQ10bSxSiKF4CIK4CPXRR3b30sZszVmWAeNCkgZDfHXxG-Ez7uXO3LRLVsZ-BefLOSnrV0ZX-rdZLUpmYeRH_zOd70gxuKSeeKfWe6WKtW1fPeT1ovXyQfUbD6shnJvhto/&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img data-original-height=&quot;1014&quot; data-original-width=&quot;2694&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvYM4ErqsZMlQ10bSxSiKF4CIK4CPXRR3b30sZszVmWAeNCkgZDfHXxG-Ez7uXO3LRLVsZ-BefLOSnrV0ZX-rdZLUpmYeRH_zOd70gxuKSeeKfWe6WKtW1fPeT1ovXyQfUbD6shnJvhto/w640-h240/%25E6%2588%25AA%25E5%259C%2596+2020-09-15+%25E4%25B8%258B%25E5%258D%258810.22.46.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;查了下資料，看到這篇&lt;a href=&quot;https://www.itread01.com/content/1542913266.html&quot;&gt;android studio 新建一個專案，卻出現Design editor is unavailable until after a successful project sync&lt;/a&gt;，看起來點選File -&amp;gt; sync project with Gradle Files，出現Erorr：“The minSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file.〞&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;找半天找到AndroidManifes.xml，查看發現有底下這句&lt;/div&gt;&amp;lt;uses-sdk android:minSdkVersion=&quot;7&quot; android:targetSdkVersion=&quot;17&quot;/&amp;gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;將它mark掉後，再點選File -&amp;gt; sync project with Gradle Files，就build成功可以使用了&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;參考網址：&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://www.itread01.com/content/1542913266.html&quot;&gt;android studio 新建一個專案，卻出現Design editor is unavailable until after a successful project sync&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/7368048922209089935/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2020/09/design-editor-is-unavailable-until.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/7368048922209089935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/7368048922209089935'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2020/09/design-editor-is-unavailable-until.html' title='解決〞Design editor is unavailable until after a successful project sync〞'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvYM4ErqsZMlQ10bSxSiKF4CIK4CPXRR3b30sZszVmWAeNCkgZDfHXxG-Ez7uXO3LRLVsZ-BefLOSnrV0ZX-rdZLUpmYeRH_zOd70gxuKSeeKfWe6WKtW1fPeT1ovXyQfUbD6shnJvhto/s72-w640-h240-c/%25E6%2588%25AA%25E5%259C%2596+2020-09-15+%25E4%25B8%258B%25E5%258D%258810.22.46.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-5489725535471431379</id><published>2020-09-15T13:49:00.001+08:00</published><updated>2020-09-15T13:49:31.468+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="eXist"/><category scheme="http://www.blogger.com/atom/ns#" term="xQuery"/><title type='text'>xquery用for loop取得json array的值</title><content type='html'>&lt;p&gt;上傳json array，卻發現用底下的code一直變成存成單一字串&lt;/p&gt;&lt;p&gt;
&lt;/p&gt;&lt;pre class=&quot;brush:text&quot;&gt;for $item in params?array
	let $new := &amp;lt;item&amp;gt;{$item}&amp;lt;/item&amp;gt;
	return update insert $new into $file&lt;/pre&gt;&lt;p&gt;查半天覺得怪，參考&lt;a href=&quot;https://www.altova.com/training/xquery3/json&quot;&gt;JSON&lt;/a&gt;改成&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre class=&quot;brush:text&quot;&gt;let $size := array:size($params?array)
for $index in (1 to size)
	let $new := &amp;lt;item&amp;gt;{$params?array($index)}&amp;lt;/item&amp;gt;
	return update insert $new into $file&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;這樣就OK了，看起來似乎是無法直接使用、要再查看看&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;參考網址：&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://www.altova.com/training/xquery3/json&quot;&gt;JSON&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/5489725535471431379/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2020/09/xqueryfor-loopjson-array.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/5489725535471431379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/5489725535471431379'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2020/09/xqueryfor-loopjson-array.html' title='xquery用for loop取得json array的值'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-3583924070183600449</id><published>2020-09-06T21:53:00.003+08:00</published><updated>2020-09-06T21:53:53.906+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><title type='text'>解決UITableView的Grouped型態的Section間會有空隙</title><content type='html'>&lt;p&gt;為了讓Section不會一直停留在最上方，將UITableView的style改成UITableViewStyleGrouped。但卻發現第二個section和第一個seciont的最後一個元素隔一大段空白，查半天看到的StackOver都沒有但打勾確認，不過實際測了下&lt;a href=&quot;https://stackoverflow.com/questions/30364067/space-between-sections-in-uitableview&quot;&gt;Space Between Sections in UITableview&lt;/a&gt;的解決，如下面程式碼就能解決了，其實不能回傳0是要注意的，就直接給個比0大的值就好&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;pre style=&quot;brush: bash;&quot;&gt;- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
    return 0.00001f;
}
&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;參考網址：&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/30364067/space-between-sections-in-uitableview&quot;&gt;Space Between Sections in UITableview&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/3583924070183600449/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2020/09/uitableviewgroupedsection.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/3583924070183600449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/3583924070183600449'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2020/09/uitableviewgroupedsection.html' title='解決UITableView的Grouped型態的Section間會有空隙'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-4290392694028018169</id><published>2020-09-04T23:02:00.001+08:00</published><updated>2020-09-04T23:02:43.675+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><title type='text'>iOS上架遇到出口合資訊這怪問題</title><content type='html'>&lt;p&gt;上傳iOS app後，點選建置版本後，跳出回應&quot;出口合規資訊&quot;這樣的問題，查半天看半天大家都選否，也不是很清楚，&lt;a href=&quot;https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84-swift-ios-app-%E9%96%8B%E7%99%BC%E6%95%99%E5%AE%A4/app-%E7%BC%BA%E5%B0%91%E5%87%BA%E5%8F%A3%E5%90%88%E8%A6%8F%E8%B3%87%E8%A8%8A-64e3e7f2b55f&quot;&gt;APP TestFlight缺少出口合規資訊&lt;/a&gt;是寫了這是很久前的規定&quot;很久很久之前美國政府不允許採用高強度加密的套件，必須改成弱強度的加密方式&quot;，&lt;a href=&quot;https://www.itread01.com/content/1550360004.html&quot;&gt;蘋果提交版本後顯示”缺少出口合規證明“的解決辦法&lt;/a&gt;這邊倒是有特別寫個解法，最後選了否......再看看狀況吧&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;參考網址：&lt;/p&gt;&lt;p&gt;https://www.ptt.cc/bbs/MacDev/M.1513654588.A.92C.html&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84-swift-ios-app-%E9%96%8B%E7%99%BC%E6%95%99%E5%AE%A4/app-%E7%BC%BA%E5%B0%91%E5%87%BA%E5%8F%A3%E5%90%88%E8%A6%8F%E8%B3%87%E8%A8%8A-64e3e7f2b55f&quot;&gt;APP TestFlight缺少出口合規資訊&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://www.itread01.com/content/1550360004.html&quot;&gt;蘋果提交版本後顯示”缺少出口合規證明“的解決辦法&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/4290392694028018169/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2020/09/ios.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/4290392694028018169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/4290392694028018169'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2020/09/ios.html' title='iOS上架遇到出口合資訊這怪問題'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-1155239462428101398</id><published>2020-09-04T22:25:00.002+08:00</published><updated>2020-09-04T22:25:12.264+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><title type='text'>解決&quot;ERROR ITMS-90339: &quot;This bundle is invalid. The Info.plist contains an invalid key &#39;UIApplicationExitsOnSuspend&#39; in bundle&quot;</title><content type='html'>&lt;p&gt;&amp;nbsp;上架上傳app時遇到個Error，&quot;ERROR ITMS-90339: &quot;This bundle is invalid. The Info.plist contains an invalid key &#39;UIApplicationExitsOnSuspend&#39; in bundle XXX [XXX.app]&quot;&quot;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTJbu0ORP20ugmSsJQ1icZlNQOxH5VCtXUCDS8uKkjf491wZgYLjAsx2CineJ67iCnrlj6ZdCOICYLVFmKkAQuHhX07O34PNvyH_FmPOAq4HNX1PQxYR5-GnpZ0X-8cIl1YNci6skaFPY/s1498/%25E6%2588%25AA%25E5%259C%2596+2020-09-04+%25E4%25B8%258B%25E5%258D%258810.10.17.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;912&quot; data-original-width=&quot;1498&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTJbu0ORP20ugmSsJQ1icZlNQOxH5VCtXUCDS8uKkjf491wZgYLjAsx2CineJ67iCnrlj6ZdCOICYLVFmKkAQuHhX07O34PNvyH_FmPOAq4HNX1PQxYR5-GnpZ0X-8cIl1YNci6skaFPY/s320/%25E6%2588%25AA%25E5%259C%2596+2020-09-04+%25E4%25B8%258B%25E5%258D%258810.10.17.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;看半天，看到&lt;a href=&quot;https://stackoverflow.com/questions/56494807/uiapplicationexitsonsuspend-key-issue-how-do-i-fix-it&quot;&gt;UIApplicationExitsOnSuspend key issue. How do I fix it?&lt;/a&gt;有寫，對著info.plist按右鍵，點選&quot;Show Raw Keys/Values&quot;，倒是真的出現UIApplicationExitsOnSuspend，將它拿掉就可以過了&lt;/p&gt;&lt;p&gt;參考網址：&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/56494807/uiapplicationexitsonsuspend-key-issue-how-do-i-fix-it&quot;&gt;UIApplicationExitsOnSuspend key issue. How do I fix it?&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/1155239462428101398/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2020/09/error-itms-90339-this-bundle-is-invalid.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/1155239462428101398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/1155239462428101398'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2020/09/error-itms-90339-this-bundle-is-invalid.html' title='解決&quot;ERROR ITMS-90339: &quot;This bundle is invalid. The Info.plist contains an invalid key &#39;UIApplicationExitsOnSuspend&#39; in bundle&quot;'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTJbu0ORP20ugmSsJQ1icZlNQOxH5VCtXUCDS8uKkjf491wZgYLjAsx2CineJ67iCnrlj6ZdCOICYLVFmKkAQuHhX07O34PNvyH_FmPOAq4HNX1PQxYR5-GnpZ0X-8cIl1YNci6skaFPY/s72-c/%25E6%2588%25AA%25E5%259C%2596+2020-09-04+%25E4%25B8%258B%25E5%258D%258810.10.17.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-846365141613152967</id><published>2020-08-14T12:59:00.005+08:00</published><updated>2020-08-14T12:59:30.732+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><title type='text'>Xcode舊專案改用Automatic Sign發生〞Set the provisioning profile value to &quot;Automatic&quot; in the build settings editor, or switch to manual signing in the Signing &amp; Capabilities editor.〞 Error</title><content type='html'>&lt;p&gt;平時都是用手動指定憑證發布app，但剛好有舊案可以使用自動的，就改成自動，結果一直發生&quot;Set the provisioning profile value to &quot;Automatic&quot; in the build settings editor, or switch to manual signing in the Signing &amp;amp; Capabilities editor.&quot;，查半天，看到&lt;a href=&quot;https://blog.csdn.net/jia12216/article/details/82862178&quot;&gt;升级Xcode 10后遇到的问题&lt;/a&gt;提到清空User defined中的PROVISIONING_PROFILE，Target及Project設定都要改。&lt;/p&gt;&lt;p&gt;改完後，最好是Automatically manage signing的勾選取消再勾回，選Team，重開XCode。&lt;/p&gt;&lt;p&gt;參考網址：&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://blog.csdn.net/jia12216/article/details/82862178&quot;&gt;升级Xcode 10后遇到的问题&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/846365141613152967/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2020/08/xcodeautomatic-signset-provisioning.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/846365141613152967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/846365141613152967'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2020/08/xcodeautomatic-signset-provisioning.html' title='Xcode舊專案改用Automatic Sign發生〞Set the provisioning profile value to &quot;Automatic&quot; in the build settings editor, or switch to manual signing in the Signing &amp; Capabilities editor.〞 Error'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-7698422903152460980</id><published>2020-08-03T17:18:00.004+08:00</published><updated>2020-08-03T17:18:42.425+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Nginx"/><title type='text'>nginx設定轉址</title><content type='html'>有個網站跟客戶希望能直接轉址到別處，基本上有好幾種做法&lt;div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;直接php轉&lt;/li&gt;&lt;li&gt;.htaccess寫方式轉&lt;/li&gt;&lt;li&gt;web server（我是用nginx）轉&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;查了下，最後選了第三個做，直接在nginx.conf或site-enabled/default中的server內最後面加底下這行，oldpage及http://www.domain.com/newpage自行更換&lt;/div&gt;&lt;pre class=&quot;brush: bash&quot;&gt;rewrite ^/oldpage$ http://www.domain.com/newpage redirect;
&lt;/pre&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;重開機就OK了&lt;/div&gt;&lt;pre class=&quot;brush: bash&quot;&gt;#service nginx reload&lt;/pre&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;參考網址：&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://www.liquidweb.com/kb/redirecting-urls-using-nginx/&quot;&gt;How to Redirect URLs Using Nginx&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/7698422903152460980/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2020/08/nginx.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/7698422903152460980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/7698422903152460980'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2020/08/nginx.html' title='nginx設定轉址'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-3979463193760804640</id><published>2020-07-13T15:12:00.003+08:00</published><updated>2020-07-16T11:19:04.896+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css"/><category scheme="http://www.blogger.com/atom/ns#" term="ie11"/><title type='text'>IE11中使用flex + min-height做垂直置中的問題</title><content type='html'>前端的人使用bootstrap4切版，套版後覺得不好看，臨時改成有有最小高度，結果發現在IE無法垂直置中，查半天跟flex有關的資料，看到&lt;a href=&quot;https://hant-kb.kutu66.com/internet-explorer/post_12519864&quot;&gt;internet-explorer - 在 IE 中，css Flexbox不是垂直居中&lt;/a&gt;提到height要設定因為ie的bug，實際設定height設個比min-height小的值，就真的垂直置中了，真的太神奇了 ＠＠&lt;br /&gt;
&lt;br /&gt;
PS. 不確定是否全部ie版本都能用，但ie11可行。&lt;br /&gt;
&lt;br /&gt;
--- 7/16 更新&lt;br /&gt;
傻傻的以為能用，這做法不適合高度會變動的版面&lt;br /&gt;
&lt;br /&gt;
參考網址：&lt;br /&gt;
&lt;a href=&quot;https://hant-kb.kutu66.com/internet-explorer/post_12519864&quot;&gt;internet-explorer - 在 IE 中，css Flexbox不是垂直居中&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/3979463193760804640/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2020/07/ie11flex-min-height.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/3979463193760804640'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/3979463193760804640'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2020/07/ie11flex-min-height.html' title='IE11中使用flex + min-height做垂直置中的問題'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-9132336836762069863</id><published>2020-03-15T21:22:00.003+08:00</published><updated>2020-03-15T21:22:44.520+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="xcode"/><title type='text'>Xcode 10.1編譯舊專案出現了&#39;sqlite3_key&#39; is invalid in C99的Error</title><content type='html'>依然是舊專案的問題，出現了&#39;sqlite3_key&#39; is invalid in C99的Error，查了下看到這篇&lt;a href=&quot;https://github.com/sqlcipher/sqlcipher/issues/225&quot;&gt;sqlite3_key is invalid in C99 iOS11&lt;/a&gt;，看起來在iOS10是正常的，仔細想了下猜測是compiler版本問題，我的Xcode是10.1，就回到Xcode -&amp;gt; Preferences，點擊Locations，找到Command Line Tools，選Xcode 8.3.1，重開再compiler就OK了&lt;br /&gt;
&lt;br /&gt;
參考網址：&lt;br /&gt;
&lt;a href=&quot;https://github.com/sqlcipher/sqlcipher/issues/225&quot;&gt;sqlite3_key is invalid in C99 iOS11&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/9132336836762069863/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2020/03/xcode-101sqlite3key-is-invalid-in.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/9132336836762069863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/9132336836762069863'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2020/03/xcode-101sqlite3key-is-invalid-in.html' title='Xcode 10.1編譯舊專案出現了&#39;sqlite3_key&#39; is invalid in C99的Error'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-4542489899887061869</id><published>2020-03-15T21:01:00.001+08:00</published><updated>2020-03-15T21:01:22.214+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="xcode"/><title type='text'>升級到Xcode 9.3後出現Expected method to read dictionary element not found on object of type &#39;id&#39;</title><content type='html'>開啟多年未開的專案想要compile時一直出現&lt;span style=&quot;color: red;&quot;&gt;Expected method to read dictionary element not found on object of type &#39;id&amp;lt;NSFastEnumeration,NSObject&amp;gt;&#39;&lt;/span&gt;的錯誤訊息，仔細查看，是PromiseKit這個library在xcode 9.3後會有的問題，查半天都是講用cocoapods升級PromiseKit到1.7.2就OK了，打下pod update後，又出現其他專案的Error，仔細一看發現一個根本不能update的Library，問題最後只能是直接解決這error，反過來想，只好去查看這Framework針對這issue的commit，最後找到&lt;a href=&quot;https://github.com/mxcl/PromiseKit/commit/1ce256172bb8a4c35cff4c270582ae3e7847e54e&quot;&gt;Fix build on Xcode 9.3&lt;/a&gt;，修改如下&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNiVHmETJj6cLgWLOHKgh_XQPpC22i6HqmobiIzCNtiN41wDEuBFDFZEnlcJI0W8pnF_ZI5Tzjz3yxbFlw-89_N725pUNRQoxQa0z3BQZ3Vikp6jbDfrfDucJyMAt7hyjhtl6xsBxl3QI/s1600/2020-03-15_20-58-20.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;674&quot; data-original-width=&quot;1006&quot; height=&quot;267&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNiVHmETJj6cLgWLOHKgh_XQPpC22i6HqmobiIzCNtiN41wDEuBFDFZEnlcJI0W8pnF_ZI5Tzjz3yxbFlw-89_N725pUNRQoxQa0z3BQZ3Vikp6jbDfrfDucJyMAt7hyjhtl6xsBxl3QI/s400/2020-03-15_20-58-20.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
有種怎沒想到這樣改的蠢想法，不過又有種這像是workaround的感覺！！&lt;br /&gt;
&lt;br /&gt;
參考網址：&lt;br /&gt;
&lt;a href=&quot;https://github.com/mxcl/PromiseKit/issues/829&quot;&gt;Objective C- Xcode 9.3 - Expected method to read dictionary element not found on object of type&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://github.com/mxcl/PromiseKit/commit/1ce256172bb8a4c35cff4c270582ae3e7847e54e&quot;&gt;Fix build on Xcode 9.3&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/4542489899887061869/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2020/03/xcode-93expected-method-to-read.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/4542489899887061869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/4542489899887061869'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2020/03/xcode-93expected-method-to-read.html' title='升級到Xcode 9.3後出現Expected method to read dictionary element not found on object of type &#39;id&lt;NSFastEnumeration,NSObject&gt;&#39;'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNiVHmETJj6cLgWLOHKgh_XQPpC22i6HqmobiIzCNtiN41wDEuBFDFZEnlcJI0W8pnF_ZI5Tzjz3yxbFlw-89_N725pUNRQoxQa0z3BQZ3Vikp6jbDfrfDucJyMAt7hyjhtl6xsBxl3QI/s72-c/2020-03-15_20-58-20.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-5741441873896717318</id><published>2020-01-30T15:19:00.004+08:00</published><updated>2020-01-30T15:19:52.810+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Laravel"/><title type='text'>Laravel指定版本建立專案</title><content type='html'>Laravel的版本更新蠻快的，但主機的PHP常都在舊些的版本，例如沒指定版本都用到Laravel framework 6.X及PHP 7.2，但我還在用PHP 7.1，最新支援版本是5.8.35，所以在建立是要用以下的指令，demo是專案名，這樣即可。這邊做個筆記。&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brash: bash&quot;&gt;composer create-project laravel/laravel=5.8.* demo&lt;/pre&gt;
&lt;br /&gt;
參考網址:&lt;br /&gt;
&lt;a href=&quot;https://stackoverflow.com/questions/23754260/installing-specific-laravel-version-with-composer-create-project&quot;&gt;Installing specific laravel version with composer create-project&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/5741441873896717318/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2020/01/laravel.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/5741441873896717318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/5741441873896717318'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2020/01/laravel.html' title='Laravel指定版本建立專案'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-730822953286198033</id><published>2020-01-14T13:09:00.000+08:00</published><updated>2020-01-14T13:09:51.897+08:00</updated><title type='text'>ScrollView內設定自動計算出高度的Content</title><content type='html'>參考：http://adad184.com/2014/09/28/use-masonry-to-quick-solve-autolayout/&lt;br /&gt;
4. [中级] 在UIScrollView顺序排列一些view并自动计算contentSize
&lt;br /&gt;
&lt;br /&gt;
參考網址：&lt;br /&gt;
&lt;a href=&quot;http://adad184.com/2014/09/28/use-masonry-to-quick-solve-autolayout/&quot;&gt;http://adad184.com/2014/09/28/use-masonry-to-quick-solve-autolayout/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/730822953286198033/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2020/01/scrollviewcontent.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/730822953286198033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/730822953286198033'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2020/01/scrollviewcontent.html' title='ScrollView內設定自動計算出高度的Content'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-7120533130789670610</id><published>2020-01-03T23:53:00.002+08:00</published><updated>2020-01-03T23:53:59.055+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="NSDate"/><title type='text'>NSDate在2019年12月30日發生年度變成2020年的一年誤差問題</title><content type='html'>這幾天發生個怪問題，上傳的資料時間居然從2019-12-30變成2020-12-30，每筆資料都一樣，用的是NSDateFormatter這些內建的函式庫，怎麼看都沒問題著實奇怪，Google了下發現&lt;a href=&quot;https://www.jianshu.com/p/b61043514288&quot;&gt;iOS NSDate转成时间戳出现一年的误差&lt;/a&gt;提到，仔細一看才發現全都是用YYYY這寫法，在&lt;a href=&quot;https://zh.wikipedia.org/wiki/ISO%E9%80%B1%E6%97%A5%E6%9B%86&quot;&gt;ISO週日曆&lt;/a&gt;有解釋計算方式，大概可以簡單的去想成1／1那週從週一開始的都會是新的一年，所以還是都用yyyy小寫，除非您是要算成此週為哪一年的會計年度這種需求&lt;br /&gt;
&lt;br /&gt;
參考網址：&lt;br /&gt;
&lt;a href=&quot;https://www.jianshu.com/p/b61043514288&quot;&gt;iOS NSDate转成时间戳出现一年的误差&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://zh.wikipedia.org/wiki/ISO%E9%80%B1%E6%97%A5%E6%9B%86&quot;&gt;ISO週日曆&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/7120533130789670610/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2020/01/nsdate201912302020.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/7120533130789670610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/7120533130789670610'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2020/01/nsdate201912302020.html' title='NSDate在2019年12月30日發生年度變成2020年的一年誤差問題'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-1783528532167923653</id><published>2020-01-03T23:52:00.003+08:00</published><updated>2020-01-03T23:52:38.928+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tunnelblick"/><category scheme="http://www.blogger.com/atom/ns#" term="VPN"/><title type='text'>安裝Tunnelblick後使用時、一直發生/Applications/Tunnelblick.app/Contents/Resources/tap-notarized.kext failed to load的問題</title><content type='html'>今天在Mac上安裝Tunnelblick後，設好設定一直發生&quot;/Applications/Tunnelblick.app/Contents/Resources/tap-notarized.kext failed to load&quot;，查半天看不出來，後來看了&lt;a href=&quot;https://help.endian.com/hc/en-us/articles/360019434774-How-to-Fix-Cannot-allocate-TUN-TAP-dev-dynamically-error-on-MAC-OS-X&quot;&gt;How To Fix &quot;Cannot Allocate TUN/TAP Dev Dynamically&quot; Error On MAC OS X&lt;/a&gt;中再找到&lt;a href=&quot;https://github.com/pqrs-org/Karabiner-Elements/issues/777&quot;&gt;Unable to load kext on High Sierra&lt;/a&gt;才突然想到會不會是因為Tunnelblick非官方程式要在程式安全性按允許才行，進設定的安全性與隱私權就發現有需要按允許的要求，按下後就OK了&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
參考網址：&lt;br /&gt;
&lt;a href=&quot;https://help.endian.com/hc/en-us/articles/360019434774-How-to-Fix-Cannot-allocate-TUN-TAP-dev-dynamically-error-on-MAC-OS-X&quot;&gt;How To Fix &quot;Cannot Allocate TUN/TAP Dev Dynamically&quot; Error On MAC OS X&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://github.com/pqrs-org/Karabiner-Elements/issues/777&quot;&gt;Unable to load kext on High Sierra&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/1783528532167923653/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2020/01/tunnelblickapplicationstunnelblickappco.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/1783528532167923653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/1783528532167923653'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2020/01/tunnelblickapplicationstunnelblickappco.html' title='安裝Tunnelblick後使用時、一直發生/Applications/Tunnelblick.app/Contents/Resources/tap-notarized.kext failed to load的問題'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-6003174910468206204</id><published>2019-10-09T00:22:00.000+08:00</published><updated>2019-10-09T00:22:06.596+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CDN"/><title type='text'>CDN或proxy的快取問題：Html, js, css</title><content type='html'>這次程式放客戶那，開發時改css時發現完全無法抓到最新的css或js，查半天看起來有走到CDN，一般大客戶多少也有做proxy的狀況，直接改檔名馬上就正常了，看起來HTML、JS、CSS這三種檔案都要特別注意這問題</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/6003174910468206204/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2019/10/cdnproxyhtml-js-css.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/6003174910468206204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/6003174910468206204'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2019/10/cdnproxyhtml-js-css.html' title='CDN或proxy的快取問題：Html, js, css'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-133946690471694932.post-6128059751856093814</id><published>2019-10-09T00:18:00.003+08:00</published><updated>2019-10-09T00:18:58.278+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ie"/><title type='text'>IE下Button內不能放input或a等click元素</title><content type='html'>做下記錄老是忘記&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;在IE下Button下不能放input或a等click&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;元素&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://alvinlee0327.blogspot.com/feeds/6128059751856093814/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://alvinlee0327.blogspot.com/2019/10/iebuttoninputaclick.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/6128059751856093814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/133946690471694932/posts/default/6128059751856093814'/><link rel='alternate' type='text/html' href='http://alvinlee0327.blogspot.com/2019/10/iebuttoninputaclick.html' title='IE下Button內不能放input或a等click元素'/><author><name>Alvin</name><uri>http://www.blogger.com/profile/08550530561079044406</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>