2009年1月5日 星期一

Lab Web Stress Test

1. Download Stress Test
2. Take a look at the user manual.
3. Test a static page.
Try combinations of stress levels and stress multipliers to simulate 10 users and 100 users.
4. Test a dynamic page.
Try combinations of stress levels and stress multipliers to simulate 10 users and 100 users.
5. Compare the response time of both pages and explain why.

2008年12月29日 星期一

Lab Site Traffic Metrics

1. Enter Sitemeter.
2. Put a Sitemeter in your own blog.
2. Check the site meter to see the daily traffic chart, the recent visitors by locations.



Lab: Packet Sniffer

1. Install Protocol Analyzer Ethereal at http://www.wireshark.org/
2. Capture the packets at your Ethernet interface card.
3. Enter a login required website that you often go to, such as web mail. Don't use the real account or password.
4. Try to catch the packet that contains the password.


2008年12月22日 星期一

Lab: Drap and Drop

1. Go to Laszlo and enter (Laszlo in 10 minutes).
2. Study and play around the "drag-and-drop" example.
3. Use this method to control movie playing as in the previous lab.
4. If you drag and drop the photo to the "play" area, the movie plays.
5. If you drap and drop the photo to the "pause" area, the movie pauses.

Lab: Movie Player

1. Go to Laszlo and enter (Laszlo in 10 minutes).
2. Study and play around the "scripting" and "video" examples.
3. Use this script to control movie playing.
4. If you push the "pause" button, the movie pauses.
5. If you push the "resume" button, the movie resumes.

2008年12月15日 星期一

Lab DOM

[Lab]
1. Open NVu
2. Based on the code as in http://www.scottandrew.com/weblog/articles/dom_4 ,
write a code to generate the table of 9*9 products. (九九乘法表)

Hint: The javascript code should be enclosed by script tags.





Lab Create Image using DOM

1. Open Nvu
2. Hand code a javascript that loads an image from Internet based on
the DOM model.
3. Take a look at the sample code that shows how window.onload to load the image.
4. Use a button to load the image. Try how onclick works.







2008年12月8日 星期一

Lab XML

1. Given the RSS of Class Blog, write an XSLT fileand use Xray to generate an HTML that contains the titles of items in the RSS.

2. Open the XML file by Word and you will see the document structure.

3. View the formatted HTML file.

2008年12月1日 星期一

Lab XML (2)

1. Register and Download Xray, an XML, XSLT editor and processor.

2. Given the
Listing 1. An XML document representing the results of a soccer tournament
Listing 2. A basic style sheet for the soccer results

use the XSLT as in the Listing 2 to transform the XML file as in the Listing 1.
(archive)

3. View the formatted HTML file.





4. Given the
Listing 1. An XML document representing the results of a soccer tournament
Listing 3. A style sheet that computes team standings

compute the team standings in a table.

5. View the formatted HTML file.



Lab XML

1. Register and Download Xray, an XML, XSLT editor and processor.

