摘要: 网上搜来的:Reason: This is probably because there is no OLE editor registered against the type of file you were trying to open. Class ID not found in registry result = -2147221018 Delete C:\Documents and Settings\Administrator\workspace the whole folder,then restart Eclipse It is ok.原来是eclipse 打开了excel 没 阅读全文
posted @ 2012-04-12 01:00 Alex~ 阅读(4432) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.keakon.net/2011/04/15/%E7%BB%9F%E8%AE%A1%E4%BB%A3%E7%A0%81%E8%A1%8C%E6%95%B0%E6%9C%89%E5%87%A0%E7%A7%8D%E5%86%99%E6%B3%95%EF%BC%9F昨晚突然想统计一下项目的代码行数,不过IDE没有提供这个功能,于是只能自己实现了。我最先想到的就是用Python了。方法很多,例如用os.walk()来遍历目录,然后过滤文件后缀名为源代码的(如py、html、js和css),再按行读取每个符合的文件,合计所有文件的行数。粗略看上去要2个循环和一个正则表达式 阅读全文
posted @ 2012-04-12 01:00 Alex~ 阅读(2476) 评论(0) 推荐(0) 编辑
摘要: 参考:http://maven.apache.org/plugins/maven-compiler-plugin/http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.htmlhttp://maven.apache.org/plugins/maven-compiler-plugin/usage.html 阅读全文
posted @ 2012-04-12 00:59 Alex~ 阅读(228) 评论(0) 推荐(0) 编辑