<?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-7089112285269738574</id><updated>2024-11-05T18:52:32.210-08:00</updated><category term="作業"/><category term="matlab"/><category term="php"/><category term="ubuntu"/><category term="Arch linux"/><category term="android"/><category term="javascript"/><category term="8051"/><category term="java"/><category term="game"/><category term="yii"/><category term="CodeIgniter"/><category term="Greasemonkey"/><category term="JavaFX"/><category term="c++"/><category term="gnome"/><category term="jquery"/><category term="lua"/><category term="mac"/><category term="opengl"/><category term="osx"/><category term="攝影"/><category term="腳本"/><category term="Laravel"/><category term="ROR"/><category term="Zend Framework"/><category term="apache"/><category term="dropbox"/><category term="git"/><category term="hero"/><category term="html"/><category term="libgdx"/><category term="life"/><category term="mysql"/><category term="shell bash"/><category term="stepmania"/><category term="tool"/><category term="veryLittlePHP"/><category term="軟體"/><category term="電影"/><title type='text'>Golden Cake</title><subtitle type='html'>不再妥協。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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>68</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7089112285269738574.post-5680702059071994184</id><published>2015-02-08T23:01:00.001-08:00</published><updated>2015-02-08T23:03:08.900-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="osx"/><title type='text'>【OSX】osx10.10  sb x-fi surround 5.1 pro 解決音量控制 </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
sb x-fi surround 5.1 pro &amp;nbsp;在OSX 是不支援 硬體音量旋轉鈕控制，&lt;br /&gt;而且連 電腦內部的 音量控制也無法設定大小聲。&lt;br /&gt;不過可以透過 soundflower 和 au lab 來進行橋接的方式，&lt;br /&gt;電腦內部音量控制啓用。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;下載 https://code.google.com/p/soundflower/&lt;/li&gt;
&lt;li&gt;下載 https://developer.apple.com/downloads/index.action#&lt;/li&gt;
&lt;li&gt;Audio Tools for Xcode - Xcode 6.1&lt;/li&gt;
&lt;li&gt;安裝 重開&lt;/li&gt;
&lt;li&gt;開啓 au lab 選項 Stereo in/stereo out&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;Audio input device: Soundflower&lt;/li&gt;
&lt;li&gt;Audio output device: SB X-FI&lt;/li&gt;
&lt;li&gt;Create Document&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;聲音輸出 選擇 Soundflower&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span id=&quot;docs-internal-guid-b21fea04-6d21-e7d2-b569-63a704adaa38&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 12px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span id=&quot;docs-internal-guid-b21fea04-6d22-5d81-3677-da7b3c91d51d&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;img height=&quot;618px;&quot; src=&quot;https://lh6.googleusercontent.com/IyPugw2Svf8hpVQmD44OPBDSg1I5Mcy_24NMM-OoNFlThRPTCcE2fwHN21MsdMFkSQhci8rCjVMr_P78vMuyq0fIsA51wfyGD0QJk19HJ44FC52SgM2I13zJmKAyV6VNGLc&quot; style=&quot;-webkit-transform: rotate(0rad); border: none; transform: rotate(0rad);&quot; width=&quot;608px;&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/5680702059071994184/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/5680702059071994184' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/5680702059071994184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/5680702059071994184'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2015/02/osxosx1010-sb-x-fi-surround-51-pro.html' title='【OSX】osx10.10  sb x-fi surround 5.1 pro 解決音量控制 '/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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://lh6.googleusercontent.com/IyPugw2Svf8hpVQmD44OPBDSg1I5Mcy_24NMM-OoNFlThRPTCcE2fwHN21MsdMFkSQhci8rCjVMr_P78vMuyq0fIsA51wfyGD0QJk19HJ44FC52SgM2I13zJmKAyV6VNGLc=s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7089112285269738574.post-5908046418144992790</id><published>2015-01-03T03:15:00.000-08:00</published><updated>2015-01-03T03:15:57.854-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Arch linux"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="tool"/><title type='text'>「Linux」架設 RSS 伺服器</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
自從 google reader 掛了後，&lt;br /&gt;
&lt;div&gt;
用了 其他 rss 服務(feedly...) 就再也找不到 以前那種使用習慣的感覺了。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
前往官方網站 &lt;a href=&quot;http://tt-rss.org/redmine/projects/tt-rss/wiki&quot;&gt;tt-rss&lt;/a&gt; 下載他的專案， 系統需要 php 5.3以上&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
解壓縮在 你的 web 伺服器 設好自己的目錄，&lt;/div&gt;
&lt;div&gt;
前往 &amp;lt;www.xxx.xxx&amp;gt;/&amp;lt;project&amp;gt;/install 即可進入安裝畫面，&lt;/div&gt;
&lt;div&gt;
需要事先建立好 要給他運作的 資料表，按照安裝畫面填寫，&lt;/div&gt;
&lt;div&gt;
很容易就可以安裝成功。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
之後 需要在手機APP 看自己伺服器的RSS ，&lt;/div&gt;
&lt;div&gt;
可以安裝&amp;nbsp;&lt;a href=&quot;https://github.com/dasmurphy/tinytinyrss-fever-plugin&quot;&gt;https://github.com/dasmurphy/tinytinyrss-fever-plugin&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
丟到 plugins 的資料夾 &lt;i&gt;plugins/fever &amp;nbsp;之後 開啓 fever&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBRakdjL0HdwKMbzb6Kq-zu_-4Sqenja0keNQc6rOW5VWdo0OPpJ1crv7DX6kA07UejUkjz7BbDoxcyqT1YUECpZIALkMehngojFQxzz9agAJxLq2UUNnGtUnIG07zcnYECRhSlHCrAj6U/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2015-01-03+%E4%B8%8B%E5%8D%887.04.37.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/AVvXsEhBRakdjL0HdwKMbzb6Kq-zu_-4Sqenja0keNQc6rOW5VWdo0OPpJ1crv7DX6kA07UejUkjz7BbDoxcyqT1YUECpZIALkMehngojFQxzz9agAJxLq2UUNnGtUnIG07zcnYECRhSlHCrAj6U/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2015-01-03+%E4%B8%8B%E5%8D%887.04.37.png&quot; height=&quot;337&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
設定個人密碼:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiETkQJN2Q_axwKOVfQ83xl1r90H5Nm4A9WZ-5xAIOHoKp3l8lGEYVaMH6j60vMF1sCn0SQjuqZqQAMNc6mgZ1_83Eth0r_j81JUGITnatI6acKvzdw3qduCYjyCfnRqJlYRBMd-sDbvvow/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2015-01-03+%E4%B8%8B%E5%8D%887.04.40.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/AVvXsEiETkQJN2Q_axwKOVfQ83xl1r90H5Nm4A9WZ-5xAIOHoKp3l8lGEYVaMH6j60vMF1sCn0SQjuqZqQAMNc6mgZ1_83Eth0r_j81JUGITnatI6acKvzdw3qduCYjyCfnRqJlYRBMd-sDbvvow/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2015-01-03+%E4%B8%8B%E5%8D%887.04.40.png&quot; height=&quot;169&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&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;
開啓第三方 API：&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeCD7KEcqIKA6iMdAHdpzPnjEonzzBRwFhw2cV3XuyBJVZE3VpJbwLNA04M1RlI2FGAZsGoflg9R7AEv7weF1pmzGsCXOfP_JvcoKOVn3FLitbVD7YDbeoEQIcWpfVArkig_DApiEM7v9O/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2015-01-03+%E4%B8%8B%E5%8D%887.04.46.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/AVvXsEjeCD7KEcqIKA6iMdAHdpzPnjEonzzBRwFhw2cV3XuyBJVZE3VpJbwLNA04M1RlI2FGAZsGoflg9R7AEv7weF1pmzGsCXOfP_JvcoKOVn3FLitbVD7YDbeoEQIcWpfVArkig_DApiEM7v9O/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2015-01-03+%E4%B8%8B%E5%8D%887.04.46.png&quot; height=&quot;334&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
server 路徑 要設定 &amp;lt;www.xxx.xxx.xx&amp;gt;/&amp;lt;project_name&amp;gt;/plugins/fever/&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMU2icAkeodvz9pa_vGCJcZoYON8Zrdh3MeZCpo2sJ5UUJW882gHZugj6mNJihVGILF77RZm3gVmC_i3vjjTJSoNGLVFKosaHLOb4LHVk2QiWXVyo9UMXSWAHZYuezv-FAmIBnx5AdtIBZ/s1600/IMG_0778.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/AVvXsEhMU2icAkeodvz9pa_vGCJcZoYON8Zrdh3MeZCpo2sJ5UUJW882gHZugj6mNJihVGILF77RZm3gVmC_i3vjjTJSoNGLVFKosaHLOb4LHVk2QiWXVyo9UMXSWAHZYuezv-FAmIBnx5AdtIBZ/s1600/IMG_0778.PNG&quot; height=&quot;320&quot; width=&quot;180&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/5908046418144992790/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/5908046418144992790' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/5908046418144992790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/5908046418144992790'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2015/01/linux-rss.html' title='「Linux」架設 RSS 伺服器'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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/AVvXsEhBRakdjL0HdwKMbzb6Kq-zu_-4Sqenja0keNQc6rOW5VWdo0OPpJ1crv7DX6kA07UejUkjz7BbDoxcyqT1YUECpZIALkMehngojFQxzz9agAJxLq2UUNnGtUnIG07zcnYECRhSlHCrAj6U/s72-c/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2015-01-03+%E4%B8%8B%E5%8D%887.04.37.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7089112285269738574.post-7120175294165223430</id><published>2014-12-30T11:29:00.000-08:00</published><updated>2014-12-30T11:31:24.115-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaFX"/><title type='text'>「JAVAFX」簡單JAVAFX使用心得</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
記得在4年前曾經爲朋友需求用 javafx 寫過簡易的 WEB APP，&lt;br /&gt;
&lt;div&gt;
如今過了4年 重新再去接觸，感覺當時寫的不曉得是後來改變很多 還是記憶淡忘，&lt;/div&gt;
&lt;div&gt;
至此大部分都看不懂了。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
首先javafx 有個簡易可以拖拉點選編輯LAYOUT的工具 Scene Builder，&lt;/div&gt;
&lt;div&gt;
這個工具就類似ANDROID 的LAYOUT編輯界面，但是感覺比較好用。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
雖然說 javafx 似乎不怎麼被看好，不過對於快速開發簡易的工具，是很容易的，&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
使用 NetBeans 建立一個 fxml 的專案後，會自動建立&amp;nbsp;FXMLDocumentController&lt;/div&gt;
&lt;div&gt;
裏面抓取 fxml 的元件 fx:id=&quot;vText_filePath&quot;&lt;/div&gt;
&lt;div&gt;
只要寫&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
@FXML&lt;br /&gt;
&amp;nbsp;private Text vText_filePath;&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
感覺蠻方便的，而BUTTON 的ACTION事件 也可以使用onAction= 來設定，&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
拖拉檔案至元件裏面 可以使用setOnDragOver&amp;nbsp;setOnDragDropped&lt;/div&gt;
&lt;div&gt;
這可以參考：&amp;nbsp;http://docs.oracle.com/javafx/2/drag_drop/HelloDragAndDrop.java.html&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
而在使用&amp;nbsp;TableView 裏面的&amp;nbsp;TableColumn欄位參數設定的時候，&lt;/div&gt;
&lt;div&gt;
不曉得我哪裏有設錯 他一直無法映射到我的函數&lt;/div&gt;
&lt;div&gt;
最後使用手動的方式取出 我自定的函數 getDataPath()，&lt;/div&gt;
&lt;div&gt;
而函數回傳格式 StringProperty &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
變數設定 private StringProperty datapath =new SimpleStringProperty();&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vTableCol_path.setCellValueFactory(&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new Callback&amp;lt;CellDataFeatures&amp;lt;pathList, String&amp;gt;, ObservableValue&amp;lt;String&amp;gt;&amp;gt;() {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @Override&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public ObservableValue&amp;lt;String&amp;gt; call(CellDataFeatures&amp;lt;pathList, String&amp;gt; param) {&lt;br /&gt;
change body of generated methods, choose Tools | Templates.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return param.getValue().getDataPath();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
而我在 tableView中 最右邊 有多一個刪除的按鈕&lt;/div&gt;
&lt;div&gt;
ButtonCell 是自定 extends TableCell&amp;lt;Record, Boolean&amp;gt;的物件&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vTableCol_btn_deletePath.setCellFactory(&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new Callback&amp;lt;TableColumn&amp;lt;Record, Boolean&amp;gt;, TableCell&amp;lt;Record, Boolean&amp;gt;&amp;gt;() {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @Override&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public TableCell&amp;lt;Record, Boolean&amp;gt; call(TableColumn&amp;lt;Record, Boolean&amp;gt; p) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return new ButtonCell(vTable_selectFilePathList, mlist);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
在 ButtonCell 中如果使用刪除的功能，會發現 資料有刪除但按鈕卻還是停留在畫面上&lt;/div&gt;
&lt;div&gt;
這時需要在 updateltem 中做修改&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; @Override&lt;br /&gt;
&amp;nbsp; &amp;nbsp; protected void updateItem(Boolean t, boolean empty) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super.updateItem(t, empty);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (!empty) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setGraphic(cellButton);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setGraphic(null);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
最後不得不說 小的APP 編譯的速度不快10~30多秒&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
要開發小工具都可以輕易的完成，而且還是跨平臺。&lt;/div&gt;
&lt;div&gt;
&lt;span id=&quot;goog_1562036289&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_1562036290&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFHZDkVCP84z-aWg6TPPLl90OPBeOs-3Z752CBPtExj2lzEj8yZNRmL0lEeT-seBuuoyvY_PJ8RL38pIpws8qcbXFa7e2y5SrsFt8AciWMnE6U9tE43RTZ46oF0XEwr7yymZ5Mz5A5LJ1-/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2014-12-31+%E4%B8%8A%E5%8D%883.26.00.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/AVvXsEhFHZDkVCP84z-aWg6TPPLl90OPBeOs-3Z752CBPtExj2lzEj8yZNRmL0lEeT-seBuuoyvY_PJ8RL38pIpws8qcbXFa7e2y5SrsFt8AciWMnE6U9tE43RTZ46oF0XEwr7yymZ5Mz5A5LJ1-/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2014-12-31+%E4%B8%8A%E5%8D%883.26.00.png&quot; height=&quot;508&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/7120175294165223430/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/7120175294165223430' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/7120175294165223430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/7120175294165223430'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2014/12/javafxjavafx.html' title='「JAVAFX」簡單JAVAFX使用心得'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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/AVvXsEhFHZDkVCP84z-aWg6TPPLl90OPBeOs-3Z752CBPtExj2lzEj8yZNRmL0lEeT-seBuuoyvY_PJ8RL38pIpws8qcbXFa7e2y5SrsFt8AciWMnE6U9tE43RTZ46oF0XEwr7yymZ5Mz5A5LJ1-/s72-c/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2014-12-31+%E4%B8%8A%E5%8D%883.26.00.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7089112285269738574.post-575987687139731894</id><published>2014-12-29T11:52:00.000-08:00</published><updated>2015-01-13T08:18:31.914-08:00</updated><title type='text'>「2014」END</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&amp;nbsp;第一次離職&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;第一次獲得名片&lt;/li&gt;
&lt;li&gt;&amp;nbsp;2014年初 對於 html5 配上 jquery 做動態繪圖以及播放聲音的熟悉。&lt;/li&gt;
&lt;li&gt;&amp;nbsp;跑了人生第一次的馬拉松在高美。&lt;/li&gt;
&lt;li&gt;&amp;nbsp;人生第一臺 apple macbook pro&lt;/li&gt;
&lt;li&gt;&amp;nbsp;熟悉 win2008 架設環境&lt;/li&gt;
&lt;li&gt;&amp;nbsp;php 配上 java 做excel word pdf 輸出&lt;/li&gt;
&lt;li&gt;&amp;nbsp;第一把&amp;nbsp;cherry g80-1865 紅軸 鍵盤&lt;/li&gt;
&lt;li&gt;&amp;nbsp;爲前公司開發的php 框架滿2年&lt;/li&gt;
&lt;li&gt;&amp;nbsp;使用 剛推出不久 swift 開發爬蟲&lt;/li&gt;
&lt;li&gt;&amp;nbsp;臺中大坑景點幾乎跑片了&lt;/li&gt;
&lt;li&gt;&amp;nbsp;晚上8點上合歡山北鋒拍銀河&lt;/li&gt;
&lt;li&gt;&amp;nbsp;第一次日本東京行&lt;/li&gt;
&lt;li&gt;&amp;nbsp;使用 laravel 開發 個人履歷&lt;/li&gt;
&lt;li&gt;&amp;nbsp;使用 nodeJS 作爲伺服器 開發 android 個人平臺&lt;/li&gt;
&lt;li&gt;&amp;nbsp;建立公司內部專案 git server&lt;/li&gt;
&lt;li&gt;&amp;nbsp;瞭解&amp;nbsp;angularJS web 用法&lt;/li&gt;
&lt;li&gt;&amp;nbsp;ionic 用法&lt;/li&gt;
&lt;li&gt;第一臺 iphone&amp;nbsp;&lt;/li&gt;
&lt;li&gt;第2個個人網站&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/575987687139731894/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/575987687139731894' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/575987687139731894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/575987687139731894'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2014/12/2014.html' title='「2014」END'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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-7089112285269738574.post-2351869285608475338</id><published>2014-07-22T00:44:00.002-07:00</published><updated>2014-07-27T22:29:49.070-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Laravel"/><category scheme="http://www.blogger.com/atom/ns#" term="osx"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>「PHP」Laravel osx 設定 .htaccess</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;del style=&quot;display: block; position: relative;&quot;&gt;

&lt;/del&gt;&lt;div style=&quot;font-family: Helvetica Neue, Arial, Hiragino Sans GB, STHeiti, Microsoft YaHei, WenQuanYi Micro Hei, SimSun, Song, sans-serif; line-height: 1.6;&quot;&gt;
&lt;h3 style=&quot;color: inherit; font-family: inherit; font-size: 24px; font-weight: bold; line-height: 1.1; margin-bottom: 20px; margin-top: 0px;&quot;&gt;
「PHP」Laravel osx 設定 .htaccess&lt;/h3&gt;
&lt;hr style=&quot;-moz-box-sizing: content-box; border-top: 1px solid rgba(102, 128, 153, 0.15); border: 0; box-sizing: content-box; height: 0; line-height: 1.6; margin-bottom: 20px; margin-top: 20px;&quot; /&gt;
&lt;h4 style=&quot;color: inherit; font-family: inherit; font-size: 18px; font-weight: bold; line-height: 1.1; margin-bottom: 15px; margin-top: 25px;&quot;&gt;
apache config&lt;/h4&gt;
&lt;ol style=&quot;line-height: 1.6; margin-bottom: 10px; margin-top: 0;&quot;&gt;
&lt;li style=&quot;line-height: 1.6;&quot;&gt;設定 vim httpd.conf 的 AllowOverride All&lt;/li&gt;
&lt;li style=&quot;line-height: 1.6;&quot;&gt;sudo apachectl restart&lt;/li&gt;
&lt;/ol&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-radius: 0; border: none; color: #333333; display: block; font-family: Menlo, Monaco, Consolas, Courier New, monospace; font-size: 14px; line-height: 1.6; margin: 0 0 10px; overflow: initial; padding: 0; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;code style=&quot;background-color: transparent; background: #23241f; border-radius: 0; color: #f8f8f2; display: block; font-family: Menlo, Monaco, Consolas, Courier New, monospace; font-size: inherit; padding: 1em; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: #e6db74;&quot;&gt;&amp;lt;VirtualHost *:80&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: #f92672;&quot;&gt;DocumentRoot&lt;/span&gt; /Library/WebServer/Documents
    &lt;span style=&quot;color: #e6db74;&quot;&gt;&amp;lt;Directory /Library/WebServer/Documents&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #f92672;&quot;&gt;AllowOverride&lt;/span&gt; &lt;span style=&quot;color: #ae81ff;&quot;&gt;All&lt;/span&gt;
        &lt;span style=&quot;color: #f92672;&quot;&gt;Allow&lt;/span&gt; from &lt;span style=&quot;color: #ae81ff;&quot;&gt;all&lt;/span&gt;
    &lt;span style=&quot;color: #e6db74;&quot;&gt;&amp;lt;/Directory&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: #f92672;&quot;&gt;RailsEnv&lt;/span&gt; development

    &lt;span style=&quot;color: #f92672;&quot;&gt;Alias&lt;/span&gt; /noteBox /Users/cake/Web_www/noteBox/public
    &lt;span style=&quot;color: #e6db74;&quot;&gt;&amp;lt;Directory  /Users/cake/Web_www/noteBox/public&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #75715e;&quot;&gt;#PassengerAppRoot  /home/User/web_ror/home/public&lt;/span&gt;
        &lt;span style=&quot;color: #f92672;&quot;&gt;PassengerAppRoot&lt;/span&gt;  /Users/User/Web_www/noteBox
        &lt;span style=&quot;color: #f92672;&quot;&gt;Allow&lt;/span&gt; from &lt;span style=&quot;color: #ae81ff;&quot;&gt;all&lt;/span&gt;
        &lt;span style=&quot;color: #f92672;&quot;&gt;Options&lt;/span&gt; -MultiViews
        &lt;span style=&quot;color: #75715e;&quot;&gt;#RailsBaseURI /rails&lt;/span&gt;
    &lt;span style=&quot;color: #e6db74;&quot;&gt;&amp;lt;/Directory&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #e6db74;&quot;&gt;&amp;lt;/VirtualHost&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h4 style=&quot;color: inherit; font-family: inherit; font-size: 18px; font-weight: bold; line-height: 1.1; margin-bottom: 15px; margin-top: 25px;&quot;&gt;
Laravel 中 public/.htaccess&lt;/h4&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-radius: 0; border: none; color: #333333; display: block; font-family: Menlo, Monaco, Consolas, Courier New, monospace; font-size: 14px; line-height: 1.6; margin: 0 0 10px; overflow: initial; padding: 0; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;code style=&quot;background-color: transparent; background: #23241f; border-radius: 0; color: #f8f8f2; display: block; font-family: Menlo, Monaco, Consolas, Courier New, monospace; font-size: inherit; padding: 1em; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: #e6db74;&quot;&gt;&amp;lt;IfModule mod_rewrite.c&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #e6db74;&quot;&gt;&amp;lt;IfModule mod_negotiation.c&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #f92672;&quot;&gt;Options&lt;/span&gt; -MultiViews
    &lt;span style=&quot;color: #e6db74;&quot;&gt;&amp;lt;/IfModule&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: #f92672;&quot;&gt;RewriteEngine&lt;/span&gt; &lt;span style=&quot;color: #ae81ff;&quot;&gt;On&lt;/span&gt;

    &lt;span style=&quot;color: #75715e;&quot;&gt;# Redirect Trailing Slashes...&lt;/span&gt;
    &lt;span style=&quot;color: #f92672;&quot;&gt;RewriteRule&lt;/span&gt; ^(.*)/$ /&lt;span style=&quot;color: #ae81ff;&quot;&gt;$1&lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt; [L,R=301]&lt;/span&gt;

    &lt;span style=&quot;color: #75715e;&quot;&gt;# Handle Front Controller...&lt;/span&gt;
    &lt;span style=&quot;color: #f92672;&quot;&gt;RewriteCond&lt;/span&gt; &lt;span style=&quot;color: #e6db74;&quot;&gt;%{REQUEST_FILENAME}&lt;/span&gt; !-d
    &lt;span style=&quot;color: #f92672;&quot;&gt;RewriteCond&lt;/span&gt; &lt;span style=&quot;color: #e6db74;&quot;&gt;%{REQUEST_FILENAME}&lt;/span&gt; !-f
    &lt;span style=&quot;color: #f92672;&quot;&gt;RewriteRule&lt;/span&gt; ^ index.php&lt;span style=&quot;color: #75715e;&quot;&gt; [L]&lt;/span&gt;
&lt;span style=&quot;color: #e6db74;&quot;&gt;&amp;lt;/IfModule&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;center style=&quot;display: none;&quot;&gt;
%23%23%23%20%u300CPHP%u300DLaravel%20osx%20%u8A2D%u5B9A%20.htaccess%0A---%0A%0A%23%23%23%23%20apache%20config%0A1.%20%u8A2D%u5B9A%20vim%20httpd.conf%20%u7684%20AllowOverride%20All%0A2.%20sudo%20apachectl%20restart%0A%0A%60%60%60%20conf%0A%3CVirtualHost%20*%3A80%3E%0A%0A%20%20%20%20DocumentRoot%20/Library/WebServer/Documents%0A%20%20%20%20%3CDirectory%20/Library/WebServer/Documents%3E%0A%20%20%20%20%20%20%20%20AllowOverride%20All%0A%20%20%20%20%20%20%20%20Allow%20from%20all%0A%20%20%20%20%3C/Directory%3E%0A%0A%20%20%20%20RailsEnv%20development%0A%0A%20%20%20%20Alias%20/noteBox%20/Users/cake/Web_www/noteBox/public%0A%20%20%20%20%3CDirectory%20%20/Users/cake/Web_www/noteBox/public%3E%0A%20%20%20%20%20%20%20%20%23PassengerAppRoot%20%20/home/User/web_ror/home/public%0A%20%20%20%20%20%20%20%20PassengerAppRoot%20%20/Users/User/Web_www/noteBox%0A%20%20%20%20%20%20%20%20Allow%20from%20all%0A%20%20%20%20%20%20%20%20Options%20-MultiViews%0A%20%20%20%20%20%20%20%20%23RailsBaseURI%20/rails%0A%20%20%20%20%3C/Directory%3E%0A%0A%3C/VirtualHost%3E%0A%60%60%60%0A%0A%23%23%23%23%20Laravel%20%u4E2D%20public/.htaccess%0A%0A%60%60%60%0A%3CIfModule%20mod_rewrite.c%3E%0A%20%20%20%20%3CIfModule%20mod_negotiation.c%3E%0A%20%20%20%20%20%20%20%20Options%20-MultiViews%0A%20%20%20%20%3C/IfModule%3E%0A%0A%20%20%20%20RewriteEngine%20On%0A%0A%20%20%20%20%23%20Redirect%20Trailing%20Slashes...%0A%20%20%20%20RewriteRule%20%5E%28.*%29/%24%20/%241%20%5BL%2CR%3D301%5D%0A%0A%20%20%20%20%23%20Handle%20Front%20Controller...%0A%20%20%20%20RewriteCond%20%25%7BREQUEST_FILENAME%7D%20%21-d%0A%20%20%20%20RewriteCond%20%25%7BREQUEST_FILENAME%7D%20%21-f%0A%20%20%20%20RewriteRule%20%5E%20index.php%20%5BL%5D%0A%3C/IfModule%3E%0A%60%60%60%0A%0A%0A%0A&lt;/center&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/2351869285608475338/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/2351869285608475338' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/2351869285608475338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/2351869285608475338'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2014/07/phplaravel-osx-htaccess_22.html' title='「PHP」Laravel osx 設定 .htaccess'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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-7089112285269738574.post-6053035451694995948</id><published>2013-10-14T19:34:00.003-07:00</published><updated>2013-10-14T19:34:56.903-07:00</updated><title type='text'>【Mac】編譯Lua</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 18px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; margin: 0px 0px 10px; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
Mac 編譯 lua&lt;/h3&gt;
&lt;ol style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; margin: 15px 0px; padding: 0px 0px 0px 30px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;首先下載原始碼&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span &gt;&lt;a href=&quot;http://www.lua.org/ftp/&quot; style=&quot;border: 0px none; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;http://www.lua.org/ftp/&lt;/a&gt;這裡使用&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.lua.org/ftp/lua-5.1.4.tar.gz&quot; style=&quot;border: 0px none; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;lua-5.1.4&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;因為這台MAC是64位元的，則 libgdx 的 java端 和 andorid 端用的LUA 編譯出來的一個是64 一個則是32.&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;解壓縮修改 src/Makefile&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;編譯 make macosx&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;取出 luac 就可以做預編譯，之後在放到專案中。&lt;/li&gt;
&lt;/ol&gt;
&lt;h4 style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; margin: 20px 0px 10px; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
Makefile&lt;/h4&gt;
&lt;div class=&quot;highlight highlight-ini&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: white; background-position: initial initial; background-repeat: initial initial; border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; margin-bottom: 0px !important; margin-left: 0px; margin-right: 0px; margin-top: 0px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;pre style=&quot;background-color: #f8f8f8; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(204, 204, 204); font-family: Consolas, &#39;Liberation Mono&#39;, Courier, monospace; font-size: 13px; line-height: 19px; margin: 15px 0px; overflow: auto; padding: 6px 10px;&quot;&gt;&lt;span class=&quot;err&quot; style=&quot;background-color: #e3d2d2; border: 0px; color: #a61717; margin: 0px; padding: 0px;&quot;&gt;macosx:&lt;/span&gt;
    &lt;span class=&quot;na&quot; style=&quot;border: 0px; color: teal; margin: 0px; padding: 0px;&quot;&gt;$(MAKE) all MYCFLAGS&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;border: 0px; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot; style=&quot;border: 0px; color: #dd1144; margin: 0px; padding: 0px;&quot;&gt;-DLUA_USE_LINUX MYLIBS=&quot;-lreadline&quot;&lt;/span&gt;
&lt;span class=&quot;c1&quot; style=&quot;border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;# 32: $(MAKE) all MYCFLAGS=&quot;-arch i386 -DLUA_USE_LINUX&quot; MYLIBS=&quot;-arch i386 -lreadline&quot;&lt;/span&gt;
&lt;span class=&quot;c1&quot; style=&quot;border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;# 64: $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS=&quot;-lreadline&quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/6053035451694995948/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/6053035451694995948' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/6053035451694995948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/6053035451694995948'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2013/10/maclua.html' title='【Mac】編譯Lua'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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-7089112285269738574.post-7275793799666814495</id><published>2013-09-25T00:43:00.001-07:00</published><updated>2014-05-08T06:48:30.291-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="Arch linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="ROR"/><title type='text'>Arch linux Linode Web Server(Apache ,MariaDB ,PHP ,ROR)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 18px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; margin: 0px 0px 10px; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
Arch linux Linode Web Server(Apache ,MariaDB ,PHP ,ROR)&lt;/h3&gt;
&lt;h4 style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; margin: 20px 0px 10px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
&amp;nbsp;&lt;span style=&quot;font-weight: normal;&quot;&gt;最近租了個VPS，把EC2停掉了，也順便體驗一下什麼是開發速度極快的ROR，&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; margin: 20px 0px 10px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;在設定上還蠻麻煩的，也參考了些網路一些大大的資料。&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; margin: 20px 0px 10px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;最後可以跑 PHP 和 ROR 在同一個伺服器。 &lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; margin: 20px 0px 10px; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
Set local&lt;/h4&gt;
&lt;ol style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; margin: 15px 0px; padding: 0px 0px 0px 30px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;vim /etc/locale.gen&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;locale-gen&lt;/li&gt;
&lt;/ol&gt;
&lt;h4 style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; margin: 20px 0px 10px; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
Add user(CAKE)&lt;/h4&gt;
&lt;ol style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; margin: 15px 0px; padding: 0px 0px 0px 30px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;useradd CAKE -m -s /bin/bash&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;passwd CAKE&lt;/li&gt;
&lt;/ol&gt;
&lt;h4 style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; margin: 20px 0px 10px; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
Pacman Update&lt;/h4&gt;
&lt;ol style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; margin: 15px 0px; padding: 0px 0px 0px 30px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;pacman -Syu&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;pacman-db-upgrade&lt;ul style=&quot;border: 0px; margin: 0px; padding: 0px 0px 0px 30px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;[發生無法更新時]&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;pacman-key --init&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;pacman-key --populate archlinux&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h4 style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; margin: 20px 0px 10px; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
Install&lt;/h4&gt;
&lt;ol style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; margin: 15px 0px; padding: 0px 0px 0px 30px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;pacman -S base base-devel&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;pacman -S sudo&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;pacman -S bash-completion&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;pacman -S git&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;pacman -S nodejs&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;pacman -S ruby&lt;/li&gt;
&lt;/ol&gt;
&lt;h4 style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; margin: 20px 0px 10px; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
Set Sudo User&lt;/h4&gt;
&lt;ol style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; margin: 15px 0px; padding: 0px 0px 0px 30px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;visudo&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;[ADD username(CAKE) ]&lt;ul style=&quot;border: 0px; margin: 0px; padding: 0px 0px 0px 30px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;CAKE ALL=ALL (ALL)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;[SAVE &amp;amp; EXIT ]&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;鎖住 root : passwd root -l&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;logout&lt;/li&gt;
&lt;/ol&gt;
&lt;h4 style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; margin: 20px 0px 10px; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
防火牆&lt;/h4&gt;
&lt;ol style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; margin: 15px 0px; padding: 0px 0px 0px 30px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;pacman -S ufw&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;sudo ufw enable&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;port&lt;ul style=&quot;border: 0px; margin: 0px; padding: 0px 0px 0px 30px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;sudo ufw limit 22/tcp&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;ufw allow 80/tcp&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;[開機啟動]&lt;ul style=&quot;border: 0px; margin: 0px; padding: 0px 0px 0px 30px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;systemctl enable ufw.service&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h4 style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; margin: 20px 0px 10px; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
Mysql&lt;/h4&gt;
&lt;ol style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; margin: 15px 0px; padding: 0px 0px 0px 30px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;install MariaDB&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;sudo systemctl start mysqld&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;sudo systemctl enable mysqld&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;sudo mysql_secure_installation&lt;/li&gt;
&lt;/ol&gt;
&lt;h4 style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; margin: 20px 0px 10px; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
ROR&lt;/h4&gt;
&lt;ol style=&quot;border: 0px none; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; margin: 15px 0px; padding: 0px 0px 0px 30px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;gem install rails&lt;ul style=&quot;border: 0px; margin: 0px; padding: 0px 0px 0px 30px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;gem install rails --no-ri --no-rdoc&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;gem update&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;[Apache]&lt;ul style=&quot;border: 0px; margin: 0px; padding: 0px 0px 0px 30px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;[$] gem install passenger&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;[$] passenger-install-apache2-module&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;set config [apache config]&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;gem install mysql2&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;in your porject Gemfile file 設定套件檔案&lt;/li&gt;
&lt;ul style=&quot;border: 0px; margin: 0px; padding: 0px 0px 0px 30px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;增加 gem &#39;mysql2&#39; #增加mysql套件&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;bundl e update raiils&lt;/li&gt;
&lt;/ol&gt;
&lt;h4 style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; margin: 20px 0px 10px; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
apache config&lt;/h4&gt;
&lt;pre style=&quot;background-color: #f8f8f8; border-radius: 3px 3px 3px 3px; border: 1px solid rgb(204, 204, 204); font-family: Consolas,&#39;Liberation Mono&#39;,Courier,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; margin: 15px 0px; overflow: auto; padding: 6px 10px; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px;&quot;&gt;&lt;code style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: none; font-family: Consolas, &#39;Liberation Mono&#39;, Courier, monospace; font-size: 12px; margin: 0px; padding: 0px; white-space: pre;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;##### IN LoadModule(load passenger_module(ror) )
LoadModule passenger_module /home/cake/.gem/ruby/2.0.0/gems/passenger-4.0.18/buildout/apache2/mod_passenger.so
PassengerRoot /home/cake/.gem/ruby/2.0.0/gems/passenger-4.0.18
PassengerDefaultRuby /usr/bin/ruby

…

##### VirtualHost and Alias(set php alias and ror alias)
&amp;lt;VirtualHost *:80&amp;gt;

DocumentRoot /srv/http
&amp;lt;Directory /srv/http&amp;gt;
    Allow from all
&amp;lt;/Directory&amp;gt;

Alias /_test2013/ /home/cake/web/
&amp;lt;Directory &quot;/home/cake/web/&quot;&amp;gt;
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
&amp;lt;/Directory&amp;gt;

RailsEnv development

Alias /home /home/cake/web_ror/home/public
&amp;lt;Directory  /home/cake/web_ror/home/public&amp;gt;
    #PassengerAppRoot  /home/cake/web_ror/home/public
    PassengerAppRoot  /home/cake/web_ror/home
    Allow from all
    Options -MultiViews
    #RailsBaseURI /rails
&amp;lt;/Directory&amp;gt;

&amp;lt;/VirtualHost&amp;gt;&lt;/span&gt;
&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h4 style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; margin: 20px 0px 10px; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
ROR create DB&lt;/h4&gt;
&lt;ol style=&quot;border: 0px none; font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; margin-bottom: 0px ! important; margin-left: 0px; margin-right: 0px; margin-top: 15px; padding: 0px 0px 0px 30px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;rails g model YOUR_MODEL_NAME name:string phone:integer birthday:date&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;db/migrate/20130923065726_create_pbooks.rb&lt;ul style=&quot;border: 0px; margin: 0px; padding: 0px 0px 0px 30px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;為模組設定檔&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;app/models/pbook.rb&lt;ul style=&quot;border: 0px; margin: 0px; padding: 0px 0px 0px 30px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;模組端&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;rake db:migrate # (建立)模組設定檔&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;---- 2014 01/10 UPDATE ----&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;Mac ROR 設定 以及&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;別名設定&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;Apache config&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;lt;VirtualHost *:80&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;DocumentRoot &quot;/Library/WebServer/Documents&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;lt;Directory /Library/WebServer/Documents&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;nbsp; &amp;nbsp; Allow from all&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;lt;/Directory&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;Alias /_test2014/ /Users/cake/www_web/php_web/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;lt;Directory &quot;/Users/cake/www_web/php_web/&quot;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;nbsp; &amp;nbsp; Options Indexes&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;nbsp; &amp;nbsp; AllowOverride None&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;nbsp; &amp;nbsp; Order allow,deny&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;nbsp; &amp;nbsp; Allow from all&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;lt;/Directory&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;RailsEnv development&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;Alias /ruby_blog /Users/cake/www_web/ror_web/blog/public&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;lt;Directory &amp;nbsp;/Users/cake/www_web/ror_web/blog/public&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;nbsp; &amp;nbsp; PassengerAppRoot &amp;nbsp;/Users/cake/www_web/ror_web/blog&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;nbsp; &amp;nbsp; SetEnv RAILS_RELATIVE_URL_ROOT /ruby_blog&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;nbsp; &amp;nbsp; Allow from all&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;nbsp; &amp;nbsp; Options -MultiViews&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;nbsp; &amp;nbsp; #RailsBaseURI /rails&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;lt;/Directory&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;lt;/VirtualHost&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/blockquote&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;ROR routes your Application&amp;nbsp;add&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;nbsp; scope ENV[&#39;RAILS_RELATIVE_URL_ROOT&#39;] || &#39;/&#39; do&lt;/span&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;nbsp; &amp;nbsp; # get &quot;home/index&quot; =&amp;gt; &quot;home#index&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;nbsp; &amp;nbsp; resources :home&lt;/span&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;# resources :another_controller&lt;/span&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #f8f8f8; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(221, 221, 221); box-sizing: border-box; color: #333333; font-family: Consolas, &#39;Liberation Mono&#39;, Courier, monospace; font-size: 13px; line-height: 19px; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px; word-wrap: normal;&quot;&gt;&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span class=&quot;no&quot; style=&quot;box-sizing: border-box; color: teal;&quot;&gt;Myapp&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;box-sizing: border-box; font-weight: bold;&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot; style=&quot;box-sizing: border-box; color: teal;&quot;&gt;Application&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;box-sizing: border-box; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;box-sizing: border-box;&quot;&gt;routes&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;box-sizing: border-box; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;box-sizing: border-box;&quot;&gt;draw&lt;/span&gt; &lt;span class=&quot;k&quot; style=&quot;box-sizing: border-box; font-weight: bold;&quot;&gt;do&lt;/span&gt;
  &lt;span class=&quot;n&quot; style=&quot;box-sizing: border-box;&quot;&gt;scope&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #111111; font-family: Menlo, Monaco, mono; font-size: 12px; line-height: 22px; white-space: normal;&quot;&gt;&amp;nbsp;ENV[&#39;RAILS_RELATIVE_URL_ROOT&#39;] || &#39;/&#39; do&lt;/span&gt;&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; color: black; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 17.804800033569336px; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;resources &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; color: black; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 17.804800033569336px; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; color: black; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 17.804800033569336px; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;controller&lt;/span&gt;&lt;pre class=&quot;lang-rb prettyprint prettyprinted&quot; style=&quot;background-color: #eeeeee; border: 0px; color: black; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 17.804800033569336px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;   resources &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;another_controller
   match &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;welcome/&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;to &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;welcome#index&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
   root &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;to &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;welcome#index&quot;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;
  &lt;span class=&quot;k&quot; style=&quot;box-sizing: border-box; font-weight: bold;&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;k&quot; style=&quot;box-sizing: border-box; font-weight: bold;&quot;&gt;end&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;### 2014 01 22 update&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;如果使用 ubuntu 設定時&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;1. 將 passenger 設定資料 建立檔案 放入 /etc/apache2/modes-available/ 並且建立連結到 mods-enabled&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;# ln -s /etc/apache2/modes-avaliable/ror.load /etc/apache2/modes-enabled/ror.load&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;2. 虛擬目錄設定 放入 sites-available 同樣建立捷徑至 sites-enabled&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;3. 也可以使用 sudo a2ensite XXXXX 建立捷徑&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;4. sudo apache2ctl configrtest &amp;nbsp;測試是否有誤&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;5. sudo apache2ctl restart&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;PS &amp;nbsp;如果發生 403 錯誤，則/etc/apache2/apache.conf 註解掉&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&amp;lt;Directory /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&amp;lt;/Directory&amp;gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica, arial, freesans, clean, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/7275793799666814495/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/7275793799666814495' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/7275793799666814495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/7275793799666814495'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2013/09/arch-linux-linode-web-serverapache.html' title='Arch linux Linode Web Server(Apache ,MariaDB ,PHP ,ROR)'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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-7089112285269738574.post-431405853354890221</id><published>2013-06-23T07:45:00.000-07:00</published><updated>2013-06-23T07:45:22.493-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="dropbox"/><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 + DropBox + SourceTree 專案版本管理</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
網路有很多教學了，今天剛好加班，帶着筆電實做以一次。&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
當主機 和 筆電 有專案要同步的問題 一直困擾我很久，&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
當初在ARCH LINUX的時候 是使用HG&amp;nbsp;+ DROPBOX 來進行同步，&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
光是設定就超級麻煩的了。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
如今 主機 和筆電 都裝成黑蘋果了，剛好之前的專案使用GIT，&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
一用就上癮了。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
1. 下載GIT 找個適合自己MAC&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;p1&quot;&gt;
http://code.google.com/p/git-osx-installer/&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
2.下載 SourceTree ，這真的是超級強大的工具&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
http://www.sourcetreeapp.com/&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
3.下載 Dropbox ，這個鬼東西 和 pathfinder 衝到的樣子CPU都給我跑100%以上。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
4.在DROPBOX 建立一個放專案的目錄 並且&amp;nbsp;&lt;b&gt;git --bare init 你的專案&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
5. #git add . &amp;nbsp; 常見的GIT ADD your files&lt;br /&gt;
&lt;br /&gt;
6.#git commit -m &#39;project init&#39; &amp;nbsp;常見的GIT commit&lt;br /&gt;
&lt;br /&gt;
7. 之後 開啟 SourceTree 使用 Clone Repository&lt;br /&gt;
&lt;br /&gt;
8. 之後就出現超級好用的GIT管理畫面了，連ADD COMMIT PUSH 一堆有的沒得都是 按鈕。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1omu6PS5lCkpVzFyt46lzsEofJKKkNXVJOI2ZBd53QRksG3x25Lfnb8TZBfnRzBlu2IAz3tNdYRLFJ5LLvTYXdPiMzXCPYkQMM-luKzEU2uHZZDbaebQ1QcPP_Z8pznV0YCikD2_DkBE-/s1600/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-06-23+%E4%B8%8B%E5%8D%8810.25.46.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1omu6PS5lCkpVzFyt46lzsEofJKKkNXVJOI2ZBd53QRksG3x25Lfnb8TZBfnRzBlu2IAz3tNdYRLFJ5LLvTYXdPiMzXCPYkQMM-luKzEU2uHZZDbaebQ1QcPP_Z8pznV0YCikD2_DkBE-/s640/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-06-23+%E4%B8%8B%E5%8D%8810.25.46.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span id=&quot;goog_1297810620&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_1297810621&quot;&gt;&lt;/span&gt;&lt;br /&gt;
9.若在PUSH 發生master -&amp;gt; master (branch is currently checked out) 什麼鬼的&lt;br /&gt;








&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;修改增加 .git/config&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;







&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
[receive]&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;denyCurrentBranch = ignore&lt;/blockquote&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/431405853354890221/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/431405853354890221' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/431405853354890221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/431405853354890221'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2013/06/mac-git-dropbox-sourcetree.html' title='【MAC】 GIT + DropBox + SourceTree 專案版本管理'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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/AVvXsEh1omu6PS5lCkpVzFyt46lzsEofJKKkNXVJOI2ZBd53QRksG3x25Lfnb8TZBfnRzBlu2IAz3tNdYRLFJ5LLvTYXdPiMzXCPYkQMM-luKzEU2uHZZDbaebQ1QcPP_Z8pznV0YCikD2_DkBE-/s72-c/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-06-23+%E4%B8%8B%E5%8D%8810.25.46.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7089112285269738574.post-9021439214998824478</id><published>2013-04-13T10:09:00.003-07:00</published><updated>2013-10-11T02:15:52.065-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="libgdx"/><category scheme="http://www.blogger.com/atom/ns#" term="lua"/><category scheme="http://www.blogger.com/atom/ns#" term="mac"/><title type='text'>【MAC】【Android】編譯 LUA 以及 LUAJAVA 並且導入 libgdx 專案</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
這一連串的動作在LINUX已經夠麻煩了，在MAC也是OOXX的，而且做完一次就不會想在弄第二次。&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
(一) 編譯 32BIT的 LUA ，也可以不需要做這個動作，純粹是做筆記。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
參考：&lt;a href=&quot;http://www.neatstudio.com/show-1842-1.shtml&quot;&gt;http://www.neatstudio.com/show-1842-1.shtml&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
下載：&lt;a href=&quot;http://www.lua.org/ftp/lua-5.1.4.tar.gz&quot;&gt;http://www.lua.org/ftp/lua-5.1.4.tar.gz&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;1.編輯&amp;nbsp;&lt;span style=&quot;background-color: black; color: #93c47d; line-height: 22px;&quot;&gt;src/Makefile&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
macos: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS=&quot;-lreadline&quot; &amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
修改為&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
macos: $(MAKE) all MYCFLAGS=&quot;-DLUA_USE_LINUX -arch i386&quot; MYLIBS=&quot;-lreadline -arch i386&quot;&amp;nbsp;&lt;span style=&quot;font-family: inherit;&quot;&gt;l&amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
2.之後就編譯 以及 安裝&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;make macos&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;sudo make install&amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;
3.留意 IANSTALL 路徑&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
cd src &amp;amp;&amp;amp; mkdir -p /usr/local/bin /usr/local/include /usr/local/lib /usr/local/man/man1 /usr/local/share/lua/5.1 /usr/local/lib/lua/5.1&lt;br /&gt;
cd src &amp;amp;&amp;amp; install -p -m 0755 lua luac /usr/local/bin&lt;br /&gt;
cd src &amp;amp;&amp;amp; install -p -m 0644 lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp /usr/local/include&lt;br /&gt;
cd src &amp;amp;&amp;amp; install -p -m 0644 liblua.a /usr/local/lib&lt;br /&gt;
cd doc &amp;amp;&amp;amp; install -p -m 0644 lua.1 luac.1 /usr/local/man/man1&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
（二）編譯 luajava&lt;br /&gt;
&lt;br /&gt;
參考：&lt;a href=&quot;http://retrovirus.com/incr/2005/08/building-luajava/&quot;&gt;http://retrovirus.com/incr/2005/08/building-luajava/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
1.下載編譯好的版本或者用你自己編譯的，小弟這裡下載：&lt;br /&gt;
&lt;a href=&quot;http://luabinaries.sourceforge.net/download.html&quot;&gt;http://luabinaries.sourceforge.net/download.html&lt;/a&gt;&lt;br /&gt;
的&lt;a href=&quot;http://sourceforge.net/projects/luabinaries/files/5.1.4/Other%20Libraries/lua5_1_4_MacOS106_lib.tar.gz/download&quot; style=&quot;color: #006699; font-family: arial, helvetica, geneva, sans-serif; font-size: 15px; font-weight: bold; text-decoration: none;&quot;&gt;lua5_1_4_MacOS106_lib.tar.gz&lt;/a&gt;&amp;nbsp;，也可以連 bin 也抓，在本機可以用。&lt;br /&gt;
&lt;br /&gt;
2.解壓縮 之後 找出 include 路徑 ，作為CONFI&lt;span style=&quot;font-family: inherit;&quot;&gt;G檔的Lua 路徑&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;3.設定JAVA HOME include 路徑，這個鬼東西，害我一直沒編譯過，原來java home 路徑的根本不叫做INCLUDE 也不再 /Library/Java/Home 裡面，這個標頭檔資料夾在：&lt;/span&gt;/System/Library/Frameworks/JavaVM.framework/Headers 。&lt;br /&gt;
先進入 /Library/Java/Home 之後做捷徑：&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;sudo ln -s /System/Library/Frameworks/JavaVM.framework/Headers include&lt;/blockquote&gt;
&lt;br /&gt;
4.下載 LUAJAVA ：&lt;a href=&quot;https://github.com/jasonsantos/luajava&quot;&gt;https://github.com/jasonsantos/luajava&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
5.解壓縮編輯 config 檔，紅色的地方就是已經增加或加註解或者修改的地方。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;span style=&quot;color: #0b5394; font-size: x-small;&quot;&gt;#############################################################&lt;br /&gt;#Linux/BSD/Mac&lt;br /&gt;LUA_DIR=&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt; /Volumes/MacSpace/Library/lua5_1_4_MacOS106_lib&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;LUA_LIBDIR=&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; /Volumes/MacSpace/Library/lua5_1_4_MacOS106_lib&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;LUA_INCLUDES=&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; /Volumes/MacSpace/Library/lua5_1_4_MacOS106_lib/include&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;#JDK= $(JAVA_HOME)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;# For Mac OS, comment the above line and uncomment this one&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;JDK=/Library/Java/Home&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;# Full path to Lua static library&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;LIB_LUA=/Volumes/MacSpace/Library/lua5_1_4_MacOS106_lib/liblua5.1.a&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;#Linux/BSD&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;LIB_EXT= .so&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;#Mac OS&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;LIB_EXT= .jnilib&lt;br /&gt;LIB_PREFIX= lib&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;#Linux/BSD&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;LIB_OPTION= -shared&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;#Mac OS&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;#LIB_OPTION= -dynamiclib -all_load&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;LIB_OPTION= -dynamiclib -all_load&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;## On FreeBSD and Mac OS systems, the following line should be commented&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;DLLIB= -ldl&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;INCS= -I$(JDK)/include -I$(JDK)/include/linux -I$(LUA_INCLUDES)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;CFLAGS= $(WARN) $(INCS)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;CC= gcc&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;#########################################################&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;VERSION= 1.1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;PKG= luajava-$(VERSION)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;TAR_FILE= $(PKG).tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;ZIP_FILE= $(PKG).zip&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;JAR_FILE= $(PKG).jar&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;SO_FILE= $(LIB_PREFIX)$(PKG)$(LIB_EXT)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;DIST_DIR= $(PKG)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;# $Id: config,v 1.12 2006/12/22 14:06:40 thiago Exp $&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
6.之後進行編譯&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
make&lt;/blockquote&gt;
7.資料夾裡面有一個 附檔名jnilinb 的檔案： libluajava-1.1.jnilib&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
（三）使用ndk編譯 luajava&lt;br /&gt;
編譯方法就和 LINUX 一樣了&lt;br /&gt;
&lt;br /&gt;
1.先抓NDK&amp;nbsp;&lt;a href=&quot;http://developer.android.com/tools/sdk/ndk/index.html&quot;&gt;http://developer.android.com/tools/sdk/ndk/index.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
2.在抓高手調整好的androLua:&amp;nbsp;&lt;a href=&quot;https://github.com/mkottman/AndroLua&quot;&gt;https://github.com/mkottman/AndroLua&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
3.解壓縮後 裡面的 jni 直接 複製到 ndk 的目錄下&lt;br /&gt;
&lt;br /&gt;
4. 之後 就 ./ndk-build&lt;br /&gt;
&lt;br /&gt;
5.在LIBS/ARMEABI 中 就有 libluajava.so&lt;br /&gt;
&lt;br /&gt;
（四）導入 libgdx 專案&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghlRD3SDHB-TD7JqpqRNcfsiyvvyyQOZWrOWFV2mwQPAbLK6UtwycoyFMfkrG9bfUJnSB-ea12Jc4_ccgm5KRaUa0q9Rq8a81-LAsvMiow1Bf2CajeCbuG4VCktK6um5KHw1Ln_mx-xM1Y/s1600/androidlua.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghlRD3SDHB-TD7JqpqRNcfsiyvvyyQOZWrOWFV2mwQPAbLK6UtwycoyFMfkrG9bfUJnSB-ea12Jc4_ccgm5KRaUa0q9Rq8a81-LAsvMiow1Bf2CajeCbuG4VCktK6um5KHw1Ln_mx-xM1Y/s1600/androidlua.jpg&quot; width=&quot;576&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
這樣子 桌面版 和 手機版就都可以動了，就可以寫遊戲了，超棒。。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2013 10/11 更新&lt;br /&gt;
&lt;br /&gt;
專案必須增加 native library location的路徑， 否則會抓不到 luajava &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-xr_4iGBEitlCiRtMiAicFsqIor7uaSlJ02WFPkOJSJ1J3dHmbRs29LgiWF9tdip3LSGHY8N1uT5UPJ4C4OSf-Yz-zGLprp3BIysd6DBdXeHwQojmhWsqM3Y_k4l2cdkT9BD3KizcnEaI/s1600/lua_lib.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;443&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-xr_4iGBEitlCiRtMiAicFsqIor7uaSlJ02WFPkOJSJ1J3dHmbRs29LgiWF9tdip3LSGHY8N1uT5UPJ4C4OSf-Yz-zGLprp3BIysd6DBdXeHwQojmhWsqM3Y_k4l2cdkT9BD3KizcnEaI/s640/lua_lib.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Eclipse Lua Tool&lt;br /&gt;
1. &lt;a href=&quot;http://www.eclipse.org/koneki/ldt/#installation&quot;&gt;http://www.eclipse.org/koneki/ldt/#installation&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/9021439214998824478/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/9021439214998824478' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/9021439214998824478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/9021439214998824478'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2013/04/macandroid-lua-luajava-libgdx.html' title='【MAC】【Android】編譯 LUA 以及 LUAJAVA 並且導入 libgdx 專案'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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/AVvXsEghlRD3SDHB-TD7JqpqRNcfsiyvvyyQOZWrOWFV2mwQPAbLK6UtwycoyFMfkrG9bfUJnSB-ea12Jc4_ccgm5KRaUa0q9Rq8a81-LAsvMiow1Bf2CajeCbuG4VCktK6um5KHw1Ln_mx-xM1Y/s72-c/androidlua.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7089112285269738574.post-925904871146844659</id><published>2013-04-11T02:34:00.001-07:00</published><updated>2013-04-11T02:34:20.021-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="veryLittlePHP"/><title type='text'>「veryLittlePHP」  CREATE DB MODLE </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
「 My Framework API 」&lt;br /&gt;
&lt;br /&gt;
糟糕，自己寫的鬼框架都記不住了&amp;nbsp; 。 :(&lt;br /&gt;
&lt;br /&gt;
關於自動判別 insert or update DB 函數&lt;br /&gt;
&lt;br /&gt;
特色：&lt;br /&gt;
1.提供自動判別 INSERT AND UPDATE&lt;br /&gt;
2.DATALIST儲存值 KEY 自動過濾&lt;br /&gt;
&lt;br /&gt;
1.繼承 cx_db&lt;br /&gt;
2.在 __construct() 設定 Drives ( mysql or mssql）&lt;br /&gt;
3. $this-&amp;gt;autoSave( $TableName , $Pk , $DataList&amp;nbsp; );&lt;br /&gt;
&lt;br /&gt;
$TableName&amp;nbsp; :&amp;nbsp; 表名稱&lt;br /&gt;
$Pk : pk主鍵&lt;br /&gt;
$DataList :&amp;nbsp; 儲存資料陣列&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + 結構： $DataList[&amp;nbsp; {欄位名稱}&amp;nbsp; ]&amp;nbsp; =&amp;nbsp; {儲存的值} ；&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
範例：&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;class mod_file extends cx_db{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var $mTableName = &#39;sign_up_file&#39;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public function __construct( ) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;setDrives(&#39;mysql&#39;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; parent::__construct( );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public function getFileDataByXno($_year , $_sid){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;mConn-&amp;gt;setCxTitle( &quot;mod_file::getFileDataByXno 取得教師服務資料&quot; );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $_sql = &quot;SELECT * FROM sign_up_file where year=? and sid=? ;&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return $this-&amp;gt;sqlExec( $_sql, array($_year, $_sid )&amp;nbsp; )-&amp;gt;getArray(0);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public function saveFile($_arr){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;mConn-&amp;gt;setCxTitle( &quot;mod_file::saveFile 寫入資料&quot; );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //檢查 是否有資料&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $_uFData = $this-&amp;gt;getFileDataByXno($_arr[&#39;year&#39;] , $_arr[&#39;sid&#39;]);&lt;br /&gt;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if($_uFData == null or $_uFData == false or $_uFData == &#39;&#39;){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // &quot;insert&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }else{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // &quot;update&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $_arr[&#39;id&#39;] = $_uFData[&#39;id&#39;];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return $this-&amp;gt;autoSave( &#39;sign_up_file&#39;, &#39;id&#39;, $_arr );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/925904871146844659/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/925904871146844659' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/925904871146844659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/925904871146844659'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2013/04/verylittlephp-create-db-modle.html' title='「veryLittlePHP」  CREATE DB MODLE '/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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-7089112285269738574.post-5412348060216720552</id><published>2013-04-05T08:19:00.001-07:00</published><updated>2013-04-05T08:40:55.486-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Arch linux"/><title type='text'>「Arch」ERROR: Unable to find root device </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
最近 更新完就掛掉了，&lt;br /&gt;
開機寫着 ERROR: Unable to find root device 有的沒得。&lt;br /&gt;
&lt;br /&gt;
一 重新設定&lt;br /&gt;
參考： &lt;a href=&quot;http://www.erufenix.net/blog/solucinar-unable-to-find-root-device-en-archlinux/&quot;&gt;http://www.erufenix.net/blog/solucinar-unable-to-find-root-device-en-archlinux/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;1.準備新版的 ARCH LIVE CD&lt;br /&gt;
&lt;br /&gt;
2.進入後掛載自己的硬碟&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;mount /dev/sda4 /mnt&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;mount /dev/sda5 /mnt/boot&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;mount -t proc none /mnt/proc&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;mount -t sysfs none /mnt/sys&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;mount --bind /dev /mnt/dev&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
3.ROOT AS /MNT&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;chroot /mnt&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
4.更新 以及重新安裝 mkinitcpio&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;pacman -Syyu&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;pacman -S udev&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;pacman -S mkinitcpio&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
5.重新設定 mkinitcpio&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;mkinitcpio -p linux&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
6.重開機 OK&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
二 關於套件全部重新安裝&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;腳本：&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;code&gt;#! /bin/sh

for pkg in $(pacman -Q | cut -d&#39; &#39; -f1); do
    pacman -S --noconfirm $pkg
done&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/5412348060216720552/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/5412348060216720552' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/5412348060216720552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/5412348060216720552'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2013/04/archerror-unable-to-find-root-device.html' title='「Arch」ERROR: Unable to find root device '/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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-7089112285269738574.post-6036227024319516455</id><published>2012-10-07T02:21:00.004-07:00</published><updated>2012-10-07T16:11:33.600-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Arch linux"/><category scheme="http://www.blogger.com/atom/ns#" term="shell bash"/><category scheme="http://www.blogger.com/atom/ns#" term="攝影"/><title type='text'>「ARCH LINUX」 Ram Disk</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
前些日子，&lt;br /&gt;
&lt;div&gt;
聽了朋友述說RamDisk 的好處，&lt;/div&gt;
&lt;div&gt;
害我手癢也想弄弄看，而又剛好買了SSD，想說來個大重灌。&lt;/div&gt;
&lt;div&gt;
抓了2012 9月 最新的arch linux 發現，安裝方法似乎改變了。&lt;/div&gt;
&lt;div&gt;
以往的簡單選擇畫面消失了，取而代之的是終端機。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
看了&lt;a href=&quot;https://wiki.archlinux.org/index.php/Installation_Guide&quot;&gt;https://wiki.archlinux.org/index.php/Installation_Guide&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
安裝變得更簡單了，比起以前的藍色可怕的畫面好多了。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
裝好後發現，其實archlinux 預設就有開ramdisk 了，&lt;/div&gt;
&lt;div&gt;
所以就不需要去煩惱裝的問題了。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
設定可以參考&amp;nbsp;&lt;a href=&quot;https://wiki.archlinux.org/index.php/Ramdisk&quot;&gt;https://wiki.archlinux.org/index.php/Ramdisk&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
之後看了：&lt;a href=&quot;http://moto.debian.tw/viewtopic.php?t=13103&quot;&gt;http://moto.debian.tw/viewtopic.php?t=13103&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
的文章後，小弟也把 復原和備份的功能加入。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
小弟只備份 /tmp/cake_ramDisk 自己的資料夾而已。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
在/etc/rc.local.shutdown 加入&lt;/div&gt;
&lt;div&gt;
&lt;blockquote&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
# /etc/rc.local.shutdown: Local shutdown script.&lt;br /&gt;
#&lt;br /&gt;
PATH=/lib/init:/bin:/sbin&lt;br /&gt;
## bank radisk&lt;br /&gt;
rm /RAMDISK_bak.tar&lt;br /&gt;
tar -C /tmp/cake_ramDisk -cf /RAMDISK_bak.tar .&lt;br /&gt;
chmod 777 /RAMDISK_bak.tar&lt;br /&gt;
echo &quot;OK.&quot;&lt;br /&gt;
##---------bank radisk&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
在/etc/rc.local 加入&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
# /etc/rc.local: Local multi-user start-up script.&lt;br /&gt;
#&lt;br /&gt;
PATH=/lib/init:/bin:/sbin&lt;br /&gt;
mkdir /tmp/cake_ramDisk&lt;br /&gt;
chmod 777 /tmp/cake_ramDisk&lt;br /&gt;
if [ -f /RAMDISK_bak.tar ]&lt;br /&gt;
then&lt;br /&gt;
echo -n &quot;Restore tmpfs(/tmp) from /RAMDISK_bak.tar...&quot;&lt;br /&gt;
tar -C /tmp/cake_ramDisk -xf /RAMDISK_bak.tar&lt;br /&gt;
echo &quot;OK.&quot;&lt;br /&gt;
fi&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
之後馬上把eclipse 放入，就可以快快樂樂的打android 了。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;
假日到台中情人橋去看看，&lt;br /&gt;
剛好遇到夕陽黃昏，&lt;br /&gt;
雖然橋在整修，&lt;br /&gt;
不過還是很多人來此地。&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipDbkJp33StYA-t6TIDUC992Uu8IWJjp3nQmpU68xhqTJ8AdwIIcz5yqAGcumo-OuFc-fCk-CHSUCjB1_V5j-m_RCZg2iJNdjksLmUnorbuig2yz24YA9Q4wI_UCcnrMk2Id26rwlJjQ4J/s1600/sundial_reams_cx-1324.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;547&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipDbkJp33StYA-t6TIDUC992Uu8IWJjp3nQmpU68xhqTJ8AdwIIcz5yqAGcumo-OuFc-fCk-CHSUCjB1_V5j-m_RCZg2iJNdjksLmUnorbuig2yz24YA9Q4wI_UCcnrMk2Id26rwlJjQ4J/s640/sundial_reams_cx-1324.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/6036227024319516455/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/6036227024319516455' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/6036227024319516455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/6036227024319516455'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2012/10/arch-linux-ram-disk.html' title='「ARCH LINUX」 Ram Disk'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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/AVvXsEipDbkJp33StYA-t6TIDUC992Uu8IWJjp3nQmpU68xhqTJ8AdwIIcz5yqAGcumo-OuFc-fCk-CHSUCjB1_V5j-m_RCZg2iJNdjksLmUnorbuig2yz24YA9Q4wI_UCcnrMk2Id26rwlJjQ4J/s72-c/sundial_reams_cx-1324.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7089112285269738574.post-5513560198222674286</id><published>2012-08-12T07:33:00.003-07:00</published><updated>2012-10-07T16:11:47.365-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Arch linux"/><category scheme="http://www.blogger.com/atom/ns#" term="攝影"/><title type='text'>「Arch」 關於更新 glibc 問題</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
官方：&lt;a href=&quot;http://www.archlinux.org/news/the-lib-directory-becomes-a-symlink/&quot;&gt;http://www.archlinux.org/news/the-lib-directory-becomes-a-symlink/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;最近更新 的GLIBC問題，由於它把/lib 都轉移到 /usr/lib 目錄下，&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;導致更新出現無法更新的現象，小弟太急着更新，結果忘記 第二條的 &lt;span style=&quot;color: #3d85c6;&quot;&gt;pacman -Su&lt;/span&gt;。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;之後重開機，系統就缺東缺西，圖形界面也進不去，網路卡也抓不到，天阿。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;放入 LIVE CD，掛載 硬碟至 /mnt 目錄&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;鏈接網路後&lt;span style=&quot;color: #6fa8dc;&quot;&gt; #pacman -Syur /mnt --ignore glibc &lt;/span&gt;&lt;span style=&quot;color: #222222;&quot;&gt;&amp;nbsp;更新。&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;之後在進行&amp;nbsp;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&amp;nbsp;#pacman -Sur /mnt&lt;/span&gt;&lt;span style=&quot;color: #222222;&quot;&gt; ，&lt;/span&gt;不過這時出現&amp;nbsp;&lt;span style=&quot;color: #222222;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;glibc &amp;nbsp;/lib exists in filesystem&lt;/span&gt;&lt;span style=&quot;color: #222222;&quot;&gt;&amp;nbsp; 的錯誤。&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: #222222;&quot;&gt;&amp;nbsp;&lt;/span&gt;查看/lib目錄下的檔案是否都屬於glibc &lt;span style=&quot;color: #222222;&quot;&gt;&amp;nbsp;，&lt;/span&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;# find /lib -exec pacman -QO -- {} +&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;把除了 glibc 的套件移除或者都更新。&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;讓/lib 裡面只剩下 glibc&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;離開 live CD&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;進入系統後大概還是一樣，把 /lib/modules 資料夾直接刪除。&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;這次更新glibc 應該就沒問題了 &lt;span style=&quot;color: #6fa8dc;&quot;&gt;#pacman -S glibc&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;再重新裝一次linux 核心 &amp;nbsp;&lt;span style=&quot;color: #3d85c6;&quot;&gt;#pacman -S linux&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;這後reboot 後 ，皆大歡喜。&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
8月的草屯 還是依然美麗。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheJpF3xIZTvXl1EDXkE7f7Ae2sN5e68_CrVyam6hyphenhyphen07AYOuIxmv9UVv9tASN49VW-E2lqmTe2cZULpcE8D5jQ1EU0PTjA9OfrTMysnLFILsBNeAk5FTTmaIF9C9789eEWaR2jjz6339_XZ/s1600/01_HDRc2-cx1200.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;425&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheJpF3xIZTvXl1EDXkE7f7Ae2sN5e68_CrVyam6hyphenhyphen07AYOuIxmv9UVv9tASN49VW-E2lqmTe2cZULpcE8D5jQ1EU0PTjA9OfrTMysnLFILsBNeAk5FTTmaIF9C9789eEWaR2jjz6339_XZ/s640/01_HDRc2-cx1200.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/5513560198222674286/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/5513560198222674286' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/5513560198222674286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/5513560198222674286'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2012/08/arch-glibc.html' title='「Arch」 關於更新 glibc 問題'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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/AVvXsEheJpF3xIZTvXl1EDXkE7f7Ae2sN5e68_CrVyam6hyphenhyphen07AYOuIxmv9UVv9tASN49VW-E2lqmTe2cZULpcE8D5jQ1EU0PTjA9OfrTMysnLFILsBNeAk5FTTmaIF9C9789eEWaR2jjz6339_XZ/s72-c/01_HDRc2-cx1200.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7089112285269738574.post-4731367044911276727</id><published>2012-07-04T09:21:00.000-07:00</published><updated>2012-07-04T09:23:02.970-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CodeIgniter"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>「PHP CI」Form Validation</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
關於CI的單表驗證&lt;br /&gt;
網站介紹的很詳細：&lt;a href=&quot;http://codeigniter.com/user_guide/libraries/form_validation.html&quot;&gt;http://codeigniter.com/user_guide/libraries/form_validation.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
1.建立規則&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;$config=array( &amp;nbsp;//設定驗證規則&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;array(&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&#39;field&#39;=&amp;gt;&#39;name&#39;, &amp;nbsp;//input的name&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&#39;label&#39;=&amp;gt;&#39;帳號&#39;, &amp;nbsp; &amp;nbsp; //設定名稱，在輸出錯誤訊息時出現的名稱&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&#39;rules&#39;=&amp;gt;&#39;trim|required|min_length[4]|max_length[23]|xss_clean&#39; &amp;nbsp;//驗證使用的規則&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;),&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;array(&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;field&#39;=&amp;gt;&#39;passwd&#39;,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;label&#39;=&amp;gt;&#39;密碼&#39;,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;rules&#39;=&amp;gt;&#39;required|min_length[4]|max_length[25]|md5&#39;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;), &amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
2.設定規則&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;$this-&amp;gt;CI-&amp;gt;form_validation-&amp;gt;set_rules($config); &amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;
3.頁面POST回傳是否正確&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;$this-&amp;gt;CI-&amp;gt;form_validation-&amp;gt;run()&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
他提供相當多的驗證規則，相當方便，可以少寫很多CODE。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/4731367044911276727/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/4731367044911276727' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/4731367044911276727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/4731367044911276727'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2012/07/php-ciform-validation.html' title='「PHP CI」Form Validation'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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-7089112285269738574.post-2974097512142861283</id><published>2012-04-07T09:31:00.000-07:00</published><updated>2012-04-07T09:31:01.504-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="電影"/><title type='text'>「電影」讓子彈飛</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;st&quot;&gt;[讓&lt;em&gt;子彈飛&lt;/em&gt;&lt;/span&gt; ]一部好看的電影。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiotNB8i3GA7umwOQVM5CPusOBcr7oZeKH1nRx9IBlWcTyjF6mf6bZokxgiKWDFBHMlXjykpv00yJT2lTFu2NDjb_q3e2BGVoqpTWsLuQQ9kPmj5NWH3KAhyRoGyj43oT-w3TeEt_2Os7j5/s1600/%E5%AD%90%E5%BD%88.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;276&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiotNB8i3GA7umwOQVM5CPusOBcr7oZeKH1nRx9IBlWcTyjF6mf6bZokxgiKWDFBHMlXjykpv00yJT2lTFu2NDjb_q3e2BGVoqpTWsLuQQ9kPmj5NWH3KAhyRoGyj43oT-w3TeEt_2Os7j5/s640/%E5%AD%90%E5%BD%88.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
即使在巧妙的詭辯，精心的布局，最後贏得了勝利 卻贏不回當初的簡單。&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/2974097512142861283/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/2974097512142861283' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/2974097512142861283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/2974097512142861283'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2012/04/blog-post.html' title='「電影」讓子彈飛'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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/AVvXsEiotNB8i3GA7umwOQVM5CPusOBcr7oZeKH1nRx9IBlWcTyjF6mf6bZokxgiKWDFBHMlXjykpv00yJT2lTFu2NDjb_q3e2BGVoqpTWsLuQQ9kPmj5NWH3KAhyRoGyj43oT-w3TeEt_2Os7j5/s72-c/%E5%AD%90%E5%BD%88.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7089112285269738574.post-668903415521344647</id><published>2012-03-02T09:28:00.001-08:00</published><updated>2012-03-02T09:33:45.707-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Arch linux"/><category scheme="http://www.blogger.com/atom/ns#" term="CodeIgniter"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>「archLinux」  Postfix 使用 Gmail smtp</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;tr_bq&quot;&gt;
最近需要用到 MailServer ，以前也沒有這個經驗，&lt;/div&gt;
純粹是PHP smpt 寄信速度的問題，最後選擇了 postfix。&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
文章參考 &lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://sherlock.heroku.com/blog/2012/02/03/setting-up-postfix-to-use-gmail-as-an-smtp-relay-host-in-archlinux/&quot;&gt;http://sherlock.heroku.com/blog/2012/02/03/setting-up-postfix-to-use-gmail-as-an-smtp-relay-host-in-archlinux/&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://wiki.archlinux.org/index.php/Postfix&quot;&gt;archLinux WIki Postfix&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;
「安裝 postfix」&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp; #pacman -S postfix&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;「設定」在 /etc/postfix/main.cf&amp;nbsp;&amp;nbsp; 加入&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp; # 設定 gmail&lt;/span&gt;&lt;br style=&quot;color: #3d85c6;&quot; /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; relayhost = [smtp.gmail.com]:587&lt;/span&gt;&lt;br style=&quot;color: #3d85c6;&quot; /&gt;&lt;br style=&quot;color: #3d85c6;&quot; /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # 啟用 tls 認證&lt;/span&gt;&lt;br style=&quot;color: #3d85c6;&quot; /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; smtp_use_tls=yes&lt;/span&gt;&lt;br style=&quot;color: #3d85c6;&quot; /&gt;&lt;br style=&quot;color: #3d85c6;&quot; /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # use sasl when authenticating to foreign SMTP servers&lt;/span&gt;&lt;br style=&quot;color: #3d85c6;&quot; /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; smtp_sasl_auth_enable = yes&lt;/span&gt;&lt;br style=&quot;color: #3d85c6;&quot; /&gt;&lt;br style=&quot;color: #3d85c6;&quot; /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # 設定密碼路徑&lt;/span&gt;&lt;br style=&quot;color: #3d85c6;&quot; /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd&lt;/span&gt;&lt;br style=&quot;color: #3d85c6;&quot; /&gt;&lt;br style=&quot;color: #3d85c6;&quot; /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # list of CAs to trust when verifying server certificate&lt;/span&gt;&lt;br style=&quot;color: #3d85c6;&quot; /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt&lt;/span&gt;&lt;br style=&quot;color: #3d85c6;&quot; /&gt;&lt;br style=&quot;color: #3d85c6;&quot; /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # eliminates default security options which are incompatible with gmail&lt;/span&gt;&lt;br style=&quot;color: #3d85c6;&quot; /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; smtp_sasl_security_options = &lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;&amp;nbsp;「建立」在 /etc/postfix/sasl_passwd&amp;nbsp; (即密碼檔案路徑)&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [smtp.gmail.com]:587&amp;nbsp; username:password&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;&amp;nbsp;「執行」建立資料庫檔案&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&amp;nbsp; # postmap /etc/postfix/sasl_passwd &lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;&amp;nbsp;「啟動服務」&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&amp;nbsp; # rc.d start postfix&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;&amp;nbsp;「CodeIgniter」 使用 Email 類別&lt;br /&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: #3d85c6;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;load-&amp;gt;library(&#39;email&#39;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $config[&#39;protocol&#39;] = &#39;sendmail&#39;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $config[&#39;mailpath&#39;] = &#39;/usr/sbin/sendmail&#39;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $config[&#39;charset&#39;] = &#39;UTF-8&#39;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;email-&amp;gt;initialize($config);&lt;/blockquote&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/668903415521344647/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/668903415521344647' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/668903415521344647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/668903415521344647'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2012/03/archlinux-postfix-gmail-smtp.html' title='「archLinux」  Postfix 使用 Gmail smtp'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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-7089112285269738574.post-3270952658798670227</id><published>2011-09-12T05:36:00.000-07:00</published><updated>2013-03-09T12:20:09.958-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Arch linux"/><title type='text'>「arch linux」安裝 APACHE + Mercurial</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
沒記錄起來，下次就忘記了，記憶力越來越不可靠了。&lt;br /&gt;
「arch linux」安裝 APACHE + Mercurial&lt;br /&gt;
&lt;br /&gt;
「Apache 」&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;參考：&lt;a href=&quot;https://wiki.archlinux.org/index.php/LAMP&quot;&gt;https://wiki.archlinux.org/index.php/LAMP&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;fastcgi&amp;nbsp; 順便安裝進去 記得要在 /etc/httpd/conf 加入&amp;nbsp;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;LoadModule fastcgi_module modules/mod_fastcgi.so&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
「 Mercurial」&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;安裝 Mercuial&amp;nbsp;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;pacman -S mercurial&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;查詢安裝位置,可以發現他的lib都放在&amp;nbsp;/usr/lib/python2.7/site-packages/mercurial/&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;pacman -Ql mercurial&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;建立hgwebdir.cgi ,arch 沒有像ubuntu 有附&amp;nbsp;hgwebdir.cgi範例，最後找了老半天&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;python2.7 是對應 剛剛查的lib路徑裡面的python版本&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;blockquote&gt;
#!/usr/bin/env python2.7&lt;/blockquote&gt;
&lt;blockquote&gt;
from mercurial import demandimport; demandimport.enable()&lt;/blockquote&gt;
&lt;blockquote&gt;
import cgitb&lt;/blockquote&gt;
&lt;blockquote&gt;
cgitb.enable()&lt;/blockquote&gt;
&lt;blockquote&gt;
import os&lt;/blockquote&gt;
&lt;blockquote&gt;
os.environ[&quot;HGENCODING&quot;] = &quot;UTF-8&quot;&lt;/blockquote&gt;
&lt;blockquote&gt;
from mercurial.hgweb.hgwebdir_mod import hgwebdir&lt;/blockquote&gt;
&lt;blockquote&gt;
import mercurial.hgweb.wsgicgi as wsgicgi&lt;/blockquote&gt;
&lt;blockquote&gt;
application = hgwebdir(&#39;hgweb.config&#39;)&lt;/blockquote&gt;
&lt;blockquote&gt;
wsgicgi.launch(application)&lt;/blockquote&gt;
&lt;/div&gt;
&lt;blockquote&gt;
&lt;br /&gt;&lt;/blockquote&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;之後建立&amp;nbsp;hgweb.config&amp;nbsp;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;colletions 是你WEB的HG專案的位置,小弟是直接同步到Dropbox作備份了。&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;blockquote&gt;
[collections]&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote&gt;
/home/cake/Dropbox/jeff/Project/ = /home/cake/Dropbox/jeff/Project/&lt;/blockquote&gt;
&lt;blockquote&gt;
[web]&lt;/blockquote&gt;
&lt;blockquote&gt;
style = gitweb&lt;/blockquote&gt;
&lt;blockquote&gt;
allow_push = *&lt;/blockquote&gt;
&lt;blockquote&gt;
push_ssl = false&lt;/blockquote&gt;
&lt;blockquote&gt;
#allow_read = cake&lt;/blockquote&gt;
&lt;blockquote&gt;
[trusted]&lt;/blockquote&gt;
&lt;blockquote&gt;
users = *&lt;/blockquote&gt;
&lt;blockquote&gt;
#groups = *&lt;/blockquote&gt;
&lt;blockquote&gt;
[hooks]&lt;/blockquote&gt;
&lt;blockquote&gt;
#changegroup = hg update&lt;/blockquote&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;建立好的2個檔案 &amp;nbsp;hgwebdir.cgi &amp;nbsp;和&amp;nbsp;hgweb.config &amp;nbsp;需要在同個目錄,&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;檔案位置&amp;nbsp;看喜歡放在哪裡都行，不過不要弄丟了，權限也要設好。&lt;/li&gt;
&lt;li&gt;小弟放在&amp;nbsp;/srv/hg/cgi-bin/&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&amp;nbsp;建立虛擬目錄 編輯/etc/httpd/conf/httpd.conf 或者 你的設定檔&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;目錄要按照CGI自己的放的位置&lt;/li&gt;
&lt;li&gt;^/hg(.*)&amp;nbsp; 則是網址&lt;/li&gt;
&lt;li&gt;AuthUserFile 使用者檔案&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;div&gt;
&lt;blockquote&gt;
&lt;div&gt;
ScriptAliasMatch &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^/hg(.*) &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;/srv/hg/cgi-bin/hgwebdir.cgi$1&lt;/div&gt;
&lt;div&gt;
&amp;lt;Directory /home/cake/public_html/hg/cgi-bin/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Options ExecCGI FollowSymLinks&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;AllowOverride None&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;AddHandler cgi-script .cgi&lt;/div&gt;
&lt;div&gt;
&amp;lt;/Directory&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;Location /hg/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;AuthType Digest&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; AuthName &quot;mercurial&quot;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; #AuthDigestProvider file&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; AuthUserFile /srv/hg/hgusers&lt;/div&gt;
&lt;div&gt;
&amp;lt;/Location&amp;gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
詳細參考：&lt;a href=&quot;http://kevinjalbert.blogspot.com/2010/05/mercurial-setup-guide.html&quot;&gt;http://kevinjalbert.blogspot.com/2010/05/mercurial-setup-guide.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2013 - 03/10 - 更新&lt;br /&gt;
&lt;br /&gt;
關於APACHE CONFIG 設定 ，多那黃色的三行 就行跑。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;VirtualHost *&amp;gt;&lt;br /&gt;
ErrorLog &quot;/srv/apache_error_git.log&quot;&lt;br /&gt;
#cx&amp;nbsp;&amp;nbsp; hgwebdir.cgi&amp;nbsp;&amp;nbsp; /srv/hg/cgi-bin&lt;br /&gt;
#ScriptAlias /hg &quot;/srv/hg/cgi-bin/hg.cgi&quot;&lt;br /&gt;
&lt;br /&gt;
ScriptAliasMatch ^/hg(.*) /srv/hg/cgi-bin/hg.cgi$1&lt;br /&gt;
&amp;lt;Directory&amp;nbsp; /srv/hg/cgi-bin/&amp;gt;&lt;br /&gt;
Options ExecCGI FollowSymLinks&lt;br /&gt;
AllowOverride None&lt;br /&gt;
AddHandler cgi-script .cgi&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;background-color: #ffd966;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; Order allow,deny&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Allow from all&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Satisfy all&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Location&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /hg/&amp;gt;&lt;br /&gt;
&amp;nbsp;AuthType Digest&lt;br /&gt;
&amp;nbsp; AuthName &quot;mercurial&quot;&lt;br /&gt;
&amp;nbsp; #AuthDigestProvider file&lt;br /&gt;
&amp;nbsp; AuthUserFile /srv/hg/hgusers&lt;br /&gt;
&amp;lt;/Location&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/3270952658798670227/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/3270952658798670227' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/3270952658798670227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/3270952658798670227'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2011/09/arch-linux-apache-mercurial.html' title='「arch linux」安裝 APACHE + Mercurial'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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-7089112285269738574.post-3877538996839563544</id><published>2011-09-09T04:23:00.000-07:00</published><updated>2011-10-29T10:07:13.685-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Arch linux"/><title type='text'>「Arch Linux」安裝記錄</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
從去年 的Ubuntu 10.04 &amp;nbsp;-&amp;gt; 10.10 -&amp;gt; 11.04 -&amp;gt; 11.10 beta1&lt;br /&gt;
用了一年，最後還是掛掉了，以及那個 隨時都會跑出 “回報錯誤”的該死小框框，&lt;br /&gt;
而且回報錯誤還要打密碼....&lt;br /&gt;
最後只好殺掉來 嘗試看看 arch linux。&lt;br /&gt;
&lt;br /&gt;
[網路]&lt;br /&gt;
一開始安裝好後，是沒有pppoe 的功能，看了論壇之後得到了解答。&lt;br /&gt;
0.載入arch 的LIVE CD&lt;br /&gt;
1.掛載硬碟&lt;br /&gt;
&lt;blockquote&gt;
mount /dev/sdaX /mnt/disk&lt;/blockquote&gt;
2.ADSL上網 pppoe-setup pppoe-start&lt;br /&gt;
3.安裝pppoe ppp net-tool , &lt;br /&gt;
&lt;blockquote&gt;
pacman -r /mnt/disk -S rp-pppoe ppp&lt;/blockquote&gt;
&lt;br /&gt;
[配置]&lt;br /&gt;
1.安裝顯示卡（NVIDIA）&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;nvidia&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;pacman -S nvidia&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;設定檔&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;nvidia-xconfig&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div&gt;
2.安裝 滑鼠鍵盤&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;pacman -S xf86-input-keyboard&lt;/li&gt;
&lt;li&gt;pacman -S xf86-input-mouse&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
3.安裝 dbus&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;pacman -S dbus&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
4.安裝音效卡&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;pacman -S alsa-utils&lt;/li&gt;
&lt;li&gt;pacman -S alsa-oss&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
[設定檔]&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
1.編輯 /etc/rc.conf 修改DAEMONS，加入啟動&lt;/div&gt;
&lt;blockquote&gt;
DAEMONS=(syslog-ng network dbus crond alsa)&lt;/blockquote&gt;
[增加使用者]&lt;br /&gt;
adduser -m -s /usr/bin [YourUserNAME]&lt;br /&gt;
[群組] audio, lp,storage,vidieo,wheel,games,power,scanner&lt;br /&gt;
&lt;br /&gt;
[安裝Gnome]&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;pacman -Syu gnome&lt;/li&gt;
&lt;li&gt;pacman -S gnome-extra&lt;/li&gt;
&lt;li&gt;pacman -S gdm&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
[IBUS]&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;pacman -S ibus&lt;/li&gt;
&lt;li&gt;pacman -Ss ibus ，用搜尋 來看想裝的輸入法&lt;/li&gt;
&lt;li&gt;若安裝ibus-googlepingyin ,需要安裝 opencc 才可以轉繁體 &lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
[iBus 設定]&lt;br /&gt;
1.家目錄的 .bashrc&lt;br /&gt;
&lt;blockquote&gt;
export GTK_IM_MODULE=ibus&lt;br /&gt;
export XMODIFIERS=@im=ibus&lt;br /&gt;
export QT_IM_MODULE=ibus&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div&gt;
2.家目錄的 .profile&lt;/div&gt;
&lt;blockquote&gt;
export XMODIFIERS=@im=ibus&lt;br /&gt;
export GTK_IM_MODULE=xim&lt;br /&gt;
export QT_IM_MODULE=xim&lt;br /&gt;
ibus-daemon -d -x -r&lt;/blockquote&gt;
&lt;br /&gt;
[網路 改用 networkmanager]&lt;br /&gt;
參考&lt;br /&gt;
&lt;a href=&quot;https://wiki.archlinux.org/index.php/NetworkManager_%28%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87%29#Gnome.E7.8E.AF.E5.A2.83&quot;&gt;https://wiki.archlinux.org/index.php/NetworkManager_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)#Gnome.E7.8E.AF.E5.A2.83&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&amp;nbsp;pacman -S network-manager-applet&lt;/li&gt;
&lt;li&gt;pacman -S gnome-keyring&lt;/li&gt;
&lt;li&gt;在 rc.conf DAEMONS 取消network 增加 networkmanager&lt;/li&gt;
&lt;li&gt;&amp;nbsp;修改 /etc/NetworkManager/NetworkManager.conf&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
[main]&lt;/blockquote&gt;
&lt;blockquote&gt;
plugins=keyfile&lt;/blockquote&gt;
&lt;blockquote&gt;
[keyfile]&lt;/blockquote&gt;
&lt;blockquote&gt;
hostname=localhost&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div&gt;
[載入硬碟]&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;載入 不用密碼 [參考] ：&amp;nbsp;&lt;a href=&quot;http://playubuntu.blogspot.com/2011/08/gnomenautilusubuntuarch.html&quot;&gt;http://playubuntu.blogspot.com/2011/08/gnomenautilusubuntuarch.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;寫入問題 小弟安裝：ntfs-3g &amp;nbsp;，之後就沒問題了。。。。&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
[android SDK]&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;啟動 adb 會說缺少一個 lib ，那個lib 需要安裝 32位元的lib，pacman 找的到。&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
[END]&lt;br /&gt;
感覺很好用，可以只裝用的到的軟體。&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/3877538996839563544/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/3877538996839563544' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/3877538996839563544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/3877538996839563544'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2011/09/arch-linux.html' title='「Arch Linux」安裝記錄'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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-7089112285269738574.post-8732564649803009292</id><published>2011-08-29T02:18:00.000-07:00</published><updated>2011-08-31T01:13:55.412-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="lua"/><title type='text'>[LUA] 編譯 luajava</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
在 java 中使用 lua:&lt;br /&gt;
1.在&lt;a href=&quot;http://www.keplerproject.org/luajava/&quot;&gt;http://www.keplerproject.org/luajava/&lt;/a&gt;&amp;nbsp;抓luajava&lt;br /&gt;
2.在&lt;a href=&quot;http://luabinaries.sourceforge.net/download.html&quot;&gt;http://luabinaries.sourceforge.net/download.html&lt;/a&gt;&amp;nbsp;中 抓2進位版本。&lt;br /&gt;
小弟抓的是 &lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #dddddd; font-family: arial,helvetica,geneva,sans-serif; font-size: 15px;&quot;&gt;&lt;a href=&quot;http://sourceforge.net/projects/luabinaries/files/5.1.4/Linux%20Libraries/lua5_1_4_Linux26g4_64_lib.tar.gz/download&quot; style=&quot;color: #004080; font-weight: bold; text-decoration: none;&quot;&gt;lua5_1_4_Linux26g4_64_lib.tar.gz&lt;/a&gt;&lt;/span&gt;&amp;nbsp; ，&lt;br /&gt;
由于32位元編出來的 luajava.so 會在那該死的 jvm 出現 class: ELFCLASS32 &amp;nbsp;錯誤。&lt;br /&gt;
3.解壓縮 lua 和 luajava,之後 進入 luajava 的資料夾開啟 config 設定檔&lt;br /&gt;
4.設定&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;在這裏 lua資料夾叫做 lua64&lt;/li&gt;
&lt;li&gt;JDK 路徑，記得要設好。&lt;/li&gt;
&lt;li&gt;liblua.a 記得名字 要和 lua64 裏面那個一樣。&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
LUA_DIR= &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;/home/cake/lua64&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
LUA_LIBDIR= &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;/home/cake/lua64&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
LUA_INCLUDES= &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;/home/cake/lua64&lt;/span&gt;/include&amp;nbsp;&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
JDK= /usr/lib/jvm/&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;java-6-sun-1.6.0.26&lt;/span&gt;&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
LIB_LUA=$(LUA_LIBDIR)&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;/liblua.a&amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
5.編譯 打入 make &amp;nbsp; ,編譯好後 在luajava 會發現一個 .so檔,之後再發.so檔放入你的專案中&lt;br /&gt;
&lt;br /&gt;
6.在eclipse中，設定好 你的 native library 的路徑&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuyRNxjT4txR6DGDturUmb26_QEdd5DD9T5JRB13wmWevjKlnIIWhDGxcI5wU2A5EirFqF4AbNl52Q2Td_s_i86hyphenhyphenV-Q1ozFu-Y_KVR5kiziiZGgBtoaQPtwWxkguYymeKmCuxrsgF7kZe/s1600/java+lua.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;384&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuyRNxjT4txR6DGDturUmb26_QEdd5DD9T5JRB13wmWevjKlnIIWhDGxcI5wU2A5EirFqF4AbNl52Q2Td_s_i86hyphenhyphenV-Q1ozFu-Y_KVR5kiziiZGgBtoaQPtwWxkguYymeKmCuxrsgF7kZe/s640/java+lua.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
7.載入 luajava.jar 或 把luajava 的 java 原始碼 直接放進去。&lt;br /&gt;
&lt;br /&gt;
這樣大概就可以用了。。。。&lt;br /&gt;
弄了老半天，感覺比 android載lua 還麻煩。&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/8732564649803009292/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/8732564649803009292' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/8732564649803009292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/8732564649803009292'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2011/08/lua-luajava.html' title='[LUA] 編譯 luajava'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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/AVvXsEhuyRNxjT4txR6DGDturUmb26_QEdd5DD9T5JRB13wmWevjKlnIIWhDGxcI5wU2A5EirFqF4AbNl52Q2Td_s_i86hyphenhyphenV-Q1ozFu-Y_KVR5kiziiZGgBtoaQPtwWxkguYymeKmCuxrsgF7kZe/s72-c/java+lua.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7089112285269738574.post-7203128750790449652</id><published>2011-07-21T04:01:00.000-07:00</published><updated>2011-08-29T03:29:56.244-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gnome"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>［Ubuntu］ 11.10  Alpha 2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
為了讓VIM 中可以用IBUS 拼音輸入法 ，&lt;br /&gt;
以及 gedit 中 使用 fcitx 拼音輸入法，&lt;br /&gt;
這2個 輸入有問題 似乎是GTK3的BUG，&lt;br /&gt;
需要更新或者打補丁，只是小弟找不到FOR UBUNTU的補丁&lt;br /&gt;
最後只好更新到ALPHA2了，&lt;br /&gt;
它支援了gnome shell 和 unity 共存的環境了，&lt;br /&gt;
我很高興，不用再去裝一堆有的沒的， &lt;br /&gt;
登入的畫面 變成了 LightDM ，&lt;br /&gt;
不過登入了2次之後，就換回 GDM了，&lt;br /&gt;
在雙熒幕下&amp;nbsp; 它的登入置中位置變得蠻奇怪的。&lt;br /&gt;
最後還是不太習慣 Unity 的選單，&lt;br /&gt;
點了老半天，分類的字 小又密集，眼睛看了就好痛。&lt;br /&gt;
至少 gnome shell 選單的裏面的圖示夠大，看的很舒服。&lt;br /&gt;
&lt;br /&gt;
關于鼠標 ：&lt;br /&gt;
&lt;b style=&quot;color: #6fa8dc;&quot;&gt;gnome-tweak-tool&amp;nbsp;&lt;/b&gt; 來設定 鼠標，&lt;br /&gt;
裝 &lt;b&gt;&lt;span style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;sudo&lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;apt-get&lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;install&lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;dconf-tools&amp;nbsp;&lt;/span&gt;&lt;/b&gt; 可以開 &lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;dconf-editor&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;org -&amp;gt; gnome -&amp;gt; desktop -&amp;gt; interface&lt;/span&gt; =&amp;gt; cursor-theme&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: black;&quot;&gt;
在組態編輯器中 也要設定，不會發生2種鼠標&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;desktop-&amp;gt;gnome-&amp;gt;peripherals-&amp;gt;mouse&lt;/span&gt;&amp;nbsp; =&amp;gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt; cursor_theme&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;裏面設定你自己的鼠標名字&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrpw5yegcfCfE26Kq7phZlSPT3OuXnMdxmQdSlPHz7WY6bb7xY2_GBMFXivn4pk1tvP4ad-fiFEqVHimqNbJV1PzJA7QEipCh2-Jtz8Gb-o7_WAYAsBPUDPQXjCYYKG6QzB360GUnwSMBt/s1600/Screenshot+at+2011-07-22+00%253A04%253A31.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrpw5yegcfCfE26Kq7phZlSPT3OuXnMdxmQdSlPHz7WY6bb7xY2_GBMFXivn4pk1tvP4ad-fiFEqVHimqNbJV1PzJA7QEipCh2-Jtz8Gb-o7_WAYAsBPUDPQXjCYYKG6QzB360GUnwSMBt/s640/Screenshot+at+2011-07-22+00%253A04%253A31.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/7203128750790449652/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/7203128750790449652' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/7203128750790449652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/7203128750790449652'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2011/07/ubuntu-1110-alpha-2.html' title='［Ubuntu］ 11.10  Alpha 2'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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/AVvXsEjrpw5yegcfCfE26Kq7phZlSPT3OuXnMdxmQdSlPHz7WY6bb7xY2_GBMFXivn4pk1tvP4ad-fiFEqVHimqNbJV1PzJA7QEipCh2-Jtz8Gb-o7_WAYAsBPUDPQXjCYYKG6QzB360GUnwSMBt/s72-c/Screenshot+at+2011-07-22+00%253A04%253A31.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7089112285269738574.post-5867551968227065622</id><published>2011-07-10T06:01:00.000-07:00</published><updated>2011-07-10T06:02:24.860-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>「Ubuntu」卷軸問題</title><content type='html'>很討厭 自從更新到了11.04後，雖然畫面變得很多，使用方式新奇了很多，&lt;br /&gt;
可是呢&lt;br /&gt;
Eclipse的卷軸不見了。&lt;br /&gt;
在 /etc/X11/Xsession.d/ 中 新增80overlayscrollbars 的檔案&lt;br /&gt;
裏面加入&lt;br /&gt;
&lt;blockquote&gt;
export LIBOVERLAY_SCROLLBAR=0&lt;/blockquote&gt;
重開機後&lt;b style=&quot;color: red;&quot;&gt;所有視窗&lt;/b&gt;的卷軸就會變回以前那個樣子了，而不是新的小小的那個。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8UTot8TwaOh63Swfr19ZDEV8zM5Vr_mQE8epN44MUWJLrOLgaVcnTnkzbGpR_pWS5jMfSL0BJrBcOEPAJhA_EppxJYyZmuI8MHXTHUDXE_eLoqo-Avhdr-vnjWAZxy44K7oTemukpIoza/s1600/%25E5%258D%25B7%25E8%25BB%25B8.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8UTot8TwaOh63Swfr19ZDEV8zM5Vr_mQE8epN44MUWJLrOLgaVcnTnkzbGpR_pWS5jMfSL0BJrBcOEPAJhA_EppxJYyZmuI8MHXTHUDXE_eLoqo-Avhdr-vnjWAZxy44K7oTemukpIoza/s400/%25E5%258D%25B7%25E8%25BB%25B8.png&quot; width=&quot;168&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
卷軸不見了，滾輪是要滾到天荒地老哦。&lt;br /&gt;
遺憾的是 到現在小弟的GVIM中文還是打不出來。&lt;br /&gt;
&lt;br /&gt;
--------------------&lt;br /&gt;
最近 mplayer 看mkv ，發生錯誤 加入 -demuxer lavf 就可以了。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4wcsgKJOd3oIw8ojNd8jiYAeOrOv4_ZvRVIAua-CCG6_I21WV9ODUb1ntqSHdyHhxbTk7m9sD16oto-WApYsNdIKLvGYeY_1M4mopU0AAX_ikcpGKSkSdidKRvWxJ6qZXZRJQVvEtMZKO/s1600/Screenshot-2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;297&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4wcsgKJOd3oIw8ojNd8jiYAeOrOv4_ZvRVIAua-CCG6_I21WV9ODUb1ntqSHdyHhxbTk7m9sD16oto-WApYsNdIKLvGYeY_1M4mopU0AAX_ikcpGKSkSdidKRvWxJ6qZXZRJQVvEtMZKO/s640/Screenshot-2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/5867551968227065622/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/5867551968227065622' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/5867551968227065622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/5867551968227065622'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2011/07/ubuntu.html' title='「Ubuntu」卷軸問題'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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/AVvXsEi8UTot8TwaOh63Swfr19ZDEV8zM5Vr_mQE8epN44MUWJLrOLgaVcnTnkzbGpR_pWS5jMfSL0BJrBcOEPAJhA_EppxJYyZmuI8MHXTHUDXE_eLoqo-Avhdr-vnjWAZxy44K7oTemukpIoza/s72-c/%25E5%258D%25B7%25E8%25BB%25B8.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7089112285269738574.post-1002663277343293627</id><published>2011-07-07T01:27:00.000-07:00</published><updated>2011-07-07T05:16:47.724-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Greasemonkey"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><category scheme="http://www.blogger.com/atom/ns#" term="腳本"/><title type='text'>【JS】伊莉 玄幻魔法小說 閱讀 腳本</title><content type='html'>伊莉 玄幻魔法小說 閱讀 腳本&lt;br /&gt;
去年有寫一個看小說的腳本 ，只是最近打開發現 似乎不會動了。&lt;br /&gt;
把裡面的一些小問題修正後，再加入了 章節選擇的功能，&lt;br /&gt;
選擇功能只限定 第XXXX章，改天再來改別種的條件。 &lt;br /&gt;
1.需求： Firefox + &lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;a href=&quot;https://addons.mozilla.org/zh-tw/firefox/addon/scriptish/&quot;&gt;scriptish&lt;/a&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b style=&quot;font-weight: normal;&quot;&gt;2.腳本： &lt;a href=&quot;http://cxdata.googlecode.com/files/yilistory2-91.user.js&quot;&gt;http://cxdata.googlecode.com/files/yilistory2-91.user.js&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b style=&quot;font-weight: normal;&quot;&gt;P.S. 只針對 伊利 玄幻魔法小說 版。&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b style=&quot;font-weight: normal;&quot;&gt;功能：&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. 只留 文章內容。&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. 字體 放大縮小。&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. 按ESC 可以自動向下 捲軸。&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4. 章節 選擇功能(&lt;i&gt;new!!&lt;/i&gt;)&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b style=&quot;font-weight: normal;&quot;&gt;圖&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgihjbkBiezJaAwGJY1r-Xrq9x_0I58Z1Pzyc0ZMVMpirB8mYbuiZwLC6ht8sM8UZ_x6qO6L5myFMZZIxSgCz0k1309u5AB3Ac3dTM9sicqYNG3xLF74709_ymvxwIUeFC66C0U9NU7g5Wa/s1600/pf.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;329&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgihjbkBiezJaAwGJY1r-Xrq9x_0I58Z1Pzyc0ZMVMpirB8mYbuiZwLC6ht8sM8UZ_x6qO6L5myFMZZIxSgCz0k1309u5AB3Ac3dTM9sicqYNG3xLF74709_ymvxwIUeFC66C0U9NU7g5Wa/s640/pf.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp;影片範例：&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.blogger.com/video.g?token=AD6v5dz9lxQPgJiPb3aOuekJHH5PEYQeFOxEcsI5nXH7JKO9VuRb_VZ-UNdd4fAKn_S519nWVhDpJd6v84QWwj7IZw&#39; class=&#39;b-hbp-video b-uploaded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/1002663277343293627/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/1002663277343293627' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/1002663277343293627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/1002663277343293627'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2011/07/js.html' title='【JS】伊莉 玄幻魔法小說 閱讀 腳本'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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/AVvXsEgihjbkBiezJaAwGJY1r-Xrq9x_0I58Z1Pzyc0ZMVMpirB8mYbuiZwLC6ht8sM8UZ_x6qO6L5myFMZZIxSgCz0k1309u5AB3Ac3dTM9sicqYNG3xLF74709_ymvxwIUeFC66C0U9NU7g5Wa/s72-c/pf.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7089112285269738574.post-164093920442192830</id><published>2011-05-28T22:28:00.000-07:00</published><updated>2011-05-28T22:28:45.671-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>「Ubuntu」更新後無法進入 gnome3</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;幾天前點更新了全部的軟體，之後UNITY就可以進入了，&lt;br /&gt;
然而gnome3 反而進入了經典模式。。。&lt;br /&gt;
參考 ：http://forum.ubuntu.org.cn/ &lt;br /&gt;
在~/.config/autostart/gnome-shell.desktop 中 修改&lt;br /&gt;
&lt;blockquote&gt;[Desktop Entry]&lt;br /&gt;
Type=Application&lt;br /&gt;
Exec=gnome-shell --replace&lt;br /&gt;
Hidden=false&lt;br /&gt;
NoDisplay=false&lt;br /&gt;
X-GNOME-Autostart-enabled=true&lt;br /&gt;
Name[en_US]=Gnome Shell&lt;br /&gt;
Name=Gnome Shell&lt;br /&gt;
Comment[en_US]=&lt;br /&gt;
Comment=&lt;/blockquote&gt;之後就可以進入帥氣的模式了。 &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/164093920442192830/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/164093920442192830' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/164093920442192830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/164093920442192830'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2011/05/ubuntu-gnome3.html' title='「Ubuntu」更新後無法進入 gnome3'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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-7089112285269738574.post-4453584976665866596</id><published>2011-05-22T02:22:00.000-07:00</published><updated>2011-09-15T02:04:34.030-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="軟體"/><title type='text'>「UBUNTU」好用的音樂播放器。</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://www.foobnix.com/download?lang=en&quot;&gt;官方網站 http://www.foobnix.com/download?lang=en&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
在UBUNTU的音樂播放器上，我一直很想要有一個有分頁以及CUE支援的播放器。&lt;br /&gt;
在這個FOOBNIX上他都有，支援的平臺有LINUX，MAC，ANDROID，WINDOWS&lt;br /&gt;
&lt;strike&gt;他是一個很棒的播放器。&lt;/strike&gt;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE4jLeUe9TLmp2Ed97Nfonbcmv3Xhjd8bbH5B46T8_6uuAKR78plAlNQ2agGAcdDwxvpIiI_vVQf2Dnu1R0WDPcquHgCbEAobNm8YeItM2W8g3n3YB-pvG0ahajK_JVRjjZjrRLDt32KQ4/s1600/music2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;380&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE4jLeUe9TLmp2Ed97Nfonbcmv3Xhjd8bbH5B46T8_6uuAKR78plAlNQ2agGAcdDwxvpIiI_vVQf2Dnu1R0WDPcquHgCbEAobNm8YeItM2W8g3n3YB-pvG0ahajK_JVRjjZjrRLDt32KQ4/s640/music2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
---update&lt;br /&gt;
FOOBNIX 不是個好用的播放器，當掉的機率還蠻高的，&lt;br /&gt;
&lt;br /&gt;
Deadbeef 才是好用的播放器。&lt;strike&gt;&lt;br /&gt;
&lt;/strike&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/4453584976665866596/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/4453584976665866596' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/4453584976665866596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/4453584976665866596'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2011/05/ubuntufoobnix.html' title='「UBUNTU」好用的音樂播放器。'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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/AVvXsEjE4jLeUe9TLmp2Ed97Nfonbcmv3Xhjd8bbH5B46T8_6uuAKR78plAlNQ2agGAcdDwxvpIiI_vVQf2Dnu1R0WDPcquHgCbEAobNm8YeItM2W8g3n3YB-pvG0ahajK_JVRjjZjrRLDt32KQ4/s72-c/music2.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7089112285269738574.post-4037123051018732161</id><published>2011-05-08T03:53:00.000-07:00</published><updated>2011-09-04T00:21:17.125-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gnome"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>「Ubuntu11.04」gnome3 ibus 輸入 問題</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
升級11.04後，把原本的Unity換成 gnome3，&lt;br /&gt;
輸入法和gnome3似乎有衝突，&lt;br /&gt;
1.增加軟體來源 &lt;a href=&quot;https://launchpad.net/%7Eubuntugnometeam/+archive/gnome3%20%20&quot;&gt;鏈接&lt;/a&gt;&lt;br /&gt;
2.套件管理程式中把ibus-gtk 選擇 強製版本 gtk3&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj15RywTy74U7hiHTK-Z3qgtiWtw9PmKkpIIVoYaJAL9g27Fm_AXBGCyiNdl2f_mp6l69wP5pm8DEckBVGE3oxTqkQr9ST1o4zleX6jCUNEuOpn0_zmk78rwSCKsNFV6ttZjZ47Dvx-XQoR/s1600/gtk.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj15RywTy74U7hiHTK-Z3qgtiWtw9PmKkpIIVoYaJAL9g27Fm_AXBGCyiNdl2f_mp6l69wP5pm8DEckBVGE3oxTqkQr9ST1o4zleX6jCUNEuOpn0_zmk78rwSCKsNFV6ttZjZ47Dvx-XQoR/s640/gtk.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Update---&lt;br /&gt;
升級到11.10&amp;nbsp;&amp;nbsp;&amp;nbsp; IBUS 就可以正常使用了，&lt;br /&gt;
只是小弟跑去編譯最新的 IBUS，結果挂掉了。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: Arial; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://c782172004.blogspot.com/feeds/4037123051018732161/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7089112285269738574/4037123051018732161' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/4037123051018732161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7089112285269738574/posts/default/4037123051018732161'/><link rel='alternate' type='text/html' href='http://c782172004.blogspot.com/2011/05/ubuntu1104gnome3-ibus.html' title='「Ubuntu11.04」gnome3 ibus 輸入 問題'/><author><name>Golden-Cake</name><uri>http://www.blogger.com/profile/07561666241674344760</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/AVvXsEj15RywTy74U7hiHTK-Z3qgtiWtw9PmKkpIIVoYaJAL9g27Fm_AXBGCyiNdl2f_mp6l69wP5pm8DEckBVGE3oxTqkQr9ST1o4zleX6jCUNEuOpn0_zmk78rwSCKsNFV6ttZjZ47Dvx-XQoR/s72-c/gtk.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>