//2008年4月24日 System.DateTime.Now.ToString("D");
//2008-4-24 System.DateTime.Now.ToString("d"); //2008年4月24日 16:30:15 System.D...
分类:
其他好文 时间:
2014-05-05 12:07:58
阅读次数:
272
我想找到D盘里面所有 "*.pst文件,类似 windows 下的磁盘搜索功能,using
System.IO;Directory.GetFiles(@"d:\", "*.pst",
SearchOption.AllDirectories)测试环境为win7 提示说 某某目录没有访问权限。获得文件属...
分类:
其他好文 时间:
2014-05-05 11:37:06
阅读次数:
309
ashx里使用session添加命名空间using
System.Web.SessionState;实现一个接口 IRequiresSessionState
分类:
其他好文 时间:
2014-05-05 11:20:51
阅读次数:
278
背景: 最近总是出现客户端超时,那么根据超时进行排查
System.Data.SqlClient.SqlException (0x80131904): Timeout expired. The timeout
period elapsed prior to completion of the o.....
分类:
Web程序 时间:
2014-05-05 11:16:29
阅读次数:
346
publicvoidToExcel(System.Web.UI.Controlctl,stringFileName){HttpContext.Current.Response.Charset="UTF-8";HttpContext.Current.Response.ContentEncoding=S...
分类:
其他好文 时间:
2014-05-04 20:38:49
阅读次数:
405
首先这种情况出现在应用程序启动前的方法里面。本想通过发射来实现一些功能。谁知道被这个坑了。碰到这种问题。已经相当无语了。同时也不知道该如何解决。望有能之士帮忙解答using
System;using System.IO;using System.Linq;using System.Reflectio...
分类:
Web程序 时间:
2014-05-04 20:24:23
阅读次数:
433
【关闭SublimeText自动更新】 1、找到Preferences ->
Settings-User(设置用户) 2、在最后一个花括号结尾(“}”)前添加一句:”update_check":false,结果如图所示:
分类:
其他好文 时间:
2014-05-04 20:18:37
阅读次数:
313
Linux的内核和System Call不好调试,参考这里:
http://stackoverflow.com/questions/5999205/cannot-step-into-system-call-source-code
简单来说,如果想在本机调试system call,那么当你进入system call时,系统已经在挂起状态了,那么它又怎样能响应用户的输入?
所以,有一个UML...
分类:
数据库 时间:
2014-05-04 09:28:22
阅读次数:
463
在json对象和java对象转换时
String s = "{'name':'name1','pwd':'pwd1'}";
Person p = (Person)JSONObject.toBean(JSONObject.fromObject(s), Person.class);
System.out.println(p.getPwd());
上面代码中出现以下异常:
net.sf.json.JSONException: java.lang.NoSuchMethodException...
分类:
编程语言 时间:
2014-05-04 09:05:16
阅读次数:
1650
Over the years, people discovered the concept of
a memory hierarchy,...
分类:
其他好文 时间:
2014-05-04 09:03:17
阅读次数:
247