2013年6月30日 星期日

html meta (html header html meta setting)

html header meta setting 



Define keywords for search engines:
<meta name="keywords" content="free, example, make money , demo">

Define a description of your web page:
<meta name="description" content="Descript of your web page">



Define the author of a page:
<meta name="author" content="HongKong2000">

Refresh document every 5 seconds:
<meta http-equiv="refresh" content="5">

<meta http-equiv="Refresh" content="2;URL=http://hongkong2000.freehostia.com/">
停留2秒鐘後自動刷新到URL網址。

Charset setting. 
<meta http-equiv="content-Type" content="text/html; charset=gb2312">
ContentType選項: ("text/javascript","text/event-stream"); 
text/event-stream for server sent event (html5)
Charset選項:ISO-8859-1(英文)、BIG5、UTF-8等字符集;
Content-Language的Content還可以是:EN、FR等語言代碼。


<meta http-equiv="expires" content="Sun, 30 Jun 2013 18:00:00 GMT">
使用GMT的时间格式 。一旦網頁過期,必須到服務器上重新傳輸。


<meta http-equiv="Pragma" content="no-cache">
網頁不保存在緩存中,每次訪問都刷新頁面。這樣設定,訪問者將無法離線瀏覽。


<meta http-equiv="Window-target" content="_top">
強制頁面在當前窗口以獨立頁面顯示。這個屬性是用來防止別人在框架裡調用你的頁面。
Content選項:_blank、_top、_self、_parent。
 Metadata is data (information) about data.The <meta> tag provides metadata about the HTML document. Metadata will not be displayed on the page, but will be machine parsable.Meta elements are typically used to specify page description, keywords, author of the document, last modified, and other metadata.The metadata can be used by browsers (how to display content or reload page), search engines (keywords), or other web services.
<meta> tags always goes inside the <head> element.

元數據是關於數據的數據(信息)。<meta>標籤提供有關HTML文檔的元數據。元數據將不會被顯示在頁面上,但將機器的可解析。元元素通常用於指定頁面描述,關鍵字,文件作者,最後一次修改,和其他元數據。可以將元數據所使用的瀏覽器(如何顯示內容或重載頁面),搜索引擎(關鍵字),或其他網絡服務。總是<meta>標籤裡面的<head>元素。


The value of http-equiv varies depending on the way you use it. It may contain any of the following values:

    "Allow"
    "Content-Encoding"
    "Content-Language"
    "Content-Length"
    "Content-Type"
    "Date"
    "Expires"
    "Last-Modified"
    "Location"
    "Refresh"
    "Set-Cookie"
    "WWW-Authenticate"

java return set header when server sent event

response.setstatus(200)
response.setheader("cache-control","no-cache")
response.setheader("content-type","text/event-stream")
response.setheader("connection","keep-alive");


windows disk (disk tunning example, view disk)

windows disk command

cleanmgr
diskmgmt.msc
dfrg.msc
devmemg.msc
chkdisk /f
rd /s /q  %windir%\temp & md %windir%\temp

html input property (input example)

html input property

<input
asix="string"
type=" text  | button | reset | checkbox | submit | file | hidden | image | password | radio"
size= " 50 " <!--it is character -->
maxlength="10"
name="fieldName"
id="fieldName"
onClick= "$(this).select();"
onFocus="SelectAll(this.id);"
onBlur="myFunction()"
style="font-size:13px;margin-left:10px;display:none;float:left;"
title="tooltips"
disabled=disabled
readonly="readonly"
tabindex="-1"
class=disabledInput"
>
<input type="checkbox" id="five"> <label for="five">5</label>

2013年6月29日 星期六

html event catch (web page event list, example)

html is not case sensitive


mouse event

oncontextmenu ie rightClick
onClick = "$(this).select();"
onDblClick
onMouseDown  <body onMouseDown="isKeyPressed(event)">
onMouseMove
onMouseOver
onMouseOut
onMouseUp
ondrop


keyboard event

onKeyDown
onKeyPress = "validateNumeric(event);"
onKeyUp

form event

onBlur
onChange
onFocus
onReselect
onSelect
onSubmit
ondragstart="return false;"

frame / object event

onAbort
onError
onLoad
onResize
onScroll
onUnLoad









json

json example (standard)

