2007年5月29日 星期二

來自BBC Health News 的新聞

喝咖啡能降低痛風的症狀!
-- Lower gout risk for coffee lovers, http://news.bbc.co.uk/2/hi/health/6690595.stm

喝蘋果汁(新鮮的或濃縮沖泡皆可)和吃香蕉有助於改善氣喘,但是生吃蘋果則效果不彰,奇怪?
-- Apple juice 'may prevent asthma', http://news.bbc.co.uk/2/hi/health/6684757.stm
  • Children who drank apple juice at least once a day were half as likely to suffer from wheezing as those drinking it less than once a month.
  • The apple juice involved did not have to be fresh apple juice - long-life juices made from concentrate were also effective.
  • Eating fresh apples themselves gave no apparent benefits, the study concluded.
Cerebellum recreated in robots: 德國和西班牙的科學家用模擬小腦的技術來改善機器人的精密度。
-- Move to create less clumsy robots, http://news.bbc.co.uk/2/hi/technology/6700691.stm

2007年5月13日 星期日

Linux 版本

VectorLinux (Slackware based)
MepisLinux
Centos 5
Centos tutorial: http://apt.nc.hcc.edu.tw/web/student_server_centos/student_server_centos.html

2007年5月10日 星期四

MCS51/PIC 實習板簡介

常用練習之接線說明
詳細資訊︰http://docs.google.com/Doc?id=dspzq89_38chmsjs
  • 8051︰四個PORT P0~P3、石英晶體 X1
  • LED︰J4、J5
  • DIP Switch: J8
  • 七段顯示器︰J1、J3
  • LED矩陣︰J16、J17
  • Buzzer︰ J9
  • 按鈕/中斷︰J10
  • 4x4按鍵︰J6、J7
  • 序列通訊(RS232)︰J18

2007年5月9日 星期三

ActiveState Perl 軟體: 柏際

軟體代理 ActiveState Perl: 柏際 http://www.bockytech.com.tw/index.htm

## Convert Unix paths into Win paths with perl:
$cwd=`cd`;

$cwd =~ s/^\s*|\s*$//g;
print $cwd,"\n";
$cwd =~ s{\\}{\/}g;
print $cwd;

2007年5月8日 星期二

Good Links for R.A.

http://en.wikipedia.org/wiki/Derandomization
http://eccc.hpi-web.de/eccc-reports/2002/TR02-008/index.html
http://www.math.ncu.edu.tw/~hgyeh/courses(20060921)(probability_methods)/probability_methods.htm
http://www.cs.princeton.edu/courses/archive/fall03/cs597E/
http://www.cs.wisc.edu/~dieter/Courses/CS830-f2002/homepage.html#lecturenotes
http://www.ecp6.jussieu.fr/pageperso/bondy/books/gtwa/gtwa.html

2007年5月2日 星期三

網頁MathML編輯

網頁MathML編輯︰ 在網頁中直接輸入數學符號
  • ASCIIMathML HOME -- http://www1.chapman.edu/~jipsen/mathml/asciimath.html
  • James Gary's ASCIIMathML Page -- http://www.wjagray.co.uk/maths/ASCIIMathMLinfo.html
很遺憾在 Google Document/Notebook/Blog 都不能用!

網頁線上編輯器︰(可外掛ACSIIMathML的線上編輯器)
  • FCKeditor -- http://www.fckeditor.net/
  • TinyMCE -- http://tinymce.moxiecode.com/

OpenOffice 滙出成 Latex
  • 用 tr-cjk.pl 轉成 CJK-Latex,可再成 PDF
  • 用 TeX4ht/mn 把 Latex 轉成 xhtml 檔 (含 MathML),以網頁型式上發佈
  • 指令 (要安裝 MikTex) : mzlatex Tex-file "html,mathplayer", 產生 XML 檔
  • 用 tr-cjk.pl 把 unicode 轉成 Big5 或 以 #xxxx 表示
tr-cjk.pl 程式如下:

use Encode;

sub B5_U { return Encode::decode("big5", shift); }
sub U_B5 { return Encode::encode("big5", shift); }

