在做性能测试测试时候,如果被测试的系统页面很简单,并且性能很好,这样会导致压力机得tcp链接数不够而导致如下错误:HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\tcpip\Parameters\TcpTimedWaitDelay
to 30...
分类:
其他好文 时间:
2014-05-19 08:55:54
阅读次数:
322
Mac系统打开命令行终端的方法: 应用程序 --> 实用工具 -->
终端Mac系统终端查看操作系统版本号的方法:输入:#more
/System/Library/CoreServices/SystemVersion.plist.plist ProductBuildVersion ...
分类:
其他好文 时间:
2014-05-19 08:44:27
阅读次数:
254
Guid.NewGuid()System.Guid.NewGuid().ToString()全球唯一标识符 (GUID)
是一个字母数字标识符,用于指示产品的唯一性安装。在许多流行软件应用程序(例如 Web 浏览器和媒体播放器)中,都使用 GUID。GUID
的格式为“xxxxxxxx-xxxx-x...
分类:
其他好文 时间:
2014-05-19 07:41:16
阅读次数:
257
以下是一个相对简陋的扩展, 主要是针对金额显示的Textbox扩展.using
System;using System.Collections.Generic;using System.Linq;using System.Web;using
System.Web.UI.WebControls;usi...
分类:
Web程序 时间:
2014-05-19 07:34:53
阅读次数:
426
System.InvalidOperationException:
支持“XXX”上下文的模型已在数据库创建后发生更改。请考虑使用 Code First
迁移更新数据库(http://go.microsoft.com/fwlink/?LinkId=238269)。EF发布时遇到的问题(数据库初始化h...
分类:
数据库 时间:
2014-05-19 07:14:08
阅读次数:
557
using System.Xml;using System.Xml.Linq;XmlDocument
document = new XmlDocument();document.Load("SessionDef.xml");XmlNodeList
nodelist = document.Select...
分类:
其他好文 时间:
2014-05-19 07:10:10
阅读次数:
227
第一种方法--及时回收bitmap内存:一般而言,回收bitmap内存可以用到以下代码if(bitmap!=null&&!bitmap.isRecycled()){bitmap.recycle();bitmap=null;}System.gc();bitmap.recycle()方法用于回收该bit...
分类:
移动开发 时间:
2014-05-18 21:26:21
阅读次数:
519
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Runtime.InteropServices;using
System.IO;namespace Hello...
分类:
其他好文 时间:
2014-05-18 20:16:27
阅读次数:
309
using DevExpress.XtraGrid;// ...string fileName
="c:\\XtraGrid_SaveLayoutToXML.xml";privatevoid Form1_Load(object sender,
System.EventArgs e) { gridCo...
分类:
其他好文 时间:
2014-05-18 20:15:22
阅读次数:
300
方法一:Console.Beep();方法二:可以用Console.WriteLine("/a");来代替Beep()。MSDN:http://msdn.microsoft.com/zh-cn/library/System.Console.Beep(v=vs.110).aspx