{'address':{
  'key':'value',
  'name':'MyName',
  'street':'HongKong',
  'email':['demo@demo.com',
               example@example.com']}
  'trust':'apple'

}

common ascii code (standard)

ascii code (keyvalue key value, keyboard value)


8          backspace
9          tab
17        ctrl
46        delete
35-40   arrow key
48-57   number on
96-105 number on key
65-90   A-Z
97-122 a-z

windows application

  • Write
  • dvdplay
  • mplayer2
  • notepad
  • calc
  • mstsc && run termian server

windows network command (lan command , windows tunning, troubleshooting)

network command


  • control netconnections
  • icwconnl.exe
  • net view
  • tracert REM trace router ,e.g. tracert 8.8.8.8
  • mstsc : terminal server
  • netsh winsock reset
  • nslookup
  • netstat -a : open port
  • netstat -an : list Listening port , active connection , foreign and local
  • netstat -nb : list to background program name
  • netstat -on : list the pid number
  • netstat
  • nbstat -s
  • nbstat -r ## view domain
  • edit \windows\system32\drivers\etc\hosts //for localhost 127.0.0.1 setting //
  • ipconfig
  • tracert 8.8.8.8
  • hostname
  • nbtstat -s //net bios status //
  • route print
  • ping -t 333.444.555.666
  • route -padd 192.168.10.0 mask 255.255.255.0 192.168.65.31
  • route print
  • fport && view open port

windows bat (batch)

Filename.bat

copy %1 i:\mis\it\*.* :: parameter

@ECHO OFF
REM - LABEL INDICATING THE BEGINNING OF THE DOCUMENT.
:BEGIN
CLS
REM - THE BELOW LINE GIVES THE USER 3 CHOICES (DEFINED AFTER /C:)
CHOICE /N /C:123 PICK A NUMBER (1, 2, or 3)%1
REM - THE NEXT THREE LINES ARE DIRECTING USER DEPENDING UPON INPUT
IF ERRORLEVEL ==3 GOTO THREE
IF ERRORLEVEL ==2 GOTO TWO
IF ERRORLEVEL ==1 GOTO ONE
GOTO END
:THREE
ECHO YOU HAVE PRESSED THREE
GOTO END
:TWO
ECHO YOU HAVE PRESSED TWO
GOTO END
:ONE
ECHO YOU HAVE PRESSED ONE
:END

IF exist a.txt echo del a.txt 如果a.txt存在則刪除他
if exist aa.tmp net send user a message

@ echo off
set var1125a=var
set var1125b=40962 :: set variable
@for /f "tokens=1-5 delims=: " %%d in ("%time%") do @set temptmp=%%d
if %temptmp%==8 IF exist temp7.tmp net send %var1125b% %var1125a% transfer 2 if condition
:: call variable by %variable%

Windows Blue Screen

Windows Blue Screen

0 0x0000 作業完成。
1 0x0001 不正確的函數。
2 0x0002 系統找不到指定的檔案。
3 0x0003 系統找不到指定的路徑。
4 0x0004 系統無法開啟檔案。
5 0x0005 拒絕存取。
6 0x0006 無效的代碼。
7 0x0007 儲存體控制區塊已毀。
8 0x0008 儲存體空間不足,無法處理這個指令。
9 0x0009 儲存體控制區塊位址無效。
10 0x000A 環境不正確。
11 0x000B 嘗試載入一個格式錯誤的程-式。
12 0x000C 存取碼錯誤。
13 0x000D 資料錯誤。
14 0x000E 儲存體空間不夠,無法完成這項作業。
15 0x000F 系統找不到指定的磁碟機。
16 0x0010 無法移除目錄。
17 0x0011 系統無法將檔案移到 其他的磁碟機。
18 0x0012 沒有任何檔案。
19 0x0013 儲存媒體為防寫狀態。
20 0x0014 系統找不到指定的裝置。
21 0x0015 裝置尚未就緒。
22 0x0016 裝置無法識別指令。
23 0x0017 資料錯誤 (cyclic redundancy check)
24 0x0018 程-式發出一個長 度錯誤的指令。
25 0x0019 磁碟機在磁碟找不到 持定的磁區或磁軌。
26 0x001A 指定的磁碟或磁片無法存取。
27 0x001B 磁碟機找不到要求的磁區。
28 0x001C 印表機沒有紙。
29 0x001D 系統無法將資料寫入指定的磁碟機。
30 0x001E 系統無法讀取指定的裝置。
31 0x001F 連接到系統的某個裝置沒有作用。
32 0x0020 The process cannot access the file because it is being used by another process.
33 0x0021 檔案的一部份被鎖定, 現-在無法存取。
34 0x0022 磁碟機的磁片不正確。
36 0x0024 開啟的分享檔案數量太多。
38 0x0026 到達檔案結尾。
39 0x0027 磁碟已滿。
50 0x0032 不支援這種網路要求。
51 0x0033 遠端電腦無法使用。
52 0x0034 網路名稱重複。
53 0x0035 網路路徑找不到。
54 0x0036 網路忙碌中。
55 0x0037 The specified network resource or device is no longer available.
56 0x0038 The network BIOS command limit has been reached.
57 0x0039 網路配接卡發生問題。
58 0x003A 指定的伺服器無法執行要求的作業。
59 0x003B 網路發生意外錯誤。
60 0x003C 遠端配接卡不相容。
61 0x003D 印表機佇列已滿。
62 0x003E 伺服器的空間無法儲存等候列印的檔案。
63 0x003F 等候列印的檔案已經刪除。
64 0x0040 指定的網路名稱無法使用。
65 0x0041 拒絕存取網路。
66 0x0042 網路資源類型錯誤。
67 0x0043 網路名稱找不到。
68 0x0044 超過區域電腦網路配接卡的名稱限制。
69 0x0045 超過網路 BIOS 作業階段的限制。
70 0x0046 遠端伺服器已經暫停或者正在起始中。
71 0x0047 由於連線數目已達上限,此時無法再連線到這台遠端電腦。
72 0x0048 指定的印表機或磁碟裝置已經暫停作用。
80 0x0050 檔案已經存在。
82 0x0052 無法建立目錄或檔案。
83 0x0053 INT 24 失敗
84 0x0054 處理這項要求的儲存體無法使用。
85 0x0055 近端裝置名稱已經在使用中。
86 0x0056 指定的網路密碼錯誤。
87 0x0057 參數錯誤。
88 0x0058 網路發生資料寫入錯誤。
89 0x0059 此時系統無法執行其他行程-。
100 0x0064 無法建立其他的系統 semaphore。
101 0x0065 屬於其他行程-專用的 semaphore 。
102 0x0066 semaphore 已經設定,而且無法關閉。
103 0x0067 無法指定 semaphore 。
104 0x0068 在岔斷時間無法要求專用的 semaphore 。
105 0x0069 此 semaphore 先前的擁有權已經結束。
106 0x006A 請將磁片插入 %1。
107 0x006B 因為代用的磁片尚未插入,所以程-式已經停止。
108 0x006C 磁碟正在使用中或被鎖定。
109 0x006D Pipe 已經中止。
110 0x006E 系統無法開啟指定的 裝置或檔案。
111 0x006F 檔名太長。
112 0x0070 磁碟空間不足。
113 0x0071 沒有可用的內部檔案識別字。
114 0x0072 目標內部檔案識別字不正確。
117 0x0075 由應用程-式所執行的 IOCTL 呼叫 不正確。
118 0x0076 寫入驗證參數值不正確。
119 0x0077 系統不支援所要求的指令。
120 0x0078 此項功能僅在 Win32 模式有效。
121 0x0079 semaphore 超過逾時期間。
122 0x007A 傳到系統呼叫的資料區域 太小。
123 0x007B 檔名、目錄名稱或儲存體標籤語法錯誤。
124 0x007C 系統呼叫層次不正確。
125 0x007D 磁碟沒有設定標籤。
126 0x007E 找不到指定的模組。
127 0x007F 找不到指定的程-序。
128 0x0080 沒有子行程-可供等待。
129 0x0081 %1 這個應用程-式無法在 Win32 模式下執行。
130 0x0082 Attempt to use a file handle to an open disk partition for an operation other than raw disk I/O.
131 0x0083 嘗試將檔案指標移至檔案開頭之前。
132 0x0084 無法在指定的裝置或檔案,設定檔案指標。
133 0x0085 JOIN 或 SUBST 指令 無法用於 內含事先結合過的磁碟機。
134 0x0086 嘗試在已經結合的磁碟機,使用 JOIN 或 SUBST 指令。
135 0x0087 嘗試在已經替換的磁碟機,使 用 JOIN 或 SUBST 指令。
136 0x0088 系統嘗試刪除 未連結過的磁碟機的連結關係。
137 0x0089 系統嘗試刪除 未替換過的磁碟機的替換關係。
138 0x008A 系統嘗試將磁碟機結合到已經結合過之磁碟機的目錄。
139 0x008B 系統嘗試將磁碟機替換成已經替換過之磁碟機的目錄。
140 0x008C 系統嘗試將磁碟機替換成已經替換過之磁碟機的目錄。
141 0x008D 系統嘗試將磁碟機 SUBST 成已結合的磁碟機 目錄。
142 0x008E 系統此刻無法執行 JOIN 或 SUBST。
143 0x008F 系統無法將磁碟機結合或替換同一磁碟機下目錄。
144 0x0090 這個目錄不是根目錄的子目錄。
145 0x0091 目錄仍有資料。
146 0x0092 指定的路徑已經被替換過。
147 0x0093 資源不足,無法處理這項 指令。
148 0x0094 指定的路徑這時候無法使用。
149 0x0095 嘗試要結合或替換的磁碟機目錄,是已經替換過的的目標。
150 0x0096 CONFIG.SYS 檔未指定系統追蹤資訊,或是追蹤功能被取消。
151 0x0097 指定的 semaphore事件 DosMuxSemWait 數目不正確。
152 0x0098 DosMuxSemWait 沒有執行;設定太多的 semaphore。
153 0x0099 DosMuxSemWait 清單不正確。
154 0x009A 您所輸入的儲存媒體標 元長度限制。
155 0x009B 無法建立其他的執行緒。
156 0x009C 接收行程-拒絕接受信號。
157 0x009D 區段已經被捨棄,無法被鎖定。
158 0x009E 區段已經解除鎖定。
159 0x009F 執行緒識別碼的位址不正確。
160 0x00A0 傳到 DosExecPgm 的引數字串不正確。
161 0x00A1 指定的路徑不正確。
162 0x00A2 信號等候處理。
164 0x00A4 系統無法建立執行緒。
167 0x00A7 無法鎖定檔案的部份範圍。
170 0x00AA 所要求的資源正在使用中。
173 0x00AD 取消範圍的鎖定要求不明顯。
174 0x00AE 檔案系統不支援自動變更鎖定類型。
180 0x00B4 系統發現-不正確的區段號碼。
182 0x00B6 作業系統無法執行。
183 0x00B7 檔案已存在,無法建立同一檔案。
186 0x00BA 傳送的旗號錯誤。
187 0x00BB 指定的系統旗?鉹ㄗ魽C
188 0x00BC 作業系統無法執行。
189 0x00BD 作業系統無法執行。
190 0x00BE 作業系統無法執行。
191 0x00BF 無法在 Win32 模式下執行。
192 0x00C0 作業系統無法執行。
193 0x00C1 %1 不是正確的 Win32 應用程-式。
194 0x00C2 作業系統無法執行。
195 0x00C3 作業系統無法執行。
196 0x00C4 作業系統無法執行 這個應用程-式。
197 0x00C5 作業系統目前無法執行 這個應用程-式。
198 0x00C6 作業系統無法執行。
199 0x00C7 作業系統無法執行 這個應用程-式。
200 0x00C8 程-式碼的區段不可以大於或等於 64KB。
201 0x00C9 作業系統無法執行。
202 0x00CA 作業系統無法執行。
203 0x00CB 系統找不到輸入的環境選項。
205 0x00CD 在指令子目錄下,沒有任何行程-有信號副處理程-式。
206 0x00CE 檔案名稱或副檔名太長。
207 0x00CF ring 2 堆疊使用中。
208 0x00D0 輸入的通用檔名字元 * 或 ? 不正確, 或指定太多的通用檔名字元。
209 0x00D1 所傳送的信號不正確。
210 0x00D2 無法設定信號處理程-式。
212 0x00D4 區段被鎖定,而且無法重新配置。
214 0x00D6 附加到此程-式或動態連結模組的動態連結模組太多。
215 0x00D7 Can't nest calls to LoadModule.
230 0x00E6 The pipe state is invalid.
231 0x00E7 所有的 pipe instances 都在忙碌中。
232 0x00E8 The pipe is being closed.
233 0x00E9 No process is on the other end of the pipe.
234 0x00EA 有更多可用的資料。
240 0x00F0 作業階段被取消。
254 0x00FE 指定的延伸屬性名稱無效。
255 0x00FF 延伸的屬性不一致。
259 0x0103 沒有可用的資料。
266 0x010A 無法使用 Copy API。
267 0x010B 目錄名稱錯誤。
275 0x0113 延伸屬性不適用於緩衝區。
276 0x0114 在外掛的檔案系統上的延伸屬性檔案已經毀損。
277 0x0115 延伸屬性表格檔滿。
278 0x0116 指定的延伸屬性代碼無效。
282 0x011A 外掛的這個檔案系統不支援延伸屬性。
288 0x0120 意圖釋放不屬於叫用者的 mutex。
298 0x012A semaphore 傳送次數過多。
299 0x012B 只完成 Read/WriteProcessMemory 的部份要求。
317 0x013D 系統找不到位於訊息檔 %2 中編號為 0x%1 的訊息。
487 0x01E7 嘗試存取無效的位址。
534 0x0216 運算結果超過 32 位元。
535 0x0217 通道的另一端有一個行程-在接送資料。
536 0x0218 等候行程-來開啟通道的另一端。
994 0x03E2 存取延伸的屬性被拒。
995 0x03E3 由於執行緒結束或應用程-式要求,而異常終止 I/O 作業。
996 0x03E4 重疊的 I/O 事件不是設定成通知狀態。
997 0x03E5 正在處理重疊的 I/O 作業。
998 0x03E6 對記憶體位置的無效存取。
999 0x03E7 執行 inpage 作業發生錯誤。
1001 0x03E9 遞迴太深,堆疊滿溢。
1002 0x03EA 視窗無法用來傳送訊息。
1003 0x03EB 無法完成這項功能。
1004 0x03EC 旗號無效。
1005 0x03ED 儲存媒體未含任何可辨識的檔案系統。 請確定以載入所需的系統驅動程-式,而且該儲存媒體並未毀損。
1006 0x03EE 儲存該檔案的外部媒體發出警告, 表示該已開啟檔案已經無效。
1007 0x03EF 所要求的作業無法在全螢幕模式下執行。
1008 0x03F0 An attempt was made to reference a token that does not exist.
1009 0x03F1 組態系統登錄資料庫毀損。
1010 0x03F2 組態系統登錄機碼無效。
1011 0x03F3 無法開啟組態系統登錄機碼。
1012 0x03F4 無法讀取組態系統登錄機碼。
1013 0x03F5 無法寫入組態系統登錄機碼。
1014 0x03F6 系統登錄資料庫中的一個檔案必須使用記錄或其他備份還原。 已經還原成功。
1015 0x03F7 系統登錄毀損。其中某個檔案毀損、或者該檔案的 系統映對記憶體內容毀損、會是檔案無法復原。
1016 0x03F8 系統登錄起始的 I/O 作業發生無法復原的錯誤。 系統登錄無法讀入、寫出或更新,其中的一個檔案 內含系統登錄在記憶體中的內容。
1017 0x03F9 系統嘗試將檔案載入系統登錄或將檔案還原到系統登錄中, 但是,指定檔案的格式不是系統登錄檔的格式。
1018 0x03FA 嘗試在標示為刪除的系統登錄機碼,執行不合法的操作。
1019 0x03FB 系統無法配置系統登錄記錄所需的空間。
1020 0x03FC 無法在已經有子機碼或數值的系統登錄機碼建立符號連結。
1021 0x03FD 無法在臨-時機碼下建立永久的子機碼。
1022 0x03FE 變更要求的通知完成,但資訊 並未透過呼叫者的緩衝區傳回。呼叫者現-在需要自行列舉檔案,找出變更的地方。
1051 0x041B 停止控制已經傳送給其他服務 所依峙的一個服務。
1052 0x041C 要求的控制對此服務無效
1053 0x041D The service did not respond to the start or control request in a timely fashion. 1054 0x041E 無法建立服務的執行緒。
1055 0x041F 服務資料庫被鎖定。
1056 0x0420 這種服務已經在執行。
1057 0x0421 帳戶名稱錯誤或者不存在。
1058 0x0422 指定的服務暫停作用,無法啟動。
1059 0x0423 指定循環服務從屬關係。
1060 0x0424 指定的服務不是安裝進來的服務。
1061 0x0425 該服務項目此時無法接收控制訊息。
1062 0x0426 服務尚未啟動。
1063 0x0427 無法連線到服務控制程-式。
1064 0x0428 處理控制要求時,發生意外狀況。
1065 0x0429 指定的資料庫不存在。
1066 0x042A 服務傳回專屬於服務的錯誤碼。
1067 0x042B The process terminated unexpectedly.
1068 0x042C 從屬服務或群組無法啟動。
1069 0x042D 因為登入失敗,所以沒有啟動服務。
1070 0x042E 在啟動之後,服務在啟動狀態時當機。
1071 0x042F 指定服務資料庫鎖定無效。
1072 0x0430 指定的服務已經標示為刪除。
1073 0x0431 指定的服務已經存在。
1074 0x0432 系統目前正以上一次執行成功的組態執行。
1075 0x0433 從屬服務不存在,或已經標示為刪除。
1076 0x0434 目前的啟動已經接受上一次執行成功的 控制設定。
1077 0x0435 上一次啟動之後,就沒有再啟動服務。
1078 0x0436 指定的名稱已經用於服務名稱或服務顯示 名稱。
1100 0x044C 已經到了磁帶的最後。
1101 0x044D 到了檔案標示。
1102 0x044E 遇到磁帶的開頭或分割區。
1103 0x044F 到了檔案組的結尾。
1104 0x0450 磁帶沒有任何資料。
1105 0x0451 磁帶無法製作分割區。
1106 0x0452 存取多重容體的新磁帶時,發現-目前 區塊大小錯誤。
1107 0x0453 載入磁帶時,找不到磁帶分割區資訊。
1108 0x0454 無法鎖住儲存媒體退帶功能。
1109 0x0455 無法解除載入儲存媒體。
1110 0x0456 磁碟機中的儲存媒體已經變更。
1111 0x0457 已經重設 I/O 匯流排。
1112 0x0458 磁碟機沒有任何儲存媒體。
1113 0x0459 目標 multi-byte code page,沒有對應 Unicode 字元。
1114 0x045A 動態連結程-式庫 (DLL) 起始常式失敗。
1115 0x045B 系統正在關機。
1116 0x045C 無法中止系統關機,因為沒有關機的動作在進行中。
1117 0x045D 因為 I/O 裝置發生錯誤,所以無法執行要求。
1118 0x045E 序列裝置起始失敗,會取消載入序列驅動程-式。
1119 0x045F 無法開啟裝置。這個裝置與其他裝置共用岔斷要求 (IRQ)。 至少已經有一個使用同一IRQ 的其他裝置已經開啟。
1120 0x0460 A serial I/O operation was completed by another write to the serial port. (The IOCTL_SERIAL_XOFF_COUNTER reached zero.)
1121 0x0461 因為已經過了逾時時間,所以序列 I/O 作業完成。(IOCTL_SERIAL_XOFF_COUNTER 不是零。)
1122 0x0462 在磁片找不到任何的 ID 位址標示。
1123 0x0463 磁片磁區 ID 欄位與磁片控制卡追蹤位址 不符。
1124 0x0464 軟式磁碟機控制卡回報了一個軟式磁碟機驅動程-式無法識別 的錯誤。
1125 0x0465 軟式磁碟機控制卡傳回與暫存器中不一致的結果。
1126 0x0466 存取硬碟失敗,重試後也無法作業。
1127 0x0467 存取硬碟失敗,重試後也無法作業。
1128 0x0468 存取硬碟時,必須重設磁碟控制卡,但是 連重設的動作也失敗。
1129 0x0469 到了磁帶的最後。
1130 0x046A 可用伺服器儲存空間不足,無法處理這項指令。
1131 0x046B 發現-潛在的鎖死條件。
1132 0x046C 指定的基本位址或檔案位移沒有適當 對齊。
1140 0x0474 嘗試變更系統電源狀態,但其他的應用程-式或驅動程-式拒絕。
1141 0x0475 系統 BIOS 無法變更系統電源狀態。
1150 0x047E 指定的程-式需要新的 Windows 版本。
1151 0x047F 指定的程-式不是 Windows 或 MS-DOS 程-式。
1152 0x0480 指定的程-式已經啟動,無法再啟動一次。
1153 0x0481 指定的程-式是為舊版的 Windows 所寫的。
1154 0x0482 執行此應用程-式所需的程-式庫檔案之一毀損。
1155 0x0483 沒有應用程-式與此項作業的指定檔案建立關聯。
1156 0x0484 傳送指令到應用程-式發生錯誤。
1157 0x0485 找不到執行此應用程-式所需的程-式庫檔案。
1200 0x04B0 指定的裝置名稱無效。
1201 0x04B1 裝置現-在雖然未連線,但是它是一個記憶連線。
1202 0x04B2 嘗試記憶已經記住的裝置。
1203 0x04B3 提供的網路路徑找不到任何網路提供程-式。
1204 0x04B4 指定的網路提供程-式名稱錯誤。
1205 0x04B5 無法開啟網路連線設定檔。
1206 0x04B6 網路連線設定檔壞掉。
1207 0x04B7 無法列舉非容器。
1208 0x04B8 發生延伸的錯誤。
1209 0x04B9 指定的群組名稱錯誤。
1210 0x04BA 指定的電腦名稱錯誤。
1211 0x04BB 指定的事件名稱錯誤。
1212 0x04BC 指定的網路名稱錯誤。
1213 0x04BD 指定的服務名稱錯誤。
1214 0x04BE 指定的網路名稱錯誤。
1215 0x04BF 指定的資源分享名稱錯誤。
1216 0x04C0 指定的密碼錯誤。
1217 0x04C1 指定的訊息名稱錯誤。
1218 0x04C2 指定的訊息目的地錯誤。
1219 0x04C3 所提供的條件與現-有的條件組發生衝突。
1220 0x04C4 嘗試與網路伺服器連線,但是 與該伺服器的連線已經太多。
1221 0x04C5 其他網路電腦已經在使用這個工作群組或網域名稱。
1222 0x04C6 網路沒有顯示出來或者沒有啟動。
1223 0x04C7 使用者已經取消作業。
1224 0x04C8 要求的作業無法在已經開啟使用者對應區段的檔案執行。
1225 0x04C9 遠端系統拒絕網路連線。
1226 0x04CA 關閉網路連線。
1227 0x04CB 網路傳輸端點已經有相關連的位址。
1228 0x04CC 位址尚未有相關的網路端點。
1229 0x04CD 嘗試在不存在的網路連線作業。
1230 0x04CE 在作用中的網路連線上執行無效的作業。
1231 0x04CF 無法傳輸到遠端網路。
1232 0x04D0 無法連線到遠端系統。
1233 0x04D1 遠端系統不支援傳輸通訊協定。
1234 0x04D2 遠端系統的目的地網路端點沒有作何執行中的服務。
1235 0x04D3 要求已經中止。
1236 0x04D4 進端系統已經中斷網路連線。
1237 0x04D5 無法完成作業,請重試。
1238 0x04D6 無法與伺服器連線,原因是這個帳戶已經到達同時連線數目 的上限。
1239 0x04D7 嘗試在這個帳戶未授權的時間登入網路。
1240 0x04D8 這個帳戶無法從這個地方登入網路。
1241 0x04D9 網路位址無法用於這個要求的作業。
1242 0x04DA 服務已經登記。
1243 0x04DB 指定的服務不存在。
1244 0x04DC 作業無法執行,原因是使用者尚未授權使用。

windows Application (run applction in windows command line)

  • powerpnt / powpint  REM powerpoint
  • calc.exe 
  • winword.exe 
  • excel.exe 
  • msimn.exe  // outlook express. e.g msimn.exe \mailonly | outnews | newsonly
  • start iexplore www.google.com 
  • inetcpl.cpl // control cookie. i.e. inetcpl.cpl -> General -> Cookie 
  • Write
  • dvdplay
  • mplayer2
  • notepad
  • calc
  • mstsc && run termian server

windows command

windows command 


CALC-----------啟動Windows計算器
CERTMGR.MSC----證書管理實用程序
CHARMAP--------啟動字元對應表
CHKDSK.EXE-----CHKDSK磁牒檢查
CIADV.MSC------索引服務程序
CLEANMGR-------磁碟垃圾整理
CLICONFG-------SQL SERVER 客戶端網路實用程序
CLIPBRD--------剪貼板檢視器
CMD.EXE--------CMD命令提示字元 COMPMGMT.MSC---電腦管理
CONF-----------啟動 net meeting
DCOMCNFG-------開啟系統元件服務
DDESHARE-------開啟DDE共享設定
DEVMGMT.MSC--- 裝置管理員 DFRG.MSC------- 磁碟重組工具程式
DISKMGMT.MSC---磁牒管理實用程序
DRWTSN32------ 系統醫生
DVDPLAY--------DVD播放器
DXDIAG---------檢查DIRECTX資訊
EUDCEDIT-------造字程序
EVENTVWR.MSC------------事件檢視器
EXPLORER-------開啟檔案總管
FSMGMT.MSC-----共用資料夾管理器
GPEDIT.MSC-----群組原則
IEXPRESS-------木馬元件服務工具,系統原有的
LOGOFF---------登出指令
LUSRMGR.MSC----本地機用戶和組
MAGNIFY--------放大鏡實用程序
MEM.EXE--------顯示記憶體使用情況
MMC------------開啟控制台
MOBSYNC--------同步指令
MPLAYER2-------簡易媒體播放機
MSCONFIG.EXE---系統配置實用程序
MSTSC----------遠端桌面連接
NARRATOR-------螢幕「講述人」
NET START MESSENGER----開始信使服務
NET STOP MESSENGER-----停止信使服務
NETMEETING COMPMGMT.MSC---電腦管理
NETMEETING DVDPLAY--------DVD播放器 NETSTAT -AN----(TC)指令檢查連接
NOTEPAD--------開啟記事本
NSLOOKUP------- IP位址偵測器 網路管理的工具嚮導
NTBACKUP----------------
系統制作備份和還原 啟動制作備份還原嚮導
NTMSMGR.MSC----移動存儲管理器
NTMSOPRQ.MSC---移動存儲管理員操作請求
ODBCAD32-------ODBC資料來源管理器
OOBE/MSOOBE /A----檢查XP是否啟動
OSK------------開啟螢幕小鍵盤
PACKAGER-------對像包裝程序
PERFMON.MSC----電腦效能監測程序
PROGMAN--------程序管理器
REGEDIT.EXE----註冊表
REGEDT32-------註冊表編輯器 REGSVR32 /U *.DLL----停止DLL文件執行
REGSVR32 /U ZIPFLDR.DLL------取消ZIP支持
RONONCE -P ----15秒關機 RSOP.MSC-------群組原則結果集 原則的結果集
SECPOL.MSC-----本機安全原則 本機安全性設定
SERVICES.MSC---本機服務設定
SFC /SCANNOW---WINDOWS文件O護 掃瞄錯誤並復原
SFC.EXE--------系統檔案檢查器
SHRPUBW--------新增共用資料夾
SIGVERIF-------文件簽名驗證程序
SNDREC32-------錄音機
SNDVOL32-------音量控制程序
SYNCAPP--------新增一個公文包
SYSEDIT--------系統配置編輯器
SYSKEY---------系統加密,一旦加密就不能解開,保護WINDOWS XP系統的雙重密碼
TASKMGR-----工作管理器(2000/XP/-2003)
TOURSTART------XP簡介(安裝完成後出現的漫遊XP程序)
TSSHUTDN-------60秒倒計時關機指令
UTILMAN--------協助工具管理器 WIAACMGR-------掃瞄儀和照相機嚮導
WIDNOWS MEDIA PLAYER 
MSPAINT--------畫圖板
WINCHAT--------XP原有的區域網路聊天
WINMSD---------系統資訊
WINVER---------檢查WINDOWS版本
WMIMGMT.MSC---- 開啟WINDOWS管理體系結構WMI)
WRITE----------寫字板
WSCRIPT--------WINDOWS指令碼宿主設定
WUPDMGR--------WINDOWS更新程序

windows ftp script

windows ftp script 


script.txt
  • open ftp.domain.com
  • username
  • password 
  • cd public_html
  • dir
  • get file.txt
  • bye
or
  • open ftp.domain.com
  • username
  • password
  • cd public_html
  • dir
  • prompt off
  • mget *.*
  • bye

install windows (install pc)


Install Windows


  • bios : boot dvd first and  begin install , 
  • partion c for system, d for data and backup driver, or e for data backup.
  • prepare the driver 
  • plug off the lan cable
  • copy all driver , and installer to d: (for easy reinstall)
  • when install the computer the name should : installer_ComputerName don't match domain controller administrator name and another station administrator name.
  • after install xp plug back the lan cable update the latest windows service pack
  • delete icon : %AllUsersProfile%Desktop , %AllusersProfile%Start Menu. Notes : Administrator use command to control the PC.
  • install the anti virus, and set the scan schedule rename cmd.exe , command.exe compmgmt.msc : set current user should not have admin right make a directory name autorun.inf in the root directory, and make it readonly and hidden, by right click, property.
  • mark down it's lan card number (mac), and install it's on the router statis for control purpose.
  • make a new record card, just as 醫生咭 for this computer. to record this log. location, hardware software.
  • disable the usb HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor.start=4  && 4 for stop , 3 for start
  • disable run usb software begin > run >secpol > software control policy  step 
    1.  強制 .內容 (Set all user exclude administrator) , all software exclude dll
    2  other policy : add c:\>
    3 safe level > not allow > default (click it)
  • write down the MAC for Setting in DHCP.
  • install email account install open office
  • install odbc install application (company system) 
  • install application (company system)
  • make a xxx.bat and put it in the start folder. the following is the xxx.bat content :
    @echo off 
    net share c$ /d
    net share winnt$ /d
    net share admin$ /d 
  • stop service
    blue tooth,
    windows fax
    remote registry
    bitlocker drive encryption service
    Family safety (Parental controls)
  • install the avg, and set the scan schedule
  • map the driver




Linux network (linux lan, linux net)

NetWork COMMAND (linux-network linux-lan linux-net)

lspci -v ## view network card
cat /proc/interrupts  ## IRQ list
hostname ## return this computer name
ifdown eth0
ifup eth0
ifconfig eth0
ping -c4 192.168.65.254

rm /etc/udev/rules.d/70-
persistent-net.rules   ## remember hardware and assign device name to it consistently when first run. it can delete

cat /etc/sysconfig/network
NETWORKING=yes    ## setl linux start networking on boot
HOSTNAME=localhost.localdomain  ## set this computer name

ps -ef | grep ssh
nmap -sS 123.456.789.000
tcpdump port ldap ## view the port
tcpdump -i lo -A -s 200
netstat -anp | grep slapd && view what port is using
ifdown eth0; ifup eth0, inconfig eth0
iptables -nL
tethereal && real the online connection
netstat && print the network connections
netstat -a | grep ftp
ping
route
traceroute && network has failed
dig
lsof && find process has the port open
sar
netstat
iftop
bwm-ng
iptraf ##onlineview
tcpdump, 

windows usb (lock usb, no usb)

Lock the usb
step 1 : create a anyfilename.reg
step 2 : click on this file.
the file content as follow :

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
"Type"=dword:00000001
"Start"=dword:00000004
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\
52,00,49,00,56,00,45,00,52,00,53,00,5c,00,55,00,53,00,42,00,53,00,54,00,4f,\
00,52,00,2e,00,53,00,59,00,53,00,00,00
"DisplayName"="USB 大型存放驅動程式"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR\Security]
"Security"=hex:01,00,14,80,a0,00,00,00,ac,00,00,00,14,00,00,00,30,00,00,00,02,\
00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
00,00,02,00,70,00,04,00,00,00,00,00,18,00,fd,01,02,00,01,01,00,00,00,00,00,\
05,12,00,00,00,74,00,6c,00,00,00,1c,00,ff,01,0f,00,01,02,00,00,00,00,00,05,\
20,00,00,00,20,02,00,00,00,00,00,00,00,00,18,00,8d,01,02,00,01,01,00,00,00,\
00,00,05,0b,00,00,00,20,02,00,00,00,00,1c,00,fd,01,02,00,01,02,00,00,00,00,\
00,05,20,00,00,00,23,02,00,00,00,00,00,00,01,01,00,00,00,00,00,05,12,00,00,\
00,01,01,00,00,00,00,00,05,12,00,00,00