die "Usage: $0 TEX_file\n" if $#ARGV<0;
die "Cannot open $ARGV[0]\n" unless -e $ARGV[0];
open I ,$ARGV[0];
while(my $line= ) {
$line2 = $line;
(print($line) && next ) unless $line =~ m/(\[\w\w\w\w\?\])/;
while ($line =~ m/(\[\w\w\w\w\?\])/g) {
my $w = $1;
$w =~ /(\w+)/;
my $us = $1;
my $uc = pack 'U', hex($us),0,0;
$b5char = U_B5 $uc;
# printf "$w %X %s\n", hex($us), $b5char;
$line2 =~ s/(\[\w\w\w\w\?\])/$b5char/;
}
print $line2;
}
close I;

2007年5月1日 星期二

推薦圖書

## Encyclopedia of Molecular Cell Biology and Molecular Medicine, 16 Volume Set, 2nd Edition ----- ISBN: 978-3-527-30542-1,,Hardcover,,9600 pages,
January 2006, Wiley List Price: US $6,430.0

### Encyclopedia of Genetics, Genomics, Proteomics and Bioinformatics, ISBN: 978-0-470-84974-3, 4096 pages, November 2005,
Wiley List Price: US $2,145.00

Intelligent Bioinformatics: The Application of Artificial Intelligence Techniques to Bioinformatics Problems
Edward Keedwell, Ajit Narayanan
ISBN: 978-0-470-02175-0
Hardcover
294 pages
June 2005
Wiley List Price: US $120.00


Dictionary of Bioinformatics and Computational Biology
John M. Hancock (Editor), Marketa J. Zvelebil (Editor)
ISBN: 978-0-471-43622-5
Hardcover
664 pages
August 2004
Wiley List Price: US $125.00

Bioinformatics Software Engineering: Delivering Effective Applications
Paul Weston
ISBN: 978-0-470-85772-4
Paperback
140 pages
December 2004
Wiley List Price: US $70.00

Instant Notes in Bioinformatics,

PARALLEL COMPUTING FOR BIOINFORMATICS AND COMPUTATIONAL BIOLOGY,


Introduction to Computational Genomics
--http://www.amazon.com/gp/product/0521671914/qid=1149782378/sr=1-3/ref=sr_1_3/103-5945801-8943853?s=books&v=glance&n=283155

The Regulatory Genome
--http://www.amazon.com/Regulatory-Genome-Networks-Development-Evolution/dp/0120885638/ref=si3_rdr_bb_product/102-8813200-0584968

Introduction to Computer-Intensive Methods of Data Analysis in Biology
--http://www.amazon.com/Introduction-Computer-Intensive-Methods-Analysis-Biology/dp/0521608651/ref=si3_rdr_bb_product/102-8813200-0584968

Data Analysis and Classification for Bioinformatics
----http://www.amazon.com/Data-Analysis-Classification-Bioinformatics-Jagota/dp/0970029705/sr=1-1/qid=1170936473/ref=sr_1_1/102-8139960-3588151?ie=UTF8&s=books

Honeypots: Tracking Hackers
---http://www.amazon.com/Honeypots-Tracking-Hackers-Lance-Spitzner/dp/0321108957/ref=pd_bbs_sr_1/102-4005390-7148959?ie=UTF8&s=books&amp;qid=1176559066&sr=1-1

Honeypots for Windows
----http://www.amazon.com/Honeypots-Windows-Experts-Voice-Grimes/dp/1590593359/ref=pd_bbs_sr_3/102-4005390-7148959?ie=UTF8&s=books&qid=1176559066&sr=1-3

Know Your Enemy: Learning about Security Threats ----http://www.amazon.com/Know-Your-Enemy-Learning-Security/dp/0321166469/ref=pd_sim_b_1/102-4005390-7148959?ie=UTF8&amp;qid=1176559066&sr=1-1

Design and Analysis of Randomized Algorithms
--http://www.amazon.com/Design-Analysis-Randomized-Algorithms-Introduction/dp/3540239499

Stochastic Local Search
--http://www.amazon.com/o/ASIN/1558608729/ref=s9_asin_title_1/102-8139960-3588151

Online Computation and Competitive Analysis
--http://www.amazon.com/Online-Computation-Competitive-Analysis-Borodin/dp/0521619467/ref=sr_1_1/104-3051963-2272701?ie=UTF8&s=books&qid=1178130463&sr=1-1

Online Optimization of Large Scale Systems
--http://www.amazon.com/Online-Optimization-Large-Scale-Systems/dp/3540424598/ref=sr_1_3/104-3051963-2272701?ie=UTF8&s=books&qid=1178130463&sr=1-3

