繼 OSSF 電子報後 http://www.openfoundry.org/newsletter.pl?section=zh_epaper
tossug 社群也開始出三週報了
繼 OSSF 電子報後 http://www.openfoundry.org/newsletter.pl?section=zh_epaper
tossug 社群也開始出三週報了
> 把使用介面的畫面展示給非程式人員看時,如果這個介面很不好,對方會認為你整個程式也是很不好的。
- 把使用介面的畫面展示給非程式人員看時,如果這個介面非常漂亮,對方會認為這個程式幾乎已經完工。
- 比起功能齊全又累積了 3700 年資料但用灰色底色的網站,只有四個網頁但外觀漂亮的會獲到較高的評價。
- 因為某些因素要求由各技術經理或客戶「啟動」專案時,可以拿些無關緊要的家家酒內容 (ex: 數種美術設計) 給他們玩 (選擇),讓他們覺得自己很重要。這些他們就不會嚴重影響你的時程了。
- 展示時唯一重要的就是畫面。一定要讓它美得冒泡。* 結論:
-- 約爾談軟體 (揭露冰山般的秘密)
有空時翻一翻看過的舊文章,可以提醒自己很多事情:-)
我想,這是第一次有了個網站框架將它的功能做得這麼容易明白. I think this is the first time that a web framework's functionality has been so obvious -- Bruce Eckel
原文: The Web Frameworks Jam and Turbogears
誰是 Bruce Eckel ?
Bruce Eckel 是 Thinking in Java, Thinking in C++ 系列書的作者,作品享有很高的聲譽.
在看 ブロードバンドルータ (CG-BARPRO6) による OCN IPv6 接続 這篇文章時, 發現回覆中提到很可惜沒支援 "v6-v4 TCP Relay" 這功能.
IPv6-IPv4 TCP Relay 到底是什麼呢?
上網查了一查,原來就是一種 BIS (Bump In Stack) 的應用,讓 IPv4 Only 的程式可以透過 Port Mapping 來存取 IPv6 網路.
例如回覆中提到一台僅支援 IPv4 的網路電視機器,因為區網內使用私有地址的關係,需要在外部建一台 Virtual Server 才能在各地存取網路電視這資源. 如果 Router 能支援 "IPv6-IPv4 TCP Relay", 我們就能在外部使用 IPv6 位址存取網路電視了!
想起來就很讚,做起來.......:-D
Lots of people use Django template for Pyhton Web Framework(As Django project shares).
And if we want to make people feel comfortable to try TurboGears (and then migrate to tg hopefully), first thing we can do is making django template system available on TurboGears.
Its easy because many template plugins (and their source codes) are available for TurboGears, I use a couple hours to read the template plugins doc and make the TurboDjango template plugin.
You can try the django template in minutes. Here is the step by step guide:
Install By SetupTools
$ easy_install TurboDjango
How to Make it just Work?
Step 1. Quickstart
Use tg-admin tool to create a project
$ tg-admin quickstart tgdj
The project name is "tgdj"
Step 2. Edit Controller
Edit tgdj/tgdj/controller.py, add following method in "Root" class.
@expose(template = "django:tgdj.templates.djpage") def page(self): return dict(name="TurboGears") "djpage" is django template name
Step 3. Edit Template
Edit tgdj/tgdj/templates/djpage.html
[h1]Hello, {{name}}[/h1]
The template has "html" file suffix
Step 4. Check Result
In tgdj, start develop server by typing
$ start-tgdj
Then surf http://localhost:8080/page, you'll see
Hello, TurboGears
The Release is available here.
To Django Users: You can migrate your database with SQLAlchemy's SqlSoup