星期六, 12月 18, 2010

你要坐Bus(巴士)還是Benz(賓士),吃魚翅還是粉絲,都要自己負責。

轉載 http://rectangle.pixnet.net/blog/post/30938814


香港電臺知名主持人梁繼璋曾給兒子寫過一封信,這封信很快流傳於各大網站,很多父親看後感觸很深,
我覺得不只給兒子,其實適合所有人看!



最喜歡最後一句"無論愛不愛,下輩子都不會再見",讓我想 起在美國上中國哲學課時老師常說的:
菩薩案前一爐香,修得來世鐵心腸,你能參得了嗎?

下輩子,無論愛與不愛,都不會再見----送給兒子的備忘錄

我兒:寫這備忘錄給你,基於三個原則:

(一)人生福禍無常,誰也不知可以活多久,有些事情還是早一點說好。
(二)我是你的父親,我不跟你說,沒有人會跟你說。
(三)這備忘錄裡載的,都是我經過慘痛失敗得回來的體驗,可以為你的成長省回不少冤枉路。



以下,便是你在人生中要好好記住的事:

(一)對你不好的人,你不要太介懷,在你一生中,沒有人有義務要對你好,除了我 和你媽媽。
至於那些對你好的人,你除了要珍惜、感恩外,也請多防備一點!
因為每個人做每件事,總有一個原因,他對你好,未必真的是因為喜歡你,請你必須搞清楚,而不必太快將對方
看作真朋友。

(二)沒有人是不可代替,沒有東西是必須擁有。看透了這一點,將來你身邊的人不再要你,或許失去了世間上最愛的一切時,
也應該明白,這並不是什麼大不了的事。

(三)生命是短暫的,今日你還在浪費著生命,明日會發覺生命已遠離你了。因此,愈早珍惜生命,你享受生命的日子也愈多
與其盼望長壽,倒不如早點享受。

(四)世界上並沒有最愛這回事,愛情只是一種霎時的感覺,而這感覺絕對會隨時日、心境而改變。
如果你的所謂最愛離開你,請耐心地等候一下!讓時日慢慢沖洗,讓心靈慢慢沉澱,你的苦就會慢慢淡化。
不要過分憧憬愛情的美,不要過分誇大失戀的悲

(五)雖然很多有成就的人士都沒有受過很多教育,但並不等於不用功讀書,就一定可以成功。
你學到的知識,就是你擁有的武器。人,可以 白手興家,但不可以手無寸鐵,謹記!

(六)我不會要求你供養我下半輩子,同樣地我也不會供養你的下半輩子,當你長大到可以獨立的時候,我的責任已經完結。
以後,你要坐Bus(巴士)還是Benz(賓士),吃魚翅還是粉絲,都要自己負責。

(七)你可以要求自己守信,但不能要求別人守信,你可以要求自己對人好,但不能期待人家對你好。
你怎樣對人,並不代表人家就會怎樣對你,如果看不透這一點,你只會徒添不必要的煩惱。

(八)我買了十多二十年六合彩,還是一窮二白,連三獎也沒有中,這證明人要發達,還是要努力工作才可以,世界上並沒有
免費午餐。

(九)親人只有一次的緣分,無論這輩 子我和你會相處多久,也請好好珍惜共聚的時光,下輩子,無論愛與不愛,都不會再見。


明天與意外不知誰先到,何不微笑過一天!

星期五, 12月 17, 2010

JavaScript detect OS version

JavaScript detect OS version


OSName="Win 7";

else if ((OS.indexOf("Windows NT 6.0")!=-1))

OSName="Win Vista/Server 08";

else if (OS.indexOf("Windows ME")!=-1)

OSName="Win ME";

else if ((OS.indexOf("Windows NT 4.0")!=-1) || (OS.indexOf("WinNT4.0")!=-1) || (OS.indexOf("WinNT")!=-1))

OSName="Win NT";

else if ((OS.indexOf("Windows NT 5.2")!=-1))


http://webcache.googleusercontent.com/search?q=cache:9Ri9Q_b_cq0J:douglubey.com/JavaScriptHowToDetectOperationSystemBrowserDivTags.aspx+javascript+detect+win7&cd=1&hl=zh-TW&ct=clnk&gl=tw





星期四, 12月 09, 2010

領獎學金呦





從小到大還沒領過獎學金,收到的那一剎那,感動的快流鼻涕了。

這一定要裱框一下,留個紀念。

沒有因為得名而拿到獎狀是比較遺憾的事情。

