剛剛花旗打來促銷, 我沒有答應,去網路查到這篇,覺得很忠肯,問題不在於有效沒效
http://kunghc.pixnet.net/blog/post/27933260
不過真的有很多說有效的, 不過我覺得所謂有效, 已經把他當作藥了, 病的成因並沒有解除, 一但不吃, 還是會再回來, 甚至更快, 歸根究柢, 多運動多休息還是癥結, 當營養補充, 可吃可不吃, 千萬不要當藥了
2011年3月24日 星期四
Append text to file from command line
http://stackoverflow.com/questions/4640011/append-text-to-file-from-command-line-without-using-io-redirection
其實最簡單的就是
$ export lines="text you want to append"
$ echo $lines >> file
$ echo "" >> file
其實最簡單的就是
$ export lines="text you want to append"
$ echo $lines >> file
$ echo "" >> file
2011年3月18日 星期五
Try eGalax USB Touch for tslib
There are three kernel modules support USB eGalax Touch device
1. inbult usbhid module for HID touch device
2. Inbult usbtouchscreen module for non-HID touch device
3. eGalax Touch tkusb module for both HID and non-HID touch devices
Item 3 is not in consideration list for inbuilt modules in kernel being more convenient. Usbhid and usbtouchscreen conflict and I use usbhid finally.
As for the application interface, there are X11 and tslib. X11 is too big and often is used on desktop. tslib is a thin software interface and ready for Qt. I decide to focus on tslib.
Step 1. Root File System with tslib
Make sure tslib in buildroot has been checked. Find the eGalax plugin patch from
http://repository.timesys.com/buildsources/t/tslib/tslib-1.0/
I modify and combined to 4 patches.
tslib-1.0-A1_svn_updates-r50-r78.patch, tslib-1.0-Z4_egalax.patch, tslib-1.0-no-cxx.patch, tslib_add_finddef_and_inputattach_utils.patch
Notice that patches are used by alphabetic sequence.
Step 2. Linux Kernel with usbhid
Follow the menuconfig on kernel,
(Notice that USB Touch Driver has to be unchecked.)
$ Make menuconfig
Device Drivers --->
Input device support --->
<*> Event interface
// [*]Touchscreens --->
// <*>USB Touch Driver
HID Devices <---(Handy: Try All to Yes)
[*] /dev/hidraw raw HID device support
[*] /dev/hiddev raw HID device support
Step 3. test tslib
Make sure /dev/input/event0, /dev/hidraw0 is there.
Test by
# export TSLIB_TSDEVICE=/dev/input/event0
# export TSLIB_FBDEVICE=/dev/fb0
# vi /etc/ts.conf
module_raw input
module_raw galax
# ts_calibrate
# ts_test
Step 4. Qt with qt-mouse-tslib
[Host]
$ ./configure -embedded arm -xplatform qws/linux-arm-g++ -qt-mouse-tslib
$ make
//deploy to Target
[Target]
# export QWS_MOUSE_PROTO=Tslib:/dev/input/event0
# cd /usr/lib/
# ln -s libts-1.0.so.0.0.0 libts-0.0.so.0
//Test qt application with touch
1. inbult usbhid module for HID touch device
2. Inbult usbtouchscreen module for non-HID touch device
3. eGalax Touch tkusb module for both HID and non-HID touch devices
Item 3 is not in consideration list for inbuilt modules in kernel being more convenient. Usbhid and usbtouchscreen conflict and I use usbhid finally.
As for the application interface, there are X11 and tslib. X11 is too big and often is used on desktop. tslib is a thin software interface and ready for Qt. I decide to focus on tslib.
Step 1. Root File System with tslib
Make sure tslib in buildroot has been checked. Find the eGalax plugin patch from
http://repository.timesys.com/buildsources/t/tslib/tslib-1.0/
I modify and combined to 4 patches.
tslib-1.0-A1_svn_updates-r50-r78.patch, tslib-1.0-Z4_egalax.patch, tslib-1.0-no-cxx.patch, tslib_add_finddef_and_inputattach_utils.patch
Notice that patches are used by alphabetic sequence.
Step 2. Linux Kernel with usbhid
Follow the menuconfig on kernel,
(Notice that USB Touch Driver has to be unchecked.)
$ Make menuconfig
Device Drivers --->
Input device support --->
<*> Event interface
// [*]Touchscreens --->
// <*>USB Touch Driver
HID Devices <---(Handy: Try All to Yes)
[*] /dev/hidraw raw HID device support
[*] /dev/hiddev raw HID device support
Step 3. test tslib
Make sure /dev/input/event0, /dev/hidraw0 is there.
Test by
# export TSLIB_TSDEVICE=/dev/input/event0
# export TSLIB_FBDEVICE=/dev/fb0
# vi /etc/ts.conf
module_raw input
module_raw galax
# ts_calibrate
# ts_test
Step 4. Qt with qt-mouse-tslib
[Host]
$ ./configure -embedded arm -xplatform qws/linux-arm-g++ -qt-mouse-tslib
$ make
//deploy to Target
[Target]
# export QWS_MOUSE_PROTO=Tslib:/dev/input/event0
# cd /usr/lib/
# ln -s libts-1.0.so.0.0.0 libts-0.0.so.0
//Test qt application with touch
2011年1月17日 星期一
系統程式設計的觀念
不管是軟體或是韌體, 很多人已經中了軟體工程的毒, 其實不能說是軟體工程的原意, 而是被解釋過的軟體工程造成的誤導, 當然其目的是要推銷其理念或是產品, 但是我們回歸原本系統程式的原始目標, 事情沒有必要被這樣侷限.
系統程式的規範來自於需求, 在這樣的規範之下, 其實可以發揮的空間非常大, 但因開發團隊的經驗加上時程的壓力, 有經驗的團隊始終會以熟悉的開發平台畫地自限, 經驗愈長, 愈不敢跳脫去嘗試新平台新技術, 導致以不是和需求最佳媒合的平台或工具來做基礎, 第一步選錯了, 往往沒有回頭的機會, 就算選對了, 團隊成員若沒能力快速上手, 發揮平台或工具的效能, 那還是枉然, 所以, 關鍵還是在於, 依照需求, 選定平台和人力, 才能發揮最大的成效, 但是這也是理想化的講法, 不是每個成員都像特種部隊或是超級怪咖, 所以選定人力有可能會影響平台的選取, 這只能說專案召集人沒那麼好做, 選錯召集人, 大概就決定了系統的成敗
系統程式的規範來自於需求, 在這樣的規範之下, 其實可以發揮的空間非常大, 但因開發團隊的經驗加上時程的壓力, 有經驗的團隊始終會以熟悉的開發平台畫地自限, 經驗愈長, 愈不敢跳脫去嘗試新平台新技術, 導致以不是和需求最佳媒合的平台或工具來做基礎, 第一步選錯了, 往往沒有回頭的機會, 就算選對了, 團隊成員若沒能力快速上手, 發揮平台或工具的效能, 那還是枉然, 所以, 關鍵還是在於, 依照需求, 選定平台和人力, 才能發揮最大的成效, 但是這也是理想化的講法, 不是每個成員都像特種部隊或是超級怪咖, 所以選定人力有可能會影響平台的選取, 這只能說專案召集人沒那麼好做, 選錯召集人, 大概就決定了系統的成敗
Moto MB525(Defy)耳機問題確認方法
Can't hear the person calling unless I use loudspeaker/speakerphone
https://supportforums.motorola.com/thread/41152?start=375&tstart=0
https://supportforums.motorola.com/thread/41152?start=375&tstart=0
If you have a BTxx or BFxx or see a Blue Dot on your phone's label beneath the battery door you can have confidence that your device is not affected by this issue as long as you are still able to connect a Bluetooth or Wired Headset and the issue goes away. If the issue does not go away with a Bluetooth or Wired accessory then you have a separate issue.
Mark
Support Forums Manager
2010年9月3日 星期五
Windows 7下的SMTP
被這個問題困擾非常久, 主要是公司用的Notes, 很多Ap都是借用email的方式達成, 因此在Windows 7欠缺SMTP的情況下, 每次遇上需要用到SMTP Protocol, 就只好切換到XP去執行
在安裝hMailServer之後, 啟用SMTP Relayer, 終於拔除了背後的芒刺
參考文件裡的Configuration titorial, 照著做就可以了
軟體資源如下:
http://www.hmailserver.com/
hMailServer is a free e-mail server for Microsoft Windows. It's used by Internet service providers, companies, governments, schools and enthusiasts in all parts of the world.
It supports the common e-mail protocols (IMAP, SMTP and POP3) and can easily be integrated with many existing web mail systems. It has flexible score-based spam protection and can attach to your virus scanner to scan all incoming and outgoing email.
在安裝hMailServer之後, 啟用SMTP Relayer, 終於拔除了背後的芒刺
參考文件裡的Configuration titorial, 照著做就可以了
軟體資源如下:
http://www.hmailserver.com/
hMailServer is a free e-mail server for Microsoft Windows. It's used by Internet service providers, companies, governments, schools and enthusiasts in all parts of the world.
It supports the common e-mail protocols (IMAP, SMTP and POP3) and can easily be integrated with many existing web mail systems. It has flexible score-based spam protection and can attach to your virus scanner to scan all incoming and outgoing email.
訂閱:
文章 (Atom)