<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>DanceFire的专栏 - C#/Java</title><link>http://blog.csdn.net/dancefire/category/51493.aspx</link><description>这两个经常打架的家伙，在我这里被合在了一起。并非由于他们亲密的血缘关系，而是由于在某些时候，经常会同时提及二者，因此放在一起或许更好。</description><dc:language>zh-CN</dc:language><lastUpdateTime>Sat, 08 Dec 2007 03:14:00 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>DanceFire</dc:creator><title>让VS 2008支持Subversion</title><link>http://blog.csdn.net/dancefire/archive/2007/12/08/1923853.aspx</link><pubDate>Sat, 08 Dec 2007 02:48:00 GMT</pubDate><guid>http://blog.csdn.net/dancefire/archive/2007/12/08/1923853.aspx</guid><wfw:comment>http://blog.csdn.net/dancefire/comments/1923853.aspx</wfw:comment><comments>http://blog.csdn.net/dancefire/archive/2007/12/08/1923853.aspx#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://blog.csdn.net/dancefire/comments/commentRss/1923853.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1923853</trackback:ping><description>Visual Studio 2005 有一个开源的Subversion插件，Ankhsvn  (http://ankhsvn.tigris.org/)，安装后，VS 2005中将内置Subversion的支持，可以直接在VS里面提交修改。我经常用它和TortoiseSVN 配合来使用Subversion，十分方便。可是升级到Visual Studio 2008后，发现Ankhsvn没有集成进来，因为目前的Ankhsvn还不支持VS2008，据说下个版本才会支持VS 2008。不过这不影响我们在Visual Studio 2008中使用Ankhsvn，我们可以自己动手修改注册表，将Ankhsvn集成进VS 2008。方法很简单。&lt;img src ="http://blog.csdn.net/dancefire/aggbug/1923853.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>DanceFire</dc:creator><title>使用XmlWriter时请注意Encoding</title><link>http://blog.csdn.net/dancefire/archive/2007/12/02/1912345.aspx</link><pubDate>Sun, 02 Dec 2007 21:05:00 GMT</pubDate><guid>http://blog.csdn.net/dancefire/archive/2007/12/02/1912345.aspx</guid><wfw:comment>http://blog.csdn.net/dancefire/comments/1912345.aspx</wfw:comment><comments>http://blog.csdn.net/dancefire/archive/2007/12/02/1912345.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/dancefire/comments/commentRss/1912345.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1912345</trackback:ping><description>这两天用一个常用编辑的软件打开一个最近更新的xml配置文件时突然报编码错误，说不支持utf-16。看到这个错误，我愣了一下，这个软件不支持utf -16的xml我是知道的，但是这个xml配置文件可是用XmlSerializer序列化的一个class，一直都是使用utf-8编码的，怎么突然出 utf-16了？用Notepad++打开这个xml，看了一下右下角的编码，显示的还是utf-8，看来文件输出没有错啊，等等，突然注意到第一行：&lt;img src ="http://blog.csdn.net/dancefire/aggbug/1912345.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>DanceFire</dc:creator><title>Visual Studio 2008 LINQ to SQL 的Beta 2测试版和RTM正式版的差异</title><link>http://blog.csdn.net/dancefire/archive/2007/11/27/1905061.aspx</link><pubDate>Tue, 27 Nov 2007 23:04:00 GMT</pubDate><guid>http://blog.csdn.net/dancefire/archive/2007/11/27/1905061.aspx</guid><wfw:comment>http://blog.csdn.net/dancefire/comments/1905061.aspx</wfw:comment><comments>http://blog.csdn.net/dancefire/archive/2007/11/27/1905061.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/dancefire/comments/commentRss/1905061.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1905061</trackback:ping><description>找了一些关于LINQ to SQL在Beta 2到RTM的差异变化，可以从这里下载pdf版本的微软正式文档。&lt;img src ="http://blog.csdn.net/dancefire/aggbug/1905061.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>DanceFire</dc:creator><title>写了一个开源的ASP.Net的系统信息探针（适用于MS.Net 1.x/2.0和Mono 1.0/2.0）</title><link>http://blog.csdn.net/dancefire/archive/2007/11/25/1901463.aspx</link><pubDate>Sun, 25 Nov 2007 12:26:00 GMT</pubDate><guid>http://blog.csdn.net/dancefire/archive/2007/11/25/1901463.aspx</guid><wfw:comment>http://blog.csdn.net/dancefire/comments/1901463.aspx</wfw:comment><comments>http://blog.csdn.net/dancefire/archive/2007/11/25/1901463.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/dancefire/comments/commentRss/1901463.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1901463</trackback:ping><description>这两天由于需要一个ASP.Net的服务器信息探针。到网上找了找，似乎没有发现什么开源的ASP.Net的系统信息探针（探测器）。由于技术含量不是很高，于是干脆自己动手丰衣足食了。

