2008年8月2日 星期六

為什麼還不能完全靠Linux工作?

MSN傳檔案及聯絡人的狀態
  • UAs under Linux use old msn protocol
  • 我知道已經有人寫好plugin可以改進了,但是還沒有時間去試。
  • (2008/9/9 note)
  • pidgin-msn-pecan測試成功(Dabian: apt-get intstall; Ubuntu: modify sources.list and apt-get install....官網寫得很清楚)
  • 記得修改msn account 的protocol為WLM(有些版本的pidgin不能修改protocol, 那就要砍掉重練…不是啦!是砍掉帳號,重新設定一個新的帳號)
  • (可顯示他人的狀態,但不能修改自己的狀態…部分可點對點傳輸檔案,不用經過msn server)
不會在Linux底下設定lab那台印表機…
  • 有所謂的公用driver嗎?
  • ok了!…結果,居然是靠文仁傳給我Fedora上的driver才能成功…怎麼一回事?!
不能瀏覽XMS server上的powercam簡報(當然也無法錄製)
  • IE only....無言

2008年7月23日 星期三

Teaching Assistant Task!!!

Compile cnaiapi


Windows:
(說在前頭。Visual studio express version要用Windows SDK真的有夠麻煩…
用正式版的就不用這麼麻煩了)
要用winsock2.h要和ws2_32.lib連結(在system32裡)
Project setting中設定library path
or 加入#pragma comment(lib,"ws2_32.lib")

記得設定路徑
tools->options->VC++ directories->(Show directories for)include files
c:\windows\system32

可以安裝Powertoy 的open command line here工具,在操作上會比較方便。


請先build library, 再build其它檔案,不然一定出錯。

Q:"invalid preprocessor command 'include_next'"
A:

Linux/FreeBSD:
Under compile_linux directory

請詳閱Readme並「按步就班」…XD
  • make cnaiapi.o
  • make apps
---
FreeBSD:
用gmake取代make
--
當助教要認真,不要亂回答問題,也不要用自以為專業的詞解釋給人聽,以免讓人失去對網路的熱愛。
7/23
--
試著練習寫比較複雜的Makefile
8/4

2008年7月18日 星期五

Pidgin Plugin

cited:
FourDollars BlogMSN
-----
protocol for Pidgin

http://code.google.com/p/msn-pecan/ 這個計劃主要在專注在 Pidgin 當中對於 MSN 功能的改善
像是離線訊息、個人訊息之類的
Debian/Ubuntu/Gentoo 的使用者可以參考 http://code.google.com/p/msn-pecan/wiki/HowToInstall 直接安裝來使用就可以了
所以喜歡使用 Pidgin 的使用者還是可以直接享受到 MSN 的一些新功能喔~ :D

About DCCP

DCCP(Datagram Congestion Control Protocol)
  • message-oriented
  • transport layer protocol
Adopted from RFC 4340


Design Rationale(設計原理


One DCCP design goal was to give most streaming UDP applications
little reason not to switch to DCCP, once it is deployed.
DCCP 其中一個設計目標就是讓大多數使用UDP協定的應用程式,在DCCO建置抵定後,都沒有理由不採用之。

To facilitate this, DCCP was designed to have as little overhead as
possible, both in terms of the packet header size and in terms of the
state and CPU overhead required at end hosts.
為了達成此目標,設計DCCP協定時便考量了如何儘可能地減少封包表頭大小、狀態數目和終端主機的CPU荷負。

Only the minimal necessary functionality was included in DCCP, leaving other
functionality, such as forward error correction (FEC), semi-
reliability, and multiple streams, to be layered on top of DCCP as
desired.

Different forms of conformant congestion control are appropriate for
different applications. For example, on-line games might want to
make quick use of any available bandwidth, while streaming media
might trade off this responsiveness for a steadier, less bursty rate.
(Sudden rate changes can cause unacceptable UI glitches such as
audible pauses or clicks in the playout stream.) DCCP thus allows
applications to choose from a set of congestion control mechanisms.
One alternative, TCP-like Congestion Control, halves the congestion
window in response to a packet drop or mark, as in TCP. Applications
using this congestion control mechanism will respond quickly to
changes in available bandwidth, but must tolerate the abrupt changes
in congestion window typical of TCP. A second alternative, TCP-
Friendly Rate Control (TFRC) [RFC3448], a form of equation-based
congestion control, minimizes abrupt changes in the sending rate
while maintaining longer-term fairness with TCP. Other alternatives
can be added as future congestion control mechanisms are
standardized.

DCCP also lets unreliable traffic safely use ECN. A UDP kernel
Application Programming Interface (API) might not allow applications
to set UDP packets as ECN capable, since the API could not guarantee
that the application would properly detect or respond to congestion.
DCCP kernel APIs will have no such issues, since DCCP implements
congestion control itself.

We chose not to require the use of the Congestion Manager [RFC3124],
which allows multiple concurrent streams between the same sender and
receiver to share congestion control. The current Congestion Manager
can only be used by applications that have their own end-to-end
feedback about packet losses, but this is not the case for many of
the applications currently using UDP. In addition, the current
Congestion Manager does not easily support multiple congestion


control mechanisms or mechanisms where the state about past packet
drops or marks is maintained at the receiver rather than the sender.
DCCP should be able to make use of CM where desired by the
application, but we do not see any benefit in making the deployment
of DCCP contingent on the deployment of CM itself.

We intend for DCCP's protocol mechanisms, which are described in this
document, to suit any application desiring unicast congestion-
controlled streams of unreliable datagrams. However, the congestion
control mechanisms currently approved for use with DCCP, which are
described in separate Congestion Control ID Profiles [RFC4341,
RFC4342], may cause problems for some applications, including high-
bandwidth interactive video. These applications should be able to
use DCCP once suitable Congestion Control ID Profiles are
standardized.

2008年5月30日 星期五

創見T630的歌詞顯示功能

一切的一切,都得靠千千靜聽了!!
1.下載、安裝。
2.設定
請設定歌詞搜尋→儲存到歌曲所在資料夾→全部儲存


→播放歌曲時按右鍵搜尋歌詞(歌詞資料庫用預設的就可以了)
→搜尋→下載

→之後便可在歌曲所在資料夾找到對應的歌詞檔(副檔名為lrc)


→將歌曲及對應的lrc(歌詞檔)丟到mp3 player中

ok!!

Note:
有時候歌詞在MP3 Player上會無法顯示(外文歌詞比較常發生這種問題),這時候可能是因為編碼的問題,可用Windows的記事本另存成ANSI encode, 再傳到MP3 Player上試試。

報告避噹法則

The Greek AlphaBet!!


(老爺~我開玩笑的!!XD)

如何在PowerPoint簡報中加入Youtube影片

1.檢視→控制工具箱→其它控制箱→Shockwave Flash Object→拉出你要顯示的大小
2.在拉出的物件上按右鍵,選屬性,編輯「自訂」欄位,貼上Youtube URL,但是URL要修改
修改EXAMPLE:
"http://www.youtube.com/watch?v=4yzUxNbi1h4"→"http://www.youtube.com/v/4yzUxNbi1h4"
(說明:去除watch? 和v後方的= 並在v前後加上slash)
OK!!在放映投影片時即可收看。(當然一定要是在online status啦~)

Ref:
http://www.youtube.com/watch?v=4yzUxNbi1h4