unlock the usb
step 1 : create a anyfilename.reg
step 2 : click on this file.
the file content as follow :
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
"Type"=dword:00000001
"Start"=dword:00000003
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\
52,00,49,00,56,00,45,00,52,00,53,00,5c,00,55,00,53,00,42,00,53,00,54,00,4f,\
00,52,00,2e,00,53,00,59,00,53,00,00,00
"DisplayName"="USB 大型存放驅動程式"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR\Security]
"Security"=hex:01,00,14,80,a0,00,00,00,ac,00,00,00,14,00,00,00,30,00,00,00,02,\
00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
00,00,02,00,70,00,04,00,00,00,00,00,18,00,fd,01,02,00,01,01,00,00,00,00,00,\
05,12,00,00,00,74,00,6c,00,00,00,1c,00,ff,01,0f,00,01,02,00,00,00,00,00,05,\
20,00,00,00,20,02,00,00,00,00,00,00,00,00,18,00,8d,01,02,00,01,01,00,00,00,\
00,00,05,0b,00,00,00,20,02,00,00,00,00,1c,00,fd,01,02,00,01,02,00,00,00,00,\
00,05,20,00,00,00,23,02,00,00,00,00,00,00,01,01,00,00,00,00,00,05,12,00,00,\
00,01,01,00,00,00,00,00,05,12,00,00,00