雖然我對獎狀比較有興趣,不過下學費有著落了。

星期一, 12月 06, 2010

Rims

  • RS 老熊
  • ADV-08
  • K&N高流量空氣濾心,圓形的型號是E-2993

星期四, 12月 02, 2010

Force Download in Lighttpd

Force Download in Lighttpd

$HTTP["url"] =~ "\.jpg$" {
setenv.add-response-header = (
"Content-Disposition" => "attachment"
)
}

星期四, 11月 04, 2010

Conference and Journal


Association for Computing Machinery (ACM)

Precision and Recall

Definition:

  • Source = 被尋找的資料庫
  • Target = 在 Source 內 某一種同類型的資料
  • ALLFind = 找出來的所有資料
  • GoldenFind = AllFind 裡跟 Target Match 的資料
Precision = GoldenFind / AllFind
Recall = GoldenFind / Target


結論:
  • 跟 Source 多少一點關系都沒有。
  • 找資來的資料,命中越高越好,如果找錯......只影響Precision,但至少保住了 Recall。
  • 也就是說 Precison & Recall 都為1時最佳。.
  • Precision = 1 比 Recall =1 簡單.


Reference 2nd 提到一個有趣的比喻:
要「一言既出駟馬難追」的precision就要高,要「寧可錯殺一人也不願放過一百」的recall值就必須要高


Reference 1st 舉的例子
舉個例子:假設現在資料庫中有10000筆資料,和美食有關的文章有500篇。使用者在輸入美食的關鍵字後,回傳的文章有4000篇,其中有400篇是和美食有關的。Precision = 400 / 4000 = 10%
Recall = 400 / 500 = 80%

Reference:

星期三, 11月 03, 2010

Frequently asked questions about basic auth


http://httpd.apache.org/docs/1.3/howto/auth.html#basicfaq

Frequently asked questions about basic auth

The following questions tend to get asked very frequently with regard to basic authentication. It should be understood that basic authentication is very basic, and so is limited to the set of features that has been presented above. Most of the more interesting things that people tend to want, need to be implemented using some alternate authentication scheme.


How do I log out?



Since browsers first started implementing basic authentication, website administrators have wanted to know how to let the user log out. Since the browser caches the username and password with the authentication realm, as described earlier in this tutorial, this is not a function of the server configuration, but is a question of getting the browser to forget the credential information, so that the next time the resource is requested, the username and password must be supplied again. There are numerous situations in which this is desirable, such as when using a browser in a public location, and not wishing to leave the browser logged in, so that the next person can get into your bank account.

However, although this is perhaps the most frequently asked question about basic authentication, thus far none of the major browser manufacturers have seen this as being a desirable feature to put into their products.

Consequently, the answer to this question is, you can't. Sorry.



http://webcache.googleusercontent.com/search?q=cache:FUVgYEnqsuEJ:doc1.fehot.com/2/K/35akhAU.html+lighttpd+logout&cd=16&hl=zh-TW&ct=clnk&gl=tw&lr=lang_zh-CN|lang_zh-TW

星期二, 11月 02, 2010


Install Instruction:
  • mkdir obj
  • cd obj
  • ../configure
  • gmake
  • gmake install

fix src/sysc/utils/sc_utils_ids.cpp
+#include "/usr/include/boost/cstdlib.hpp"
+#include
#include "sysc/utils/sc_report.h"
+using namespace std;

星期一, 10月 18, 2010

Pipelined MIPS Lite CPU

Pipelined MIPS - Lite CPU

這是2007年的作品,其中包含解決了三種Hazard 問題及完整DataPath,當時是使用Modelsim,VCS能不能過我就不知了,沒測過,不過初學Modelsim比較合適 。

為了驗證Verilog ,當時還寫了一個小的C Compiler,可宣告變數,轉成 Assembly後,再轉成Binary for MIPS,以解決必需手動大量產生Test Bench,的窘境,至少寫個梯型公式......是沒問題的。
  • Structural Hazard
  • Control Hazard
  • Data Hazard

Document:
  • https://docs.google.com/fileview?id=0ByhRgrqRcFnLZmZlYTY2MDktNDJhZS00ZWVkLThlNmItN2Q3NGJiNGRkYWM3&hl=zh_TW
  • 請勿要求太深入的Technical support,因目前工作及學業,極其異常忙錄,不太有時間回頭看Code。

星期四, 10月 14, 2010

人員需求,以下三個領域任一:

