Tuesday, December 27, 2011

Citing an Unpublished Work

如何參考引用尚未出版刊登的論文。

根據 Preparation of Papers for IEEE TRANSACTIONS and JOURNALS (May 2007) 的 Section V. Help Hints 之 B. References 說明:
Papers that have not been published should be cited as “unpublished” [4]. Papers that have been accepted for publication, but not yet specified for an issue should be cited as “to be published” [5]. Papers that have been submitted for publication should be cited as “submitted for publication” [6].


[4] B. Smith, “An approach to graphs of linear forms (Unpublished work style),” unpublished.
[5] E. H. Miller, “A note on reflector arrays (Periodical style—Accepted for publication),” IEEE Trans. Antennas Propagat., to be published.
[6] J. Wang, “Fundamentals of erbium-doped fiber amplifiers arrays (Periodical style—Submitted for publication),” IEEE J. Quantum Electron., submitted for publication.
 
根據 IEEE Manuscript Templates for Conference Proceedings 的 References 章節說明:
Papers that have not been published, even if they have been submitted for publication, should be cited as “unpublished” [4]. Papers that have been accepted for publication should be cited as “in press” [5]. Capitalize only the first word in a paper title, except for proper nouns and element symbols.

[4] K. Elissa, “Title of paper if known,” unpublished.
[5] R. Nicole, “Title of paper with only first word capitalized,” J. Name Stand. Abbrev., in press.

Tuesday, December 20, 2011

如何以較便宜的價格購入 Apple iPad


先講結論~
遇到博客來購物網站的3C館結帳再 9 折活動時,趕緊下手,此時最便宜,不過可能販售機種不全且數量較少。不然就等百貨公司週年慶時,可以換得滿仟送佰活動的禮券,稍做補貼。

百貨公司週年慶
新光三越週年慶:法雅客配合參加新光三越的單筆滿一萬送 500 抵用券活動,另外,刷信用卡還可以領取銀行刷卡禮。以 iPad 2 64GB 售價 21,500 元為例,可以換得兩份 500 抵用券(有使用期限,且限該分店使用)。銀行信用卡刷卡禮最優惠則是澳盛銀行(ANZ),刷卡滿兩萬送 600 元禮券(無使用期限,可用於各三越分店)。因此,總共可以換得 1600 禮券。可惜法雅客不提供讓顧客現抵禮券的方式,必須另外購物以消化掉這些禮券。

大遠百週年慶:大遠百內的德誼數位既不參加百貨公司的全館滿五仟送五佰抵用券活動,也不收滿仟送佰抵用券贈送活動的抵用券,算是最不優惠的週年慶購買地點。(此以大遠百台中店為例)


購物網站
有時候 博客來 會有單日促銷 3C 商品,推出單日限定的滿千結帳再九折,還可以刷卡分期零利率 (3、6、12、24 期)。因為商品數量有限,若遇到此促銷,就要趕緊上網訂購。不過,也可能欲購買的 iPad 2 沒有販售,例如沒有賣具有 3G 功能的 iPad 2。

Wednesday, December 14, 2011

Installing HP printer drivers on Linux

在 Linux 使用 HP 印表機,安裝 Hewlett-Packard Linux Imaging & Printing (HPLIP)

檢查 Linux 系統是否已經安裝 HPLIP
RPM package based distributions (Fedora, SUSE, Mandriva, RHEL, , CentOS, etc):
Run in a terminal window:
$ rpm -qa hplip

參考 http://hplipopensource.com/node/306

確認目前 Linux 所安裝的 HPLIP 版本(若已經安裝) 是否支援欲使用的印表機
http://hplipopensource.com/hplip-web/supported_devices/index.html


安裝或更新 HPLIP 版本
參考 http://hplipopensource.com/hplip-web/install/install/index.html

執行安裝的過程中,可能會遇到缺少一些 package,例如:

warning: There are 4 missing REQUIRED dependencies.
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: python-devel (Python devel - Python development files)
warning: This installer cannot install 'python-devel' for your distro/OS and/or version.
error: Installation cannot continue without this dependency. Please manually install this dependency and re-run this installer.

以使用 yum 管理 package 為例,檢查所需的 python-devel 名稱
$ yum search
python-devel.i386 : The libraries and header files needed for Python development.
python-devel.x86_64 : The libraries and header files needed for Python development.
wxPython-devel.x86_64 : Development files for wxPython add-on modules

安裝缺少的  python-devel.x86_64 (機器使用 64 bit 的 Linux)
$ yum install python-devel.x86_64

若還缺少其他 package (例如 cups-devel、libusb-devel),以同樣方式安裝。


Monday, November 28, 2011

Pthreads Programming

POSIX Threads (稱為 Pthreads) 制定與 thread 有關的標準於 IEEE POSIX 1003.1c standard。

參考範例
POSIX Threads Programming, https://computing.llnl.gov/tutorials/pthreads/
POSIX Threads Programming Exercise, https://computing.llnl.gov/tutorials/pthreads/exercise.html

Thursday, November 17, 2011

C Programming exec() family

execl, execlp, execle, execv, execvp - execute a file

int execl(const char *path, const char *arg, ...);
int execlp(const char *file, const char *arg, ...);
int execle(const char *path, const char *arg, ..., char * const envp[]);

execl(), execlp(), execle() 函式使用的 const char *arg 可以視為一連串的參數串列(亦即 arg0, arg1, ...,  argn)。第一個參數(即 arg0) 是此函式呼叫使用的程式檔案名稱,此參數串列必須以 NULL pointer 做為結尾,亦即使用 (char *) NULL 做為最後一個參數。

Tuesday, November 15, 2011

Apple iPad 2 Video How-to

AVPlayer HD
AVPlayer HD for iPad: USD $2.99


OPlayer HD

OPlayer HD for iPad: USD $4.99

參考資料
主題:iPad 2 實測番外篇:播1080p 有計!, http://www.eprice.com.hk/nb/talk/997/1741/


OPlayerHD Lite

OPlayerHD Lite for iPad: Free

GPlayer
http://itunes.apple.com/app/gplayer/id438402174?mt=8
GPlayer for iPhone and iPad: USD $2.99


Write a Lab Report

如何撰寫實驗報告, http://chemistry.about.com/od/chemistrylabexperiments/a/labreports.htm