2012年12月21日 星期五

Lab 36 Syndication with RSS 2.0
















1. 進入你的部落格,登入,選擇設計
2. 新增小工具
3. 選取
資 訊提供 新增
將 RSS 或 Atom 資訊提供的內容加入您的網誌。

Blogger 製作

4. 撰寫或貼上所需連結(範例)

Q:請描述至少一個你做這個lab所遇到的問題,並且你是如何解決這個問題的。

一切都OK!!

Lab 35 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 34 XML

1. Register and Download Xray, an XML, XSLT editor and processor.
    (安裝X-Ray需要權限)

    (助教碎碎念:若無法順利安裝在點)

2. Before you do this lab,all the first you must know is 
    what is XML?
    what is XSLT?
    please write down your answer.(least 200 words)

XML-可延伸標記式語言英語eXtensible Markup Language,簡稱:XML),是一種標記式語言。標記指電腦所能理解的訊息符號,透過此種標記,電腦之間可以處理包含各種訊息的文章等。如何定義這些標記,既可以選擇國際通用的標記式語言,比如HTML,也可以使用像XML這樣由相關人士自由決定的標記式語言,這就是語言的可延伸性。XML是從標準通用標記式語言(SGML)中簡化修改出來的。它主要用到的有可延伸標記式語言、可延伸樣式語言(XSL)、XBRLXPath等。


XSL-可擴展樣式語言extensible stylesheet language,簡稱XSL),是一種為[可擴展置標語言](XML)提供表達形式而設計的語言。
由於可擴展置標語言的擴展性使之沒有關於顯示格式的標識,可擴展樣式語言可以選擇和過濾可擴展置標語言中的數據,並將其轉換為HTML或者PDF等其他格式文件。

資料來源:維基百科

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

4. View the formatted HTML file.


2012年12月15日 星期六

Lab 33 Speed Test

測試中原大學與中央大學對外頻寬速度。

Tool: Speedtest

 
cycu proxy: proxy.cycu.edu.tw:3128























no proxy
 













Lab 32 Programming in DOM (II)






































1. Open KompoZer
2. Based on the code as in

http://www.scottandrew.com/weblog/articles/dom_4 ,
write a code so that when you push a button, you generate the table of 9*9 products. (九九乘法表)

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

2012年12月3日 星期一

Lab 30 Create Image using DOM









 

 1. Open KompoZer
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.

Q:請描述至少一個你做這個lab所遇到的問題,並且你是如何解決這個問題的。

程式碼有error 後來已解決。

Lab 31 Programming in DOM



















1. Open KompoZer
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.

Q:請描述至少一個你做這個lab所遇到的問題,並且你是如何解決這個問題的。
程式碼一開始不清楚,後來才了解。

Lab 29 Hand code a form

Before you do this lab, you must understand what is CGI(Common Gateway Interface)  and Form.

1. So please search the answer and post your opinion in your blog.

2. Hand code a HTML or use KompoZer 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.








 




















Q:請描述至少一個你做這個lab所遇到的問題,並且你是如何解決這個問題的。


html不太習慣,後來助教給我釣竿,就可以一直釣魚。

Lab 28 Lab Form and Action

  • Dynamic pages, content generated by server-side programs.
  • CGI, Common Gateway Interface, for sending requests to server-side programs.


static page
Ex:
http://www.google.com/

dynamic page
Ex:
http://www.cna.com.tw/

URL that sends a request by CGI
Ex:
http://maps.google.com/maps?q=24.9586,+121.2411
"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 KompoZer HTML editor.
3. Open a new empty HTML file.
4. Paste the search box into this new file.

5. Use KompoZer 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?


"POST"


















"GET"




 

















Q:請描述至少一個你做這個lab所遇到的問題,並且你是如何解決這個問題的。

try and error

作業: (心得分享) 11/29 吳雙澤先生 非營利組織願景與實踐

這次講員真的讓我印象深刻,除了很早到之外,還帶給我們好吃的,更重要的是他將他的精神傳達給我們。

在講員吳雙澤先的帶領下,介紹了很多澎湖的美,著名的白石與黑石,在地人的個性與文化,讓屬於自己快消失的澎湖記憶,全都找了回來,重要的是他對他身為澎湖人感到很驕傲,讓當天在場的人都感受到他很想將澎湖的熱情去介紹給我們;相對的,也讓我檢視自己是否對家鄉是如此的有熱情,作家席慕蓉曾說過原鄉、家鄉、故鄉三種情懷是我們一輩子都要去回憶的,也許我們會遺忘他們,但他們去早已在我們身上鑄上永恆的烙印。

此外,對於面對賭場一事,我很佩服吳雙澤先生的信念,雖然很多人都不喜歡這件事,但卻因不敢表達而不了了之,但這件事卻因為吳雙澤先生的努力,而有了開始。因為對原鄉的熱愛,而跳出來做一位捍衛戰士,縱使自身身體不佳,仍然堅定自己的信念,努力達陣奔向終點,在他身上我看到的是雖然沒什麼錢,但心靈卻很富有;沒什麼高段的交際手腕,真誠朋友卻是遍佈台灣各地,也許他將他的生活視為理所當然、樂此不彼,而我我們早就視他為典範。


Homework 11/26/2012

1. 在時速300km/h的高鐵上如何提供上網,2G, 3G, 4G, Wi-Fi可行嗎? 試提出可行之道。

        3G、4G 、Wi-Fi速度太快時,將會斷訊,而2G雖然可接速度在200上下,但這麼慢的高鐵還叫高鐵嗎,因此目前應該都沒辦法。至於另外的無線網路Wimax,對於這樣的情況希望也能夠有解決方案,如此才能顯現出無線上網的重要性,是目前急需研究的方向。


2. 在高鐵沿線兩側部建Wi-Fi基地台(Access Point),能否解決高鐵上網問題,為什麼?


       目前行動式WiMAX可提供較大的頻寬,而WiMAX優勢在於採用衛星技術,必須在車上架設天線,並且瞄準衛星方位,高速鐵路行進時,位置不斷移動,所以天線必須一直追蹤衛星,天線的控制,相對的成本昂貴都是問題。另外,因為高速鐵路速度太快,平均幾秒鐘就要做切換Wi-Fi無線基地台,想要穩定地切換相當困難,所以WiMAX是比較有機會的方向之一。