人員需求,以下三個領域任一:

Windows Software:
  • Visual C++
  • AcitveX
  • QuickTime/VLC/Flash 10 Plugin for H.264 video stream over RTSP.
  • Windows Application for IP-Camera.
Embedded Linux Programmer:
  • GCC.
  • IPC.
  • Networking
  • System porting.
CMOS Sensor tuning:
  • OV7725 or others

星期一, 10月 11, 2010

multipart/mixed



Content-type:multipart/mixed;boundary=ThisRandomString
--ThisRandomString
Content-type:text/plain
........
--ThisRandomString
Content-type:text/plain
.........
--ThisRandomString--

Reference:

星期二, 10月 05, 2010

IEEE Transactions Circuits and Systems for Video Technology

IEEE Transactions Circuits and Systems for Video Technology

http://tcsvt.polito.it/CSVT-VARLS-CFP-onepage.pdf

CALL FOR PAPERS
Schedule
Submission deadline: Dec. 15, 2010
Notification of acceptance: Jun. 15, 2011
due: Jun. 30, 2011
publication date: Oct. 2011



Topics of interest include, but are not limited to,
Feature extraction from low-quality data
• Super-resolution
• Video stabilization
• Object detection in low-quality data
Visual tracking on resource-limited systems
• Image recognition on mobile devices
• Face image analysis on resource-limited systems
• (Soft-)biometrics (face, body, gait, … ) in low-quality data
• Gesture recognition in low-quality data
• Human activity analysis in low-quality data
• Video analysis on resource-limited platforms (UAVs, toy robots, capsule endoscopy, …)
• Energy optimization for video coding on resource-limited devices
• Multiple-view analysis of low-quality data
• Low-cost smart camera networks with embedded computing
• Video analysis on low-cost non-classical cameras (e.g., omni-directional cameras)
Real-world applications on resource-limited systems (smart environments, safety and surveillance, entertainment …)
Evaluation of video analysis algorithms on resource-limited systems


Reference:

OS Note

http://www.cis.nctu.edu.tw/~gis88507/course/linux/8_advance_io.pdf

星期三, 9月 29, 2010

lockf

locf function

  • arg1 = int, and must set O_RDWR,cant set O_RDONLY.
  • close fd will unlock


For example:
int lockfd = open( argv[2], O_RDWR);
ret = lockf( lockfd, F_LOCK, 0L);

// Test Lock
ret = lockf( lockfd, F_TEST, 0L);

星期四, 9月 23, 2010

AI Class

2010/09/23 (四)

Introduction of AI History

Macsyma machine: for Calculator factor expression

1973 MYCIN expert system for medical diagnosis. ( Important year ).

Expert System: 中醫
  • 茅頓處理
  • 不合理也要處理
Frames knowledge representation

Contribution of Misky
  • AI
  • Neuno network death- perceptrons ( Until 1987s )

Shafer theory oof Evidence for reasoning under uncertainty
======================
Binary tree amost = OR Tree (Human style) And-OR Tree ( few )

星期三, 9月 15, 2010

穿越防火牆技術


沒魚蝦也好
  • 穿越防火牆技術
    http://www.cs.nccu.edu.tw/~lien/Writing/NGN/firewall.htm

星期四, 9月 02, 2010

system fault

ssize_t faulty_write (struct file *filp, const char *buf, size_t count, loff_t *pos){
*(int *)0 = 0;
return 0;
}
http://www.caviumnetworks.com/newsevents_Caviumnetworks_PureVu-Single-Chip-H.264-Processors.html


http://www.caviumnetworks.com/pdfFiles/CNW5102_PB-1.0.pdf
KEY FEATURES
PureVu TM H.264 video processor
• Dual core ARM11 CPU
• Up to1200p60 encode/decode resolution
• Super Low Latency Technology TM
• Error resiliency & concealment
• Channel adaptive bit rate control
• Hardware crypto engine option
• Graphics accelerator for GUI
• PCIe, RGMII/MII, USB, SPI, SDIO, etc.
• Dual BT.1120 bi-directional video ports
• I2S audio

抵免

抵免

先進網際服務系統 85
無線寬頻網路 91
多媒體編碼技術 84
多核心系統與程式設計 80


系統晶片技術(一) 71


星期三, 9月 01, 2010

git proxy-wrapper

http://blog.xuite.net/yctseng/notes/24836708

