<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_过江的博客</title><subtitle type="text"/><id>http://feed.cnblogs.com/blog/u/19644/rss</id><updated>2009-10-17T03:26:21Z</updated><author><name>过江</name><uri>http://www.cnblogs.com/gjahead/</uri></author><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gjahead/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/19644/rss"/><entry><id>http://www.cnblogs.com/gjahead/archive/2009/09/15/1567161.html</id><title type="text">多线程业务实现疑问</title><summary type="text">近来一直学习多线程，备感郁闷。以前在项目中使用也较少，现在把我的一些疑问说出来，征求下大家比较好的解决方式：需求：我有20w的人员数据，我要导到其他系统或者其他地方，用多线程怎么实现呢？处理方式一：比如我每个线程都去读取100条数据，之后把这100条数据插入到数据库中。这100条数据我该怎么读取呢？？处理方式二：5个线程负责从数据库里读取数据，5个线程从一个共有对象里取出数据，之后插入到指定数据库...</summary><published>2009-09-15T09:18:00Z</published><updated>2009-09-15T09:18:00Z</updated><author><name>过江</name><uri>http://www.cnblogs.com/gjahead/</uri></author><link rel="alternate" href="http://www.cnblogs.com/gjahead/archive/2009/09/15/1567161.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gjahead/archive/2009/09/15/1567161.html"/><content type="text">近来一直学习多线程，备感郁闷。以前在项目中使用也较少，现在把我的一些疑问说出来，征求下大家比较好的解决方式：需求：我有20w的人员数据，我要导到其他系统或者其他地方，用多线程怎么实现呢？处理方式一：比如我每个线程都去读取100条数据，之后把这100条数据插入到数据库中。这100条数据我该怎么读取呢？？处理方式二：5个线程负责从数据库里读取数据，5个线程从一个共有对象里取出数据，之后插入到指定数据库...</content></entry><entry><id>http://www.cnblogs.com/gjahead/archive/2009/08/25/1553606.html</id><title type="text">委托的三种写法</title><summary type="text">.net Frame work 1.1 public delegate int CalculateAdd(int a, int b); CalculateAdd add=new CalculateAdd(Add); int d = add(1, 2); MessageBox.Show(d.ToString());===========================================...</summary><published>2009-08-25T06:15:00Z</published><updated>2009-08-25T06:15:00Z</updated><author><name>过江</name><uri>http://www.cnblogs.com/gjahead/</uri></author><link rel="alternate" href="http://www.cnblogs.com/gjahead/archive/2009/08/25/1553606.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gjahead/archive/2009/08/25/1553606.html"/><content type="text">.net Frame work 1.1 public delegate int CalculateAdd(int a, int b); CalculateAdd add=new CalculateAdd(Add); int d = add(1, 2); MessageBox.Show(d.ToString());===========================================...</content></entry><entry><id>http://www.cnblogs.com/gjahead/archive/2009/05/04/1448703.html</id><title type="text">LinqToXml学习实例</title><summary type="text">终于静下心来学习LinqToXml，虽然说不复杂，但对我这种菜鸟来说，还是遇到一些问题，经过不懈努力的baidu，google之后，学习了很多人的经验教训，也摘录了很多人的代码，终于有点眉目。在此把做好的一个实例分享出来。//查询绑定[代码]//新增[代码]//修改[代码]//删除[代码]//xml文件：[代码]源代码下载地址：/Files/gjahead/LinqToXml.rar</summary><published>2009-05-04T06:37:00Z</published><updated>2009-05-04T06:37:00Z</updated><author><name>过江</name><uri>http://www.cnblogs.com/gjahead/</uri></author><link rel="alternate" href="http://www.cnblogs.com/gjahead/archive/2009/05/04/1448703.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gjahead/archive/2009/05/04/1448703.html"/><content type="text">终于静下心来学习LinqToXml，虽然说不复杂，但对我这种菜鸟来说，还是遇到一些问题，经过不懈努力的baidu，google之后，学习了很多人的经验教训，也摘录了很多人的代码，终于有点眉目。在此把做好的一个实例分享出来。//查询绑定[代码]//新增[代码]//修改[代码]//删除[代码]//xml文件：[代码]源代码下载地址：/Files/gjahead/LinqToXml.rar</content></entry><entry><id>http://www.cnblogs.com/gjahead/archive/2008/12/23/1360310.html</id><title type="text">String.format使用（ 转）</title><summary type="text">为了取得两位的月份和日期,之前我使用这样的代码:string month=DateTime.Today.Month.ToString().Length == 2 ? DateTime.Today.Month.ToString() : "0" + DateTime.Today.Month.ToString() ;string day=DateTime.Today.Day.ToString().Len...</summary><published>2008-12-23T02:31:00Z</published><updated>2008-12-23T02:31:00Z</updated><author><name>过江</name><uri>http://www.cnblogs.com/gjahead/</uri></author><link rel="alternate" href="http://www.cnblogs.com/gjahead/archive/2008/12/23/1360310.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gjahead/archive/2008/12/23/1360310.html"/><content type="text">为了取得两位的月份和日期,之前我使用这样的代码:string month=DateTime.Today.Month.ToString().Length == 2 ? DateTime.Today.Month.ToString() : "0" + DateTime.Today.Month.ToString() ;string day=DateTime.Today.Day.ToString().Len...</content></entry><entry><id>http://www.cnblogs.com/gjahead/archive/2008/10/04/1303791.html</id><title type="text">TFS 安装手册以及常用问题解决方法</title><summary type="text">公司决定使用TFS进行项目管理，经过一段时间的学习和查资料，终于装上了TFS，现在把在安装过程中的步骤，以及遇到的问题给共享出来，希望还不晚。里面有部分内容来源于网上，我做了下整理，向那些辛苦的人们致敬！Team Foundation Server安装指南一、 说明Team Foundation Server（以下简称TFS） 提供源代码管理、工作项跟踪、Team Foundation Build...</summary><published>2008-10-04T06:49:00Z</published><updated>2008-10-04T06:49:00Z</updated><author><name>过江</name><uri>http://www.cnblogs.com/gjahead/</uri></author><link rel="alternate" href="http://www.cnblogs.com/gjahead/archive/2008/10/04/1303791.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gjahead/archive/2008/10/04/1303791.html"/><content type="text">公司决定使用TFS进行项目管理，经过一段时间的学习和查资料，终于装上了TFS，现在把在安装过程中的步骤，以及遇到的问题给共享出来，希望还不晚。里面有部分内容来源于网上，我做了下整理，向那些辛苦的人们致敬！Team Foundation Server安装指南一、 说明Team Foundation Server（以下简称TFS） 提供源代码管理、工作项跟踪、Team Foundation Build...</content></entry><entry><id>http://www.cnblogs.com/gjahead/archive/2008/09/12/1289949.html</id><title type="text">SQL server 系统优化--通过执行计划优化索引（1） (转)</title><summary type="text">SQL server 系统优化--通过执行计划优化索引（1） 前几天,远离上海，到了温州，在客户的这边处理系统慢，该系统每天正常down机7次左右，在线人员一多，系统运行缓慢，严重影响业务操作,到了无法忍耐的地步,这几天一直在这边处理优化中的问题和升级系统。将这些优化办法和思路记录下来，给大家在以后优化系统中提供思考和建议。 这几天都在通过执行计划来优化索引： 1，首先通过DMVs性能视图来查看那...</summary><published>2008-09-12T06:57:00Z</published><updated>2008-09-12T06:57:00Z</updated><author><name>过江</name><uri>http://www.cnblogs.com/gjahead/</uri></author><link rel="alternate" href="http://www.cnblogs.com/gjahead/archive/2008/09/12/1289949.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gjahead/archive/2008/09/12/1289949.html"/><content type="text">SQL server 系统优化--通过执行计划优化索引（1） 前几天,远离上海，到了温州，在客户的这边处理系统慢，该系统每天正常down机7次左右，在线人员一多，系统运行缓慢，严重影响业务操作,到了无法忍耐的地步,这几天一直在这边处理优化中的问题和升级系统。将这些优化办法和思路记录下来，给大家在以后优化系统中提供思考和建议。 这几天都在通过执行计划来优化索引： 1，首先通过DMVs性能视图来查看那...</content></entry><entry><id>http://www.cnblogs.com/gjahead/archive/2008/08/21/1272970.html</id><title type="text">.Net新建、卸载、调试Windows服务</title><summary type="text">由于项目里涉及到与其他系统的接口数据传递，所以采取了新建Windows服务的方式来同步接口数据。内容很简单，之所以把他记下来，是因为加深下自己的影响，也留个备份。 我们直接就上步骤吧： 第一，我们建立一个叫MyService的Windows程序。之后我们把Service1改名为MyService。 第二，声明一个线程， private Thread thd;；同时在MyService的OnStar...</summary><published>2008-08-21T03:33:00Z</published><updated>2008-08-21T03:33:00Z</updated><author><name>过江</name><uri>http://www.cnblogs.com/gjahead/</uri></author><link rel="alternate" href="http://www.cnblogs.com/gjahead/archive/2008/08/21/1272970.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gjahead/archive/2008/08/21/1272970.html"/><content type="text">由于项目里涉及到与其他系统的接口数据传递，所以采取了新建Windows服务的方式来同步接口数据。内容很简单，之所以把他记下来，是因为加深下自己的影响，也留个备份。 我们直接就上步骤吧： 第一，我们建立一个叫MyService的Windows程序。之后我们把Service1改名为MyService。 第二，声明一个线程， private Thread thd;；同时在MyService的OnStar...</content></entry><entry><id>http://www.cnblogs.com/gjahead/archive/2008/05/09/1190076.html</id><title type="text">请问在用C#+Mapx开始，怎样根据图元名称获得该图元已经选中的图元</title><summary type="text">近来在学习Mapx，遇到一些问题：1：根据图元的名称，比如：中国地图里的“BEIJING”，获得这个图元对象。2：获得地图中选中的图元。请各位高手指导下，在此先谢谢大家！</summary><published>2008-05-09T07:29:00Z</published><updated>2008-05-09T07:29:00Z</updated><author><name>过江</name><uri>http://www.cnblogs.com/gjahead/</uri></author><link rel="alternate" href="http://www.cnblogs.com/gjahead/archive/2008/05/09/1190076.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gjahead/archive/2008/05/09/1190076.html"/><content type="text">近来在学习Mapx，遇到一些问题：1：根据图元的名称，比如：中国地图里的“BEIJING”，获得这个图元对象。2：获得地图中选中的图元。请各位高手指导下，在此先谢谢大家！</content></entry><entry><id>http://www.cnblogs.com/gjahead/archive/2008/02/28/1084871.html</id><title type="text">C#基础：ref和out的区别</title><summary type="text">ref和out的区别在C# 中，既可以通过值也可以通过引用传递参数。通过引用传递参数允许函数成员更改参数的值，并保持该更改。若要通过引用传递参数， 可使用ref或out关键字。ref和out这两个关键字都能够提供相似的功效，其作用也很像C中的指针变量。它们的区别是：1、使用ref型参数时，传入的参数必须先被初始化。对out而言，必须在方法中对其完成初始化。 2、使用ref和out时，在方法的参数和...</summary><published>2008-02-28T05:46:00Z</published><updated>2008-02-28T05:46:00Z</updated><author><name>过江</name><uri>http://www.cnblogs.com/gjahead/</uri></author><link rel="alternate" href="http://www.cnblogs.com/gjahead/archive/2008/02/28/1084871.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gjahead/archive/2008/02/28/1084871.html"/><content type="text">ref和out的区别在C# 中，既可以通过值也可以通过引用传递参数。通过引用传递参数允许函数成员更改参数的值，并保持该更改。若要通过引用传递参数， 可使用ref或out关键字。ref和out这两个关键字都能够提供相似的功效，其作用也很像C中的指针变量。它们的区别是：1、使用ref型参数时，传入的参数必须先被初始化。对out而言，必须在方法中对其完成初始化。 2、使用ref和out时，在方法的参数和...</content></entry><entry><id>http://www.cnblogs.com/gjahead/archive/2007/10/14/924001.html</id><title type="text">仿163邮箱的alert提示，beta1.1 (转）</title><summary type="text">仿163邮箱的alert提示，beta1.1 Posted on 2007-10-14 15:44 刺猬博客 阅读(42) 评论(0) 编辑 收藏 所属分类: Asp.net问题总结 、JS&amp;AJAX问题 、JS脚本收藏 --&gt;这次美化了一下窗体，可是上次网友说的滚动条的Bug，试了好多方法一直没有好的，哪位好心的网友能告诉我js应该怎么写啊，谢谢了。我会继续努力的不会PS，本来想把图片...</summary><published>2007-10-14T13:06:00Z</published><updated>2007-10-14T13:06:00Z</updated><author><name>过江</name><uri>http://www.cnblogs.com/gjahead/</uri></author><link rel="alternate" href="http://www.cnblogs.com/gjahead/archive/2007/10/14/924001.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gjahead/archive/2007/10/14/924001.html"/><content type="text">仿163邮箱的alert提示，beta1.1 Posted on 2007-10-14 15:44 刺猬博客 阅读(42) 评论(0) 编辑 收藏 所属分类: Asp.net问题总结 、JS&amp;AJAX问题 、JS脚本收藏 --&gt;这次美化了一下窗体，可是上次网友说的滚动条的Bug，试了好多方法一直没有好的，哪位好心的网友能告诉我js应该怎么写啊，谢谢了。我会继续努力的不会PS，本来想把图片...</content></entry></feed>
