C#交流俱乐部

学习为主,互相帮助

博客园 首页 新随笔 联系 订阅 管理

2010年6月8日 #

摘要: 把要分析的文件放到cywin 目录"home/{当前登录用户名}/" 下,这个好像是可以配置。分析日志的页面访问,按次数排序,次数多的在最后awk '{print $4}' click.log | sort | uniq -c| sort -n所有文件被访问的次数.awk '{print $7}' access_log|sort |uniq -c|sort -nr所有访问源IP的链接次数.awk '{print $1}' access_log | sort |uniq -c |sort -nrcat access_log.20 阅读全文
posted @ 2010-06-08 09:46 bluce chen 阅读(922) 评论(0) 推荐(0) 编辑

2010年6月3日 #

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1usingSystem;2usingSystem.Collections.Generic;3usingSystem.Linq;4usingSystem.Text;5usingSystem.Reflection;67namespaceConsoleTest8{9//接口定义10interfaceIEmploy11{12//继承该接口要实现的方法13voidSpeak(strings);14} 阅读全文
posted @ 2010-06-03 18:53 bluce chen 阅读(496) 评论(1) 推荐(0) 编辑

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1int[]arrInt32=newint[]{41,88,80,73,57,88,28,56,34};2for(intx=0;x<9;x++)3{45for(inty=0;y<9-1;y... 阅读全文
posted @ 2010-06-03 15:59 bluce chen 阅读(272) 评论(2) 推荐(1) 编辑

摘要: netstat 显示established的连接 netstat –a 显示所有连接(按机器名和已知端口名显示) netstat –an 显示所有连接(按IP和端口号显示) netstat –r 显示路由信息telnet XXX.com 80 get /回车 阅读全文
posted @ 2010-06-03 15:02 bluce chen 阅读(165) 评论(0) 推荐(0) 编辑

摘要: 1.对于没有参数的线程ThreadT= new Thread(new ThreadStart(*));2.对于有参数的线程Thread T= new Thread(new ParameterizedThreadStart(*));--------------------------------msdn上代码:---------------------------------- class work... 阅读全文
posted @ 2010-06-03 14:36 bluce chen 阅读(238) 评论(0) 推荐(0) 编辑

摘要: 原文地址:http://blog.csdn.net/songkexin/archive/2007/01/18/1486289.aspx引言  数据库的设计范式是数据库设计所需要满足的规范,满足这些规范的数据库是简洁的、结构明晰的,同时,不会发生插入 (insert)、删除(delete)和更新(update)操作异常。反之则是乱七八糟,不仅给数据库的编程人员制造麻烦,而且面目可憎,可能存储了 大量... 阅读全文
posted @ 2010-06-03 13:43 bluce chen 阅读(190) 评论(0) 推荐(0) 编辑

摘要: 原文地址:http://www.cnblogs.com/aspnetx/archive/2006/09/22/512294.html 常用表达式: "^\d+$"  //非负整数(正整数 + 0) "^[0-9]*[1-9][0-9]*$"  //正整数 "^((-\d+)|(0+))$"  //非正整数(负整数 + 0) "^-[0-9]*[1-9][0-9]*$"  //负整数 "^-?\d+... 阅读全文
posted @ 2010-06-03 13:41 bluce chen 阅读(150) 评论(0) 推荐(0) 编辑

2010年5月27日 #

摘要: 詹兴斌:http://blog.zhanxb.com/category/19/代震军: http://daizhj.cnblogs.com/老赵:http://blog.zhaojie.me/张善友:http://www.cnblogs.com/shanyou/will :blog.miniasp.comhttp://www.sriramkrishnan.com/code/分布式Key Value... 阅读全文
posted @ 2010-05-27 15:27 bluce chen 阅读(285) 评论(0) 推荐(0) 编辑

2010年5月25日 #

摘要: 参考下面的示例,可以很容易实现动态绑定接口返回的json数组,具体绑定json数组的代码就不写了,参考下面方式就可以1<html><body><script> function swapOne() { var the_image = prompt("输入parrot或cheese",""); var the_image_name = "window.docume... 阅读全文
posted @ 2010-05-25 16:47 bluce chen 阅读(189) 评论(0) 推荐(0) 编辑

2010年5月24日 #

摘要: Response.ContentType 详细列表不同的ContentType 会影响客户端所看到的效果.默认的ContentType为 text/html 也就是网页格式.代码如:<% response.ContentType ="text/html" %><!--#i nclude virtual="/ContentType.html" --> 显示的为网页,而&... 阅读全文
posted @ 2010-05-24 18:35 bluce chen 阅读(526) 评论(0) 推荐(0) 编辑