星期三, 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月 28, 2010

星期四, 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