2008年10月31日 星期五

Lab: 增加回應功能


Lab: 增加回應功能

1. 以一段程式自動擷取部落格的回應留言,讓你的部落格產生最新回應,沒有時差。
2. 請你的同學給你一個 comment,是否能正確顯示在最新回應上。
3. 實例




2008年10月27日 星期一

Lab: More on HTML

Headings
1. Copy and paste the Headings example athttp://www.w3schools.com/html/html_primary.asp
2. Enter http://www.w3schools.com/html/tryit.asp?filename=tryhtml_basic
3. What kind of effects can you see?

Lists
4. Copy and paste the Headings example athttp://www.w3schools.com/html/html_lists.asp
5. Enter http://www.w3schools.com/html/tryit.asp?filename=tryhtml_basic
6. What kind of effects can you see?



Lab: HTML

Preparation

1. Using Microsoft Notepad, Copy and paste the HTML example atIntroduction to HTML
2. Save the file as myfile.html
3. Open the file using Firefox.

New editor
4. Enter http://www.w3schools.com/html/tryit.asp?filename=tryhtml_basic
5. Copy and paste the HTML example at Introduction to HTML
6. Verify your results on the screen.




Lab: Accessibility by GreaseMonkey

  1. Google Search Keys Numbers the results in a Google search page and you can type the corresponding number to follow the link. Updated: 2005-04-26. more
  2. Google Access Keys Enables navigation through Google search results.

  3. AccessBar: displays defined accesskeys in a fixed-position bar along the bottom of the window. Added 2005-04-01 (not a joke). Find how many access keys have been defined atwww.ocac.gov.tw www.epa.gov.tw
  4. Continued from 3, use google to find 3 more government sites in Taiwan that enable access keys.
Reference: Dive into Greasemonkey by Mark Pilgrim (free download)
http://dia.z6i.org/ (中文)


1.
2.
3.
4.


Lab: Tongwen


At Firefox installed with Greasemonkey, install the Simplified-to-Traditional character conversion tool Lab Tongwen.


2008年10月20日 星期一

Lab: Web Pageranking

星期一, 十月 20, 2008

Lab: Web Pageranking

在Firefox上安裝 PageRank , 然後使用 PageRank 量測以下網站的 PageRank (0~10分)

紐約時報 http://www.nytimes.com
CNN http://www.cnn.com/
張老師個人部落格


接著,以PageRank量測你常用的三個網站。

參考資料:
PageRank 介紹
PageRank 的論文
Google 廣告獲利模式




answer
1.
紐約時報 9分
2.CNN 9分
3.張老師個人部落格 1分
4.yahoo 8分
5.MSN 7分
6.無名小站 7分

2008年10月3日 星期五

Lab Keyboard Input


星期五, 十月 03, 2008

Lab Keyboard Input

Rewrite Display 2.6 using BufferedReader.

You need to import the following packages in the first place.

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

Change

Scanner keyboard= new Scanner(System.in);

into

BufferedReader keyboard= new BufferedReader(new InputStreamReader(System.in));

String inputString = keyboard.readLine();

Note the Main method needs IOException handling as follows:

public static void main (String[] args) throws IOException

Lab Scanner Do Display 2.6.


星期五, 十月 03, 2008

Lab Scanner

Do Display 2.6.