<?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-8099251961396579508</id><updated>2025-11-06T18:22:22.991+08:00</updated><category term="程式語言"/><category term="PHP"/><category term="Android"/><category term="01-3 JAVA"/><category term="WEB程式"/><category term="攝影"/><category term="遊戲引擎"/><category term="02 軟體"/><category term="Mac"/><category term="Unity"/><category term="jQuery"/><category term="遊戲開發"/><category term="敗家"/><category term="網頁設計"/><category term="C/C++"/><category term="DATABASE"/><category term="Javascript"/><category term="技巧"/><category term="C#"/><category term="Cocos2D"/><category term="Facebook"/><category term="Game Engine"/><category term="Google API"/><category term="HTML5"/><category term="Mobile Dev"/><category term="OpenGL"/><category term="html"/><category term="iOS開發"/><category term="專題週記"/><category term="ATOM"/><category term="Facebook API"/><category term="GameProgram"/><category term="Google"/><category term="Lua"/><category term="Mobile App"/><category term="MySQL"/><category term="PhoneGap"/><category term="Regular Expression"/><category term="SEO"/><category term="Visuel Studio"/><category term="套件"/><category term="安全性"/><category term="開發理論"/><title type='text'>小伍手札</title><subtitle type='html'>某RD的開發筆記</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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>110</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8099251961396579508.post-4195219301411165921</id><published>2016-10-26T10:24:00.000+08:00</published><updated>2016-10-26T10:29:55.481+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ATOM"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>[php] 在 Mac 用ATOM / Visual Studio Code 為 php debug</title><content type='html'>&lt;br /&gt;
依php版本安裝 xdebug&lt;br /&gt;
&lt;pre&gt;brew install homebrew/php/phpXX-xdebug
&lt;/pre&gt;
&lt;br /&gt;
在 /usr/local/etc/php/{x.y}/conf.d/ext-xdebug.ini) 內加上
&lt;br /&gt;
&lt;pre&gt;xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_connect_back=1    # Not safe for production servers
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart=true
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;ATOM&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
安裝 php-debug package&lt;br /&gt;
https://atom.io/packages/php-debug&lt;br /&gt;
&lt;br /&gt;
用 Atom 打開 php 檔案後插入中斷點，接著選功能表 Packages &amp;gt; PHP-Debug &amp;gt; Toggle Debugging(ctrl + option + D)
&lt;br /&gt;
執行到中斷行就可以了
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;VS Code&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
安裝 PHP Debug&lt;br /&gt;
https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug&lt;br /&gt;
&lt;br /&gt;
用&amp;nbsp;VS Code&amp;nbsp;打開 php 檔案後插入中斷點，接著在畫面左邊選擇debug圖示&lt;br /&gt;
執行到中斷行就可以了&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/4195219301411165921/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2016/10/php-mac-atom-visual-studio-code-php.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/4195219301411165921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/4195219301411165921'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2016/10/php-mac-atom-visual-studio-code-php.html' title='[php] 在 Mac 用ATOM / Visual Studio Code 為 php debug'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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-8099251961396579508.post-4898212164776102366</id><published>2015-12-01T11:27:00.000+08:00</published><updated>2015-12-01T11:32:42.037+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><title type='text'>[Mac] 解決 您要讓應用程式 XXX 接受傳入的網路連接嗎 一直跳出</title><content type='html'>
方法1：
先關掉該app
設定→防火牆→進階→允許名單找到該app移掉
再打開app 同意

