Create Dynamic Website
-Define Local Information & Testing Server in DW
Website Name: Contactroot
folder: contact
Create record set & display informationIn dynamic website:
1. Create "country_all.php"
2. Create a dabase connection to the "newland_tours" database on MySQL database server
3. Create record set "rsCountries" to retrieve all fields and records from tbl_country(sory by countryName ascending)
4. Make a table with two row-first row: header-second row: record
(Assume "dynamic"
Sort descending
1. Choose "dynamic" website and open "country_all.php"
2. Add a new column "population" in the table
3. Change the record to dsiplay by population descending (desc in SQL) in advanced mode
2010年2月25日 星期四
2010年2月23日 星期二
Setting up dynamic website development enviroment
Here is the listing of some tools useful:
1. XAMPP (Apache + PHP + MySQL, with phpmyadmin)
2. MySQL ODBC Connector
Enviroment
Web Server + Application Server + Database Server
1. Open Source: Apache + PHP + MySQL
2. Microft IIS (web server + ASP/ASP.NET) + Open Source MySQL (Need MySQL ODBC Connector)
1. XAMPP (Apache + PHP + MySQL, with phpmyadmin)
2. MySQL ODBC Connector
Enviroment
Web Server + Application Server + Database Server
1. Open Source: Apache + PHP + MySQL
2. Microft IIS (web server + ASP/ASP.NET) + Open Source MySQL (Need MySQL ODBC Connector)
2010年2月19日 星期五
2010年1月19日 星期二
VBA Function
練習
1. 讓使用者可以用下形式計算bmi, 體重(kg)/身高(m square)
- e.g. bmi(60, 1.7)
2. 讓使用者可以用下形式計算身金
- salary(3000, 5000, 0.05, 30)
- 3000: 底薪
- 5000: 銷售產品的價格
- 0.05: 佣金
- 30: 賣出的產品數目
3. 讓使用者可以用下形式轉換體重
- pound2kg(220)
4. 重用 3. & 1. ,讓使用者可以用下形式使用
- bmiInPound(150, 1.7)
- 150: pound
- 1.7: meter
答案
Function bmi(massKg, heightM)
bmi = massKg / heightM ^ 2
End Function
Function salary(base, price, cRate, quantity)
salary = base + price * cRate * quantity
End Function
Function pound2kg(massPound)
pound2kg = massPound * 2.2
End Function
Function bmiInPound(massPound, heightM)
bmiInPound = bmi(pound2kg(massPound), heightM)
End Function
2010年1月9日 星期六
多媒體檔案格式轉換 - 如MP4 Video to MP3 Audio
最近有位朋友詢問有否簡單易用的軟件,把視視檔轉成聲音檔,擺進iphone裡。典型的例子是把演講的視像mp4 video 轉成 mp3 audio,省下iphone不少的儲存空間。
在Windows 7裡,我試了WinFF (1.1.0 Aug 28, 2009) 及Super(2010 Build 37 Jan 01, 2010) ,只有後者能在Windows 7裡完成任務。
操作簡易,Right click Mouse有Menu各種選項。
- 從Menu中Add Multimedia Files(s)
- 在程式頂部左邊,選MP3 (Audio Only),頂部右邊mp3。
- 在底部按"Enocde (Active Fiels)" Button。
- 轉換了的mp3預設在來源檔的相同資料夾中。
2009年12月28日 星期一
2009年12月26日 星期六
標籤硬碟的Bad Sector
Bad Sector
可分為Soft bad sector 及Physical bad sector兩大類。前者是指結構資料有誤,只要把正確資料寫回便可。後者是指磁性物料或磁碟一身損壞,以致寫入與讀回的資料有異。一般透過工具把壞磁區標籤,使不會把資料寫在其中,再Remap(改動配置)壞磁區到預留的空置磁區位置中,使硬碟可正常運作。如需詳細資料,可在軟件的Help中獲得,如SeaTools。
- command: chkdsk drive: /r
- GUI: right click disk> property > tools> Check now... button (Top Error-Checking)
- 各Harddisk廠提供的程式:需按牌字型號,到其網頁下載使用。如Segate的SeaTools
- HD Tune Pro
- HDD Regenerator
SeaTools for Windows
HD Tune Pro
HDD Regeneration 1.71
總結
三者中,以HDD Regenerator為最簡單易用。我的seagate momentus 5400 80G (ST980815A)有兩個Bad Sector。使用了HDD Regenerator後,在HD Tune及SeaTools的Long Generic中皆再沒有錯誤。
訂閱:
文章 (Atom)