收集資料→閱讀→實作練習→實作心得→成果說明
2017-06-04
2012-07-08
2012-04-04
用英文電台起床
我參考這個網站:http://tech.ed65.com/2011/01/07/%E5%88%A9%E7%94%A8-windows-7-%E5%B7%A5%E4%BD%9C%E6%8E%92%E7%A8%8B-crontab-%E5%AE%9A%E6%99%82%E9%96%8B%E5%95%9F%E7%B6%B2%E9%A0%81%E4%BB%A5%E5%8F%8A%E9%97%9C%E6%A9%9F/
想把電台網頁當成鬧鐘,不過卻遇到了這個畫面。
暫時不太想解決這種問題,所以我轉以MagicClock來解決→http://holanet.pixnet.net/blog/post/350068-magicclock-ver-2.0-beta
本來是想用MagicClock內建的網路電台,但是現在越來越多的網路電台都不給你收聽用的網址,要拆flash又很困難,所以直接寫一個會跳出目標網頁的bat相對簡單很多。
我的步驟:
2012-02-25
借來的USB外接硬碟為什不能灌W7?
本文關鍵字:USB, W7, Windows7, 外接硬碟, Windows7-USB-DVD-tool
因為是usb硬碟,不是usb Flash隨身碟,所以微軟提供的USB灌OS的軟體沒有用....因為在選擇USB時,它只會抓顯示為可卸除裝置的USB硬碟抓不到哇哈哈。
所以不過就別人給的東西不能用嘛,哼,這東西沒出來前還不是照用外接硬碟灌電腦?大不了用老方法。
Note:如果你有正規USB flash碟,請參考這篇→http://save-coco.blogspot.com/2009/11/usbwindows-7.html
我將內容物使用暴力法直接拷貝到外接硬碟裡後,再將外接硬碟設為系統優先碟,然後就可以用它來灌筆電了。
本次突破點:
1. M$軟體不讓我把ISO裝到HD裡欸→暴力法古法直接拷貝到硬碟裡
2. NB它好像不太認得這個HD欸,是黑畫面說→因為NB也是把外接硬碟當硬碟看,你要把他設定為系統優先碟,NB才會先抓外接硬碟,而不是自己空空如也的新硬碟。
你可能需要參考的網站:
http://kmwoley.com/blog/?p=345
http://kingsizeegg.blogspot.com/2009/01/win7-cd-on-usb-stick.html
因為是usb硬碟,不是usb Flash隨身碟,所以微軟提供的USB灌OS的軟體沒有用....因為在選擇USB時,它只會抓顯示為可卸除裝置的USB硬碟抓不到哇哈哈。
所以不過就別人給的東西不能用嘛,哼,這東西沒出來前還不是照用外接硬碟灌電腦?大不了用老方法。
Note:如果你有正規USB flash碟,請參考這篇→http://save-coco.blogspot.com/2009/11/usbwindows-7.html
我將內容物使用暴力法直接拷貝到外接硬碟裡後,再將外接硬碟設為系統優先碟,然後就可以用它來灌筆電了。
本次突破點:
1. M$軟體不讓我把ISO裝到HD裡欸→
2. NB它好像不太認得這個HD欸,是黑畫面說→因為NB也是把外接硬碟當硬碟看,你要把他設定為系統優先碟,NB才會先抓外接硬碟,而不是自己空空如也的新硬碟。
你可能需要參考的網站:
http://kmwoley.com/blog/?p=345
http://kingsizeegg.blogspot.com/2009/01/win7-cd-on-usb-stick.html
2011-05-27
NP 作業3
Netkitty, or nk (Just like netcat)
Please refer to netcat to see what to implement.
Due date: May 22 → 28
Additional hints
use ‘getopt’ for command parsing (see getopt(3))
Please refer to netcat to see what to implement.
Basic requirements
1. Read from standard input and write to standard output, and transfer the data like netcat does. (35%)
2. Execute a program on a remote machine. A user can input parameters for a program if needed, and can see the execution output. (i.e., a remots shell) (50%)
3. Implement as many as Netcat can do (e.g., supporting more command options). Add 5% for each new function.
2. Execute a program on a remote machine. A user can input parameters for a program if needed, and can see the execution output. (i.e., a remots shell) (50%)
3. Implement as many as Netcat can do (e.g., supporting more command options). Add 5% for each new function.
Due date: May 22 → 28
Additional hints
use ‘getopt’ for command parsing (see getopt(3))
--
說要像netcat,那直接執行摳不摳亦咧豬腳大人~?(歪頭裝口愛)
2011-04-25
NP作業2
homework2 作業題目
In this homework, you will write a pair of Little Messenger client and server. The requirements of the Messenger system is as follows.
1. The Messenger client operates in dual modes: command mode and chatting mode. (10%)
2. A user can register a new account from the Messenger client on line, and log in on the Messenger server. (20%)
3. The user can list on-line users on the server.(10%)
2. A user can register a new account from the Messenger client on line, and log in on the Messenger server. (20%)
3. The user can list on-line users on the server.(10%)
4. A user can send messages to another on-line user, or start a conversation with him or her.(20%)
5. A user can broadcast a message to all on-line users. (10%)
6. A user can leave a off-line message to another, and he/she can see the off-line message when he/she logs in.(10%)
7. A user can log out the server. (5%)
8. Add 5 points for each new function.
6. A user can leave a off-line message to another, and he/she can see the off-line message when he/she logs in.(10%)
7. A user can log out the server. (5%)
8. Add 5 points for each new function.
You do not have to design a GUI like Live Messenger. A text-mode interface is pretty fine. The server can be on an arbitrary port. Due date: Apr. 29.
note:
gcc -o
(ca)
工作站> setenv LC_ALL zh_TW.UTF-8
把目前連線全部的編碼方式都改成UTF-8
[抓蟲中]
以下是流程圖,一樣是用office2010 power point快取圖樣拉的。


