- 浏览: 39566 次
- 性别:
- 来自: 北京
最新评论
文章列表
Thinkpad系列:Win7开启ahci模式
一、开启硬盘AHCI模式的好处:
1.硬盘开启AHCI模式能够大幅缩短硬盘无用的寻道次数和缩短数据查找时间,这样能让多任务下的磁盘能够高效地使用。大大提高了频繁读写硬盘程序的工作效率,尤其是运行大型游戏或软件时的读写速度有了明显的改善。
2.能够降低硬盘的温度,读盘时的噪音。
3.支持热插拔eSATA硬盘。
4.延长硬盘使用寿命。
二、已经安装了Win7系统后想开启硬盘AHCI模式的方法:
第一步:下载附件,并安装到C:\Driver ...
创建型模式---工厂方法
- 博客分类:
- 设计模式
创建型模式包括以下5种:
FactoryMethod ( 工厂方法)
AbstractFactory ( 抽象工厂)
Singleton ( 单态模式 )
Builder ( 建造者模式 )
Prototype 原型模式 )
设计模式之一: 工厂方法
定义:一个用于创建对象的接口,让子类决定实例化哪一个类。FactoryMethod使一个类的实例化延迟到了其子类。适用性: 1> 当客户程序不需要知道要使用对象的创建过程。 2> 客户程序使用的对象存在变动的可能,或者根本就不知道使用哪一个具体的对象。
参与者 1.Product 定 ...
Robin Hood
Narrative---->
Section part one:
Robin and his merry men
Robin Hood was the best bowman in England, and he could fight very well with a sword. He was also very good with a quarterstaff. Robin Hood lived in England many years ago. He was a good, brave man and the common people lov ...
1.Down the Rabbit Hole
Alice and her big sister were sitting on the grass. Her sister was reading a book, but Alice had nothing to read. She looked at her sister's book again. There were no pictures in it.
"What good is a book without pictures?" She wondered.
It was a very hot day ...
Presentation---> Arranging to Meet
Variation 1:
---Let’s meet at the restaurant. Okay?
---Okay… Where’s the restaurant?
---Do you know where the Empire Theater is?
---Sure.
---The restaurant is across the street from the theater.
Variation 2
---Let’s meet at the restaurant. Okay?
...
The stamp is near the envelope.
The stamp is on the envelope.
The stamp is under the envelope. (The envelope is on top of stamp.)
The letter is inside the envelope.
The letter is outside the envelope. (The letter is on top of the envelope.)
The circle is inside the triangle.
The triangle is in ...
Welcome to Dyned City. Make yourself at home.
The art museum is on High Street, directly across from the hotel.
Which of these buildings is next to the art museum?
---There is a café on the corner of High Street and First Avenue, next to the art museum.
What building is between a ca ...
Besides energy from the sun, we also need water and air. Without water and air, there would be no life. Without enough water, there aren't enough plants and trees. Plants and trees produce air that we breathe.We also need water to grow our food. In some parts of our world, there isn't enough water. W ...
太阳系(Solar System)是由太阳、9颗大行星、66颗卫星以及无数的小行星、彗星及陨星组成的。 行星由太阳起往外的顺序是:水星(Mercury)、金星(Venus)、地球(Earth)、火星(Mars)、木星(Jupiter)、土星(Saturn)、天王星(Uranus)、海王星(Neptune)和冥王星(Pluto).
Diane is a housewife and a mother. Her husband, Dick, drives a taxi. Their two children both go to school, which is about twenty minutes away by car.
This morning, Diane got up early at six thirty. She cooked breakfast for her family at seven. At seven fifteen they sat down together and ate breakf ...
Kathy is a writer, who works for a newspaper and writes books as well. Her schedule changes everyday(Her daily schedule varies.). She often works late at night. As a result, she doesn’t like to get up early. Sometimes, she gets up so late that she doesn't have time for breakfast.
Today, For examp ...
package keifer.www;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
@SuppressWarnings("rawtypes")
public class ClassUtils {
/**
*
* @param divId
* one container
* @param info
* operation result message to show in the up DIV, such as: "Add
* Successfully!"
* @param isSuccess
* one sign whether operate successfully.Just two values:true or
* ...
打开Dreamweaver,依次选择“插入”-->“布局对象”-->“Spry选项卡式面板”。将会自动生成下面的代码:
......
<script src="SpryAssets/SpryTabbedPanels.js"
type="text/javascript"></script><link
href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css"
...
// temp Id generator
SEQUENCE = {
value : -1,
next : function() {
this.value = ++this.value;
return this.value;
};
//reset form element
function clearForm(formName) {
var formObj = document.forms[formName];
var formEl = formObj.elements;
for (var i=0; i<formE ...