vi ~/proxy-wrapper
#!/bin/bash
nc -xSOCKS_PROXY:PORT -X5 $*
chmod +x ~/proxy-wrapper
export GIT_PROXY_COMMAND="~/proxy-wrapper"
git clone git://ip/tree

星期一, 8月 30, 2010

Computer Science Conference Ranking 電腦科學學術會議分級http://blog.roodo.com/myroodo/archives/4551771.html

星期一, 8月 23, 2010


kernel cmdline="profile=2"


Compiler Enhancement
Step1:
-fprofile-generate
Step2:
-fprofile-use

星期五, 8月 20, 2010

又到了繳錢的時候了



又到了繳錢的時候了
一年要十一萬,差不多一個月一萬,上學是要代價的。
金錢事小,時間寶貴!要能畢業才行。

星期二, 8月 10, 2010

V 資訊碩一
4756018CS560R一般人工智慧選修 3鄭明傑電學1014-EFG 0大學部修課為必選第一類20資訊系300

VV 資訊碩一
4763618CS636R一般電子系統層設計與實作選修 3朱守禮電學3103-EFG 0大學部修課為必選第三類15資訊系633

電子碩一
4659618EL596R一般數位電視影音編碼技術選修 3繆紹綱電學4165-567 0 14電子系033

星期五, 7月 30, 2010

DateTime to time_t (GMT) in Java script

DateTime to time_t (GMT) in Java script


<script type="text/javascript">
var dd = new Date(2010,06,28,18,13,22,00)
//var d = Date.parse( dd );
//document.write(d)

//document.write( Date.UTC(2010,06,28,18,13,22,00) );
var x = dd.toUTCString();

document.write(Date.parse(x));
</script>

星期三, 6月 30, 2010

ODBII to serial


Opendiag OBD-II Schematics & PCB Layout

  • http://www.planetfall.com/cms/content/opendiag-obd-ii-schematics-pcb-layout
Elm Electronics
  • http://www.elmelectronics.com/products.html
OBD
  • http://chen0203.sg1002.myweb.hinet.net/obdfiles/obdintroduction.pdf
OBDII Home
  • http://www.obdii.com/ubb/Forum1/HTML/000359.html
http://www.blafusel.de/
  • http://www.blafusel.de/

OBD2 - RS232 adapter cable
  • http://hem.passagen.se/tomasf/obd2/

選課資訊

2010-上學期

選課 - http://csys.cycu.edu.tw/
選課日程表 - http://web.cycu.edu.tw/H2000/elective_msg/board/991date.pdf

星期五, 6月 25, 2010

支持H.264高清编解码器的片上系统 MG3500

支持H.264高清编解码器的片上系统 MG3500
http://mag.ieechina.com/OA/DArticle.aspx?type=view&id=200811028

發表於 電子設計工程期刊 http://mag.ieechina.com

星期二, 5月 11, 2010

99學年度博士班考試入學招生重要日程
  • 申請報名轉帳帳號
    99年5月11日(二)09:00至
    99年5月18日(二)15:00止
    ATM轉帳繳費期間
    99年5月11日(二)09:00至
    99年5月19日(三)12:00止
  • 考試日期 99年6月02日(三)
  • 公告榜單及寄發成績單 99年6月11日(五)
  • 報名費:新台幣貳仟伍佰元整

  • 資訊組:
    1.大學及碩士班在校成績
    2.碩士論文
    3.攻讀博士學位研究計劃
    4.推薦函二封(自訂格式)
    5.其他有利於審查資料(如研究論文、專利或競賽成果等)

變換
  • 混沌的天燄鑽石 - +21致命一擊等級和3%致命一擊傷害
  • 不倦的天燄鑽石 - +25法術能量和略微提高奔跑速度
  • 毀滅的天燄鑽石 - +25致命一擊等級和1%法術反射


  • 閃亮的威嚴鋯石 - +20精神
  • 閃亮的青空藍寶石 +16精神

  • 符文的緋色紅寶石 - +23法術能量
  • 符文的血色紅寶石 - +19法術能量

  • 迅速的王者琥珀 - +20加速等級
  • 迅速的秋輝石 - +16加速等級
  • 堅硬的王者琥珀 - +20命中等級
  • 堅硬的秋輝石 +16命中等級
彩凌
  • 夢魘之淚 裝備單一限定 +10所有屬性
  • 虛無球體 +4所有抗性 "與紅色、黃色或藍色插槽相容。"
  • 無限球體 +5所有抗性
  • 炫彩球體 +4所有屬性