windows shortcut windows-shortcut

WINDOWS實用快速鍵

    【Ctrl】【A】 全選(檔案/文字) 
  【Ctrl】【N】 開新檔案/開新視窗 
  【Ctrl】【O】 開啟檔案 
  【Ctrl】【S】 save new file name  儲存檔案 
  【Ctrl】【W】save and close  關閉檔案  
  【Alt】 【F4】 close 關閉程式 
  【Ctrl】【X】 cut 剪下(到剪貼簿) 
  【Ctrl】【C】 copy 複製(到剪貼簿) 
  【Ctrl】【V】 paste (從剪貼簿)貼上 
  【Ctrl】【Z】 undo 復原 
  【Ctrl】【Y】 取消復原/重做 
  【Alt】【<-】 上一頁 
  【Alt】【->】 下一頁 
  【Ctrl】【Esc】 開啟 Start Menu 
  【Ctrl】【 F】 尋找 
  【Alt】【 Tab】 在視窗與視窗間切換 
  【Ctrl】【 P】 列印 
  【Print Screen】 捕捉畫面(到剪貼簿) 
  【視窗】 開啟 Start Menu 
  【視窗】【E】 啟動「Windows檔案總管」 
  【視窗】【D】 還原縮小視窗 
  【視窗】【F】 跳到「找尋」 
  【視窗】【M】 將所有程式「縮到最小」/顯示桌面 
  【視窗】【Shift】【M】 取消「縮到最小」功能 
  【視窗】【R】 直接進入「開始」功能表內的「執行」 
  【視窗】【Tab】 切換視窗或軟件 
  【視窗】【Break】 進入Windows「系統內容


