//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.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
us...
                            
                            
                                分类:
其他好文   时间:
2014-05-04 09:30:21   
                                阅读次数:
360
                             
                    
                        
                            
                            
                                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
                             
                    
                        
                            
                            
                                最近重新看鸟哥,准备装CentOs,一看最新版本是6.5,书上是5.X的,略有点不同,二话不说,搞起~
我的VMware版本是10.0.1 build-1379776
先新建一个虚拟机,挂上iso文件(两个iso挂第一个就行了,另一个放在同一目录下)
启动,出现以下画面
Install or upgrade an existing system 安装或升级现有的系统
install...
                            
                            
                                分类:
其他好文   时间:
2014-05-04 09:04:44   
                                阅读次数:
376
                             
                    
                        
                            
                            
                                Over the years, people discovered the concept of 
a memory hierarchy,...
                            
                            
                                分类:
其他好文   时间:
2014-05-04 09:03:17   
                                阅读次数:
247