Friday, September 11, 2009

Don't type it your self, copy and paste!!!

No difference?

IllumLoginName


IIIumLoginName


Check this out!

IllumLoginName

IIIumLoginName


Now I hate Arial font.

Friday, August 7, 2009

How to get computer name from IP address

ping:
-a Resolve addresses to hostnames.

ping -a xxx.xxx.xxx.xxx

Wednesday, July 8, 2009

Make a row or column always visible in Excel using Freeze Panes ( 转)

Freeze Rows

To freeze a row in your worksheet, highlight the row where you wish all rows before the highlighted row to be frozen or locked, go to Window>Freeze Panes and you will see a line appear across your worksheet. Everything above the line is frozen and will remain in view when you scroll down your worksheet.

Freeze Columns

To freeze a column in your worksheet, highlight the column where you wish all columns before, the highlighted column to be frozen or locked, go to Window>Freeze Panes and you will see a line appear down your worksheet. Everything to the left of the line is frozen and will remain in view when you scroll across your worksheet.

Freeze both Columns and Rows

Click in a single cell of your worksheet and go to Window>Freeze Panes. This will freeze all rows above the selected cell and all columns to the left of the selected cell.

Make a multiline cell in MS Excel?

1. Auto wrap text.
In order to make text appear as multiline, right click the cell and choose Format cells.

A pop up box appears then select the "alignment" tab and select "wrap text".

2. Hit Alt+Enter you will move to the next line, but this way the text will not automatically wrap while you change the Column's width.

Wednesday, June 10, 2009

QuickStript.NET

1. comment
' one line comment

{
multiline comment
}

2. IF .. THEN ... ELSEIF .. ELSE ... ENDIF

if value ==0 then
message = "zero";
elseif value>0 then;
message ="positive";
else;
message ="negative";
endif;

or

if value ===0 then
message = "zero";
else
message ="no zero";
endif;

Wednesday, April 8, 2009

Excel快捷键大全 ( 转)

功能键
按键说明
F1显示“帮助”任务窗格。

按 Ctrl+F1 可关闭并重新打开当前任务窗格。

按 Alt+F1 可创建当前范围中数据的图表。

按 Alt+Shift+F1 可插入新的工作表。

F2编辑活动单元格并将插入点放在单元格内容的结尾。如果禁止在单元格中进行编辑,它也会将插入点移到编辑栏中。

按 Shift+F2 可编辑单元格批注。

F3将定义的名称粘贴到公式中。

按 Shift+F3 将显示“插入函数”对话框。

F4重复上一个命令或操作(如有可能)。

按 Ctrl+F4 可关闭选定的工作簿窗口。

F5显示“定位”对话框。

按 Ctrl+F5 可恢复选定工作簿窗口的窗口大小。

F6切换到已拆分(“窗口”菜单,“拆分”命令)的工作表中的下一个窗格。

按 Shift+F6 可切换到已拆分的工作表中的上一个窗格。

如果打开了多个工作簿窗口,则按 Ctrl+F6 可切换到下一个工作簿窗口。

F7显示“拼写检查”对话框,以检查活动工作表或选定范围中的拼写。

如果工作簿窗口未最大化,则按 Ctrl+F7 可对该窗口执行“移动”命令。使用箭头键移动窗口,并在完成时按 Esc。

F8打开或关闭扩展模式。在扩展模式中,“EXT”将出现在状态行中,并且按箭头键可扩展选定范围。

通过按 Shift+F8,您可以使用箭头键将非邻近单元格或范围添加到单元格的选定范围。

