<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>筍子工作雜記 &#187; Windows</title>
	<atom:link href="http://twycf.com/wordpress/archives/category/windows/feed" rel="self" type="application/rss+xml" />
	<link>http://twycf.com/wordpress</link>
	<description>工作、休閒之類的雜記</description>
	<lastBuildDate>Wed, 18 Nov 2009 15:20:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>讓 Apache 不要記錄指定 IP</title>
		<link>http://twycf.com/wordpress/archives/131</link>
		<comments>http://twycf.com/wordpress/archives/131#comments</comments>
		<pubDate>Thu, 24 Aug 2006 07:25:46 +0000</pubDate>
		<dc:creator>shinnlu</dc:creator>
				<category><![CDATA[Services]]></category>

		<guid isPermaLink="false">http://twycf.com/wordpress/archives/131</guid>
		<description><![CDATA[這一陣子常常分析 Apache 的 httpd_access.log ，做一些使用者來源、瀏覽器、作業系統、以及網站來源參考的分析，在分析的過程中發現自己在 log 裡留下的記錄非常多，所以將 Apache 的設定檔加入以下參數，讓 Apache 不要記錄指定的 IP 位址：
SetEnvIf Remote_Addr &#34;127\.0\.0\.1&#34; dontlogSetEnvIf Remote_Addr &#34;192\.168\.1\.10&#34; dontlog
並且將
CustomLog logs/access.log combined
改為
CustomLog logs/access.log combined env=!dontlog
參考文件：Log Files
]]></description>
		<wfw:commentRss>http://twycf.com/wordpress/archives/131/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firebird 資料庫壓縮(Compact)</title>
		<link>http://twycf.com/wordpress/archives/46</link>
		<comments>http://twycf.com/wordpress/archives/46#comments</comments>
		<pubDate>Thu, 27 Apr 2006 08:00:40 +0000</pubDate>
		<dc:creator>shinnlu</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://twycf.com/wordpress/archives/46</guid>
		<description><![CDATA[FireBird 資料庫在使用一段時間後，檔案會越來越大，而裡面的 Garbage 也會越來越多，有兩個步驟可以讓 FireBird 資料庫減肥，備份(backup)與還原(restore)。
步驟一：備份(backup)
C:\Firebird\bin\gbak -v -b -t -user SYSDBA -password &#34;masterkey&#34; c:\firebird\system.gdb system.fbk
這個 backup 資料庫我有用 SQL Explorer 進去看，可以使用也可以修改，但是最好不要直接使用，因為使用上述指令再對這個 backup 資料庫操作時，得到的錯誤訊息描述如下。
gbak: ERROR: file C:\FIREBIRD\SYSTEM.FBK is not a valid databasegbak: Exiting before completion due to errors
這證明了 backup 資料庫的內容不適合拿來存取，只適合備份。
步驟二：還原(restore)
C:\Firebird&#62;bin\gbak -c -user SYSDBA -password &#34;masterkey&#34; c:\firebird\system.fbk system.gdb.ok
上述備份及還原兩個動做，我們可以稱他為資料庫壓縮(Database Compact)，其實應該叫做資料庫緊實(Compact)，但念起來滿拗口的。完成 Compact 後，可以將最後的資料庫取代原本的資料庫了。
參考網頁
GBAK &#8211; Firebird Backup and Restore
]]></description>
		<wfw:commentRss>http://twycf.com/wordpress/archives/46/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MSSQL 7.0 密碼還原</title>
		<link>http://twycf.com/wordpress/archives/35</link>
		<comments>http://twycf.com/wordpress/archives/35#comments</comments>
		<pubDate>Wed, 19 Apr 2006 16:43:11 +0000</pubDate>
		<dc:creator>shinnlu</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://twycf.com/wordpress/archives/35</guid>
		<description><![CDATA[今天一個客戶跟我說，他的 MSSQL 7.0 的 sa 密碼忘記了，本來想幫他把 sa 密碼重置，但是客戶有另一隻登入同一個資料庫的程式也不知道密碼，這就頭大了…
好不容易找到相關資料，原來 MSSQL 7 的連線認證編碼做的很容易破解，而 username 的部份是以純文字傳輸，密碼加密/解密的方式如下，並以 sa/password 為例
加密的部份是把每 1 Byte 延展成 2Bytes ，再把每1Byte 的 high 4bits,lower 4bits 互換，互換之後的每 1Byte 和 A5 做 Xor，以字元 &#8220;p&#8221;為例
p= 0x70(ascii)70 延展為 70 0070 00 兩個 Byte 高低位元互換為 07 0007 00 與 A5 做 XOR運算得到 A2 A5
既然知道加密的方式，那解密就沒有問題了(註1)
同樣的一次1Byte，先與 A5 做 XOR，然後對調高低位元，以上述加密結果 A2 A5 為例
先取 A2 [...]]]></description>
		<wfw:commentRss>http://twycf.com/wordpress/archives/35/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Update 0&#215;8DDD0018 or 0&#215;80246008</title>
		<link>http://twycf.com/wordpress/archives/34</link>
		<comments>http://twycf.com/wordpress/archives/34#comments</comments>
		<pubDate>Wed, 19 Apr 2006 14:05:27 +0000</pubDate>
		<dc:creator>shinnlu</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://twycf.com/wordpress/archives/34</guid>
		<description><![CDATA[Windows Update 是一個非常方便的更新機制，他可以讓使用者透過線上更新的方式，修補系統中己知的漏洞、或是更新系統元件(like Media Player, DirectX&#8230;)
但執行系統更新時，卻時常會遇到錯誤訊息，本篇針對 0&#215;8DDD0018 這個錯誤訊息做講解。
在發生 0&#215;8DDD0018 錯誤時，微軟針對這個錯誤訊息提供了一個解決辦法，&#8220;0&#215;8DDD0018&#8243; code or the &#8220;0&#215;80246008&#8243;，而微軟的解釋是因為線上更新時，需要用到 Background Intelligent Transfer Service(以下簡稱 BITS)，但是 client 端沒有啟動 BITS。可是在這個連結裡面，卻只有解決了 90%的問題，剩下的 10%沒有完成，還是無法完成線上更新。
0&#215;8DDD0018、0&#215;80246008，這兩個錯誤訊息，一個是 BITS 沒有啟動，一個是BITS 無法正常連線到微軟的更新服務。
以下的步驟可以讓你順利的完成線上更新(for windows 2003 and windows xp)
首先你要先開啟以下三個服務
Background Intelligent Transfer ServiceAutomatic UpdatesEvent Log
再開啟一個 command box 輸入以下指令
regsvr32 qmgr.dllregsvr32 qmgrprxy.dllregsvr32 wuaueng.dll
上述步驟，在每一行指令完成時，皆有一個提示訊息
DllRegisterServer 在 wuaueng.dll 成功
當上述步驟全部完成後，再回到 Windows Update 繼續更新即可。
]]></description>
		<wfw:commentRss>http://twycf.com/wordpress/archives/34/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

