2008年1月27日 星期日

About OpenBSD command

About OpenBSD command

du指令: 可以知道指定的根目錄大小有多大.
# du -sh jpeg-6b/3.3M jpeg-6b/
# du -sh software/67.8M software/

2008年1月24日 星期四

Python local variable and global variable

#!/usr/local/bin/python


# Variable scope

first = 1

def one():
"Double a global variable, return it + 3."
global first
first *= 2
result = first+3
return result

print one.__doc__
print one()
print one()
print one()
print "first now has the value",first
print "result has the value",result

如果DNS不在自己的主機上, VirtualHost設定方式如:

如果DNS不在自己的主機上, VirtualHost設定方式如:


NameVirtualHost *:80 #就不要指定IP, 要Port表示

#就不要指定IP, 要Port表示
ServerAdmin admin@yourdomain.com.tw
DocumentRoot /your/path/yourdomain.com.tw
ServerName yourdomain.com.tw
ErrorLog /var/log/yourdomain.com.tw-error_log
CustomLog /var/log/yourdomain.com.tw-access_log common

在python裡 automatic import 自定的library

在python裡 automatic import 自定的library.在python安裝路徑裡找到. Python25\Lib\site-packages\在裡面加一個 .pth 的檔案, 然後在這檔案內加上要include 的 library 路徑.

2008年1月23日 星期三

數學教學(Math. Education Resources)

數學教學(Math. Education Resources)
Calculus&Mathematica
Calculus Project (Harvard)
The Math Forum (Swarthmore)
The Math Forum -Mathematics Education
The Mathematics Archives-Teaching Material
Mathematicians and Education Reform Forum
Using Technology in Mathematics Service Courses
NSF Collaboratives for Excellence in Teacher Preparation
Undergraduate Research Opportunities
NSF Recognition Awards for the Integration of Teaching and Research
MAA commitee on Calculus Reform and the First Two Years(CRAFTY)
Calculus Reform
Project Kaleidoscope
1. Connected Curriculum Project(Duke University)
2. Connected Curriculum Project(Duke University)
3. Connected Curriculum Project(Duke University)
Middle Atlantic Consortium for Mathematics and Its Application Throughout the Curriculum(University of Pennsylvania)
Science Core(Stanford University)
Foundation Coalition(Rose-Hulman, Arizona State, and other institutions)

國內外數學資源

國內外數學資源
碎形--Fractals
http://www.math.ncu.edu.tw/resource/computer/fractals.htm
http://archives.math.utk.edu/topics/
美國田納西大學之數學資源,按照各種數學領域分類,蒐集了不少數學網站.
http://mathforum.com/
美國數學論壇,一個專為老師,學生,父母,學者,教育單位等普羅大眾所設計之數學學習社群中心.除了有包羅萬象的數學資源,還有很多關於數學教育及數學教育改革等種種資料.
http://mam2000.mathforum.com/
美國數學觀察月(MATH AWARENESS MONTH)活動,每年在四月舉行,每次討論一個數學主題,這些主題往往跟目前最新的科技有密切的關聯.
http://microlib.cc.utexas.edu/world/lecture/
美國德州大學的世界名"課"堂(World Lecture Hall),蒐集不少各學門有名的web課程網站,其中有關數學之名"課",請點選學門分類中的Mathematics一項.
http://front.math.ucdavis.edu/
美國Los Alamos實驗室(做出第一顆原子彈及測試的實驗室)所製作的電子數學文獻網站,內有眾多數學學者提供各數學領域最新的數學論文,可供線上全文下載.
http://www-groups.dcs.st-andrews.ac.uk/~history/index.html/
英國聖安德魯大學的數學史文獻網站,提供豐富的的數學史資料,諸如歷代數學名人,按地域及領域分類的數學史話,著名的數學曲線,歷史上今天出生及死亡的數學家等.
http://www.mathnotes.com/
數學教科書系列的線上資源網站,科目不是很多,且瀏覽時需下載Interact Math的plug-in.
http://www.ies.co.jp/math/indexeng.html
日本IES公司製作的數學教育與科技網,裡面有很多具創意,好玩的數學Java Applet.
http://www.geom.umn.edu/
美國明尼蘇達大學的幾何中心,內有各式各樣有關幾何的數學資源.
http://mathworld.wolfram.com/
美國有名的數學詞彙搜尋與詳解大全網站.
http://www.forum.swarthmore.edu/library/
另外一個數學詞彙查詢網站,由美國Swarthmore學院製作.

2008年1月21日 星期一

Python OpenGL

Python OpenGL
當執行python OpenGL程式時如果出現像這樣的訊息, 代表沒有找到glut32.dll.OpenGL.error.NullFunctionError: Attempt to call an undefined function __glutInitWithExit, check for bool(__glutInitWithExit) before calling---所以, 到glut for winin32 去下載glut.dllhttp://www.xmission.com/~nate/glut.html

Python setuptools

很棒的setup libraries for python
http://peak.telecommunity.com/DevCenter/setuptools?action=highlight&value=setuptools

2008年1月8日 星期二

Data Structures

Data Structures
這網站是在講一些data structure, algorithm, programming., etc.

Provide FREE download PDF file. (GOOD)

http://www.datastructures.info/books/

2008年1月2日 星期三

GNU utilities for Win32

用習慣UNIX-command, 這Tool是UNIX-Command for Windows.

http://unxutils.sourceforge.net/