Efficient Approximation and Online Algorithms
--http://www.amazon.com/Efficient-Approximation-Online-Algorithms-Combinatorial/dp/3540322124/ref=sr_1_4/104-3051963-2272701?ie=UTF8&s=books&qid=1178130463&sr=1-4

Recent Advances In Simulated Evolution And Learning
--http://www.amazon.com/Advances-Simulated-Evolution-Learning-Computation/dp/9812389520/ref=sr_1_7/104-3051963-2272701?ie=UTF8&s=books&qid=1178130463&sr=1-7

An Introduction to Scientific, Symbolic, and Graphical Computation
--http://www.amazon.com/Introduction-Scientific-Symbolic-Graphical-Computation/dp/1568810512/ref=sr_1_19/104-3051963-2272701?ie=UTF8&s=books&qid=1178130463&sr=1-19

Evolutionary Computations
--http://www.amazon.com/Evolutionary-Computations-Keigo-Watanabe/dp/3540209018/ref=sr_1_17/104-3051963-2272701?ie=UTF8&s=books&amp;qid=1178130463&sr=1-17

==== VeBook ============================

Biometrics.and.Network.Security -- http://www.enebook.com/%7B8B328F91-055A-4D8E-A4D1-20272EEDFD25%7D.htm

Internet.Forensics -- http://www.enebook.com/%7BA917A921-A2CF-47F3-A42A-1BB2D8F352CA%7D.htm

Queueing.Theory.With.Applications.to.Packet.Telecommunication -- http://www.enebook.com/%7B7B9EDEDD-BD3A-48F8-8A23-794E18150B0D%7D.htm

RFID.For.Dummies -- http://www.enebook.com/%7B7B31D636-C312-4ECD-BC4C-C7454FAF1DBC%7D.htm

RFID.Essentials -- http://www.enebook.com/%7B7305A344-D3E2-46F3-A6E7-B1040D9D885C%7D.htm

2007年4月29日 星期日

PIC 基本配置

基本配置


使用範例: 控制一個LED



燒錄: 用DB9 RS232 連接電腦和PIC


※所用到的 DB9 RS232 公插頭之接腳定義 (3、4、5、7、8 Pin)

※燒錄電路圖


2007年4月14日 星期六

資安連結

資安連結和誘捕系統(Honeypot)

Developments of the Honeyd Virtual Honeypot (免費)
The Honeynet Project (可下載CD ISO) (免費)

資安論壇 :: 檢視版面 - 誘捕系統 (Honey Pots) 討論版
Honeypots 軟體介紹 - KFSensor (試用版免費)
KFSensor官方網站 - http://www.keyfocus.net/