inf : http://support.microsoft.com/kb/126449

Windows system key combinations

  • F1: Help
  • CTRL+ESC: Open Start menu
  • ALT+TAB: Switch between open programs
  • ALT+F4: Quit program
  • SHIFT+DELETE: Delete item permanently
  • Windows Logo+L: Lock the computer (without using CTRL+ALT+DELETE)

Windows program key combinations

  • CTRL+C: Copy
  • CTRL+X: Cut
  • CTRL+V: Paste
  • CTRL+Z: Undo
  • CTRL+B: Bold
  • CTRL+U: Underline
  • CTRL+I: Italic

Mouse click/keyboard modifier combinations for shell objects

  • SHIFT+right click: Displays a shortcut menu containing alternative commands
  • SHIFT+double click: Runs the alternate default command (the second item on the menu)
  • ALT+double click: Displays properties
  • SHIFT+DELETE: Deletes an item immediately without placing it in the Recycle Bin

General keyboard-only commands

  • F1: Starts Windows Help
  • F10: Activates menu bar options
  • SHIFT+F10 Opens a shortcut menu for the selected item (this is the same as right-clicking an object
  • CTRL+ESC: Opens the Start menu (use the ARROW keys to select an item)
  • CTRL+ESC or ESC: Selects the Start button (press TAB to select the taskbar, or press SHIFT+F10 for a context menu)
  • CTRL+SHIFT+ESC: Opens Windows Task Manager
  • ALT+DOWN ARROW: Opens a drop-down list box
  • ALT+TAB: Switch to another running program (hold down the ALT key and then press the TAB key to view the task-switching window)
  • SHIFT: Press and hold down the SHIFT key while you insert a CD-ROM to bypass the automatic-run feature
  • ALT+SPACE: Displays the main window's System menu (from the System menu, you can restore, move, resize, minimize, maximize, or close the window)
  • ALT+- (ALT+hyphen): Displays the Multiple Document Interface (MDI) child window's System menu (from the MDI child window's System menu, you can restore, move, resize, minimize, maximize, or close the child window)
  • CTRL+TAB: Switch to the next child window of a Multiple Document Interface (MDI) program
  • ALT+underlined letter in menu: Opens the menu
  • ALT+F4: Closes the current window
  • CTRL+F4: Closes the current Multiple Document Interface (MDI) window
  • ALT+F6: Switch between multiple windows in the same program (for example, when the Notepad Find dialog box is displayed, ALT+F6 switches between the Find dialog box and the main Notepad window)

