芳鄰成長園

2012年12月3日 星期一

Lab 29

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所遇到的問題,並且你是如何解決這個問題的。

                                                                          

GET

POST


Lab 28


  • 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?

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






2012年12月2日 星期日

Homework 11-26

1. 在時速300km/h的高鐵上如何提供上網,2G, 3G, 4G, Wi-Fi可行嗎? 試提出可行之道。
2. 在高鐵沿線兩側部建Wi-Fi基地台(Access Point),能否解決高鐵上網問題,為什麼?

1.wi-fi只適用在行人行走的速度上,2G傳輸訊號極限在120km/h左右,3G 4G就更不適合了,在破百的情況下都無法傳輸訊號。
唯一最適合的只有WiMAX(IEEE 802.16m)傳輸訊號極限再350km/h左右,最符合高鐵上提供網路的需求。

2.速度一快wi-fi還是容易斷線,而高鐵速度又很快,兩側部建Wi-Fi基地台,代表每行駛一段距離又要換基地台熱點,這樣因該會造成網路不穩定。