方法2：
開啟終端機輸入 (可以先輸入codesign -v 後把app檔拉到終端機畫面會自動產生路徑)
&lt;pre&gt;
codesign -v /Applications/xxx.app
&lt;/pre&gt;
如果會有/Applications/xxx.app: a sealed resource is missing or invalid
就是得把app檔刪掉重新安裝</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/4898212164776102366/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2015/12/mac-xxx.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/4898212164776102366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/4898212164776102366'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2015/12/mac-xxx.html' title='[Mac] 解決 您要讓應用程式 XXX 接受傳入的網路連接嗎 一直跳出'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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-8099251961396579508.post-3585800973223880446</id><published>2015-10-20T15:44:00.000+08:00</published><updated>2015-10-20T15:44:02.067+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>[php] 實作callback</title><content type='html'>&lt;br /&gt;
用名稱呼
&lt;br /&gt;
&lt;pre&gt;function run1($callback)
{
 $callback(&#39;123&#39;);
}

function funA($val)
{
 echo &#39;funA:&#39;.$val;
}

run1(&#39;by run1&#39;);//funA:by run1

&lt;/pre&gt;
用物件傳(推薦)
&lt;br /&gt;
&lt;pre&gt;class ClassB
{
 public function funB($val){
  echo &#39;ClassB:funB:&#39;.$val;
 }
}

function run2(ClassB $callable){
 $callable-&gt;funB(&#39;by run2&#39;);
}

run2(new ClassB());//ClassB:funB:by run2
&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/3585800973223880446/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2015/10/php-callback.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/3585800973223880446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/3585800973223880446'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2015/10/php-callback.html' title='[php] 實作callback'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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-8099251961396579508.post-6260724062324954444</id><published>2015-06-25T15:21:00.003+08:00</published><updated>2015-06-25T15:21:43.206+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>[Android] setClickListener in custom view</title><content type='html'>直接設 setClickListener 沒反應&lt;br /&gt;
要加上&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;    private OnClickListener listener;

    @Override
    public boolean dispatchTouchEvent(MotionEvent event) {
        if(event.getAction() == MotionEvent.ACTION_UP) {
            if(listener != null) listener.onClick(this);
        }
        return super.dispatchTouchEvent(event);
    }


    @Override
    public boolean dispatchKeyEvent(KeyEvent event) {
        if(event.getAction() == KeyEvent.ACTION_UP &amp;amp;&amp;amp; (event.getKeyCode() == KeyEvent.KEYCODE_DPAD_CENTER || event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) {
            if(listener != null) listener.onClick(this);
        }
        return super.dispatchKeyEvent(event);
    }

    @Override
    public void setOnClickListener(OnClickListener listener) {
        this.listener = listener;
    }
&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/6260724062324954444/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2015/06/android-setclicklistener-in-custom-view.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/6260724062324954444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/6260724062324954444'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2015/06/android-setclicklistener-in-custom-view.html' title='[Android] setClickListener in custom view'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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-8099251961396579508.post-2121583567408819401</id><published>2015-06-04T11:43:00.004+08:00</published><updated>2015-06-04T11:43:55.944+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>解決 Error:Execution failed for task &#39;preDexDebug&#39;. &gt; com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process &#39;command  finished with non-zero exit value 1</title><content type='html'>解決 Error:Execution failed for task &#39;preDexDebug&#39;. &amp;gt; com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process &#39;command &amp;nbsp;finished with non-zero exit value 1&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;檢查 用到的 jar libs 內是不是有重復到的元件&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
support v4 之類的最容易衝到&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;檢查 做jar時的jdk是不是夠高&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
有些像&amp;lt;&amp;gt; &amp;nbsp;catch中直接 catch(InterruptedException | InterruptedException e)&lt;br /&gt;
要用到jdk 1.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;檢查 做jar時的jdk是不是太高&lt;/li&gt;
&lt;/ul&gt;
jar用1.8&lt;br /&gt;
project 只用1.7時&lt;br /&gt;
考慮jar重包成1.7以下或project升級成1.8以上&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/2121583567408819401/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2015/06/errorexecution-failed-for-task.html#comment-form' title='3 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/2121583567408819401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/2121583567408819401'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2015/06/errorexecution-failed-for-task.html' title='解決 Error:Execution failed for task &#39;preDexDebug&#39;. &gt; com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process &#39;command  finished with non-zero exit value 1'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8099251961396579508.post-9136030234395875024</id><published>2015-05-15T10:56:00.000+08:00</published><updated>2015-05-15T11:03:35.337+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>[Android] 下拉更新 SwipeRefreshLayout</title><content type='html'>&lt;h3&gt;Layout Xml&lt;/h3&gt;
&lt;pre&gt;
                &amp;#x3C;android.support.v4.widget.SwipeRefreshLayout
                    android:id=&amp;#x22;@+id/laySwipe&amp;#x22;
                    android:layout_width=&amp;#x22;match_parent&amp;#x22;
                    android:layout_height=&amp;#x22;match_parent&amp;#x22; &amp;#x3E;

                        &amp;#x3C;ListView
                            ... /&amp;#x3E;
                &amp;#x3C;/android.support.v4.widget.SwipeRefreshLayout&amp;#x3E;
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;Java Code&lt;/h3&gt;
&lt;pre&gt;
OnRefreshListener onSwipeToRefresh = new OnRefreshListener() {
        @Override
        public void onRefresh() {
            laySwipe.setRefreshing(true);
            //dosomething
            laySwipe.setRefreshing(false);
        }
    };

((SwipeRefreshLayout)findViewById(R.id.laySwipe)).setOnRefreshListener(onSwipeToRefresh);


&lt;/pre&gt;

&lt;p&gt;幫listview補上下面的code避免滑動衝突&lt;/p&gt;
&lt;pre&gt;

    private OnScrollListener onListScroll = new OnScrollListener() {

        @Override
        public void onScrollStateChanged(AbsListView view, int scrollState) {

        }

        @Override
        public void onScroll(AbsListView view, int firstVisibleItem,
                int visibleItemCount, int totalItemCount) {
            if (firstVisibleItem == 0) {
                laySwipe.setEnabled(true);
            }else{
                laySwipe.setEnabled(false);
            }
        }
    };
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/9136030234395875024/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2015/05/android-wiperefreshlayout.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/9136030234395875024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/9136030234395875024'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2015/05/android-wiperefreshlayout.html' title='[Android] 下拉更新 SwipeRefreshLayout'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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-8099251961396579508.post-4357199933387027883</id><published>2015-04-21T12:20:00.000+08:00</published><updated>2015-04-21T12:20:47.876+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>[Android] 處理 Can&#39;t create handler inside thread that has not called Looper.prepare()</title><content type='html'>&lt;br /&gt;
因為 UI 操作不能在其它 thread 做&lt;br /&gt;
直接用 activity 提供的 runOnUiThread 做掉
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;runOnUiThread(new Runnable(){ public void run(){ 
    //原本會報錯的ui操作
});
&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/4357199933387027883/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2015/04/android-cant-create-handler-inside.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/4357199933387027883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/4357199933387027883'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2015/04/android-cant-create-handler-inside.html' title='[Android] 處理 Can&#39;t create handler inside thread that has not called Looper.prepare()'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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-8099251961396579508.post-2793191532570180768</id><published>2014-08-21T17:49:00.000+08:00</published><updated>2014-08-23T14:13:58.160+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unity"/><category scheme="http://www.blogger.com/atom/ns#" term="遊戲開發"/><title type='text'>[Unity] uGUI (4.6) EventSystem 事件系統 快速上手</title><content type='html'>4.6 新進的 EventSystem 事件系統 可以用在 UI 事件外也可以用在普通的 GameObject&lt;br&gt;
終於不用自已打射線偵測點擊了&lt;br&gt;
&lt;br&gt;
環境 4.6.0b17 因為才beta版所以變動的機率很大&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;對 UI 偵聽事件：&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;
這邊先用 Image 試&lt;br&gt;
&lt;a href=&quot;http://gonex45.blogspot.com/2014/08/unity-ugui-46-eventsystem.html#more&quot;&gt;閱讀全文 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/2793191532570180768/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2014/08/unity-ugui-46-eventsystem.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/2793191532570180768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/2793191532570180768'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2014/08/unity-ugui-46-eventsystem.html' title='[Unity] uGUI (4.6) EventSystem 事件系統 快速上手'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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-8099251961396579508.post-5340210900758446907</id><published>2014-06-23T01:45:00.000+08:00</published><updated>2014-06-26T09:48:23.687+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cocos2D"/><category scheme="http://www.blogger.com/atom/ns#" term="遊戲引擎"/><category scheme="http://www.blogger.com/atom/ns#" term="遊戲開發"/><title type='text'>[Cocos2d-x] 在 Mac 上設置 Cocos2d-x (Cocos2d-x 3 .x)</title><content type='html'>&lt;br&gt;
&lt;br&gt;
環境 OSX 10.9 , Cocos2d-x 3.2&lt;br&gt;
&lt;br&gt;
下載Cocos2d-x http://cocos2d-x.org/download&lt;br&gt;
&lt;a href=&quot;http://gonex45.blogspot.com/2014/06/cocos2d-x-install-mac.html#more&quot;&gt;閱讀全文 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/5340210900758446907/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2014/06/cocos2d-x-install-mac.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/5340210900758446907'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/5340210900758446907'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2014/06/cocos2d-x-install-mac.html' title='[Cocos2d-x] 在 Mac 上設置 Cocos2d-x (Cocos2d-x 3 .x)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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-8099251961396579508.post-5631359122121273117</id><published>2014-04-29T09:54:00.000+08:00</published><updated>2014-04-30T15:38:11.336+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mobile Dev"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenGL"/><category scheme="http://www.blogger.com/atom/ns#" term="Unity"/><title type='text'>[Unity] Assetbundle Shader 遺失的解決方案</title><content type='html'>物件打包成 AssetBundle 後有的物件上的材質的shader 會 lost 變一塊紫色&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;//assetbundle後shader會lost的處理
gameObject.renderer.material.shader =  Shader.Find(gameObject.renderer.material.shader.name); 
&lt;/pre&gt;
&lt;br /&gt;
或是&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;    using UnityEngine;
    using System.Collections;
    public class ApplyShader : MonoBehaviour 
    {
        private Material[] thisMaterial;
        private string[] shaders;
        void Start () {
            thisMaterial = this.renderer.sharedMaterials;             
            shaders =  new string[thisMaterial.Length];
            for( int i = 0; i &amp;lt; thisMaterial.Length; i++){
                shaders[i] = thisMaterial[i].shader.name;
            }    

            for( int i = 0; i &amp;lt; thisMaterial.Length; i++){
                thisMaterial[i].shader = Shader.Find(shaders[i]);  
            }
        }
    }
&lt;/pre&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/5631359122121273117/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2014/04/unity-assetbundle-shader-lost.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/5631359122121273117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/5631359122121273117'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2014/04/unity-assetbundle-shader-lost.html' title='[Unity] Assetbundle Shader 遺失的解決方案'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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-8099251961396579508.post-5607997689595224217</id><published>2014-03-21T22:28:00.001+08:00</published><updated>2014-03-21T22:28:49.844+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><category scheme="http://www.blogger.com/atom/ns#" term="WEB程式"/><title type='text'>[MAC]  在 MAC 上安裝 nginx</title><content type='html'>安裝 Homebrew
&lt;br /&gt;
&lt;pre&gt;ruby -e &quot;$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)&quot;
&lt;/pre&gt;
安裝 nginx
&lt;br /&gt;
&lt;pre&gt;brew install nginx
&lt;/pre&gt;
讓 nginx 在登入時自動載入
&lt;br /&gt;
&lt;pre&gt;ln -sfv /usr/local/opt/nginx/*.plist ~/Library/LaunchAgents
&lt;/pre&gt;
立刻載入
&lt;br /&gt;
&lt;pre&gt;launchctl load ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist
&lt;/pre&gt;
或
&lt;br /&gt;
&lt;pre&gt;sudo nginx
&lt;/pre&gt;
網頁根目錄
&lt;br /&gt;
&lt;pre&gt;/usr/local/var/www
&lt;/pre&gt;
nginx 的設定檔
&lt;br /&gt;
&lt;pre&gt;/usr/local/etc/nginx/nginx.conf
&lt;/pre&gt;


關掉 apache
&lt;pre&gt;
sudo apachectl stop
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/5607997689595224217/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2014/03/mac-mac-nginx.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/5607997689595224217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/5607997689595224217'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2014/03/mac-mac-nginx.html' title='[MAC]  在 MAC 上安裝 nginx'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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-8099251961396579508.post-1759077542208083860</id><published>2014-02-21T10:28:00.000+08:00</published><updated>2014-02-21T10:28:10.498+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS開發"/><title type='text'>[iOS開發] 在 Xcode5 點兩下檔案開在 Tab 不開新視窗</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDRv6AeKHoQAPD7hghg9uLPXNMFvWbM6fsdbdDnsFR2qNeSOH5rgsnX1PudV6Q0KMXowopyBTPbC1GoENN0OA8RVy0BUoSJEsmvbQQpGWkfvFpq3nw4NVJ3F9C3Znam-x-TyuC0dTLNac/s1600/Navigation.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDRv6AeKHoQAPD7hghg9uLPXNMFvWbM6fsdbdDnsFR2qNeSOH5rgsnX1PudV6Q0KMXowopyBTPbC1GoENN0OA8RVy0BUoSJEsmvbQQpGWkfvFpq3nw4NVJ3F9C3Znam-x-TyuC0dTLNac/s320/Navigation.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Preferences &amp;gt; Navigation &amp;gt; Double Click Navigation 選 Uses Separate Tab&lt;br /&gt;
就不會點兩下檔案又開在新視窗了</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/1759077542208083860/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2014/02/ios-xocde-tab-no-new-window.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/1759077542208083860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/1759077542208083860'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2014/02/ios-xocde-tab-no-new-window.html' title='[iOS開發] 在 Xcode5 點兩下檔案開在 Tab 不開新視窗'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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/AVvXsEiDRv6AeKHoQAPD7hghg9uLPXNMFvWbM6fsdbdDnsFR2qNeSOH5rgsnX1PudV6Q0KMXowopyBTPbC1GoENN0OA8RVy0BUoSJEsmvbQQpGWkfvFpq3nw4NVJ3F9C3Znam-x-TyuC0dTLNac/s72-c/Navigation.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8099251961396579508.post-2620770394725287368</id><published>2014-02-20T10:19:00.000+08:00</published><updated>2014-02-20T11:19:52.472+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS開發"/><title type='text'>[iOS開發] UIImageView 加點擊範例</title><content type='html'>簡單的讓 UIImageView 變成 ImageButton

imgBtn.png 放在 Resources 資料夾
&lt;br /&gt;
&lt;pre&gt;
//生成 UIImage 並指定圖片
UIImage *image = [UIImage imageNamed:@&quot;imgBtn.png&quot;];
UIImageView *iv = [[UIImageView alloc] initWithImage:image];
//指定位置 x,y,width,height
iv.frame = CGRectMake(10, 10, image.size.width, image.size.height);

//讓 UIImage 能接受使用者事件
iv.userInteractionEnabled = YES;

//UITapGestureRecognizer 是觸控控制類
UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapDetected)];
singleTap.numberOfTapsRequired = 1;
[iv addGestureRecognizer:singleTap];

[self.view addSubview:iv];

-(void)tapDetected{
  NSLog(@&quot;Click!!&quot;);
}
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/2620770394725287368/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2014/02/ios-uiimageview.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/2620770394725287368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/2620770394725287368'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2014/02/ios-uiimageview.html' title='[iOS開發] UIImageView 加點擊範例'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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-8099251961396579508.post-1253281578366855079</id><published>2014-02-19T12:20:00.002+08:00</published><updated>2014-02-19T12:20:40.088+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><title type='text'>[Mac] F8~F11 失效</title><content type='html'>&lt;br /&gt;
最近工作時常常要按 f11 時按沒有&lt;br /&gt;
&lt;br /&gt;
打開終端機&lt;br /&gt;
&lt;pre&gt;
killall Dock
&lt;/pre&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/1253281578366855079/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2014/02/mac-f8f11.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/1253281578366855079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/1253281578366855079'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2014/02/mac-f8f11.html' title='[Mac] F8~F11 失效'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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-8099251961396579508.post-3331927269790575161</id><published>2014-02-16T12:37:00.000+08:00</published><updated>2014-02-16T23:49:38.799+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>[Android] 開啟另一個Activity</title><content type='html'>&lt;br&gt;
開啟另一個Activity ( A 呼 B&lt;br&gt;
&lt;pre&gt;Intent intent = new Intent();
intent.setClass(A.this, B.class);
startActivity(intent);&lt;/pre&gt;
&lt;br&gt;
不同 Activity 之間傳值&lt;br&gt;
&lt;a href=&quot;http://gonex45.blogspot.com/2014/02/android-activity.html#more&quot;&gt;閱讀全文 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/3331927269790575161/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2014/02/android-activity.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/3331927269790575161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/3331927269790575161'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2014/02/android-activity.html' title='[Android] 開啟另一個Activity'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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-8099251961396579508.post-5691775805559618390</id><published>2014-02-14T23:40:00.001+08:00</published><updated>2014-02-14T23:41:27.375+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C/C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Cocos2D"/><category scheme="http://www.blogger.com/atom/ns#" term="程式語言"/><category scheme="http://www.blogger.com/atom/ns#" term="遊戲引擎"/><category scheme="http://www.blogger.com/atom/ns#" term="遊戲開發"/><title type='text'>[Cocos2D] 在文字旁加上黑邊 CCLabelTTF and CCSprite</title><content type='html'>&lt;br /&gt;
&lt;pre&gt; static CCRenderTexture* createStroke(CCSprite* label, int size, ccColor3B color, GLubyte opacity)
 {
   
   CCRenderTexture* rt = CCRenderTexture::create(label-&amp;gt;getTexture()-&amp;gt;getContentSize().width + size * 2,
       label-&amp;gt;getTexture()-&amp;gt;getContentSize().height+size * 2);
   CCPoint originalPos = label-&amp;gt;getPosition();
   
   ccColor3B originalColor = label-&amp;gt;getColor();
   
   GLubyte originalOpacity = label-&amp;gt;getOpacity();
   
   label-&amp;gt;setColor(color);
   
   label-&amp;gt;setOpacity(opacity);
   
   bool originalVisibility = label-&amp;gt;isVisible();
   
   ccBlendFunc originalBlend = label-&amp;gt;getBlendFunc();
   
   ccBlendFunc bf = {GL_SRC_ALPHA, GL_ONE};
   
   label-&amp;gt;setBlendFunc(bf);
   
   CCPoint bottomLeft = ccp(
       label-&amp;gt;getTexture()-&amp;gt;getContentSize().width * label-&amp;gt;getAnchorPoint().x + size,
       label-&amp;gt;getTexture()-&amp;gt;getContentSize().height * label-&amp;gt;getAnchorPoint().y + size);
   
 //原來沒有判斷AnchorPoint的寫法
 //  CCPoint positionOffset= ccp(   - label-&amp;gt;getTexture()-&amp;gt;getContentSize().width / 2,
 //                                  - label-&amp;gt;getTexture()-&amp;gt;getContentSize().height / 2);
   
 //SetAnchorPoint會影響到positionOffset，所以要做判斷
   CCPoint positionOffset = CCPointZero;
   if(label-&amp;gt;getAnchorPoint().x == 0.5f){
       positionOffset.x = 0;
   }else if(label-&amp;gt;getAnchorPoint().x == 0.0f){
       positionOffset.x =- label-&amp;gt;getTexture()-&amp;gt;getContentSize().width / 2;
   }else{
       positionOffset.x = label-&amp;gt;getTexture()-&amp;gt;getContentSize().width/2;
   }
   if(label-&amp;gt;getAnchorPoint().y == 0.5f){
       positionOffset.y = 0;
   }else if(label-&amp;gt;getAnchorPoint().y == 0.0f){
       positionOffset.y =- label-&amp;gt;getTexture()-&amp;gt;getContentSize().height / 2;
   }else{
       positionOffset.y =  label-&amp;gt;getTexture()-&amp;gt;getContentSize().height/2;
   }
   
   CCPoint position = ccpSub(originalPos, positionOffset);
   
   rt-&amp;gt;begin();
   
   for (int i=0; i&lt;360 data-blogger-escaped-for=&quot;&quot; data-blogger-escaped-i=&quot;&quot; data-blogger-escaped-label-=&quot;&quot; data-blogger-escaped-needs=&quot;&quot; data-blogger-escaped-optimize=&quot;&quot; data-blogger-escaped-should=&quot;&quot; data-blogger-escaped-that=&quot;&quot; data-blogger-escaped-you=&quot;&quot; data-blogger-escaped-your=&quot;&quot;&gt;setPosition(
       ccp(bottomLeft.x + sin(CC_DEGREES_TO_RADIANS(i))*size, bottomLeft.y + cos(CC_DEGREES_TO_RADIANS(i))*size)
       );
       label-&amp;gt;visit();
   }
   rt-&amp;gt;end();
   
   label-&amp;gt;setPosition(originalPos);
   label-&amp;gt;setColor(originalColor);
   label-&amp;gt;setBlendFunc(originalBlend);
   label-&amp;gt;setVisible(originalVisibility);
   label-&amp;gt;setOpacity(originalOpacity);
   
   rt-&amp;gt;setPosition(position);
 //反踞齒
   rt-&amp;gt;getSprite()-&amp;gt;getTexture()-&amp;gt;setAntiAliasTexParameters();
   
   return rt;
}

&lt;!--360--&gt;&lt;!--360--&gt;&lt;/360&gt;&lt;/pre&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/5691775805559618390/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2014/02/cocos2d-stroke-example-for-cclabelttf.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/5691775805559618390'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/5691775805559618390'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2014/02/cocos2d-stroke-example-for-cclabelttf.html' title='[Cocos2D] 在文字旁加上黑邊 CCLabelTTF and CCSprite'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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-8099251961396579508.post-5920389252079541586</id><published>2014-02-10T15:02:00.000+08:00</published><updated>2014-02-10T15:02:22.128+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="程式語言"/><title type='text'>[C#] 一次一行讀取文字檔</title><content type='html'>這個範例會使用 StreamReader 類別的 ReadLine 方法，將文字檔的內容一次一行讀入字串中。每一個文字行都會儲存到字串 line 中並顯示在螢幕上。&lt;br&gt;
&lt;br&gt;
範例&lt;br&gt;
&lt;a href=&quot;http://gonex45.blogspot.com/2014/02/Csharp-Read-Text-File-One-Line-Time.html#more&quot;&gt;閱讀全文 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/5920389252079541586/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2014/02/Csharp-Read-Text-File-One-Line-Time.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/5920389252079541586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/5920389252079541586'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2014/02/Csharp-Read-Text-File-One-Line-Time.html' title='[C#] 一次一行讀取文字檔'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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-8099251961396579508.post-2004661161655026691</id><published>2014-02-07T00:52:00.000+08:00</published><updated>2014-02-07T00:52:21.569+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unity"/><title type='text'>[Unity] 各平台檔案路徑 Path</title><content type='html'>&lt;br&gt;
Unity 各平台檔案路徑 Path&lt;br&gt;
&lt;br&gt;
Application.dataPath&lt;br&gt;
包含遊戲資料文件夾的路徑&lt;br&gt;
只可讀，放置一些資源資料&lt;br&gt;
&lt;br&gt;
&lt;pre&gt;OSX:       ProjectPath/Assets/
Android:   /data/app/xxx.xxx.xxx-1.apk
iOS:       Application/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/xxx.app/Data&lt;/pre&gt;&lt;a href=&quot;http://gonex45.blogspot.com/2014/02/unity-platform-file-path.html#more&quot;&gt;閱讀全文 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/2004661161655026691/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2014/02/unity-platform-file-path.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/2004661161655026691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/2004661161655026691'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2014/02/unity-platform-file-path.html' title='[Unity] 各平台檔案路徑 Path'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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-8099251961396579508.post-7548052304170096756</id><published>2014-02-07T00:41:00.001+08:00</published><updated>2014-02-07T01:07:38.563+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="程式語言"/><title type='text'>[php] array</title><content type='html'>&lt;br&gt;
宣告類&lt;br&gt;
&lt;div&gt;
&lt;br&gt;
&lt;div&gt;
單維&lt;br&gt;
$arr = array(&amp;quot;orange&amp;quot;, &amp;quot;banana&amp;quot;); &lt;/div&gt;
&lt;div&gt;
//
$arr[1]=
&amp;quot;banana&amp;quot;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;a href=&quot;http://gonex45.blogspot.com/2014/02/php-array.html#more&quot;&gt;閱讀全文 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/7548052304170096756/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2014/02/php-array.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/7548052304170096756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/7548052304170096756'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2014/02/php-array.html' title='[php] array'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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-8099251961396579508.post-4332882054597403218</id><published>2014-02-07T00:39:00.000+08:00</published><updated>2014-02-11T00:20:17.675+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unity"/><category scheme="http://www.blogger.com/atom/ns#" term="遊戲開發"/><title type='text'>[Unity] File Download 檔案下載</title><content type='html'>搭配 AssetBundle 可以實現更新 patch 機制&lt;br&gt;
就不用什麼都包進 exe / apk / ipa 裡&lt;br&gt;
&lt;a href=&quot;http://gonex45.blogspot.com/2014/02/unity-file-download.html#more&quot;&gt;閱讀全文 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/4332882054597403218/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2014/02/unity-file-download.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/4332882054597403218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/4332882054597403218'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2014/02/unity-file-download.html' title='[Unity] File Download 檔案下載'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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-8099251961396579508.post-6583142022760561473</id><published>2014-02-05T17:39:00.001+08:00</published><updated>2014-03-24T10:24:17.746+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unity"/><category scheme="http://www.blogger.com/atom/ns#" term="技巧"/><category scheme="http://www.blogger.com/atom/ns#" term="遊戲引擎"/><category scheme="http://www.blogger.com/atom/ns#" term="遊戲開發"/><category scheme="http://www.blogger.com/atom/ns#" term="開發理論"/><title type='text'>[遊戲開發] Unity Cocos2D 防作弊 遊戲修改大師、八門神器</title><content type='html'>&lt;div style=&quot;border: 0px; font-family: Helvetica, Arial, &amp;#39;Droid Sans&amp;#39;, sans-serif; font-size: 14px; line-height: 1.428571em; margin: 0px; padding: 0px;&quot;&gt;
&lt;strike&gt;我在玩遊戲時遇到能改的我也會偷改…誰叫他期間限定又設的超難!&lt;/strike&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-family: Helvetica, Arial, &amp;#39;Droid Sans&amp;#39;, sans-serif; font-size: 14px; line-height: 1.428571em; margin: 0px; padding: 0px;&quot;&gt;
&lt;br&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-family: Helvetica, Arial, &amp;#39;Droid Sans&amp;#39;, sans-serif; font-size: 14px; line-height: 1.428571em; margin: 0px; padding: 0px;&quot;&gt;
總之為了大宗玩家&lt;span style=&quot;line-height: 1.428571em;&quot;&gt;必需&lt;/span&gt;&lt;span style=&quot;line-height: 1.428571em;&quot;&gt;維持公平性&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;line-height: 1.428571em;&quot;&gt;有付錢買裝的人比一般人強，但會改數值的人沒花錢可是無敵…&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;line-height: 1.428571em;&quot;&gt;叫付錢玩家怎再繼續花錢呢&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-family: Helvetica, Arial, &amp;#39;Droid Sans&amp;#39;, sans-serif; font-size: 14px; line-height: 1.428571em; margin: 0px; padding: 0px;&quot;&gt;
&lt;br class=&quot;Apple-interchange-newline&quot;&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/AVvXsEjE6vJsNiejjyNDhdg-3AW651OSHSRiJ-dxrwRwgYsw5hWDyJ7Fay6Wgz9ob1dbdpr4_c8kxipdypjt0gWJNpvsOZiNeZ1jlCHlDw8dtmRcrHuIbHjn2skCDMBPoOBF7Pz-pC9PLhPBY2Tp/s1600/1305878353_nocheat.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE6vJsNiejjyNDhdg-3AW651OSHSRiJ-dxrwRwgYsw5hWDyJ7Fay6Wgz9ob1dbdpr4_c8kxipdypjt0gWJNpvsOZiNeZ1jlCHlDw8dtmRcrHuIbHjn2skCDMBPoOBF7Pz-pC9PLhPBY2Tp/s1600/1305878353_nocheat.jpg&quot; height=&quot;320&quot; width=&quot;320&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;br&gt;
一、不斷換記憶體位址&lt;br&gt;
&lt;/div&gt;&lt;a href=&quot;http://gonex45.blogspot.com/2014/02/game-dev-cheat-guard.html#more&quot;&gt;閱讀全文 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/6583142022760561473/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2014/02/game-dev-cheat-guard.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/6583142022760561473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/6583142022760561473'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2014/02/game-dev-cheat-guard.html' title='[遊戲開發] Unity Cocos2D 防作弊 遊戲修改大師、八門神器'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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/AVvXsEjE6vJsNiejjyNDhdg-3AW651OSHSRiJ-dxrwRwgYsw5hWDyJ7Fay6Wgz9ob1dbdpr4_c8kxipdypjt0gWJNpvsOZiNeZ1jlCHlDw8dtmRcrHuIbHjn2skCDMBPoOBF7Pz-pC9PLhPBY2Tp/s72-c/1305878353_nocheat.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8099251961396579508.post-535499119683650968</id><published>2014-02-03T14:44:00.002+08:00</published><updated>2014-03-25T01:27:24.317+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><title type='text'>[Mac] 我的 Mac APP 清單</title><content type='html'>&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/AVvXsEhMuA81LDpRiVcYj4MDqf_tOgu5siVBIsMNGzsruYSvwfqAkw78Ktx0xb0FAl8RTDOxqY11nMaFQ-z7wrUkItkPO7gN7Y0zrK3Dr6YBmijid_klr58_l5KodMjLEXwSYLPczl87YQ415-c/s1600/mac-app-store.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMuA81LDpRiVcYj4MDqf_tOgu5siVBIsMNGzsruYSvwfqAkw78Ktx0xb0FAl8RTDOxqY11nMaFQ-z7wrUkItkPO7gN7Y0zrK3Dr6YBmijid_klr58_l5KodMjLEXwSYLPczl87YQ415-c/s1600/mac-app-store.png&quot; height=&quot;200&quot; width=&quot;200&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;The Unarchiver&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;font-family: Arial; font-size: 13px;&quot;&gt;免費的 Mac OS X 檔案壓縮程式&lt;/span&gt;&lt;br&gt;
&lt;a href=&quot;http://gonex45.blogspot.com/2014/02/mac-mac-app.html#more&quot;&gt;閱讀全文 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/535499119683650968/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2014/02/mac-mac-app.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/535499119683650968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/535499119683650968'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2014/02/mac-mac-app.html' title='[Mac] 我的 Mac APP 清單'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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/AVvXsEhMuA81LDpRiVcYj4MDqf_tOgu5siVBIsMNGzsruYSvwfqAkw78Ktx0xb0FAl8RTDOxqY11nMaFQ-z7wrUkItkPO7gN7Y0zrK3Dr6YBmijid_klr58_l5KodMjLEXwSYLPczl87YQ415-c/s72-c/mac-app-store.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8099251961396579508.post-4134182833138885934</id><published>2014-01-27T01:24:00.000+08:00</published><updated>2014-02-06T13:39:49.935+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="GameProgram"/><category scheme="http://www.blogger.com/atom/ns#" term="Lua"/><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><title type='text'>[Mac] 讓 Xcode 支援 Lua 語法高亮(Syntax Highlighting)</title><content type='html'>讓 Xcode 支援 Lua 語法高亮(Syntax Highlighting)&lt;br&gt;
&lt;br&gt;
1.&lt;br&gt;
下載&lt;br&gt;
&lt;a href=&quot;https://github.com/breinhart/Lua-In-Xcode&quot;&gt;https://github.com/breinhart/Lua-In-Xcode&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://gonex45.blogspot.com/2014/01/mac-xcode-lua-syntax-highlighting.html#more&quot;&gt;閱讀全文 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/4134182833138885934/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2014/01/mac-xcode-lua-syntax-highlighting.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/4134182833138885934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/4134182833138885934'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2014/01/mac-xcode-lua-syntax-highlighting.html' title='[Mac] 讓 Xcode 支援 Lua 語法高亮(Syntax Highlighting)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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-8099251961396579508.post-9128465600659809875</id><published>2012-09-05T17:53:00.002+08:00</published><updated>2014-02-03T14:44:49.906+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><title type='text'>[jQuery] 判斷 checkbox 是否被選取</title><content type='html'>&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;$(&#39;#chkbox01&#39;).is(&#39;:checked&#39;);
&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/9128465600659809875/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2012/09/jquery-checkbox-checked.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/9128465600659809875'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/9128465600659809875'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2012/09/jquery-checkbox-checked.html' title='[jQuery] 判斷 checkbox 是否被選取'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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-8099251961396579508.post-794788208682725658</id><published>2012-07-31T10:51:00.002+08:00</published><updated>2012-07-31T10:52:46.810+08:00</updated><title type='text'>[Android] strong App2SD</title><content type='html'>&lt;pre&gt;
android-sdk-windows\tools
adb shell pm setInstallLocation 2
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://gonex45.blogspot.com/feeds/794788208682725658/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://gonex45.blogspot.com/2012/07/android-strong-app2sd.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/794788208682725658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8099251961396579508/posts/default/794788208682725658'/><link rel='alternate' type='text/html' href='http://gonex45.blogspot.com/2012/07/android-strong-app2sd.html' title='[Android] strong App2SD'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10729081968607353662</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>