2012年12月15日 星期六

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是比較有機會的方向之一。