两天都在看异步编程了,感觉好难懂的样子。不知道自己的理解对不。public delegate int TaskWhileDelegate(int data, int ms); //定义委托//委托方法static int TaskWhile(int data, int ms) { Console.W...
分类:
其他好文 时间:
2014-09-11 23:37:52
阅读次数:
196
C#regex是正则表达式类用于string的处理,查找匹配的字符串。1,先看一个例子Regex regex=new Regex(@”OK“);//我们要在目标字符串中找到"OK"Match m=regex.Match("fjsladfOK");console.writeline(m.tostrin...
分类:
其他好文 时间:
2014-09-11 19:18:52
阅读次数:
175
1. [代码]使用 log = new Logger(this.GetType());log.Info("Hello world.");2. [代码]第二个版本,修复了Console重复发送消息的问题 using System;using System.Collections.Generic;u.....
分类:
Web程序 时间:
2014-09-11 16:39:12
阅读次数:
234
ActiveMq 基于文件共享的主从配置方案...
分类:
其他好文 时间:
2014-09-10 19:33:10
阅读次数:
231
[以下均为windows平台,linux类似]
常见错误1:ErrNo 10061
ADB 的tcp转发错了,重新建立
解决办法:
首先检查adb可正确,adb shell能不能进去,如果能
那么输入 adb forward tcp:31415 tcp:31415
再drozer.bat console connect即可
常见错误2: ErrNo 1...
分类:
其他好文 时间:
2014-09-10 15:55:50
阅读次数:
1054
console.warn( "nothing selected, can‘t validate, returning nothing" ); 单独运行,居然在控制台打印出了nothing selected, can‘t validate, returning nothing, 豁然开朗,既然可以这样在控制台打印出消息,...
分类:
Web程序 时间:
2014-09-10 12:49:10
阅读次数:
209
获取Console程序的路径和所在目录stringpath=System.Reflection.Assembly.GetExecutingAssembly().Location;stringdir=System.IO.Path.GetDirectoryName(path);
分类:
其他好文 时间:
2014-09-10 02:44:40
阅读次数:
162
1、获取视频时间长度 当视频载入video后,使用onloadedmetadata事件获取视频的时间长度。1 video.onloadedmetadata = function () {2 var vLength = video.duration;3 console.log(v...
分类:
Web程序 时间:
2014-09-10 00:22:29
阅读次数:
240
红帽Linux故障定位技术详解与实例(2)2011-09-28 14:26 圈儿 BEAREYES.COM我要评论(0)字号:T|T在线故障定位就是在故障发生时, 故障所处的操作系统环境仍然可以访问,故障处理人员可通过console, ssh等方式登录到操作系统上,在shell上执行各种操作命令或测...
分类:
系统相关 时间:
2014-09-09 23:00:29
阅读次数:
318