Sunday, November 05, 2006

Thursday, November 02, 2006

mashup (jotform, googlepages)

wcchang 的 report

google pages 的問題
直接送出中文url的 page, 用outlook express 檢視點選連結會有問題。建議create時用英文或數字的檔名。googlepage
沒有提供rename url的功能,複製的話連中文檔名也複製。所以有點麻煩,取了用中文url的,要改成英文url的話,只好先create new,
再慢慢地按照Section Copy過去。

jotform的問題: report 收不到資料
radio 的options 中文的話,value 不會設進去
checkbox 也有同樣的問題

因為jotform沒有提供online 編輯HTML code的功能
所以放在自己的網頁,譬如google pages
自己將value補上去就可以Work了

http://www.jotform.com/form/63000250230

電子報美工委託

http://epaper.ntu.edu.tw/view.php?listid=87&id=1926

=> http://kptest.cc.ntu.edu.tw/dojo/dojo/demos/widget/Fisheye.html

委託者構想

最新出刊: 嬰兒
歷史報區: 老人
訂閱頁面: 月亮+釘子+鐵鎚
總覽月刊:

dojo

月亮
http://flickr.com/photos/auntie/289058260/


http://flickr.com/photos/nimbupani/39973420/

Final
http://kptest.cc.ntu.edu.tw/dojo/dojo/demos/widget/epaper.htm
http://kptest.cc.ntu.edu.tw/epaper/epaper.htm

Original
http://epaper.ntu.edu.tw/view.php?listid=87&id=1926
http://kptest.cc.ntu.edu.tw/epaper/epaper_org.htm

Wednesday, November 01, 2006

學生手冊首頁

早上將 PDF & PNG 檔 合併成一個PDF檔,還是很肥(77MB)。
未做 Content 的連結

利用Creatvie Commons & oswd
做出了學生手冊的網頁

http://host.cc.ntu.edu.tw/handbook/

明天再加Google進來做搜尋

Sunday, October 29, 2006

PDF Compression

拿到1.9G的PDF檔,每一頁大概都有30M,放在網路上會死。

找到一個軟體試試看,但是一個70M的大概只能壓到50M

PDF Compressor 1.12

http://www.freedownloadscenter.com/Multimedia_and_Graphics/Graphics_Palette_and_Compression_Tools/Free_PDF_Compressor.html

問在教 PDF的同事,用Adobe轉
一般版 檔案/減少檔案大小,專業版 PDF Optimizer
70MB==> 700KB,not bad!

最後1.9G的PDF壓縮到 60MB,Adobe沒有提供批次功能,我又懶得寫程式,所以就手動
花了大約兩個小時。

RoR-3: Rails

台灣的RoR官方站
http://www.rubyonrails.org.tw/

OnLamp的教學,不錯,Window +
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=2

Less software and convention over configuration.
verbose:
excessive hype: extreme

我自己照著做的練習
http://127.0.0.1:3000/mytest

http://localhost:3000/mytest/dilbert

RJS Templates for Rails
http://www.oreilly.com/catalog/rjsrails/?CMP=ILL-4GV796923290&ATT=/onlamp/2005/01/20/rails.html

http://instantrails.rubyforge.org/wiki/wiki.pl?Rolling_With_Ruby_On_Instant_Rails_Tutorial

在kptest(win2000)上再做一次
download On Click Installer for Ruby ==> 26MB
http://rubyforge.org/frs/?group_id=167

Ruby program files use the suffix ".rb"

If you don't want a console window to be created,
use the suffix ".rbw" instead.

22:25

RoR-2: Ruby & Webrick

WEBrick WebServer >> ruby httpd.rb
http://localhost:10080/hello/
http://localhost:10080/multipart/
http://localhost:10080/urlencoded/

更改 hello.rb + Haha
stop(^C) & start Webrick 才看到改變

C:\ruby\samples\RubySrc-1.8.5\sample\webrick>ruby httpd.rb

[2006-10-29 21:49:15] INFO WEBrick 1.3.1[2006-10-29
21:49:15] INFO ruby 1.8.5 (2006-08-25) [i386-mswin32]

[2006-10-29 21:49:15]
DEBUG TCPServer.new(0.0.0.0, 10080)

[2006-10-29 21:49:15] DEBUG
WEBrick::HTTPServlet::FileHandler is mounted on /.[2006-10-29 21:49:15] DEBUG
HelloServlet is mounted on /hello.

[2006-10-29 21:49:16] DEBUG DemoServlet is
mounted on /urlencoded.

[2006-10-29 21:49:16] DEBUG DemoServlet is mounted on
/multipart.

[2006-10-29 21:49:16] INFO WEBrick::HTTPServer#start: pid=1056
port=10080

[2006-10-29 21:50:44] DEBUG accept: 127.0.0.1:2369

[2006-10-29
21:50:44] DEBUG HelloServlet is invoked.localhost - - [29/Oct/2006:21:50:44
台北標準時間] "GET /hello HTTP/1.1" 200 14- -> /helloMozilla/5.0 (Windows; U;
Windows NT 5.1; zh-TW; rv:1.8.1) Gecko/20061010 Firefox/2.0

Saturday, October 28, 2006

RoR-1: Ruby On Rails

http://www.ruby-doc.org/gettingstarted/
跟Java比較,學Ruby只要兩本書喔!

http://anw.stikipad.com/ocean/show/WhyRails

跟Apache, Mysql 一起打包的安裝程式
http://instantrails.rubyforge.org/

Learn Ruby Online
http://tryruby.hobix.com/
http://www.javaeye.com/topic/19341

>> [1,3,2].sort
=> "My toast has flown from my hand\nAnd my toast has gone to the moon.\
nBut when I saw it on television,\nPlanting our flag on Halley's comet,\
nMore still did I want to eat it.\n"