Shell objects and general folder/Windows Explorer shortcuts

For a selected object:
  • F2: Rename object
  • F3: Find all files
  • CTRL+X: Cut
  • CTRL+C: Copy
  • CTRL+V: Paste
  • SHIFT+DELETE: Delete selection immediately, without moving the item to the Recycle Bin
  • ALT+ENTER: Open the properties for the selected object

To copy a file

Press and hold down the CTRL key while you drag the file to another folder.

To create a shortcut

Press and hold down CTRL+SHIFT while you drag a file to the desktop or a folder.

General folder/shortcut control

  • F4: Selects the Go To A Different Folder box and moves down the entries in the box (if the toolbar is active in Windows Explorer)
  • F5: Refreshes the current window.
  • F6: Moves among panes in Windows Explorer
  • CTRL+G: Opens the Go To Folder tool (in Windows 95 Windows Explorer only)
  • CTRL+Z: Undo the last command
  • CTRL+A: Select all the items in the current window
  • BACKSPACE: Switch to the parent folder
  • SHIFT+click+Close button: For folders, close the current folder plus all parent folders

Windows Explorer tree control

  • Numeric Keypad *: Expands everything under the current selection
  • Numeric Keypad +: Expands the current selection
  • Numeric Keypad -: Collapses the current selection.
  • RIGHT ARROW: Expands the current selection if it is not expanded, otherwise goes to the first child
  • LEFT ARROW: Collapses the current selection if it is expanded, otherwise goes to the parent

Properties control

  • CTRL+TAB/CTRL+SHIFT+TAB: Move through the property tabs

Accessibility shortcuts

  • Press SHIFT five times: Toggles StickyKeys on and off
  • Press down and hold the right SHIFT key for eight seconds: Toggles FilterKeys on and off
  • Press down and hold the NUM LOCK key for five seconds: Toggles ToggleKeys on and off
  • Left ALT+left SHIFT+NUM LOCK: Toggles MouseKeys on and off
  • Left ALT+left SHIFT+PRINT SCREEN: Toggles high contrast on and off

Microsoft Natural Keyboard keys

  • Windows Logo: Start menu
  • Windows Logo+R: Run dialog box
  • Windows Logo+M: Minimize all
  • SHIFT+Windows Logo+M: Undo minimize all
  • Windows Logo+F1: Help
  • Windows Logo+E: Windows Explorer
  • Windows Logo+F: Find files or folders
  • Windows Logo+D: Minimizes all open windows and displays the desktop
  • CTRL+Windows Logo+F: Find computer
  • CTRL+Windows Logo+TAB: Moves focus from Start, to the Quick Launch toolbar, to the system tray (use RIGHT ARROW or LEFT ARROW to move focus to items on the Quick Launch toolbar and the system tray)
  • Windows Logo+TAB: Cycle through taskbar buttons
  • Windows Logo+Break: System Properties dialog box
  • Application key: Displays a shortcut menu for the selected item

Microsoft Natural Keyboard with IntelliType software installed

  • Windows Logo+L: Log off Windows
  • Windows Logo+P: Starts Print Manager
  • Windows Logo+C: Opens Control Panel
  • Windows Logo+V: Starts Clipboard
  • Windows Logo+K: Opens Keyboard Properties dialog box
  • Windows Logo+I: Opens Mouse Properties dialog box
  • Windows Logo+A: Starts Accessibility Options (if installed)
  • Windows Logo+SPACEBAR: Displays the list of Microsoft IntelliType shortcut keys
  • Windows Logo+S: Toggles CAPS LOCK on and off

Dialog box keyboard commands

  • TAB: Move to the next control in the dialog box
  • SHIFT+TAB: Move to the previous control in the dialog box
  • SPACEBAR: If the current control is a button, this clicks the button. If the current control is a check box, this toggles the check box. If the current control is an option, this selects the option.
  • ENTER: Equivalent to clicking the selected button (the button with the outline)
  • ESC: Equivalent to clicking the Cancel button
  • ALT+underlined letter in dialog box item: Move to the corresponding item

2013年6月28日 星期五

JavaScript ajax (javascript ajax, html ajax)

function FunctioNNamE(thisvalue,returnobject)
{ $.ajax
({
data: { callfunction: "CallFunctioNNamE" ,KeY:thisvalue },   
type: "GET",  
url: "UrLNamE",
dataType: "xml",
success: function(data)
{if (data.getElementsByTagName("seek")[0])
{
var _seek = data.getElementsByTagName("seek")[0].childNodes[0].nodeValue ;
if (_seek=='TRUE')
{var _reccount = data.getElementsByTagName("reccount")[0].childNodes[0].nodeValue ;
for (iix=0; iix<_reccount; iix++) 
{return_data=data.getElementsByTagName('UpdatEFielD')[iix].childNodes[0].nodeValue ;
returnobject.value = return_data ;}}
  else 
{_refresh('CallinGFielD','');document.getElementById('CallinGFielD').focus();returnobject.value=""; }
} /*if ...seek */
} /*success:function*/    
})
}

2013年6月26日 星期三

Java String (java string)

String to bytes
String tmp="abcdefg";
byte b[] = tmp.getBytes();
strValue=new String(b,"utf-16LE");

tomcat install (linux install tomcat)

  1. install Java 
  2. downLoad TomCat 
  3. wget http://apache.tradebit.com/pub/tomcat/tomcat-6/v6.0.30/bin/apache-tomcat-6.0.30-deployer.tar.gz
  4. tar xzf apache-tomcat-6.0.30.tar.gz
  5. service tomcat restart 
  6. edit /usr/local/apache-tomcat-7.0.37/conf/server.xml
    {tomcat_install}\conv\server.xml
    <HOST>
    <CONTEXT PATH="/DesignFolder"
    docBase="DesignFolderorVirtualName" <!--or  "Physical Folder" -->
    debug="0" <!-- 0 to 9 for debug -->
    crosscontest="true"
    reloadable="true">
    </CONTEXT>
  7. create Folder. the folder per docBase
    /usr/local/apache-tomcat-7.0.37/webapps/DesignFolder
    /usr/local/apache-tomcat-7.0.37/webapps/DesignFolder/WEB-INF/classes
    /usr/local/apache-tomcat-7.0.37/webapps/DesignFolder/WEB-INF
    /usr/local/apache-tomcat-7.0.37/webapps/DesignFolder/WEB-INF\lib
  8. make a file
    /usr/local/apache-tomcat-7.0.37/webapps/DesignFolder/WEB-INF/web.xml
    <welcome-title_list>
    <welcome-file>index.jsp</welcome-file>
  9. edit /usr/local/apache-tomcat-7.0.37/webapps/DesignFolder/WEB-INF/web.xml
    edit web.xml for servlet.  (servlet is a java file which run in tomcat)
    <web-app>
    <servlet>
    <servlet-name>helloWorld</servlet-name>
    <servlet-class>helloWorld</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet--name>helloWorld</servlet-name>
    <url-pattern>/HelloWorld</url-pattern> <!-- class file is under /DesignFolder/WEB-INF/classes -->
    </servlet-mapping>
    </web-app>