星期四, 5月 06, 2010

1080P IPCamera

Link* IQeye HD1080p network cameras
http://www.iqeye.com/component/content/article/155.html?lang=en
  • 1080p (1920 x 1080) @ 30 fps
  • MultiStream Low BW + Hi Resolution
  • Simultaneous H.264 and MLinkJPEG Streams
* MP-HD FULL HD FULL Frame Rate Series
http://www.multipixcctv.net/product/mp-hd.htm
  • FULL Motion FULL HD 1920*1080 30fps 2 Megapixels Progressive Scan CMOS
  • Build in HTTP Protocol
  • Full HD Full Frame Rate Fix Cam
  • Full HD Full Frame Rate PTZ Cam
  • Full HD Full Frame Rate Speed Dome
*Axis Q1755 Fixed HDTV 1080p IP Camera With 10 x Zoom and H.264
*Sanyo VCC-HD2100 1080p Dual Stream (H.264/JPEG) IP Camera
http://store.videosurveillance.com/Sanyo-VCC-HD2100-ip-camera
  • Ultra compact design
  • 1080p full HD
  • 30 fps full frame rate with H.264 compression
  • Dual-stream
  • Two-way audio
  • Power over Ethernet
  • Price: $498.9
Reference:
  • http://store.videosurveillance.com
  • FEBON
    http://febon.blogspot.com/2007/10/digital-ptz-camera.html

星期五, 4月 23, 2010

SecuTech Expo 2010

SecuTech Expo 2010

GDSF 全球數位監控應用發展論壇
參加項目:
10:00 - 10:40 Keynote: DVRs "get high" with TI's new DM816x SoC - high performance, high quality, high flexibility ( Jeremiah Golston / Chief Architect for TI's Davinci Digital Media SoC product line and CTO for Video Surveillance and Video Conferencing.)
  • 816x 內帶 ARM Cortex-A8 and 1G的 674x DSP,Power Point 上報報價低於 140/2,也就是US$70以下,應該會更低。
  • 號稱能 2路 1080P Record + 16 CH CIF Streamming + 8 D1 Playback,不知真的假的。
  • Cortex-A8
    • ARMv7架構
    • NEON™訊號處理延伸技術,能加速如H.264與MP3等媒體編解碼器
    • Superscalar
    • ARM Cortex-A8
    • 該有的都有了
10:50 - 11:30 Video CODEC for Next Generation Surveillance Application (Grain Media 李恒寬博士/視頻編解碼架構長 )
  • Grain Media 為智原科技轉投資之IC設計公司,也就是 8180, 8120 這系列的啦,只講了它是用VLIW,沒有甚麼重點@@,花了40分鐘。
  • 未來H.265 正在開會,92屆MPEG會議,最少要到2013年,提到 Ton Mapping,沒了...@@,其它都是舊東東講給沒聽過甚麼是MPEG的人聽的。
National Communications Commission (NCC)
  • NCC竟然也參展,還提供一些活動,主要是兒同安全上網,還有現場考試,真是浪費錢,現場沒看到半個兒童,考完填個人資料,還問我甚麼學校幾年幾班 -.-. 送了一本筆記本。
  • 還有一些中小企業資安的演講等,真不懂政府花錢攪這些,對於企業有真正的實質的"笑"意嗎?
KSH Internation Co., Ltd
  • ZigBee to RS232/485 & Digital I/O
  • 這家賣的週邊雜物不少。
  • IP Camera 跟Video Server就只能參考參考。
其它IPCam廠
  • ...... 就是IPCAM而已,每年都一樣,懶得贅述,沒有甚麼特殊規格,擺台大螢幕出來證明畫質好,@@怎不拿台PS3來撥藍光比較快。

