摘要: 在黑色主题基础上,更改了字体 Ms Comic Sans 字号也增大了附件中有两个 一个是原版主题下载自https://studiostyl.es/第二个是如下改完后的主题vssettings.zip 阅读全文
posted @ 2014-03-12 11:00 erictanghu 阅读(525) 评论(0) 推荐(0) 编辑
摘要: 几种基本的数字正则表达式[转] 只能输入1个数字 表达式 ^\d$ 描述 匹配一个数字 匹配的例子 0,1,2,3 不匹配的例子 只能输入n个数字 表达式 ^\d{n}$ 例如^\d{8}$ 描述 匹配8个数字 匹配的例子 12345678,22223334,12344321 不匹配的例子 只能输入至少n个数字 表达式 ^\d{n,}$ 例如^\d{8,}$ 描述 匹配最少n个数字 匹配的例子 12345678,123456789,12344321 不匹配的例子 只能输入m到n个数字 表达式 ^\d{m,n}$ 例如^\d{... 阅读全文
posted @ 2014-03-12 10:53 erictanghu 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.cnblogs.com/coconut_zhang/archive/2009/02/02/1382598.html1. 当前系统日期、时间 select getdate() 2. dateadd 在向指定日期加上一段时间的基础上,返回新的 datetime 值 例如:向日期加上2天 select dateadd(day,2,'2004-10-15') --返回:2004-10-17 00:00:00.0003. datediff 返回跨两个指定日期的日期和时间边界数。 select dated... 阅读全文
posted @ 2014-03-12 10:51 erictanghu 阅读(513) 评论(0) 推荐(1) 编辑
摘要: A callback is a function that is passed as an argument to another function and is executed after its parent function has completed callback function click me 阅读全文
posted @ 2014-03-12 10:42 erictanghu 阅读(400) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Xml; 6 using System.Net; 7 8 namespace ... 阅读全文
posted @ 2014-03-12 10:24 erictanghu 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 原文:http://blog.csdn.net/h0322/article/details/47768191.1、Web Service基本概念Web Service也叫XML Web Service WebService是一种可以接收从Internet或者Intranet上的其它系统中传递过来的请求,轻量级的独立的通讯技术。是:通过SOAP在Web上提供的软件服务,使用WSDL文件进行说明,并通过UDDI进行注册。XML:(Extensible Markup Language)扩展型可标记语言。面向短期的临时数据处理、面向万维网络,是Soap的基础。Soap:(Simple Object A 阅读全文
posted @ 2014-02-21 10:29 erictanghu 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 问题:Timer不能持续执行,如果长时间没有访问,就会被IIs自动回收。造成一些定时作业无法完成。解决方式1:改用windows服务或是winform方式解决方式2:在Application_End事件模拟加载网站页面,唤醒要被回收的资源private const string DummyPageUrl = "http://localhost/Index.aspx";//可访问的页面private const string DummyCacheItemKey = "Du";// 注册一缓存条目在5分钟内到期,到期后触发的调事件 private void 阅读全文
posted @ 2014-02-18 16:47 erictanghu 阅读(1385) 评论(0) 推荐(0) 编辑
摘要: 原文:http://blog.csdn.net/cuiran/article/details/5854794Server端 1 #include 2 #include 3 #pragma comment(lib,"ws2_32.lib") 4 void main() 5 { 6 //创建套接字 7 WORD myVersionRequest; 8 WSADATA wsaData; 9 myVersionRequest=MAKEWORD(1,1);10 int err;11 err=WSAStartup(myVersionRequest,&wsaData);12 if 阅读全文
posted @ 2014-01-13 15:52 erictanghu 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 原文:http://blog.csdn.net/pandy1110/article/details/5963908C++内置的数组支持容器的机制,但是它不支持容器抽象的语义。要解决此问题我们自己实现这样的类。在标准C++中,用容器向量(vector)实现。容器向量也是一个类模板。标准库vector类型使用需要的头文件:#include 。vector 是一个类模板。不是一种数据类型,vector是一种数据类型。Vector的存储空间是连续的,list不是连续存储的。一、 定义和初始化vector v1; //默认v1为空,故下面的赋值是错误的v1[0]=5;vectorv2(v1)... 阅读全文
posted @ 2014-01-13 15:49 erictanghu 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.cnblogs.com/xFreedom/archive/2011/05/16/2048037.html要想使用标准C++中string类,必须要包含#include using std::string;using std::wstring;或using namespace std;下面就可以使用string/wstring了,它们两分别对应着char和wchar_t。string和wstring的用法是一样的,以下只用string作介绍:string类的构造函数string(const char *s); //用c字符串s初始化string(int n,... 阅读全文
posted @ 2014-01-13 15:42 erictanghu 阅读(110) 评论(0) 推荐(0) 编辑