Java Tunning (java tunning, java tune)

nice --adjustment=5 java javaProgramName ## when run in linux

oracle config (init.ora)

init.ora

share_pool_size

css (casading style sheet) listing example eg sample e.g.

css-list

http://hongkong2000.freehostia.com/html/css0.html


input[type="text"][disabled] {color:black;}



div

div.test
{
white-space:nowrap;
width:12em;
overflow:hidden; //*visible || hidden || scroll || auto */
border:1px solid #000000;
}

input line
.LineInputText {
height: 20px;
border:thin solid #777;
padding: 2px 2px 2px;
line-height: 1;
outline: none;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}




#nav {list-style:none; }
#nav ul {list-style:none; margin:0; padding:0; width:auto; display:none; }
#nav li {font-size:24px; floag:left; position:relative; width:80px; height 50px; }
#nav li ul li {background-image:url (../images/bar_background.png);background-repeat:no-repeat; background-size:cover; border:3px solid #e3e3e3;padding-left:10px; }
#nav a:link, # nav a;active, # nav a visited {display:block; color:#fff; text-decoration:none;}
#nav a:hover{color:lightblue;}

jquery
function mainmenu()
{$("nav ul").css({display:"none"})
$("nav li").hover(function() {
$(this).find('ul:first').css('visiblility:"visible", dislplay:"none"}).show(400);},
FUNCTION(){$(this).find('ul.first').css({visiblity:"hidden"})}
});
}
$(document).ready(function(){mainmenu();});

{display:"none"})

}





example h1
{
color: #16C;
font-weight:normal;
letter-spacing:.4em;
margin-bottom:1em;
margin:1em auto;
text-transform: lowercase;
}

Type Category
Font-Family
Font-Size : pixels | picas | percentages.
Font-Style : normal | italic | oblique
Line-Height:  pixels | picas | percentages
Font-Decoratiion : uerlined | overlined  | blink | none
Font-Weight
Font-Variabt
Font-Transform : uppercase | lowercase  | initial caps  | no capitialization
color

Block Category
word-Spacing : mm | cn | picas | inches | pixels | ems | exs
letter-spacing : .4em | cm | picas | inches | pixels | ems | exs
vertical-align (aligns inline elements) :  baseline | sub | super | top | text-top | middle | bottom | text-bottom
test-align : left | right | center
test-indent : can negative
while-space (handle line breaks and spaces):  normal | pre | nowrap
display : inline | none

Box Category
width : pixels | points  | inches  | centimeters  | picas  |ems  | exs  | percentages
height
float
clear: left || right || both
padding
margin  (sets the amount of space around the outside of an element)

Positioning Category
position : absolute  | fixed  | relative  | static
fixed
relative
static
width,height
placement : top  | right | bottom  | left
viability : inherit  | visible  |hidden
z-index
overflow:visible || hidden || scroll || auto
clip
text-overflow:clip | ellipsis;

Extensions category
page-break
cursor:pointer  | hand | pointer  |  move  | text | wait | help
filter


css border

border : 1 px block solid
border -width (thin, medium, thick)
border-color
border-style (solid,dashed, dotted,double, grove, ridge, inside, outside)
border-top,left,bottom,right
border-solid none
border: 1px
border : #888888
border : none

css background

background-Attacment: Fixed || Scroll
background-Position(x): left | center | right | 1234
background-Position(y): top | center | botton | 1234
background: none;
background-image: url(bar_textbox.png);
background-image:url(../Images/banner.jpg);
background-repeat: no-repeat  | Repeat-X | Repeat-Y | repeat
background-color
background:#abcdef; #elele
background:rgb(233,233,233)
background:none
background-size:cover;
background-image:url(bar_textbox.png)
background-position:0.57px

border-style:hidden | none
border:solid 1px


css display
display:block;
display:none;
display:inline;


css float
float:left,clear,right

css font
font-size:12px
a {font-size: 150%;}  /* menu font size*/
font-weight:normal
font-family:Arrial, Helvetica, sane-serif;

font-style
line-height
font-decoration
font-weight
font-variant
font-transform
color





height:

line-height:1

max-height
max-width
min-height
min-width

margin-left:12px
margin:0em;

outline:none padding

padding-left:1em


table-layout:fixed | auto | inherit
table-labout:automatic
table-layout:fixed | auto


text-align:center, left
text-decoration: underline, none
text-align:left
text-align: right;
text-shadow:0.1em  0.1em #333;


vertical-align:top
vertical-align: middle

width:auto, length px,cm %, inhert
while-space:newrap



Linux - view (linux view)

mpstat ## view cpu
vmstat ## view ram and view cpu

oracle tunning

cursor_sharing
1. avoid FTS (Full Table Scan)
2. cluster index-organized tables
3. cluster materialized view
4. Orace Patii
 Crsor sharing.

windows net command

net config server
net group
net localgroup
net stop messenger
net start messenger
net start netbios
net use i:\\server3\sys
net use k:\\ntserver\distshare
net use d:\\20.0.0.243\d$
net use x: /delete
net use y: /delete
net use x: \\主機名稱或IP\分享資料夾1 /user:帳號
net use y: \\主機名稱或IP\d$ /user:帳號
net use z: /del
net use z: \\tpe\tmp /persistent:yes
net user /add UserName PassWord
net user window2000 * i.e. set password
net help time
net time \\server3
net time \\mypdc /set/yes
net send UserName "send message, target pc will prompt "
net session ## view concurrent user login and his ip number
net share c$ /d && stop c$ share
net share && list the share
net view ## view the domai

disable usb (disable autorun disable usb)

 step 1 : [win] + R
 step 2 : enter : gpedit.msc
 step 3 : find :
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor\
 and then : Start to 4 (Disable).

or

gpedit.msc
- computerSetup -> patern -> system -> closePlay

MySQL my.conf (mysql config tune) mysql-config

/usr/my.cnf

; remark on the font
# remark on the font or middle


key_buffer_size=256M
table_cache=256
set_buffer_size=1M
query_cache_type=
query_cache_size=16M

#####################

set-variable = max_connections=500
safe-show-database
skip-innodb
long_query_time=5
log-slow-queries=/var/log/mysql/log-slow-queries.log
query_cache_type=1
query_cache_size=16M
query_cache_limit=1M
table_cache=512
key_buffer=150M
thread_concurrency=2
thread_cache_size=80
sort_buffer_size=1M
read_buffer_size=1M
read_rnd_buffer_size=768K



After edit this file : service mysql restart




SLOW QUERIES
The slow query log is NOT enabled.
Current long_query_time = 10 sec.
You have 0 out of 666413 that take longer than 10 sec. to complete
Your long_query_time seems to be fine

BINARY UPDATE LOG
The binary update log is NOT enabled.
You will not be able to do point in time recovery
See http://dev.mysql.com/doc/refman/5.0/en/point-in-time-recovery.html

WORKER THREADS
Current thread_cache_size = 4
Current threads_cached = 3
Current threads_per_sec = 0
Historic threads_per_sec = 0
Your thread_cache_size is fine

MAX CONNECTIONS
Current max_connections = 50
Current threads_connected = 2
Historic max_used_connections = 17
The number of used connections is 34% of the configured maximum.
Your max_connections variable seems to be fine.

No InnoDB Support Enabled!

MEMORY USAGE
Max Memory Ever Allocated : 168 M
Configured Max Per-thread Buffers : 231 M
Configured Max Global Buffers : 90 M
Configured Max Memory Limit : 321 M
Physical Memory : 1.71 G
Max memory limit seem to be within acceptable norms

KEY BUFFER
Current MyISAM index space = 15 M
Current key_buffer_size = 32 M
Key cache miss rate is 1 : 130
Key buffer free ratio = 67 %
Your key_buffer_size seems to be fine

