博客园 - 海天一鸥uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=1684802011-08-19T15:08:28Z海天一鸥https://www.cnblogs.com/sgsoft/feed.cnblogs.comhttps://www.cnblogs.com/sgsoft/archive/2011/08/19/2146354.htmlWindows批处理中的等待技巧 - 海天一鸥1、直接使用Windows 2003资源工具包中的Sleep.exe 程序,它在全系列Windows中都可以运行; 2、使用下面的技巧 @ping 127.0.0.1 –n 12 >nul 由于Windows Ping目标地址是间隔1秒,上面的指令相当于等候12秒;2011-08-19T15:08:00Z2011-08-19T15:08:00Z海天一鸥https://www.cnblogs.com/sgsoft/【摘要】1、直接使用Windows 2003资源工具包中的Sleep.exe 程序,它在全系列Windows中都可以运行; 2、使用下面的技巧 @ping 127.0.0.1 –n 12 >nul 由于Windows Ping目标地址是间隔1秒,上面的指令相当于等候12秒; <a href="https://www.cnblogs.com/sgsoft/archive/2011/08/19/2146354.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sgsoft/archive/2011/08/09/2133081.htmlThe Ice::Current Object - 海天一鸥The Ice::Current Object 服务器端Servant骨架方法(skeleton operation)都有一个Ice::Current类型的参数,这个对象定义如下: module Ice { local dictionary<string, string> Context; enum OperationMode { Normal, \Nonmutating, \Idempotent...2011-08-09T14:46:00Z2011-08-09T14:46:00Z海天一鸥https://www.cnblogs.com/sgsoft/【摘要】The Ice::Current Object 服务器端Servant骨架方法(skeleton operation)都有一个Ice::Current类型的参数,这个对象定义如下: module Ice { local dictionary<string, string> Context; enum OperationMode { Normal, \Nonmutating, \Idempotent... <a href="https://www.cnblogs.com/sgsoft/archive/2011/08/09/2133081.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sgsoft/archive/2011/08/09/2133080.htmlICE代理的固有方法 - 海天一鸥Table 32.1. The semantics of core proxy methods. Method Description Remote ice_isA Returns true if the remote object supports the type indi­cated by the id argument, oth­erwise false. This method can...2011-08-09T14:45:00Z2011-08-09T14:45:00Z海天一鸥https://www.cnblogs.com/sgsoft/【摘要】Table 32.1. The semantics of core proxy methods. Method Description Remote ice_isA Returns true if the remote object supports the type indi­cated by the id argument, oth­erwise false. This method can... <a href="https://www.cnblogs.com/sgsoft/archive/2011/08/09/2133080.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sgsoft/archive/2011/08/07/2130284.htmlC# Tips 2则 - 海天一鸥C# Textbox Auto Scroll To End ScrollToCaret Scrolling TextboxMany of my sample C# codes,I use textbox to write the results. When textbox is multiline property set to true, and when I insert text into ...2011-08-07T13:42:00Z2011-08-07T13:42:00Z海天一鸥https://www.cnblogs.com/sgsoft/【摘要】C# Textbox Auto Scroll To End ScrollToCaret Scrolling TextboxMany of my sample C# codes,I use textbox to write the results. When textbox is multiline property set to true, and when I insert text into ... <a href="https://www.cnblogs.com/sgsoft/archive/2011/08/07/2130284.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sgsoft/archive/2011/08/02/2125508.htmlConfiguring log4net with VS2010 and .Net 4.0 - 海天一鸥Configuring log4net with VS2010 and .Net 4.0 After spending a few hours this morning trying to get l...2011-08-02T13:28:00Z2011-08-02T13:28:00Z海天一鸥https://www.cnblogs.com/sgsoft/【摘要】Configuring log4net with VS2010 and .Net 4.0 After spending a few hours this morning trying to get l... <a href="https://www.cnblogs.com/sgsoft/archive/2011/08/02/2125508.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sgsoft/archive/2011/07/28/2119967.htmlIoC Container Benchmark - Unity, Windsor, StructureMap and Spring.NET - 海天一鸥There are a number of inversion of control containers out there so I thought it would be an interesting experiment to do a simple benchmark. There are different ways that one can instantiate a type in...2011-07-28T13:23:00Z2011-07-28T13:23:00Z海天一鸥https://www.cnblogs.com/sgsoft/【摘要】There are a number of inversion of control containers out there so I thought it would be an interesting experiment to do a simple benchmark. There are different ways that one can instantiate a type in... <a href="https://www.cnblogs.com/sgsoft/archive/2011/07/28/2119967.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sgsoft/archive/2011/07/28/2119965.htmlFunctional .NET 4.0 – Tuples and Zip - 海天一鸥Previously, when covering some of the additions to the .NET 4.0 Framework such as optional and named parameters, some of the other additions have caught my eye from the perspective of functional progr...2011-07-28T13:21:00Z2011-07-28T13:21:00Z海天一鸥https://www.cnblogs.com/sgsoft/【摘要】Previously, when covering some of the additions to the .NET 4.0 Framework such as optional and named parameters, some of the other additions have caught my eye from the perspective of functional progr... <a href="https://www.cnblogs.com/sgsoft/archive/2011/07/28/2119965.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sgsoft/archive/2011/07/28/2119964.htmlbinary search of an integer array - 海天一鸥二分法查找 1: // binary search of an integer array, this search is efficient for large arrays 2: // tested with PellesC vegaseat 24jan2005 3: 4: #include <stdio.h> 5: 6: int main() 7: { 8: int a[20] = {0};...2011-07-28T13:20:00Z2011-07-28T13:20:00Z海天一鸥https://www.cnblogs.com/sgsoft/【摘要】二分法查找 1: // binary search of an integer array, this search is efficient for large arrays 2: // tested with PellesC vegaseat 24jan2005 3: 4: #include <stdio.h> 5: 6: int main() 7: { 8: int a[20] = {0};... <a href="https://www.cnblogs.com/sgsoft/archive/2011/07/28/2119964.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sgsoft/archive/2011/07/28/2119959.htmlJAVA 上加密算法的实现用例 - 海天一鸥MD5/SHA1,DSA,DESede/DES,Diffie-Hellman 的使用 第 1 章基础知识 1.1. 单钥密码体制 单钥密码体制是一种传统的加密算法,是指信息的发送方和接收方共同使用同一把密钥进行加解密。 通常 , 使用的加密算法比较简便高效 , 密钥简短,加解密速度快,破译极其困难。但是加密的安全性依靠密钥保管的安全性 , 在公开的计算机网络上安全地传送和保管密钥是一个严峻的问题,...2011-07-28T13:19:00Z2011-07-28T13:19:00Z海天一鸥https://www.cnblogs.com/sgsoft/【摘要】MD5/SHA1,DSA,DESede/DES,Diffie-Hellman 的使用 第 1 章基础知识 1.1. 单钥密码体制 单钥密码体制是一种传统的加密算法,是指信息的发送方和接收方共同使用同一把密钥进行加解密。 通常 , 使用的加密算法比较简便高效 , 密钥简短,加解密速度快,破译极其困难。但是加密的安全性依靠密钥保管的安全性 , 在公开的计算机网络上安全地传送和保管密钥是一个严峻的问题,... <a href="https://www.cnblogs.com/sgsoft/archive/2011/07/28/2119959.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sgsoft/archive/2011/07/08/2100943.htmlExploring The Major Interfaces in Rx - 海天一鸥本文描述了主要的Reactive Extensions (Rx)接口,其用于表示observable序列,并subscribe它们。 IObservable<T>/IObserver<T>在.NET ...2011-07-08T06:09:00Z2011-07-08T06:09:00Z海天一鸥https://www.cnblogs.com/sgsoft/【摘要】本文描述了主要的Reactive Extensions (Rx)接口,其用于表示observable序列,并subscribe它们。 IObservable<T>/IObserver<T>在.NET ... <a href="https://www.cnblogs.com/sgsoft/archive/2011/07/08/2100943.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sgsoft/archive/2011/06/22/2087711.html带状疱疹覆灭记 - 海天一鸥2011-6-10,发现腰部出现红色成片的皮疹,有轻微的痒,开始以为是痱子,就擦拭了一些姜汁(嘿嘿,网上找的偏方,一没重视,二不敢上医院)。 2011-6-11,皮疹变得严重,出现了3块,其中一块出现...2011-06-22T15:53:00Z2011-06-22T15:53:00Z海天一鸥https://www.cnblogs.com/sgsoft/【摘要】2011-6-10,发现腰部出现红色成片的皮疹,有轻微的痒,开始以为是痱子,就擦拭了一些姜汁(嘿嘿,网上找的偏方,一没重视,二不敢上医院)。 2011-6-11,皮疹变得严重,出现了3块,其中一块出现... <a href="https://www.cnblogs.com/sgsoft/archive/2011/06/22/2087711.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sgsoft/archive/2011/06/21/2085654.htmlADO vs ADO.NET vs OLE DB vs ODBC [数据提供程序之间的差别] - 海天一鸥What are the Microsoft Data Access Components?The Microsoft Data Access Components (MDAC) are the ke...2011-06-21T00:46:00Z2011-06-21T00:46:00Z海天一鸥https://www.cnblogs.com/sgsoft/【摘要】What are the Microsoft Data Access Components?The Microsoft Data Access Components (MDAC) are the ke... <a href="https://www.cnblogs.com/sgsoft/archive/2011/06/21/2085654.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sgsoft/archive/2011/06/07/2074674.html获取SYSTEM账户的环境变量 - 海天一鸥As you can see in Windows Control Panel 'System' applet there are two groups of environment variable...2011-06-07T14:31:00Z2011-06-07T14:31:00Z海天一鸥https://www.cnblogs.com/sgsoft/【摘要】As you can see in Windows Control Panel 'System' applet there are two groups of environment variable... <a href="https://www.cnblogs.com/sgsoft/archive/2011/06/07/2074674.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sgsoft/archive/2011/05/09/2041548.html如何在 Windows 7 中使用多线程加快文件复制? - 海天一鸥为什么没办法在 Windows 7 下加快 Windows 7 中文件复制/传输功能呢?可以用 robocopy 实现多线程文件复制实现。 经常进行文件管理操作的朋友们,提到复制/粘贴操作,想必很多人...2011-05-09T13:28:00Z2011-05-09T13:28:00Z海天一鸥https://www.cnblogs.com/sgsoft/【摘要】为什么没办法在 Windows 7 下加快 Windows 7 中文件复制/传输功能呢?可以用 robocopy 实现多线程文件复制实现。 经常进行文件管理操作的朋友们,提到复制/粘贴操作,想必很多人... <a href="https://www.cnblogs.com/sgsoft/archive/2011/05/09/2041548.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sgsoft/archive/2011/05/02/2034626.html关于VC++ 字符集 - 海天一鸥VC程序的国际化不像JAVA,.NET那样支持的极其自然,各种各样的宏及数据类型,常使程序输出莫名其妙乱码,特别是在使用第三方类库时。 下面就我对VC项目字符集问题的一点心得: 1、std::stri...2011-05-02T13:58:00Z2011-05-02T13:58:00Z海天一鸥https://www.cnblogs.com/sgsoft/【摘要】VC程序的国际化不像JAVA,.NET那样支持的极其自然,各种各样的宏及数据类型,常使程序输出莫名其妙乱码,特别是在使用第三方类库时。 下面就我对VC项目字符集问题的一点心得: 1、std::stri... <a href="https://www.cnblogs.com/sgsoft/archive/2011/05/02/2034626.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sgsoft/archive/2011/04/28/2031910.htmlC++ reserve 与 resize的区别 - 海天一鸥resize要求容器具有sz个元素,可以使用c类型拷贝填充。否则用默认构造子填充;调用resize之后,容器的size()返回值发生改变; reserve要求容器可以容纳至少N个元素。它实际是要求容...2011-04-28T08:08:00Z2011-04-28T08:08:00Z海天一鸥https://www.cnblogs.com/sgsoft/【摘要】resize要求容器具有sz个元素,可以使用c类型拷贝填充。否则用默认构造子填充;调用resize之后,容器的size()返回值发生改变; reserve要求容器可以容纳至少N个元素。它实际是要求容... <a href="https://www.cnblogs.com/sgsoft/archive/2011/04/28/2031910.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sgsoft/archive/2011/04/24/2026100.htmlICE bidirectional connections 关键点 - 海天一鸥ICE是一套跨平台分布式通信框架。本文介绍ICE3.4.1的bidirectional connection特性。 客户端: C++: 1: CallbackSenderPrx server = Ca...2011-04-24T02:41:00Z2011-04-24T02:41:00Z海天一鸥https://www.cnblogs.com/sgsoft/【摘要】ICE是一套跨平台分布式通信框架。本文介绍ICE3.4.1的bidirectional connection特性。 客户端: C++: 1: CallbackSenderPrx server = Ca... <a href="https://www.cnblogs.com/sgsoft/archive/2011/04/24/2026100.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sgsoft/archive/2011/04/19/2021500.html你最后会划掉谁的名字…… - 海天一鸥美国的一所大学, 在快下课时教授对同学们说: "我和大家做个游戏,谁愿意配合我一下。"一女生走上台来。 教授说: "请在黑板上写下你难以割舍的二十个人的名字。" 女生照做了。有她的邻居、朋友、亲人等等。教授说: "请你划掉一个这里面你认为最不重要的人。" 女生划掉了一个她邻居的名字。 教授又说: "请你再划掉一个。" 女生又划掉了一个她的同事。 教授再说: "请你再划掉一个。" 女生又划掉了一个。...2011-04-19T13:04:00Z2011-04-19T13:04:00Z海天一鸥https://www.cnblogs.com/sgsoft/【摘要】美国的一所大学, 在快下课时教授对同学们说: "我和大家做个游戏,谁愿意配合我一下。"一女生走上台来。 教授说: "请在黑板上写下你难以割舍的二十个人的名字。" 女生照做了。有她的邻居、朋友、亲人等等。教授说: "请你划掉一个这里面你认为最不重要的人。" 女生划掉了一个她邻居的名字。 教授又说: "请你再划掉一个。" 女生又划掉了一个她的同事。 教授再说: "请你再划掉一个。" 女生又划掉了一个。... <a href="https://www.cnblogs.com/sgsoft/archive/2011/04/19/2021500.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sgsoft/archive/2011/04/08/2009226.htmlPoco::DateTimeFormatter Tips - 海天一鸥DateTimeFormatter::format bug? by sgsoft » 25 Oct 2010, 18:07 below code : Code: Select all int tzd=...2011-04-08T03:38:00Z2011-04-08T03:38:00Z海天一鸥https://www.cnblogs.com/sgsoft/【摘要】DateTimeFormatter::format bug? by sgsoft » 25 Oct 2010, 18:07 below code : Code: Select all int tzd=... <a href="https://www.cnblogs.com/sgsoft/archive/2011/04/08/2009226.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sgsoft/archive/2011/04/04/2005401.htmlPOCO日志组件Tips - 海天一鸥1、不要频繁调用Logger::get() ,而应总是调用1次,存储引用,使用引用; You should avoid calling Logger::get() frequently. It's m...2011-04-04T13:13:00Z2011-04-04T13:13:00Z海天一鸥https://www.cnblogs.com/sgsoft/【摘要】1、不要频繁调用Logger::get() ,而应总是调用1次,存储引用,使用引用; You should avoid calling Logger::get() frequently. It's m... <a href="https://www.cnblogs.com/sgsoft/archive/2011/04/04/2005401.html" target="_blank">阅读全文</a>