How to remove Windows 7 System reserved partition
2015年8月24日 星期一
To update the copied BCD file so it will boot correctly, run the following command:
bcdedit /store c:\boot\bcd /set {bootmgr} device partition=C:
Update the Memory Diagnostic entry by running the following command:
bcdedit /store c:\boot\bcd /set {memdiag} device partition=C:
[轉貼] 瀏覽器的進階設定
2015年6月10日 星期三
來源:[Tip] Enable Hidden Secret Features Using 「Advanced Configuration」 Page in Mozilla Firefox, Google Chrome and Opera Web Browsers
簡單來說:
簡單來說:
- Firefox
about:config - Chrome
chrome://flags or about:flags - Opera
opera:config - Internet Explorer
gpedit.msc - Computer Configuration -> Administrative Templates -> Windows Components -> Internet Explorer
- User Configuration -> Administrative Templates -> Windows Components -> Internet Explorer
[轉貼] 來亂者,去死!!
2015年5月11日 星期一
文章出處:Rex' blah blah blah
文章標題:來亂者,去死!!
剛剛看到這篇Rex這位先進在 2008 年發表的文章,雖然是以資訊技術做例子,不過,似乎各個領域或是單位都適用…
裡頭有段話,讓我覺得蠻有感的
文章標題:來亂者,去死!!
裡頭有段話,讓我覺得蠻有感的
大體來說,這些行為是有益於社群發展。但問題是這群人基本上拒絕合作。他們願意抱怨,不願貢獻,很多時候根本是個戳樂 (Troller),他們以戳你為樂。你要跟他們客觀的分析問題,他們會很主觀的訴求於情緒。你誠心的想聽他們的意見,他們卻說不出個所以然。你邀他們出席聚會,他們會出污泥不染的拒絕參與。你邀他們主辦,他們會說這不是他們的使命。
到頭來,你只是自找罪受的徒勞無功。你甚至無法從討論中找出一點點建設性的意義。於是、於是你得好好的研究一個方法來辨識、管理他們。
[轉貼] How Network Printing Works
2015年4月29日 星期三
資料來源:https://technet.microsoft.com/en-us/library/cc783789(v=ws.10).aspx
Network Printing Protocols
- Server Message Block (SMB)
- Line Printer Remote (LPR)
- Line Printer Daemon (LPD)
- remote procedure call (RPC)
- Internetwork Packet Exchange (IPX)
- Internet Printing Protocol (IPP)
- Transmission Control Protocol/Internet Protocol (TCP/IP)
- AppleTalk
- Simple Network Management Protocol (SNMP)
Printing Components in Detail
- Win32spl.dll
- Inetpp.dll
- Nwprovau.dll
Network Ports Used by Network Printing
| Service Name | UDP | TCP |
|---|---|---|
Services for Macintosh (uses AppleTalk)
|
201, 202, 204, 206
|
201, 202, 204, 206
|
Internet Printing Protocol (uses HTTP)
|
80
|
80
|
NWLink (uses IPX/SPX)
|
213
|
213
|
LPDSVC (accepts LPR)
|
515
|
515
|
LPR Port (sends LPR)
|
721-731, >1023
|
721-731, >1023
|
Server (using SMB)
|
137, 138
|
139
|
Server (using RPC)
|
530
|
530
|
Standard Port Monitor (using SNMP)
|
161, 162
|
161, 162
|
Standard Port Monitor (using LPR)
|
> 1023
|
> 1023
|
Standard Port Monitor (using RAW)
|
2000, 2501-2503, 3001, 6869, >=9100
|
2000, 2501, 2503, 3001, 6869, >=9100
|
標籤:
.NET,
Programming
[開發] userAccountControl 旗標值的意義
資料來源:https://support.microsoft.com/en-us/kb/305144/zh-tw
| 屬性旗標 | 十六進位值 | 十進位值 |
|---|---|---|
| SCRIPT | 0x0001 | 1 |
| ACCOUNTDISABLE | 0x0002 | 2 |
| HOMEDIR_REQUIRED | 0x0008 | 8 |
| LOCKOUT | 0x0010 | 16 |
| PASSWD_NOTREQD | 0x0020 | 32 |
| PASSWD_CANT_CHANGE | 0x0040 | 64 |
| ENCRYPTED_TEXT_PWD_ALLOWED | 0x0080 | 128 |
| TEMP_DUPLICATE_ACCOUNT | 0x0100 | 256 |
| NORMAL_ACCOUNT | 0x0200 | 512 |
| INTERDOMAIN_TRUST_ACCOUNT | 0x0800 | 2048 |
| WORKSTATION_TRUST_ACCOUNT | 0x1000 | 4096 |
| SERVER_TRUST_ACCOUNT | 0x2000 | 8192 |
| DONT_EXPIRE_PASSWORD | 0x10000 | 65536 |
| MNS_LOGON_ACCOUNT | 0x20000 | 131072 |
| SMARTCARD_REQUIRED | 0x40000 | 262144 |
| TRUSTED_FOR_DELEGATION | 0x80000 | 524288 |
| NOT_DELEGATED | 0x100000 | 1048576 |
| USE_DES_KEY_ONLY | 0x200000 | 2097152 |
| DONT_REQ_PREAUTH | 0x400000 | 4194304 |
| PASSWORD_EXPIRED | 0x800000 | 8388608 |
| TRUSTED_TO_AUTH_FOR_DELEGATION | 0x1000000 | 16777216 |
屬性旗標說明
- SCRIPT - 要執行的登入指令檔。
- ACCOUNTDISABLE - 使用者帳戶已停用。
- HOMEDIR_REQUIRED - 需要主資料夾。
- PASSWD_NOTREQD - 不需要密碼。
- PASSWD_CANT_CHANGE - 使用者不能變更密碼。 您可以讀取但不能直接設定這個旗標。
- ENCRYPTED_TEXT_PASSWORD_ALLOWED - 使用者可以傳送已加密密碼。
- TEMP_DUPLICATE_ACCOUNT - 主帳戶在其他網域的使用者帳戶。 這個帳戶提供這個網域的使用者存取,而不是信任這個網域的任何網域。 有時候也可以當作本機使用者帳戶。
- NORMAL_ACCOUNT - 代表典型使用者的預設帳戶類型。
- INTERDOMAIN_TRUST_ACCOUNT - 信任其他網域之系統網域的信任帳戶許可。
- WORKSTATION_TRUST_ACCOUNT - 正在執行 Microsoft Windows NT 4.0 Workstation、Microsoft Windows NT 4.0 Server、Microsoft Windows 2000 Professional 或 Windows 2000 Server,同時也是這個網域成員電腦的電腦帳戶。
- SERVER_TRUST_ACCOUNT - 屬於這個網域成員的網域控制站的電腦帳戶。
- DONT_EXPIRE_PASSWD - 永不到期的帳戶密碼。
- MNS_LOGON_ACCOUNT - MNS 登入帳戶。
- SMARTCARD_REQUIRED - 設定這個旗標之後,會強制使用者使用智慧卡登入。
- TRUSTED_FOR_DELEGATION - 設定這個旗標之後,執行服務的服務帳戶 (使用者或電腦帳戶) 可以信任 Kerberos 委派。 任何這類服務都可以模擬要求服務的用戶端。 如果要啟用服務進行 Kerberos 委派,您必須在服務帳戶的userAccountControl 屬性設定這個旗標。
- NOT_DELEGATED - 設定這個旗標之後,使用者安全性內容便不會委派給服務,即使服務帳戶設定為可以信任 Kerberos 委派。
- USE_DES_KEY_ONLY - (Windows 2000/Windows Server 2003) 限制這個原則只能使用 Data Encryption Standard (DES) 加密類型的金鑰。
- DONT_REQUIRE_PREAUTH - (Windows 2000/Windows Server 2003) 這個帳戶不會要求 Kerberos 預先驗證以進行登入。
- PASSWORD_EXPIRED - (Windows 2000/Windows Server 2003) 使用者密碼已到期。
- TRUSTED_TO_AUTH_FOR_DELEGATION - (Windows 2000/Windows Server 2003) 帳戶已啟用可進行委派。 這是一項有安全性顧慮的設定。 應該嚴格控制已啟用此選項的帳戶。 這項設定允許在帳戶下執行的服務取得用戶端身份和驗證,對網路上其他的遠端電腦扮演該使用者。
UserAccountControl Values
下列是某些物件的預設 UserAccountControl 值:
典型使用者: 0x200 (512)
網域控制站: 0x82000 (532480)
工作站 / 伺服器: 0x1000 (4096)
網域控制站: 0x82000 (532480)
工作站 / 伺服器: 0x1000 (4096)
標籤:
.NET,
Programming
[網頁設計] 分頁設定
2015年4月24日 星期五
強制將網頁內容於列印時做分頁的動作,如果不喜歡多一條橫槓,可以把 pagebreak 設為隱藏( visibility: hidden; )。
----------範例網頁-------------------------------------------------------
----------範例網頁-------------------------------------------------------
<head>
<style>.pagebreak
{ page-break-before: always; } </style>
</head>
<body>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<hr class="pagebreak" />
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</body>
訂閱:
文章 (Atom)