上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 24 下一页
摘要: 1、在VM的菜单下选择Install VMWare Tools2、挂接光驱:mount /dev/cdrom /mnt/3、解压程序:cd /tmp/tar -C /tmp -zxvf /mnt/VMwareTools-7.8.5-156735.i368.tar.gz//4、卸载光驱:umount /mnt5、安装:cd /tmp/vmware-tools-distrib./vmware-inst... 阅读全文
posted @ 2009-06-12 11:40 chenjunbiao 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 1、halt 关闭计算机。2、reboot 重启计算机。3、shutdown4、init init 0 关机,init 6重启5、ifconfig -a 获取本机IP 阅读全文
posted @ 2009-06-12 09:52 chenjunbiao 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 1、group by统计合并 Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->select [UserName], sum([上传图片]) as [上传图片], sum([添加分享]) as [添加分享], sum([上传... 阅读全文
posted @ 2009-06-02 13:36 chenjunbiao 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 通过实现IFormatProvider, ICustomFormatter接口可以实现自定义的格式输现,这里有实现一个例子,以输出日期格式为例(显示今天、明天、后天和"x月x日"等) 1、假设我们有多种显示日期格式的需求,我们可以定义一个枚举如下: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.... 阅读全文
posted @ 2009-06-02 13:24 chenjunbiao 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 通过实现IFormatProvider, ICustomFormatter接口可以实现自定义的格式输现,这里有实现一个例子,以输出日期格式为例(显示今天、明天、后天和"x月x日"等)1、假设我们有多种显示日期格式的需求,我们可以定义一个枚举如下:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.C... 阅读全文
posted @ 2009-05-26 11:12 chenjunbiao 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 通常情况下我们关闭一个WCF链接都是简单地写把ICommunicationObject.Close()方法,但是这个方法有个问题就是当调用发生异常时,Close()会发生次生的异常,导致链接不能正常关闭。如果当这种异常很多时,必然对系统的稳定性有很大的影响,所以我们必须要考虑异常发生后如何关闭链接的问题。 我们可以写一个扩展来专门关闭WCF链接,而不是使用原来的Close Code highlig... 阅读全文
posted @ 2009-05-11 17:24 chenjunbiao 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 通过往WCF消息头中添加自定义信息,可以用于各种用途,比如可以用于传递AuthKey来判断调用是否合法。 客户端: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> using (OperationContextScope sco... 阅读全文
posted @ 2009-05-11 17:22 chenjunbiao 阅读(486) 评论(0) 推荐(0) 编辑
摘要: 通过往WCF消息头中添加自定义信息,可以用于各种用途,比如可以用于传递AuthKey来判断调用是否合法。 客户端: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> using (OperationContextSc... 阅读全文
posted @ 2009-05-07 10:04 chenjunbiao 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1、如何用反射得到调用当前方法的方法名称? Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->StringBuilder sb = new StringBuilder();StackTrace st = new StackTrace();for... 阅读全文
posted @ 2009-05-07 09:53 chenjunbiao 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 默认情况下,XmlSerializer无法序列化字典,这样让使用XmlSerializer作文件缓存或存储方式或asmx服务无法使用IDictionary。这里可以通过实现IXmlSerializable接口来定制一个可序列化的字典SerializableDictionary。 Code highlighting produced by Actipro CodeHighlighter (fre... 阅读全文
posted @ 2009-05-04 10:15 chenjunbiao 阅读(666) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 24 下一页