發表文章

Defy 刷機筆紀

Jetter原創教學 (mobile01) http://www.mobile01.com/topicdetail.php?f=567&t=2139005&last=28380177   全圖案補充版 http://jack089452.pixnet.net/blog/post/30323098-moto-defy-(mb525)-%E5%88%B7%E6%A9%9F%E6%95%99%E5%AD%B8-(2012-2-7%E6%9B%B4%E6%96%B0)  

Linux serial port programming: read always success but no vaild data

在非標準的輸入程序模式下, 輸入的資料不會被組合成一行而輸入後的處理功能 (清除, 殺掉, 刪除, 等等.) 都不能使用. 這個模式有兩個功能控制參數: c_cc[VTIME] 設定字元輸入時間計時器, 及 c_cc[VMIN] 設定滿足讀取功能的最低字元接收個數. 如果 MIN > 0 且 TIME = 0, MIN 設定為滿足讀取功能的最低字元接收個數. 由於 TIME 是 零, 所以計時器將不被使用. >>>block and wait for data 如果 MIN = 0 且 TIME > 0, TIME 將被當做逾時設定值. 滿足讀取功能的情況為讀取到單一字元, 或者超過 TIME 所定義的時間 (t = TIME *0.1 s). 如果超過 TIME 所定義的時間, 則不會傳回任何字元. 如果 MIN > 0 且 TIME > 0, TIME 將被當做一個分割字元組的計時器. 滿足讀取功能的條件為 接收到 MIN 個數的字元, 或兩個字元的間隔時間超過 TIME 所定義的值. 計時器會在每讀到一個字元後重新計時, 且只會在第一個字元收到後才會啟動. 如果 MIN = 0 且 TIME = 0, 讀取功能就馬上被滿足. 目前所存在的字元組個數, 或者 將回傳的字元組個數. 根據 Antonino (參考 貢獻) 所說, 你可以用 fcntl(fd, F_SETFL, FNDELAY); 在讀取前得到相同的結果. >>>default setting and result the read always return success without vaild data Reference: http://www.linux.org.tw/CLDP/OLD/Serial-Programming-HOWTO-3.html

SVN SSH 設定方法

連線方法為: svn co svn+ssh://username@serverip/pathtorepo 如要指定其他SSH service port: 修改  ~/.subversion/config 找以下字串 # ssh = $SVN_SSH ssh 置換為 ssh = $SVN_SSH ssh -p 12345 -q -o ControlMaster=no 其中12345就是SSH service port

Ubuntu 安裝 Apache2 加上 PAM管理

參考連結: http://blog.xuite.net/gbisland/linux/14229857 ^^注意在新版的Ubuntu 中 安裝套件的指令要修正為: sudo apt-get install apache2 apache2.2-common apache2-utils apache2-doc libapache2-svn subversion http://icephoenix.us/linuxunix/apache-and-http-authentication-with-pam/

小技巧: 設定MSN的自動掃毒 使用小紅傘

到官方網站 http://www.avira.com/en/support-download 抓這個scancl http://www.avira.com/en/support-download-avira-antivir-command-line-scanner-scancl 然後把壓縮包的東西解到avira的安裝目錄 接在MSN的"選項"=>"檔案傳輸" 勾選"使用下列軟體進行病毒掃描" 按"瀏覽"選取scancl的執行檔,並在最後加上%file%,範例如下 "C:\Program Files (x86)\Avira\AntiVir Desktop\scancl.exe" %file% 即可

CentOS5 安裝 bugzilla 筆記(2): LDAP 帳號認證設定

1  以管理者帳號登入,並進入"Administion->Parameters" 2  選擇「User Authentication」,修改下列參數: user_verify_class:LDAP,DB 此參數設定 Bugzilla 先以 LDAP 進行身份驗證,若驗證失敗則向 Bugzilla DB 進行身份驗證。 3 選擇「LDAP」,修改下列參數: LDAPserver:ldap://IPA.IPB.IPC.IPD/ <輸入 AD 主機的 IP> LDAPbinddn:cn=buguser,ou=Users,dc=company,dc=com:pass123 <輸入可搜尋 AD 資訊的使用者帳號密碼, 如果是匿名登入請保持這個欄位空白> LDAPBaseDN:ou=Users,dc=company,dc=com <輸入欲開始搜尋的根路徑, 依據LDAP server的資訊填入> 4 緊急狀況自救術 如果設定LDAP後發現資訊填錯導致完全無法登入Bugzilla 自然也無法進入後台設定 請修改這個檔案 "/var/lib/bugzilla/data/params" 搜尋 "user_verify_class"  然後把數值改成 'DB', 存檔離開後, 就可以再次登入Bugzilla了  延伸閱讀: CentOS5 安裝 bugzilla 筆記(1) http://riverhippo.blogspot.com/2010/09/centos5-bugzilla.html 架設 Bugzilla 與 AD 帳號整合(適用 Fedora Core 4 及 5 ) http://blog.yam.com/gavint/article/2676451 In Bugzilla, how can I change the password used for LDAP integration if I can’t login? http://rhyous.com/2010/04/19/in-bugzilla-how-can-i-change-the-password-used-for-ldap-integration-if-i-can...

CentOS5 安裝 redmine 1.0.2 筆記

1 增加RubyWorks 的Repo, 把以下內容存成  /etc/yum.repos.d/rubyworks.repo # Link file for RubyWorks yum repository # Place this file in /etc/yum.repos.d [rubyworks] name=RubyWorks baseurl=http://rubyworks.rubyforge.org/redhat/$releasever/RPMS/$basearch enabled=1 gpgcheck=1 gpgkey=http://rubyworks.rubyforge.org/RubyWorks.GPG.key priority=1 2 安裝 Ruby on Rails yum install ruby ruby-devel ruby-libs ruby-irb ruby-rdoc ruby-mysql 3 下載 Ruby Gems 並安裝 wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz tar xvfz rubygems-1.3.7.tgz cd rubygems-1.3.7 ruby setup.rb 4 安裝 Rails gem update -–system gem install rails -v=2.3.5 5 下載 RedMine 主程式 wget http://rubyforge.org/frs/download.php/72627/redmine-1.0.2.tar.gz tar xvzf redmine-1.0.2.tar.gz 6 建立redmine使用者 useradd redmine passwd redmine 7 建立redmine資料庫 mysql -u root -p create database redmine character set utf8; create user 'redmine'@'localhost' identified by 'my_password'; grant all privileg...