S
ketchUp 6是Google提供的免費3D model製作軟體,當然他有提供pro的付費版本,不過SketchUp 6免費版的功能感覺上就已經很不錯了!! 所以先來玩玩看。目前正在玩SketchUp這個軟體,開始會把每次的model進度po上來...
還沒有構想,邊玩邊想拉~
下面就是用Sketchup 6弄出來的Model,有空在做一些優缺點分析! ^^

免
費抓packet的軟體 Ethereal 0.10.14 & WinPcap 4.1 beta2
Element Display Name URI
-------------- -------------- ---------------------------
User Agent Alice alice@atlanta.example.com
User Agent Bob bob@biloxi.example.com
User Agent
Proxy Server ss1.atlanta.example.com
Proxy/Registrar ss2.biloxi.example.com
Proxy Server ss3.chicago.example.com
ALG alg1.atlanta.example.com
Element IP Address
-------------- -------------
User Agent 192.0.2.101
User Agent 192.0.2.201
User Agent 192.0.2.100
Proxy Server 192.0.2.111
Proxy/Registrar 192.0.2.222
Proxy Server 192.0.2.233
ALG 192.0.2.128
Alice Bob | | | INVITE F1 | |----------------------->| (送出邀請,詢問是否參與通訊) | 180 Ringing F2 | |<-----------------------| (告知邀請者,我在考慮或處理中...) | | | 200 OK F3 | (告知邀請者,我願意接受通訊) |<-----------------------| | ACK F4 | |----------------------->| (告知受邀者,邀請者以確認妳的意願) | Both Way RTP Media | |<======================>| (開始通訊囉!!) | | | BYE F5 | (有一方要結束通訊,並告知對方) |----------------------->| | 200 OK F6 | |<-----------------------| (回應結束方的告知) | |以上即為一個完整的session建立、通訊與結束。在此,我們來開始碰SIP封包吧! (若想要抓取SIP封包,可以用Ethereal來抓,filter設成sip即可。(Ethereal也是ㄧ個很好debug以及trace packet flow的軟體) 補充一點,圖中的F1,F2,....只是用來輔助說明是哪一個packet用的符號而已。看到此,或許已經開始有些疑問,Alice是怎麼找到Bob? 他們的通訊是用甚麼audio(video) codec? 怎麼知道對方有沒有自己的audio(video) codec? 這部分其實SIP在call setup這個階段就有偷偷在做溝通、協調了,這牽涉到RFC3264 (SDP),以後會再補充這部分(應該會再第四部或第五部說明)。 OK,第一個packet F1 INVITE Alice -> Bob
INVITE sip:bob@biloxi.example.com SIP/2.0 Via: SIP/2.0/TCP client.atlanta.example.com:5060;branch=z9hG4bK74bf9 Max-Forwards: 70 From: Alice ;tag=9fxced76sl To: Bob Call-ID: 3848276298220188511@atlanta.example.com CSeq: 1 INVITE Contact: Content-Type: application/sdp Content-Length: 151 v=0 o=alice 2890844526 2890844526 IN IP4 client.atlanta.example.com s=- c=IN IP4 192.0.2.101 t=0 0 m=audio 49172 RTP/AVP 0 a=rtpmap:0 PCMU/8000 在這裡,因為SIP都有既定的格式(RFC3261裡有說明),所以內容我就不方便在做排版。好了,這裡首先碰到第一個麻煩事! 每一行代表什麼? 每一行中的keyword又代表什麼意義? 用途? 誰填的? 一堆問題開始冒出來! 因此,我們得先來看SIP的Message structure... SIP Message Structure是text-based,並且是使用UTF-8的format。在SIP Message的分類,主要分為兩類: Request 與 Response 也就是需求的要求方與回應方。而這兩類的Massage都是遵循下面的General Fomat: generic-message = start-line
*message-header
CRLF
[ message-body ]
很簡單的format,三個部分:start-line、message-header以及optional的message-body,特別注意的是要有一個CRLF(carriage-return line-feed)也就是ㄧ個空行區分message-body與上面兩個sections。很明顯,optional的部分(message-body)是用來做功能擴充的、補充,這部分將在更後面來介紹。 第一個section ---> start-line,在SIP(RFC3261中)有定義其format,如下 start-line = Request-Line / Status-Line Request-Line的format [Request message的格式] Method Request-URI SIP-Version CRLF 在此,Method指的是Request的種類,有可能妳是要INVITE,也有可能妳是要註冊等等,都是在此欄位表明。Request-URI則是ㄧ個Identifier,含有標示requester的功能,詳細功能下面會再說明。最後兩個欄位(SIP-Version與CRLF)就不用說明了。以上為Request message第一行所要遵循的format。 針對Method,主要有下列幾種: REGISTER
Provides a registrar service with contact address and the alias that can be used instead.
(User Agent註冊,這個部分以後會再開一個section討論)
INVITE
Call a user agent, transfer a call
(邀請對方通訊)
ACK
Confirm the call
(確認回覆)
CANCEL
End a call that hasn’t been OK’d yet.
(取消尚未回應的request)
BYE
End a call.
(結束通訊)
OPTION
Ask a user agent for its “capabilities”.
(詢問對方的通訊能力)
Status-Line的format [Response message的格式] SIP-Version Status-Code Reason-Phrase CRLF 第一個SIP-Version也就不用說明,Status-Code則是回應requester他的答覆,可能為200,也可能是180 等等。接著的欄位Reason-Phrase則是Status-Code的文字說明。如:OK、TRYING等。 針對Status-Code,SIP有下列六大分類。 1xx: Provisional – request received, continuing to process the request; (有"預先"回應的意思的status-code,也就是在真正處理結果出來前回應給requester說"我正在處理、或是其他狀態) 2xx: Success – the action was successfully received, understood, and accepted; (很明顯,處理結果的回應,有接受的意思) 3xx: Redirection – further action needs to be taken in order to complete the request; (需要再進一步處理的回應) 4xx: Client Error – the request contains bad syntax or cannot be fulfilled at this server; (有錯誤發生都定義在這個類別裡) 5xx: Server Error – the server failed to fulfill an apparently valid request; (Server-side的error) 6xx: Global Failure – the request cannot be fulfilled at any server. (任何server都無法處理的錯誤) 很好,到目前為止,我們理解了第一行的意義,再來就是message-header這部分,message-header fields真的不少,功能很多,而且並非每個header field都是必要的,所以會先大略帶過,以後再從例子再詳細說明。在2nd part中,我們將會繼續說明各個header field的功能,並真正開始介紹種種example,可以預期的,越往後面的例子,將不會著重在header field的說明,因為header fields將會在前1/3的例子中就說明完,後2/3將會看整個message flow,熟悉SIP的運作。 Part 1 end. 請接著看 SIP Intro --- 第二部 (part 2)
i
Google

以
下是我在網路上找的一些有關linux的資訊,這個部分比較乏味,我都是用到再來查...$ grep bash /etc/passwd
operator:x:11:0:operator:/root:/bin/bash
root:x:0:0::/root:/bin/bash
ftp:x:40:1::/home/ftp:/bin/bash
$ grep dev.hda /etc/fstab
/dev/hda3 / reiserfs noatime,ro 1 1
/dev/hda1 /boot reiserfs noauto,noatime,notail 1 2
/dev/hda2 swap swap sw 0 0
#/dev/hda4 /mnt/extra reiserfs noatime,rw 1 1
$ grep dev.hda[12] /etc/fstab
/dev/hda1 /boot reiserfs noauto,noatime,notail 1 2
/dev/hda2 swap swap sw 0 0
$ grep dev.hda[^12] /etc/fstab
/dev/hda3 / reiserfs noatime,ro 1 1
#/dev/hda4 /mnt/extra reiserfs noatime,rw 1 1
$ grep dev[.]hda /etc/fstab$ grep "dev\.hda" /etc/fstab$ grep ^# /etc/fstab
# /etc/fstab: static file system information.
#$ grep '^#.*\.$' /etc/fstab
# /etc/fstab: static file system information.R
ocketDock目
前剛好在弄AdSense,碰到了robots的問題,找到了些文件資料,給大家參考參考。 http://www.w3.org/
http://www.w3.org/robots.txt
http://www.w3.org:80/
http://www.w3.org:80/robots.txt
http://www.w3.org:1234/
http://www.w3.org:1234/robots.txt
http://w3.org/
http://w3.org/robots.txt User-agent: *
Disallow: / User-agent: *
Disallow: User-agent: *
Disallow: /cgi-bin/
Disallow: /tmp/
Disallow: /private/ User-agent: BadBot
Disallow: / User-agent: WebCrawler
Disallow:
User-agent: *
Disallow: / Baiduspiderhttp://www.baidu.com
Scooterhttp://www.altavista.com
ia_archiverhttp://www.alexa.com
Googlebothttp://www.google.com
FAST-WebCrawlerhttp://www.alltheweb.com
Slurphttp://www.inktomi.com
MSNBOThttp://search.msn.com http://www.cnn.com/robots.txt
http://www.google.com/robots.txt
http://www.ibm.com/robots.txt
http://www.sun.com/robots.txt
http://www.eachnet.com/robots.txt<html>
<head>
<title>時代營銷--網路營銷專業門戶</title>
<meta name="Robots" content="index,follow">
<meta http-equiv="Content-Type" CONTENT="text/html; charset=gb2312">
<meta name="keywords" content="營銷… ">
<meta name="description" content="時代營銷網是…">
<link rel="stylesheet" href="/public/css.css" type="text/css">
</head>
<body>
…
</body>
</html><meta content="INDEX,FOLLOW" name="ROBOTS"><meta content="ALL" name="ROBOTS">;<meta content="NOINDEX,NOFOLLOW" name="ROBOTS"><meta content="NONE" name="ROBOTS">