<?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-1850175275414943652</id><updated>2015-10-04T08:28:06.335+08:00</updated><category term="jboss"/><category term="Zafira"/><category term="Java"/><category term="交通工具"/><category term="JEE"/><category term="linux"/><category term="CashLost"/><category term="Mac"/><category term="生活雜記"/><category term="Beta"/><category term="JPA"/><category term="Jant"/><category term="LifeView"/><category term="ITNote"/><category term="Software"/><category term="linkstation/kurobox"/><category term="愚蠢事蹟"/><category term="Android"/><category term="HTML"/><category term="JavaScript"/><category term="Eclipse"/><category term="FireFox"/><category term="Mantis"/><category term="Others"/><category term="debian"/><category term="IE小惡魔"/><category term="Object-c"/><category term="PSP"/><category term="Strida"/><category term="VirtualBox"/><category term="Web Service"/><category term="ant"/><category term="cakephp"/><category term="git"/><category term="linx"/><category term="php"/><category term="svn"/><category term="ubuntu"/><title type='text'>長尾巴的魚</title><subtitle type='html'>簡單的生活 愉快的生命</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://longtai.2twn.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>134</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-974527197452251830</id><published>2014-12-24T06:34:00.000+08:00</published><updated>2014-12-26T00:06:16.642+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Zafira"/><title type='text'>[Zafira] 50000km 達成</title><content type='html'>花了47個月..&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;http://2.bp.blogspot.com/--K3xjmhBMCk/VJwxxPMTSvI/AAAAAAAABTo/CSHK0xZ7OCA/w1118-h629-no/20141224_183418.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/--K3xjmhBMCk/VJwxxPMTSvI/AAAAAAAABTo/CSHK0xZ7OCA/w1118-h629-no/20141224_183418.jpg&quot; height=&quot;180&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/974527197452251830/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2014/12/zafira-50000km.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/974527197452251830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/974527197452251830'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2014/12/zafira-50000km.html' title='[Zafira] 50000km 達成'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-4337919617118751446</id><published>2014-08-11T14:13:00.001+08:00</published><updated>2014-08-11T14:13:54.755+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Object-c"/><title type='text'>[Object-C] CocaAsynSocket 使用在 iOS 7.1 上面</title><content type='html'>需要用到 TCP/IP on iOS , 之前同事有人使用CocaAsynSocket來實作.&lt;br /&gt;另外一個好同事, 幫我把 mac 版的測試過.&lt;br /&gt;當要移轉到 iOS 時, 發生下列幾個大問題了&lt;br /&gt;1. NSHost 不存在&amp;nbsp; iOS , 所以 getLocalAddresses 需要找外援&lt;br /&gt;2. CocaAsynSocket 移轉到 iOS , 按下 Build 出現一堆reference 不存在 &lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Undefined symbols for architecture i386:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_SSLClose&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket closeWithError:] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_SSLCopyPeerTrust&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket ssl_continueSSLHandshake] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_SSLCreateContext&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_SSLGetBufferedReadSize&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ___33-[GCDAsyncSocket flushSSLBuffers]_block_invoke in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket doReadData] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_SSLHandshake&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket ssl_continueSSLHandshake] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_SSLRead&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket flushSSLBuffers] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket doReadData] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_SSLSetCertificate&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_SSLSetConnection&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_SSLSetEnabledCiphers&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_SSLSetIOFuncs&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_SSLSetPeerDomainName&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_SSLSetPeerID&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_SSLSetProtocolVersionMax&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_SSLSetProtocolVersionMin&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_SSLSetSessionOption&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_SSLWrite&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket doWriteData] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_kCFStreamNetworkServiceType&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket enableBackgroundingOnSocketWithCaveat:] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_kCFStreamNetworkServiceTypeVoIP&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket enableBackgroundingOnSocketWithCaveat:] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_kCFStreamPropertySSLSettings&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket cf_startTLS] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_kCFStreamSSLAllowsAnyRoot&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_kCFStreamSSLAllowsExpiredCertificates&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_kCFStreamSSLAllowsExpiredRoots&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_kCFStreamSSLCertificates&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_kCFStreamSSLIsServer&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_kCFStreamSSLLevel&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_kCFStreamSSLPeerName&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;_kCFStreamSSLValidatesCertificateChain&quot;, referenced from:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;ld: symbol(s) not found for architecture i386&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;clang: error: linker command failed with exit code 1 (use -v to see invocation)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;&lt;span style=&quot;color: red;&quot;&gt;解法&lt;/span&gt;&lt;/h2&gt;&lt;h3&gt;&lt;span style=&quot;color: red;&quot;&gt;1.&amp;nbsp; &lt;/span&gt;&lt;a class=&quot;question-hyperlink&quot; href=&quot;http://stackoverflow.com/questions/7072989/iphone-ipad-osx-how-to-get-my-ip-address-programmatically&quot;&gt;iPhone/iPad/OSX: How to get my IP address programmatically?&lt;/a&gt;&lt;/h3&gt;&lt;h3&gt;2.新增 Library for Security and CFNetwork&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;CFNetwork.framework&lt;/li&gt;&lt;li&gt;Security.framework&lt;/li&gt;&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/4337919617118751446/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2014/08/object-c-cocasynsocket-ios-71.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/4337919617118751446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/4337919617118751446'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2014/08/object-c-cocasynsocket-ios-71.html' title='[Object-C] CocaAsynSocket 使用在 iOS 7.1 上面'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-3219637079983924180</id><published>2014-05-13T07:15:00.000+08:00</published><updated>2014-12-26T00:02:37.276+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Zafira"/><title type='text'>[Zafira] 40000km 達成</title><content type='html'>花了40個月..&amp;nbsp;&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;http://4.bp.blogspot.com/vDAFFNscUukvtv0mebommWcDWJsaJn9WHjYIacIifWk=w360-h202-p-no&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/vDAFFNscUukvtv0mebommWcDWJsaJn9WHjYIacIifWk=w360-h202-p-no&quot; height=&quot;179&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/3219637079983924180/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2014/05/zafira-40000km.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/3219637079983924180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/3219637079983924180'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2014/05/zafira-40000km.html' title='[Zafira] 40000km 達成'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-3000285536157505056</id><published>2014-03-10T14:49:00.002+08:00</published><updated>2014-03-10T14:49:27.639+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="linx"/><title type='text'>[Linux] sudo 相關設定</title><content type='html'>如何允許一般使用者可以有sudo 權限&lt;br /&gt;&lt;br /&gt;chmod 770 /etc/sudoers&lt;br /&gt;vi /etc/sudoers&lt;br /&gt;chmod 440 /etc/sudoers&lt;br /&gt;&lt;br /&gt;/etc/sudoers 變更中, 可以針對單一User 也可以使用Group 設定&lt;br /&gt;&lt;br /&gt;1. 使用一群Group&lt;br /&gt;# Allow members of group sudo to execute any command&lt;br /&gt;%sudo&amp;nbsp;&amp;nbsp;&amp;nbsp; ALL=(ALL:ALL) ALL&lt;br /&gt;&lt;br /&gt;2. 變更單一User&lt;br /&gt;username ALL=(ALL:ALL)&amp;nbsp; ALL&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/3000285536157505056/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2014/03/linux-sudo.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/3000285536157505056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/3000285536157505056'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2014/03/linux-sudo.html' title='[Linux] sudo 相關設定'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-7409441454362459319</id><published>2014-01-24T15:40:00.001+08:00</published><updated>2014-01-24T15:40:32.979+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><title type='text'>[Linux] SSH Client 相關設定</title><content type='html'>已經習慣使用 Mac 作為工作平台.需要管理Linux Server.&lt;br /&gt;目前多半使用 ssh 做連線的工具, 這兩天某Server 重新安裝, ssh key 有改過沒法進去.&lt;br /&gt;網路上找了一下方法.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;1. 刪掉 ~/.ssh/&lt;span style=&quot;font-size: 12pt;&quot;&gt;known_hosts 裡頭相對應的IP or Server Name&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;2. 刪掉 ~/.ssh/known_hosts 整個檔案.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;找尋過程中, 發現可以將 Server 相關設定寫好, 不用每次敲server name and username&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;vi ~/.ssh/config&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;======================&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Host $SessionName&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hostname $ConnectionName&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; User $username&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;======================&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;$SessionName 你可以記住的代稱&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;$ConnectionName 連線的主機名稱或IP&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;$username Login Name &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;參考資料&lt;br /&gt;1. &lt;a href=&quot;http://blog.xuite.net/yctseng/notes/24912310-ssh&quot;&gt;http://blog.xuite.net/yctseng/notes/24912310-ssh &lt;/a&gt;&lt;br /&gt;2. &lt;a href=&quot;http://www.lainme.com/doku.php/blog/2011/01/%E4%BD%BF%E7%94%A8ssh_config&quot;&gt;使用SSH CONFIG&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/7409441454362459319/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2014/01/linux-ssh-client.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/7409441454362459319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/7409441454362459319'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2014/01/linux-ssh-client.html' title='[Linux] SSH Client 相關設定'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-7721929461895279774</id><published>2013-09-26T13:56:00.000+08:00</published><updated>2014-01-13T13:57:29.727+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Zafira"/><title type='text'>[Zafira] 30000km 達成</title><content type='html'>花了30個月..&amp;nbsp;&amp;nbsp;&lt;br /&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;http://1.bp.blogspot.com/-BNlaPRzS1g0/UtN-2FMRzFI/AAAAAAAABK8/iDEnVrt7COA/w711-h533-no/IMG_20130926_071248.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;239&quot; src=&quot;http://1.bp.blogspot.com/-BNlaPRzS1g0/UtN-2FMRzFI/AAAAAAAABK8/iDEnVrt7COA/w711-h533-no/IMG_20130926_071248.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/7721929461895279774/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2013/09/zafira-30000km.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/7721929461895279774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/7721929461895279774'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2013/09/zafira-30000km.html' title='[Zafira] 30000km 達成'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-7560329558337954820</id><published>2013-09-16T15:30:00.000+08:00</published><updated>2013-09-16T15:30:07.271+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><category scheme="http://www.blogger.com/atom/ns#" term="svn"/><title type='text'>[MAC] 安裝 SVN Console Client</title><content type='html'>在 Mac 下面要安裝 svn console client 如教學網站&lt;br /&gt;&lt;a href=&quot;http://superuser.com/questions/455214/where-is-svn-on-os-x-mountain-lion&quot;&gt;Where is svn on OS-X Mountain-Lion &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1. 從Xcode 安裝 Command Line Tools.&lt;br /&gt;&amp;nbsp;&lt;em&gt;Xcode » Preferences » Downloads » Command Line Tools » Install&lt;/em&gt;.&lt;br /&gt;2. edit .profile to set PATH to Xcode Path&lt;br /&gt;vi .profile&lt;br /&gt;PATH=&quot;${PATH}:/Applications/Xcode.app/Contents/Developer/usr/bin/&quot;&lt;br /&gt;source .profile </content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/7560329558337954820/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2013/09/mac-svn-console-client.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/7560329558337954820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/7560329558337954820'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2013/09/mac-svn-console-client.html' title='[MAC] 安裝 SVN Console Client'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-3359981030425912738</id><published>2013-09-11T18:03:00.002+08:00</published><updated>2013-09-11T18:12:48.773+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>[Linux] 使用 Tar 備份超過30天的指令</title><content type='html'>find . -mtime +30 | xargs tar -cvf mar_03.tar&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;Tar file and remove file&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;find . -mtime +30 | xargs tar -cvf mar_03.tar --remove-files&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/3359981030425912738/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2013/09/linux-tar-30.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/3359981030425912738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/3359981030425912738'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2013/09/linux-tar-30.html' title='[Linux] 使用 Tar 備份超過30天的指令'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-2543283230003410234</id><published>2013-08-16T15:38:00.000+08:00</published><updated>2013-08-16T15:38:00.308+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><title type='text'>[Mac] 新增Git Console</title><content type='html'>安裝與設定步驟如下&lt;br /&gt;&lt;br /&gt;1.Install &lt;a href=&quot;http://code.google.com/p/git-osx-installer/&quot;&gt;&lt;span itemprop=&quot;name&quot;&gt;git-osx-installer&lt;/span&gt;&lt;/a&gt; . &lt;br /&gt;2. edit PATH&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;sudo vi /etc/paths&lt;br /&gt;add /usr/local/git/bin to Last Line&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/2543283230003410234/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2013/08/mac-git-console.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/2543283230003410234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/2543283230003410234'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2013/08/mac-git-console.html' title='[Mac] 新增Git Console'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-7163172545340547571</id><published>2013-08-05T11:31:00.003+08:00</published><updated>2013-08-05T11:31:38.904+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Rockchip RK3066 vs Allwinner A20 </title><content type='html'>手上有一隻 友旺 A08 Android Dongle. 最近在測試 Adobe Connect 時, 發現當 啓用Camra 功能時, 會整個頓在那邊無法使用. 但是在Skype 上面, A08 又整個很順. 想說是否找另外一個替代產品來使用看看. &lt;br /&gt;在台灣的ruten 上面, 看到一個 Cubiebox A20 的mini arm pc. 想要買來試試看, 但是又怕買來的效能比不上原來的A08 不就是白費工夫跟多花錢.&amp;nbsp; 先查了一下規格.&lt;br /&gt;&lt;br /&gt;A08 使用 RockChip : RK3066&lt;br /&gt;Cubiebox A20 使用 Allwinner : A20&lt;br /&gt;&lt;br /&gt;網路上查到:&lt;br /&gt;&lt;div class=&quot;entry-title&quot;&gt;1. &lt;a href=&quot;http://minipute.com/2013/06/28/how-they-compare-rockchip-rk3066-vs-allwinner-a20/1544&quot;&gt;How they compare – Rockchip RK3066 vs Allwinner A20&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;entry-title&quot;&gt;2. &lt;a href=&quot;http://minipute.com/2013/06/01/dual-core-arm-battle-rockchips-rk3168-vs-allwinners-a20/193&quot;&gt;Dual-core ARM battle: RockChip’s RK3168 vs Allwinner’s A20&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;entry-title&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;entry-title&quot;&gt;在第一篇中, 最後結論是 RK3066 還是dual-core 的Top, 即使 A20 使用 較新的 Cortex- A7 架構. 整體來說, RK3066 還是比較強. A20 好處是在於相容A10 的模組.&amp;nbsp; &lt;/div&gt;&lt;div class=&quot;entry-title&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;entry-title&quot;&gt;所以, 結論是 A08 就繼續用下去吧.&amp;nbsp;&lt;/div&gt;我是比較想要買下面這一個產品. &lt;a href=&quot;http://www.hardkernel.com/renewal_2011/products/prdt_info.php?g_code=G135341370451&quot;&gt;ODROID-U2&lt;/a&gt; 別人評比效能接近 core 2 duo @1200Mhz.另外最近新出的產品 &lt;a href=&quot;http://www.hardkernel.com/renewal_2011/products/prdt_info.php?g_code=G137510300620&quot;&gt;ODROID-XU&lt;/a&gt; 有錢買更好. &lt;br /&gt;&lt;div class=&quot;entry-title&quot;&gt; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/7163172545340547571/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2013/08/rockchip-rk3066-vs-allwinner-a20.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/7163172545340547571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/7163172545340547571'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2013/08/rockchip-rk3066-vs-allwinner-a20.html' title='Rockchip RK3066 vs Allwinner A20 '/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-8465336678072996849</id><published>2013-07-22T16:32:00.001+08:00</published><updated>2013-07-22T16:32:13.382+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VirtualBox"/><title type='text'>[VirtualBox] WinXP with two CPU</title><content type='html'>為了讓 WinXP 可以出現 Two CPU. 找了下面一篇文章來改.&lt;br /&gt;確實可以讓 WinXP 出現 Two CPU.&lt;br /&gt;&lt;br /&gt;&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot;&gt;&lt;a href=&quot;http://aaklink.blogspot.tw/2012/11/virtual-box-upgrading-windows-xp-vms-to.html&quot;&gt;VirtualBox - upgrading Windows XP VMs to 2 CPU&amp;nbsp;&lt;/a&gt;&lt;/h3&gt;&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot;&gt;&amp;nbsp;&lt;/h3&gt;&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot;&gt;Step :&amp;nbsp;&lt;/h3&gt;&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot;&gt;1. check&amp;nbsp; System -&amp;gt; &quot;&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;Enable IO APIC&lt;/i&gt;&quot;&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot;&gt;&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;2.&amp;nbsp; On Commad mode :&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot;&gt;&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #333333; line-height: 18px; text-align: left;&quot;&gt;rundll32 syssetup,SetupInfObjectInstallAction ACPIAPIC_MP_HAL 128 %windir%\inf\hal.inf&lt;/b&gt;&lt;/h3&gt;&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot;&gt;&lt;b style=&quot;background-color: white; color: #333333; line-height: 18px; text-align: left;&quot;&gt;3. restart WinXP &amp;nbsp;&lt;/b&gt; &lt;/h3&gt;</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/8465336678072996849/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2013/07/virtualbox-winxp-with-two-cpu.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/8465336678072996849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/8465336678072996849'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2013/07/virtualbox-winxp-with-two-cpu.html' title='[VirtualBox] WinXP with two CPU'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-5328252054928900115</id><published>2013-06-05T09:19:00.000+08:00</published><updated>2013-06-05T09:19:02.395+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Samba client 設定 file path , 需多增加一個$</title><content type='html'>最近需要使用到 samba client 連結上 MS 的網路芳鄰. 測試的網路芳鄰有兩種.&lt;br /&gt;1. 自己Windows 開放目錄給其他人.&amp;nbsp; private_server&lt;br /&gt;2. Data Server 開放給所有人的 目錄分享.&amp;nbsp; public_server&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;MacOS 測試&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1.測試自己開的 smb://private_server/share&amp;nbsp; , 順利連接上&lt;br /&gt;2 測試 DataServer smb://public_server/share, 無法連上&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;jCIFS 測試&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1.測試 DataServer smb://public_server/share&amp;nbsp; 無法連上.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;andSmb App 測試&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. 測試 smb://public_server 可以連接上&lt;br /&gt;2. 點選 share 目錄, 無法連接上.&lt;br /&gt;3. 看到還有一個 share$ 目錄, 試試看, 連接上了.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;回頭測試 MacOS and jCIFS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. macos 測試 smb://public_server/share$ 連接上了&lt;br /&gt;2. jCIFS 測試 smb://public_server/share$ 連接上了.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;結論&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1.自已開的Window share Folder 採用一般的 file 就可以&lt;br /&gt;2.Server 分享有權限管制, 要加上file$</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/5328252054928900115/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2013/06/samba-client-file-path.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/5328252054928900115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/5328252054928900115'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2013/06/samba-client-file-path.html' title='Samba client 設定 file path , 需多增加一個$'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-6458496796268362933</id><published>2013-01-07T22:10:00.001+08:00</published><updated>2013-01-07T22:10:35.055+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cakephp"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>[Cakephp] Model Find with SQL &quot;IN&quot;</title><content type='html'>最近有一個需求, 需要將多筆資料一次刪除.&lt;br /&gt;在SQL中, 可以有一個 field in (xxx,xxx,x)的功能.&lt;br /&gt;但在Cakephp 文件中, 並沒有相對地說明. 翻了一下, 找到這一篇&lt;br /&gt;&lt;h2&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;a href=&quot;http://ask.cakephp.org/questions/view/using_the_sql_in_operator_in_cakephp_condition&quot;&gt;Using the SQL &#39;IN&#39; operator in cakephp condition&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;原來只要在 &lt;span style=&quot;font-size: small;&quot;&gt;condition 中, 將一個php array 放入就可以. &lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&#39;conditions&#39; =&amp;gt; array(&#39;Tablename.id&#39; =&amp;gt; $mem_ids)&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;不需要額外宣告 &lt;span style=&quot;font-size: small;&quot;&gt;&quot;IN&quot; 就可以了. &lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt; &lt;/h2&gt;</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/6458496796268362933/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2013/01/cakephp-model-find-with-sql-in.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/6458496796268362933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/6458496796268362933'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2013/01/cakephp-model-find-with-sql-in.html' title='[Cakephp] Model Find with SQL &quot;IN&quot;'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-5986015808819337378</id><published>2013-01-01T08:00:00.000+08:00</published><updated>2013-01-07T22:05:55.755+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="生活雜記"/><title type='text'>[生病] 鼻子有開始流鼻水</title><content type='html'>2013/1/1 今天一早起床, 就留了一堆黃色鼻水.&lt;br /&gt;大概天氣變化太快, 鼻子又不行了</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/5986015808819337378/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2013/01/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/5986015808819337378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/5986015808819337378'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2013/01/blog-post.html' title='[生病] 鼻子有開始流鼻水'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-5563144330819876827</id><published>2012-11-19T16:13:00.001+08:00</published><updated>2012-11-19T16:14:13.596+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="生活雜記"/><title type='text'>[生病] 鼻子有開始流鼻水</title><content type='html'>這兩天, 天氣轉變很大, 從 26度轉成18度.&lt;br /&gt;右邊鼻子又開始鼻塞跟流黃綠色鼻水.&lt;br /&gt;&lt;br /&gt;睡覺起來頭都會痛痛, 因為鼻水積在一起.&lt;br /&gt;等起床後,鼻涕流出來頭又不會痛了.</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/5563144330819876827/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2012/11/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/5563144330819876827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/5563144330819876827'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2012/11/blog-post.html' title='[生病] 鼻子有開始流鼻水'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-2687452985586319976</id><published>2012-11-19T16:10:00.001+08:00</published><updated>2012-11-19T16:27:54.665+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><title type='text'>[Mac] Change Safari Cache to Ramdisk</title><content type='html'>步驟如下&lt;br /&gt;1.&amp;nbsp; 刪除Chrome&amp;nbsp; 的&amp;nbsp; Cache 目錄&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rm -rf ~/Library/Caches/com.apple.safaridavclient&lt;br /&gt;2. 產生 SoftLink to Chrome Cache 目錄&lt;br /&gt;&amp;nbsp; &amp;nbsp; ln -s /Volumes/RamDisk/Safari/Cache ~/Library/Caches/com.apple.Safari&lt;br /&gt;3. 修改 Ramdisk Shell&lt;br /&gt;&amp;nbsp;&amp;nbsp; 因為 &lt;a href=&quot;http://duoenote.blogspot.tw/2010/09/mac-os-x-ramdisk.html&quot;&gt;[ Mac ] OS X 也有免費的 RamDisk 可以用&lt;/a&gt; 只有教你如何產生一個 RamDisk Shell. 就是產生一個目錄 /Volumnes/RamDisk , 但是Safari Cache 我是用 SoftLink 產生, 所以必須在產生 RamDisk 後, 需要幫 Safari 產生所需要的相對路徑.&lt;br /&gt;&lt;br /&gt;下面是紅字部分是新增的.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;do shell script &quot;&lt;br /&gt;if ! test -e /Volumes/RamDisk ;  then&lt;br /&gt;diskutil erasevolume HFS+ RamDisk `hdiutil attach -nomount ram://$((1*512*1024*2))`&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;mkdir -p /Volumes/RamDisk/Chrome/Cache&lt;br /&gt;mkdir -p /Volumes/RamDisk/Safari/Cache&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;fi&lt;br /&gt;&quot;&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/2687452985586319976/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2012/11/mac-change-safari-cache-to-ramdisk.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/2687452985586319976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/2687452985586319976'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2012/11/mac-change-safari-cache-to-ramdisk.html' title='[Mac] Change Safari Cache to Ramdisk'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-7122482622419148990</id><published>2012-11-11T20:00:00.000+08:00</published><updated>2012-11-12T09:48:28.418+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Zafira"/><title type='text'>[Zafira] 20000km 達成</title><content type='html'>過了 20個月, 20000km 達成.&lt;br /&gt;在新營交流道,達成 20000km.&lt;br /&gt; &lt;table style=&quot;width:auto;&quot;&gt;&lt;tr&gt;&lt;td&gt;&lt;img src=&quot;https://lh5.googleusercontent.com/-kqMLOBhkB9g/UKBT6sOGEOI/AAAAAAAAAsk/5bg6API-Lig/s400/2012-11-11%252019.14.06.jpg&quot; height=&quot;300&quot; width=&quot;400&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/7122482622419148990/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2012/11/zafira-20000km.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/7122482622419148990'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/7122482622419148990'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2012/11/zafira-20000km.html' title='[Zafira] 20000km 達成'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://lh5.googleusercontent.com/-kqMLOBhkB9g/UKBT6sOGEOI/AAAAAAAAAsk/5bg6API-Lig/s72-c/2012-11-11%252019.14.06.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-7906206320742042797</id><published>2012-11-01T23:53:00.000+08:00</published><updated>2012-11-01T23:53:07.175+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><title type='text'>[Mac] 修正 hibernate file path </title><content type='html'>剛剛看到有一篇講到,  &lt;a href=&quot;http://www.mobile01.com/topicdetail.php?f=481&amp;amp;t=3025008&amp;amp;last=39536973&quot;&gt;三步驟有效延長 Macbook SSD 的使用壽命&lt;/a&gt;  裡頭有提.&lt;br /&gt;mac 在休眠時, 會將記憶體 image 到硬碟去.&lt;br /&gt;所以當你是 ssd 時,&amp;nbsp; mac 會將資料寫入 /var/vm/sleepimage.&lt;br /&gt;目前, 我是系統採用SSD , 光碟機位置放上一顆 HD.&lt;br /&gt;所以計劃將 sleepimage file 轉到HD 上面, 減少SSD 的存取.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;步驟:&lt;br /&gt;1. 檢查目前 pmset 狀態&lt;br /&gt;2. 修改 hibernatemode 為 0 , 也就是不將記憶體寫入檔案&lt;br /&gt;3. 刪除 /var/vm/sleepimage&lt;br /&gt;4. 修改 hibernatefile 指向我要放的HD 位置&lt;br /&gt;5. 修改 hibernatemode 為3 , 也就是休眠時, 將記憶體寫入檔案.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; 指令&lt;br /&gt;1. $ sudo pmset -g&lt;br /&gt;2. $ sudo pmset -a hibernatemode 0&lt;br /&gt;3. $ sudo rm /var/vm/sleepimage&lt;br /&gt;4. $ sudo pmset -a hibernatefile /Volumes/HD/vm/sleepimage&lt;br /&gt;5. $ sudo pmset -a hibernatemode 3</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/7906206320742042797/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2012/11/mac-hibernate-file-path.html#comment-form' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/7906206320742042797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/7906206320742042797'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2012/11/mac-hibernate-file-path.html' title='[Mac] 修正 hibernate file path '/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-6765260609357052256</id><published>2012-07-31T09:39:00.000+08:00</published><updated>2012-07-31T09:39:18.456+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="愚蠢事蹟"/><title type='text'>遠傳電信 讓人傻眼的方案</title><content type='html'>最近被公司要求辦理 MVPN, 所以得把門號轉到遠傳去. 原本在威寶的門號, 就想要轉出去. 當時計畫是轉去中華電信的預付卡方案, 因為每個月大約只會用到50元的通話費.&lt;br /&gt;&lt;br /&gt;晚上到遠傳直營門市去詢問NP 的方案, 想說電話也沒有打太多, 就用最便宜的月租165就好了. 當下門市小姐跟我說, 現在的方案是 綁約 24個月, 前面12個月 每個月0元, 後面12個月 $165元. 看起來還可以接受, 就說好舊用這一個方案. 小姐在電腦前面打一打, 就跟我說先生不好意思, 剛剛說得方案必須是戶籍登記在中部地區, 新竹縣市不能用這一個方案. 她就去請另外一個小姐過來幫忙, 電腦那邊又敲一敲, 就跟我說那可以用另外一個方案, 一樣縍約24個月, 但是 前面18個月每個月15元, 後面六個月165元, 但是得先預繳 $1200.&lt;br /&gt;&lt;br /&gt;當場算了一下, 原來中部地區被當潘仔海噱了.&lt;br /&gt;方案一 : 中部鄉親特會專案&lt;br /&gt;12 x 0 + 12 x 165 = &lt;span style=&quot;color: red;&quot;&gt;$1980&amp;nbsp;&lt;/span&gt;&lt;br /&gt;方案二 : 全國通用專案&lt;br /&gt;18 x 15 + 6 x 165 = &lt;span style=&quot;color: red;&quot;&gt;$1260&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1980 - 1260 = $720&lt;br /&gt;原來要 中部鄉親 多繳 $720 就是中部特會專. 還好我戶籍在 新竹, 不然 不就多付了720元 還要感謝遠傳給的中部特會專案</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/6765260609357052256/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2012/07/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/6765260609357052256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/6765260609357052256'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2012/07/blog-post.html' title='遠傳電信 讓人傻眼的方案'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-1184818800297847979</id><published>2012-07-19T23:54:00.001+08:00</published><updated>2012-07-20T00:06:47.796+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><title type='text'>[Mac] Change Chrome Cache to RamDisk</title><content type='html'>前幾天已經將Ramdisk 建立好了,接下來就是將應用程式的Cache搬往Ramdisk.&lt;br /&gt;參考過幾篇文章, 都是運用啟動Chrome 時, 給予 Cache Disk 方式. 目前在Mac 下, 我還不會用指令方式打開Chrome , 所以不能用這一個方法.&lt;br /&gt;&lt;a href=&quot;http://go-linux.blogspot.tw/2011/12/ramdisk-tool-on-mac-osx.html&quot;&gt;RAMDisk tool on Mac OS &lt;/a&gt; 這一篇指出用Unix 下的 Soft Link 方式來達成.&lt;br /&gt;&lt;br /&gt;步驟如下&lt;br /&gt;1.&amp;nbsp; 刪除Chrome&amp;nbsp; 的&amp;nbsp; Cache 目錄&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rm -rf ~/Library/Caches/Google/Chrome/Default&lt;br /&gt;2. 產生 SoftLink to Chrome Cache 目錄&lt;br /&gt;&amp;nbsp; &amp;nbsp; ln -s /Volumes/RamDisk/Chrome ~/Library/Caches/Google/Chrome/Default&lt;br /&gt;3. 修改 Ramdisk Shell&lt;br /&gt;&amp;nbsp;&amp;nbsp; 因為 &lt;a href=&quot;http://duoenote.blogspot.tw/2010/09/mac-os-x-ramdisk.html&quot;&gt;[ Mac ] OS X 也有免費的 RamDisk 可以用&lt;/a&gt; 只有教你如何產生一個 RamDisk Shell. 就是產生一個目錄 /Volumnes/RamDisk , 但是Chrome Cache 我是用 SoftLink 產生, 所以必須在產生 RamDisk 後, 需要幫 Chrome 產生所需要的相對路徑.&lt;br /&gt;&lt;br /&gt;下面是紅字部分是新增的.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;do shell script &quot;&lt;br /&gt;if ! test -e /Volumes/RamDisk ;  then&lt;br /&gt;diskutil erasevolume HFS+ RamDisk `hdiutil attach -nomount ram://$((1*512*1024*2))`&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;mkdir -p /Volumes/RamDisk/Chrome/Cache&lt;/span&gt;&lt;br /&gt;fi&lt;br /&gt;&quot;&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/1184818800297847979/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2012/07/mac-change-chrome-cache-to-ramdisk.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/1184818800297847979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/1184818800297847979'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2012/07/mac-change-chrome-cache-to-ramdisk.html' title='[Mac] Change Chrome Cache to RamDisk'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-3252653553161664596</id><published>2012-07-17T00:00:00.003+08:00</published><updated>2012-07-17T00:00:41.665+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><title type='text'>[Mac] RamDisk use Script</title><content type='html'>跟在windows &amp;nbsp;下一樣 , 要用RamDisk 來存放 Browser Cache.&lt;br /&gt;找了下面這一篇來用.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://duoenote.blogspot.tw/2010/09/mac-os-x-ramdisk.html&quot;&gt;[ Mac ] OS X 也有免費的 RamDisk 可以用&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/3252653553161664596/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2012/07/mac-ramdisk-use-script.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/3252653553161664596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/3252653553161664596'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2012/07/mac-ramdisk-use-script.html' title='[Mac] RamDisk use Script'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-7238212340334306823</id><published>2012-07-16T13:39:00.002+08:00</published><updated>2012-07-16T13:39:51.553+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FireFox"/><title type='text'>[Firefox] 變動 Cache 目錄</title><content type='html'>最近在備份自己的 firefox profile, 發現檔案不管是壓縮還是複製都需要很久的時間. 因為裡面也把Cache 的東西給加進去了. 早上找了一下, 採用下列兩篇的作法&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://blog.longwin.com.tw/2009/02/modify-firefox-cache-directory-ram-disk-ie-2009/&quot;&gt;修改 Firefox 預設 cache 目錄路徑&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://dreamerscorp.com/blog/firefox-%E5%8F%83%E6%95%B8%E8%A8%AD%E7%BD%AE-aboutconfig%EF%BC%88%E4%B8%8A%EF%BC%89/&quot;&gt;Firefox 參數設置 about:config&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;原本工作用的電腦就有用 Ramdisk, 所以就把Cache 路徑指向 RamDisk&lt;br /&gt;&lt;br /&gt;作法&lt;br /&gt;1. 在FireFox URL 狀態列輸入 about:config&lt;br /&gt;2. 先找尋關鍵字 &quot;browser.cache.disk.parent_directory&quot;&lt;br /&gt;3. 如果沒有出現, 就按右鍵新增 &quot;字串&quot;:&quot;browser.cache.disk.parent_directory&quot;&lt;br /&gt;4. 內容輸入 &quot;R:\temp\firefox\longtai&quot;&lt;br /&gt;5. 重起 firefox , 並檢查 &quot;R:\temp\firefox\longtai&quot; 有無出現&lt;br /&gt;&lt;br /&gt;用RamDisk 好處是, 關機以後就不會把Cache 存下來. 如果要把 Firefox Profile 同步到 網路硬碟, 這樣也不用把一堆的 Cache 放上去.</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/7238212340334306823/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2012/07/firefox-cache.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/7238212340334306823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/7238212340334306823'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2012/07/firefox-cache.html' title='[Firefox] 變動 Cache 目錄'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-9010169055676256800</id><published>2012-07-03T23:14:00.001+08:00</published><updated>2012-07-03T23:14:13.445+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jboss"/><title type='text'>[jboss] birt viewer on jboss as 7.1.1</title><content type='html'>最近需要在 JBoss AS 上面安裝 birt viewer.&lt;br /&gt;安裝步驟 &lt;br /&gt;1. 從官方網站上下載 runtime package.&lt;br /&gt;2. 解開以後將 WebExample 那個目錄放到 standalone/deploments/ , 並且改名為 birt.war.&lt;br /&gt;3. 新增一個檔案 birt.war.deployed.&lt;br /&gt;4. 編輯 birt.war.deployed, 檔案內容存放 birt.war&lt;br /&gt;5. start jboss standalone&lt;br /&gt;&lt;br /&gt;原本有一個設定 standlone.xml 方法, 但是那樣會造成 jboss 不斷的deploy birt.war</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/9010169055676256800/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2012/07/jboss-birt-viewer-on-jboss-as-711.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/9010169055676256800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/9010169055676256800'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2012/07/jboss-birt-viewer-on-jboss-as-711.html' title='[jboss] birt viewer on jboss as 7.1.1'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-4693490570895079457</id><published>2012-06-28T23:16:00.000+08:00</published><updated>2012-06-28T23:16:01.443+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mantis"/><title type='text'>[Mantis] SMTP 設定</title><content type='html'>最近幫公司的Mantis 主機搬家, 再搬完以後測試過, 所有功能都認為正常. 但是最近User 反應, 都無法接收到 Mantis Email 通知. 實際下去測試後, 發現email 功能真的無法正常運作. 搜尋網路文章以後, 有文章提到Mantis 中, 如果不設定SMTP 發信設定, 會採用PHP Default Mail . 而一般的PHP Mail 會用 主機的Mail 去發送. 可能會遇到的問題有, 一主機沒有 sendmail 之類的 mail server 可供發送, 另外方面就是Mantis 所在主機發送的Mail&amp;nbsp; 被認為垃圾主機, 所以信件會被 filter.&amp;nbsp; 因此建議設定可靠的smtp server 作為發送&amp;nbsp; mail method .&lt;br /&gt;&lt;br /&gt;Mantis SMTP 設定方法.&lt;br /&gt;將下列設定寫入&amp;nbsp; config_inc.php 中&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;$g_phpMailer_method= PHPMAILER_METHOD_SMTP ;&lt;br /&gt;$g_smtp_host= &#39;smtp.xxx.xxx&#39;;&lt;br /&gt;$g_smtp_username = &#39;[smtp account]&#39;;&lt;br /&gt;$g_smtp_password = &#39;[smtp password]&#39;;&lt;br /&gt;$g_smtp_connection_mode = &#39;ssl&#39;;&lt;br /&gt;$g_smtp_port = 25;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/4693490570895079457/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2012/06/mantis-smtp.html#comment-form' title='3 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/4693490570895079457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/4693490570895079457'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2012/06/mantis-smtp.html' title='[Mantis] SMTP 設定'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1850175275414943652.post-4101873974764798691</id><published>2012-06-25T15:15:00.002+08:00</published><updated>2012-06-25T15:59:41.369+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Eclipse"/><title type='text'>[Eclipse] eclipse 3.7 Default Workspace Change</title><content type='html'>在Eclipse 3.7 中出現一個沒辦法設定 Default Workspce 的問題. 當 eclipse&amp;nbsp; 裡頭有&amp;nbsp; A, B 兩組Workspce 時, 不管怎樣設定, 第一次開啟eclipse 都是跑A workspace. 在進入A workspace後 , 再 change workspace to B Workspace 就可以換到&amp;nbsp; B Workspace. 但是, 關掉 Eclipse後, 在開啟Eclipse 就會是進入&amp;nbsp; A Workspace.&amp;nbsp; 就算在 設定 Prompt for workspace on startup, 啟動 eclipse 一樣不會詢問. &lt;br /&gt;&lt;br /&gt;只能用console模式下, 先用 &lt;span style=&quot;background-color: black; color: yellow;&quot;&gt;eclipse -clear&lt;/span&gt; 清除設定後, 才會出現 Prompt for workspace on startup , 重新設定 default workspace on startup.</content><link rel='replies' type='application/atom+xml' href='http://longtai.2twn.com/feeds/4101873974764798691/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://longtai.2twn.com/2012/06/eclipse-eclipse-37-default-workspace.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/4101873974764798691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1850175275414943652/posts/default/4101873974764798691'/><link rel='alternate' type='text/html' href='http://longtai.2twn.com/2012/06/eclipse-eclipse-37-default-workspace.html' title='[Eclipse] eclipse 3.7 Default Workspace Change'/><author><name>長尾巴的魚</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>