海鸥航迹

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

导航

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 海天一鸥 阅读(622) 评论(1) 推荐(0) 编辑