參考資料:
1. The World of select()
http://www.lowtek.com/sockets/select.html
> So one main advantage of using select() is that your server will only require a single process to handle all requests. Thus, your server will not need shared memory or synchronization primitives for different 'tasks' to communicate.
> ya!! 一個process!! no more fork!!
2.
unpv13e/
select/strcliselect01.c
select/strcliselect02.c
tcpcliserv/tcpservselect01.c
tcpcliserv/tcpservpoll01.c
3. Socket Client Examples
http://www.tutorialspoint.com/unix_sockets/socket_client_example.htm
4. gcc 語法
http://aikosenoo.pixnet.net/blog/post/23038692
note:
gcc -o
(ca)
工作站> setenv LC_ALL zh_TW.UTF-8
把目前連線全部的編碼方式都改成UTF-8
[抓蟲中]
以下是流程圖,一樣是用office2010 power point快取圖樣拉的。


參考資料:
1. The World of select()
http://www.lowtek.com/sockets/select.html
> So one main advantage of using select() is that your server will only require a single process to handle all requests. Thus, your server will not need shared memory or synchronization primitives for different 'tasks' to communicate.
> ya!! 一個process!! no more fork!!
2.
unpv13e/
select/strcliselect01.c
select/strcliselect02.c
tcpcliserv/tcpservselect01.c
tcpcliserv/tcpservpoll01.c
3. Socket Client Examples
http://www.tutorialspoint.com/unix_sockets/socket_client_example.htm
4. gcc 語法
http://aikosenoo.pixnet.net/blog/post/23038692
2011-04-13
30÷2(2+3)÷5=?
這是個語意解讀上的問題(1s)
啊講詳細點就是人和電腦對係數的處理方式不太統一。
而且人類在計算時,下意識進行的大量省去和結合等等都是電腦不懂得,電腦的優點只在於學會了之後很快而已(噴笑)
國小老師教我們
step1. 2+3 replace 5 括號優先
step2. 2(5) replace 10 係數優先
step3. 30÷10 replace 3 左結合
step4. 3÷5 replace 0.6 為最終解
如果電腦要達到這種解讀的話
必須在處理係數的時候,是用刮號以及乘號去取代:2(2+3) replace (2*(2+3))
另一個可能出現的解答15的原因在於係數只用乘法取代,原式變成30÷2*5÷5。
step1. 2 replace 2*
step2. (2+3) replace 5
step3. 30÷2 replace 15
step4. 15*5 replace 75
step5. 75÷5 replace 15
不過這很明顯不是使用者期望的....不過這邊,如朋友所言,這裡已經不是 syntax 的問題而是 semantics的問題啦XDDD
括號跟分數的簡化最好是每做完一步都check一下,這個check是自然演算法中的[下意識],但是電腦很笨(真正厲害的是工程師─請支持正版),所以你不寫一串不太直覺的處理沒辦法達到自然運算的效果。
啊講詳細點就是人和電腦對係數的處理方式不太統一。
而且人類在計算時,下意識進行的大量省去和結合等等都是電腦不懂得,電腦的優點只在於學會了之後很快而已(噴笑)
國小老師教我們
step1. 2+3 replace 5 括號優先
step2. 2(5) replace 10 係數優先
step3. 30÷10 replace 3 左結合
step4. 3÷5 replace 0.6 為最終解
如果電腦要達到這種解讀的話
必須在處理係數的時候,是用刮號以及乘號去取代:2(2+3) replace (2*(2+3))
另一個可能出現的解答15的原因在於係數只用乘法取代,原式變成30÷2*5÷5。
step1. 2 replace 2*
step2. (2+3) replace 5
step3. 30÷2 replace 15
step4. 15*5 replace 75
step5. 75÷5 replace 15
不過這很明顯不是使用者期望的....不過這邊,如朋友所言,這裡已經不是 syntax 的問題而是 semantics的問題啦XDDD
括號跟分數的簡化最好是每做完一步都check一下,這個check是自然演算法中的[下意識],但是電腦很笨(真正厲害的是工程師─請支持正版),所以你不寫一串不太直覺的處理沒辦法達到自然運算的效果。
至於/跟÷這兩個傢伙,在自然語言中的語意更是天差地遠。
A/B 解讀為分數,是用橫式表示直式的寫法。(...很令人頭暈齁...沒關係稱下去你就得到它了!!!)
A÷B 解讀為A除以B
雖然現在看起來一樣,但是丟到更長的式子裡去就很可怕了。
以下的ABCD為代數
手寫的 A/BC/D,是先解讀/號並自動加上刮號,是表示((A÷B)*(C÷D)),答案寫成AC/BD
但是(在某種不可能發生在人類自然解讀的情形下)
電腦對於A/BC/D解讀順序是先把B視為C的係數,(A/(B*C))/D,答案是A/BCD。
我compiler修得亂七八糟的,那些專有名詞都忘記系蝦毀惹。
訂閱:
文章 (Atom)