QUERY CACHE
Query cache is enabled
Current query_cache_size = 48 M
Current query_cache_used = 18 M
Current query_cache_limit = 1 M
Current Query cache Memory fill ratio = 38.37 %
Current query_cache_min_res_unit = 4 K
MySQL won't cache query results that are larger than query_cache_limit in size

SORT OPERATIONS
Current sort_buffer_size = 2 M
Current read_rnd_buffer_size = 256 K
Sort buffer seems to be fine

JOINS
Current join_buffer_size = 2.00 M
You have had 35 queries where a join could not use an index properly
You should enable "log-queries-not-using-indexes"
Then look for non indexed joins in the slow query log.
If you are unable to optimize your queries you may want to increase your
join_buffer_size to accommodate larger joins in one pass.

Note! This script will still suggest raising the join_buffer_size when
ANY joins not using indexes are found.

OPEN FILES LIMIT
Current open_files_limit = 3060 files
The open_files_limit should typically be set to at least 2x-3x
that of table_cache if you have heavy MyISAM usage.
Your open_files_limit value seems to be fine

TABLE CACHE
Current table_cache value = 1500 tables
You have a total of 1087 tables
You have 1108 open tables.
The table_cache value seems to be fine

TEMP TABLES
Current max_heap_table_size = 250 M
Current tmp_table_size = 250 M
Of 7076 temp tables, 26% were created on disk
Perhaps you should increase your tmp_table_size and/or max_heap_table_size
to reduce the number of disk-based temporary tables
Note! BLOB and TEXT columns are not allow in memory tables.
If you are using these columns raising these values might not impact your
ratio of on disk temp tables.

TABLE SCANS
Current read_buffer_size = 128 K
Current table scan ratio = 12 : 1
read_buffer_size seems to be fine

TABLE LOCKING
Current Lock Wait ratio = 1 : 1777
You may benefit from selective use of InnoDB.
If you have long running SELECT's against MyISAM tables and perform
frequent updates consider setting 'low_priority_updates=1'
If you have a high concurrency of inserts on Dynamic row-length tables
consider setting 'concurrent_insert=2'.

MySQL-Tunning (mysql tune speed)

Method increase mysql speed

1 key cache : load index into cache
e.g. set global city_cahc_key_buffer_size = 4194304
cache index world.cityin city_cache
load index into cache world_city.

2. avoid re-open table set table_cache. Refer :MySQL config.

3. query cache for repeat and some result.

4. for order by / group by set sort_buffer_size. Refer : MySQL config

5. join buffer for complex joins.

6. Record Buffer, cache per connection. for reducint the number of reader from disk.

7. Explain. e.g. explain Select * from country where name="Frame"
find out the key. Describe, show Index.

Tune innodb(mysql web site) :
1. use auto_increment column as primary key
2. use varchar instad of char
3. set innodb_flush_log_at_trx_comment = 0
4. innodb_buffer_pool_sizeUse DROP TABLE and CREATE TABLE to empty a table, notDELETE FROM tbl_name.
5.  setting the innodb_flush_method parameter to O_DSYNC.





Python String (python string)

String


python.split
s='python, jquery,javascript'
s.split(',') # ['python','jquery','javascript')
a,b,c=s.split(",")

python.find = foxpro.at
s="---<ABC>"

python.int string to value = fondpro.val ,
a="545.222"
float(a) # 545.2220000004
int(a)    # 545

python byte to string  / byte 2 string
b'abcd'
b'abcd'.decode('utf-8') # abcd





Email Terms

POPS
IMAP
Fetchmail
SMTP

Email-Trouble-Shooting

  • 1. Because the sender wrong email address In his email address book. (some character can only see by computer)
  • 2. The sender DNS has not update new ip address after the domain name removal to a new ip address. (tracert to compare) netstat -tl
    nslookup -q=mx gmail.com
  • 3. Email Account Over Quota.
  • 4. Some attachment is danger e.g. exe or have virus. 
  • 5. Some email go into rubbish bin.
  • 6. Harddisk not enough space.
  • 7. rec'd email box too many email, the speed too slow.
  • 8. Traffic Jam in Local Lan (Some station had virus)
  • 9. Traffic Jam in internet. (eg. email to 126.com from HK to PRC)
  • 10. Email Have not forward to this account.
  • 11. Send to boss (e.g. through SMTP to forward) , not function, because sender use another email account.
  • 12. Hub problem
  • 13. data wire problem (Broken, or electric jam)
  • 14. firewall problem
  • 15. domain name expired
  • 16. Virus
  • 17. The email subject like virus jam email subject.
  • 18. Email Policy filing to anonther folder.
  • 19. ISP wrong setting in ISP company DNS.
  • 20. The email tile is very common. e.g. Hello
  • 21. The email not display the content. Check the harddisk space
  • 22. Cannot Rec email from gmail.pop3 becuase gmail put them into spam.
  • 23. 553 dns.domainName.com config error: mail loops back to me (MX problem?), 554 ... Local configuration error, (reason: 501 5.1.8 ... Domain of sender address UserName@DomainName.com does not exist) (reason: 451 4.3.0 lockmailbox /var/mail/kstsai failed; error code 75 ) nslookup -q=mx domain.com
  • 24  ps -ax | grep sendmail
  • 25 email a lnk file to receiver

Oracle Database Tunning Harddisk (I O)


  • DBW (Database Base Writer) 
  • V$SYSTEM_EVENT , TOTAL_WAITS is high
  • the tuning goal for disk I/O performance is to balance I/O and reduce I/O contention. 
  • keep heavily used file separate from each other. 
  • keep non-Oracle files on disks separate from Oracle files. 
  • use Hardware Raid
  • do not place nonsystem object in the System Tablespace. 
  • use temporary tablespace for sort segments
  • keep table and index segments in separate tablespace
  • use locally managed tablespace to reduce system tablespace I/O and fragmentation
  • set the DB_FILE_MULTIBLOCK_READ_COUNT parameter to improve I/O where performing full table scans. (FTSs) 
  • Redo log file should be sized large enough so that redo log switchs do not happen so often that performance is affect.
  • Redo log files should be kept on separate fast devices. 
  • if the ARCn process cannot keep up the archiving requirement, you can specify additional ARCn processes by setting the LOG_ARCHIVE_MAX_PROCESSES parameter to a value between 1 and 10. 

HTML-Space-Line

Next Line <BR>

Before

春有百藥秋有月,
夏有涼風冬有雪,
若無閒事掛心頭,
便是人間好時節。

But html display : 
春有百藥秋有月,夏有涼風冬有雪,若無閒事掛心頭,便是人間好時節。

春有百藥秋有月,<BR>
夏有涼風冬有雪,<p>

若無閒事掛心頭,<BR>
便是人間好時節。<BR>

春有百藥秋有月,
夏有涼風冬有雪,

若無閒事掛心頭,
便是人間好時節。

HTML Control Next Line

Next Line <BR>

Before

春有百藥秋有月,
夏有涼風冬有雪,
若無閒事掛心頭,
便是人間好時節。

But html display : 
春有百藥秋有月,夏有涼風冬有雪,若無閒事掛心頭,便是人間好時節。

春有百藥秋有月,<BR>
夏有涼風冬有雪,<BR>
若無閒事掛心頭,<BR>
便是人間好時節。<BR>




easy to make a web page

Create HomePage without Licence Software

Step 1
Create a file
c:>YourFolder\hello.html 
key [hello World!]


Step 2
Web Page Browser
key [file:///home/YourFolder/hello.html]

The homepage can be display.

When need to automatic , change the name to inex.html and place into server in the suitable folder.

Step 3
Find a web hosting  company.
The web hosting company will email the ftp information to you


Step 4
download FileZilla
and use it to upload.

A standard Html file would be

A standard Html File

A standard Html file would be
 HTML (Hyper Text Markup Language)
<!DOCTYPE HTML>
<HTML>

<HEAD>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- utf8 -->
 
      <!--import css include css  -->
     <link rel='stylesheet' id='style_css-css'  href='css/styleSheetFileName.css' />
     <style>ThisPageStype</style>

     <script src="js/event-sourceFileName.js"></script> <!--import javascript include javascript  -->
     <script>ThisPageJavaScript</script>

     <TITLE> This is my First HomePage ! </TITLE>  <!--it is display in the browser title bar -->

     </HEAD>

     <BODY> <!-- the main content -->
          Hello World!
     </BODY>
</HTML>