星期三, 3月 17, 2010

如何利用 command 遠端為電腦執行磁碟重組

條件: script 執行端已安裝 psexec

首先, 利用 command 為電腦執行磁碟重組我們可以用 defrag
如: defrag c: -f

那大量為電腦執行 defragment, 我們便可以...

start "pc01" psexec \\pc01 defrag c: -f
start "pc02" psexec \\pc02 defrag c: -f

如果對遠端電腦存取被拒, 可先使用 net use command, 如:
net use \\pc01 /user:domain\administrator password

星期一, 3月 15, 2010

cmd 亂碼

有時執行 cmd 時, 會發現有亂碼的情況

我們可以嘗試更改編碼以解決

方法一: 在命令提示字元中更改
























方法二: 在  registry 中更改



















方法三: 在  cmd 中更改





















字碼頁 國家 (地區) 或語言
437 美國
850 多語言系統 (拉丁 I)
852 斯拉夫文 (拉丁文 II)
855 古斯拉夫文 (俄文)
857 土耳其文
860 葡萄牙文
861 冰島文
863 加拿大法語區
865 日耳曼文
866 俄文
869 現代希臘文
65001 UTF-8

星期日, 3月 14, 2010

The Database Environment and Development Process

Objectives
  • Define terms
  • Name limitations of conventional file processing
  • Explain advantages of databases
  • Identify costs and risks of databases
  • List components of database environment
  • Identify categories of database applications
  • Describe database system development life cycle
  • Explain prototyping and agile development approaches
  • Explain roles of individuals
  • Explain the three-schema architecture for databases

 

 
Definitions
  • Database: organized collection of logically related data
  • Data: stored representations of meaningful objects and events
  • Structured: numbers, text, dates
  • Unstructured: images, video, documents
  • Information: data processed to increase knowledge in the person using the data
  • Metadata: data that describes the properties and context of user data

 

 

 
Disadvantages of File Processing
  • Program-Data Dependence
    • All programs maintain metadata for each file they use
  • Duplication of Data
    • Different systems/programs have separate copies of the same data
  • Limited Data Sharing
    • No centralized control of data
  • Lengthy Development Times
    • Programmers must design their own file formats
  • Excessive Program Maintenance
    • 80% of information systems budget

 

 

 
Problems with Data Dependency
  • Each application programmer must maintain his/her own data
  • Each application program needs to include code for the metadata of each file
  • Each application program must have its own processing routines for reading, inserting, updating, and deleting data
  • Lack of coordination and central control
  • Non-standard file formats

 

 

 
Problems with Data Redundancy
  • Waste of space to have duplicate data
  • Causes more maintenance headaches
  • The biggest problem:
    • Data changes in one file could cause inconsistencies
    • Compromises in data integrity

 

 

 
SOLUTION: The DATABASE Approach
  • Central repository of shared data
  • Data is managed by a controlling agent
  • Stored in a standardized, convenient form

 

 

 
Advantages of the Database Approach
  • Program-data independence
  • Planned data redundancy
  • Improved data consistency
  • Improved data sharing
  • Increased application development productivity
  • Enforcement of standards
  • Improved data quality
  • Improved data accessibility and responsiveness
  • Reduced program maintenance
  • Improved decision support

 

 

 
Costs and Risks of the Database Approach
  • New, specialized personnel
  • Installation and management cost and complexity
  • Conversion costs
  • Need for explicit backup and recovery
  • Organizational conflict

 

 

 
Elements of the Database Approach
  • Data models
    • Graphical system capturing nature and relationship of data
    • Enterprise Data Model–high-level entities and relationships for the organization
    • Project Data Model–more detailed view, matching data structure in database or data warehouse
  • Entities
    • Noun form describing a person, place, object, event, or concept
    • Composed of attributes
  • Relationships
    • Between entities
    • Usually one-to-many (1:M) or many-to-many (M:N)
  • Relational Databases
    • Database technology involving tables (relations) representing entities and primary/foreign keys representing relationships

 

 

 
