<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7148541</id><updated>2011-11-28T08:07:09.110+08:00</updated><category term='setup'/><category term='dragdrop'/><category term='tfs'/><category term='javascript'/><category term='tsclient'/><category term='Hack'/><category term='encoding'/><category term='debugger'/><category term='develop'/><category term='vs2008'/><category term='chorus'/><category term='e220'/><category term='aha'/><category term='tooltip'/><category term='msbuild'/><category term='codecs'/><category term='lyrics'/><category term='mplayer'/><category term='library'/><category term='chrome'/><category term='gnome'/><category term='c#'/><category term='3g'/><category term='firefox'/><category term='tiff'/><category term='sqlserver'/><category term='chartfx'/><category term='linq to sql'/><category term='css'/><category term='plugin'/><category term='rdp'/><category term='extension'/><category term='uac'/><category term='vsts'/><category term='video'/><category term='.net'/><category term='vim'/><category term='reporting server'/><category term='compiz'/><category term='hg'/><category term='e-learning'/><category term='vector'/><category term='addon'/><category term='visualstudio'/><category term='microsoft surface'/><category term='hamachi'/><category term='screenlets'/><category term='wcf'/><category term='apache'/><category term='office'/><category term='tool'/><category term='ntfs'/><category term='silverlight'/><category term='iis7'/><category term='ajax'/><category term='vmware'/><category term='tutorial'/><category term='mount'/><category term='scm'/><category term='x11vnc'/><category term='xslt'/><category term='x31'/><category term='3c'/><category term='surface computing'/><category term='pdf'/><category term='ie'/><category term='tivo'/><category term='style'/><category term='sql2005'/><category term='source'/><category term='smbfs'/><category term='desktop'/><category term='OleDb'/><category term='orcas'/><category term='ie7'/><category term='samba'/><category term='microsoft'/><category term='asp.net'/><category term='vpn'/><category term='fix'/><category term='ria'/><category term='fun'/><category term='ubuntu'/><category term='rotateimage'/><category term='kuso'/><category term='vs2003'/><category term='mercurial'/><category term='chinese'/><category term='vista'/><category term='google'/><category term='Excel'/><title type='text'>BigSan's Blog</title><subtitle type='html'>永不關機的世界</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default?start-index=101&amp;max-results=100'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>107</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7148541.post-4567589774441753448</id><published>2010-05-07T23:07:00.000+08:00</published><updated>2010-05-07T23:07:00.154+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='extension'/><category scheme='http://www.blogger.com/atom/ns#' term='visualstudio'/><title type='text'>我要獨立的 MSDN Helper for VS2010</title><summary type='text'>VS2010 有很多很棒的新玩意兒, 但是最讓我不習慣的就是那本 MSDN Library 竟然變成 Browser 版了, 而且沒有索引, 實在太難用了, 上網查了一下, 果然有人有相同的困擾, 參考網址: http://bit.ly/aRs7sY  簡單記錄一下步驟:     確定 Help 安裝在 local     下載並安裝 Help Viewer Power Tool extension for VS2010(也可以從 VS2010 內的 Extension Manager 安裝)     這樣就可以了, 現在的 Help 就會多兩個 tab, search &amp; index, 可是還是 in-browser 的, 如果想要 standalone 的呈現方式, 那就要再多兩個步驟             先確定工具列中的 Help Library Agent 己經關閉</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/4567589774441753448/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=4567589774441753448' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/4567589774441753448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/4567589774441753448'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2010/05/msdn-helper-for-vs2010.html' title='我要獨立的 MSDN Helper for VS2010'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_ltYY54vIRQU/S-OSdLvtRsI/AAAAAAAAAS0/iAq-mK5pr6c/s72-c/image_thumb.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-5148890669640816914</id><published>2010-04-13T23:43:00.000+08:00</published><updated>2010-04-13T23:43:00.315+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='chrome'/><category scheme='http://www.blogger.com/atom/ns#' term='fix'/><title type='text'>Google Chrome 4 (42898) 最小字型設定</title><summary type='text'>用 Google Chrome 瀏覽 codeplex 網站的討論區都會看到像以下的畫面     左側排版有點亂掉, 打開 Chrome 的開發人員控制台試著調了一下 css, 發現字型設到某一個大小之後, 就不能再更小了, 所以才會導致版面跑掉, google 了一下解決方法, 如下:     先關閉所有的 Google Chrome 程序     找到 %USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default 底下的 Preferences 這個檔案, 用記事本打開它     找到 "webkit" 底下的 "webprefs": {} 區段, 加入下面兩行就可以了      "minimum_font_size": 9,       "minimum_logical_font_size": 9           </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/5148890669640816914/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=5148890669640816914' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5148890669640816914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5148890669640816914'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2010/04/google-chrome-4-42898.html' title='Google Chrome 4 (42898) 最小字型設定'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_ltYY54vIRQU/S8Qu3cr4WxI/AAAAAAAAASc/h4myPQLQId4/s72-c/image_thumb1.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-4933356356081936255</id><published>2010-03-23T12:43:00.003+08:00</published><updated>2010-03-23T12:43:00.155+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='aha'/><title type='text'>throw 和 throw ex 的差別</title><summary type='text'>看看你是否也寫過以下的 code:
    try
    {
        // do something
    }
    catch (Exception ex)
    {
        // do something
        throw ex;     }注意 throw ex; 這一行, 它的用意只是把原來的 exception 再次的抛出去, 看起來好像沒什麼問題, 但是其實這種寫法已經改變的原來的 StackTrace, 一般的用法如果想要抛出原來的例外應該是只要寫 throw; 就可以了, 這樣才能保留原有的 StackTrace, 以下範例可以比較清楚的看出這個問題:

    void Main() {
        try {
            OuterCall();
        } catch (Exception e) {
</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/4933356356081936255/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=4933356356081936255' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/4933356356081936255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/4933356356081936255'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2010/03/throw-throw-ex.html' title='throw 和 throw ex 的差別'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-5289853708952990883</id><published>2010-03-13T09:21:00.001+08:00</published><updated>2010-03-13T09:23:18.691+08:00</updated><title type='text'>26G (260億) 相素巴黎美景</title><summary type='text'>http://www.paris-26-gigapixels.com/index-en.html</summary><link rel='related' href='http://www.paris-26-gigapixels.com/index-en.html' title='26G (260億) 相素巴黎美景'/><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/5289853708952990883/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=5289853708952990883' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5289853708952990883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5289853708952990883'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2010/03/26g-260.html' title='26G (260億) 相素巴黎美景'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_ltYY54vIRQU/S5rog8sVdmI/AAAAAAAAASI/CjIBh-ddvK8/s72-c/screen-capture.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-7543294274232365681</id><published>2010-03-13T08:54:00.001+08:00</published><updated>2010-03-13T08:55:54.229+08:00</updated><title type='text'>LINQ to SQL changes in .NET 4.0</title><summary type='text'>source: http://damieng.com/blog/2009/06/01/linq-to-sql-changes-in-net-40

Change listPerformanceQuery plans are reused more often by specifically defining text parameter lengths (when connecting to SQL 2005 or later)
Identity cache lookups for primary key with single result now includes query.Where(predicate).Single/SingleOrDefault/First/FirstOrDefault
Reduced query execution overhead when </summary><link rel='related' href='http://damieng.com/blog/2009/06/01/linq-to-sql-changes-in-net-40' title='LINQ to SQL changes in .NET 4.0'/><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/7543294274232365681/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=7543294274232365681' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/7543294274232365681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/7543294274232365681'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2010/03/linq-to-sql-changes-in-net-40.html' title='LINQ to SQL changes in .NET 4.0'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-586537131804283253</id><published>2010-03-02T23:34:00.000+08:00</published><updated>2010-03-02T23:34:00.246+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scm'/><category scheme='http://www.blogger.com/atom/ns#' term='mercurial'/><category scheme='http://www.blogger.com/atom/ns#' term='hg'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>在 Ubuntu Apache 下架設 Mercurial Server 筆記</title><summary type='text'>   確定安裝好 apache2      dpkg –l  | grep apache2, 若沒裝則用 sudo apt-get install apache2 安裝           變身成 root      $ sudo su           建立 hg repositories 和 cgi-bin 的存放路徑      # mkdir /var/hg       # mkdir /var/hg/cgi-bin       # mkdir /var/hg/repos           複製 hgwebdir.cgi 到指定位置, 並更改權限為可執行      # cp /usr/share/doc/mercurial/examples/hgwebdir.cgi /var/hg/cgi-bin/       # chmod a+x /var/hg/cgi-bin/</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/586537131804283253/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=586537131804283253' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/586537131804283253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/586537131804283253'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2010/03/ubuntu-apache-mercurial-server.html' title='在 Ubuntu Apache 下架設 Mercurial Server 筆記'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-6328134837435718308</id><published>2009-04-22T16:17:00.001+08:00</published><updated>2009-04-22T16:19:03.964+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='vs2008'/><category scheme='http://www.blogger.com/atom/ns#' term='fix'/><title type='text'>ui.datepicker.js 會破壞 Visual Studio 2008 的 intellisense</title><summary type='text'>在引入 jQuery ui 套件中的 ui.datepicker.js 之後, 出現了 "'jQuery.support.htmlSerialize' 是 null 或不是一個物件" 的錯誤, 造成 VS2008 的 intellisense 失效, 雖然並不是那麼依賴 intellisense, 但是看到錯誤訊息就是不舒服, 所以就花了點時間找了一下到底是什麼地方造成的錯誤, 當然先從最可疑的部分(非 funciton 定義的 code)開始找, 在最底部發現以下的 code:  $.datepicker = new Datepicker(); // singleton instance
$.datepicker.initialized = false;
$.datepicker.uuid = new Date().getTime();
$.datepicker.version = "</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/6328134837435718308/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=6328134837435718308' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6328134837435718308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6328134837435718308'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2009/04/uidatepickerjs-visual-studio-2008.html' title='ui.datepicker.js 會破壞 Visual Studio 2008 的 intellisense'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-8394367133176734719</id><published>2009-02-18T08:54:00.001+08:00</published><updated>2009-02-18T08:54:34.869+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><title type='text'>取消正在執行的 WebService (ASP.NET AJAX)</title><summary type='text'>假設我們有一個 Web service 是 Demo.Service1.SayHello, 如果我們想要在發出要求之後能夠取消的話, 可以用以下的方式  1. 宣告一個 executor 變數來存放等會兒發出的 web service request  2. 新增一個 invokingRequest 的事件處理, 像這樣  var executor = null;
Sys.Net.WebRequestManager.add_invokingRequest(function(sender, args) {
    executor = args.get_webRequest().get_executor();
})


3. 最後再寫一個函式在你想要取消的時候呼叫, 以取消 web service request

function abortRequest() {
    if (</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/8394367133176734719/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=8394367133176734719' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/8394367133176734719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/8394367133176734719'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2009/02/webservice-aspnet-ajax.html' title='取消正在執行的 WebService (ASP.NET AJAX)'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-1677593174486592889</id><published>2008-12-27T23:13:00.003+08:00</published><updated>2008-12-27T23:13:45.826+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vs2008'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver'/><category scheme='http://www.blogger.com/atom/ns#' term='fix'/><title type='text'>Unable to load DLL 'sqlceme35.dll'</title><summary type='text'>在下載 Visual Studio Team System 2008 Database Edition GDR 安裝在我的 Vista x64 上之後, 竟然沒辦法建立 Database 專案, 在新增專案的時候, 出現了如下圖的錯誤訊息!     搜尋了一下電腦並沒有發現這個檔案, 從名字看起來應該是和 SQL Compact Edition 有關, 可是又無從得知是哪一個套件含有這個檔案, 只好猜猜看了, 和 SQL CE 相關的套件有分 ServerTools, DesignTools, Runtime 三種, 而且又有區分 x86 和 x64 的平台, 而且還得要是 SP1 的版本才行, 實驗了一下後發現 Microsoft SQL Server Compact 3.5 SP1 是 Runtime 套件, Microsoft SQL Server Compact 3.5 SP1 </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/1677593174486592889/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=1677593174486592889' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1677593174486592889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1677593174486592889'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/12/unable-to-load-dll.html' title='Unable to load DLL &amp;#39;sqlceme35.dll&amp;#39;'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_ltYY54vIRQU/SVZGJh30XxI/AAAAAAAAAP0/25jMs_pTly8/s72-c/image_thumb1.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-4525477726681151765</id><published>2008-12-27T23:13:00.001+08:00</published><updated>2008-12-27T23:13:24.755+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><title type='text'>Safari 和 ASP.NET Menu 控制項</title><summary type='text'>早在 ASP.NET 剛推出之時就一直強調能夠適應不同的用戶端產出對應的 Markup Code, 可是沒想到 Menu 控制項在 Safari 卻出了問題, 看了一下產出的網頁原始碼, 發現產出的 HTML 不一樣, 當時的第一個直覺反應是想到 ASP.NET CSS Friendly Control Adapter 專案, 應該和它有關, 一定是套用到了不同的 ControlAdapter 才會產出不同的 HTML, 所以如果要解決這個的問題, 應該也可以採用和它相同的技巧才對!  找到 %SystemRoot%\Microsoft.NET\Framework\v2.0.50727\CONFIG\Browsers 資料夾底下的 mozilla.browser 檔案, 裡面明白的寫著    就因為那個 controlAdapter 導致 Safari 在產出 Menu 的 HTML </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/4525477726681151765/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=4525477726681151765' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/4525477726681151765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/4525477726681151765'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/12/safari-aspnet-menu.html' title='Safari 和 ASP.NET Menu 控制項'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_ltYY54vIRQU/SVZGE1RS3bI/AAAAAAAAAPs/Hwg8oVOgLBc/s72-c/image_thumb15.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-806660446890577610</id><published>2008-10-04T07:20:00.001+08:00</published><updated>2008-10-04T07:20:55.513+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>解決 ADO.NET Data Services 搭配 LINQ to SQL Classes 的問題</title><summary type='text'>在 MSDN 或是網上看到的 ADO.NET Data Services 範例通常都是搭配 ADO.NET Entity Data Model 來展示, 比較少看到使用 LINQ to SQL Classes 的案例, 後來自己試了一下, 才發現原來是因為使用 LINQ to SQL Classes 會有一些小問題, 就是 Table 的 Key 必需要符合 {TableName}ID 的命名原則, 否則就會產生如下圖的伺服器例外, 但如果是使用 ADO.NET Entity Data Model 的話就不會有這樣的問題!        要解決這個問題是有方法的, 一是打開 .dbml 檔將類別的屬性名稱改成 TableNameID 的格式, 但是這樣好像有點笨, 僅適合用在剛開始開發的階段, 否則光測試就要人命了, 另一種解決方案比較優, 是利用 </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/806660446890577610/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=806660446890577610' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/806660446890577610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/806660446890577610'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/10/adonet-data-services-linq-to-sql.html' title='解決 ADO.NET Data Services 搭配 LINQ to SQL Classes 的問題'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/bigsan.chen/SOao1mP2QmI/AAAAAAAAAMU/xrGWzvciOOE/s72-c/image_thumb6.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-2056897616939181011</id><published>2008-09-27T01:01:00.003+08:00</published><updated>2008-09-27T01:01:38.611+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>巢狀 using 排版</title><summary type='text'>  原來的格式  using (Rijndael aes = RijndaelManaged.Create())
{
    using (ICryptoTransform cryptor = aes.CreateEncryptor(rgbKey, rgbIV))
    {
        using (CryptoStream cs = new CryptoStream(output, cryptor, CryptoStreamMode.Write))
        {
            byte[] buf = new byte[8192];
            for (int len = 0; (len = input.Read(buf, 0, buf.Length)) &gt; 0; )
            {
                cs.Write(</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/2056897616939181011/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=2056897616939181011' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/2056897616939181011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/2056897616939181011'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/09/using.html' title='巢狀 using 排版'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-5196648154707498251</id><published>2008-09-27T01:01:00.001+08:00</published><updated>2008-09-27T01:01:09.180+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ie'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><title type='text'>Change default code access security policy with caspol.exe</title><summary type='text'>為了解決讓網頁中的 .NET 元件能夠存取剪貼簿問題, 需要做兩件事, 第一件是先將該網站加入信任網站列表, 第二件是調整 .NET Framework 針對信任網站的預設安全性, 要從 Low Trust 調整為 Medium Trust  第一件事比較簡單, 就略過不提, 第二件事就比較複雜一點, 如果 user 的電腦有裝 .NET Framework SDK 的話(通常是不太可能) 還可以透過系統管理工具裡面的 Microsoft .NET Framework 2.0 Configuration Tool 來調整, 否則的話, 最快最簡單的方式就是透過 caspol.exe 這個 .NET Framework 2.0 提供的指令來完成, 如下:  變更 Trusted 站台預設的安全性為 LocalIntranet - Medium Trust (預設為 Internet - </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/5196648154707498251/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=5196648154707498251' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5196648154707498251'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5196648154707498251'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/09/change-default-code-access-security.html' title='Change default code access security policy with caspol.exe'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-5685448740575640105</id><published>2008-09-27T01:00:00.001+08:00</published><updated>2008-09-27T01:00:32.439+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><title type='text'>Enable trace log of HttpWebRequest</title><summary type='text'>之前為了解決一個 .NET 1.1 的 HttpWebRequest.KeepAlive 屬性所造成的 Proxy-Authenticate 失敗問題, 在尋找答案的過程中不小心又多學到一招關於 .NET 內建的 Trace 功能, 其實早在很久以前就曾經用 Reflector 在 System.Net 下面的類別中看到一些和 Log 有關的程式碼, 只是那時候沒有多去注意該怎麼把那些 Log 資訊顯示出來, 這次碰巧看到, 順便記錄一下!!  啟用 Log 的方式就是仿照以下的格式修改 config 檔, 針對想要觀看 Log 的類別調整一下注解即可! 要注意的是記得在正式出貨前關閉此 Log, 否則效率會很差!  &lt;?xml version="1.0" encoding="UTF-8" ?&gt;
&lt;configuration&gt;
    &lt;system.diagnostics&gt;
</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/5685448740575640105/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=5685448740575640105' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5685448740575640105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5685448740575640105'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/09/enable-trace-log-of-httpwebrequest.html' title='Enable trace log of HttpWebRequest'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-2041336246106176647</id><published>2008-08-31T15:26:00.005+08:00</published><updated>2008-09-26T14:14:56.485+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver'/><title type='text'>Enable FILESTREAM Feature in SQL 2008</title><summary type='text'>如果在安裝的時候沒有 Enable FILESTREAM 功能的話, 可以在安裝完後, 按以下步驟執行:   .最後再執行以下句子就可以了!EXEC sys.sp_configure N'filestream access level', N'0'
GO
RECONFIGURE WITH OVERRIDE
GO

keywords: sqlserver, sql2008, FILESTREAM</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/2041336246106176647/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=2041336246106176647' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/2041336246106176647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/2041336246106176647'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/08/enable-filestream-feature-in-sql-2008.html' title='Enable FILESTREAM Feature in SQL 2008'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/bigsan.chen/SLpHgmAwJ2I/AAAAAAAAAL8/nOjmxZ8Vo78/s72-c/image_thumb1.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-5292927157628956361</id><published>2008-08-31T15:26:00.004+08:00</published><updated>2008-09-26T13:59:13.294+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>.NET 1.1 WebRequest KeepAlive 和 WebProxy.Credentials 的奇怪現象</title><summary type='text'>發生在一個 .NET 1.1 的 App 上的問題, 簡化後的程式碼如下:HttpWebRequest request = WebRequest.Create(url) as HttpWebRequest;
request.KeepAlive = false;

request.Proxy = new WebProxy(proxyServer);
request.Proxy.Credentials = new NetworkCredential(userName, password);

HttpWebResponse response = request.GetResponse() as HttpWebResponse;
response.Close();因為某種原因, 在一開始時刻意將 KeepAlive 屬性設為 false, 導致了這個奇怪現象的發生, 而且只會在 .NET </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/5292927157628956361/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=5292927157628956361' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5292927157628956361'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5292927157628956361'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/08/net-11-webrequest-keepalive.html' title='.NET 1.1 WebRequest KeepAlive 和 WebProxy.Credentials 的奇怪現象'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-3908311731199145030</id><published>2008-08-31T15:25:00.001+08:00</published><updated>2008-08-31T15:25:28.481+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver'/><title type='text'>SQL Server 2008 沒有 Surface Area Configuration Tool</title><summary type='text'>好不容易等到 VS2008 SP1 出來, 終於可以順利安裝完 SQL 2008, 卻發現原來在 SQL 2005 內的兩個工具不見了, 它們是:     Surface Area Configuration for Services and Connections     Surface Area Configuration for Features    它們通常一個是用來設定開放外部電腦透過 TCP/IP 連線, 一個是用來開啟 clr 或是 database mail 的功能用的, 到了 SQL 2008 這個兩個工具都消失了, 那該怎麼做相關的設定呢?  關於第一個 Services and Connections 的設定, 現在可以在 SQL Server Configuration Manager 這個新工具中進行設定, 像 TCP/IP 的設定就可以在 SQL </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/3908311731199145030/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=3908311731199145030' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/3908311731199145030'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/3908311731199145030'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/08/sql-server-2008-surface-area.html' title='SQL Server 2008 沒有 Surface Area Configuration Tool'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/bigsan.chen/SLpHZS-zeqI/AAAAAAAAAL0/qOu--NoBf0o/s72-c/image_thumb1.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-1532690008050781385</id><published>2008-08-09T01:15:00.005+08:00</published><updated>2008-08-11T09:15:19.884+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='develop'/><title type='text'>透過 FontFamily.GetName 取得特定語系的字型名稱</title><summary type='text'>一個簡單的列舉就可以找出系統內字型的特定語系名稱:  foreach (FontFamily f in FontFamily.Families)
{
    Console.WriteLine(f.GetName(0) + ":" + f.GetName(0x409));
}

在尋找答案的過程, 意外的多學了幾個關於 LanguageID 的小知識, 原來 language ID 是一個 16 bit 的值, 由兩個部分組成, primary language ID 和 secondary language ID, 結構示意圖如下:

 

其中 Sublanguage ID 僅佔了 6 bits, 一閞始困為沒注意到所以導致計算的結果有誤, 後來仔細看才發現原來兩部份的長度是不同的, 舉個實例來說明一下:

//  winnt.h
//
//  Primary language </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/1532690008050781385/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=1532690008050781385' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1532690008050781385'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1532690008050781385'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/08/fontfamilygetname.html' title='透過 FontFamily.GetName 取得特定語系的字型名稱'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/bigsan.chen/SJx_P8P2klI/AAAAAAAAALk/uVY56GdPnrg/s72-c/image_thumb7.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-456316605380970197</id><published>2008-08-09T01:15:00.003+08:00</published><updated>2008-08-09T01:15:30.591+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><category scheme='http://www.blogger.com/atom/ns#' term='sql2005'/><title type='text'>使用 ADO.NET 接回 SQL Server 的 PRINT Message</title><summary type='text'>常看到有人被這個問題困擾, 自己以前也曾經被這個問題所苦, 可是其實這個問題是很容易解的, 看範例:  using (SqlConnection conn = new SqlConnection("Data Source=(local);Initial Catalog=AdventureWorks;Integrated Security=SSPI"))
{
    conn.InfoMessage += new SqlInfoMessageEventHandler(SqlConnection_InfoMessage);

    conn.Open();
    SqlCommand cmd = conn.CreateCommand();
    cmd.CommandText = "DBCC CHECKIDENT ('HumanResources.Employee', NORESEED</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/456316605380970197/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=456316605380970197' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/456316605380970197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/456316605380970197'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/08/adonet-sql-server-print-message.html' title='使用 ADO.NET 接回 SQL Server 的 PRINT Message'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-9054135131433785717</id><published>2008-08-09T01:15:00.001+08:00</published><updated>2008-08-09T01:15:18.489+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='microsoft'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver'/><title type='text'>SQL Server 2008 RTM 出現了</title><summary type='text'>今天在逛微軟網站的時候, 突然發現上週還是 RC0 版本的 SQL Server 2008 的下載連結, RC0 的字樣不見了, 原本預計 7/31 發行的 RTM 版本, 在 8/6 出現在 MSDN 的下載區, 想要嚐鮮的朋友們可以去下載 180 天的試用版來玩玩了!  </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/9054135131433785717/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=9054135131433785717' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/9054135131433785717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/9054135131433785717'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/08/sql-server-2008-rtm.html' title='SQL Server 2008 RTM 出現了'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-642825620874632515</id><published>2008-07-26T12:56:00.001+08:00</published><updated>2008-07-26T12:56:11.464+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='ie'/><title type='text'>用 JavaScript 複製網頁上的圖片到剪貼簿</title><summary type='text'>在 IE 中很簡單就能辦到, 至於其他的瀏覽器......目前還沒這個需求, 先擱著~~~~~  var img = document.getElementsByTagName("IMG")[0];
var rng = document.body.createControlRange();
rng.add(img);
rng.execCommand('Copy');

真是簡單到不行! 可以看出 Microsoft 當初那群規劃設計 IE 的人實在是太厲害了!!

Keywords: clipboard, ie, copy image, javascript  </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/642825620874632515/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=642825620874632515' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/642825620874632515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/642825620874632515'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/07/javascript.html' title='用 JavaScript 複製網頁上的圖片到剪貼簿'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-6675258602132897749</id><published>2008-07-26T12:04:00.001+08:00</published><updated>2008-07-26T12:52:12.150+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='chartfx'/><category scheme='http://www.blogger.com/atom/ns#' term='develop'/><title type='text'>變更 ChartFX 7.0 的輸出路徑</title><summary type='text'>ChartFX 是一個很強大的圖表軟體, 特別是到了 2005 的版本之後, 運用了 DHTML 和 AJAX 的技術, 讓原先要透過安裝 ActiveX 才能達到的效果, 也可以直接在網頁上呈現, 而且互動性也像 ActiveX 一樣的好, 但是代價就是要多付出一些 server 和 client 之間資料的來回傳送!  在實際使用 ChartFX 7.0 開發 Web App 的時候,  發現了一個現象, 就是如果透過 Visual Studio 內建的 WebDev.WebServer.exe 啟動的話, ChartFX 的暫存檔會輸出到 ~/chartfx70/temp/ 底下, 可是當佈署到 IIS 之後, 它會在 WebSite 的根目錄下建立一個 /chartfx70 虛擬目錄, 這時候如果透過 ISA 將內部網站發佈出去的話, 除了要開放該 Web 應用程式的路徑之外, </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/6675258602132897749/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=6675258602132897749' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6675258602132897749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6675258602132897749'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/07/chartfx-70.html' title='變更 ChartFX 7.0 的輸出路徑'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/bigsan.chen/SIqiMip1xgI/AAAAAAAAALc/nxWO0LFhznI/s72-c/image_thumb1.png?imgmax=800' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-8785222815749422088</id><published>2008-07-26T12:02:00.001+08:00</published><updated>2008-07-26T12:57:58.430+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tiff'/><category scheme='http://www.blogger.com/atom/ns#' term='pdf'/><title type='text'>/CCITTFaxDecode /ASCII85Decode /DCTDecode</title><summary type='text'>為了要擷取出內嵌在 PDF 檔中的影像, 稍微研究了一下 PDF 的規格, 一開始的目的是要解出其中的 TIFF 檔, 看起來好像挺簡單的, 因為從 PDF 中可以很容易的就把 TIFF 的 stream 取出來 (找到 /Filter /CCITTFaxDecode 的區段, 後續出現被包在 stream.....endstream 中的就是了), 但是結果當然並不是把那段 stream 存檔這麼簡單就行了, 因為 TIFF 本身還有一些檔頭和檔尾資訊必須處理, 所以又得再花精神去研究 TIFF 的規格(TIFF 6.0 Specification).....然後依據 pdf object 的描述自行寫入相關的檔頭和檔尾就可以了(看起來還滿簡單的吧)!  檔頭的部分很簡單, 因為只有 8 個 bytes, 很容易理解, 麻煩的是後面檔尾部分的 IFD (Image File </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/8785222815749422088/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=8785222815749422088' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/8785222815749422088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/8785222815749422088'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/07/ccittfaxdecode-ascii85decode-dctdecode.html' title='/CCITTFaxDecode /ASCII85Decode /DCTDecode'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/bigsan.chen/SIqhvghRriI/AAAAAAAAALM/J4VaM4mC7lo/s72-c/image_thumb16.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-5916108362140187401</id><published>2008-07-25T13:40:00.001+08:00</published><updated>2008-07-25T13:40:39.558+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql2005'/><category scheme='http://www.blogger.com/atom/ns#' term='fix'/><title type='text'>Failed to initialize the Common Language Runtime (CLR) v2.0.50727 with HRESULT 0x8007000e</title><summary type='text'>奇怪的 SQL Server 問題, 在 Google 上找了很久, 好不容易找到一個看起來好像是解決辦法: http://forums.asp.net/t/1098345.aspx  "Finally found out the solution for it. When you installed SQL server, the installation does not automatically allocate memory to CLR. You need to explicitly allocate atlease 500 MB ram for it."  可是它沒有教說要怎麼 "allocate atlease 500 MB", 真是令人失望!  最後終於在 Microsoft Connect 網站找到答案: http://connect.microsoft.com/</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/5916108362140187401/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=5916108362140187401' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5916108362140187401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5916108362140187401'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/07/failed-to-initialize-common-language.html' title='Failed to initialize the Common Language Runtime (CLR) v2.0.50727 with HRESULT 0x8007000e'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-5710866036455101862</id><published>2008-06-16T10:21:00.001+08:00</published><updated>2008-06-16T10:21:13.986+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='iis7'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><title type='text'>在64-Bit作業系統執行會呼叫到32-Bit元件的程式</title><summary type='text'>前陣子在 64-Bit 的 Windows 2008 上發佈了一個網站程式, 雖然過程中有點小障礙(因為 IIS 7.0 的介面完全不一樣, 很多東西要重新找一遍, 還有 web.config 要透過 appcmd 來作 migrate, 除了這兩個障礙以外, 其他的都還算簡單), 但是還是順利完成  可是後來在做測試的時候, 發現有一個呼叫 COM 元件的網頁一直出現錯誤, google 了一下說是因為在 64-Bit 環境中使用到 32-Bit 資源所導致的, 解決的方法是 you need to change CPU type from “Any CPU”, to “x86″, 可是這是 Web Application, 上述的解決方法根本不可行, 一定還有別的出路, 後來終於在 IIS 的 Application Pools 找到了相關的設定, 只要把 Enable 32-Bit</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/5710866036455101862/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=5710866036455101862' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5710866036455101862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5710866036455101862'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/06/64-bit32-bit.html' title='在64-Bit作業系統執行會呼叫到32-Bit元件的程式'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/bigsan.chen/SFXOGbZd-1I/AAAAAAAAAKU/Z5WYK9hYC-I/s72-c/image_thumb%5B1%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-4700644779675875469</id><published>2008-06-16T09:12:00.001+08:00</published><updated>2008-06-16T09:13:19.165+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='silverlight'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft'/><title type='text'>Silverlight 2 Beta 2 的重大變更</title><summary type='text'>官方文件: http://msdn.microsoft.com/en-us/library/cc645049(VS.95).aspx  </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/4700644779675875469/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=4700644779675875469' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/4700644779675875469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/4700644779675875469'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/06/silverlight-2-beta-2.html' title='Silverlight 2 Beta 2 的重大變更'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-1845712542176096095</id><published>2008-04-09T09:10:00.001+08:00</published><updated>2008-04-09T09:10:34.706+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tool'/><category scheme='http://www.blogger.com/atom/ns#' term='pdf'/><title type='text'>看起來滿好用的 PDF 瀏覽工具</title><summary type='text'>昨天在看 PDF 文件的時候, 想在中間加個書籤, 突然發現 Adobe Reader 既然沒有這個功能, 印象中以前好像可以自行加註解和書籤的啊? 難到是記錯了?  突然在 Adobe 官網發現一個 Flash Application, 叫做 Adobe Digital Edition, 看起來質感還不錯, 適合有很多 PDF 文件的人拿來管理自己的 PDF, 重點是它可以自己加書籤!!    </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/1845712542176096095/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=1845712542176096095' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1845712542176096095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1845712542176096095'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/04/pdf.html' title='看起來滿好用的 PDF 瀏覽工具'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-3589181269139026182</id><published>2008-04-09T09:02:00.003+08:00</published><updated>2008-04-09T09:02:46.169+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fun'/><title type='text'>有趣的書架</title><summary type='text'>   看出其中有趣的地方了嗎? 會寫點程式的人應該都能體會吧!!  出處: Equation Bookshelf  </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/3589181269139026182/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=3589181269139026182' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/3589181269139026182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/3589181269139026182'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/04/blog-post.html' title='有趣的書架'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-2437752789878376039</id><published>2008-04-09T09:02:00.001+08:00</published><updated>2008-04-09T09:02:25.849+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Json.NET on codeplex</title><summary type='text'>在 Codeplex 上看到的一個簡單明瞭的 Json 類別庫!  Product product = new Product();
product.Name = "Apple";
product.Expiry = new DateTime(2008, 12, 28);
product.Price = 3.99M;
product.Sizes = new string[] { "Small", "Medium", "Large" };

string json = JavaScriptConvert.SerializeObject(product);
//{
//  "Name": "Apple",
//  "Expiry": new Date(1230422400000),
//  "Price": 3.99,
//  "Sizes": [
//    "Small",
//    "</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/2437752789878376039/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=2437752789878376039' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/2437752789878376039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/2437752789878376039'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/04/jsonnet-on-codeplex.html' title='Json.NET on codeplex'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-8837285672905350947</id><published>2008-04-09T08:58:00.001+08:00</published><updated>2008-04-09T08:58:07.525+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='develop'/><title type='text'>自訂類似 flashget:// 的 URL Protocol</title><summary type='text'>想要有類似 flashget:// 或是 ed2k:// 這樣能夠叫起特別程式來服務的功能該怎麼作呢?  想辦法加上類似以下的機碼, 只要換掉紅字的部分即可!   --------------------------------------   Windows Registry Editor Version 5.00   [HKEY_CLASSES_ROOT\note]    @="URL:Notepad Protocol"     "URL Protocol"=""   [HKEY_CLASSES_ROOT\note\DefaultIcon]    @="notepad.exe"   [HKEY_CLASSES_ROOT\note\shell]   [HKEY_CLASSES_ROOT\note\shell\open]   [HKEY_CLASSES_ROOT\note\shell\</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/8837285672905350947/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=8837285672905350947' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/8837285672905350947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/8837285672905350947'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/04/flashget-url-protocol.html' title='自訂類似 flashget:// 的 URL Protocol'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-2551098539323666865</id><published>2008-04-09T08:50:00.007+08:00</published><updated>2008-09-26T14:12:40.873+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>HttpWebRequest 與 https</title><summary type='text'>HttpWebRequest 透過 SSL 取得網頁資訊時, 如果對方網站的憑證不被自己的電腦所信任的話, 就會出現 "基礎連接已關閉: 無法為 SSL/TLS 安全通道建立信任關係。" 的錯誤, 英文版的錯誤訊息是 "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.", 在 .NET 1.1 時代曾經用 ServicePointManager.CertificatePolicy 解決過這個問題, 但到了 .NET 2.0 之後, 該方法被列為 obsolete 了, 所以就研究了一下新的方法, 順便做個記錄// .NET 1.1
ServicePointManager.CertificatePolicy = new </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/2551098539323666865/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=2551098539323666865' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/2551098539323666865'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/2551098539323666865'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/04/httpwebrequest-https.html' title='HttpWebRequest 與 https'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-8511549697569511268</id><published>2008-04-09T08:50:00.005+08:00</published><updated>2008-04-09T08:50:40.164+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Hack'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><title type='text'>使用 WebBrowser.DocumentText 載入內容時忽略 JavaScript 錯誤</title><summary type='text'>在 Windows Forms 內放置 WebBrowser 控件時, 如果透過 DocumentText 的方式填入有使用 JavaScript 的網頁的話, 若該網頁的 Script 有錯誤的話, 就會跳出煩人的視窗, 實在很討厭, 試了很多屬性都搞不定, 最後只好使用特殊手段來解決 -- 自行嵌入一段錯誤處理的 JavaScript, 這樣就不會有煩人的錯誤視窗了, 要嵌入的 JavsScript 如下:  "&lt;script type='text/javascript'&gt;window.onerror = function(){};&lt;/script&gt;"
  </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/8511549697569511268/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=8511549697569511268' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/8511549697569511268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/8511549697569511268'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/04/webbrowserdocumenttext-javascript.html' title='使用 WebBrowser.DocumentText 載入內容時忽略 JavaScript 錯誤'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-5241257543618216987</id><published>2008-04-09T08:50:00.003+08:00</published><updated>2008-04-09T08:50:25.635+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='microsoft'/><category scheme='http://www.blogger.com/atom/ns#' term='sql2005'/><title type='text'>升級 SqlServer Management Studio</title><summary type='text'>如果電腦裡有先安裝過 SQL Server Management Studio Express 版本, 然後再安裝 SQL Server 2005 的話, 安裝完成後會發現少了一些工具, 而且管理工具還是停留在 Express 的版本, 該怎麼做才能升級呢?  方法一:     先從新增移除程式將 Microsoft SQL Server Management Studio Express 移除     再點選 Microsoft SQL Server 2005, 選擇變更, 然後移除掉 Workstation components 底下的 Client Components     這時候再安裝一次 SQL Server 2005 就可以順利升級了    方法二:     直接開啟一個命令提字元, 切換到安裝程式所在的目錄, 直接輸入 setup.exe SKUUPGRADE=1    </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/5241257543618216987/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=5241257543618216987' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5241257543618216987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5241257543618216987'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/04/sqlserver-management-studio.html' title='升級 SqlServer Management Studio'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-907874987989523487</id><published>2008-02-15T00:54:00.001+08:00</published><updated>2008-02-15T00:54:39.948+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>WCF 錯誤: 此集合已包含具有配置 http 的位址。此集合中，每一配置最多只能有一個位址。</title><summary type='text'>WCF Service 佈署到 IIS Application Server 之後, 剛開始運作的很順利, 但是後來卻發生以下的問題:   WCF 錯誤: 此集合已包含具有配置 http 的位址。此集合中，每一配置最多只能有一個位址。   剛開始以為是 WCF 有問題, 可是後來重新啟動 IIS 也沒有解決, 所以初步認定應該是設定上的問題, 趕快找 Google 問看看, 輸入錯誤訊息, 搜尋...果然, 找不到想要的, 因為我輸入的是中文...唉...每次都這樣, 只好先嘗試猜測把關鍵字翻譯成英文 collection contains http address, 再搜尋一次, 這一次 Google 終於聽懂我的問題了, 馬上告訴我問題的原因和解決的方法!!  原來是因為 IIS 的站台設定了多重識別才造成這樣的問題, 解決的方法很簡單, 就是在多重識別的設定頁留下一個就好, </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/907874987989523487/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=907874987989523487' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/907874987989523487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/907874987989523487'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/02/wcf-http.html' title='WCF 錯誤: 此集合已包含具有配置 http 的位址。此集合中，每一配置最多只能有一個位址。'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-7351497738228390676</id><published>2008-02-14T22:54:00.001+08:00</published><updated>2008-02-14T22:54:05.920+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vs2008'/><category scheme='http://www.blogger.com/atom/ns#' term='extension'/><category scheme='http://www.blogger.com/atom/ns#' term='visualstudio'/><title type='text'>好用的 Visual Studio Extensions</title><summary type='text'>Resource Refactoring Tool   Source Code Outliner Power Toy    </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/7351497738228390676/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=7351497738228390676' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/7351497738228390676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/7351497738228390676'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/02/visual-studio-extensions.html' title='好用的 Visual Studio Extensions'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-4888184716039245398</id><published>2008-02-14T13:36:00.001+08:00</published><updated>2008-02-14T13:36:56.728+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vs2008'/><category scheme='http://www.blogger.com/atom/ns#' term='tool'/><category scheme='http://www.blogger.com/atom/ns#' term='visualstudio'/><title type='text'>好用的 Visualizer for Visual Studio: Mole</title><summary type='text'>從 Visual Studio 2005 以來有個非常好用的功能, 就是在 debug 的時候,  可以用Visualizer 很方便的針對某些類型的變數進行觀察, 比如說 Text Visualizer, XML Visualizer, HTML Visualizer 等等, VS2008 還針對了 IEnumerable 物件也提供了檢視的能力(這麼做會針對該集合物件 enumerate 一次, 所以如果想要檢視集合物件的內容, 要先確認該集合是不會因為被列舉過而有所改變, 否則會發生預期之外的結果), 網路上還有其他人也針對 Visual Studio 寫了一些 Visualizer, 像是 Mole 這個 Visualizer 就超強大, 不論是 ASP.NET, Windows Forms, WPF 都提供了很多好用的 Visualizer, 只能說超好用!!    </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/4888184716039245398/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=4888184716039245398' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/4888184716039245398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/4888184716039245398'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/02/visualizer-for-visual-studio-mole.html' title='好用的 Visualizer for Visual Studio: Mole'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-8214128032566049672</id><published>2008-02-14T09:31:00.001+08:00</published><updated>2008-02-14T13:35:27.149+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vs2008'/><category scheme='http://www.blogger.com/atom/ns#' term='visualstudio'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft'/><title type='text'>VS2008 的相關套件</title><summary type='text'>兩個一定要安裝的套件, 特別是第二個, 改善了很多"慢"的問題  VS 2008 Web Deployment Project Support Released  VS 2008 Web 部署项目版本支持VS 2005 web部署项目提供的所有现有特性，它还添加了如下的其他支持：     从 VS 2005 Web部署项目轻松移植到VS 2008 Web部署项目     只在web部署项目编译成功时才替换输出     IIS7支持    VS 2008 Web Development Hot-Fix Roll-Up Available  HTML源码视图的性能问题       在含有多于2层子属性的自定义控件的网页里输入时，源码编辑器会冻结几秒钟。     “View Code （查看代码）”的右击上下文菜单命令在web应用项目中需要很长时间才出现。     在打开很大的HTML文件时</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/8214128032566049672/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=8214128032566049672' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/8214128032566049672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/8214128032566049672'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2008/02/vs2008.html' title='VS2008 的相關套件'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-7516608954875138737</id><published>2007-12-27T21:25:00.001+08:00</published><updated>2007-12-27T21:25:57.189+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='develop'/><category scheme='http://www.blogger.com/atom/ns#' term='encoding'/><category scheme='http://www.blogger.com/atom/ns#' term='chinese'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>深入 Microsoft.VisualBasic.Strings.StrConv 簡繁轉換</title><summary type='text'>昨天又遇到一個簡繁轉換的需求, 雖然這個問題以前已經處理過了, 但是以前是用自己建立的 b52gb 和 gb2b5 的對應表來完成這個需求(VB6 的話就用 StrConv 方法來達成), 在 .NET 環境中, Microsoft.VisualBasic.dll 裡也有提供 Strings.StrConv 方法, 而且用法和原來的 VB6 幾乎是如出一轍, 可是昨天在使用 StrConv 的時候卻意外發現了一些奇怪的現象, 特別深入研究了一下, 順便記錄下來!  先來觀察 Strings.StrConv 方法的簽名:  public static string StrConv(string str, VbStrConv Conversion, [Optional, DefaultParameterValue(0)] int LocaleID)  第三個參數和 MSDN 上的文件有點不同</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/7516608954875138737/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=7516608954875138737' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/7516608954875138737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/7516608954875138737'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/12/microsoftvisualbasicstringsstrconv.html' title='深入 Microsoft.VisualBasic.Strings.StrConv 簡繁轉換'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-5042685951459603713</id><published>2007-12-19T22:51:00.000+08:00</published><updated>2007-12-19T22:54:10.301+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='vs2008'/><category scheme='http://www.blogger.com/atom/ns#' term='develop'/><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><title type='text'>建立 Localized JavaScript</title><summary type='text'>從前在 asp 時代就有這樣子的需求, 那時候是用 Excel 表製作字串對應表, 再透過程式產生各種不同的 JavaScript 檔, 最後再根據需求動態引入不同的 JavaScript 來達成, 其實這個解決方案也還算不錯, 因為 Excel 可以由程式設計師以外的人來進行相關的翻譯工作, 一切 OK 之後, 再透過轉檔程式產生一堆的 JavaScript 即可!  到了 ASP.NET 時代, 透過 System.Web.Extensions.dll 的 ScriptResourceAttribue 將整個動作整合的更好了(但是要做的事情其實差不了多少, 只是比較美而已), 實作的步驟如下:     建立一個 Class Library Project, 取名為 LocalizingScriptResources, 並刪除那個多餘的 Class1.cs.     加入 </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/5042685951459603713/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=5042685951459603713' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5042685951459603713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5042685951459603713'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/12/localized-javascript.html' title='建立 Localized JavaScript'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-7102470855252567511</id><published>2007-12-19T13:41:00.001+08:00</published><updated>2007-12-19T13:41:21.928+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hack'/><category scheme='http://www.blogger.com/atom/ns#' term='develop'/><category scheme='http://www.blogger.com/atom/ns#' term='fix'/><title type='text'>Fiddler 又不能攔到 localhost 了</title><summary type='text'>剛把作業系統換成 Vista 的時候, 就曾經發生 Fiddler 不能攔到 localhost 的 Request 的問題, 後來在網路上找到的答案是說只要在 localhost 後面加個 "." 就可以了, 輕輕鬆鬆就解決了!  可是今天再度使用 Fiddler 的時候, 相同的技巧卻失效了, 畫面上出現的是 Exception Text: 無法連線，因為目標電腦拒絕連線。 ::1:64155, 有圖為證:    奇妙的是如果把 "localhost." 換成 "127.0.0.1." 就又可以了, 怎麼可能會有這種事情, 打開 cmd.exe 試著 ping localhost 看看, 果然發現了問題, 如圖, 回應的內容是 "回覆自 ::1: time&lt;1ms":    要怎麼解決這個問題咧? 最快的治標方法是用記事本打開 C:\Windows\System32\drivers\</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/7102470855252567511/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=7102470855252567511' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/7102470855252567511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/7102470855252567511'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/12/fiddler-localhost.html' title='Fiddler 又不能攔到 localhost 了'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-1652976352322559319</id><published>2007-12-18T13:15:00.000+08:00</published><updated>2007-12-18T14:19:20.092+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='library'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>列舉子資料夾的方法(.NET)</title><summary type='text'>簡單, 就 Directory.GetDirectories() 就好啦, 但是如果要列舉的對象有著為數眾多(比如說有好幾萬)的子資料夾或是檔案的話, 那可有得等了, 而且還要有充足的記憶體供它使用, 因為它的回傳值是 string[], 所以如果有類似的需求的話, 只能另想它法囉!  當下想到的就是 WIN32 API 的 FindFirstFile, FindNextFile 函式, 可是要在 .NET 環境中使用的話, 還是稍稍封裝一下比較好, 所以第一步當然是要準備那些 DllImport 的宣告, 和最煩人的 WIN32_FIND_DATA 資料結構囉, 自己參考文件照樣重新製作一個當然也是可以, 可是如果有現成的話該多好!  先用 Reflector 參考一下 Directory.GetDirectories 是怎麼寫的, 它既然要列舉資料夾, 應該也一定會用到那些 API </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/1652976352322559319/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=1652976352322559319' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1652976352322559319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1652976352322559319'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/12/net.html' title='列舉子資料夾的方法(.NET)'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-1583683324666501725</id><published>2007-12-12T15:45:00.001+08:00</published><updated>2007-12-12T15:45:53.905+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tfs'/><category scheme='http://www.blogger.com/atom/ns#' term='visualstudio'/><category scheme='http://www.blogger.com/atom/ns#' term='vsts'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft'/><title type='text'>導入 Team Foundation Server</title><summary type='text'>在開發團隊中導入 TFS, 配合 Visual Studio Team Explorer, 除了要習慣那個不太好用, 功能又有點陽春的 Source Control Explorer 之外, 其實過程還順滿平順的(以前使用的 SVN Server 搭配 TortoiseSVN 雖然沒有一個良好的 Item Tracking 機制, 但在 Source Code Control 上還算滿好用的), 而且 TFS 還內建了整合性超高的 Item Tracking 功能, 對軟體開發來說, 實在是一大福音! 雖然有人說可以使用 Bug Tracking System 來達到類似的需求, 但因為維護成本和教育訓練等考量, 到最後還是選擇放棄, 只專心做好 Source Control.  在開發團隊順利導入 TFS 之後, 下一步就是擴展到其他的部門, 讓大家彼此間的溝通能夠更為透明, </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/1583683324666501725/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=1583683324666501725' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1583683324666501725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1583683324666501725'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/12/team-foundation-server.html' title='導入 Team Foundation Server'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-6017637673160539801</id><published>2007-11-30T12:31:00.001+08:00</published><updated>2007-11-30T12:31:22.775+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vs2008'/><category scheme='http://www.blogger.com/atom/ns#' term='develop'/><category scheme='http://www.blogger.com/atom/ns#' term='visualstudio'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><category scheme='http://www.blogger.com/atom/ns#' term='fix'/><title type='text'>Visual Studio 2008 在 Vista x64 上不能 Edit and Continue?</title><summary type='text'> Visual Studio 在 x64 的系上不支援 Edit and Continue(E&amp;C)? 真的嗎?     今天在 x64 Vista 上的 VS2008 要 debug 程式的時候, 一直被警告必須重新編譯程式, 原本以為是因為 lambda expression 或是 anonymous function 的關係, 後來寫了一個更簡單的類別測試了一下, 發現還是不行, 只好向 Google 求助!  原來是 64-bit CLR 不支援 E&amp;C, 但是只要編譯時選擇 x86 平台的話, 就可以再啟動 E&amp;C 的功能囉!!  怎麼設定呢? 在 Project 上點右鍵, Properties/Build, 把 Platform Target 設成 x86 就行啦!    </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/6017637673160539801/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=6017637673160539801' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6017637673160539801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6017637673160539801'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/11/visual-studio-2008-vista-x64-edit-and.html' title='Visual Studio 2008 在 Vista x64 上不能 Edit and Continue?'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-815340383616108426</id><published>2007-11-20T01:26:00.001+08:00</published><updated>2007-11-20T01:26:40.467+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vs2008'/><category scheme='http://www.blogger.com/atom/ns#' term='visualstudio'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft'/><title type='text'>Visual Studio 2008 正式登場</title><summary type='text'>經過漫長的等待, Microsoft 終於在 11/19 正式將 Visual Studio 2008 以及 .NET Framework 3.5 交付 RTM, 新增多達超過 250 個的功能, 包含連 Visual Studio Express 也同步登場, 有興趣的人趕快去 MSDN 下載吧!  消息來源: http://msdn2.microsoft.com/en-us/vstudio/default.aspx  </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/815340383616108426/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=815340383616108426' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/815340383616108426'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/815340383616108426'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/11/visual-studio-2008.html' title='Visual Studio 2008 正式登場'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-4261790659115442241</id><published>2007-11-17T23:27:00.000+08:00</published><updated>2007-11-18T14:32:13.531+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><title type='text'>用 JavaScript 存取 Firefox 剪貼簿</title><summary type='text'>Firefox 預設是不能用 JavaScript 存取系統剪貼簿(Clipboard)的, 如果想要開放這項功能, 要改 Fifefox 的設定才行。     先在網址列輸入 about:config。     然後找到 signed.applets.codebase_principal_support, 把它設為 true 就行了。     然後再把以下的 code 找個適當的地方放, 然後就可以呼叫 CopyToClipboard("your text....") 把字串複製到剪貼篿啦!    值得注意的是在每次呼叫的時候, Firefox 會彈出一個對話視窗詢問是否允許存取, 要按 "是" 才行!     function CopyToClipboard(copytext)
{
	if (window.clipboardData)
	{
		</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/4261790659115442241/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=4261790659115442241' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/4261790659115442241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/4261790659115442241'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/11/javascript-firefox.html' title='用 JavaScript 存取 Firefox 剪貼簿'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-7613245286983561551</id><published>2007-11-13T23:26:00.000+08:00</published><updated>2007-11-14T09:29:04.501+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='3c'/><title type='text'>整合家中的遙控器: SONY RM-VL600</title><summary type='text'>     隨著客廳的視聽設備一件一件的增加(電視, DVD, 擴大機, TIVO, XBOX360), 遙控器的數量也就跟著變多, 想要享受比較好的聲光效果, 就必須同時操控 3 隻以上的遙控器, 實在是很麻煩, 一直以來就希望能有一個解決方案來改善這樣的狀況(曾經想用 PDA 來取代遙控器, 但是想也知道, 手感及操控性就是差很多)。  曾經有朋友介紹一隻羅技的遙控器(Harmony 880), 上網查了一下, 功能超強, 還有顯示螢幕而且可程式化 但是價位有點高, 而且還有充電座, 感覺像無線電話一樣, 應該挺耗電的, 想想覺得不太適合, 所以就放棄了, 時間久了也就忘了這回事。  前幾天不小心看到網友在討論 SONY 的 RM-VL600, 看了之後覺得價格合理(在 Y拍 只要 NT $890 含運), 功能也很不錯(最重要的就是學習功能啦), 所以就敗了一隻回家, 實際使用之後,</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/7613245286983561551/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=7613245286983561551' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/7613245286983561551'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/7613245286983561551'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/11/sony-rm-vl600.html' title='整合家中的遙控器: SONY RM-VL600'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-8107895132435578679</id><published>2007-11-09T13:39:00.006+08:00</published><updated>2010-03-02T14:31:30.136+08:00</updated><title type='text'>Email 中的 html 附件在某些軟體中會直接顯示內容</title><summary type='text'>相信大多數的程式設計師都寫過寄信的程式, 而些其中一定會有要夾帶附件的情形! 幾天前有個客戶提出了一個問題, 當然這個問題在我們這裡都不會發生(所有的程式都是這樣, 只有在你那兒會有問題, 在我這兒都是好的)!  問題的內容大概是說客戶在打開由系統寄出的 mail 時, 會看到一堆亂碼, 而且附件檔案不見了! 怎麼會這樣咧? 我們內部的測試人員都說沒有這樣的情形啊! 深入了解一下, 才知道原來客戶的郵件軟體是 Notes(又是 Notes), 而他們所看到的亂碼其實是一個格式為 html 的附件, 只不過在 Notes 中會把 html 附件的內容直接秀在畫面上, 然後那份 html 的編碼又和郵件內容的編碼不同, 然後就造成這樣的結果啦!!  既然知道了問題是怎麼發生的, 就來找解決的方法吧! 先用 Outlook 寄出同一份附件檔試看看, 咦~~怎麼附件乖乖的在他應該在的位置咧? </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/8107895132435578679/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=8107895132435578679' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/8107895132435578679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/8107895132435578679'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/11/email-html.html' title='Email 中的 html 附件在某些軟體中會直接顯示內容'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-2905958701276800454</id><published>2007-10-08T17:05:00.001+08:00</published><updated>2007-10-08T17:05:00.706+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vmware'/><title type='text'>VMWare ESX Server 彼此之間不能 scp 的問題</title><summary type='text'>今天在整理 ESX 上面的虛擬機器, 想要在某台 esx1 上面用 scp 的方式把另一台 esx2 的檔案 copy 過來, 一直發生 Connection refused 的錯誤, 可是從我自己的 pc 不管是 scp 或是 ssh 到 esx1 或是 esx2 都沒有問題, 只好又向谷大哥求救, 才知道原來在 ESX Server 上有一個設定叫 sshClient 要先開啟, 才能夠讓 esx hosts 之間彼此互相連線, 如圖:    如果沒有 UI 的話, 也可以用指令 esxcfg-firewall -e sshClient 達到同樣的效果!  </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/2905958701276800454/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=2905958701276800454' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/2905958701276800454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/2905958701276800454'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/10/vmware-esx-server-scp.html' title='VMWare ESX Server 彼此之間不能 scp 的問題'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-3345983260207218389</id><published>2007-10-07T17:52:00.001+08:00</published><updated>2007-10-07T17:52:55.098+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='debugger'/><category scheme='http://www.blogger.com/atom/ns#' term='vs2008'/><category scheme='http://www.blogger.com/atom/ns#' term='develop'/><category scheme='http://www.blogger.com/atom/ns#' term='visualstudio'/><category scheme='http://www.blogger.com/atom/ns#' term='library'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft'/><title type='text'>.NET 類別庫的原始碼釋出</title><summary type='text'>ScottGu 在他的 Blog 上說 .NET 的原始碼包含 BCL, ASP.NET, Windows Forms, ADO.NET, XML 和 WPF (接下來還有 WCF, Wordflow, LINQ) 將會和 .NET 3.5 以及 VS2008 一起釋出。  剛看到這個標題的時候本來沒什麼感覺, 因為 Reflector 就可以做到這件事了, 雖然有些程式碼編成 IL 之後會和原始程式有些出入, 但是已經可以看出 8, 9 成的邏輯了, 可是再往下繼續閱讀之後, 才知道原來不只是這樣!!  以前在使用 Delphi 開發程式的時候, 最令我愛不釋手的特色之一就是不管在設計時期或是執行時期都可以直接進入原始程式碼觀看使用到的類別庫的內容和註解 (雖然不是全部的類別, 但也足夠了)! 後來在使用 Eclipse 撰寫 Java 程式的時候, 只要把用到的 source </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/3345983260207218389/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=3345983260207218389' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/3345983260207218389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/3345983260207218389'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/10/net.html' title='.NET 類別庫的原始碼釋出'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-1765447684056631025</id><published>2007-10-05T13:09:00.001+08:00</published><updated>2007-10-05T15:36:54.183+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tfs'/><category scheme='http://www.blogger.com/atom/ns#' term='msbuild'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft'/><title type='text'>如何讓 TeamBuild 的 BuildLog.txt 顯示更多的資訊</title><summary type='text'>相信如果有在使用 Team System 的人, 應該多少都知道可以建立 TeamBuild 讓建置的工作自動化, 但是也一定會發生一種令人沮喪的情形, 就是任何人 Get 到本機都能 Build, 可是 TeamBuild 就是不會過, 這都是因為 TeamBuild 的建置流程並不完全如我們所想像, 所以 BuildLog.txt 就成為找問題的重要線索了!  習慣看 Visual Studio Output 視窗的人(很多人都不看), 都應該知道在 Build 專案的時候, 可以在從它看到很多訊息, 雖然 Error List 視窗的結果比較美觀, 但是有時候它會保留著之前的錯誤, 就可能會誤導開發人員 Debug 的方向, 所以建議大家如果看不懂 Error List 裡面的訊息, 就找 Output 視窗吧!!  回到正題, 如果在 IDE 環境中, 想要讓 Output </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/1765447684056631025/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=1765447684056631025' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1765447684056631025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1765447684056631025'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/10/teambuild-buildlogtxt.html' title='如何讓 TeamBuild 的 BuildLog.txt 顯示更多的資訊'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-2805098370057786548</id><published>2007-10-04T11:43:00.001+08:00</published><updated>2007-10-04T11:43:16.188+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vista'/><category scheme='http://www.blogger.com/atom/ns#' term='samba'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft'/><category scheme='http://www.blogger.com/atom/ns#' term='fix'/><title type='text'>Vista 連線網芳和 Samba 的解決方式</title><summary type='text'>Vista 預設裝好之後, 網路共用部分的功能是被關閉的, 想要讓別人可以連到自己的電腦, 必須自己改變一些設才行:  1. 開始-&gt;網路-&gt;滑鼠右鍵-&gt;內容       2. 啟動[網路探索], [檔案分享權限設定], [以密碼保護的共用]      這樣子別人就可以看到自己了!  [Samba 篇]  連線一般的 Windows 分享都沒什麼問題, 可是如果要連線用 Samba 架的伺服器, 就會發生無法驗證的問題, 上網 Google 了一下, 找到這篇寫的很詳細!  http://www.builderau.com.au/blogs/codemonkeybusiness/viewblogpost.htm?p=339270746  簡單記一下步驟:   1. 在命令提示字元下輸入 secpol.msc 開啟[本機安全性原則]    2. 選到[本機原則]/[安全性選項], 將[</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/2805098370057786548/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=2805098370057786548' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/2805098370057786548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/2805098370057786548'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/10/vista-samba.html' title='Vista 連線網芳和 Samba 的解決方式'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-6598579963555263347</id><published>2007-10-03T16:35:00.000+08:00</published><updated>2007-10-03T22:59:53.923+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xslt'/><title type='text'>XSL: 如何計算節點深度</title><summary type='text'>又是一個常用的任務, 簡單, 但是會忘!   &lt;xsl:value-of select="count(ancestor::node())" /&gt; </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/6598579963555263347/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=6598579963555263347' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6598579963555263347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6598579963555263347'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/10/xsl.html' title='XSL: 如何計算節點深度'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-6525624245608577268</id><published>2007-10-02T14:54:00.003+08:00</published><updated>2010-03-02T14:46:10.909+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vs2003'/><category scheme='http://www.blogger.com/atom/ns#' term='setup'/><category scheme='http://www.blogger.com/atom/ns#' term='fix'/><title type='text'>每次建置 Setup Project 就會跳出 Installer 安裝畫面 - VS2003</title><summary type='text'>今天把一個 VS2003 的程式拿出來做一些修改, 改完之後準備建置 Setup 程式的時候, 只要一 build 就會跳出一個 VS2003 的安裝畫面, 然後就會出現錯誤畫面, 安裝程序倒回, 再前進, 錯誤, 再倒回.....

可是只要把安裝取消, 就一切又順利進行下去, 雖然是無傷大雅, 只要按個取消就能 build 好, 可是好奇心驅使, 就又稍稍查了一下"事件檢視器", 嗯! 有一個警告, 把內容丟給 Google, 找到了!!

只要重新註冊 mergemod.dll 這個 com 元件就行啦!!

cd "C:\Program Files\Common Files\Microsoft Shared\MSI Tools\"
regsvr32 /u mergemod.dll
regsvr32 mergemod.dll


搞定!</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/6525624245608577268/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=6525624245608577268' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6525624245608577268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6525624245608577268'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/10/setup-project-installer-vs2003.html' title='每次建置 Setup Project 就會跳出 Installer 安裝畫面 - VS2003'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-2021924742503637562</id><published>2007-09-29T20:07:00.001+08:00</published><updated>2010-03-02T14:55:15.366+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><title type='text'>過時的 System.Net.WebProxy.GetDefaultProxy()</title><summary type='text'>今天在把一個有用到 System.Net.WebProxy.GetDefaultProxy() 類別的程式從 .NET 1.1 升級到 .NET 2.0, 編譯器警告說這個方法已經過時, 訊息是:

This method has been deprecated. Please use the proxy selected for you by default. http://go.microsoft.com/fwlink/?linkid=14202
奇怪的是, 它並沒有像其他的警告訊息會告訢我們一個取代的方法, 怎麼辦呢? 趕快打開 Reflector 查一下, 原來該方法是呼叫一個未開放的建構子 internal WebProxy(bool enableAutoproxy) 來取得系統預設的 Proxy 設定! 嗯? 難道要用 Reflection 的方式去呼叫嗎? 那樣子就太遜了吧</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/2021924742503637562/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=2021924742503637562' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/2021924742503637562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/2021924742503637562'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/09/systemnetwebproxygetdefaultproxy.html' title='過時的 System.Net.WebProxy.GetDefaultProxy()'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-3085335381242118472</id><published>2007-09-26T16:34:00.001+08:00</published><updated>2010-03-02T14:59:15.709+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='reporting server'/><category scheme='http://www.blogger.com/atom/ns#' term='sql2005'/><category scheme='http://www.blogger.com/atom/ns#' term='fix'/><title type='text'>Server name 變更後, Reporting Service 會出問題!</title><summary type='text'>今天在升級一台 SQL2005 到 SP2 的時候, 出現找不到 Reporting Service Instance 的錯誤, 仔細看了一下, 才發現原來是因為 server name 曾經改過(以前 SQL2000 也發生過類似的問題), 雖然 Database Engine 部分還是可以連得到, 可是 Reporting Service 就沒那麼聰明了, Google 了一下, 很快的找到了解決方法:

修改 sys.sysservers 的資料, 以符合目前的主機名稱 sp_dropserver 'old_server_name' sp_addserver 'new_server_name'
修改 rsreportserver.config 的 UrlRoot 讓檔案預設的位置在 %ProgramFiles%\Microsoft SQL Server\MSSQL.n\</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/3085335381242118472/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=3085335381242118472' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/3085335381242118472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/3085335381242118472'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/09/server-name-reporting-service.html' title='Server name 變更後, Reporting Service 會出問題!'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-918513935815210789</id><published>2007-09-03T13:25:00.001+08:00</published><updated>2007-09-03T13:30:55.805+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='office'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft'/><title type='text'>互動式 Office 2003 對 Office 2007 命令參照指南</title><summary type='text'>對於 Office 2007 新的 Ribbon 介面雖然覺得還滿可愛的, 但是常常就是會有找不到功能的困擾, 今天不小心發現了 Microsoft 提供的一個說明網頁, 以互動式的方式教你怎麼找到以前在 Office 2003 的命令, 還挺有趣的, 竟然會有這樣子的教學方式, 應該好好學習學習!!

Excel: http://office.microsoft.com/zh-tw/excel/HA101491511028.aspx
Word: http://office.microsoft.com/zh-tw/word/HA100744321028.aspx
PowerPoint: http://office.microsoft.com/zh-tw/powerpoint/HA101490761028.aspx</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/918513935815210789/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=918513935815210789' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/918513935815210789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/918513935815210789'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/09/office-2003-office-2007.html' title='互動式 Office 2003 對 Office 2007 命令參照指南'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-5441042612577920836</id><published>2007-08-18T14:39:00.000+08:00</published><updated>2007-08-18T14:42:55.951+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='silverlight'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft'/><title type='text'>Silverlight 1.0 和 1.1 的差別</title><summary type='text'>Silverlight 1.0 有些什麼東西都還沒弄清楚, 1.1 又跟著冒出來, 兩者間的差異是什麼呢? 剛好看到官方網站上的簡介, 趕快記起來!

http://silverlight.net/GetStarted/overview.aspx</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/5441042612577920836/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=5441042612577920836' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5441042612577920836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5441042612577920836'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/08/silverlight-10-11.html' title='Silverlight 1.0 和 1.1 的差別'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-3683852636809738172</id><published>2007-08-09T01:47:00.000+08:00</published><updated>2007-08-09T02:18:35.200+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='lyrics'/><category scheme='http://www.blogger.com/atom/ns#' term='chorus'/><title type='text'>嫁給我好嗎?</title><summary type='text'>今天看到黃品源在康熙來了節目上自彈自唱了一首並未發表的歌, 歌名好像叫做 嫁給我好嗎, 聽說他在婚禮上有唱這首歌, 真得很適合那種情境!!

因為覺得很好聽, 一時技癢就拿起吉他跟著抓了一下, 順便記錄下來! 不知道有沒有 mp3 可以抓得到??

詞/曲: 黃品源  D 調

D   #Ddim Em A          D
嫁給我    好嗎  我的心早已經屬於妳

D   #Ddim Em A          D
嫁給我    好嗎  今生今世妳是我的唯一

D   #Ddim Em A            D
嫁給你    好嗎  我要的不只這些甜言蜜語

D   #Ddim Em A            D
嫁給你    好嗎  妳是否永遠記得說過的話

Bm      #Fm   G    A   D
期待已久的緣分  即將要變成永恆

      G   A</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/3683852636809738172/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=3683852636809738172' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/3683852636809738172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/3683852636809738172'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/08/blog-post.html' title='嫁給我好嗎?'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_ltYY54vIRQU/RroIpFmh4RI/AAAAAAAAABs/-2ekVdl3jsw/s72-c/chorus.GIF' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-65922018227276315</id><published>2007-08-08T23:55:00.001+08:00</published><updated>2010-03-02T15:00:50.018+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rdp'/><category scheme='http://www.blogger.com/atom/ns#' term='Hack'/><category scheme='http://www.blogger.com/atom/ns#' term='vista'/><title type='text'>遠端桌面到 Vista Home Premium 版</title><summary type='text'>Vista Home Premium 版本預設是不支援遠端桌面的, 雖說它可能有什麼商業上的考量, 但是對於習慣使用遠端桌面的人來說, 實在是太不方便了, 當然也可以裝個 vnc 之類的 server 來遠端搖控, 但是總覺得效能上還是差了一點, 最好是能把隱藏在 Home Premium 版內的功能重新打開來比較好. Google 一下, 果然已經有人提出解決的辦法了, 親自實驗之後證實是可以的, 而且步驟還超簡單, 只要 [下載] -&gt; [解壓] -&gt; [以 Administrator 的身份執行 命令提示字元] -&gt; [執行 premium.bat 檔] 就搞定了!!

參考: http://portal.tonychan.org/Default.aspx?tabid=58&amp;EntryID=123</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/65922018227276315/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=65922018227276315' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/65922018227276315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/65922018227276315'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/08/vista-home-premium.html' title='遠端桌面到 Vista Home Premium 版'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-7937231225235442325</id><published>2007-08-08T23:20:00.000+08:00</published><updated>2007-08-09T01:46:49.294+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>C# 3.0 筆記: Automatic Properties, Object Initializers, Collection Initializers</title><summary type='text'>1. Automatic Properties
2. Object Initializers
3. Collection Initializers

1. Automatic Properties
//=== BEFORE ===
public class Person {
    private string _name;
    private int _age;

    public string Name {
        get { return _name; }
        set { _name = value; }
    }

    public int Age {
        get { return _age; }
        set { _age = value; }
    }
}
//=== AFTER ===
public class </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/7937231225235442325/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=7937231225235442325' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/7937231225235442325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/7937231225235442325'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/08/c-30-automatic-properties-object.html' title='C# 3.0 筆記: Automatic Properties, Object Initializers, Collection Initializers'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-7089218120774861924</id><published>2007-08-04T01:34:00.000+08:00</published><updated>2007-08-05T11:43:57.296+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rdp'/><category scheme='http://www.blogger.com/atom/ns#' term='source'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='gnome'/><title type='text'>支援 rdesktop -x 功能的 gnome-rdp</title><summary type='text'>

在 Ubuntu 的遠端連線工具裡, 預設的是 tsclient, 功能相當不錯, 但是在管理上稍有不足, 所以我都是使用 gnome-rdp 這個套件來管理常用的一些連線, 但是不管是原來的 tsclient 或是 gnome-rdp 都沒有開放設定 rdesktop 的 -x 參數, 可是我又希望連線時能夠看到遠端的桌面背景, 於是就自己下載 source 稍稍改了一下, 做了一個新的版本!!

修改的功能有:
新增 RDP5 Experience 選項(modem,broadband,lan), 配合 rdesktop 的 -x 選項, 使遠端連線時可顯示桌面背景.關閉主視窗大小改變時, 會自動置中造成視窗跳動的問題.
使用方式:
下載 gnome-rdp.exe 替換掉原來在 /usr/lib/gnome-rdp/ 目錄底下的程式就可以了!

想自己動手做的話, </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/7089218120774861924/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=7089218120774861924' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/7089218120774861924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/7089218120774861924'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/08/rdesktop-x-gnome-rdp.html' title='支援 rdesktop -x 功能的 gnome-rdp'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_ltYY54vIRQU/RrNrJFmh4QI/AAAAAAAAABg/x61ZTDEHhlg/s72-c/gnome-rdp.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-9035096972218043669</id><published>2007-08-02T23:05:00.000+08:00</published><updated>2007-08-03T00:33:57.541+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='debugger'/><category scheme='http://www.blogger.com/atom/ns#' term='vs2008'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft'/><title type='text'>Visual Studio 2008 Debugger Visualizer</title><summary type='text'>看到一些很棒的 debugger visualizer, 以後一定會用到, 先記起來!

WPF Tree Debugger Visualizer
LINQ to SQL Debug Visualizer from ScottGu's Blog

相關文章:
Create a Debugger Visualizer in 10 Lines of Code By Tomer Noy
Useful add-ons (plugins) for Visual Studio 2005</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/9035096972218043669/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=9035096972218043669' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/9035096972218043669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/9035096972218043669'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/08/visual-studio-2008-debugger-visualizer.html' title='Visual Studio 2008 Debugger Visualizer'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-8862641542861051431</id><published>2007-08-01T21:20:00.000+08:00</published><updated>2007-08-02T00:00:41.703+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tool'/><category scheme='http://www.blogger.com/atom/ns#' term='ie'/><category scheme='http://www.blogger.com/atom/ns#' term='develop'/><title type='text'>新版 Web Development Helper</title><summary type='text'>這次發佈的 0.8.5.0 版, 修正了在 Vista 中的一個小問題, 而且還多加入一個 Script Class Browsing 工具(如下圖), 不過這個小工具僅支援遵循 Microsoft ASP.NET AJAX Pattern 所開發的 JavaScript, 雖然如此, 還是很不錯!!



參考: nikhilk.net</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/8862641542861051431/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=8862641542861051431' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/8862641542861051431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/8862641542861051431'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/08/web-development-helper.html' title='新版 Web Development Helper'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-940561514626554579</id><published>2007-08-01T21:10:00.000+08:00</published><updated>2007-08-01T23:50:44.161+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hack'/><category scheme='http://www.blogger.com/atom/ns#' term='OleDb'/><category scheme='http://www.blogger.com/atom/ns#' term='Excel'/><title type='text'>設定 IMEX=1 透過 OleDb 讀取 Excel 仍然出現 null 值的問題</title><summary type='text'>之前在使用 OleDb 讀取 Excel 時, 發生有些欄位雖然有值, 但是讀出來卻是 Null 的問題, 上網查了一下, 說是在連線字串中加入 Extended Properties, 將 IMEX 設為 1, 就可以強迫 OleDb 的 driver 將內容當成文字讀取, 以避免發生型別錯誤而回傳 null. 如下
Provider=Microsoft.Jet.OLEDB.4.0;Data Source="C:\Data.xls";Extended Properties="Excel 8.0;HDR=Yes;IMEX=1;
但是後來發現有些資料可以成功, 有些不行, 但是如果把資料列的順序作一下改變的話(把非數字的資料放到比較前面的幾列), 就又可以順利讀取, 真是怪到極點, 於是再去問了一下 Google, 終於找到問題的源頭...

原來是 OleDb Driver 的問題, </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/940561514626554579/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=940561514626554579' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/940561514626554579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/940561514626554579'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/08/imex1-oledb-excel-null.html' title='設定 IMEX=1 透過 OleDb 讀取 Excel 仍然出現 null 值的問題'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-3069032239837539646</id><published>2007-07-27T21:19:00.000+08:00</published><updated>2007-07-27T22:48:16.645+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ntfs'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>在 Ubuntu 中讀寫 NTFS 檔案系統</title><summary type='text'>安裝 Driver 和管理工具:
sudo apt-get install ntfs-3g ntfs-config
掛載指令:
sudo mount -t ntfs-3g /dev/sda1 /media/disk1 -o locale=zh_TW.utf8,umask=0022,fmask=0133,dmask=0022
fstab 設定:
/dev/sda1 /media/disk1 ntfs-3g locale=zh_TW.UTF-8,umask=0022,fmask=0133,dmask=0022 0 0</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/3069032239837539646/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=3069032239837539646' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/3069032239837539646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/3069032239837539646'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/07/ubuntu-ntfs.html' title='在 Ubuntu 中讀寫 NTFS 檔案系統'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-6860483613781453334</id><published>2007-07-21T13:15:00.000+08:00</published><updated>2007-07-27T13:18:17.423+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><category scheme='http://www.blogger.com/atom/ns#' term='tiff'/><category scheme='http://www.blogger.com/atom/ns#' term='plugin'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>讓 Ubuntu 的 Firefox 也能瀏覽 tiff 檔</title><summary type='text'>

趕快安裝 mozilla tiff plugin 吧!

下載 mozilla-tiff-plugin-0.3_i386.deb 之後, double click 安裝或是用指令
dpkg -i mozilla-tiff-plugin-0.3_i386.deb 就可以啦~~~!</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/6860483613781453334/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=6860483613781453334' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6860483613781453334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6860483613781453334'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/07/ubuntu-firefox-tiff.html' title='讓 Ubuntu 的 Firefox 也能瀏覽 tiff 檔'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_ltYY54vIRQU/RqGXHFmh4PI/AAAAAAAAABQ/kE09vcg4Egg/s72-c/screenshot2.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-3622469420552261140</id><published>2007-07-21T12:47:00.000+08:00</published><updated>2007-07-27T13:16:49.461+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><category scheme='http://www.blogger.com/atom/ns#' term='extension'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='ie7'/><title type='text'>把 Firefox 變身成 IE7</title><summary type='text'>
先安裝 Vista-aero 佈景主題, 改變佈景主題之後雖然長得很像了, 可是我覺得上方的選單列很礙眼, 所以就再安裝一個 Hide menubar 的 extension, 順便再到 [編輯]-&gt;[偏好設定]-&gt;[分頁], 把 [總是顯示分頁工具列] 勾起來, 嗯!! 這樣子像多了!!</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/3622469420552261140/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=3622469420552261140' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/3622469420552261140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/3622469420552261140'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/07/firefox-ie7.html' title='把 Firefox 變身成 IE7'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_ltYY54vIRQU/RqGQ41mh4OI/AAAAAAAAABI/TejJIebiiyk/s72-c/screenshot1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-2753647442090649778</id><published>2007-07-19T22:00:00.000+08:00</published><updated>2007-07-19T21:45:34.403+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><category scheme='http://www.blogger.com/atom/ns#' term='encoding'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>在 vim 中編輯不同編碼的文件</title><summary type='text'>今天用 gvim 開啟一個 big5 編碼的文字檔時, 畫面上呈現的全是亂碼, 雖然知道是編碼的問題, 可是也不知道該怎麼辦. 問了一下 google, 很快的就找到了解決方法!

:e ++enc=big5 %

:e 代表 edit, 表示要對檔案進行編輯的動作, 最後接的是檔名, % 表示目前的檔名
++enc=xxx 代表以 xxx 編碼開啟檔案

詳細說明可以先進 vim 之後, 再輸入 :help :e 或是 :help multibyte</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/2753647442090649778/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=2753647442090649778' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/2753647442090649778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/2753647442090649778'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/07/vim.html' title='在 vim 中編輯不同編碼的文件'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-3976903381819289111</id><published>2007-07-19T21:19:00.001+08:00</published><updated>2010-03-02T15:09:39.295+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vpn'/><category scheme='http://www.blogger.com/atom/ns#' term='hamachi'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>在 Ubuntu 上使用 Hamachi</title><summary type='text'>  什麼是 Hamachi, 簡單來說就是一個簡單使用又安全的 VPN 軟體, 想知道更多的話, 就上網 Google 一下吧!  回到主題, 首先到 LogMeIn 下載 Linux 版的程式, 目前的版本是 0.9.9.9-20, 檔名是 hamachi-0.9.9.9-20-lnx.tar.gz  下一步就是解開並安裝囉, 過程也很簡單

tar zxvf hamachi-0.9.9.9-20-lnx.tar.gz
cd zxvf hamachi-0.9.9.9-20-lnx
sudo make install

它會進行編譯, 然後安裝兩個檔案和一個 symlink 到系統中, 如下:

/usr/bin/hamachi
/usr/bin/hamachi-init -&gt; /usr/bin/hamachi
/sbin/tuncfg

接下來要先建立一組金鑰
hamachi-init</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/3976903381819289111/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=3976903381819289111' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/3976903381819289111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/3976903381819289111'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/07/ubuntu-hamachi.html' title='在 Ubuntu 上使用 Hamachi'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-6216181900459518360</id><published>2007-07-18T21:54:00.001+08:00</published><updated>2010-03-02T15:12:47.290+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='smbfs'/><category scheme='http://www.blogger.com/atom/ns#' term='mount'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Howto: mount smbfs</title><summary type='text'>基本用法:  mount -t smbfs -o username=DOMAIN\\Username,password=XXX,iocharset=utf8,codepage=cp950,uid=1000,gid=1000 //winserver/sharefolder /mnt/localfolder

這樣子會在命令列顯示出密碼, 不小心會被別人 ps 看到. 如果想要隱藏密碼的話, 可以省略密碼選項, 這樣就會提示輸入密碼了.  如果又想直接掛載, 又不想輸入密碼, 也不想被別人不小心看到, 那就自己建立一個密碼檔, 假設檔名叫做 smbfs_passwd, 格式如下:

username = &lt;value&gt;
password = &lt;value&gt;

 然後把命令列上的 username=XXX,password=XXX 改成 credentials=smbfs_passwd </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/6216181900459518360/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=6216181900459518360' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6216181900459518360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6216181900459518360'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/07/howto-mount-smbfs.html' title='Howto: mount smbfs'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-4019539039849098963</id><published>2007-07-17T22:48:00.001+08:00</published><updated>2010-03-02T15:14:51.126+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='desktop'/><category scheme='http://www.blogger.com/atom/ns#' term='screenlets'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>在 Ubuntu 上安裝 Screenlets</title><summary type='text'>新增套件庫 echo deb http://hendrik.kaju.pri.ee/ubuntu feisty screenlets | sudo tee -a /etc/apt/sources.list
新增 key 並更新套件列表 wget http://hendrik.kaju.pri.ee/ubuntu/F854AFD7.gpg -O- | sudo apt-key add - &amp;&amp; sudo apt-get update
安裝 screenlets sudo apt-get install screenlets
執行 screenlets-tray &amp; 這時會在右上的工具列中會出現一個圖示, 按右鍵叫出選單, 點 settings, 然後新增自己喜歡的小工具到桌面上吧!
</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/4019539039849098963/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=4019539039849098963' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/4019539039849098963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/4019539039849098963'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/07/ubuntu-screenlets.html' title='在 Ubuntu 上安裝 Screenlets'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-1771546686520038513</id><published>2007-07-17T22:08:00.001+08:00</published><updated>2010-03-02T15:16:05.877+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='chinese'/><category scheme='http://www.blogger.com/atom/ns#' term='pdf'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>讓 acroread 可以看中文文件</title><summary type='text'>先到 http://www.adobe.com/products/acrobat/acrrasianfontpack.html 下載中文字型套件 (我下載的是 FontPack708_cht_i386-linux.tar.gz)
tar zxvf FontPack708_cht_i386-linux.tar.gz
cd CHTKIT ; ./INSTALL (記得問到原 acroread 安裝路徑時, 要指到對的位置去, 預設是 /usr/lib/Adobe/Acrobat7.0)
搞定!

ps: 如果想要在 Firefox 內使用 acroread 開啟 pdf 的話, 再多裝一個 plugin 就行了, sudo apt-get install mozilla-acroread.
ps2: 如果想要讓右鍵功能表出現 Adobe Reader 或是讓 pdf 預設用 Adobe </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/1771546686520038513/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=1771546686520038513' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1771546686520038513'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1771546686520038513'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/07/acroread.html' title='讓 acroread 可以看中文文件'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-7940105898968867386</id><published>2007-07-16T23:02:00.000+08:00</published><updated>2010-03-02T14:16:06.592+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='e220'/><category scheme='http://www.blogger.com/atom/ns#' term='3g'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>在 Ubuntu 7.04 使用 HUAWEI E220 無線 3G 上網</title><summary type='text'>整理自 Ubuntu 正體中文站 勝仔 兄的大作!!  在開始之前, 要先確定已經把 sim 卡 PIN 驗證關掉. 可以在 E220 內附的 Windows 軟體中設定.  1. 連至 https://forge.vodafonebetavine.net/frs/?group_id=12 下載驅動程式 vodafone-mobile-connect-card-driver-for-linux_0.9.7.3_feisty_all.deb  2. sudo dpkg -i vodafone-mobile-connect-card-driver-for-linux_0.9.7.3_feisty_all.deb  3. 安裝好之後, 會在 /etc/udev/rules.d 底下多出一個 99-huawei-e220.rules, 裡面會指定啟用裝置時會先執行 /usr/sbin/</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/7940105898968867386/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=7940105898968867386' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/7940105898968867386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/7940105898968867386'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/07/ubuntu-704-huawei-e220-3g.html' title='在 Ubuntu 7.04 使用 HUAWEI E220 無線 3G 上網'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-6343822788830476840</id><published>2007-07-12T21:55:00.002+08:00</published><updated>2010-03-02T15:17:04.538+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vmware'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>在 Ubuntu 安裝 vmware-server</title><summary type='text'>老樣子, 在 Ubuntu 安裝軟體就是這麼簡單!

sudo sh -c 'echo deb http://archive.canonical.com/ubuntu feisty-commercial main &gt;&gt; /etc/apt/sources.list'
sudo apt-get update
sudo apt-get install vmware-server vmware-server-kernel-modules vmware-tools-kernel-modules
</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/6343822788830476840/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=6343822788830476840' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6343822788830476840'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6343822788830476840'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/07/ubuntu-vmware-server.html' title='在 Ubuntu 安裝 vmware-server'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-8877713463514792050</id><published>2007-07-12T21:47:00.001+08:00</published><updated>2010-03-02T15:17:35.411+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='google'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>快速在 Ubuntu 安裝 Google Desktop</title><summary type='text'>加入套件庫 sudo sh -c "echo 'deb http://dl.google.com/linux/deb/ stable non-free' &gt;&gt; /etc/apt/sources.list"
加入 key 並更新套件列表 wget https://dl-ssl.google.com/linux/linux_signing_key.pub -O- | sudo apt-key add - &amp;&amp; sudo apt-get update
安裝套件 sudo apt-get install google-desktop-linux
</summary><link rel='related' href='http://www.google.com/linuxrepositories/ubuntu704.html' title='快速在 Ubuntu 安裝 Google Desktop'/><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/8877713463514792050/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=8877713463514792050' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/8877713463514792050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/8877713463514792050'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/07/ubuntu-google-desktop.html' title='快速在 Ubuntu 安裝 Google Desktop'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-3892505314033245776</id><published>2007-07-12T21:42:00.000+08:00</published><updated>2007-07-12T23:44:39.083+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='x31'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>在 x31 上裝 Ubuntu, 啟用 compiz 之後, 最大化視窗標題列會變成空白</title><summary type='text'>修改 xorg.conf
在 Section "Device" 中加入一行 Option "AGPSize" "32" 即可</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/3892505314033245776/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=3892505314033245776' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/3892505314033245776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/3892505314033245776'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/07/x31-ubuntu-compiz.html' title='在 x31 上裝 Ubuntu, 啟用 compiz 之後, 最大化視窗標題列會變成空白'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-21327566641003361</id><published>2007-07-12T21:38:00.001+08:00</published><updated>2010-03-02T15:18:26.431+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='x31'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>如何在 Ubuntu 中啟用 X31 的小紅點</title><summary type='text'>修改 xorg.conf, 在 mouse 的 Section "InputDevice" 區段加入以下內容:

Option          "Emulate3Buttons"       "false"
Option          "EmulateWheel"          "yes"
Option          "EmulateWheelButton"    "2"

再 Ctrl-Alt-Backspace 重啟或是登出再登入就可以了</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/21327566641003361/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=21327566641003361' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/21327566641003361'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/21327566641003361'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/07/ubuntu-x31.html' title='如何在 Ubuntu 中啟用 X31 的小紅點'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-4270489406948064362</id><published>2007-07-12T21:03:00.001+08:00</published><updated>2010-03-02T15:22:12.650+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='gnome'/><title type='text'>自定文件開啟時右鍵選單的程式列表和預設開啟的程式</title><summary type='text'>上次自訂 gnome 滑鼠右鍵的選單只寫一半, 現在再補充另一半, 第一部分是右鍵選單的程式列表, 第二部分是設定預設的開啟程式:
1. 右鍵選單開啟程式列表定義 系統的定義在 /usr/share/applications/mimeinfo.cache 使用者的定義在 ~/.local/share/applications/mimeinfo.cache

檔案格式
[MIME Cache]  # 第一行內容是固定的 application/pdf=evince.desktop;AdobeReader.desktop;xpdf.desktop; # 第二行開始長成這樣
左邊淺黃底色的部分是文件的 ContentType; 右邊粉紅底色的部分是開啟程式列表(*.desktop), 以分號(;)隔開.

2.設定預設的開啟程式 系統的定義在 /usr/share/applications/</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/4270489406948064362/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=4270489406948064362' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/4270489406948064362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/4270489406948064362'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/07/blog-post_12.html' title='自定文件開啟時右鍵選單的程式列表和預設開啟的程式'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-8235265466263239718</id><published>2007-07-07T22:29:00.001+08:00</published><updated>2010-03-02T15:25:05.469+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='compiz'/><category scheme='http://www.blogger.com/atom/ns#' term='x11vnc'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>開啟 compiz 之後, 遠端桌面不會更新了</title><summary type='text'>由於新版的 X server 支援了 XDAMAGE extension 的功能, 原意是讓視窗重繪的區域變少, 用以提升效能, 但是啟用了 compiz 之後, 卻將這個通知的功能關閉了, 導致在遠端操控時視窗因此而不進行重繪, 可是滑鼠和鍵盤的事件都有傳送到主機喔! 可以試看看用隔壁的電腦 vnc 到主機然後看看滑鼠有沒有動就知道了!

解決的方法就是關閉 XDAMAGE 功能, 但是 gnome 預設的 vino-server 沒有選項可以將它關閉, 所以只好換成 x11vnc 來取代囉!!

1. 安裝 x11vnc sudo apt-get install x11vnc
2. 產生 vnc 的密碼檔 x11vnc -storepasswd, 這會把密碼存在 ~/.vnc/passwd 裡面
3. 執行 x11vnc x11vnc -forever -shared -</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/8235265466263239718/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=8235265466263239718' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/8235265466263239718'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/8235265466263239718'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/07/compiz.html' title='開啟 compiz 之後, 遠端桌面不會更新了'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-1216408737042653803</id><published>2007-07-07T21:09:00.002+08:00</published><updated>2010-03-02T15:26:08.825+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='compiz'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>安裝 compiz fusion</title><summary type='text'>加入套件庫 deb http://download.tuxfamily.org/3v1deb/ feisty eyecandy
加入 key 並更新套件列表 wget http://download.tuxfamily.org/3v1deb/DD800CD9.gpg -O- | sudo apt-key add - &amp;&amp; sudo apt-get update
安裝套件 sudo apt-get install compiz compiz-gnome sudo apt-get install compizconfig-settings-manager sudo apt-get install compiz-fusion-*
執行 compiz --replace &amp; 就可以看到效果啦, 如果想搭配 emerald 的話, 可以換成 compiz --replace -c emerald </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/1216408737042653803/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=1216408737042653803' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1216408737042653803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1216408737042653803'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/07/compiz-fusion.html' title='安裝 compiz fusion'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-2778479850378921327</id><published>2007-07-07T17:44:00.001+08:00</published><updated>2010-03-02T15:27:32.776+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='codecs'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='mplayer'/><title type='text'>在 ubuntu 內撥放 rmvb 等多媒體檔案</title><summary type='text'>想直接使用原始網站提供的 tgz 的話可以直接去 mplayer 的網站下載 Linux 的 codecs, 解壓縮之後放到 /usr/lib/win32 底下應該就可以了, 本來我也是這麼做, 可是覺得這樣就不能透過 apt 來管理了, 所以就又找了另一個方式來完成!

For Ubuntu 7.04 "Feisty Fawn"

新增 "deb http://packages.medibuntu.org/ feisty free non-free" 至 /etc/apt/sources.list 可以用指令:  echo "deb http://packages.medibuntu.org/ feisty free non-free" | sudo tee -a /etc/apt/sources.list 或是直接開啟 Synaptic 套件管理程式加入套件庫 deb http://</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/2778479850378921327/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=2778479850378921327' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/2778479850378921327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/2778479850378921327'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/07/ubuntu-rmvb.html' title='在 ubuntu 內撥放 rmvb 等多媒體檔案'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-1917055157134892640</id><published>2007-07-07T16:13:00.001+08:00</published><updated>2010-03-02T15:28:31.827+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='compiz'/><category scheme='http://www.blogger.com/atom/ns#' term='tsclient'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='mplayer'/><title type='text'>關閉 mpalyer, tsclient 在 compiz 背景透明的功能</title><summary type='text'>開啟 系統-&gt;偏好設定-&gt;CompizConfig Settings Manager
切換到 General-&gt;General Options-&gt;Opacity Settings 頁籤
在 Window opacities-&gt;Opacity windows 裡面, 把黃底紅字的部分拿掉就可以了 


((type=Unknown | Menu | PopupMenu | DropdownMenu | Tooltip | Notification | Combo | Dnd | name=sun-awt-X11-XWindowPeer) | (type=Normal &amp; override_redirect=1)) &amp; !(name=sun-awt-X11-XFramePeer | name=sun-awt-X11-XDialogPeer)</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/1917055157134892640/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=1917055157134892640' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1917055157134892640'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1917055157134892640'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/07/mpalyer-tsclient-compiz.html' title='關閉 mpalyer, tsclient 在 compiz 背景透明的功能'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-7601678770607605574</id><published>2007-07-07T15:50:00.000+08:00</published><updated>2007-07-07T22:40:56.630+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='gnome'/><title type='text'>自訂 gnome 滑鼠右鍵的選單</title><summary type='text'>在 /usr/share/applications/mimeinfo.cache 和 ~/.local/share/applications/mimeinfo.cache 中會記錄每一種的 mime type 所對應到的 *.desktop 檔, 而每一個 .desktop 檔會記載相關應用程式的位置, 所以如果想自己自訂右鍵選單的話, 參考一下這兩個檔案應該就能了解了!</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/7601678770607605574/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=7601678770607605574' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/7601678770607605574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/7601678770607605574'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/07/gnome.html' title='自訂 gnome 滑鼠右鍵的選單'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-7841646102782188747</id><published>2007-07-02T23:51:00.000+08:00</published><updated>2007-07-03T08:51:38.809+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='video'/><category scheme='http://www.blogger.com/atom/ns#' term='fun'/><title type='text'>有趣的廣告, 這麼努力是為了....</title><summary type='text'></summary><link rel='related' href='http://video.google.com/videoplay?docid=-4329300404756508848&amp;q=coke+cola+ad+short&amp;total=27&amp;start=10&amp;num=10&amp;so=0&amp;type=search&amp;plindex=9' title='有趣的廣告, 這麼努力是為了....'/><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/7841646102782188747/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=7841646102782188747' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/7841646102782188747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/7841646102782188747'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/07/blog-post.html' title='有趣的廣告, 這麼努力是為了....'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-5152542455529157937</id><published>2007-06-13T14:20:00.001+08:00</published><updated>2010-03-02T15:29:16.744+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft'/><title type='text'>20070606 AjaxControlToolkit 更新內容</title><summary type='text'>其中看起來比較吸引我的是 Script Combining 和 Dynamic Context 這兩個新特色, 等不及要試看看了!!

原文: http://blogs.msdn.com/sburke/archive/2007/06/07/updated-toolkit-release-now-available.aspx</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/5152542455529157937/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=5152542455529157937' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5152542455529157937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5152542455529157937'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/06/20070606-ajaxcontroltoolkit.html' title='20070606 AjaxControlToolkit 更新內容'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-6341520905557458019</id><published>2007-06-13T12:06:00.000+08:00</published><updated>2007-06-13T12:09:40.941+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linq to sql'/><title type='text'>Using LINQ to SQL</title><summary type='text'>又看到超棒的文章, 不得不趕快記下來, 以免以後找不到!!

Using LINQ to SQL (Part 1)

LINQ to SQL (Part 2 - Defining our Data Model Classes)</summary><link rel='related' href='http://weblogs.asp.net/scottgu/archive/2007/05/19/using-linq-to-sql-part-1.aspx' title='Using LINQ to SQL'/><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/6341520905557458019/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=6341520905557458019' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6341520905557458019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6341520905557458019'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/06/using-linq-to-sql.html' title='Using LINQ to SQL'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-2653320885720143405</id><published>2007-06-13T11:54:00.000+08:00</published><updated>2007-06-13T11:56:22.229+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='video'/><title type='text'>令人感動的聲音!!</title><summary type='text'>同事寄的一段影片, 很讓人感動!!

</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/2653320885720143405/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=2653320885720143405' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/2653320885720143405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/2653320885720143405'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/06/blog-post.html' title='令人感動的聲音!!'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-1341649148148219838</id><published>2007-06-02T01:04:00.000+08:00</published><updated>2007-06-13T14:24:08.440+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='microsoft surface'/><category scheme='http://www.blogger.com/atom/ns#' term='surface computing'/><title type='text'>令人驚艷的 Microsoft Surface</title><summary type='text'>今天同事介紹了一段影片給我看, 讓我看了之後感到很訝異, 幾年前 Tom Cruise 在電影 Minority Report 中那段用手套和系統互動的模式似乎已經要成真了! 這個由 Microsoft 發展的 Microsoft Surface 系統, 利用隱藏在桌子底下的攝影機來感應桌子表面的物體, 並利用無線功能和該物體進行互動, 強調 Multi User, Multi Input, Multi Touch 等概念, 令人看了之後超想體驗一下!! 看看影片過過乾癮吧!

</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/1341649148148219838/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=1341649148148219838' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1341649148148219838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1341649148148219838'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/06/microsoft-surface.html' title='令人驚艷的 Microsoft Surface'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-8321041982199646384</id><published>2007-06-02T00:54:00.001+08:00</published><updated>2010-03-02T15:40:45.682+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ntfs'/><category scheme='http://www.blogger.com/atom/ns#' term='vista'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft'/><title type='text'>Symbolic link in VISTA and XP</title><summary type='text'>今天在編譯某個 Library 專案時, 有一個參考到的元件因為我的電腦換了新的版本, 以至於參考的路徑沒辦法找到參考檔, 解決的辦法很簡單, 就是建一個 Symbolic link 讓路徑長回來就行了!

剛好我的 OS 是 VISTA, 有多了一個叫 mklink 的指令, 用法就如熟悉的 ln 指令一樣, 感覺還滿親切的, 於是就一切 ok, 搞定!

咦, 如果不是 VISTA 怎麼辦咧? 剛好把以前看到的文章再補上來, 順便又找了一下如何利用程式的方式來操控 NTFS 檔案系統中的 Junction Points, 如下:

Windows Server 2003 Resource Kit Tools: 先下載這個並安裝!
Manipulating NTFS Junction Points in .Net: 你是程序員嗎? 試試這個吧!
NTFS Link </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/8321041982199646384/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=8321041982199646384' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/8321041982199646384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/8321041982199646384'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/06/symbolic-link-in-vista-and-xp.html' title='Symbolic link in VISTA and XP'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-2908081518481348953</id><published>2007-06-02T00:30:00.000+08:00</published><updated>2007-06-02T00:55:30.669+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ie'/><category scheme='http://www.blogger.com/atom/ns#' term='fix'/><category scheme='http://www.blogger.com/atom/ns#' term='addon'/><title type='text'>奇怪的 Bitcomet add-on</title><summary type='text'>不知道從什麼時候開始, 我用 IE7 瀏覽 Google Reader 時, 在 manage subscription 的畫面點一下 tags 頁, 會先看到該頁的內容, 然後又跳回到瀏覽內容的畫面, 本來以為是 IE7 出了問題, 可是在另一台電腦又一切正常, 所以馬上就覺得一定是 add-on 的問題!

後來用 without addon 模式打開 IE7 重新試了一次, 果然一切恢復正常, 於是就開始針對可疑的對象進行檢查, 逐一的將 addon 給 disable, 然後重開 IE, 經由二分法切割幾次之後, 終於找出元凶, 原來是 Bitcomet addon 出了問題, 把它給 disable, 其他的回復原狀, 之後一切正常, 搞定!</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/2908081518481348953/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=2908081518481348953' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/2908081518481348953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/2908081518481348953'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/05/bitcomet-add-on.html' title='奇怪的 Bitcomet add-on'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-1560323856942993779</id><published>2007-05-23T09:08:00.000+08:00</published><updated>2007-05-23T09:33:30.354+08:00</updated><title type='text'>Script# 支援了 ASP.NET AJAX</title><summary type='text'>前一陣子開始了一個新的專案, 用了很多的 AJAX 技術, 為了要簡化開發過程, 所以想要做一些 AJAX Control 出來用, 可以在撰寫的過程中發現其實有很多的地方是很惱人的, 特別是在製作 Extender 的時候, 又是 C# 又是  JavaScript, 兩邊都要同時 Debug 超累人的, 而且有很多 code 其實是重覆的, 尤其是在 properties 的定義方面更是如此, 實在是讓人有點挫折, 產能因此受到限制!

那時候突然想到之前在找 Web Development Helper 的時候, 在該作者的網站上有看到一個叫的 Script# 東西, 好像可以拿來用, 所以當下就馬上 Download 了它的 package 和 manual, 看了之後覺得很棒, 和我期待中的東西很像, 但是~~~~~, 美中不足的是它使用自己的一套 Library, 和 </summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/1560323856942993779/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=1560323856942993779' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1560323856942993779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1560323856942993779'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/05/script-aspnet-ajax.html' title='Script# 支援了 ASP.NET AJAX'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-8979029404808882488</id><published>2007-05-17T13:37:00.000+08:00</published><updated>2007-05-17T13:42:45.102+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='style'/><category scheme='http://www.blogger.com/atom/ns#' term='css'/><title type='text'>hideFocus: 消除討厭的虛線外框</title><summary type='text'>IE 有一個 hideFocus 屬性可以設定
ex:
Link

在 Firefox 的話, 就要用 CSS 來逹成
ex:
a:focus { -moz-outline-style: none; }</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/8979029404808882488/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=8979029404808882488' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/8979029404808882488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/8979029404808882488'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/05/hidefocus.html' title='hideFocus: 消除討厭的虛線外框'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-5534969334351771979</id><published>2007-05-15T08:51:00.000+08:00</published><updated>2007-06-02T01:03:30.430+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tfs'/><category scheme='http://www.blogger.com/atom/ns#' term='vsts'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft'/><title type='text'>更改 TFS email 通知的 FromAddress</title><summary type='text'>安裝 TFS 的時候, 一時沒看清楚把 email 通知的 FromAddress 設錯了, 雖然對系統不會有什麼影響, 可是看起來就是很怪, 所以就找了一下設定的地方, 預設在 C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Web Services\Services\web.config, 改一下 appSettings 就行啦!</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/5534969334351771979/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=5534969334351771979' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5534969334351771979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/5534969334351771979'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/05/tfs-email-fromaddress.html' title='更改 TFS email 通知的 FromAddress'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-6628041780791706151</id><published>2007-05-14T22:12:00.001+08:00</published><updated>2010-03-02T15:34:06.450+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tivo'/><title type='text'>tivo 密技</title><summary type='text'>快轉無綠bar: select + play + select + pause + select
三十秒快轉: select + play + select + 3 + 0 + select
如何看到容量還剩於多少？   服務訊息及系統設定＞設備資訊＞系統資訊＞  在此畫面底下按   2下綠色大拇指+4+1+1   就可以看到有二個選項
"可用錄影空間：45%"
"最長時間： 0個小時16分鐘42秒"
這二個可以參考，還不錯用。
</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/6628041780791706151/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=6628041780791706151' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6628041780791706151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6628041780791706151'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/05/tivo.html' title='tivo 密技'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-6961849572052662944</id><published>2007-04-25T18:22:00.000+08:00</published><updated>2007-04-25T22:13:22.681+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vista'/><category scheme='http://www.blogger.com/atom/ns#' term='uac'/><category scheme='http://www.blogger.com/atom/ns#' term='fix'/><title type='text'>停用 Vista UAC 時, 右鍵的選單找不到  Edit With UltraEdit</title><summary type='text'>又是另一個改 Registry 的解法!!

---begin cut---
[HKEY_CLASSES_ROOT\*\shell\UltraEdit]
@="Edit with UltraEdit"

[HKEY_CLASSES_ROOT\*\shell\UltraEdit\command]
@="\"C:\\Program Files\\UltraEdit\\uedit32.exe\" %1"

---end cut---

路徑可能會不太一樣, 要記得改!</summary><link rel='related' href='http://www.ultraedit.com/index.php?name=Forums&amp;file=viewtopic&amp;t=3972' title='停用 Vista UAC 時, 右鍵的選單找不到  Edit With UltraEdit'/><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/6961849572052662944/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=6961849572052662944' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6961849572052662944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6961849572052662944'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/04/ultraedit-vista-uac-edit-with-ultraedit.html' title='停用 Vista UAC 時, 右鍵的選單找不到  Edit With UltraEdit'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-6751623498040556102</id><published>2007-04-25T18:17:00.000+08:00</published><updated>2007-04-25T18:22:07.756+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vista'/><category scheme='http://www.blogger.com/atom/ns#' term='uac'/><category scheme='http://www.blogger.com/atom/ns#' term='fix'/><title type='text'>web dev helper vista fix for non UAC</title><summary type='text'>Web Development Helper 裝在 Vista 時, 如果 UAC 被 disable, 會無法使用!!

苦惱了很久, 今天不小心看到解決方法! 改改 Registry 就可以了!!


---begin cut---
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{0AD401E4-2D78-45B1-B875-07B0F9ED3937}]
@="Web Development Helper"

[HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{0AD401E4-2D78-45B1-B875-07B0F9ED3937}\Implemented Categories]

[HKEY_LOCAL_MACHINE\</summary><link rel='related' href='http://timheuer.com/blog/archive/2007/04/22/14048.aspx' title='web dev helper vista fix for non UAC'/><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/6751623498040556102/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=6751623498040556102' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6751623498040556102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/6751623498040556102'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/04/web-dev-helper-vista-fix-for-non-uac.html' title='web dev helper vista fix for non UAC'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-3592128765119211732</id><published>2007-04-24T16:24:00.001+08:00</published><updated>2010-03-02T15:31:27.135+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rotateimage'/><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='vector'/><category scheme='http://www.blogger.com/atom/ns#' term='library'/><category scheme='http://www.blogger.com/atom/ns#' term='dragdrop'/><category scheme='http://www.blogger.com/atom/ns#' term='tooltip'/><title type='text'>用 JavaScript 在網頁上畫向量圖</title><summary type='text'>今天在 Google 上搜尋可以在網頁上繪製向量圖形的 Solution 時, 本來焦點是放在 VML 和 SVG 上的, 後來不小心發現一個提供以 JavaScript 繪製簡單向量圖形 Library 的網站, 除了該 Library 之外, 它還提供了 Drag'nDrop, Tooltips, RotateImage 的 Library.

Vectorgraphics 速度雖然被嫌說很慢, 但應用在簡單的 Application 還滿不錯的!
Drag'nDrop 除了字面上的功能外, 還提供按住 Shift 放大縮小的功能, 很有趣!
Tooltips 的功能就比較普通了, 和一般其他的 Library 差不多!
RotateImage 的實作方式很神奇, 沒有用到任何的 filter, 是將原圖重製成多份後, 只切出所需的點, 重新組合而成的, </summary><link rel='related' href='http://www.walterzorn.com/index.htm' title='用 JavaScript 在網頁上畫向量圖'/><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/3592128765119211732/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=3592128765119211732' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/3592128765119211732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/3592128765119211732'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/04/web-development-javascripts-for.html' title='用 JavaScript 在網頁上畫向量圖'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-9051164439888918904</id><published>2007-04-21T12:10:00.000+08:00</published><updated>2007-04-21T12:15:31.405+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='visualstudio'/><category scheme='http://www.blogger.com/atom/ns#' term='orcas'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft'/><title type='text'>Orcas Beta1 出來了</title><summary type='text'>昨天上 MSDN 網站上, 看到 Orcas 已經出 Beta1, 終於脫離 CTP 了, 下載中....</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/9051164439888918904/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=9051164439888918904' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/9051164439888918904'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/9051164439888918904'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/04/orcas-beta1.html' title='Orcas Beta1 出來了'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-7017504538320074743</id><published>2007-04-21T12:03:00.000+08:00</published><updated>2007-04-21T12:06:53.016+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='kuso'/><title type='text'>任天堂PS3</title><summary type='text'>
超好笑的KUSO文



http://blog.xuite.net/sat00149/blog/10027714</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/7017504538320074743/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=7017504538320074743' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/7017504538320074743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/7017504538320074743'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/04/ps3.html' title='任天堂PS3'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_ltYY54vIRQU/RimNz6fQhxI/AAAAAAAAAAM/_yJ3TrZNmTU/s72-c/6.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7148541.post-1459518007723775481</id><published>2007-04-20T13:18:00.000+08:00</published><updated>2007-04-20T13:21:17.907+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='css'/><title type='text'>如何讓Browser的捲動軸消失</title><summary type='text'>IE7 的話, 在 css 中設定 html { overflow: hidden } 就可以讓水平及垂直的捲軸都不要出來!</summary><link rel='replies' type='application/atom+xml' href='http://sanchen.blogspot.com/feeds/1459518007723775481/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7148541&amp;postID=1459518007723775481' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1459518007723775481'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7148541/posts/default/1459518007723775481'/><link rel='alternate' type='text/html' href='http://sanchen.blogspot.com/2007/04/browser.html' title='如何讓Browser的捲動軸消失'/><author><name>San</name><uri>http://www.blogger.com/profile/11491704891034585349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
