<?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>Wilsont.Net</title>
	<atom:link href="http://blog.wilsont.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.wilsont.net</link>
	<description>Everything about photography &#38; coding.</description>
	<lastBuildDate>Thu, 05 Aug 2010 17:45:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>PHP Big5 + Jquery AJAX 亂碼問題</title>
		<link>http://blog.wilsont.net/dev/php-big5-jquery-ajax-%e4%ba%82%e7%a2%bc%e5%95%8f%e9%a1%8c/</link>
		<comments>http://blog.wilsont.net/dev/php-big5-jquery-ajax-%e4%ba%82%e7%a2%bc%e5%95%8f%e9%a1%8c/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 17:34:10 +0000</pubDate>
		<dc:creator>wilsont</dc:creator>
				<category><![CDATA[Developer's Dream]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[big5]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.wilsont.net/?p=120</guid>
		<description><![CDATA[呢個問題足足搞左我一晚, 都唔差左用多少少時間打篇BLOG 做過紀錄 事緣有個舊WEB 不嬲都用開BIG-5, 又咁岩用Jquery ajax submit d data 返server side, 大家都知jquery ajax 會變曬你d 野做utf8 先傳回server, 所以唔做野一定出亂碼 &#60;meta http-equiv=\&#34;Content-Type\&#34; content=\&#34;text/html; charset=big5\&#34; /&#62; 解決方法如下 係你個javascript function, CALL ajax 之前用 encodeURI() encode 左你個data 先 shopname = encodeURI(shopname); 返到去你個PHP 就用 &#60;?php $shopname = iconv(\&#34;utf-8\&#34;,\&#34;big5\&#34;,addslashes(urldecode($shopname))); ?&#62; urldecode() 之後再用 iconv 由utf8 轉返做 big-5 再INSERT 入mysql 就係以上呢幾行CODE 又無左一晚 T_]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJScript.js"></script>
            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
<p>呢個問題足足搞左我一晚, 都唔差左用多少少時間打篇BLOG 做過紀錄</p>
<p>事緣有個舊WEB 不嬲都用開BIG-5, 又咁岩用Jquery ajax submit d data 返server side, 大家都知jquery ajax 會變曬你d 野做utf8 先傳回server, 所以唔做野一定出亂碼<br />
<pre class="brush: xml">&lt;meta http-equiv=\&quot;Content-Type\&quot; content=\&quot;text/html; charset=big5\&quot; /&gt;</pre><br />
解決方法如下<br />
係你個javascript function, CALL ajax 之前用 encodeURI() encode 左你個data 先</p>
<p><pre class="brush: js">shopname = encodeURI(shopname);</pre><br />
返到去你個PHP 就用<br />
<pre class="brush: php">&lt;?php
$shopname =  iconv(\&quot;utf-8\&quot;,\&quot;big5\&quot;,addslashes(urldecode($shopname)));
?&gt;

</pre></p>
<pre id="line1">urldecode() 之後再用 iconv 由utf8 轉返做 big-5 再INSERT 入mysql</pre>
<p>就係以上呢幾行CODE 又無左一晚 T_T</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wilsont.net/dev/php-big5-jquery-ajax-%e4%ba%82%e7%a2%bc%e5%95%8f%e9%a1%8c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Airnergy WiFi Charger &#8211; 用WiFi 充電?</title>
		<link>http://blog.wilsont.net/life-style/airnergy-wifi-charger-%e7%94%a8wifi-%e5%85%85%e9%9b%bb/</link>
		<comments>http://blog.wilsont.net/life-style/airnergy-wifi-charger-%e7%94%a8wifi-%e5%85%85%e9%9b%bb/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 09:25:49 +0000</pubDate>
		<dc:creator>wilsont</dc:creator>
				<category><![CDATA[Life Style]]></category>

		<guid isPermaLink="false">http://blog.wilsont.net/?p=99</guid>
		<description><![CDATA[This little box has, inside it, some kind of circuitry that harvests WiFi energy out of the air and converts it into electricity. This has been done before, but the Airnergy is able to harvest electricity with a high enough efficiency to make it practically useful: on the CES floor, they were able to charge ]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJScript.js"></script>
            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
<p><a href="http://blog.wilsont.net/wp-content/uploads/2010/02/aircharger.jpg"><img class="alignnone size-medium wp-image-100" title="aircharger" src="http://blog.wilsont.net/wp-content/uploads/2010/02/aircharger-300x255.jpg" alt="" width="300" height="255" /></a></p>
<p>This little box has, inside it, some kind of circuitry that harvests  WiFi energy out of the air and converts it into electricity. This has  been done before, but the Airnergy is able to harvest electricity with a  high enough efficiency to make it practically useful: on the CES floor,  they were able to charge a BlackBerry from 30% to full in about 90  minutes, using nothing but ambient WiFi signals as a power source.</p>
<p>呢隻CHARGER 可以利用大氣中既wifi signal 轉化做電能為你既usb device 充電, 當然充電時間會好長 , 90 分鐘可以充到一部BlackBerry 既30% 電, 都幾搞野下</p>
<p>個人覺得實用性就唔高喇, 不過作為一件環保產品就十分有諗頭, 價錢亦都唔貴, 只係USD40, 有興起可以買返一舊黎型下比D friend睇<a href="http://blog.wilsont.net/wp-content/uploads/2010/02/oo90.gif"><img class="alignnone size-full wp-image-191" title="oo90" src="http://blog.wilsont.net/wp-content/uploads/2010/02/oo90.gif" alt="" width="50" height="50" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wilsont.net/life-style/airnergy-wifi-charger-%e7%94%a8wifi-%e5%85%85%e9%9b%bb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Canon 公怖 EOS 550D</title>
		<link>http://blog.wilsont.net/foto/canon-eos-550d/</link>
		<comments>http://blog.wilsont.net/foto/canon-eos-550d/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 10:43:57 +0000</pubDate>
		<dc:creator>wilsont</dc:creator>
				<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://blog.wilsont.net/?p=95</guid>
		<description><![CDATA[主要Spec 一部入門機仔有18M pixel 同可用6,400, 睇黎我部5D2 好快會outdate 18 Megapixel APS-C CMOS sensor DIGIC 4 processor with ISO 100-6400 (Expansion to 12800) Continuous shooting at 3.7fps Full HD movie recording with manual control and selectable frame rates 7.7cm (3.0”) 3:2 Clear View LCD with 1,040k dots iFCL metering System with 63-zone Dual-layer Metering Sensor Quick Control screen ]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJScript.js"></script>
            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
<p>主要Spec</p>
<p>一部入門機仔有18M pixel 同可用6,400, 睇黎我部5D2 好快會outdate <img src='http://blog.wilsont.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p><span style="color: #000000;"><span class="Apple-style-span" style="border-collapse: separate; font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span class="Apple-style-span" style="font-family: Tahoma,Arial,Helv; font-size: 12px; text-align: justify;"> </span></span></span></p>
<li><span style="color: #ff0000;">18 Megapixel APS-C CMOS sensor</span></li>
<li>DIGIC 4 processor with ISO 100-<span style="color: #ff0000;">6400</span> (Expansion to 12800)</li>
<li>Continuous shooting at 3.7fps</li>
<li>Full HD movie recording with manual control and selectable frame rates</li>
<li>7.7cm (3.0”) 3:2 Clear View LCD with 1,040k dots</li>
<li>iFCL metering System with 63-zone Dual-layer Metering Sensor</li>
<li>Quick Control screen to change shooting settings</li>
<li>Exposure compensation +/-5 stops.</li>
<li>Select maximum value for Auto ISO</li>
<li>External Microphone socket</li>
<li>Movie crop function</li>
<li>Eye-Fi connected functions compatibility</li>
<p><a href="http://www.dpreview.com/news/1002/10020806canoneos550d.asp">http://www.dpreview.com/news/1002/10020806canoneos550d.asp</a></p>
<p><img class="alignnone" src="http://a.img-dpreview.com/news/1002/canon/eos550d/EOS-550D_BEAUTY.jpg" alt="" width="557" height="426" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wilsont.net/foto/canon-eos-550d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AF-S NIKKOR 16-35MM F/4G ED VR</title>
		<link>http://blog.wilsont.net/foto/af-s-nikkor-16-35mm-f4g-ed-vr/</link>
		<comments>http://blog.wilsont.net/foto/af-s-nikkor-16-35mm-f4g-ed-vr/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 10:37:18 +0000</pubDate>
		<dc:creator>wilsont</dc:creator>
				<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://blog.wilsont.net/?p=91</guid>
		<description><![CDATA[N 記公怖左支 16-35MM F/4G ED VR http://www.dpreview.com/news/1002/10020902nikon16mm35mm.asp 唔知Canon 會唔會出支17-40 F/4 L IS USM 應戰呢]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJScript.js"></script>
            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
<p>N 記公怖左支 16-35MM F/4G ED VR</p>
<p><a href="http://www.dpreview.com/news/1002/10020902nikon16mm35mm.asp">http://www.dpreview.com/news/1002/10020902nikon16mm35mm.asp</a></p>
<p>唔知Canon 會唔會出支17-40 F/4 L IS USM 應戰呢?</p>
<p><a href="http://a.img-dpreview.com/news/1002/nikon/lens/AFS_16_35_VR_l.jpg"><img class="alignnone" src="http://a.img-dpreview.com/news/1002/nikon/lens/AFS_16_35_VR_l.jpg" alt="" width="560" height="431" /><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wilsont.net/foto/af-s-nikkor-16-35mm-f4g-ed-vr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lightroom adobe TV 教學</title>
		<link>http://blog.wilsont.net/foto/lightroom-adobe-tv/</link>
		<comments>http://blog.wilsont.net/foto/lightroom-adobe-tv/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 11:54:41 +0000</pubDate>
		<dc:creator>wilsont</dc:creator>
				<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://blog.wilsont.net/?p=88</guid>
		<description><![CDATA[http://tv.adobe.com/watch/learn- &#8230; -local-corrections/ 有專用拍片Step by step 搞你點玩, 好過睇書啦! 仲要係免費既tim!]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJScript.js"></script>
            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
<p><a href="http://tv.adobe.com/watch/learn-lightroom-20/basics-09-local-corrections/" target="_blank">http://tv.adobe.com/watch/learn- &#8230;  -local-corrections/</a></p>
<p>有專用拍片Step by step 搞你點玩, 好過睇書啦! 仲要係免費既tim!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wilsont.net/foto/lightroom-adobe-tv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook 公怖新php engine &#8211; HipHop for PHP</title>
		<link>http://blog.wilsont.net/good-stuff/facebook-%e5%85%ac%e6%80%96%e6%96%b0php-engine-hiphop-for-php/</link>
		<comments>http://blog.wilsont.net/good-stuff/facebook-%e5%85%ac%e6%80%96%e6%96%b0php-engine-hiphop-for-php/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 12:33:52 +0000</pubDate>
		<dc:creator>wilsont</dc:creator>
				<category><![CDATA[Good Stuff]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[hiphop]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.wilsont.net/?p=82</guid>
		<description><![CDATA[http://www.facebook.com/note.php?note_id=280583813919&#38;id=9445547199 Facebook 呢個全球最大用緊PHP 既網站, 終於都訂唔住php 既速度, 索性自己寫過另一個ENGINE, 不過有趣之處在於, 佢係先張PHP-&#62;C++ 之後再complie , C++ 既performance 我諗大家唔使有任何擔心喇掛]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJScript.js"></script>
            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
<p>http://www.facebook.com/note.php?note_id=280583813919&amp;id=9445547199</p>
<p>Facebook 呢個全球最大用緊PHP 既網站, 終於都訂唔住php 既速度, 索性自己寫過另一個ENGINE, 不過有趣之處在於, 佢係先張PHP-&gt;C++ 之後再complie , C++ 既performance 我諗大家唔使有任何擔心喇掛<br />
<a title="http://wiki.developers.facebook.com/images/2/23/HipHop_transformation_process.png" href="http://www.facebook.com/note_redirect.php?note_id=280583813919&amp;h=cd5afe4354d35be13e7752d473b08abd&amp;url=http%3A%2F%2Fwiki.developers.facebook.com%2Fimages%2F2%2F23%2FHipHop_transformation_process.png" target="_blank"><img src="http://external.ak.fbcdn.net/safe_image.php?d=a15ad6dbb0491cd6caed6453c7c5734e&amp;url=http%3A%2F%2Fwiki.developers.facebook.com%2Fimages%2F2%2F23%2FHipHop_transformation_process.png" alt="" width="510" height="318" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wilsont.net/good-stuff/facebook-%e5%85%ac%e6%80%96%e6%96%b0php-engine-hiphop-for-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>好用freeware 推介 完全免費</title>
		<link>http://blog.wilsont.net/good-stuff/%e5%a5%bd%e7%94%a8freeware-%e6%8e%a8%e4%bb%8b-%e5%ae%8c%e5%85%a8%e5%85%8d%e8%b2%bb/</link>
		<comments>http://blog.wilsont.net/good-stuff/%e5%a5%bd%e7%94%a8freeware-%e6%8e%a8%e4%bb%8b-%e5%ae%8c%e5%85%a8%e5%85%8d%e8%b2%bb/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 15:13:00 +0000</pubDate>
		<dc:creator>wilsont</dc:creator>
				<category><![CDATA[Good Stuff]]></category>
		<category><![CDATA[freeware]]></category>

		<guid isPermaLink="false">http://blog.wilsont.net/?p=65</guid>
		<description><![CDATA[1. 7Zip &#8211; 仲用緊winzip? 快d 試下7zip 啦, 一來免費, 二來大部份format 都support (rar, lzh…etc) , 仲support multi threading (for HT or duo core) http://www.7-zip.org/zh-tw/ 2. CPUZ &#8211; 想知你粒cpu 幾快, ram 行緊幾多hz 即用 (freeware) http://www.cpuid.com/cpuz.php 3. HDtune &#8211; 測試你既harddisk, memory card 速度 (freeware) http://www.hdtune.com/ 4. Emeditor &#8211; 比programmer 用既notepad, 有tab, html 轉色等功能 (freeware) http://www.emeditor.com/download.htm 5. CCCP codec &#8211; ]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJScript.js"></script>
            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
<div>
<div>
<p>1. 7Zip &#8211; 仲用緊winzip? 快d 試下7zip 啦, 一來免費, 二來大部份format 都support  (rar, lzh…etc) , 仲support multi threading (for HT or duo core)<br />
<a href="http://www.7-zip.org/zh-tw/" target="_blank">http://www.7-zip.org/zh-tw/</a></p>
<p>2. CPUZ &#8211; 想知你粒cpu 幾快, ram 行緊幾多hz 即用 (freeware)<br />
<a href="http://www.cpuid.com/cpuz.php" target="_blank">http://www.cpuid.com/cpuz.php</a></p>
<p>3. HDtune &#8211; 測試你既harddisk, memory card 速度 (freeware)<br />
<a href="http://www.hdtune.com/" target="_blank">http://www.hdtune.com/</a></p>
<p>4. Emeditor &#8211; 比programmer 用既notepad, 有tab, html 轉色等功能 (freeware)<br />
<a href="http://www.emeditor.com/download.htm" target="_blank">http://www.emeditor.com/download.htm</a></p>
<p>5. CCCP codec &#8211; 有DVD, avi 等file 因為無codec 所以開唔到? 以下呢個pack 有曬最常用既codec<br />
<a href="http://www.cccp-project.net/" target="_blank">http://www.cccp-project.net/</a></p>
<p>6. Dscaler &#8211; 跟tv card 送果個睇電視software 唔好用? 試下呢個好hit 既freeware<br />
<a href="http://deinterlace.sourceforge.net/" target="_blank">http://deinterlace.sourceforge.net/</a></p>
<p>7. Spybot &#8211; 清除spyware 既好工具 (freeware)<br />
<a href="http://www.safer-networking.org/ct/index.html" target="_blank">http://www.safer-networking.org/ct/index.html</a></p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.wilsont.net/good-stuff/%e5%a5%bd%e7%94%a8freeware-%e6%8e%a8%e4%bb%8b-%e5%ae%8c%e5%85%a8%e5%85%8d%e8%b2%bb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.net 2.0/3.5 搭 SQL2005 cache by query notification 的問題</title>
		<link>http://blog.wilsont.net/net/asp-net-2-03-5-%e6%90%ad-sql2005-cache-by-query-notification-%e7%9a%84%e5%95%8f%e9%a1%8c/</link>
		<comments>http://blog.wilsont.net/net/asp-net-2-03-5-%e6%90%ad-sql2005-cache-by-query-notification-%e7%9a%84%e5%95%8f%e9%a1%8c/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 14:52:51 +0000</pubDate>
		<dc:creator>wilsont</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[MSSQL]]></category>

		<guid isPermaLink="false">http://blog.wilsont.net/?p=59</guid>
		<description><![CDATA[之前set 左好耐都set 唔到, m$ d offical document 又成日張sql2000 同sql2005 一齊講, 講都唔清唔楚, 足足搞左我好多日. 最後發現原來係白痴問題一個. 以下有小小心得, 大家有興起用可以參考一下 1. 首先  web.config 並不需要任何設定  , 因為它是針對SQL2000 polling base 而設的 2. 在SSMS 執行指令 &#8220;alter database testdb set enable_broker  WITH ROLLBACK IMMEDIATE&#8221; 3. 在Global.asax application_start() 加入 System.Data.SqlClient.SqlDependency.Start(&#8220;your connection string here&#8221;); 4. 以下係小弟既測試function [cc lang='csharp' ] // Create the ADO.NET objects. string connectionString ]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJScript.js"></script>
            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
<p>之前set 左好耐都set 唔到, m$ d offical document 又成日張sql2000 同sql2005 一齊講,  講都唔清唔楚, 足足搞左我好多日. 最後發現原來係白痴問題一個. 以下有小小心得, 大家有興起用可以參考一下</p>
<p>1. 首先  web.config 並不需要任何設定  , 因為它是針對SQL2000 polling base  而設的<br />
2. 在SSMS 執行指令<br />
&#8220;alter database testdb set enable_broker  WITH  ROLLBACK IMMEDIATE&#8221;</p>
<p>3. 在Global.asax application_start() 加入<br />
System.Data.SqlClient.SqlDependency.Start(&#8220;your  connection string here&#8221;);</p>
<p>4. 以下係小弟既測試function</p>
<p>[cc lang='csharp' ]</p>
<p>// Create the ADO.NET objects.<br />
string connectionString =  Common.DB_ConnString;<br />
string query = &#8220;SELECT  [ParmKey],[ParmValue] FROM dbo.[ParmTable] where [ParmKey] = &#8216;test&#8217;&#8221;;<br />
SqlConnection conn = new SqlConnection(connectionString);<br />
SqlCommand command = new SqlCommand(query, conn);<br />
SqlCacheDependency dependency = new SqlCacheDependency(command);<br />
SqlDataAdapter adapter = new SqlDataAdapter(command);<br />
DataTable dt = new DataTable();<br />
adapter.Fill(dt);<br />
Cache DataCache = HttpRuntime.Cache;<br />
DataCache.Insert(&#8220;ParmTableDT&#8221;, dt, dependency, System.Web.Caching.Cache.NoAbsoluteExpiration, System.Web.Caching.Cache.NoSlidingExpiration);</p>
<p>[/cc]</p>
<p><span style="color: #ffffff;">我一直既失敗原因為係為我個 SqlCommand 個object 入去init  SqlCacheDependency 既時候未沒有被執行過 (即係adapter.fill(dt)) , (因為我之前寫落左d help  class 用黎行sql statement, 所以唔係用SqlDataAdapter ),  所以就算intial 左果 SqlCacheDependency, 佢都認唔到你句sql statement,  亦都因為咁所以個cache 永遠都唔識expired&#8230;.</span></p>
<p><span style="color: #ffffff;">就 係呢樣咁簡單既野搞左我幾日&#8230;真係唔抵</span></p>
<p>想知多d 可以睇呢個thread<br />
<a href="http://forums.microsoft.com/msdn-cht/showpost.aspx?postid=3677123&amp;siteid=14">http://forums.microsoft.com/msdn-cht/showpost.aspx?postid=3677123&amp;siteid=14</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wilsont.net/net/asp-net-2-03-5-%e6%90%ad-sql2005-cache-by-query-notification-%e7%9a%84%e5%95%8f%e9%a1%8c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Air MAx 95 @ 2009 寫真照</title>
		<link>http://blog.wilsont.net/life-style/air-max-95-2009-%e5%af%ab%e7%9c%9f%e7%85%a7/</link>
		<comments>http://blog.wilsont.net/life-style/air-max-95-2009-%e5%af%ab%e7%9c%9f%e7%85%a7/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 14:47:54 +0000</pubDate>
		<dc:creator>wilsont</dc:creator>
				<category><![CDATA[Life Style]]></category>
		<category><![CDATA[air max 95]]></category>

		<guid isPermaLink="false">http://blog.wilsont.net/?p=46</guid>
		<description><![CDATA[由於實在太鐘意呢對鞋, 忍唔住影返set 沙龍, 宜家仲有一對係盒度備用&#8230;唔怕著爛左無得著]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJScript.js"></script>
            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
<p>由於實在太鐘意呢對鞋, 忍唔住影返set 沙龍, 宜家仲有一對係盒度備用&#8230;唔怕著爛左無得著</p>
<p><img src="http://f20.yahoofs.com/hkblog/0ur2j8CRBRC6fBOcfCjDy2VO_1/blog/ap_20090328114938214.jpg.jpg?ib_____DGWsNoEZf" alt="" /></p>
<p><img src="http://f20.yahoofs.com/hkblog/0ur2j8CRBRC6fBOcfCjDy2VO_1/blog/ap_20090328114948464.jpg.jpg?ib_____D50cG.Mw0" alt="" /></p>
<p><img src="http://f20.yahoofs.com/hkblog/0ur2j8CRBRC6fBOcfCjDy2VO_1/blog/ap_20090328114959542.jpg.jpg?ib_____DMWYH52pO" alt="" /></p>
<p><img src="http://f20.yahoofs.com/hkblog/0ur2j8CRBRC6fBOcfCjDy2VO_1/blog/ap_20090328115017479.jpg.jpg?ib_____DeIGWknfQ" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wilsont.net/life-style/air-max-95-2009-%e5%af%ab%e7%9c%9f%e7%85%a7/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>60 Earth Hour, before &amp; after</title>
		<link>http://blog.wilsont.net/foto/60-earth-hour-before-after/</link>
		<comments>http://blog.wilsont.net/foto/60-earth-hour-before-after/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 14:45:59 +0000</pubDate>
		<dc:creator>wilsont</dc:creator>
				<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://blog.wilsont.net/?p=44</guid>
		<description><![CDATA[以下幾幅相係 To 所有唔識珍惜地球既人&#8230;.包括我 d 相全部用 f/8 2sec 去影, 你可以睇到香港既光害係幾咁勁&#8230; 浪費電力就更不在話下 Before After]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJScript.js"></script>
            <script type="text/javascript" src="http://blog.wilsont.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
<p>以下幾幅相係 To 所有唔識珍惜地球既人&#8230;.包括我</p>
<p>d 相全部用 f/8 2sec 去影, 你可以睇到香港既光害係幾咁勁&#8230;<img src="http://www.hkcug.com/images/smilies/onion/oo62.gif" border="0" alt="" /> 浪費電力就更不在話下</p>
<p>Before<br />
<img src="http://f20.yahoofs.com/hkblog/0ur2j8CRBRC6fBOcfCjDy2VO_1/blog/ap_20090329125932439.jpg.jpg?ib_____DF6PP4yN7" alt="" /><br />
<img src="http://f20.yahoofs.com/hkblog/0ur2j8CRBRC6fBOcfCjDy2VO_1/blog/ap_20090329125943102.jpg.jpg?ib_____DeXIihD84" alt="" /><br />
<img src="http://f20.yahoofs.com/hkblog/0ur2j8CRBRC6fBOcfCjDy2VO_1/blog/ap_20090329125950345.jpg.jpg?ib_____DieBcdzod" alt="" /><br />
After</p>
<p><img src="http://f20.yahoofs.com/hkblog/0ur2j8CRBRC6fBOcfCjDy2VO_1/blog/ap_20090329010011485.jpg.jpg?ib_____Detx4TT2a" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wilsont.net/foto/60-earth-hour-before-after/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