Components of the Database Environment
  • CASE Tools–computer-aided software engineering
  • Repository–centralized storehouse of metadata
  • Database Management System (DBMS) –software for managing the database
  • Database–storehouse of the data
  • Application Programs–software using the data
  • User Interface–text and graphical displays to users
  • Data/Database Administrators–personnel responsible for maintaining the database
  • System Developers–personnel responsible for designing databases and software
  • End Users–people who use the applications and databases

 

 

 
The Range of Database Applications
  • Personal databases
  • Two-tier Client/Server databases
  • Multitier Client/Server databases
  • Enterprise applications
  • Enterprise resource planning (ERP) systems
  • Data warehousing implementations

 

 

 
Enterprise Database Applications
  • Enterprise Resource Planning (ERP)
    • Integrate all enterprise functions (manufacturing, finance, sales, marketing, inventory, accounting, human resources)
  • Data Warehouse
    • Integrated decision support system derived from various operational databases

 

 

 
Enterprise Data Model
  • First step in database development
  • Specifies scope and general content
  • Overall picture of organizational data at high level of abstraction
  • Entity-relationship diagram
  • Descriptions of entity types
  • Relationships between entities
  • Business rules

 

 

 
Two Approaches to Database and IS Development
  • SDLC
    • System Development Life Cycle
    • Detailed, well-planned development process
    • Time-consuming, but comprehensive
    • Long development cycle
  • Prototyping
    • Rapid application development (RAD)
    • Cursory attempt at conceptual data modeling
    • Define database during development of initial prototype
    • Repeat implementation and maintenance activities with new prototype versions

 

 

 
Database Schema
  • External Schema
    • User Views
    • Subsets of Conceptual Schema
    • Can be determined from business-function/data entity matrices
    • DBA determines schema for different users
  • Conceptual Schema
    • E-R models
  • Internal Schema
    • Logical structures
    • Physical structures
         

 

 

 
Managing Projects
  • Project–a planned undertaking of related activities to reach an objective that has a beginning and an end
  • Involves use of review points for:
    • Validation of satisfactory progress
    • Step back from detail to overall view
    • Renew commitment of stakeholders
  • Incremental commitment–review of systems development project after each development phase with rejustification after each phase

 

 

 
Managing Projects: People Involved
  • Business analysts
  • Systems analysts
  • Database analysts and data modelers
  • Users
  • Programmers
  • Database architects
  • Data administrators
  • Project managers
  • Other technical experts

星期二, 2月 23, 2010

小學六年級中文科閱讀工作紙 - 一位美國黑人女孩跟著母親到商店裏買衣服

小學六年級中文科閱讀工作紙

請先細閲下面的文字,然後回答問題。

一天,一位美國黑人女孩跟著母親到商店裏買衣服。當女孩拿著衣服走向試衣間時,一位白人店員擋住她,不讓她進入試衣間試穿衣服,並傲慢地說:「這間試衣間只有白人才能使用,你們只能去儲藏室裏一間專供黑人用的試衣間。」女孩惶恐地看著母親,只聽到母親對店員說:「如果我女兒不能進這間試衣間,我就換另一家服裝店。」店員為了留住生意,只好讓女孩使用這間試衣間,自己則站在門口望風。

有一次,女孩跟隨父母到美國總統府白宮參觀,可是他們因膚色的問題,而不能進內參觀。最後,他們在那座舉世矚目的建築物前徘徊良久才離去。

「記住,康迪,這一切都是會改變的。」面對歧視和不公平,母親對女兒說:「這種不公平不是你的錯,你的膚色和你的家庭是你不可分割的一部分,這是無法改變的。要改變自己低下的社會地位,只有做得比別人好,你才會有機會。」的確,女孩的母親相信一個真理,只有當孩子的能力比白人高出兩倍,他們才能平等,高出三倍,才能超越對方。

從那一刻起,這個女孩牢牢記住了母親的話,不卑不亢成了女孩受用一生的財富,她堅信只有學習才能讓自己獲得知識,只有加倍努力才能做得比別人更好,也才有能力捍衛自尊和幫助自己超越平凡。

