tag:blogger.com,1999:blog-121665232024-03-09T03:57:49.063+08:00隨手筆記隨手寫下個人筆記Unknownnoreply@blogger.comBlogger78125tag:blogger.com,1999:blog-12166523.post-14499802474655866032014-03-06T14:43:00.000+08:002014-03-06T14:43:04.394+08:00openSUSE 13.1 yast 的 GUI 介面無法正常運作openSUSE 13.1 YaST 在裝了 ruby 的 rvm 管理工具後會造成 yast 無法正常運作,解法很簡單,只需要使用 gem 安裝兩個套件即可解決。<br />
<blockquote class="tr_bq">
gem insatll fast_gettext<br />
gem insatll ruby-dbus
</blockquote>
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-12166523.post-61709695560069868272012-10-18T10:29:00.001+08:002012-10-18T10:29:10.640+08:00JSLint error: “Move the invocation into the parens that contain the function”現在大家很流行將 function 包裝成匿名 function,一方面可以避免太多全域變數,另外一方面可以封裝 function 以避免 function 被後來的 JavaScript 蓋台。底下是常用的匿名 function 建構方式:<br />
<pre><code>var myObj = (function () {
// 做你想做的事
})();</code></pre>
<a name='more'></a>但是,上述的方式若使用 JSLint 去檢查,都會出現這一個錯誤訊息「jslint:Move the invocation into the parens that contain the function.」
以往,我都會忽略這個錯誤訊息,而今找到了一個解法,只要將上述的 code 改成下方的方式就可以解決這個錯誤:
<br />
<pre><code>var myObj = (function () {
// 做你想做的事
}());</code></pre>
小小的變更一下第三行括號的位置即可。其實,括號的位置並不影響程式的運作,在這個網頁裡有個相當好的說明: <a href="http://stackoverflow.com/questions/4979252/jslint-error-move-the-invocation-into-the-parens-that-contain-the-function" target="_blank" title="http://stackoverflow.com/questions/4979252/jslint-error-move-the-invocation-into-the-parens-that-contain-the-function">http://stackoverflow.com/questions/4979252/jslint-error-move-the-invocation-into-the-parens-that-contain-the-function</a>
<br />
<hr />
To pass JSLint's criteria, it needs to be written like this:<br />
<br />
<code style="background-color: #f1f1f1; padding: 3px 7px 5px 7px;">}(jQuery));</code><br />
<br />
Though I think that particular criteria is a bit subjective. Both ways seem fine in my opinion.<br />
<br />
<code style="background-color: #f1f1f1; padding: 3px 7px 5px 7px;">(function () {})()</code> makes a bit more sense to me since you wrap the full function, then call it<br />
<br />
<code style="background-color: #f1f1f1; padding: 3px 7px 5px 7px;">(function () {}())</code> looks like you're wrapping the result of the function call in a parens ...Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-12166523.post-30298798690280242122012-07-30T10:37:00.003+08:002012-07-30T10:37:55.628+08:00Redmine v1.4.x 升級到 Redmine v2.0.x 的升級步驟<a href="http://draft.blogger.com/blogger.g?blogID=12166523" name="Redmine-v14x-升級到-Redmine-v20x-的升級步驟:"></a><br />
<h2>
Redmine v1.4.x 升級到 Redmine v2.0.x 的升級步驟:<a class="wiki-anchor" href="file:///C:/Users/Lichuan/Desktop/Redmine2.html#Redmine-v14x-升級到-Redmine-v20x-的升級步驟:">¶</a></h2>
<a href="http://draft.blogger.com/blogger.g?blogID=12166523" name="基本更新步驟:"></a><h3>
基本更新步驟:<a class="wiki-anchor" href="file:///C:/Users/Lichuan/Desktop/Redmine2.html#基本更新步驟:">¶</a></h3>
<ol>
<li>切換到安裝目錄:<br /><pre><code>cd /home/apps</code></pre>
</li>
<li>備份舊有的資料:<br /><pre><code>mv redmine redmine_bak</code></pre>
</li>
<li>取得最新的程式:<br /><pre><code>/usr/local/bin/svn co http://redmine.rubyforge.org/svn/branches/2.0-stable redmine</code></pre>
</li>
<li>複製資料庫設定、上傳檔案、Theme:<br /><pre><code>cp /home/apps/redmine_bak/config/database.yml /home/apps/redmine/config/
cp -ai /home/apps/redmine_bak/files/* /home/apps/redmine/files/
cp -ai /home/apps/redmine_bak/public/themes/* /home/apps/redmine/public/themes/</code></pre>
</li>
<li>Plugins:先不要安裝與更新,等下面步驟完成後再來處理。</li>
<li>切換到 redmine 根目錄中:<br /><pre><code>cd redmine</code></pre>
</li>
<li>更新 RubyGem:<br /><pre><code>gem update --system</code></pre>
</li>
<li>檢查並更新 gems:<br /><pre><code>bundle install --without development test postgresql</code></pre>
</li>
<li>Generate a session store secret:<br /><pre><code>rake generate_secret_token</code></pre>
</li>
<li>更新 Database Schema:<br /><pre><code>rake db:migrate RAILS_ENV=production</code></pre>
</li>
<li>更新 Plugins 的 Database Schema:<br /><pre><code>rake redmine:plugins:migrate RAILS_ENV=production</code></pre>
</li>
<li>清除 cache:<br /><pre><code>rake tmp:cache:clear
rake tmp:sessions:clear</code></pre>
</li>
<li>啟動 WEBrick web server 來進行測試:<br /><pre><code>ruby script/rails server webrick -e production</code></pre>
</li>
</ol>
<a href="http://draft.blogger.com/blogger.g?blogID=12166523" name="更新-Plugins:"></a><h3>
更新 Plugins:<a class="wiki-anchor" href="file:///C:/Users/Lichuan/Desktop/Redmine2.html#更新-Plugins:">¶</a></h3>
<ul>
<li>Redmine V2.0.x 的 Plugins 目錄從 Redmine V1.x 的 /vendor/plugins 移到 /plugins。</li>
<li>建議的更新方式是一個一個慢慢來,更新完成再進行下一個。</li>
<li>更新流程:(安裝一個 plugin 後,執行 3-5 步驟,確認沒有錯誤後,再安裝下一個 plugin) <ol>
<li>切換到 redmine 根目錄中:<br /><pre><code>cd redmine</code></pre>
</li>
<li>檢查並更新 gems (非必要,除非有提醒再執行):<br /><pre><code>bundle install --without development test postgresql</code></pre>
</li>
<li>安裝一個 Plugin:</li>
<li>更新 Database Schema:<br /><pre><code>rake db:migrate RAILS_ENV=production</code></pre>
</li>
<li>更新 Plugins 的 Database Schema:<br /><pre><code>rake redmine:plugins:migrate RAILS_ENV=production</code></pre>
</li>
<li>啟動 WEBrick web server 來進行測試:<br /><pre><code>ruby script/rails server webrick -e production</code></pre>
</li>
</ol>
</li>
</ul>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-12166523.post-83080135489491570462010-04-10T16:45:00.000+08:002010-04-10T16:45:00.088+08:00Google Earth 中文亂碼剛裝完 Google Earth 後,發現完全看不到中文字,幸好找到一篇解法:修正 Google Earth 在 Mandriva Linux 中的中文亂碼 ( <a href="http://yowlab.shps.kh.edu.tw/wordpress/?p=710">http://yowlab.shps.kh.edu.tw/wordpress/?p=710</a> )<br />
<br />
<ol style="background-color: #f4ffc4; border: 1px dotted; line-height: 2em; padding: 2px 35px;"><li>為了安全起見,把原來的程式改個名就好。</li>
<ul type="disc"><li>mv libQtCore.so.4 libQtCore.so.4.bak </li>
<li>mv libQtGui.so.4 libQtGui.so.4.bak </li>
<li>mv libQtNetwork.so.4 libQtNetwork.so.4.bak </li>
<li>mv libQtWebKit.so.4 libQtWebKit.so.4.bak </li>
</ul><li>把系統本身的 qt 相關程式做個軟連結過來</li>
<ul type="disc"><li>ln -s /usr/lib/libQtCore.so libQtCore.so.4 </li>
<li>ln -s /usr/lib/libQtGui.so.4.5.3 libQtGui.so.4 </li>
<li>ln -s /usr/lib/libQtNetwork.so.4.5.3 libQtNetwork.so.4 </li>
<li>ln -s /usr/lib/libQtWebKit.so.4.5.3 libQtWebKit.so.4 </li>
</ul><li>完工,Google Earth 會出現正常中文字了。</li>
</ol>想http://www.blogger.com/profile/13341024946789148586noreply@blogger.com0tag:blogger.com,1999:blog-12166523.post-91948555947712813562010-04-08T11:00:00.001+08:002010-04-08T11:06:43.234+08:00尋找過期的檔案<blockquote><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> find ./ \( -path "./base" -o -path "./user" \) -name "*.php" -o -exec fgrep -l "Zend" {} \; -exec php {} \; | grep "expire" </span></blockquote>想http://www.blogger.com/profile/13341024946789148586noreply@blogger.com0tag:blogger.com,1999:blog-12166523.post-41802038006638883582010-03-31T23:19:00.002+08:002010-03-31T23:23:18.637+08:00CSS Hack: Quick Tip: How to Target IE6, IE7, and IE8 Uniquely with 4 Characters資料來源: Quick Tip: How to Target IE6, IE7, and IE8 Uniquely with 4 Characters (<a href="http://net.tutsplus.com/tutorials/html-css-techniques/quick-tip-how-to-target-ie6-ie7-and-ie8-uniquely-with-4-characters/">http://net.tutsplus.com/tutorials/html-css-techniques/quick-tip-how-to-target-ie6-ie7-and-ie8-uniquely-with-4-characters/</a>)<br /><blockquote><pre>body {<br /> color: red; /* all browsers, of course */<br /> color : green\9; /* IE8 and below */<br /> *color : yellow; /* IE7 and below */<br /> _color : orange; /* IE6 */<br />}</pre></blockquote>想http://www.blogger.com/profile/13341024946789148586noreply@blogger.com0tag:blogger.com,1999:blog-12166523.post-29556053924109349012010-03-23T23:18:00.004+08:002010-03-23T23:26:23.890+08:00rsyslog 接收外部 log 設定 (openSUSE)編輯 /etc/rsyslog.d/remote.conf 這個檔案,將<br /><blockquote># UDP Syslog Server:<br /><span style="color: rgb(51, 102, 255);">#</span>$ModLoad imudp.so # provides UDP syslog reception<br /><span style="color: rgb(51, 102, 255);">#</span>$UDPServerRun 514 # start a UDP syslog server at standard port 514</blockquote>改為<blockquote># UDP Syslog Server:<br />$ModLoad imudp.so # provides UDP syslog reception<br />$UDPServerRun 514 # start a UDP syslog server at standard port 514</blockquote>相關參考資料:<br /><ul><li>馬古拉的網路筆記本 ( <a href="http://www.wretch.cc/blog/magurayu/22990954">http://www.wretch.cc/blog/magurayu/22990954</a> )</li><li>鳥哥的 Linux 私房菜 -- 登錄檔的分析啦! ( <a href="http://linux.vbird.org/linux_basic/0570syslog.php">http://linux.vbird.org/linux_basic/0570syslog.php</a> )</li></ul>想http://www.blogger.com/profile/13341024946789148586noreply@blogger.com0tag:blogger.com,1999:blog-12166523.post-9654293897356673642010-03-23T09:50:00.002+08:002010-03-23T09:52:00.748+08:00CSS HackCSS Hack<br /><blockquote>/* Firefox (Begin) */<br />#valignMiddle #middleField, x:-moz-any-link {<br /> /* styles for Firefox 2.0 or older*/<br /> margin: 3px 1px 0 3px;<br />}<br />#valignMiddle #middleField, x:-moz-any-link, x:default {<br /> /* restore styles for Firefox 3.0 and newer */<br /> margin: 3px 228px 0 228px;<br />}<br />/* Firefox (End) */<br />/* IE (Begin) */<br />#valignMiddle #middleField {<br /> #margin: 0 228px 0 228px;<br />}<br />/* IE (End) */</blockquote>想http://www.blogger.com/profile/13341024946789148586noreply@blogger.com0tag:blogger.com,1999:blog-12166523.post-92062005901223517982010-03-23T00:19:00.002+08:002010-03-23T09:52:40.000+08:00立即載入 wacom.ko<pre># insmod /lib/modules/$(uname -r)/kernel/drivers/input/tablet/wacom.ko<br /># depmod -e</pre>想http://www.blogger.com/profile/13341024946789148586noreply@blogger.com0tag:blogger.com,1999:blog-12166523.post-42066493685070677122010-03-18T19:48:00.000+08:002010-03-18T19:48:11.480+08:00將 CTH-460 的觸控模式關掉,只留筆控的模式只需執行底下的指令即可。<br />
<blockquote>$ xsetwacom set touch Touch off</blockquote>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-12166523.post-28724238964708846872010-03-17T23:26:00.001+08:002010-03-17T23:30:51.370+08:00WACOM Bamboo Pen & Touch 在 openSUSE 的設定嘗試了許久,終於將 WACOM CTH-460/K0 Bamboo Pen & Touch 成功驅動,也可以正常使用,也因此決定灌溉一下這荒廢已久的 Blog。<br />
<br />
首先的準備工作不可少,先透過 zypper 或 yast2 將 kernel-source 與 gcc 等編譯時所需的軟體先安裝好,接下來就開始準備編譯 wacom linux 的驅動程式了。<br />
<br />
編譯時所需的 kernel source,在 openSUSE 底下它將 souce 與 lib object 分成兩個目錄存放,造成編譯時會無法建立 kernel 所需的 wacom.ko 檔。想要解決這個問題,一個是修改 Makefile (我不會修改 Orz),另外一個就是像我這樣的笨方法,將 source 與 lib object 合併放在一起。<br />
<blockquote>$ cd /usr/src/linux-2.6.31.12-0.1-obj/i386<br />
$ mkdir mybuild (名稱隨便,自己喜歡就好)<br />
$ cp -r /lib/modules/$(uname -r)/source/* ./mybuild/<br />
$ cp -r /lib/modules/$(uname -r)/build/* ./mybuild/</blockquote>這樣就產生了等下編譯時所需的 kernel source<br />
<br />
接著,到 The Linux Wacom Project ( http://linuxwacom.sourceforge.net/ ) 將 v0.8.5-11 下載,解壓縮,編驅動程式。<br />
<blockquote>$ tar jxvf linuxwacom-0.8.5-11.tar.bz2<br />
$ cd linuxwacom-0.8.5-11<br />
$ ./configure --enable-wacom --with-kernel=/usr/src/linux-2.6.31.12-0.1-obj/i386/mybuild<br />
$ make<br />
$ make install<br />
$ mv /lib/modules/$(uname -r)/kernel/drivers/input/tablet/wacom.ko /root (備份 wacom.ko)<br />
$ cp ./src/2.6.27/wacom.ko /lib/modules/$(uname -r)/kernel/drivers/input/tablet/</blockquote>其次,建立 10-wacom.fdi。在 Re: Bamboo pen CTL-460 on opensuse 11.2 linux ( http://old.nabble.com/Bamboo-pen-CTL-460-on-opensuse-11.2-linux-td27198192.html#a27200334 ) 這一篇,可以找到所需的資料<br />
<blockquote>$ cd /usr/share/hal/fdi/policy/20thirdparty/<br />
$ vim 10-wacom.fdi (詳細內容可在上面的連結找到,或是底下的文字)</blockquote><blockquote><?xml version="1.0" encoding="ISO-8859-1"?><br />
<br />
<!-- Wacom: tablets, tablet pc's, and touch screen laptops --><br />
<deviceinfo version="0.2"><br />
<!-- for all Wacom USB tablets --><br />
<device><br />
<match key="input.originating_device" contains="if0"><br />
<match key="info.product" contains="Wacom"><br />
<merge key="input.x11_driver" type="string">wacom</merge><br />
<merge key="input.x11_options.Type" type="string">stylus</merge><br />
<append key="info.callouts.add" type="strlist">hal-setup-wacom</append><br />
<append key="wacom.types" type="strlist">eraser</append><br />
<append key="wacom.types" type="strlist">cursor</append><br />
<append key="wacom.types" type="strlist">pad</append><br />
<!-- for HP dv3-2250 multi-touch laptop --><br />
<match key="info.udi" contains="e2"><br />
<merge key="input.x11_options.Type" type="string">touch</merge><br />
</match><br />
</match><br />
</match><br />
</device><br />
<!-- for most Wacom USB tablets with touch --><br />
<device><br />
<match key="input.originating_device" contains="if1"><br />
<match key="info.product" contains="Wacom"><br />
<merge key="input.x11_driver" type="string">wacom</merge><br />
<merge key="input.x11_options.Type" type="string">touch</merge><br />
<!-- for Bamboo Pen & Touch tablets --><br />
<append key="info.callouts.add" type="strlist">hal-setup-wacom</append><br />
<append key="wacom.types" type="strlist">pad</append><br />
</match><br />
</match><br />
</device><br />
<!-- for Wacom Serial tablets --><br />
<device><br />
<match key="info.capabilities" contains="serial"><br />
<match key="@info.parent:pnp.id" contains_outof="WACf;FUJ02e5;FUJ02e7"><br />
<append key="info.capabilities" type="strlist">input</append><br />
<merge key="input.x11_driver" type="string">wacom</merge><br />
<merge key="input.x11_options.Type" type="string">stylus</merge><br />
<merge key="input.x11_options.ForceDevice" type="string">ISDV4</merge><br />
<merge key="input.device" type="copy_property">serial.device</merge><br />
<append key="info.callouts.add" type="strlist">hal-setup-wacom</append><br />
<append key="wacom.types" type="strlist">eraser</append><br />
<append key="wacom.types" type="strlist">cursor</append><br />
<!-- Serial tablets with touch capabilities --><br />
<match key="@info.parent:pnp.id" contains_outof="WACf008;WACf009;WACf010;WACf008A;WACf00B;WACf00C;WACf00D;WACf00E;FUJ02e7"><br />
<append key="wacom.types" type="strlist">touch</append><br />
</match><br />
<!-- Serial tablets that operate at higher baud rate --><br />
<match key="@info.parent:pnp.id" contains_outof="WACf008"><br />
<merge key="input.x11_options.BaudRate" type="string">38400</merge><br />
</match><br />
</match><br />
</match><br />
</device><br />
<!-- Match the Wacom Bluetooth A5 pen tablet --><br />
<device><br />
<match key="info.capabilities" contains="input.mouse"><br />
<match key="info.product" contains="WACOM"><br />
<match key="info.product" contains="Tablet"><br />
<merge key="input.x11_driver" type="string">wacom</merge><br />
<merge key="input.x11_options.Type" type="string">stylus</merge><br />
<append key="info.callouts.add" type="strlist">hal-setup-wacom</append><br />
<append key="wacom.types" type="strlist">eraser</append><br />
<append key="wacom.types" type="strlist">cursor</append><br />
</match><br />
</match><br />
</match><br />
</device><br />
<!-- Wacom names "parser" --><br />
<device><br />
<match key="info.udi" contains_not="subdev_0"><br />
<match key="info.udi" contains_not="subdev_1"><br />
<match key="info.udi" contains_not="subdev_2"><br />
<match key="input.x11_options.Type" contains="stylus"><br />
<merge key="info.product" type="string">stylus</merge><br />
</match><br />
<match key="input.x11_options.Type" contains="eraser"><br />
<merge key="info.product" type="string">eraser</merge><br />
</match><br />
<match key="input.x11_options.Type" contains="cursor"><br />
<merge key="info.product" type="string">cursor</merge><br />
</match><br />
<match key="input.x11_options.Type" contains="pad"><br />
<merge key="info.product" type="string">pad</merge><br />
</match><br />
<match key="input.x11_options.Type" contains="touch"><br />
<merge key="info.product" type="string">touch</merge><br />
</match><br />
</match><br />
</match><br />
</match><br />
</device><br />
</deviceinfo> </blockquote>至於,60-wacom.rules 這個檔案要不要建,應該是不用,不過我是有建。<br />
<blockquote>$ cd /etc/udev/rules.d<br />
$ vim 60-wacom.rules (詳細內容可在上面的連結找到,或是底下的文字)</blockquote><blockquote># udev rules for wacom tablets. <br />
# These rules were compiled for the Debian GNU/Linux distribution, <br />
# but others may, and indeed are encouraged to, use them also. <br />
# <br />
# Should you do so, PLEASE CO-ORDINATE ANY CHANGES OR ADDITIONS <br />
# of new devices with Ron so that we can try <br />
# to present users with a standard set of device nodes <br />
# which they can rely on across the board. <br />
<br />
KERNEL!="event[0-9]*", GOTO="wacom_end" <br />
<br />
# Port specific link for users of multiple tablets of the same type. <br />
# The ID_PATH variable is set by the "path_id" script in an earlier rule file. <br />
ATTRS{idVendor}=="056a", ENV{ID_PATH}=="?*", SYMLINK="input/by-path/$env{ID_PATH}-wacom" <br />
<br />
# Multiple interface support for stylus and touch devices. <br />
DRIVERS=="wacom", ATTRS{bInterfaceNumber}=="00", ENV{WACOM_TYPE}="stylus" <br />
DRIVERS=="wacom", ATTRS{bInterfaceNumber}=="01", ENV{WACOM_TYPE}="touch" <br />
<br />
# Type-named links for multiple tablets. If you want to use multiple <br />
# tablets of the _same_ type, you will probably need to use the links <br />
# from /dev/input/by-path to identify which is plugged into what usb <br />
# port. For different tablet types though, just pick your links from <br />
# the list below. <br />
# <br />
# We override SYMLINK for tabletpc devices because the by-path link <br />
# is not required with such devices, there will only ever be one. <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0000", SYMLINK+="input/tablet-penpartner" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0003", SYMLINK+="input/tablet-cintiq_partner" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0010", SYMLINK+="input/tablet-graphire" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0011", SYMLINK+="input/tablet-graphire2-4x5" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0012", SYMLINK+="input/tablet-graphire2-5x7" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0013", SYMLINK+="input/tablet-graphire3" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0014", SYMLINK+="input/tablet-graphire3-6x8" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0015", SYMLINK+="input/tablet-graphire4-4x5" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0016", SYMLINK+="input/tablet-graphire4-6x8" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0017", SYMLINK+="input/tablet-bamboofun-4x5" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0018", SYMLINK+="input/tablet-bamboofun-6x8" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0019", SYMLINK+="input/tablet-bamboo1-medium" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0020", SYMLINK+="input/tablet-intuos-4x5" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0021", SYMLINK+="input/tablet-intuos-6x8" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0022", SYMLINK+="input/tablet-intuos-9x12" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0023", SYMLINK+="input/tablet-intuos-12x12" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0024", SYMLINK+="input/tablet-intuos-12x18" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0030", SYMLINK+="input/tablet-pl400" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0031", SYMLINK+="input/tablet-pl500" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0032", SYMLINK+="input/tablet-pl600" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0033", SYMLINK+="input/tablet-pl600sx" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0034", SYMLINK+="input/tablet-pl550" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0035", SYMLINK+="input/tablet-pl800" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0037", SYMLINK+="input/tablet-pl700" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0038", SYMLINK+="input/tablet-pl510" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0039", SYMLINK+="input/tablet-dtu710" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="003f", SYMLINK+="input/tablet-cintiq21ux" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0041", SYMLINK+="input/tablet-intuos2-4x5" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0042", SYMLINK+="input/tablet-intuos2-6x8" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0043", SYMLINK+="input/tablet-intuos2-9x12" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0044", SYMLINK+="input/tablet-intuos2-12x12" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0045", SYMLINK+="input/tablet-intuos2-12x18" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0047", SYMLINK+="input/tablet-intuos2-6x8a" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0060", SYMLINK+="input/tablet-volito" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0061", SYMLINK+="input/tablet-penstation2" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0062", SYMLINK+="input/tablet-volito2-4x5" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0063", SYMLINK+="input/tablet-volito2-2x3" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0064", SYMLINK+="input/tablet-penpartner2" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0065", SYMLINK+="input/tablet-bamboo" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0069", SYMLINK+="input/tablet-bamboo1" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0081", SYMLINK+="input/tablet-graphire_bt-6x8" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0090", SYMLINK="input/tablet-tpc90" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0093", SYMLINK="input/tablet-tpc93-$env{WACOM_TYPE}" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="009a", SYMLINK="input/tablet-tpc9a-$env{WACOM_TYPE}" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00b0", SYMLINK+="input/tablet-intuos3-4x5" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00b1", SYMLINK+="input/tablet-intuos3-6x8" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00b2", SYMLINK+="input/tablet-intuos3-9x12" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00b3", SYMLINK+="input/tablet-intuos3-12x12" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00b4", SYMLINK+="input/tablet-intuos3-12x19" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00b5", SYMLINK+="input/tablet-intuos3-6x11" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00b7", SYMLINK+="input/tablet-intuos3-4x6" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00b8", SYMLINK+="input/tablet-intuos4-4x6" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00b9", SYMLINK+="input/tablet-intuos4-6x9" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00ba", SYMLINK+="input/tablet-intuos4-8x13" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00bb", SYMLINK+="input/tablet-intuos4-12x19" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00c0", SYMLINK+="input/tablet-dtf521" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00c4", SYMLINK+="input/tablet-dtf720" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00c5", SYMLINK+="input/tablet-cintiq20wsx" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00c6", SYMLINK+="input/tablet-cintiq12wx" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00c7", ENV{WACOM_TYPE}!="touch", SYMLINK+="input/tablet-dtu1931" <br />
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00d1", SYMLINK+="input/tablet-bamboo-pt" <br />
<br />
# Convenience links for the common case of a single tablet. We could do just this: <br />
#ATTRS{idVendor}=="056a", SYMLINK+="input/wacom-$env{WACOM_TYPE}" <br />
# but for legacy reasons, we keep the input/wacom link as the generic stylus device. <br />
ATTRS{idVendor}=="056a", ENV{WACOM_TYPE}!="touch", SYMLINK+="input/wacom" <br />
ATTRS{idVendor}=="056a", ENV{WACOM_TYPE}=="touch", SYMLINK+="input/wacom-touch" <br />
<br />
# Check and repossess the device if a module other than the wacom one <br />
# is already bound to it. <br />
ATTRS{idVendor}=="056a", ACTION=="add", RUN+="check_driver wacom $devpath $env{ID_BUS}" <br />
<br />
LABEL="wacom_end" </blockquote>最後重開機,就可以享受使用觸控板的快感了。 (應該啦~我逃~)Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-12166523.post-50712797193893561992008-12-29T10:19:00.001+08:002008-12-29T10:19:57.854+08:00無題~~既然你誠心誠意的發問了<br />我們就大發慈悲的告訴你<br />為了防止人們被解僱<br />為了改善台灣的經濟<br />貫徹愛與花錢的欲望<br />可愛又迷人的敗家角色<br />武藏!<br />小次郎!<br />我們是穿梭在銀河中的「消費券」<br />白洞、白色的明天正等著我們<br />就是這樣喵!想http://www.blogger.com/profile/13341024946789148586noreply@blogger.com0tag:blogger.com,1999:blog-12166523.post-40555121221705076402008-09-03T15:26:00.002+08:002008-09-03T15:29:21.250+08:00Google Chrome 的密技?引用來源:<a href="http://www.mobile01.com/print.php?f=110&t=755918&p=6&v=7897991">http://www.mobile01.com/print.php?f=110&t=755918&p=6&v=7897991</a><br /><br />about:memory - 顯示記憶體使用狀況<br />about:version - 顯示當前版本 也可以是chrome-resource://about/<br />about:plugins - 顯示已安裝插件<br />about:histograms - 顯示歷史記錄<br />about:dns - 顯示DNS狀態<br />about:cache - 重定向到 view-cache: 顯示緩存頁面<br />view-cache:stats - 緩存狀態<br />about:stats - 顯示狀態<br />about:network - 很酷的網絡工具<br />about:internets - 水管?<br />chrome-resource://new-tab/ - 新標籤頁想http://www.blogger.com/profile/13341024946789148586noreply@blogger.com0tag:blogger.com,1999:blog-12166523.post-85878194172177174852008-08-26T10:08:00.003+08:002008-08-26T10:12:21.569+08:00Pidgin v2.5.0 的 MSN 無法連線Pidgin v2.5.0 釋出有一陣子了,雖然喜歡它可以傳送自訂表情給朋友的新功能,但是連線卻變得非常不穩定,常常上上下下的,後來乾脆放棄了,回頭用起的 v2.4.3,雖然沒有那些新功能可用,卻勝在連線穩定。Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-12166523.post-49711826890601541972008-08-07T21:36:00.008+08:002008-08-08T11:18:14.603+08:00環境參數的問題最近剛好解決了 Firefox 3 在 openSUSE 11 底下無法正常關閉的問題,也解決了 Beyond Compare 3 Linux 版 無法執行的問題,而這兩件事剛好都是系統環境參數所導致的。<br /><br />自從將 openSUSE 升級到 11 之後,Firefox 3 就無法正常關閉需要將 process 直接 kill 掉,不然就是更新套件後,重新啟動時突然掛掉,忍了這麼久,就上網找找看有沒有人也遇到相同的問題,結果還真的有,解法也很簡單,就是調整系統環境參數 GTK_IM_MODULE=xim,網路上建議修改的參數的位置有兩個,一個是修改 firefox 的啟動 script,另一個是修改 ~/.profile,而我是採用第一個作法。<br /><br />在 openSUSE 11 底下,firefox 的啟動 script 是在 /usr/bin/firefox,修改的片段如下:<br /><blockquote># needed for SUN Java under Xorg >= 7.2<br />export LIBXCB_ALLOW_SLOPPY_LOCK=1<br /><br /><span style="color: rgb(51, 102, 255);">export GTK_IM_MODULE=xim</span></blockquote><br /><br /><a href="http://www.scootersoftware.com/">Beyond Compare</a> 2 是一套需要收費,但蠻不錯的檔案比對工具,尤其是用在 "手動" 同步目錄時更是好用,為何要說 "手動",因為我同步的對象是程式,程式的同步往往需要先檢視要同步的對象內容,避免將別人寫好的程式功能給覆蓋,所以需要手動同步。<br /><br />最近突然想到去看看 Beyond Compare 2 有沒有更新,去官方網站一看,傻眼了,整個網站風格全改,我還以為我連錯網站了呢!好了,言歸正傳,去檢查一下有沒有更新,發現他有更新了,而且還是全新的版本 Beyond Compare 3,除了 Windows 版外,還出了 Linux 版,看到 Linux 版我就猜測他的 Linux 版是透過 wine 讓 Windows 版在 Linux 底下執行,下載後解開一看,居然是原生程式,不需要透過 wine,這就讓我大大的興奮,Linux 底下一直沒有我用的順手的檔案比對工具,勉強用 kdiff3,但是他對中文的支援實在不好,現在他將可取代 kdiff3 的位置了。<br /><br />不過,興奮歸興奮,安裝後開始執行才發現什麼畫面都沒有,仔細一看「程式區段發生錯誤」怎麼會這樣,嘗試安裝它所須的 lib,也不行 (不過是不同的錯誤訊息,找不到所需的 function),必須用它附帶的 lib 才行,好吧!既然這樣,就去官方網站回報一下這個問題,既然要回報,當然不能用中文回報,我就將我的 LANG 從 zh_TW.UTF-8 改成了 en_US.UTF-8,想取得英文的錯誤訊息來回報,只是沒想到錯誤訊息沒取得,卻讓 Beyond Compare 3 正常啟動了,天啊!又是環境參數搞的鬼。在 console 底下執行<br /><blockquote>env LANG=en_US.UTF-8 /usr/local/bin/bcompare</blockquote><br />或是修改 /usr/local/bin/bcompare 加入底下的指令。<br /><blockquote>export LANG=en_US.UTF-8</blockquote><br /><br />編輯:新版 v3.0.1.8602 已經修正這個問題了,不需要再修改 LANG 的設定了Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-12166523.post-43987744538717687202008-07-01T17:40:00.003+08:002008-07-01T17:48:11.231+08:00Firefox 3 Party 慶祝活動<a href="http://moztw.org/events/firefox3party/" title="參加 Firefox 3 慶祝活動!"><img src="http://moztw.org/events/firefox3party/210x90.png" alt="Firefox Partya3.0"></a><br /><br />MozTW 將在 2008 年 7 月 19 日 14:00 舉辦 Firefox 3 的慶生派對,有興趣的可以去參加!<br /><br />相關網址:<br />詳細活動內容:<a href="http://moztw.org/events/firefox3party/">http://moztw.org/events/firefox3party/</a><br />報名網址:<a href="http://registrano.com/events/firefox3party">http://registrano.com/events/firefox3party</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-12166523.post-64336532944026504122008-06-27T18:24:00.004+08:002008-06-27T18:34:38.101+08:00mount error 20 = Not a directory這次將桌機的 openSUSE 升級到 11.0,結果卻發現無法 mount 另外一台 NAS 的網芳,可是卻可以 mount windows XP 的網芳,無法 mount 的錯誤訊息就是標題的「mount error 20 = Not a directory」,在 openSUSE 10.3 卻還沒有這個問題。<br /><br />Google 了一下,終於看到解法 [http://www.linuxquestions.org/questions/linux-networking-3/mount.cifs-mount-error-20-not-a-directory-443693/]<br /><blockquote>echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled</blockquote><br />我執行上面那行指令後,已經可以正常的 mount 到我的 NAS 了。Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-12166523.post-40628330387376223112008-03-12T11:49:00.001+08:002008-03-12T12:06:42.890+08:00將 openSUSE 10.3 中 KDE 內日期時間設定的台灣國旗加回來在使用 openSUSE 10.3 時發現 KDE 內的日期時間設定的台灣國旗換成一個寫 TW 的圖示,所以花了點時間找了一下要如何加回來,幸好 openSUSE 還沒做得太絕,台灣的國旗都還在,只要複製回來就可以了。<br /><pre>$> sudo cp /opt/kde3/share/locale/zh_TW/flag.png \<br />/opt/kde3/share/locale/l10n/tw/</pre>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-12166523.post-76107921371307796882007-11-08T05:57:00.000+08:002007-11-08T06:06:50.599+08:00解決 Firefox 選單粗底線的問題 - openSUSE當安裝完 openSUSE 10.3 後,在執行 Firefox 時會發現選單的字體是那樣醜醜的,還有那可怕的粗底線。<br /><br />要解決這樣的問題不難,只要進 YaST 中將 ttf-cmex-kai 與 ttf-cmex-song 移除後,Firefox 的選單就會變漂亮了。至於,是不是只需要移除其中一項,這就沒去試驗了。Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-12166523.post-1155014651174261572006-08-08T13:23:00.000+08:002006-08-08T13:25:14.023+08:00Turbo 產品系列回來了!<p>剛剛在「李維」的「<a href="http://gordonliwei.spaces.live.com/PersonalSpace.aspx?_c02_owner=1">IT : 是工作還是嗜好?</a>」上看到了「<a href="http://gordonliwei.spaces.live.com/Blog/cns!CCE1F10BD8108687!1073.entry">Turbo產品系列回來了!</a>」,有一種令人懷念的感覺。</p><p>接著就趕緊過去 http://www.turboexplorer.com/ 過去逛逛,想下載 <span lang="EN-US">Explorer</span> 免費版回來懷念一下,進去了產品介紹網頁,看到了「Download」的字眼,滑鼠移了過去,奇怪怎麼不能點選,想起剛剛在首頁的地方好像看到數字一直在跳動,回首頁仔細一看。</p><p>「27 days, 18 hours, 44 minutes, 7 seconds until the Turbo(s) are here!」</p><p>啊!原來,還要等一個月啊! ^_^b</p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-12166523.post-1149090549982755952006-05-31T23:35:00.000+08:002006-06-01T21:40:35.203+08:00修改 FireFTP v0.92 來支援中文顯示<a href="http://fireftp.mozdev.org/">FireFTP</a> 一套 Mozilla Firefox 的 extension,至於有什麼樣的功能,這不用說明吧,從軟體名稱就可以知道,這是一套 FTP Client 的軟體,不過,很可惜的是無法顯示中文 (只是無法顯示,並不影響操作)。<br /><br />之前已經有稍微看過 FireFTP 的程式,只是改得並不算成功,只有歡迎訊息是可以正常顯示中文,但是一旦目錄要顯示中文,就會變得無法操作,經過了一段時間的沈澱後,再次嘗試修改 FireFTP 總算成功了,想要嘗試的可以到 MozTW 的討論區去下載。<br /><br />下載:<a href="http://forum.moztw.org/viewtopic.php?t=14285">http://forum.moztw.org/viewtopic.php?t=14285</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-12166523.post-1148629854694536322006-05-26T15:43:00.000+08:002006-05-26T15:50:54.706+08:00Flash 與 z-index最近又遇到如何解決 Flash 會遮住 Layer 的問題了,我還是寫下來避免自己忘記還要求助 G 大神。<br /><br />兩個主要的參考網址:<br /><a href="http://www.joshuaink.com/blog/82/flash-content-and-z-index">Joshuaink: Flash content and z-index</a>:圖文並茂,值得一看。<br /><a href="http://www.flashdesignerzone.com/tutorials/t1026.php">Z-Index in Flash</a>:這個直接列出解法。<br /><br />主要的解法是在 <object> 與 <embed>中分別加上<br /><object>:<param name="WMODE" value="transparent"><br /><embed>:WMODE="transparent"Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-12166523.post-1147277874829295952006-05-10T23:57:00.000+08:002006-05-11T00:23:00.623+08:00微軟正黑體這個是我從「<a href="http://blog.yam.com/appleseed/archives/1563158.html">appleseed, 蘋果核</a>」上看到的,看到他們貼出來的畫面,我二話不說馬上過去下載並且換上了「微軟正黑體」這個字型,真的比「新細明體」好太多了,不過,記得要開啟 ClearType。<br /><br />「<a href="http://blog.yam.com/appleseed/archives/1563158.html">appleseed, 蘋果核</a>」是參考「<a href="http://www.vixual.net/wikka/wikka.php?wakka=Archive2006042301">Vixual 網路視野</a>」大家可以直接過去看看相關的說明。<br /><br />我也不可免俗的,貼上我的畫面給大家瞧瞧。<br /><img style="float:left; margin:0 10px 0 10px;" src="http://photos1.blogger.com/blogger/2799/1017/1600/new.gif" border="0" alt="微軟正黑體" title="微軟正黑體" /><img style="float:left; margin:0 10px 10px 0;" src="http://photos1.blogger.com/blogger/2799/1017/1600/old.gif" border="0" alt="新細明體" title="新細明體" />Unknownnoreply@blogger.com5tag:blogger.com,1999:blog-12166523.post-1146651287748781952006-05-03T18:04:00.000+08:002006-05-03T18:14:47.770+08:00黑心!假貨!今天聽到一則不可思議的消息,「<a href="http://tw.news.yahoo.com/060503/43/33fe3.html">北京竟然連報紙都出現假貨</a>」,之前聽到大陸那邊出現「假雞蛋」已經讓我覺得很誇張了,但是這則「假報紙」真的令我...不知道該說甚麼。<br /><br />以前台灣有仿冒王國之稱,現在的大陸呢~ OrzUnknownnoreply@blogger.com2tag:blogger.com,1999:blog-12166523.post-1146419524464329612006-05-01T01:41:00.000+08:002006-05-01T02:01:59.256+08:00"鳥" 照片在一些討論區逛啊逛的逛到了一篇討論因使用「鳥」照片而被告與求償的討論,順著其內容連到了 「<a href="http://blog.sina.com.tw/a_shan/">PAINTER好好玩</a>」,版主本身也是因為「鳥」事而被告,進而跟「牠」(版主都這麼稱呼那位原告) 纏訟兩年了,我還真佩服這位版主,有空過去「<a href="http://blog.sina.com.tw/a_shan/">PAINTER好好玩</a>」逛逛,絕對是有好無壞,順便可以認識一下那位「牠」的相關事蹟。<br /><br />最後有一張圖一定要介紹給大家看看,來源連結:<br /><a href="http://tnews.cc/03/Supercon1.asp?number=836105">抵制林英典作品行動,敬請支持並轉寄更多的人參與</a><br />圖片連結:<a href="http://tnews.cc/photo/2006428115_7_1.jpg">阿點出沒注意</a>Unknownnoreply@blogger.com1