@echo off
cd c:\windows\system32
RD /s /q "C:\File Server Backup\"
XCOPY "C:\File Server\*.*" "C:\File Server Backup\" /e /i /h
fc "C:\File Server\*" "C:\File Server Backup\*" > nul
if errorlevel 2 goto fail1
if errorlevel 1 goto fail1
if errorlevel 0 goto okay1
goto next
:okay1
echo Backup to C: is completed on %date% %time% > "C:\backup report.txt"
goto next
:fail1
echo Backup to C: is not completed on %date% %time% > "C:\backup report.txt"
echo Therefore, backup to F: is cancelled! >> "C:\backup report.txt"
goto next
:end
RD /s /q "F:\File Server Backup\"
XCOPY "C:\File Server\*.*" "F:\File Server Backup\" /e /i /h
fc "C:\File Server\*" "F:\File Server Backup\*" > nul
if errorlevel 2 goto fail2
if errorlevel 1 goto fail2
if errorlevel 0 goto okay2
goto end
:okay2
echo Backup to F: is completed on %date% %time% >> "C:\backup report.txt"
goto end
:fail2
echo Backup to F: is not completed on %date% %time% >> "C:\backup report.txt"
goto end
:end
======================
@echo off
rem: 指向 system32,以執行 RD
cd c:\windows\system32
rem: 移除資料夾"C:\File Server Backup\"
RD /s /q "C:\File Server Backup\"
rem: 複制 "C:\File Server\" 內所有文件到 "C:\File Server Backup\"
XCOPY "C:\File Server\*.*" "C:\File Server Backup\" /e /i /h
fc "C:\File Server\*" "C:\File Server Backup\*" > nul
if errorlevel 2 goto fail1
if errorlevel 1 goto fail1
if errorlevel 0 goto okay1
goto next
:okay1
rem: 清除"C:\backup report.txt"內的資料並在第一行輸入 "echo" 和 ">" 之間的文字
echo Backup to C: is completed on %date% %time% > "C:\backup report.txt"
goto next
:fail1
echo Backup to C: is not completed on %date% %time% > "C:\backup report.txt"
rem: 在下一行輸入 "echo" 和 ">>" 之間的文字
echo Therefore, backup to F: is cancelled! >> "C:\backup report.txt"
goto next
:end
RD /s /q "F:\File Server Backup\"
XCOPY "C:\File Server\*.*" "F:\File Server Backup\" /e /i /h
fc "C:\File Server\*" "F:\File Server Backup\*" > nul
if errorlevel 2 goto fail2
if errorlevel 1 goto fail2
if errorlevel 0 goto okay2
goto end
:okay2
echo Backup to F: is completed on %date% %time% >> "C:\backup report.txt"
goto end
:fail2
echo Backup to F: is not completed on %date% %time% >> "C:\backup report.txt"
goto end
:end
星期二, 10月 05, 2010
星期六, 10月 02, 2010
The Enhanced E-R Model
Objectives
Supertypes and Subtypes
Relationships and Subtypes
Generalization and Specialization
Constraints in Supertype/ Completeness Constraint
Constraints in Supertype/ Disjointness constraint
Constraints in Supertype/ Subtype Discriminators
Entity Clusters
Packaged Data Models
Advantages of Packaged Data Models
- Define terms
- Understand use of supertype/subtype relationships
- Understand use of specialization and generalization techniques
- Specify completeness and disjointness constraints
- Develop supertype/subtype hierarchies for realistic business situations
- Develop entity clusters
- Explain universal (packaged) data model
- Describe special features of data modeling project using packaged data model
- Enhanced ER model: extends original ER model with new modeling constructs
- Subtype: A subgrouping of the entities in an entity type that has attributes distinct from those in other subgroupings
- Supertype: A generic entity type that has a relationship with one or more subtypes
- Attribute Inheritance:
- Subtype entities inherit values of all attributes of the supertype
- An instance of a subtype is also an instance of the supertype
- Relationships at the supertype level indicate that all subtypes will participate in the relationship
- The instances of a subtype may participate in a relationship unique to that subtype. In this situation, the relationship is shown at the subtype level
- Generalization: The process of defining a more general entity type from a set of more specialized entity types. BOTTOM-UP
- Specialization: The process of defining one or more subtypes of the supertype and forming supertype/subtype relationships. TOP-DOWN
- Completeness Constraints: Whether an instance of a supertype must also be a member of at least one subtype
- Total Specialization Rule: Yes (double line)
- Partial Specialization Rule: No (single line)
- Disjointness Constraints: Whether an instance of a supertype may simultaneously be a member of two (or more) subtypes
- Disjoint Rule: An instance of the supertype can be only ONE of the subtypes
- Overlap Rule: An instance of the supertype could be more than one of the subtypes
- Subtype Discriminator: An attribute of the supertype whose values determine the target subtype(s)
- Disjoint – a simple attribute with alternative values to indicate the possible subtypes
- Overlapping – a composite attribute whose subparts pertain to different subtypes. Each subpart contains a Boolean value to indicate whether or not the instance belongs to the associated subtype
- EER diagrams are difficult to read when there are too many entities and relationships
- Solution: Group entities and relationships into entity clusters
- Entity cluster: Set of one or more entity types and associated relationships grouped into a single abstract entity type
- Predefined data models
- Could be universal or industry-specific
- Universal data model = a generic or template data model that can be reused as a starting point for a data modeling project (also called a “pattern”)
- Use proven model components
- Save time and cost
- Less likelihood of data model errors
- Easier to evolve and modify over time
- Aid in requirements determination
- Easier to read
- Supertype/subtype hierarchies promote reuse
- Many-to-many relationships enhance model flexibility
- Vendor-supplied data model fosters integration with vendor’s applications
- Universal models support inter-organizational systems
星期五, 10月 01, 2010
香港常用 pop3 資 料
Hotmail
Incoming Host: pop3.live.com
SSL: 995
User Name : 電郵賬戶
GMAIL
Incoming Host: pop.gmail.com
SSL: 995
User Name : 電郵賬戶
雅 虎 香 港 郵 件
Incoming Host: pop.mail.yahoo.com.hk
SSL: 995
User Name : 電郵賬戶
雅 虎 電 子 郵 件
Incoming Host: pop.mail.yahoo.com
SSL: 995
User Name : 電郵賬戶
香 港 寬 頻
Incoming Host: pop6.ctimail3.com or popo.hkbn.net
新 浪 網 香 港
Incoming Host: pop3.sina.com.hk
HK NET
Incoming Host: pop3.hknet.com
太 平 洋 寬 頻
Incoming Host: pop.pacific.net.hk
有 線 寬 頻
Incoming Host: mail.i-cable.com
網 上 行
Incoming Host: pop.netvigator.com
和 記 寬 頻
Incoming Host: pop.hgcbroadband.com
p.s. sina HK 的 pop3 由於是增值服務,故免費用戶不能在 outlook、iphone 4 等接收 email
Incoming Host: pop3.live.com
SSL: 995
User Name : 電郵賬戶
GMAIL
Incoming Host: pop.gmail.com
SSL: 995
User Name : 電郵賬戶
雅 虎 香 港 郵 件
Incoming Host: pop.mail.yahoo.com.hk
SSL: 995
User Name : 電郵賬戶
雅 虎 電 子 郵 件
Incoming Host: pop.mail.yahoo.com
SSL: 995
User Name : 電郵賬戶
香 港 寬 頻
Incoming Host: pop6.ctimail3.com or popo.hkbn.net
新 浪 網 香 港
Incoming Host: pop3.sina.com.hk
HK NET
Incoming Host: pop3.hknet.com
太 平 洋 寬 頻
Incoming Host: pop.pacific.net.hk
有 線 寬 頻
Incoming Host: mail.i-cable.com
網 上 行
Incoming Host: pop.netvigator.com
和 記 寬 頻
Incoming Host: pop.hgcbroadband.com
p.s. sina HK 的 pop3 由於是增值服務,故免費用戶不能在 outlook、iphone 4 等接收 email
星期四, 9月 30, 2010
體能活動的健康益處
任何年齡的人士要促進健康,其中一種最好的方法就是多做運動。
兒童及青少年
| 科學證據的強度 | 健康益處 |
|---|---|
| 非常有力 |
|
| 中等強度 |
|
成年人及長者
| 科學證據的強度 | 健康益處 |
|---|---|
| 非常有力 |
|
| 中等強度至非常有力 |
|
| 中等強度 |
|
星期三, 9月 29, 2010
batch file script - check folder / file size
@echo off
fc c:\ABC\abc.txtc:\DEF\abc.txt> nulrem:
if errorlevel 2 goto err2
if errorlevel 1 goto err1
if errorlevel 0 goto err0
goto exit
:err0
echo. is same
goto exit
:err1
echo. is different
goto exit
:err2
echo. file is lost
goto exit
:exit
-----------------//這段編碼是用來比較檔案或資料夾的大小是否相同。
@echo offrem://關閉指令行自身的顯示
fc c:\ABC\abc.txtc:\DEF\abc.txt> nulrem:// fc.exe是用來比較兩個檔案或兩組檔案並且顯示其中的不同之處。(一般在 c:\windows\system32\)rem:// 如要比較兩個資料夾,可以變為:( fc c:\ABC\*.*c:\DEF\*.*> nul)
rem:// 如路徑有空格,應變為:( fc "c:\AB C\*.*""c:\DE F\*.*" > nul)
rem:// 假若不加 >nul ,cpu會飆到100。>nul 用於屏蔽標準輸出在屏幕上的顯示。rem:
if errorlevel 2 goto err2//表示兩個檔案中,有一個以上是不存在if errorlevel 1 goto err1
rem://表示兩個檔案不同if errorlevel 0 goto err0rem://表示兩個檔案相同rem:
goto exit//以上皆不是時直接跳到「:exit」行rem:
:err0//兩個檔案相同時執行此行echo. They are same
goto exitrem://直接跳到「:exit」行
:err1
echo.They aredifferent
goto exit
:err2
echo. Some file(s) is lost
goto exit
:exit
rem://完結
星期二, 9月 28, 2010
Security responsibilities and responses: A user's view
1. Which of the following actions would help users to keep information safe?
Choose more than one option.
Keep important information stored separately in hard copy form
2. Which of the following should be part of the effort to reduce the level of threat to security posed by an organization's own employees?
Choose more than one option.
3. Which of the following are key considerations for an information security program?
Choose more than one option.
4. Which of the following are criteria for a good password?
Choose more than one option.
Topic title: Security responsibilities and responses: A user's view
Which of the following are considered potential security threats?
Choose more than one option.
Keep important information stored separately in hard copy form
Have a strong password
Be careful about leaving your computer unattended
Report anything suspicious
2. Which of the following should be part of the effort to reduce the level of threat to security posed by an organization's own employees?
Choose more than one option.
Keep employees motivated
Ensure that employees' skills are updated on an ongoing basis
Monitor employee activity
Install appropriate technical barriers
3. Which of the following are key considerations for an information security program?
Choose more than one option.
Confidentiality
Availability
Communication Integrity
4. Which of the following are criteria for a good password?
Choose more than one option.
It is almost impossible for others to guess
It has personal significance You don't have to write it down
It evokes a pleasant, thus memorable, image Topic title: Security responsibilities and responses: A user's view
Which of the following are considered potential security threats?
Computer viruses
Internet privilege
Loss of data Unauthorized access
星期一, 9月 27, 2010
Introduction to security policies
1. Security ___________ define which of a company's resources are to be protected, whereas security _________ define how to protect them.
To fill the first blank, select one of the options below. The other option will automatically appear in the second blank.
procedures
policies
Security policies define which of a company's resources are to be protected, whereas security procedures define how to protect them.
2. Which of the following should be the first step in developing a security policy?
Choose an option.
Assigning risk factors
Prioritizing resources
3. Which of the following statements best describes a company's information protection policy?
Choose an option.
It defines methods of remotely connecting to the main network
It provides guidelines on how users should process, store, and transmit sensitive information
It provides guidelines for reporting and managing virus infections
It defines the appropriate use of computing resources
To fill the first blank, select one of the options below. The other option will automatically appear in the second blank.
procedures
policies
Security policies define which of a company's resources are to be protected, whereas security procedures define how to protect them.
2. Which of the following should be the first step in developing a security policy?
Choose an option.
Assigning risk factors
Prioritizing resources
Classifying resources
Defining acceptable and unacceptable activities 3. Which of the following statements best describes a company's information protection policy?
Choose an option.
It defines methods of remotely connecting to the main network
It provides guidelines on how users should process, store, and transmit sensitive information
It provides guidelines for reporting and managing virus infections
It defines the appropriate use of computing resources
訂閱:
文章 (Atom)