当工作簿未最大化时,按 Ctrl+F8 可执行“大小”命令(在工作簿窗口的“控制”菜单上。

按 Alt+F8 可显示用于运行、编辑或删除宏的“宏”对话框。

F9计算所有打开的工作簿中的所有工作表。

如果先按 F9 再按 Enter(对于数组公式则按 Ctrl+Shift+Enter),则会计算选定的公式部分,并将选定部分替换为计算出的值。

按 Shift+F9 可计算活动工作表。

按 Ctrl+Alt+F9 可计算所有打开的工作簿中的所有工作表,不管它们自上次计算以来是否已更改。

如果按 Ctrl+Alt+Shift+F9,则会重新检查相关公式,然后计算所有打开的工作簿中的所有单元格,其中包括未标记为需要计算的单元格。

按 Ctrl+F9 可将工作簿窗口最小化为图标。

F10选择菜单栏或同时关闭打开的菜单和子菜单。

按 Shift+F10 可显示选定项目的快捷菜单。

按 Alt+Shift+F10 可显示智能标记的菜单或消息。如果存在多个智能标记,按该组合键可切换到下一个智能标记并显示其菜单或消息。

按 Ctrl+F10 可最大化或还原选定的工作簿窗口。

F11创建当前范围内数据的图表。

按 Shift+F11 可插入一个新工作表。

按 Alt+F11 将打开 Visual Basic 编辑器,您可以在其中通过使用 Visual Basic for Applications (VBA) 来创建宏。

按 Alt+Shift+F11 将打开 Microsoft 脚本编辑器,您可以在其中添加文本、编辑 HTML 标记以及修改任何脚本代码。

F12显示“另存为”对话框。



Ctrl 组合快捷键
按键说明
Ctrl+(取消隐藏选定范围内所有隐藏的行。
Ctrl+)取消隐藏选定范围内所有隐藏的列。
Ctrl+&将外框应用于选定单元格。
Ctrl+_从选定单元格删除外框。
Ctrl+~应用“常规”数字格式。
Ctrl+$应用带有两位小数的“货币”格式(负数放在括号中)。
Ctrl+%应用不带小数位的“百分比”格式。
Ctrl+^应用带有两位小数的“指数”格式。
Ctrl+#应用带有日、月和年的“日期”格式。
Ctrl+@应用带有小时和分钟以及 AM 或 PM 的“时间”格式。
Ctrl+!应用带有两位小数、千位分隔符和减号 (-)(用于负值)的“数值”格式。
Ctrl+-显示用于删除选定单元格的“删除”对话框。
Ctrl+*选择环绕活动单元格的当前区域(由空白行和空白列围起的数据区域)。

在数据透视表中,它将选择整个数据透视表。

Ctrl+:输入当前时间。
Ctrl+;输入当前日期。
Ctrl+`在工作表中切换显示单元格值和公式。
Ctrl+'将公式从活动单元格上方的单元格复制到单元格或编辑栏中。
Ctrl+"将值从活动单元格上方的单元格复制到单元格或编辑栏中。
Ctrl++显示用于插入空白单元格的“插入”对话框。


Ctrl+1
显示“单元格格式”对话框。
Ctrl+2应用或取消加粗格式设置。
Ctrl+3应用或取消倾斜格式设置。
Ctrl+4应用或取消下划线。
Ctrl+5应用或取消删除线。
Ctrl+6在隐藏对象、显示对象和显示对象占位符之间切换。
Ctrl+7显示或隐藏“常用”工具栏。
Ctrl+8显示或隐藏大纲符号。
Ctrl+9隐藏选定的行。
Ctrl+0隐藏选定的列。
Ctrl+A选择整个工作表。

如果工作表包含数据,则按 Ctrl+A 将选择当前区域。再次按 Ctrl+A 将选择整个工作表。

当插入点位于公式中某个函数名称的右边时,则会显示“函数参数”对话框。

当插入点位于公式中某个函数名称的右边时,按 Ctrl+Shift+A 将会插入参数名称和括号。

Ctrl+B应用或取消加粗格式设置。
Ctrl+C复制选定的单元格。

如果连续按两次 Ctrl+C,则会显示 Microsoft Office 剪贴板。



Ctrl+D
使用“向下填充”命令将选定范围内最顶层单元格的内容和格式复制到下面的单元格中。

Ctrl+F
显示“查找”对话框。

按 Shift+F5 也会显示此对话框,而按 Shift+F4 则会重复上一次“查找”操作。


Ctrl+G
显示“定位”对话框。

按 F5 也会显示此对话框。

Ctrl+H

显示“查找和替换”对话框。
Ctrl+I应用或取消倾斜格式设置。
Ctrl+K为新的超链接显示“插入超链接”对话框,或为选定的现有超链接显示“编辑超链接”对话框。
Ctrl+L显示“创建列表”对话框。

Ctrl+N

创建一个新的空白文件。
Ctrl+O
显示“打开”对话框以打开或查找文件。

按 Ctrl+Shift+O 可选择所有包含批注的单元格。

Ctrl+P显示“打印”对话框。

Ctrl+R
使用“向右填充”命令将选定范围最左边单元格的内容和格式复制到右边的单元格中。


Ctrl+S
使用其当前文件名、位置和文件格式保存活动文件。
Ctrl+U应用或取消下划线。

Ctrl+V
在插入点处插入剪贴板的内容,并替换任何选定内容。只有在剪切或复制了对象、文本或单元格内容后,才能使用此快捷键。
Ctrl+W关闭选定的工作簿窗口。
Ctrl+X
剪切选定的单元格。
Ctrl+Y重复上一个命令或操作(如有可能)。

Ctrl+Z
使用“撤消”命令来撤消上一个命令或删除最后键入的条目。

显示了自动更正智能标记时,按 Ctrl+Shift+Z 可使用“撤消”“重复”命令撤消或恢复上一次自动更正操作。




其他有用的快捷键
按键说明
箭头键在工作表中上移、下移、左移或右移一个单元格。

按 Ctrl+箭头键可移动到工作表中当前数据区域 (数据区域:包含数据的单元格区域,该区域周围为空白单元格或数据表边框。)的边缘。

按 Shift+箭头键可将单元格的选定范围扩大一个单元格。

按 Ctrl+Shift+箭头键可将单元格的选定范围扩展到与活动单元格同一列或同一行中的最后一个非空白单元格。

当菜单处于可见状态时,按向左键或向右键可选择左边或右边的菜单。当子菜单处于打开状态时,按这些箭头键可在主菜单和子菜单之间切换。

当菜单或子菜单处于打开状态时,按向下键或向上键可选择下一个或上一个命令。

在对话框中,按箭头键可在打开的下拉列表中的各个选项之间移动,或在一组选项的各个选项之间移动。

按 Alt+向下键可打开选定的下拉列表。

Backspace在编辑栏中删除左边的一个字符。

也可清除活动单元格的内容。

Delete从选定单元格中删除单元格内容(数据和公式),而不会影响单元格格式或批注。

在单元格编辑模式下,按该键将会删除插入点右边的字符。

End当 Scroll Lock 处于开启状态时,移动到窗口右下角的单元格。

当菜单或子菜单处于可见状态时,也可选择菜单上的最后一个命令。

按 Ctrl+End 可移动到工作表上的最后一个单元格,即所使用的最下方一行与所使用的最右边一列的交汇单元格。

按 Ctrl+Shift+End 可将单元格的选定范围扩展到工作表上所使用的最后一个单元格(右下角)。

Enter从单元格或编辑栏中完成单元格输入,并(默认)选择下面的单元格。

在数据表单中,按该键可移动到下一条记录中的第一个字段。

打开选定的菜单(按 F10 激活菜单栏),或执行选定命令的操作。

在对话框中,按该键可执行对话框中默认命令按钮(带有突出轮廓的按钮,通常为“确定”按钮)的操作。

按 Alt+Enter 可在同一单元格中另起一个新行。

按 Ctrl+Enter 可使用当前条目填充选定的单元格区域。

按 Shift+Enter 可完成单元格输入并选择上面的单元格。

Esc取消单元格或编辑栏中的输入。

按该键也可关闭打开的菜单或子菜单、对话框或消息窗口。

Home移到工作表中某一行的开头。

当 Scroll Lock 处于开启状态时,移到窗口左上角的单元格。

当菜单或子菜单处于可见状态时,选择菜单上的第一个命令。

按 Ctrl+Home 可移到工作表的开头。

按 Ctrl+Shift+Home 可将单元格的选定范围扩展到工作表的开头。

Page Down在工作表中下移一个屏幕。

按 Alt+Page Down 可在工作表中向右移动一个屏幕。

按 Ctrl+Page Down 可移到工作簿中的下一个工作表。

按 Ctrl+Shift+Page Down 可选择工作簿中的当前和下一个工作表。

Page Up在工作表中上移一个屏幕。

按 Alt+Page Up 可在工作表中向左移动一个屏幕。

按 Ctrl+Page Up 可移到工作簿中的上一个工作表。

按 Ctrl+Shift+Page Up 可选择工作簿中的当前和上一个工作表。

空格键在对话框中,执行选定按钮的操作,或者选中或清除复选框。

按 Ctrl+空格键可选择工作表中的整列。

按 Shift+空格键可选择工作表中的整行。

按 Ctrl+Shift+空格键可选择整个工作表。

  • 如果工作表包含数据,则按 Ctrl+Shift+空格键将选择当前区域。再按一次 Ctrl+Shift+空格键将选择整个工作表。
  • 当某个对象处于选定状态时,按 Ctrl+Shift+空格键可选择工作表上的所有对象。

按 Alt+空格键可显示 Excel 窗口的“控制”菜单。

Tab在工作表中向右移动一个单元格。

在受保护的工作表中,可在未锁定的单元格之间移动。

在对话框中,移到下一个选项或选项组。

按 Shift+Tab 可移到前一个单元格(在工作表中)或前一个选项(在对话框中)。

在对话框中,按 Ctrl+Tab 可切换到下一个选项卡。

在对话框中,按 Ctrl+Shift+Tab 可切换到前一个选项卡。

Thursday, February 26, 2009

Maximum length is 128 Error in SQL Server

This summary is not available. Please click here to view the post.

Monday, January 19, 2009

GT - Grand tourer

A grand tourer (Italian: gran turismo), (initialised GT), is a high-performance automobile designed for long-distance driving. Any such car could be considered a grand tourer, but the traditional and most common body style is the two-door coupé with either a two-seat or a 2+2 seat arrangement. The name comes from the Grand Tour.

Monday, November 24, 2008

About PSN Games and Accounts

You can download PSN games onto 5 PS3's.
You have to login with the account that purchased the game on the other PS3 and download the game.

Once you finish downloading the game I recommend that you go to account management and deactivate your PSN ID from the playstation that is not yours. Your ID can only be activated on 5 PS3's as well.

Monday, November 17, 2008

Differencing feature in Virtual PC

Differencing:差分磁盘。差分磁盘可以说是VPC的精髓所在,许多人哪怕就只冲着这一点功能也使用VPC,所以VMware为了保住客户,在 VMware 5.0中也模仿了该技术(其实VMware中有不少功能就是模仿VPC的)。此种磁盘创建时将指定一个母盘(母盘必须是动态增长盘或固定大小盘),创建后的差分磁盘是基于母盘的,它只保存与母盘不同的数据。例如我们有一台安装有Windows XP的虚拟机,现在想要另外一台Windows XP SP1和SP2的虚拟机,并且同时开启,组成一个工作组,怎么办?有些朋友可能立即想到直接把Windows XP的虚拟机的vhd文件复制三个,然后创建另外两台虚拟机,指定虚拟机的硬盘后分别安装SP1和SP2。这个是最简单的方法,但是这样确浪费了很多空间。尤其是安装有Windows XP虚拟机,其虚拟磁盘文件可能大于1G。有了差分磁盘,我们可以这样做:创建两个差分磁盘,其母盘都指定为Windows XP的虚拟磁盘。然后同样创建另外两台虚拟机,指定虚拟机的硬盘后分别安装SP1和SP2,这时那两个差分磁盘大小分别为一个SP1和SP2的大小而已,而其他相同的内容都直接读取母盘中的数据,为我们节省了很多宝贵的空间。这种技术应用非常广泛,尤其是用于模拟域中多台不同角色的服务器环境。我们只需要创建一台安装有Windows Server的虚拟机,利用差分磁盘就可以创建出Domain Controller、File Server、DNS Server等多台服务器。这里需要大家注意的是,使用了差分磁盘后,母盘就就不能写入任何数据了,否则很可能会导致所有基于该母盘的差分磁盘全部无法使用。

Tuesday, November 11, 2008

HTML & XML entity reference

< < less than
> > greater than
& & ampersand
' ' apostrophe
" " quotation mark

Thursday, November 6, 2008

通过定义CSS打印模式,实现网页内容格式输出(转)

设定适于打印输出的样式表
第一步要做的是复制原用的CSS文件,将其命名为print_style.css,接下来,就是要在其首行加入语句:
link rel="stylesheet" type="text/css" media="print" href="print_style.css"

我们看到,这一条语句惟一特别的地方在于,media参数被赋值为"print"。而如果在页面内加入了这样的一条语句,那么再执行 file>>print(文件>>打印)指令时,print_style.css样式表就会替代原有的样式表被调用。

注意:如果是IE6或是Firefox用户,就一定要将网络链接标记样式中的media参数赋值为 "screen",否则,打印出来的页面内容会发生出血的问题,以及其他一些问题。IE7用户就不用担心了。

完善页面的主体部分

现在,我们来调整一下页面主体相关的参数。一般情况下,网页的主体部分都会有背景色或是背景图案。我们现在就要将背景去除,以确保打印出来的页面相对整洁。当然,多数浏览器默认支持在打印时自动去除背景,但还是要手动调整一下来得保险。

同时,还要考虑为将打印样式表中的color参数赋值为#000或"black"。彩色的文字在网页上看起来固然很眩,但要输出如此色彩眩丽的页面,就会耗费相当昂贵的墨水。

接下来,我们要调整的就是margin参数了,系统默认的页边距设置一般都会比较小,我们现在试着为左、右边距各增加3em,可以通过语句margin 0em 3em 0em 3em来实现。

调整分栏版式参数

我们都知道,并不是所有的网页内容都有必要打印出来的,比如说导航条,在网页上是必要信息,但打印出来就纯属浪费页面了。这时,我们就需要在打印样式表中对那些没有必要打印出来的选项,添加属性"display: none"。

同时,为了让所有的内容都完美地垂直排列在打印出的页面上,而不是一个接一个地堆在页面上,就需要对每一个必打项的float参数赋数为"none",或干脆直接将float参数项删去。

还要为每一个必打项的width参数赋值为"auto"。这样,对于利用div标记对页面进行了分栏的时候,就可以确保分栏的内容能够自动填满页面。以下为打印样式表的编写内容示例:

div.template_fill_wrapper_top{
display: none;
}
div.template_fill_wrapper_middle{
margin: 0;
width: auto;
text-align: center;
clear: both;
}

In the web stylesheet
div.template_fill_wrapper_top{
overflow:hidden;
text-align:center;
background-color: #313131;
height: 48px;
overflow: hidden;
}
div.template_fill_wrapper_middle{
margin: 0 auto;
text-align: left;
padding-top:10px;
clear:both;
}

PX参数下课,Em及PT上位

一般情况下,在为网页编写样式表时,针对间距、宽、高、页边距及字体大小等参数,我们习惯用pixel或em度量单位。这主要是由于数码显示器一般是采用 像素及字符宽度为显示单位的。而对于打印机来说,像素单位就不好使了,需要将原来使用像素单位的间距、宽、高、页边距等值转换为em单位值;而字体大小则 需被转换为磅值(建议将字体大小设置在9pt~11pt之间)。.

以下即为Bits O' NewMedia网站的打印样式表示例:
body {
margin: 0em 3em 0em 3em;
padding: 0;
border: 0;
color: black;
background: white;
font: normal 10pt "Bakersville Old Face", "Times New Roman", Times, serif;
text-align: left;
}

Thursday, October 16, 2008

卧室风水床位摆放(转)

(最近老散财了,研究下风水)

由于床在人的一生中占有重要的位置,因此床位的摆放及其重要。具体来说,卧室安床有以下十大讲究。

1、对于床本身,要考虑的是其长度,宽度是否足够,床体是否平整并且是否具有良好的支撑性和舒适性。至于床的高低,一般以略高于就寝者的膝盖为宜。太高则上下吃力,太低则总是弯腰不方便。切记床不可贴地,床底宜空,勿堆放杂物,否则不通风,易藏湿气,会导致腰酸悲痛。

2、安床不管位于何处,关键在于应该让卧者可以自床上看到卧室的门与窗,并且在黎明时分,会有阳光照射到床上,有助于吸收大自然的能量。

3、床头不能靠门,如果迁就卧室有限的空间,而把床位放在大门口侧,就犯了卧室的大忌。

4、 床位最好选择南北朝向,顺合地磁引力。头朝南或北睡眠,有益于健康,因为人体的血液循环系统中,主动脉和大静脉最为重要,其走向与人体的头脚方向一致。人 体处于南北睡向时,主动脉和大静脉朝向、人体睡向和地球南北的磁力线方向三者一致,这时人就容易入睡,睡眠质量也最高,因此南北睡向具有一定的防病和保健 功能。床头不可朝西,血液经常向头顶直冲、睡眠较不安稳;如果头朝东睡,就会有一种安宁的感觉。

5、床头宜实不宜虚,床头应该靠墙,不可靠窗,床如果不靠墙的话,床头必须有床头板,令头部不至于悬空,并且,床头后面不可是厕所或厨房。

6、床位不可对门,以免被外人一览无遗,毫无私密性和安全感,也影响休息。如果遇房门相冲,则可以用屏风来挡门,则不仅阻挡了床门相冲,同时也维护了卧室的私密性。

7、不可有横梁压床,以免造成压抑感,也有损人的身心健康,此类情况还包括不可有横梁压卧室门,分体空调室内机不可悬挂于枕头位上方,卧床正上方不可悬挂吊灯,这些都属于横梁压床的范畴。

8、 床位不可对镜,因为人在半梦半醒之间,夜半起床容易被镜中影像所惊吓,精神不安宁,导致头晕目眩;其次人在入睡时,气能最弱,而镜子是反射力极强的物体, 易将人的能量反射出去,特别是年轻夫妇,如果卧室镜对床,长此以往,易患不孕症。如果睡房中有镜子对床,可在晚上盖住它或把它转向墙壁,当然最好的办法是 将镜子镶嵌在卧室衣柜内部,照镜时打开,平时不用时将门合上。

9、床头柜应高过床,有利提升睡眠者之智慧,并提高睡眠质量。

10、枕头位两侧,不可被柜角或厨角、书柜、化妆台冲射,易使人患偏头痛。叶子尖长的植物、方形或长方形的家具不能太靠近睡床。

卧室的颜色选择

卧室的墙面尽可能不用玻璃、金属与大理石等材料,而使用油漆,即避免睡卧时气能被反射,又利于墙体呼吸,并且颜色应柔和,能够令人感觉平静,有助于休息。根据五行的原理,卧室方位与颜色有以下的对应:

东与东南-绿、蓝色

南-淡紫色、黄色、黑色

西-粉红、白与米色、灰

北-灰白、米色、粉红与红色

西北-灰、白、粉红、黄、棕、黑

东北-淡黄、铁锈色

西南-黄、棕色

家具

  家具色彩一般既要符合个人爱好,更要注意与房间的大小、室内光线的明暗相结合,并且要与墙、地面的颜色相协调,但又不能太相近,不然没有相互衬托,也不能产生良好的效果,对于较小的、光线差的房间,不宜选择太冷的色调;大房间、光线好

的可以有比较多的选择。另外,应考虑到不同面积不同功能的房间色彩可有不同,因而所产生的效果不同。

  如浅色家具(包括浅灰、浅米黄、浅褐色等)可使房间产生宁静、典雅、清幽的气氛,且能扩大空间感,使房间明亮爽洁;而中等深色家具(包括中黄色、橙色等)色彩较鲜艳,可使房间显得活泼明快。

卧室的装饰与照明

卧室的装饰要避免悬挂能反射的东西,室内悬挂的装饰品如果是挂毯、没有玻璃或装上不反光玻璃的画较佳,卧室不宜摆刀剑凶器、神像、神位等。

卧室光线不宜太强,因为床是静息之所,强光会使人心境不宁,所以室内最好用柔和的白炽灯来照明,而少用日光灯。

卧室的植物

卧 室追求雅洁、宁静舒适的气氛,内部放置植物,有助于提升休息与睡眠的质量。由于卧室除了放床,余下的面积往往有限,所以应以中小盆或吊盆植物为主。在宽敞 的卧室里,可选用站立式的大型盆栽;小一点的卧室,则可选择吊挂式的盆栽,或将植物套上精美的套盆后摆放在窗台或化妆台上。

茉莉花、封信子或夜来香等能散发香甜气味的植物,可令人在自然的芬芳气息中酣然入睡。而摆放君子兰、黄金葛、文竹等植物,具有柔软感,能松弛神经。卧室的植物植株的培养基可用水苔取代土壤,以保持室内清洁。


睡房内不宜摆放电视机。

  某些城市寸金尺土,新档的睡房面积都十分有限,如果近距离对着一部有电流、辐射的物体实在不卫生。已有科学证明,床头放电视机染上某类绝症的机会率是比较高的,而电流辐射会影响地气。

  若果睡房内要摆电视机时,在风水上要留意床头床尾均不宜摆放电视机。风水师认为床头及床尾摆电视机,就好似自己睡进坟墓里,电视机就是墓碑,甚为不吉利。既然床头尾皆不宜摆放电视机,那么剩下来的位置就只有床两边,或是床头床尾的侧面位置了,距离当然是愈远愈好。

Friday, September 12, 2008

Free Virtual PC 2007

Link: Microsoft Virtual PC 2007 SP1

Whether Microsoft virtualization technology is an important component of your existing infrastructure or you're just a Virtual PC enthusiast, you can now download Virtual PC 2007 absolutely free.

Virtual PC 2007 is a powerful software virtualization solution that allows you to run multiple PC-based operating systems simultaneously on one workstation, providing a safety net to maintain compatibility with legacy applications while you migrate to a new operating system. It also saves reconfiguration time, so your support, development, and training staff can work more efficiently.
Virtual PC 2007 runs on: Windows XP Professional, Windows XP Tablet PC, Windows Server 2003, Windows Vista Business, Windows Vista Enterprise, and Windows Vista Ultimate.

Thursday, August 28, 2008

Exception summary

String Type

Substring Exception:


if string temp is empty temp.Substring(0.5) will cause a System.ArgumentOutOfRangeException.

8 Ball Pool:How to Play Eight Ball Billiards

from: USA Pool Halls http://www.usapoolhalls.com/billiards/8-ball/

Eight-Ball pool is the most popular game of billiards in the world. The highest-paid professional billiards players play 8-ball. Eight-ball is the game played in most bars and taverns in the world.

Local establishments have their own weekly or monthly billiards tournaments. Other establishments allot sizable amounts of floorspace to their billiard tables and shooting billiards is a large part of a person's bar or tavern experience. In most of these places, eight-ball is the game of choice. Here are the basics of 8-ball billiards.

The Billiards Table



The standard billiards table is rectangular in shape, with two long rails and two short rails. There are six pockets on a billiards table, one in each corner of the table, accounting for four of the pockets, as well as one in the middle of each long rail, accounting for the final two pockets.

Between the pockets are 3 diamond shapes along the rails, for a total of 18 diamonds along the outer rails of the table. These rails help mark off certain key portions of the billiards table, such as the "kitchen".

The top of a standard billiards table is covered in green felt. The rails of the table are lined with cushion, allowing the balls the bounce off the rails of the table. These cushions are also covered in green felt.

The Cue Stick

The cue stick is a long, tapered stick used to strike the cue ball in billiards. The cue can be either one long piece of wood, or two pieces joined in the middle. Typically, more expensive pool cues are two-piece sticks. Expensive cues are made of maple, while inexpensive ones are made of ramin.

The handle has a larger circumference than the tip of the billiards cue. The tip of the cue is made of a different material, usually leather for expensive cues and plastic for inexpensive ones. The tip is what actually comes in contact with the cue ball. Through the use of chalk on the leather tip, players can place different spins on the cue ball, as needed.

The mechanical bridge is sometimes used for precarious shots. This is a long stick with a metal bridge on the end, used to balance the cue stick when making a shot in the center of the table or over balls which would otherwise be an impediment. The mechanical bridge is sometimes called the rest, the rake or, more derisively, the ladies cue.

The Billiard Balls

Eight ball is played with 16 different balls. One of the balls is the white cue ball, while another one is the black eight-ball. The other fourteen balls are divided in two halves.

In North America, balls are divided between solids and stripes. The solid balls are one solid color, except for the dot containing that ball's number. The solid balls are numbered one through seven.

The striped balls have a wide colored stripe around the ball surrounding the number dot, with two poles of white at either end. The striped balls are numbered nine through fifteen.

In the United Kingdom, the striped and solid patterns are replaced with standard colors. There remains a cue ball and a black eight-ball, but the rest of the balls are divided evenly among unnumbered red and yellow balls. A game quite similar to American eight-ball is played in the U.K. This game goes by the name Blackball.

Racking the Balls

To begin a game of 8-Ball, one player racks all fifteen balls but the cue ball in the ball rack. The ball rack is a triangular shaped wooden rack.

Once all fifteen colored balls are placed in the rack, the balls are pressed towards the front of the rack, so that all of the balls remain in tight contact with one another. The balls must be placed where the cue ball is in the center of the rack, while either of the lower corners of the rack contain a striped and a solid ball.

Finally, the top or apex of the triangle should be placed on the dot on the end of the table opposite the kitchen. The "kitchen" is the area of a billiards table behind the head string. The head string is a real or imaginary line which runs across the table between the 2nd diamond on one long rail and the 2nd diamond on the other long rail.

The Break

The player who breaks the rack in a game of 8 ball can shoot the cue ball from anywhere behind the head string, from inside the kitchen towards the rack. The object is to break the balls of the rack up, hopefully firing one or more balls into a corner pocket.

The person who breaks is chosen through an agreed-upon method, either by a coin toss, by lagging for the break or by the winner of the previous game. To make a regulation break, at least four balls should hit the wall cushions or at least one balls should be pocketed. If this doesn't happen, the opponent can ask for a re-rack and be allowed to break the rack. That same opponent can opt to play from the existing set of broken balls.

If a ball falls in a pocket off of a break, then it is still that player's turn. The breaking player can then choose to shoot at either striped or solid balls, regardless of which kind of ball was pocketed.

If the eight-ball goes in the hole off the break, the breaker can opt for a re-rack or place the eight-ball on the spot and continue play. If the cue ball is pocketed off the break, the opponent can opt for a re-rack or take a turn shooting from anywhere in the kitchen.

8 Ball Pool Strategy

During a game of eight-ball, a player will take one side: solids or stripes. The point of the game is to pocket all of ones balls, either stripe or solid, while placing the cue ball where one's opponent will have a difficult time pocketing his or her balls. After a player has pocketed all his balls, then that player ends the game by pocketing the eight-ball. If the eight-ball is pocketed before the rest of the balls are pocketed, the player who pocketed the eight-ball immediately loses.

Winning and Losing at Eight Ball

There are several ways to win, besides the two most common ways. If a player pockets the cue ball while pocketing the eight-ball, that player loses. If a player knocks the cue ball off the table while pocketing the eight-ball, that player loses. If the cue ball is pocketed or knocked off the table at some time before the eight-ball shot, then it is the other player's turn and play continues as before.

If the 8-ball is knocked off the table, the offending player loses.

Other Fouls in 8 Ball Pool

There are other fouls committed in eight-ball which do not end the game. For instance, the cue ball must strike a player's ball first, or else that shot is a foul and the striking player loses his or her turn. If the cue ball is pocketed on any shot, this is a foul.

A player must have one foot on the floor or the shot is a foul. A player must wait until all balls from the previous shot come to a stop before shooting again, or else a foul has been committed.

If the cue ball is struck twice or is pushed instead of hit by the cue, then it is a foul. If the shooter touches the ball with anything but the tip of the cue, or if a player goes out of turn, then a foul has happened. If a shooter knocks any ball off the table or touches any ball besides the cue ball, a foul has occurred.

If, after a shot has occurred, no ball either comes in contact with a cushion or goes into a pocket, a foul has occurred.

Taking Turns

Each player takes turns shooting until a winner is decided. If a player does not pocket a ball on his turn, then it is the other player's turn. So long as a shooter continues to pocket balls of his sort without committing a foul, then that shooter continues his or her turn. This continues until the eight-ball is pocketed, which is why the game is called eight-ball.

8 Ball Tournaments and Variant Rules

Tournaments usually require multiple games to determine a winner. These tend to be the winner of a majority of games in a series of games between two opponents.

Local tournaments might be single elimination. Local bars might have their own "house rules", which can be quite different from one establishment to the next. Since eight-ball is the most widely-played billiards game in the world, it has the most variants rules of any billiards game.

English - Office suppliers

Staple
Staple remover
Binder clips
Paper clips
Clipboard

Domestic Partnerships and Insurance

A domestic partnership is a legally-recognized relationship that offers non-married couples the same or similar benefits as those provided to married couples. Click on the links below for information on domestic partnerships and the benefits they offer, including a look at state and city laws on domestic partnerships. (Note: Domestic partnerships are not recognized in all states.)
Maryland
The cities of Baltimore and Takoma Park and Montgomery County extend benefits to domestic partners.

Insurance Companies that Provide Domestic Partner Benefits in Maryland Ameritas CIGNA Great West Life Kaiser Permanente New York Life and Health

Check other states and cities
State and City Laws: Domestic Partnerships

How to keep footers at the bottom of the page using CSS

#footer
{
width: 100%;
position: fixed;
bottom: 0px;
left: 0px;
}




IE6 doesn't support for fixed positioning. More research need to be done to fix this for lower browser.

Tuesday, August 19, 2008

Classic ASP Substring Fuction

Left(string,length)
Mid(string,length1,length2)
Right(string,length)