到网上找了一下各个ASP.Net系统信息探针，把功能总结了一下，基本上都实现出来了。既然实现了就别藏着掖着了，也没什么技术含量，拿出来开源好了。有谁有更好的想法可以告诉我，如果不费劲，我就加进去。

我把这个放到Google code hosting上面了，需要的可以从上面下载：

http://aspnetsysinfo.googlecode.com/
我这个ASP.Net的系统信息探针与其它探针最大的不同处，是我这个探针除了支持Windows平台的IIS服务器环境，它还支持Linux下的Mono假设的ASP.Net环境。&lt;img src ="http://blog.csdn.net/dancefire/aggbug/1901463.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>DanceFire</dc:creator><title>C#匿名方法的应用二则–实现异常Retry机制和WinForm线程安全访问</title><link>http://blog.csdn.net/dancefire/archive/2007/11/07/1872459.aspx</link><pubDate>Wed, 07 Nov 2007 23:16:00 GMT</pubDate><guid>http://blog.csdn.net/dancefire/archive/2007/11/07/1872459.aspx</guid><wfw:comment>http://blog.csdn.net/dancefire/comments/1872459.aspx</wfw:comment><comments>http://blog.csdn.net/dancefire/archive/2007/11/07/1872459.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/dancefire/comments/commentRss/1872459.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1872459</trackback:ping><description>用C# 2.0的朋友可能会经常使用匿名方法(Anonymous Methods)和匿名委托(Anonymous Delegate)。在这里我说2个比较常用的应用环境。实现Retry机制和WinForm的线程安全的访问比较优雅(elegant)的方式。&lt;img src ="http://blog.csdn.net/dancefire/aggbug/1872459.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>DanceFire</dc:creator><title>警告：为了安全请不要随意将ASP.Net的validateRequest="false"</title><link>http://blog.csdn.net/dancefire/archive/2007/04/11/1560171.aspx</link><pubDate>Wed, 11 Apr 2007 10:52:00 GMT</pubDate><guid>http://blog.csdn.net/dancefire/archive/2007/04/11/1560171.aspx</guid><wfw:comment>http://blog.csdn.net/dancefire/comments/1560171.aspx</wfw:comment><comments>http://blog.csdn.net/dancefire/archive/2007/04/11/1560171.aspx#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://blog.csdn.net/dancefire/comments/commentRss/1560171.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1560171</trackback:ping><description>一个普遍的错误存在于ASP.Net程序员中，就是针对HttpRequestValidationExceptioin异常，错误的将ASP.Net页面的 validateRequest设置为false来关闭安全审核。这是一个很危险的操作。由于这种错误具有普遍性，所以在这里发一个警告，并且告知正确的处理方法。&lt;img src ="http://blog.csdn.net/dancefire/aggbug/1560171.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>DanceFire</dc:creator><title>C#的数据库应用如何解决内存消耗太大的问题呢？</title><link>http://blog.csdn.net/dancefire/archive/2005/11/07/524779.aspx</link><pubDate>Mon, 07 Nov 2005 21:41:00 GMT</pubDate><guid>http://blog.csdn.net/dancefire/archive/2005/11/07/524779.aspx</guid><wfw:comment>http://blog.csdn.net/dancefire/comments/524779.aspx</wfw:comment><comments>http://blog.csdn.net/dancefire/archive/2005/11/07/524779.aspx#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://blog.csdn.net/dancefire/comments/commentRss/524779.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=524779</trackback:ping><description>本来是个帖子，但是问的问题没有得到实际的答案。所以干脆放到Blog上来好了，当作长期的一个题目。这样如果有人看的话，也许能够给我一些线索。

我用C#做数据库应用的时候，经常遇到的一个问题就是内存消耗特别大。这种情
况在作大数据量的数据库导入导出的时候更为明显。
说一个常见的数据库导入导出的Case, 大家看看比较合理的办法是什么：

环境：
有一个数据库SRC, 里面有500万条记录。有A, B, C三个字段。数据库的大小去
掉水分后，大约500MB的数量级。这个作为源数据库。
数据库DEST是目标数据库，里面有AA, BB, CC, DD, EE, FF等5个字段。

其中，AA, BB, CC的值，是根据SRC.A和B的值计算得来的。而且过程复杂，所以
不适合使用存储过程实现。并且AA, BB, CC不是单独得出，而是同时以SRC.A和
SRC.B得出的（当然，运算三遍可以分别取到各值，但显然运算量就大了3倍）。

目的：
将SRC中的所有数据经过变换，导入到数据库DEST中。