多年以後,這位出身自貧民區的黑人女孩進入了白宮,她就是美國國務卿──賴斯,而「康迪」就是她的小名了。賴斯回憶說:「母親常對我說,你的人生目標不可甘於平凡,只要你想,並且為之奮鬥,你就有可能做到任何大事。」正是她的奮鬥和不懈努力,讓她成為了有史以來美國政府裏最有影響力的女性。

是的,我們無法選擇種族、血緣和膚色,但我們可以通過奮鬥實現自己的理想。


A.選詞填充:從文章中選出適當的詞語,填在__________上。
1.社會上有不少傷殘人士受到別人的____歧視_____,使他們得不到公平的對待。

2.李耀輝雖然天才橫溢,可是為人卻十分_____傲慢_______,經常看不起別人。


B.根據文章內容,簡答下列問題。
1.上文中哪一個詞語是表示「全世界的人都關注重視」呢?
______舉世矚目____

C.根據文章內容,選出最適當的答案,並把代表答案的英文字母填在( )內

1.本文第二段主要記述: 
A.黑人女孩跟爸媽去參觀白宮

B.黑人女孩一家因受到種族歧視而不能參觀白宮

C.白宮是一座舉世矚目的建築物。

D.白宮美國總統辨公的地方。
1.(  B     )

2.文中第三段,母親對女兒所說的「這種不公平不是你的錯」一句中,「這種不公平」所指的是: 
A.黑人不能選擇自己的膚色和家庭。

B.黑人的社會地位比白人低下。

C.黑人女孩要努力才能做得比別人好。

D.以上皆是。
2.(  B     )

3.根據文章內容,下列哪一項敘述是正確的?
A.賴斯的媽媽認為只有努力上進才能改變自己的社會地位。

B.賴斯小時候被拒進入白宮參觀而留下了童年陰影。

C.賴斯因自己是黑人身份而感到自卑。

D.賴斯的媽媽認為黑人所受到的歧視和不公平對待是無法改變的。
3.(  A     )

4.賴斯的媽媽認為賴斯的人生目標應該是甚麼? 
A.進入白宮工作。

B.做自己想做的任何大事。

C.到白人的試衣間試穿衣服。

D.擁有平凡的人生。
4.(  B     )

5.根據文章內容,賴斯走向成功的主要因素是甚麼? 
A.美國人不願意當國務卿。

B.美國政府喜歡聘請女性當白宮官員。

C.賴斯人生態度積極勤奮,有不卑不亢的性格。

D.賴斯小時候家境富裕。
5.(   C    )

6. 作者寫這篇文章的主要目的是:
A.記述賴斯的成長過程。

B.說明賴斯具有很強的影響力。

C.通過賴斯的事跡帶出只要奮鬥就能成功的道理。

D.說明美國社會存在種族歧視的問題。
6.(  C     )

星期一, 2月 22, 2010

Lotus Notes 繁簡轉換問題

問:本人的電腦為繁體中文版本,日前嘗試在 Word 進行繁簡轉換後再在 Lotus Notes R5 貼上,但不成功。所有文字皆變成亂碼,而且即使在 LN 中轉換 encoding,仍舊顯示怪獸字。




答:閣下可以先將 Ms Word 中已進行繁簡轉換的文字複製到記事本(notepad),然後再由記事本將文字複製到 lotus 便可。
不過測試時發現有部份文字可能未能成功顯示為簡體字。


星期日, 2月 21, 2010

開心農場快速的挖礦方法

大家每天想必應該都會挖礦吧,
但是每次挖完整塊礦地都要花至少1分鐘吧...

我在這邊教大家一個快速挖礦的方法,
首先先到商店買一樣東西
隨便一樣就可以了
接著買玩他是不是說XXX已購買完成
接著 不要打勾 讓視窗在那邊

然後你在點擊礦場
找幾塊可以挖的地
全部都點一點, 都挖一挖, 把體力挖到沒有
然後再按F5 ( 重新整理 ) 即可 ....
如果想知道你挖到了甚麼可P按看看唷 !!

推薦此文