摘要:
适用于:Microsoft Visual Studio 2005摘要:Visual Studio 2005 是目前业内一流的开发工具,我想在此与大家分享一些使用技巧和窍门,使这个优秀的开发工具更显威力。要充分利用一个工具,关键是要熟悉它,开发工具和 IDE 也不例外。不过,有了 C# 2.0、ASP .NET 2.0、Windows Workflow Foundation、Windows Presentation Foundation 和 Windows Communication Foundation 等等许多新技术,谁又会花费时间来了解 Visual Studio 本身呢?花费 10 分钟 阅读全文
posted @ 2012-07-12 08:58
Crazy Eric
阅读(334)评论(0)推荐(0)
摘要:
参考官方两分钟教程:http://xstream.codehaus.org/tutorial.html一、问题背景 项目中有很多需要保存XML和JSON文件的地方,现在的做法是通过字符串拼好xml或json字符串后直接保存为文件;而读取文件的时候再重新解析文件获得相应属性。此方法使代码看起来即混乱又没有可复用性,有百害而无一利。二、解决办法 xStream是一个开源的java序列化与反序列化工具,可以将java对象序列化为xml和json格式的字符串或将俩种文件反序列化为相应的对象 代码举例: 1、javaBean public class Person { private String fi 阅读全文
posted @ 2012-06-27 15:37
Crazy Eric
阅读(2621)评论(1)推荐(0)
摘要:
Referrence:http://eduardo-lago.blogspot.de/2012/02/installing-nfs-on-centos-62.htmlThis is a how to install the NFS service on a Linux CentOS 6.2 box and making it accessible to others. The scenario is the following:Grant read-only access to the /home/public directory to all networksGrant read/write 阅读全文
posted @ 2012-06-27 00:30
Crazy Eric
阅读(1138)评论(0)推荐(0)
摘要:
Timestamp转化为String:SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//定义格式,不显示毫秒Timestamp now = new Timestamp(System.currentTimeMillis());//获取系统当前时间String str = df.format(now);String转化为Timestamp:SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");St 阅读全文
posted @ 2012-06-21 17:52
Crazy Eric
阅读(1652)评论(0)推荐(0)