>> [1,3,2].sort!
=> [1, 2, 3]
//陣列可以直接+,-
>> [1,2]+[3]
=> [1, 2, 3]
>> [1,2]-[1]
=> [2]

// print & 字串置換

>> print poem
My toast has flown from my hand
And my toast has gone to the moon.
But when I saw it on television,
Planting our flag on Halley's comet,
More still did I want to eat it.
=> nil
>> poem['toast']='honeydew'
=> "honeydew"
>> print poem
My honeydew has flown from my hand
And my toast has gone to the moon.
But when I saw it on television,
Planting our flag on Halley's comet,
More still did I want to eat it.
=> nil

:symbol

Friday, October 27, 2006

css ime-mode vs 自然輸入法

http://kptest.cc.ntu.edu.tw/demo/css/p1/ime-mode.htm

表現行為在在兩個輸入法間有些差異

微軟新注音
自然輸入法

disabled: OK (不能切換到中文輸入法,避免使用者用全形輸入數字)

inactive: 使用目前的輸入法

active: 使用中文輸入法

Tuesday, October 24, 2006

Lesson 2 看到學生頭越來越低

先講了一個加法器,真的好像沒那麼簡單,我也忘了input.value與div.innerText,z=x+y這麼簡單的東西,好像也是要知道html form,parseInt,還有不能打錯字,哈哈。
補充完JotForm如何跟自己原有的網頁結合後,回頭講上次未講完的電子表單,然後講ASP。看到學生們頭越來越低,就知道差不多了,再講下去就Game Over了。趕快轉到Google Pages 的使用,還不錯,都做出自己的網頁了。
剩下半小時的時候才講到今天的進度。果然真是蜻蜓點水式的教學,每個技術都是點到為止。看來我太高估自己的教學能力了(其實是不想講太多堂課,才濃縮的)。我的每堂課的分量大概都是遠超過2個小時可以講完的。
有學生問架站的事情,就提了一下。
還有認證的問題,JotForm如何貼回自己的Server Side等等。
還欠一個接JotForm的程式。
利用JotForm做self-refresh的留言板還蠻有趣的
來看看
寫一篇介紹jotform的去投runpc吧!
下次教什麼?教Blog吧! picasa
還有http://kphsu.somee.com/ 支援ASP, ASP.Net 的免費網站
就是google 學好了
mashup, gadget, remix
到哪邊抄程式,
不過google pages 把我的style
吃掉了

Tuesday, October 17, 2006

Lesson 1 課後記

第一個實作32個人中只有一個學員沒做出來,第二個做出來的大概不到一半。沒有意外的,陸續收到一些學員退選的信件。我以為
a是很基本的語法,iframe 也是很基本的語法。
所以第二堂課可能要調整一下,上HTML的基本語法,不然上不下去。

巧言亂德,小不忍則亂大謀

中庸不是用在判斷是非上的

Sunday, October 15, 2006

布施

施恩不求報,因為幫助別人,別人不一定感謝你。結果因為幫忙後未感受到謝意,反而生怨恨心,這樣就不好了。
無施者,受者,施物,給人家東西,要感謝對方給自己行善的機會。
施捨,施完即捨,東西給別人還牽掛著這個東西。例如某甲給某乙東西,卻囑咐不可以轉送給別人

八風吹不動,一屁打過江

利衰、毀譽、稱譏、苦樂八事能引發世人愛、憎之心,故以風為喻、稱為八風。

Friday, October 13, 2006

佛開解梵志阿颰經

佛開解梵志阿颰經
農家子弟 常音
http://greenworld.com.tw/~buddha/h0014.htm
阿颰:天下有四種姓,婆羅門種最為珍貴,其它三種姓必須奉侍婆羅門。
佛言:假使婆羅門種最為珍貴,若今有婆羅門婦人無法生育,又有奴婢生男,想必會傳給這個男孩。今天如果你的祖母室奴婢所生,請問還是既珍且貴嗎?
阿颰說不出話來,其他弟子憤而指責佛陀,你這個出家人,為什麼罵我們師兄?
佛言:他自己會辯解
阿颰恐懼地回答:事實如佛陀所說
其他弟子:原來阿颰是賤民的子孫,從今天開始,我們不再尊敬阿颰。
佛說:不可如此,賢人就是賢人,應當尊敬。假若今天有一個人,父母都是婆羅門種犯法,是否要拘捕?當然要拘捕。

Wednesday, October 11, 2006

受害者心態

職場人如何擺脫受害者心態
http://scitech.people.com.cn/BIG5/1057/4358816.html

雙方都是滿腹委屈,假設對方的文字敘述帶著惡意

電子郵件與電話的缺點: 看不到對方的表情

Saturday, October 07, 2006

建立sitemap

試了三種方式

Method 1: 自己編輯符合sitemap 格式的sitemap.xml

Method 2: web-app (online): sitemapdoc

  • 用firefox瀏覽 http://www.sitemapdoc.com/ 從default.aspx來看應該是用ASP.NET寫的,用WinXP+ie6的環境下
  • 輸入網址 [http://kaiping.hsu.googlepages.com/]
  • 按下[Create Map],有警告出現...not contain www, Continue?
  • [確定]
  • 等頁面刷新後,按
  • 將頁面上的xml Copy & Paste to 編輯器然後SaveAs sitemap.xml
Method 3: app (需安裝到webserver, 對於寄居客沒有用)


Wednesday, October 04, 2006

試講"深入淺出高效能網頁程式設計"

請wcchang試聽
講課:10pages/10mins
練習:10分鐘
還不錯,可以立刻做出來。
但他覺得不是在寫程式
接下來嵌入到 google pages
jsc建議做一下submit 之後的page
>>email client