我所尝试过的方法：
……&lt;img src ="http://blog.csdn.net/dancefire/aggbug/524779.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>DanceFire</dc:creator><title>让我们用中文编程</title><link>http://blog.csdn.net/dancefire/archive/2004/10/04/124805.aspx</link><pubDate>Mon, 04 Oct 2004 21:11:00 GMT</pubDate><guid>http://blog.csdn.net/dancefire/archive/2004/10/04/124805.aspx</guid><wfw:comment>http://blog.csdn.net/dancefire/comments/124805.aspx</wfw:comment><comments>http://blog.csdn.net/dancefire/archive/2004/10/04/124805.aspx#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://blog.csdn.net/dancefire/comments/commentRss/124805.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=124805</trackback:ping><description>中文编程其实很简单，C#和Java都支持Unicode作为源代码，因为在这里就十分有趣的尝试了一下用中文编程。程序看起来虽然有趣味，但是打起汉字来还是不如英文快。呵呵，也许实用价值不大，那就coding 4 fun吧。(稍作修正，直接用运行时类别鉴定来决定"我是谁")&lt;img src ="http://blog.csdn.net/dancefire/aggbug/124805.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>DanceFire</dc:creator><title>利用正则表达式将html网页数据变成Web Service</title><link>http://blog.csdn.net/dancefire/archive/2004/10/04/124799.aspx</link><pubDate>Mon, 04 Oct 2004 21:06:00 GMT</pubDate><guid>http://blog.csdn.net/dancefire/archive/2004/10/04/124799.aspx</guid><wfw:comment>http://blog.csdn.net/dancefire/comments/124799.aspx</wfw:comment><comments>http://blog.csdn.net/dancefire/archive/2004/10/04/124799.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/dancefire/comments/commentRss/124799.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=124799</trackback:ping><description>这篇文章以中国银行外汇汇率网页为例，应用正则表达式，将其中的数据提取出来，并且制作成WebService，用Xml的形式提供给大家做服务。越是简单的例子，估计越能够使得初学者接受的快。简单的正则表达式的应用、WebService的应用，应该能够使人入门吧。&lt;img src ="http://blog.csdn.net/dancefire/aggbug/124799.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>DanceFire</dc:creator><title>Regular Expression 正则表达式-2 (Java) </title><link>http://blog.csdn.net/dancefire/archive/2004/10/04/124787.aspx</link><pubDate>Mon, 04 Oct 2004 20:51:00 GMT</pubDate><guid>http://blog.csdn.net/dancefire/archive/2004/10/04/124787.aspx</guid><wfw:comment>http://blog.csdn.net/dancefire/comments/124787.aspx</wfw:comment><comments>http://blog.csdn.net/dancefire/archive/2004/10/04/124787.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/dancefire/comments/commentRss/124787.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=124787</trackback:ping><description>正则表达式的一个简单的例子，至于这个程序的用途，请看我的前一篇文章，
"Regular Expression 正则表达式-1 (C#)"
http://blog.csdn.net/dancefire/archive/2004/10/04/124784.aspx&lt;img src ="http://blog.csdn.net/dancefire/aggbug/124787.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>DanceFire</dc:creator><title>Regular Expression 正则表达式-1 (C#)</title><link>http://blog.csdn.net/dancefire/archive/2004/10/04/124784.aspx</link><pubDate>Mon, 04 Oct 2004 20:48:00 GMT</pubDate><guid>http://blog.csdn.net/dancefire/archive/2004/10/04/124784.aspx</guid><wfw:comment>http://blog.csdn.net/dancefire/comments/124784.aspx</wfw:comment><comments>http://blog.csdn.net/dancefire/archive/2004/10/04/124784.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/dancefire/comments/commentRss/124784.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=124784</trackback:ping><description>由于一个人的问题，于是激发了我熟悉一下正则表达式的兴趣，用几种语言实现了一下，这个是C#的实现。&lt;img src ="http://blog.csdn.net/dancefire/aggbug/124784.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>DanceFire</dc:creator><title>using和Enviroment.NewLine</title><link>http://blog.csdn.net/dancefire/archive/2004/10/04/124778.aspx</link><pubDate>Mon, 04 Oct 2004 20:41:00 GMT</pubDate><guid>http://blog.csdn.net/dancefire/archive/2004/10/04/124778.aspx</guid><wfw:comment>http://blog.csdn.net/dancefire/comments/124778.aspx</wfw:comment><comments>http://blog.csdn.net/dancefire/archive/2004/10/04/124778.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/dancefire/comments/commentRss/124778.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=124778</trackback:ping><description>以前没有注意到的问题，using和Enviroment.NewLine，这两个小问题。&lt;img src ="http://blog.csdn.net/dancefire/aggbug/124778.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>