心得: 高畫質?NO! 低成本?YES!
  • 展場上 DVR VS IPCamera 大約是 3:2,DVR應該是有既定市場,不太可能被IPCamera取代,導向及客戶群的不同,即使是價格流血戰。
  • 本次一堆IPCamera 廠,完全沒有創新,看不出有新東西,純粹的追求高解析度、畫質,又不是在做電動玩具、電視錄放影機,這些重要嗎? No Comment~~。我想大部份都是價格導向,而不是品質導向,大廠牌才有品質問題,OEM重點還是在價格流血戰,功能?有人Care 嗎?
  • DVR廠似乎偏向軟體加值功能,前兩年的 Intelligent 還不太成熟,這次看來實用度高了些,很多廠商展出人臉/物動態追蹤、車輛/人物 Counting、Stabilization 看起來穩定很多、Triple wire counting 、ROI recording,等許多智慧實現。
  • 看來這些DVR廠有 Sense 多了,監控重點應置於事發當時的人、事、物清楚的留下,錄影資料有 99%幾乎都沒用都是垃圾。
  • TI 這顆看來適用於很多行業,甚至是手持式裝置,不過這塊也是殺粉兇,要很大量才有拼,不然夾帶著 Andriod 沒有殺手Application 是沒用的,雙 Channel H.264的 Record/Playback 在Home Media 應該也是有看頭的,不過這個兆赫的白色奇蹟殺更大,要做新東西得要有方向。
  • 不過不管是甚麼產品,未來是 1080P 的天下,這個是100趴確立,跑不掉的,3~5年後的 H.265 Ultra 系列 4Kx2K,甚至更大解析的影像處理更考驗著 RD,H.265 勢必面臨更大的挑戰,更高的壓縮比,需要目前技術上的突破,這一塊在學術上應該能有新貢獻。

星期五, 4月 02, 2010

1.1*1.1

  • 1 ^ 10 = 1
    每天一成不變,最終的結果還是1。

  • 1.1 ^ 10 = 2.5937424601
    每天改變或學習一點點,最後也將聚少成多聚沙成塔。

  • 0.9 ^ 10 = 0.3486784401
    每天偷懶一點,損失在不知不覺中變大,競爭力也在不知不覺中消失。

星期五, 3月 19, 2010

SMTP 認證問題: Client does not have permission to Send As this sender

SMTP client 失敗原因, 很多套都是,以現在很多都開啟 SMTP 驗證 server來說...

smtpAuthLogin(dsocket *sd, const char *user, const char *pass)
{
int retval = 0;
dstrbuf *data;
dstrbuf *rbuf = DSB_NEW;

data = mimeB64EncodeString((u_char *)user, strlen(user), false);
if (writeResponse(sd, "AUTH LOGIN %s\r\n", data->str) < 0) {
smtpSetErr("Socket write error: smtp_auth_login");
retval = ERROR;
goto end;
}

#ifdef DEBUG_SMTP
printf("--> AUTH LOGIN\n");
fflush(stdout);
#endif

retval = readResponse(sd, rbuf);
if (retval != 334) {
if (retval != ERROR) {
smtpSetErr(rbuf->str);
}
retval = ERROR;
goto end;
}

#ifdef DEBUG_SMTP
printf("<-- %s\n", rbuf->str);
fflush(stdout);
#endif

/* Encode the password */
dsbDestroy(data);



AUTH LOGIN %s
拆成兩個動作,以兩次的command 來回,就可以解決這個問題了

  • Client does not have permission to Send As this sender
Reference:
  • SmtpClient 身份验证失败(authentication failed) 的原因分析
  • email-3.1.2 ( smtpcommands.c )

星期五, 3月 12, 2010

netcat (Windows)

http://www.securityfocus.com/tools/139
netcat (Windows)

nc -L -p 888 , Listen port 888

星期二, 3月 02, 2010

找Paper的好地方

MicroSoft 找Paper,Reference 直接點,不用東找西找了
  • http://academic.research.microsoft.com/Paper/1239741.aspx

星期二, 1月 26, 2010

尾牙

2/9 晚上7:00

帝王食補紅面薑母鴨(志廣店)
桃園縣中壢市志廣路80號

http://www.ptt.cc/man/Food/DA58/D90C/D39E/M.1214518090.A.AE7.html

星期五, 1月 22, 2010

蘿蔔等十字花科蔬菜

近年來科學家們發現,蘿蔔等十字花科蔬菜進入人體後,經代謝很快就會產生一種抗甲狀腺的物質∼硫氰酸。該物質產生的多少與攝入量成正比。此時,如果攝入含大量植物色素的水果如橘子、梨、蘋果、葡萄等,這些水果中的類黃酮物質在腸道被細菌分解,轉化成羥苯甲酸及阿魏酸,它們可加強硫氰酸抑制甲狀腺的作用,從而誘發或導致甲狀腺腫。

星期三, 1月 20, 2010

2>&1

兩者效果有啥不同
  • system("/bin/led_flash.sh flash 100000 2>&1 &");
  • fp = popen( "/bin/led_flash.sh flash 100000 2>&1 &", "r");
    pclose( fp );

在使用CGI 時有很大的不同, 一個會動一個不會動