2. Given the the XML file and XSLT file ,
use Xray to do the transformation of the XML into HTML.
You have to replace [ with <.

3. View the formatted HTML file.


2008年11月24日 星期一

Homework 11-24-2008

1. Lab: Form and Action, Part II

2. 在CGI語法裡,解釋 GET, POST 差異在哪裡?

POST 方法是將資料包裝在 HTTP 標頭內傳送給 Web server。
GET 方法則是將資料直接加在 URI 之後。
 使用 GET method 所能傳遞的資料有限,在需要上傳大量資料或檔案時,使用 POST method。
不過,由於 GET method 係將資料直接加在 URI 之後,所以對瀏覽器而言,它將被視為 URI 的一部份,也能被使用者端的電腦中,不至於在畫面上看到「警告:網頁已經過期......」的字句。
而至於安全性方面,GET 直接將帳號及密碼放在URL之後,POST則否,因此,在保密性上是POST較佳。

參考資料:http://chensh.loxa.edu.tw/php/D_1.php

Lab Checking dead links

W3C Link Check 可以檢查 dead links, 而且只要輸入首頁,
就可以依據指定深度自動向下檢查, 而且也可以檢查對外連結(外站).

Link Checker 首先要設定檢查深度(Check linked documents recursively, recursion depth=?), 如果沒有設定, 它就只有檢查首頁.
因此如果出現 deadlink, 就是在首頁.

如果你設定檢查深度, 它就會逐一檢查此深度內的每一頁,
在檢查某一頁開始時, 它會先顯示現正在檢查的 URL, 然後
在逐一爬行該頁內每個 link.


報表輸出很漂亮. 請參閱
http://validator.w3.org/checklink

請檢查三個你最常使用的網站, 看看連結的品質如何?
紀錄有錯誤連結 (HTTP Error 404) 的次數.

google


yahoo


msn

Lab: Form and Action, Part II

Hand code a HTML or use Nvu to edit an HTML so that the webpage can send a request to Google like
http://maps.google.com/maps?q=24.9586,+121.24114

Use Form CGI that includes action, input, and submit.
Try a few different coordinates.





Lab: Form and Action

"logic will get you from A to B - imagination will take you anywhere"

How to use Form to invoke a remote service through CGI.

1. Copy the search box of this search page,
inlcuding radio buttons, text input, and submit button.
2. Open your Nvu HTML editor.
3. Open a new empty HTML file.
4. Paste the search box into this new file.

5. Use Nvu to add a Form to this search box. Do not hand code the HTML. Just fill the blank in the Form dialog.

6. In the form dialog, set Action="http://google.com/search" and name of Form as "f" and method as "get"
(See Hint if it does not work.)
7. Save your file on your computer. Run your HTML by Firefox. What do you get?

8. Set method as "post"
9. Run your HTML by Firefox. What do you get?









mash up

mash up(混搭)指整合網路上多個資料來源或功能,以創造新服務的網路應用程式。常見的混搭方式除了圖片外,就是一些公開程式及資料,像google Map就有這樣的功能,把查詢到的地圖,以鑲嵌的方式貼到自己的blog上,便於大家觀賞;其他如影音、新聞、相簿等服務,皆可以。整合各種訊息,混搭不同資訊及服務,創造自己的mash up風格。

web 2.0

web 2.0這個概念開始於O'Reilly公司和MediaLive國際公司會議中,自網路泡沫化後,互聯網比其他任何都更重要,新的應用程序和網站驚訝的規律性湧現出來,如google, yahoo, skype, salesforce, flickr, you tube, myspace, cyworld…等

1.分享平台
有效利用消費者的自助服務和算法上的數據管理,以便能夠將其延伸至整個互聯網,延伸至各個邊缘而不全是中心,延伸至尾端而不全是開端。
2.利用集體力量
為鏈結的一個基礎,源於用戶貢獻的網路效應,在Web 2.0時代中掌握市場的關鍵。
3.個人網站-blog
為一種日記型式的個人網頁,而其中的一大變化是RSS之使用,有人稱為live web,也有人說是incremental web,他的功能不僅將原本web 1.0的發布轉而成為社區型式,讓人人都可參與,也有了討論,聊天的互動,此雙向鏈結也為web2.0帶來新商機。
4.軟件
軟件的發布沒有週期性,因此像google及yahoo等等,皆時時更新系統及鏈結。
軟件超越單一設備,賦予我們為新平台設計程序和服務的關鍵性。

打破以往web 1.0的不少缺點,讓網路平台更便於應用,如目錄->標籤、personal websites->blogging、stickiness->聚合、線上大英百科->維基百科...等,已成為現今網路不可或缺的設備,且許許多多的附加功能,陸陸續續推出,讓web2.0更完整、更便利。

2008年11月22日 星期六

2008年11月17日 星期一

Lab Mashup 3

Check it out! Real time satellite tracking

It is a mashup of Google Map and satellite teacking data.

Use the website to track Formosa III satellite.

Lab 4 Mashup

Create a slide show of your album.