2013年6月26日 星期三

心得分享: 數位包容與實踐: 6/20/2013 綠農講座 (洪輝祥老師)

今天這一堂課又是一個大開眼界的兩個小時。隨著台灣快速的都市化,能接觸到農場的機會真的是少之又少,更別說要了解那些動植物。洪老師的分享和講述,讓我對人類的無知和自私又開始覺得感嘆和無奈,對於環境破壞的程度比我想像中的嚴重太多了,"和平公存"不是應該是大家都渴望的嗎?為什麼人類可以為了"利益"而做了這麼傷天害理的事情,聽洪老師講著人類對大自然的破壞,我很難過。科技的日益進步,往往忘記了尊重大自然的基本道理,使用大量的化學藥品,山坡的濫墾濫伐,這些看似有利於人類的舉動,終究會受到大自然的反撲。老師提到的農場讓我還蠻感到興趣的,我們生於大自然,而我卻沒有與大自然相處過,我想會是個不錯的體驗。"從土地救起,找回農業的本質"我想洪老師和綠農正在努力的是個很偉大的事情,雖然我沒有洪老師這麼不屑一顧的勇氣,但因為這一堂課我還是會持續關心台灣的農業。

2013年6月17日 星期一

Lab 33 Syndication with RSS 2.0


Lab 32 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 31 XML

1. Register and Download Xray, an XML, XSLT editor and processor.
    (安裝X-Ray需要權限)
    (助教碎碎念:若無法順利安裝再點)

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.


2013年6月3日 星期一

Lab 28 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.


可參考 CGI程式入門




Lab 27 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

Purpose of lab: 
Learn 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?





.............................GET...............................




.............................POST...............................