台灣電腦網路危機處理暨協調中心(https://www.cert.org.tw/): TWCERT/CC: 文件下載
國家資通安全會報技術服務中心: http://www.icst.org.tw/
資安人科技網: http://www.isecutech.com.tw/

★★ CRETIX Security: http://www.hacker.org.tw/ 如何防駭、如何攻擊 ★★

Honeypot (computing) - Wikipedia, the free encyclopedia
Client honeypot / honeyclient - Wikipedia

2007/05/01 Meeting 所討論的相關文件下載 http://www.csie.nuu.edu.tw/~ystsai/IDS-PROJECT-070501.zip

2007年3月29日 星期四

補充範例(1): 指撥開關 + 8個LED

;
;指撥開關/8個LED實習板:補充範例(1)
; 用第一個指撥開關ON/OFF控制左旋/右旋,其餘的七個不用
; 第一個指撥開關接到8051的 P1.0;
; [注意]:共陰接法, 1->OFF, 0->ON; 共陽接法, 1->ON, 0->OFF; 此例採用共陰接法
; 若 P1.0==1 (即OFF)則右旋; 若 P1.0==0 (即ON)則左旋;

START:
MOV A,#7FH

LOOP:
JNB P1.0, ELSE ; 若P1.1==0則跳到 ELSE: 去做左旋
RR A ; 否則執行 右旋
AJMP END_IF ; 做完右旋後, 要跳開 ELSE, 避開左旋, 以免做白工
ELSE:
RL A ; 做左旋
END_IF:
MOV P0,A ; 輸出到 LED 上
ACALL DELAY ; 拖一下時間
AJMP LOOP

DELAY
MOV R4, #150
DL1:
MOV R5, #250
DL2: NOP
DJNZ R5, DL2
DJNZ R4, DL1
RET

END

設備規劃

#################################################################
總共︰72K (NT: 72,000元)
  • CPLD與單晶片整合開發系統, 16K
    規格: Core系統包含 USB 8051、ARM 7、 8051 ISP
  • ME-52模擬器, 15K
    規格: 64KB模擬記憶體、即時解析度為1us、有外部信號斷點。
  • FPGA 與 8051單晶片整合開發系統, 16K.
    規格: 由Com1/2 進行 8051 ISP,ACEX-1K晶片,搭配MAX+PLUSⅡ
  • 語音電話遙控和讀卡整合系統, 15K.
    規格: 8051、RF、讀卡機、8051軟體模擬.
  • 可程式數位邏輯發展系統, ACEX 1K CPLD, 10K.
    規格: Altera ACEX、 PC連線模擬及燒錄、可搭配MAX+PLUS 軟體。


晶強科技: http://chippower.myweb.hinet.net/index11.htm
  • CPLD與單晶片整合開發系統, 16K
    規格: Core系統包含 USB 8051、ARM 7、 8051 ISP

益眾產品: http://www.icci.com.tw/
  • ME-52模擬器, 15K
    規格: 64KB模擬記憶體、即時解析度為1us、有外部信號斷點。
  • FPGA 與 8051單晶片整合開發系統, 16K.
    規格: 由Com1/2 進行 8051 ISP,ACEX-1K晶片,搭配MAX+PLUSⅡ
  • 語音電話遙控和讀卡整合系統, 15K.
    規格: 8051、RF、讀卡機、8051軟體模擬.
  • 可程式數位邏輯發展系統, ACEX 1K CPLD, 10K.
    規格: Altera ACEX、 PC連線模擬及燒錄、可搭配MAX+PLUS 軟體。


晶強科技: http://chippower.myweb.hinet.net/index11.htm
8051/CPLD發展教具 - 10k
8051/ARM 實驗板 + 128x64 LCD - 1.5k
ARM7 開發板 (STR710F) - 2.4k
USB 8051 開發板(T89C51RB2 ) - 1.5k

益眾產品: http://www.icci.com.tw/book66/_file/2307/cb/cly/AllnullCA000000230700005112066265.html?&c_id=CA0000002307000051

  • ME-52模擬器, NT 15000,
    http://www.icci.com.tw/book66/_file/2307/cb/md/nullMD00000023070008082066265.html
  • 8051/CPLD/FPGA發展系統, NT 16000,
    http://www.icci.com.tw/web/MdFront?p_id=MD0000002307000936&command=displayDetail
  • 語音
    • TRC-2004 語音電話遙控器, NT 5500,
      http://www.icci.com.tw/web/MdFront?p_id=MD0000002307001432&command=displayDetail
  • 8051/RF語音實習板, NT 4200, http://www.icci.com.tw/web/MdFront?p_id=MD0000002307001351&command=displayDetail
  • 讀卡機實驗模組-9012, NT 3300 , http://www.icci.com.tw/web/MdFront?p_id=MD0000002307000639&command=displayDetail
    • SIM51軟體模擬器/EP51-200組譯器, NT 1600, http://www.icci.com.tw/web/MdFront?p_id=MD0000002307000793&command=displayDetail
  • ACEX 1K CPLD數位邏輯發展系統, NT 7500,
    http://www.icci.com.tw/web/MdFront?p_id=MD0000002307000878&command=displayDetail


文魁資訊:
單晶片 8051 KEIL C 實作入門, 編號: P5067 - (附錄 H 設計並製作簡易 8051 模擬器)

知行文化:
Visual Basic與電腦I/O控制實務, 書號:16-004, 定價:460 元
CPLD與數位邏輯設計應用--入門篇, 書號:16-002, 定價:320 元

#################################################################

ISP 材料

AT89S51 100 顆, 其餘各 70 套

ISP:
  • DB25 cable: male-male
  • Mini connector: 3P*1, 2P*1, 1P*2; total 7 colors
  • Adapter: 5V,1A
  • Capacitors: 1u*1, 33p*2
  • Resistors: 330*6
  • Oscillator: 12MHz
  • LED * 2

Experiments:
  • LED
  • DIP switch + LED:
    • (1) Simpe IO
    • (2) Conditional display patterns: left-right, inside-out, phase
    • (3) conditional running speed for display
  • 7-segment display
    • (1) counting: incremental/decremental; odd/even;
    • (2) 2 digit counting: incremental/decremental; odd/even;
  • Counter:
    • counter + LED
    • counter + 7-segment display

  • DIP switch + 7-segment display
    • (1) report switch selection with LED
    • (2) Priority: report the largest turn-on switch
    • (3) Counting: how many switches are ON?
    • (4) Binary-to-decimal/Hex/BCD convertion: 1 digit, 2 digit, 2's complement
    • (5) Conditional counter: control by switch; eg. inc/dec, stop watch, counting step,


2007年3月28日 星期三

SNMP簡介

SNMP簡介

  • SNMP的架構︰Agent、NMS、MIB、版本
  • MIB︰
  • SNMP Protocol︰指令 get、get-next、get-response、set、trap。UDP port︰161/162
  • 練習工具︰net-snmp
    • 安裝 net-snmp 和 grep
    • oid 簡寫慣例 和 翻譯
    • 練習用 snmpwalk (用 get )取得 router/switch 的各 port 資訊
snmpwalk -v 1 -c public 203.64.180.254 sysDescr
snmpwalk -v 1 -c public 203.64.181.254 ipRouteTable
snmpwalk -v 1 -c public 203.64.182.254 ifAdminStat
snmpwalk -v 1 -c public 203.64.174.254 ifInOctets (各port之輸入流量)
snmpwalk -v 1 -c public 203.64.174.254 ifOutOctets (各port之輸出流量)

網路上參考文件

2007年3月27日 星期二

95-B 設備採購規劃

95-B 設備採購規劃

五項, 共72K (NT: 72,000元)
  • CPLD與單晶片整合開發系統, 16K
    規格: Core系統包含 USB 8051、ARM 7、 8051 ISP
  • ME-52模擬器, 15K
    規格: 64KB模擬記憶體、即時解析度為1us、有外部信號斷點。
  • FPGA 與 8051單晶片整合開發系統, 16K.
    規格: 由Com1/2 進行 8051 ISP,ACEX-1K晶片,搭配MAX+PLUSⅡ
  • 語音電話遙控和讀卡整合系統, 15K.
    規格: 8051、RF、讀卡機、8051軟體模擬.
  • 可程式數位邏輯發展系統, ACEX 1K CPLD, 10K.
    規格: Altera ACEX、 PC連線模擬及燒錄、可搭配MAX+PLUS 軟體。
** See detail **

2007年3月9日 星期五

Blog 目錄

Perl PLP for Apache 2.x

PLP速度比PHP快!

PLP = HTML+PERL for Apache

Patch for PLP-3.19 on Apache2

Patch for 'PLP.pm':
============================================================
142c142
< return Apache::Constants::OK();
---
> return Apache2::Const::OK();
154c154
< return Apache::Constants::NOT_FOUND();
---
> return Apache2::Const::NOT_FOUND();
157c157
< return Apache::Constants::FORBIDDEN();
---
> return Apache2::Const::FORBIDDEN();
============================================================

Patch for 'Fields.pm':
============================================================
31c31
< $post = Apache->request->content;
---
> $post = Apache2::RequestUtil->request->content;
============================================================

2007年3月7日 星期三

8051 Links

8051線上程式除錯器--http://bit.kuas.edu.tw/~ccchen/project/

NoICE -- http://www.noicedebugger.com/index.html

PAULMON2 -- http://www.pjrc.com/tech/8051/pm2_docs/hardware.html

8051 Development Tools -- http://bit.kuas.edu.tw/~8051/

益眾科技 -- http://www.icci.com.tw/web/Home?FP=7615, Keil ICE

晶強科技 -- http://chippower.myweb.hinet.net/index11.htm

單晶片 8051 KEIL C 實作入門 -- http://www.kingsinfo.com.tw/item_detail.asp?pro_id=6148

2007年3月5日 星期一

Web Calendar

iCal--http://www.k5n.us/webcalendar.php

PHP iCalendar--http://phpicalendar.net/

Plans 7.9.2--http://www.planscalendar.com/index.php

WebCalendar--http://www.ma.utexas.edu/webcalendar/doc/index.html