尋尋覓覓

共同奉獻

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

摘要: 笑完之后不妨来我店逛逛热销包包~*^*~· 韩版手提包斜跨包双肩背包42.00元 2011最新 高档 潮流 韩版58.00元 单肩斜挎包 多用包 80.00元 真皮信封包 流苏花朵女包 88.00元 PU配真皮机车包手提包 43.00元 正品压花皮 肩挎 手拿 42.00元 秋冬菱格子 40.00元 (正品)单挎 肩挎 手拿 56.00元 阅读全文
posted @ 2011-01-06 22:33 ★海戰鷹 阅读(352) 评论(0) 推荐(0) 编辑

2012年2月9日

摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Web;usingSystem.Web.Caching;usingSystem.Collections;namespaceCommonLibrary.Utility{publicclassCacheHelper{publicstaticboolAddToCache(stringkey,objectitem){RemoveFromCache(key);HttpRuntime.Cache.Add(key,item,null,Cache.NoAbsolut 阅读全文
posted @ 2012-02-09 10:51 ★海戰鷹 阅读(293) 评论(0) 推荐(0) 编辑

2011年12月21日

摘要: C#中使用TripleDESCryptoServiceProvider类//C#中使用TripleDESCryptoServiceProvider类using System;using System.Text;using System.Collections;using System.IO;using System.Security.Cryptography;namespace ImageAnimatorExample{ class TripleDESCryptoServiceProviderDemo { public static void Main(String[] args) { //加 阅读全文
posted @ 2011-12-21 09:20 ★海戰鷹 阅读(2974) 评论(0) 推荐(0) 编辑

2011年9月4日

摘要: 通过Package Manager Console 向VS2010安装 EntityFramework 尝试用VS2010--工具--Library Package Manager--Add Library Package Reference的online搜索 EntityFramework, 再找到的结果中,点选该Package的Install, 却提示错误: "This package (or one of its dependencies) contains powershell scripts and needs to be installed fro... 阅读全文
posted @ 2011-09-04 11:43 ★海戰鷹 阅读(872) 评论(1) 推荐(0) 编辑

2011年9月1日

摘要: ///<summary>///令牌申请///</summary>///<returns></returns>///需要引用的命名空间///usingcom.travelsky.sbeclient.authorization;///usingcom.travelsky.sbeclient;publicstringapplyToken(){stringSbeID="linkoskyTest";stringSbePWD="123456";AuthorizationRequestauthRequest=newAut 阅读全文
posted @ 2011-09-01 09:39 ★海戰鷹 阅读(476) 评论(0) 推荐(0) 编辑

2011年8月29日

摘要: 关于windows IIS日志时间与系统时间相差8小时的问题很多做过网站的朋友在分析IIS日志的时候会发现IIS日志的时间与计算机的系统时间不符,比如在中国时区就会相差8小时。具体原因是什么呢?网 上搜索的结果十有八九让人做如下操作解决:在IIS日志属性“常 规”标签下,找到“文件命名和创建使用当地时间”,在其前打勾。实际上,这种方法并不能解决时差问题。真正的原因是因为IIS默认 采用W3C 扩展日志文件格式,而W3C 扩展日志文件定义日志采用GMT时间(即格林尼治标准时间),而中国在GMT +8时区,自然就相差八个小时了。要真正解决,有两个办法:1:活动日志格式更改为 “Microsoft. 阅读全文
posted @ 2011-08-29 11:04 ★海戰鷹 阅读(2741) 评论(0) 推荐(0) 编辑

2011年8月15日

摘要: netstat -s -P tcp 命令可查看所有可用的 TCP 参数[root@localhost ~]# netstat -n | awk '/^tcp.*7787/ {++S[$NF]} END {for(a in S) print a, S[a]}' netstat -n | awk '/^tcp / {++S[$NF]} END {for(a in S) print a, S[a]}' 阅读全文
posted @ 2011-08-15 11:16 ★海戰鷹 阅读(172) 评论(0) 推荐(0) 编辑

2011年8月14日

摘要: usingSystem;usingSystem.Net;usingSystem.Text;usingSystem.Net.Sockets;usingSystem.Collections.Generic;namespaceCustomLibraries.Threading{publicstaticclassConnectionPool{///<summary>///Queueofavailablesocketconnections.///</summary>privatestaticQueue<CustomSocket>availableSockets=nul 阅读全文
posted @ 2011-08-14 16:11 ★海戰鷹 阅读(643) 评论(0) 推荐(0) 编辑

摘要: 多线程 非安全实例usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading;namespaceThreadSample{classProgram{staticvoidMain(string[]args){intnumThreads=20;ShareStatestate=newShareState();Thread[]threads=newThread[numThreads];for(inti=0;i<numThreads;i++){threads[ 阅读全文
posted @ 2011-08-14 13:03 ★海戰鷹 阅读(248) 评论(0) 推荐(0) 编辑

2011年2月12日

摘要: Congratulations, you have8600available points and are eligible to redeem up to5rewards!Select your reward:Quantity:0 Points will be deducted from your account.Redeem 阅读全文
posted @ 2011-02-12 14:06 ★海戰鷹 阅读(419) 评论(0) 推荐(2) 编辑