<?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>I&#039;m CaLendarW Blog &#187; computer science</title>
	<atom:link href="http://wongkalun.idv.hk/category/computer-science/feed/" rel="self" type="application/rss+xml" />
	<link>http://wongkalun.idv.hk</link>
	<description>Put the technology in correct places</description>
	<lastBuildDate>Sun, 18 Apr 2010 16:19:55 +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>Balsamiq Mockups Review</title>
		<link>http://wongkalun.idv.hk/2009/12/20/balsamiq-mockups-review/</link>
		<comments>http://wongkalun.idv.hk/2009/12/20/balsamiq-mockups-review/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 15:22:10 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[balsamiq]]></category>
		<category><![CDATA[mockup]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=754</guid>
		<description><![CDATA[第一次接觸 Balsamiq Mockup, 係今年 barcamp 其中一個 topic 度介紹過, 見到功能幾好用, 所以係佢個 site 度申請左個 license 黎試玩下. 呢個程式最好之處係可以係 Menu 度拉D 組件出黎, 就位容易, 而且提供既組件多, 有 browser, windows 同 iPhone 既 layout, 再加上基本既組件, 簡單方便!!~ 除此之外, 使用方法容易亦係呢個程式最好用之處.  就以下圖為例, 用 enter 來代表換行, + 同 &#8211; 出加減 icon, 用 v 出 tick 等等, 更改容易. 製作完後, 仲可以 Save 做 PNG, PDF 等, 最啱用來 demo [...]]]></description>
			<content:encoded><![CDATA[<p>第一次接觸 <a href="http://www.balsamiq.com/">Balsamiq Mockup</a>, 係今年 <a href="http://barcamp.hk/">barcamp</a> 其中一個 topic 度介紹過, 見到功能幾好用, 所以係佢個 site 度申請左個 license 黎試玩下.</p>
<p><a href="http://wongkalun.idv.hk/wp-content/uploads/2009/12/Web-Sample.png"><img class="alignnone size-medium wp-image-755 dtse-img dtse-post-754" title="Web Sample" src="http://wongkalun.idv.hk/wp-content/uploads/2009/12/Web-Sample-300x229.png" alt="" width="300" height="229" /></a></p>
<p>呢個程式最好之處係可以係 Menu 度拉D 組件出黎, 就位容易, 而且提供既組件多, 有 browser, windows 同 iPhone 既 layout, 再加上基本既組件, 簡單方便!!~</p>
<p><a href="http://wongkalun.idv.hk/wp-content/uploads/2009/12/Component.png"><img class="alignnone size-medium wp-image-763 dtse-img dtse-post-754" title="Component" src="http://wongkalun.idv.hk/wp-content/uploads/2009/12/Component-300x52.png" alt="" width="300" height="52" /></a></p>
<p>除此之外, 使用方法容易亦係呢個程式最好用之處.  就以下圖為例, 用 enter 來代表換行, + 同 &#8211; 出加減 icon, 用 v 出 tick 等等, 更改容易.</p>
<p><a href="http://wongkalun.idv.hk/wp-content/uploads/2009/12/Menu-Sample.png"><img class="alignnone size-medium wp-image-761 dtse-img dtse-post-754" title="Menu Sample" src="http://wongkalun.idv.hk/wp-content/uploads/2009/12/Menu-Sample-300x203.png" alt="" width="300" height="203" /></a></p>
<p>製作完後, 仲可以 Save 做 PNG, PDF 等, 最啱用來 demo 比 client 睇.</p>
<p><a href="http://wongkalun.idv.hk/wp-content/uploads/2009/12/File-Menu.png"><img class="alignnone size-medium wp-image-759 dtse-img dtse-post-754" title="File Menu" src="http://wongkalun.idv.hk/wp-content/uploads/2009/12/File-Menu-236x300.png" alt="" width="236" height="300" /></a></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://wongkalun.idv.hk/2009/12/20/balsamiq-mockups-review/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://wongkalun.idv.hk/2009/12/20/balsamiq-mockups-review/&amp;title=Balsamiq+Mockups+Review" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://wongkalun.idv.hk/2009/12/20/balsamiq-mockups-review/&amp;title=Balsamiq+Mockups+Review" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://wongkalun.idv.hk/2009/12/20/balsamiq-mockups-review/&amp;title=Balsamiq+Mockups+Review&amp;desc=%E7%AC%AC%E4%B8%80%E6%AC%A1%E6%8E%A5%E8%A7%B8%20Balsamiq%20Mockup%2C%20%E4%BF%82%E4%BB%8A%E5%B9%B4%20barcamp%20%E5%85%B6%E4%B8%AD%E4%B8%80%E5%80%8B%20topic%20%E5%BA%A6%E4%BB%8B%E7%B4%B9%E9%81%8E%2C%20%E8%A6%8B%E5%88%B0%E5%8A%9F%E8%83%BD%E5%B9%BE%E5%A5%BD%E7%94%A8%2C%20%E6%89%80%E4%BB%A5%E4%BF%82%E4%BD%A2%E5%80%8B%20site%20%E5%BA%A6%E7%94%B3%E8%AB%8B%E5%B7%A6%E5%80%8B%20license%20%E9%BB%8E%E8%A9%A6%E7%8E%A9%E4%B8%8B.%0D%0A%0D%0A%0D%0A%0D%0A%E5%91%A2%E5%80%8B%E7%A8%8B%E5%BC%8F%E6%9C%80%E5%A5%BD%E4%B9%8B%E8%99%95%E4%BF%82%E5%8F%AF%E4%BB%A5%E4%BF%82%20Menu%20%E5%BA%A6%E6%8B%89D%20%E7%B5%84%E4%BB%B6%E5%87%BA%E9%BB%8E%2C%20%E5%B0%B1%E4%BD%8D%E5%AE%B9%E6%98%93%2C%20%E8%80%8C%E4%B8%94%E6%8F%90%E4%BE%9B%E6%97%A2%E7%B5%84%E4%BB%B6%E5%A4%9A%2C%20%E6%9C%89%20browser%2C%20windows%20%E5%90" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://wongkalun.idv.hk/2009/12/20/balsamiq-mockups-review/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://wongkalun.idv.hk/2009/12/20/balsamiq-mockups-review/&amp;bm_description=Balsamiq+Mockups+Review&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://wongkalun.idv.hk/2009/12/20/balsamiq-mockups-review/&amp;title=Balsamiq+Mockups+Review" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://wongkalun.idv.hk/2009/12/20/balsamiq-mockups-review/&amp;title=Balsamiq+Mockups+Review" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://wongkalun.idv.hk/2009/12/20/balsamiq-mockups-review/&amp;title=Balsamiq+Mockups+Review" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://wongkalun.idv.hk/2009/12/20/balsamiq-mockups-review/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Balsamiq+Mockups+Review+-+http://b2l.me/e7yjh&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>




		<!-- Added by WP-DragToShare-eXtended Plugin -->
		<script type="text/javascript">
			dtsv.dtse_post_754_permalink = 'http://wongkalun.idv.hk/2009/12/20/balsamiq-mockups-review/';
			dtsv.dtse_post_754_title = 'Balsamiq Mockups Review';
		</script>
		<!-- End of WP-DragToShare-eXtended Plugin -->]]></content:encoded>
			<wfw:commentRss>http://wongkalun.idv.hk/2009/12/20/balsamiq-mockups-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>yield keyword</title>
		<link>http://wongkalun.idv.hk/2009/10/29/yield-keyword/</link>
		<comments>http://wongkalun.idv.hk/2009/10/29/yield-keyword/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 16:18:59 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[coding snippet]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=627</guid>
		<description><![CDATA[近期因為睇 ASP.net MVC 既 example, 中途見到 yield keyword 既 usage, 感覺上幾好用, 以學多個 keyword 既原則黎講, 我當然會在 project 中試用, 當中既 validation 用法我覺得幾好. public partial class Dinner { public bool IsHostedBy(string userName) { return HostedBy.Equals(userName, StringComparison.InvariantCultureIgnoreCase); } public bool IsValid { get { return (GetRuleViolations().Count() == 0); } } public IEnumerable&#60;RuleViolation&#62; GetRuleViolations() { if (String.IsNullOrEmpty(Title)) yield return new [...]]]></description>
			<content:encoded><![CDATA[<p>近期因為睇 ASP.net MVC 既 example, 中途見到 <a href="http://msdn.microsoft.com/en-us/library/9k7k7cf0.aspx">yield</a> keyword 既 usage, 感覺上幾好用, 以學多個 keyword 既原則黎講, 我當然會在 project 中試用, 當中既 validation 用法我覺得幾好.</p>
<pre class="brush: csharp;">
public partial class Dinner {

    public bool IsHostedBy(string userName) {
        return HostedBy.Equals(userName, StringComparison.InvariantCultureIgnoreCase);
    }

    public bool IsValid {
        get { return (GetRuleViolations().Count() == 0); }
    }

    public IEnumerable&lt;RuleViolation&gt; GetRuleViolations() {

        if (String.IsNullOrEmpty(Title))
            yield return new RuleViolation(&quot;Title is required&quot;, &quot;Title&quot;);

        if (String.IsNullOrEmpty(Description))
            yield return new RuleViolation(&quot;Description is required&quot;, &quot;Description&quot;);

        if (String.IsNullOrEmpty(HostedBy))
            yield return new RuleViolation(&quot;HostedBy is required&quot;, &quot;HostedBy&quot;);

        if (String.IsNullOrEmpty(Address))
            yield return new RuleViolation(&quot;Address is required&quot;, &quot;Address&quot;);

        if (String.IsNullOrEmpty(Country))
            yield return new RuleViolation(&quot;Country is required&quot;, &quot;Address&quot;);

        if (String.IsNullOrEmpty(ContactPhone))
            yield return new RuleViolation(&quot;Phone# is required&quot;, &quot;ContactPhone&quot;);

        if (!PhoneValidator.IsValidNumber(ContactPhone, Country))
            yield return new RuleViolation(&quot;Phone# does not match country&quot;, &quot;ContactPhone&quot;);

        yield break;
    }
}
</pre>
<p>但當我想在 project 度用果時, 開始感覺到麻煩, 因為本身個 project 係要在 .net 2.0 既環境下運作, 而 IEnumerable<T>.Count 係未有支援, 而且無 <a href="http://msdn.microsoft.com/en-us/library/bb383977.aspx">extension methods</a> 既支援, 所以要另外寫個 class 黎 handle 呢樣野都幾麻煩, 因此我都無乜 idea 在其他方面可以實際上使用得適當&#8230;&#8230;</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://wongkalun.idv.hk/2009/10/29/yield-keyword/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://wongkalun.idv.hk/2009/10/29/yield-keyword/&amp;title=yield+keyword" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://wongkalun.idv.hk/2009/10/29/yield-keyword/&amp;title=yield+keyword" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://wongkalun.idv.hk/2009/10/29/yield-keyword/&amp;title=yield+keyword&amp;desc=%E8%BF%91%E6%9C%9F%E5%9B%A0%E7%82%BA%E7%9D%87%20ASP.net%20MVC%20%E6%97%A2%20example%2C%20%E4%B8%AD%E9%80%94%E8%A6%8B%E5%88%B0%20yield%20keyword%20%E6%97%A2%20usage%2C%20%E6%84%9F%E8%A6%BA%E4%B8%8A%E5%B9%BE%E5%A5%BD%E7%94%A8%2C%20%E4%BB%A5%E5%AD%B8%E5%A4%9A%E5%80%8B%20keyword%20%E6%97%A2%E5%8E%9F%E5%89%87%E9%BB%8E%E8%AC%9B%2C%20%E6%88%91%E7%95%B6%E7%84%B6%E6%9C%83%E5%9C%A8%20project%20%E4%B8%AD%E8%A9%A6%E7%94%A8%2C%20%E7%95%B6%E4%B8%AD%E6%97%A2%20validation%20%E7%94%A8%E6%B3%95%E6%88%91%E8%A6%BA%E5%BE%97%E5%B9%BE%E5%A5%BD.%0D%0A%0D%0A%5Bcsharp%5D%0D%0Apublic%20partial%20class%20Dinner%20%7B%0D%0A%0D%0A%20%20%20%20public%20bool%20IsHostedBy%28string%20user" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://wongkalun.idv.hk/2009/10/29/yield-keyword/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://wongkalun.idv.hk/2009/10/29/yield-keyword/&amp;bm_description=yield+keyword&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://wongkalun.idv.hk/2009/10/29/yield-keyword/&amp;title=yield+keyword" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://wongkalun.idv.hk/2009/10/29/yield-keyword/&amp;title=yield+keyword" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://wongkalun.idv.hk/2009/10/29/yield-keyword/&amp;title=yield+keyword" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://wongkalun.idv.hk/2009/10/29/yield-keyword/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=yield+keyword+-+http://bit.ly/a1QEAU&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>




		<!-- Added by WP-DragToShare-eXtended Plugin -->
		<script type="text/javascript">
			dtsv.dtse_post_627_permalink = 'http://wongkalun.idv.hk/2009/10/29/yield-keyword/';
			dtsv.dtse_post_627_title = 'yield keyword';
		</script>
		<!-- End of WP-DragToShare-eXtended Plugin -->]]></content:encoded>
			<wfw:commentRss>http://wongkalun.idv.hk/2009/10/29/yield-keyword/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chrome 3.0</title>
		<link>http://wongkalun.idv.hk/2009/09/16/chrome-3-0/</link>
		<comments>http://wongkalun.idv.hk/2009/09/16/chrome-3-0/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 13:41:34 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=698</guid>
		<description><![CDATA[今日經 codeproject 個 email subscription, 見到 Google發表左 Google Chrome 3.0, 下載試用後, 改善度都幾大. 對我黎講, 2.0 都有幾多唔 user friendly 既地方, 係 3.0 都進步左. 例如: New Tab &#8211; 如果想在版面上既 link 想係新 Tab 度顯示, 2.0 要 new 左個 tab 至可以拉入去, 比 firefox 多左一個 step, 對我呢個用拉既方法較多既懶人黎講, 用拉既方法係會方便 d, 而 3.0 亦實現左呢個功能. Proxy Setting &#8211; 其本上同 2.0 一樣, 都係 call 返 [...]]]></description>
			<content:encoded><![CDATA[<p>今日經 codeproject 個 email subscription, 見到 Google發表左 <a href="http://www.google.com/chrome">Google Chrome</a> 3.0, 下載試用後, 改善度都幾大.</p>
<p>對我黎講, 2.0 都有幾多唔 user friendly 既地方, 係 3.0 都進步左.<br />
例如:<br />
New Tab &#8211; 如果想在版面上既 link 想係新 Tab 度顯示, 2.0 要 new 左個 tab 至可以拉入去, 比 firefox 多左一個 step, 對我呢個用拉既方法較多既懶人黎講, 用拉既方法係會方便 d, 而 3.0 亦實現左呢個功能.</p>
<p>Proxy Setting &#8211; 其本上同 2.0 一樣, 都係 call 返 windows 果個 proxy setting 出黎, 不過個 setting 版面將 proxy 呢個 function 放左上上面, 對我呢個成日要 enable/disable proxy setting 既人黎講係方便左.</p>
<p>Home Page &#8211; 往個 Home page 都係放最近去既網頁, 而 3.0 就加多左個可以 pin 既功能, 可以比 user 定格某 d 常用既頁面.</p>
<p>Download &#8211; 2.0 個 download 係只會出現在 download 左野果版, 如果轉左第二個版面就會顯示唔到, 3.0 改善左呢個問題, 另到 user 係其他版面都睇到 download status.</p>
<p>除此之外既 advance 功能就似乎對我無乜影響, 有時間既話先再 detail 咁研究~~</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://wongkalun.idv.hk/2009/09/16/chrome-3-0/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://wongkalun.idv.hk/2009/09/16/chrome-3-0/&amp;title=Chrome+3.0" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://wongkalun.idv.hk/2009/09/16/chrome-3-0/&amp;title=Chrome+3.0" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://wongkalun.idv.hk/2009/09/16/chrome-3-0/&amp;title=Chrome+3.0&amp;desc=%E4%BB%8A%E6%97%A5%E7%B6%93%20codeproject%20%E5%80%8B%20email%20subscription%2C%20%E8%A6%8B%E5%88%B0%20Google%E7%99%BC%E8%A1%A8%E5%B7%A6%20Google%20Chrome%203.0%2C%20%E4%B8%8B%E8%BC%89%E8%A9%A6%E7%94%A8%E5%BE%8C%2C%20%E6%94%B9%E5%96%84%E5%BA%A6%E9%83%BD%E5%B9%BE%E5%A4%A7.%0D%0A%0D%0A%E5%B0%8D%E6%88%91%E9%BB%8E%E8%AC%9B%2C%202.0%20%E9%83%BD%E6%9C%89%E5%B9%BE%E5%A4%9A%E5%94%94%20user%20friendly%20%E6%97%A2%E5%9C%B0%E6%96%B9%2C%20%E4%BF%82%203.0%20%E9%83%BD%E9%80%B2%E6%AD%A5%E5%B7%A6.%0D%0A%E4%BE%8B%E5%A6%82%3A%0D%0ANew%20Tab%20-%20%E5%A6%82%E6%9E%9C%E6%83%B3%E5%9C%A8%E7%89%88%E9%9D%A2%E4%B8%8A%E6%97%A2%20link%20%E6%83%B3%E4%BF%82%E6%96%B0%20Tab%20%E5%BA%A6%E9%A1%AF%E7%A4%BA%2C%202.0%20%E8%A6%81%20new%20%E5%B7%A6%E5" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://wongkalun.idv.hk/2009/09/16/chrome-3-0/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://wongkalun.idv.hk/2009/09/16/chrome-3-0/&amp;bm_description=Chrome+3.0&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://wongkalun.idv.hk/2009/09/16/chrome-3-0/&amp;title=Chrome+3.0" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://wongkalun.idv.hk/2009/09/16/chrome-3-0/&amp;title=Chrome+3.0" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://wongkalun.idv.hk/2009/09/16/chrome-3-0/&amp;title=Chrome+3.0" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://wongkalun.idv.hk/2009/09/16/chrome-3-0/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Chrome+3.0+-+http://bit.ly/darO4x&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>




		<!-- Added by WP-DragToShare-eXtended Plugin -->
		<script type="text/javascript">
			dtsv.dtse_post_698_permalink = 'http://wongkalun.idv.hk/2009/09/16/chrome-3-0/';
			dtsv.dtse_post_698_title = 'Chrome 3.0';
		</script>
		<!-- End of WP-DragToShare-eXtended Plugin -->]]></content:encoded>
			<wfw:commentRss>http://wongkalun.idv.hk/2009/09/16/chrome-3-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error 29506 when installing SQL Server 2005 Management Studio Express on Windows 7</title>
		<link>http://wongkalun.idv.hk/2009/08/25/error-29506-when-installing-sql-server-2005-management-studio-express-on-windows-7/</link>
		<comments>http://wongkalun.idv.hk/2009/08/25/error-29506-when-installing-sql-server-2005-management-studio-express-on-windows-7/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 15:26:21 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[error handling]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[windows7]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=692</guid>
		<description><![CDATA[部 x60 今日好似傻傻地, 所以係部 tx2 度預備返個 development environment, 而用開 xp 既我, 換左 win7 之後連入野都好似有 d 問題&#8230;&#8230; 好在係網上搵到以下呢個 procedure: Click &#8220;All Programs&#8221;, select &#8220;Accessories&#8221;, right click the Command Prompt shortcut and select &#8220;Run as Administrator&#8221;. Click &#8220;Yes&#8221; to accept the warning Use command &#8220;cd&#8221; to navigate to the installation directory. Type the installation file to execute [...]]]></description>
			<content:encoded><![CDATA[<div>部 x60 今日好似傻傻地, 所以係部 tx2 度預備返個 development environment, 而用開 xp 既我, 換左 win7 之後連入野都好似有 d 問題&#8230;&#8230;</div>
<div></div>
<div>好在係網上搵到以下呢個 procedure:</div>
<ol>
<li>Click &#8220;All Programs&#8221;, select &#8220;Accessories&#8221;, right click the Command Prompt shortcut and select &#8220;Run as Administrator&#8221;.</li>
<li>Click &#8220;Yes&#8221; to accept the warning</li>
<li>Use command &#8220;cd&#8221; to navigate to the installation directory.</li>
<li>Type the installation file to execute file. (e.g. SQLServer2005_SSMSEE_x64.msi) and complete the installation.</li>
</ol>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://wongkalun.idv.hk/2009/08/25/error-29506-when-installing-sql-server-2005-management-studio-express-on-windows-7/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://wongkalun.idv.hk/2009/08/25/error-29506-when-installing-sql-server-2005-management-studio-express-on-windows-7/&amp;title=Error+29506+when+installing+SQL+Server+2005+Management+Studio+Express+on+Windows+7" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://wongkalun.idv.hk/2009/08/25/error-29506-when-installing-sql-server-2005-management-studio-express-on-windows-7/&amp;title=Error+29506+when+installing+SQL+Server+2005+Management+Studio+Express+on+Windows+7" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://wongkalun.idv.hk/2009/08/25/error-29506-when-installing-sql-server-2005-management-studio-express-on-windows-7/&amp;title=Error+29506+when+installing+SQL+Server+2005+Management+Studio+Express+on+Windows+7&amp;desc=%E9%83%A8%20x60%20%E4%BB%8A%E6%97%A5%E5%A5%BD%E4%BC%BC%E5%82%BB%E5%82%BB%E5%9C%B0%2C%20%E6%89%80%E4%BB%A5%E4%BF%82%E9%83%A8%20tx2%20%E5%BA%A6%E9%A0%90%E5%82%99%E8%BF%94%E5%80%8B%20development%20environment%2C%20%E8%80%8C%E7%94%A8%E9%96%8B%20xp%20%E6%97%A2%E6%88%91%2C%20%E6%8F%9B%E5%B7%A6%20win7%20%E4%B9%8B%E5%BE%8C%E9%80%A3%E5%85%A5%E9%87%8E%E9%83%BD%E5%A5%BD%E4%BC%BC%E6%9C%89%20d%20%E5%95%8F%E9%A1%8C......%0D%0A%0D%0A%E5%A5%BD%E5%9C%A8%E4%BF%82%E7%B6%B2%E4%B8%8A%E6%90%B5%E5%88%B0%E4%BB%A5%E4%B8%8B%E5%91%A2%E5%80%8B%20procedure%3A%0D%0A%0D%0A%09Click%20%22All%20Programs%22%2C%20select%20%22Accessories%22%2C%20right%20click%20the%20Command%20Prompt%20shortcut" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://wongkalun.idv.hk/2009/08/25/error-29506-when-installing-sql-server-2005-management-studio-express-on-windows-7/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://wongkalun.idv.hk/2009/08/25/error-29506-when-installing-sql-server-2005-management-studio-express-on-windows-7/&amp;bm_description=Error+29506+when+installing+SQL+Server+2005+Management+Studio+Express+on+Windows+7&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://wongkalun.idv.hk/2009/08/25/error-29506-when-installing-sql-server-2005-management-studio-express-on-windows-7/&amp;title=Error+29506+when+installing+SQL+Server+2005+Management+Studio+Express+on+Windows+7" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://wongkalun.idv.hk/2009/08/25/error-29506-when-installing-sql-server-2005-management-studio-express-on-windows-7/&amp;title=Error+29506+when+installing+SQL+Server+2005+Management+Studio+Express+on+Windows+7" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://wongkalun.idv.hk/2009/08/25/error-29506-when-installing-sql-server-2005-management-studio-express-on-windows-7/&amp;title=Error+29506+when+installing+SQL+Server+2005+Management+Studio+Express+on+Windows+7" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://wongkalun.idv.hk/2009/08/25/error-29506-when-installing-sql-server-2005-management-studio-express-on-windows-7/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Error+29506+when+installing+SQL+Server+2005+Management+Studio+Express+on+Windows%5B..%5D+-+http://bit.ly/9tQXwb&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>




		<!-- Added by WP-DragToShare-eXtended Plugin -->
		<script type="text/javascript">
			dtsv.dtse_post_692_permalink = 'http://wongkalun.idv.hk/2009/08/25/error-29506-when-installing-sql-server-2005-management-studio-express-on-windows-7/';
			dtsv.dtse_post_692_title = 'Error 29506 when installing SQL Server 2005 Management Studio Express on Windows 7';
		</script>
		<!-- End of WP-DragToShare-eXtended Plugin -->]]></content:encoded>
			<wfw:commentRss>http://wongkalun.idv.hk/2009/08/25/error-29506-when-installing-sql-server-2005-management-studio-express-on-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List.Sort &#8211; Lambda Expression Way</title>
		<link>http://wongkalun.idv.hk/2009/08/18/list-sort-lambda-expression-way/</link>
		<comments>http://wongkalun.idv.hk/2009/08/18/list-sort-lambda-expression-way/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 15:52:40 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[coding snippet]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[sort]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=681</guid>
		<description><![CDATA[呢期研究既 delegation, 其中一個例子係 Lambda 在 List.Sort 既使用. List&#60;Person&#62; persons = new List&#60;Person&#62;(); // sort by name persons.Sort((a,b) =&#62; a.Name.CompareTo(b.Name)); // sort by age persons.Sort((a,b) =&#62; a.Age.CompareTo(b.Age)); bool ascending = false; // descending by age persons.Sort((a,b) =&#62; a.Age.CompareTo(b.Age) * (ascending ? 1 : -1)); 有了這樣既 syntax, 寫 sorting 易左同快捷左很多~~ Subscribe to the comments for this post? [...]]]></description>
			<content:encoded><![CDATA[<p>呢期研究既 delegation, 其中一個例子係 Lambda 在 List<T>.Sort 既使用.</p>
<pre class="brush: csharp;">
List&lt;Person&gt; persons = new List&lt;Person&gt;();

// sort by name
persons.Sort((a,b) =&gt; a.Name.CompareTo(b.Name));

// sort by age
persons.Sort((a,b) =&gt; a.Age.CompareTo(b.Age));

bool ascending = false;

// descending by age
persons.Sort((a,b) =&gt; a.Age.CompareTo(b.Age) * (ascending ? 1 : -1));
</pre>
<p>有了這樣既 syntax, 寫 sorting 易左同快捷左很多~~</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://wongkalun.idv.hk/2009/08/18/list-sort-lambda-expression-way/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://wongkalun.idv.hk/2009/08/18/list-sort-lambda-expression-way/&amp;title=List%3CT%3E.Sort+-+Lambda+Expression+Way" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://wongkalun.idv.hk/2009/08/18/list-sort-lambda-expression-way/&amp;title=List%3CT%3E.Sort+-+Lambda+Expression+Way" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://wongkalun.idv.hk/2009/08/18/list-sort-lambda-expression-way/&amp;title=List%3CT%3E.Sort+-+Lambda+Expression+Way&amp;desc=%E5%91%A2%E6%9C%9F%E7%A0%94%E7%A9%B6%E6%97%A2%20delegation%2C%20%E5%85%B6%E4%B8%AD%E4%B8%80%E5%80%8B%E4%BE%8B%E5%AD%90%E4%BF%82%20Lambda%20%E5%9C%A8%20List.Sort%20%E6%97%A2%E4%BD%BF%E7%94%A8.%0D%0A%0D%0A%5Bcsharp%5D%0D%0AList%26lt%3BPerson%26gt%3B%20persons%20%3D%20new%20List%26lt%3BPerson%26gt%3B%28%29%3B%0D%0A%0D%0A%2F%2F%20sort%20by%20name%0D%0Apersons.Sort%28%28a%2Cb%29%20%3D%26gt%3B%20a.Name.CompareTo%28b.Name%29%29%3B%0D%0A%0D%0A%2F%2F%20sort%20by%20age%0D%0Apersons.Sort%28%28a%2Cb%29%20%3D%26gt%3B%20a.Age.CompareTo%28b.Age%29%29%3B%0D%0A%0D%0Abool%20a" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://wongkalun.idv.hk/2009/08/18/list-sort-lambda-expression-way/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://wongkalun.idv.hk/2009/08/18/list-sort-lambda-expression-way/&amp;bm_description=List%3CT%3E.Sort+-+Lambda+Expression+Way&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://wongkalun.idv.hk/2009/08/18/list-sort-lambda-expression-way/&amp;title=List%3CT%3E.Sort+-+Lambda+Expression+Way" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://wongkalun.idv.hk/2009/08/18/list-sort-lambda-expression-way/&amp;title=List%3CT%3E.Sort+-+Lambda+Expression+Way" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://wongkalun.idv.hk/2009/08/18/list-sort-lambda-expression-way/&amp;title=List%3CT%3E.Sort+-+Lambda+Expression+Way" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://wongkalun.idv.hk/2009/08/18/list-sort-lambda-expression-way/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=List%3CT%3E.Sort+-+Lambda+Expression+Way+-+http://bit.ly/bAZSQI&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>




		<!-- Added by WP-DragToShare-eXtended Plugin -->
		<script type="text/javascript">
			dtsv.dtse_post_681_permalink = 'http://wongkalun.idv.hk/2009/08/18/list-sort-lambda-expression-way/';
			dtsv.dtse_post_681_title = 'List.Sort – Lambda Expression Way';
		</script>
		<!-- End of WP-DragToShare-eXtended Plugin -->]]></content:encoded>
			<wfw:commentRss>http://wongkalun.idv.hk/2009/08/18/list-sort-lambda-expression-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# as operator</title>
		<link>http://wongkalun.idv.hk/2009/08/04/csharp-as-operator/</link>
		<comments>http://wongkalun.idv.hk/2009/08/04/csharp-as-operator/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 15:44:16 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[coding snippet]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=665</guid>
		<description><![CDATA[as operator 係用黎做 casting 的 static void Main() { double x = 1234.7; int a; // Cast double to int. a = (int)x; System.Console.WriteLine(a); } // Output: 1234 如果用 boxing 黎轉 type 既話, 錯 type 的話就會 throw InvalidCastException, 但如果用 as operator 就唔會 throw InvalidCastException, 而 value 就會係 null public static void Main() { object time1 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://msdn.microsoft.com/en-us/library/cscsdfbt%28VS.71%29.aspx">as</a> operator 係用黎做 casting 的</p>
<pre class="brush: csharp;">
static void Main()
{
    double x = 1234.7;
    int a;
    // Cast double to int.
    a = (int)x;
    System.Console.WriteLine(a);
}
// Output: 1234
</pre>
<p>如果用 <a href="http://msdn.microsoft.com/en-us/library/yz2be5wk.aspx">boxing</a> 黎轉 type 既話, 錯 type 的話就會 throw <a href="http://msdn.microsoft.com/en-us/library/system.invalidcastexception.aspx">InvalidCastException</a>, 但如果用 as operator 就唔會 throw InvalidCastException, 而 value 就會係 null</p>
<pre class="brush: csharp;">
public static void Main()
{
    object time1 = DateTime.Now;
    DateTime? t = time1 as DateTime?;    // valid casting
    int? wrongCast = time1 as int?;    // wrongCast == null
}
</pre>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://wongkalun.idv.hk/2009/08/04/csharp-as-operator/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://wongkalun.idv.hk/2009/08/04/csharp-as-operator/&amp;title=C%23+as+operator" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://wongkalun.idv.hk/2009/08/04/csharp-as-operator/&amp;title=C%23+as+operator" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://wongkalun.idv.hk/2009/08/04/csharp-as-operator/&amp;title=C%23+as+operator&amp;desc=as%20operator%20%E4%BF%82%E7%94%A8%E9%BB%8E%E5%81%9A%20casting%20%E7%9A%84%0D%0A%5Bcsharp%5D%0D%0Astatic%20void%20Main%28%29%0D%0A%7B%0D%0A%20%20%20%20double%20x%20%3D%201234.7%3B%0D%0A%20%20%20%20int%20a%3B%0D%0A%20%20%20%20%2F%2F%20Cast%20double%20to%20int.%0D%0A%20%20%20%20a%20%3D%20%28int%29x%3B%0D%0A%20%20%20%20System.Console.WriteLine%28a%29%3B%0D%0A%7D%0D%0A%2F%2F%20Output%3A%201234%0D%0A%5B%2Fcsharp%5D%0D%0A%0D%0A%E5%A6%82%E6%9E%9C%E7%94%A8%20boxing%20%E9%BB%8E%E8%BD%89%20type%20%E6%97%A2%E8%A9%B1%2C%20%E9%8C%AF%20type%20%E7%9A%84%E8%A9%B1%E5%B0%B1%E6%9C%83%20throw%20InvalidCastExcep" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://wongkalun.idv.hk/2009/08/04/csharp-as-operator/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://wongkalun.idv.hk/2009/08/04/csharp-as-operator/&amp;bm_description=C%23+as+operator&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://wongkalun.idv.hk/2009/08/04/csharp-as-operator/&amp;title=C%23+as+operator" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://wongkalun.idv.hk/2009/08/04/csharp-as-operator/&amp;title=C%23+as+operator" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://wongkalun.idv.hk/2009/08/04/csharp-as-operator/&amp;title=C%23+as+operator" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://wongkalun.idv.hk/2009/08/04/csharp-as-operator/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=C%23+as+operator+-+http://bit.ly/8XJWvu&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>




		<!-- Added by WP-DragToShare-eXtended Plugin -->
		<script type="text/javascript">
			dtsv.dtse_post_665_permalink = 'http://wongkalun.idv.hk/2009/08/04/csharp-as-operator/';
			dtsv.dtse_post_665_title = 'C# as operator';
		</script>
		<!-- End of WP-DragToShare-eXtended Plugin -->]]></content:encoded>
			<wfw:commentRss>http://wongkalun.idv.hk/2009/08/04/csharp-as-operator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# ?? null coalescing operator</title>
		<link>http://wongkalun.idv.hk/2009/07/23/c-null-coalescing-operator/</link>
		<comments>http://wongkalun.idv.hk/2009/07/23/c-null-coalescing-operator/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 15:29:44 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[coding snippet]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=654</guid>
		<description><![CDATA[null coalescing operator &#8211; ?? 係用黎決定參數是否 null 既算式, 自 C# 2.0 開始支援, 作為 null 既使用簡化. // .net framework 1.1 既寫法 if (obj.Currency != null) cbxCurrency.SelectedItem = obj.Currency; else cbxCurrency.SelectedItem = DefaultCurrency; // .net framework 2.0 既寫法 cbxCurrency.SelectedItem = obj.Currency ?? DefaultCurrency; 長度上係短左, 識既人會易睇左. 另一方面, 通常既用法會同 Nullable 一齊用, 但自己平時無乜用開 Nullable, 所以對此無乜 comment (知道有呢樣野, 但唔知咩情況用先叫做適合, 所以都未用過. // [...]]]></description>
			<content:encoded><![CDATA[<p>null coalescing operator &#8211; ?? 係用黎決定參數是否 null 既算式, 自 C# 2.0 開始支援, 作為 null 既使用簡化.</p>
<pre class="brush: csharp;">
// .net framework 1.1 既寫法
if (obj.Currency != null)
    cbxCurrency.SelectedItem = obj.Currency;
else
    cbxCurrency.SelectedItem = DefaultCurrency;
</pre>
<pre class="brush: csharp;">
// .net framework 2.0 既寫法
cbxCurrency.SelectedItem = obj.Currency ?? DefaultCurrency;
</pre>
<p>長度上係短左, 識既人會易睇左.  另一方面, 通常既用法會同 Nullable 一齊用, 但自己平時無乜用開 Nullable, 所以對此無乜 comment (知道有呢樣野, 但唔知咩情況用先叫做適合, 所以都未用過.</p>
<pre class="brush: csharp;">
// nullable int
int? i = null;
int result = i ?? 5;
// Output: result == 5
</pre>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://wongkalun.idv.hk/2009/07/23/c-null-coalescing-operator/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://wongkalun.idv.hk/2009/07/23/c-null-coalescing-operator/&amp;title=C%23+%3F%3F+null+coalescing+operator" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://wongkalun.idv.hk/2009/07/23/c-null-coalescing-operator/&amp;title=C%23+%3F%3F+null+coalescing+operator" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://wongkalun.idv.hk/2009/07/23/c-null-coalescing-operator/&amp;title=C%23+%3F%3F+null+coalescing+operator&amp;desc=null%20coalescing%20operator%20-%20%3F%3F%20%E4%BF%82%E7%94%A8%E9%BB%8E%E6%B1%BA%E5%AE%9A%E5%8F%83%E6%95%B8%E6%98%AF%E5%90%A6%20null%20%E6%97%A2%E7%AE%97%E5%BC%8F%2C%20%E8%87%AA%20C%23%202.0%20%E9%96%8B%E5%A7%8B%E6%94%AF%E6%8F%B4%2C%20%E4%BD%9C%E7%82%BA%20null%20%E6%97%A2%E4%BD%BF%E7%94%A8%E7%B0%A1%E5%8C%96.%0D%0A%0D%0A%5Bcsharp%5D%0D%0A%2F%2F%20.net%20framework%201.1%20%E6%97%A2%E5%AF%AB%E6%B3%95%0D%0Aif%20%28obj.Currency%20%21%3D%20null%29%0D%0A%20%20%20%20cbxCurrency.SelectedItem%20%3D%20obj.Currency%3B%0D%0Aelse%0D%0A%20%20%20%20cbxCurrency.SelectedItem%20%3D%20DefaultCurrency%3B" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://wongkalun.idv.hk/2009/07/23/c-null-coalescing-operator/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://wongkalun.idv.hk/2009/07/23/c-null-coalescing-operator/&amp;bm_description=C%23+%3F%3F+null+coalescing+operator&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://wongkalun.idv.hk/2009/07/23/c-null-coalescing-operator/&amp;title=C%23+%3F%3F+null+coalescing+operator" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://wongkalun.idv.hk/2009/07/23/c-null-coalescing-operator/&amp;title=C%23+%3F%3F+null+coalescing+operator" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://wongkalun.idv.hk/2009/07/23/c-null-coalescing-operator/&amp;title=C%23+%3F%3F+null+coalescing+operator" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://wongkalun.idv.hk/2009/07/23/c-null-coalescing-operator/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=C%23+%3F%3F+null+coalescing+operator+-+http://bit.ly/czdKkC&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>




		<!-- Added by WP-DragToShare-eXtended Plugin -->
		<script type="text/javascript">
			dtsv.dtse_post_654_permalink = 'http://wongkalun.idv.hk/2009/07/23/c-null-coalescing-operator/';
			dtsv.dtse_post_654_title = 'C# ?? null coalescing operator';
		</script>
		<!-- End of WP-DragToShare-eXtended Plugin -->]]></content:encoded>
			<wfw:commentRss>http://wongkalun.idv.hk/2009/07/23/c-null-coalescing-operator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MsSQL &#8211; Identity Generator</title>
		<link>http://wongkalun.idv.hk/2009/07/07/mssql-identity-generator/</link>
		<comments>http://wongkalun.idv.hk/2009/07/07/mssql-identity-generator/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 15:24:39 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[error handling]]></category>
		<category><![CDATA[mssql]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=629</guid>
		<description><![CDATA[MsSQL 內既 Identity Generator, 雖然被發現當 Table 儲存超過一百萬行時, 由 SELECT @@Identity 或者 SELECT SCOPE_IDENTITY() 會存在 Return 值錯誤既問題, 但經過呢個幾月既開發都未出現問題. 係 MsSQL 入面, 新增 Record 時主要提取 Primary Key 既方法主要有 @@IDENTITY, SCOPE_IDENTY() 同 IDENT_CURRENT(&#8216;table_name&#8217;) 三種: @@IDENTITY 使用 @@IDENTITY 會 Return 當前 Session 任何 Table 最後生產的 Primary Key, 如果 Insert statement 運行後如果有任何 Trigger 中會 Insert 在其他 Table 的話, @@IDENTITY 就會變得不準確. [...]]]></description>
			<content:encoded><![CDATA[<p>MsSQL 內既 Identity Generator, 雖然被發現當 Table 儲存超過一百萬行時, 由 SELECT @@Identity 或者 SELECT SCOPE_IDENTITY() 會存在 Return 值錯誤既問題, 但經過呢個幾月既開發都未出現問題.</p>
<p>係 MsSQL 入面, 新增 Record 時主要提取 Primary Key 既方法主要有 @@IDENTITY, SCOPE_IDENTY() 同 IDENT_CURRENT(&#8216;table_name&#8217;) 三種:</p>
<p><strong>@@IDENTITY</strong><br />
使用 @@IDENTITY 會 Return 當前 Session 任何 Table 最後生產的 Primary Key, 如果 Insert statement 運行後如果有任何 Trigger 中會 Insert 在其他 Table 的話, @@IDENTITY 就會變得不準確.</p>
<p><strong>SCOPE_IDENTY()</strong><br />
使用 SCOPE_IDENTY() 會 Return 當前 Scope 內確實 Insert 左既 Primary Key, 就算有任何 Trigger 在背後運行都不會有任何影響, 係一個最好既選擇.  不過經由 MS Connect 入面既 <a href="https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=328811">Feedback</a> 顯示, Table 被新增至一百萬行後, Return Value 有可以會籨 1 開始數起, 這問題由 MS 回應既答案中回答到已增加到它們的 Bug tracking database 中.</p>
<p><strong>IDENT_CURRENT(&#8216;table_name&#8217;)</strong><br />
而 IDENT_CURRENT(&#8216;table_name&#8217;) 會 Return 指定 Table 最後生產出來的 Identity, 由於它不會理會任何 Scope 或者 Session, 當有多於一個 Scope 或者 Session 運行時便有機會出現不準確既問題.</p>
<p>因此, 在以上三個尋找 IDENTITY 既方法中, 並沒有一個能在任何環境下百分百準確既方法, 所以在 MsSQL 使用 Identity Generator 便會有潛在問題既可能性, 因此在 deploy 前應該對 Database 作詳細測試, 已確定當前既環境設定正確.</p>
<p>再者, Identity Generator 亦開始慢慢地被其他類型既方案取代, 例如 <a href="http://en.wikipedia.org/wiki/Globally_Unique_Identifier">GUID</a>, Hi/Lo or UUID 等等.</p>
<p>正如之前 <a href="http://wongkalun.idv.hk/2009/06/15/software-engineering-does-not-equal-computer-science/">CS != SE</a> 文章內所講, Technology 其實永遠唔會有錯, 錯就只會錯在未能正確使用它們既人, 而軟件其中一個用途就係用來避免人們使用犯錯, 所以在程式篇寫時應該以不同既設定技巧及文檔來避免人們使用錯誤, 那軟件才容易正確地被使用!!</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://wongkalun.idv.hk/2009/07/07/mssql-identity-generator/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://wongkalun.idv.hk/2009/07/07/mssql-identity-generator/&amp;title=MsSQL+-+Identity+Generator" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://wongkalun.idv.hk/2009/07/07/mssql-identity-generator/&amp;title=MsSQL+-+Identity+Generator" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://wongkalun.idv.hk/2009/07/07/mssql-identity-generator/&amp;title=MsSQL+-+Identity+Generator&amp;desc=MsSQL%20%E5%85%A7%E6%97%A2%20Identity%20Generator%2C%20%E9%9B%96%E7%84%B6%E8%A2%AB%E7%99%BC%E7%8F%BE%E7%95%B6%20Table%20%E5%84%B2%E5%AD%98%E8%B6%85%E9%81%8E%E4%B8%80%E7%99%BE%E8%90%AC%E8%A1%8C%E6%99%82%2C%20%E7%94%B1%20SELECT%20%40%40Identity%20%E6%88%96%E8%80%85%20SELECT%20SCOPE_IDENTITY%28%29%20%E6%9C%83%E5%AD%98%E5%9C%A8%20Return%20%E5%80%BC%E9%8C%AF%E8%AA%A4%E6%97%A2%E5%95%8F%E9%A1%8C%2C%20%E4%BD%86%E7%B6%93%E9%81%8E%E5%91%A2%E5%80%8B%E5%B9%BE%E6%9C%88%E6%97%A2%E9%96%8B%E7%99%BC%E9%83%BD%E6%9C%AA%E5%87%BA%E7%8F%BE%E5%95%8F%E9%A1%8C.%0D%0A%0D%0A%E4%BF%82%20MsSQL%20%E5%85%A5%E9%9D%A2%2C%20%E6%96%B0%E5%A2%9E%20Record%20%E6%99%82%E4%B8%BB%E8%A6%81%E6%8F%90%E5%8F%96%20Primary%20Key%20%E6%97%A2%E6%96%B9%E6%B3%95%E4" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://wongkalun.idv.hk/2009/07/07/mssql-identity-generator/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://wongkalun.idv.hk/2009/07/07/mssql-identity-generator/&amp;bm_description=MsSQL+-+Identity+Generator&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://wongkalun.idv.hk/2009/07/07/mssql-identity-generator/&amp;title=MsSQL+-+Identity+Generator" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://wongkalun.idv.hk/2009/07/07/mssql-identity-generator/&amp;title=MsSQL+-+Identity+Generator" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://wongkalun.idv.hk/2009/07/07/mssql-identity-generator/&amp;title=MsSQL+-+Identity+Generator" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://wongkalun.idv.hk/2009/07/07/mssql-identity-generator/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=MsSQL+-+Identity+Generator+-+http://bit.ly/bfdfwd&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>




		<!-- Added by WP-DragToShare-eXtended Plugin -->
		<script type="text/javascript">
			dtsv.dtse_post_629_permalink = 'http://wongkalun.idv.hk/2009/07/07/mssql-identity-generator/';
			dtsv.dtse_post_629_title = 'MsSQL – Identity Generator';
		</script>
		<!-- End of WP-DragToShare-eXtended Plugin -->]]></content:encoded>
			<wfw:commentRss>http://wongkalun.idv.hk/2009/07/07/mssql-identity-generator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Software Engineering ≠ Computer Science</title>
		<link>http://wongkalun.idv.hk/2009/06/15/software-engineering-does-not-equal-computer-science/</link>
		<comments>http://wongkalun.idv.hk/2009/06/15/software-engineering-does-not-equal-computer-science/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 16:53:11 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[computer science]]></category>
		<category><![CDATA[diary]]></category>
		<category><![CDATA[software engineering]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=620</guid>
		<description><![CDATA[前幾日經 CodeProject 入面既 Email Subscription 介紹, 睇左個 Post 講呢個 Topic, 感覺幾好!!~~ 簡單 d 講就似 Pure Math 同 Apply Math 既分別, Computer Science 主要係研究新科技, 但新科技往往都要經過人來善用, Software Engineering 係包括人既活動. 雖然 Engineering 既原則係想個個人跟住同一套次序, 所做既野都應該差唔多, 但因為個個人唔同, 每個人用唔同心態去做同一樣野都會有好大分別, 所以一組人用一種方法獲得成功, 未必能在另一組人用同一個方法成功, 所以只會用一些 &#8220;通常&#8221; 等等既字眼, Methodology 係咁, Architecture 係咁, 所以先會有 Design Pattern, Anti-Pattern 等等不同技巧既出現, 所以科技係要被正確使用才可以為公司帶來利益, 而何謂正確只能基於使用者對科技既認識, 經驗同思維上. 對我黎講, Computer Science 有些似由零變一既過程, 而 [...]]]></description>
			<content:encoded><![CDATA[<p>前幾日經 CodeProject 入面既 Email Subscription 介紹, 睇左個 <a href="http://www.ddj.com/architect/217701907">Post</a> 講呢個 Topic, 感覺幾好!!~~</p>
<p>簡單 d 講就似 Pure Math 同 Apply Math 既分別, Computer Science 主要係研究新科技, 但新科技往往都要經過人來善用, Software Engineering 係包括人既活動.  雖然 Engineering 既原則係想個個人跟住同一套次序, 所做既野都應該差唔多, 但因為個個人唔同, 每個人用唔同心態去做同一樣野都會有好大分別, 所以一組人用一種方法獲得成功, 未必能在另一組人用同一個方法成功, 所以只會用一些 &#8220;通常&#8221; 等等既字眼, Methodology 係咁, Architecture 係咁, 所以先會有 Design Pattern, Anti-Pattern 等等不同技巧既出現, 所以科技係要被正確使用才可以為公司帶來利益, 而何謂正確只能基於使用者對科技既認識, 經驗同思維上.</p>
<p>對我黎講, Computer Science 有些似由零變一既過程, 而 Software Engineering 就係將一變做二, 三, 四, 五等既進步, 而且 Software Engineering 注重既係每個方面都要求質素管理, 咁先有進步, 及可以容易地發現邊個 Process 有問題而提出改善, 但因為人既不同, 質素往往都存在在實行者既身上, 如果實行者跟得唔足, 質素未必一致, 跟得太跟, 效率未必做得好, 始終 agile 所講既 velocity 都要等到組員成熟先會提升到, 因此軟件既優劣在於實行既人對軟件質素認識同堅持.</p>
<p>而自己最低限度既堅持, 只在於 Coding Standard 既使用, 因為對外行人黎講, Naming Convertion 係最簡單可以由表面上睇到既野, 正所謂人靠衣裝, 如果 Source Code 給予人既外觀都不好既話, 使用程度只會慢慢減低, 跟住就唔會再得到重用, 慢慢形成 Anti-Pattern 中既 Lava Flow, 而且 Naming 本身亦係一個好重要既 Topic, 可以增加 Source Code 既可讀性, 因此自己對呢方面好注重.  另外, 自己雖然比較想用 OOD, 但自己亦唔會將所有野變成 OO, 以自己常用真實物件來代入設計軟件既態度上, 現實上有些東西係唔可以用 OO 係解決, 印象中好似係 Study Semantic Web 既過程入面, Rule Base 同某部份 Knowledge Base 既邏輯如果代成 Object 唔一定係好, 用 Routine Base 可能會較好.</p>
<p>Software Developer, 某程度上除左對 Computer Science 要有一定既認識, 亦都好應該對 Software Engineering 有所既認識, 因為自己係寫軟件, 如果質素做得不好, 科技用不得其所既話, 就可能會做成反效果!!</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://wongkalun.idv.hk/2009/06/15/software-engineering-does-not-equal-computer-science/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://wongkalun.idv.hk/2009/06/15/software-engineering-does-not-equal-computer-science/&amp;title=Software+Engineering+%E2%89%A0+Computer+Science+" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://wongkalun.idv.hk/2009/06/15/software-engineering-does-not-equal-computer-science/&amp;title=Software+Engineering+%E2%89%A0+Computer+Science+" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://wongkalun.idv.hk/2009/06/15/software-engineering-does-not-equal-computer-science/&amp;title=Software+Engineering+%E2%89%A0+Computer+Science+&amp;desc=%E5%89%8D%E5%B9%BE%E6%97%A5%E7%B6%93%20CodeProject%20%E5%85%A5%E9%9D%A2%E6%97%A2%20Email%20Subscription%20%E4%BB%8B%E7%B4%B9%2C%20%E7%9D%87%E5%B7%A6%E5%80%8B%20Post%20%E8%AC%9B%E5%91%A2%E5%80%8B%20Topic%2C%20%E6%84%9F%E8%A6%BA%E5%B9%BE%E5%A5%BD%21%21%7E%7E%0D%0A%0D%0A%E7%B0%A1%E5%96%AE%20d%20%E8%AC%9B%E5%B0%B1%E4%BC%BC%20Pure%20Math%20%E5%90%8C%20Apply%20Math%20%E6%97%A2%E5%88%86%E5%88%A5%2C%20Computer%20Science%20%E4%B8%BB%E8%A6%81%E4%BF%82%E7%A0%94%E7%A9%B6%E6%96%B0%E7%A7%91%E6%8A%80%2C%20%E4%BD%86%E6%96%B0%E7%A7%91%E6%8A%80%E5%BE%80%E5%BE%80%E9%83%BD%E8%A6%81%E7%B6%93%E9%81%8E%E4%BA%BA%E4%BE%86%E5%96%84%E7%94%A8%2C%20Software%20Engineering%20%E4%BF%82%E5%8C%85%E6%8B%AC%E4%BA%BA%E6%97%A2%E6%B4%BB%E5%8B%95.%20" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://wongkalun.idv.hk/2009/06/15/software-engineering-does-not-equal-computer-science/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://wongkalun.idv.hk/2009/06/15/software-engineering-does-not-equal-computer-science/&amp;bm_description=Software+Engineering+%E2%89%A0+Computer+Science+&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://wongkalun.idv.hk/2009/06/15/software-engineering-does-not-equal-computer-science/&amp;title=Software+Engineering+%E2%89%A0+Computer+Science+" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://wongkalun.idv.hk/2009/06/15/software-engineering-does-not-equal-computer-science/&amp;title=Software+Engineering+%E2%89%A0+Computer+Science+" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://wongkalun.idv.hk/2009/06/15/software-engineering-does-not-equal-computer-science/&amp;title=Software+Engineering+%E2%89%A0+Computer+Science+" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://wongkalun.idv.hk/2009/06/15/software-engineering-does-not-equal-computer-science/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Software+Engineering+%E2%89%A0+Computer+Science++-+http://bit.ly/cNTaxb&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>




		<!-- Added by WP-DragToShare-eXtended Plugin -->
		<script type="text/javascript">
			dtsv.dtse_post_620_permalink = 'http://wongkalun.idv.hk/2009/06/15/software-engineering-does-not-equal-computer-science/';
			dtsv.dtse_post_620_title = 'Software Engineering ≠ Computer Science';
		</script>
		<!-- End of WP-DragToShare-eXtended Plugin -->]]></content:encoded>
			<wfw:commentRss>http://wongkalun.idv.hk/2009/06/15/software-engineering-does-not-equal-computer-science/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Control of Duplication</title>
		<link>http://wongkalun.idv.hk/2009/05/22/control-of-duplication/</link>
		<comments>http://wongkalun.idv.hk/2009/05/22/control-of-duplication/#comments</comments>
		<pubDate>Thu, 21 May 2009 16:20:46 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[duplication]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=540</guid>
		<description><![CDATA[近期做緊 Application to Database 呢部份, 開始對 Analysis Patterns 一書中既 Knowledge Level 同 Operation Level 多左理解, 除此之外, 仲開始感受既點樣控制重覆!! Duplication, 係 Program 入面係理應避免的, 正如見到重覆既 Code 就應該進行重構一樣, 但在 Database 層面上既管理又可能係另一種講法. 係 Knowledge Level 入面, 儲存既資料應該避免重覆, 因為所做既係最新既資訊, 以最實時既資訊去處理日常既運作, 雖然用既係最新既資訊, 但儲存落 Database 入面就可能要將所有有關既 Value Object 儲存埋, 因為往後既日子如果 Knowledge Level 有所改變, 亦唔應該影響到 Database 入面 Operation Level 完成品既歷史, 方面了解當時既情況, 等同於 Data Mining [...]]]></description>
			<content:encoded><![CDATA[<p>近期做緊 Application to Database 呢部份, 開始對 <a href="http://www.amazon.com/Analysis-Patterns-Reusable-Addison-Wesley-Technology/dp/0201895420">Analysis Patterns</a> 一書中既 Knowledge Level 同 Operation Level 多左理解, 除此之外, 仲開始感受既點樣控制重覆!! </p>
<p>Duplication, 係 Program 入面係理應避免的, 正如見到重覆既 Code 就應該進行重構一樣, 但在 Database 層面上既管理又可能係另一種講法.  係 Knowledge Level 入面, 儲存既資料應該避免重覆, 因為所做既係最新既資訊, 以最實時既資訊去處理日常既運作, 雖然用既係最新既資訊, 但儲存落 Database 入面就可能要將所有有關既 Value Object 儲存埋, 因為往後既日子如果 Knowledge Level 有所改變, 亦唔應該影響到 Database 入面 Operation Level 完成品既歷史, 方面了解當時既情況, 等同於 Data Mining 一樣, 做既唔係避免重覆, 而係有必要地控制重覆, 呢個就係 Database Design 入面一個重要既地方!!</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://wongkalun.idv.hk/2009/05/22/control-of-duplication/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://wongkalun.idv.hk/2009/05/22/control-of-duplication/&amp;title=Control+of+Duplication" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://wongkalun.idv.hk/2009/05/22/control-of-duplication/&amp;title=Control+of+Duplication" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://wongkalun.idv.hk/2009/05/22/control-of-duplication/&amp;title=Control+of+Duplication&amp;desc=%E8%BF%91%E6%9C%9F%E5%81%9A%E7%B7%8A%20Application%20to%20Database%20%E5%91%A2%E9%83%A8%E4%BB%BD%2C%20%E9%96%8B%E5%A7%8B%E5%B0%8D%20Analysis%20Patterns%20%E4%B8%80%E6%9B%B8%E4%B8%AD%E6%97%A2%20Knowledge%20Level%20%E5%90%8C%20Operation%20Level%20%E5%A4%9A%E5%B7%A6%E7%90%86%E8%A7%A3%2C%20%E9%99%A4%E6%AD%A4%E4%B9%8B%E5%A4%96%2C%20%E4%BB%B2%E9%96%8B%E5%A7%8B%E6%84%9F%E5%8F%97%E6%97%A2%E9%BB%9E%E6%A8%A3%E6%8E%A7%E5%88%B6%E9%87%8D%E8%A6%86%21%21%20%0D%0A%0D%0ADuplication%2C%20%E4%BF%82%20Program%20%E5%85%A5%E9%9D%A2%E4%BF%82%E7%90%86%E6%87%89%E9%81%BF%E5%85%8D%E7%9A%84%2C%20%E6%AD%A3%E5%A6%82%E8%A6%8B%E5%88%B0%E9%87%8D%E8%A6%86%E6%97%A2%20Code%20%E5%B0%B1%E6%87%89%E8%A9%B2%E9%80%B2%E8%A1%8C%E9%87%8D%E6%A7%8B%E4%B8%80%E6%A8" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://wongkalun.idv.hk/2009/05/22/control-of-duplication/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://wongkalun.idv.hk/2009/05/22/control-of-duplication/&amp;bm_description=Control+of+Duplication&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://wongkalun.idv.hk/2009/05/22/control-of-duplication/&amp;title=Control+of+Duplication" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://wongkalun.idv.hk/2009/05/22/control-of-duplication/&amp;title=Control+of+Duplication" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://wongkalun.idv.hk/2009/05/22/control-of-duplication/&amp;title=Control+of+Duplication" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://wongkalun.idv.hk/2009/05/22/control-of-duplication/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Control+of+Duplication+-+http://bit.ly/9r1kLD&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>




		<!-- Added by WP-DragToShare-eXtended Plugin -->
		<script type="text/javascript">
			dtsv.dtse_post_540_permalink = 'http://wongkalun.idv.hk/2009/05/22/control-of-duplication/';
			dtsv.dtse_post_540_title = 'Control of Duplication';
		</script>
		<!-- End of WP-DragToShare-eXtended Plugin -->]]></content:encoded>
			<wfw:commentRss>http://wongkalun.idv.hk/2009/05/22/control-of-duplication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
