海鸥航迹

学习之笔记,好文之收集。

导航

2011年8月19日 #

Windows批处理中的等待技巧

摘要: 1、直接使用Windows 2003资源工具包中的Sleep.exe 程序,它在全系列Windows中都可以运行; 2、使用下面的技巧 @ping 127.0.0.1 –n 12 >nul 由于Windows Ping目标地址是间隔1秒,上面的指令相当于等候12秒; 阅读全文

posted @ 2011-08-19 23:08 海天一鸥 阅读(3441) 评论(0) 推荐(0) 编辑

2011年8月9日 #

The Ice::Current Object

摘要: The Ice::Current Object 服务器端Servant骨架方法(skeleton operation)都有一个Ice::Current类型的参数,这个对象定义如下: module Ice { local dictionary<string, string> Context; enum OperationMode { Normal, \Nonmutating, \Idempotent... 阅读全文

posted @ 2011-08-09 22:46 海天一鸥 阅读(1472) 评论(0) 推荐(0) 编辑

ICE代理的固有方法

摘要: 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... 阅读全文

posted @ 2011-08-09 22:45 海天一鸥 阅读(2415) 评论(0) 推荐(0) 编辑

2011年8月7日 #

C# 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 ... 阅读全文

posted @ 2011-08-07 21:42 海天一鸥 阅读(392) 评论(0) 推荐(0) 编辑

2011年8月2日 #

Configuring 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... 阅读全文

posted @ 2011-08-02 21:28 海天一鸥 阅读(1122) 评论(0) 推荐(0) 编辑

2011年7月28日 #

IoC 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... 阅读全文

posted @ 2011-07-28 21:23 海天一鸥 阅读(525) 评论(1) 推荐(0) 编辑

Functional .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... 阅读全文

posted @ 2011-07-28 21:21 海天一鸥 阅读(446) 评论(1) 推荐(0) 编辑

binary 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};... 阅读全文

posted @ 2011-07-28 21:20 海天一鸥 阅读(438) 评论(1) 推荐(0) 编辑

JAVA 上加密算法的实现用例

摘要: MD5/SHA1,DSA,DESede/DES,Diffie-Hellman 的使用 第 1 章基础知识 1.1. 单钥密码体制 单钥密码体制是一种传统的加密算法,是指信息的发送方和接收方共同使用同一把密钥进行加解密。 通常 , 使用的加密算法比较简便高效 , 密钥简短,加解密速度快,破译极其困难。但是加密的安全性依靠密钥保管的安全性 , 在公开的计算机网络上安全地传送和保管密钥是一个严峻的问题,... 阅读全文

posted @ 2011-07-28 21:19 海天一鸥 阅读(618) 评论(1) 推荐(0) 编辑

2011年7月8日 #

Exploring The Major Interfaces in Rx

摘要: 本文描述了主要的Reactive Extensions (Rx)接口,其用于表示observable序列,并subscribe它们。 IObservable<T>/IObserver<T>在.NET ... 阅读全文

posted @ 2011-07-08 14:09 海天一鸥 阅读(489) 评论(0) 推荐(0) 编辑