{#advanced_dlg.about_title}

JAVA, CPlusPlus, 行业 »

2011-09-14 16:25:30 | 0 评论

I have a short describe of CCCC in the preceding post, let’s have a review it: CCCC is a C++/C static code analysis tool. CCCC is an open source project hosted in source forge. The latest version in CCCC official site is 3.48pre. The latest update of CCCC is April 2006, it is long long ago. Let me give you more founding after we have piloted it in our own source code: The la... [More]

{#advanced_dlg.about_title}

JAVA, CPlusPlus, 行业 »

2011-08-09 16:12:40 | 3 评论

The target of this topic is find out tools to support generate following indicators of C++ source code quality (all of those metrics are digested from http://scrumalliance.org/articles/300-the-land-that-scrum-forgot): Measure TDD usage: Undocumented systems, or systems where the documentation has gotten out-of-sync with the production code, are messy.  The unit tests produced by TDD are d... [More]

{#advanced_dlg.about_title}

行业, JAVA, DotNet, CPlusPlus »

2011-07-15 15:25:33 | 2 评论

Because uncle Bob's blog is inaccessible now, so I digest it: Posted by Uncle Bob Mon, 08 Jun 2009 16:26:51 GMT There are two metrics that I think are quite useful in the pursuit of clean code. One is Crap, and the other is The Braithwaite Correlation. The first is a pragmatic call to action, the second is a measure of overall care. CRAP (http://www.crap4j.org/) I’ve written about Crap before.... [More]

{#advanced_dlg.about_title}

JAVA, DotNet, CPlusPlus, 行业, 网页 »

2011-01-21 15:02:05 | 0 评论

首先递出一个很简单的规则KISS: Keep it Simple&Stupid,有人在扯最后的一个S应该是Standard,也许吧,是什么并不是很重要,关键是规则自己本身的第一句话 Keep it Simple. 维基百科上面 http://fr.wikipedia.org/wiki/KISS-principe (法语,自己找英文和中文哦)对于最后一个S也是很纠结,但是真的很重要吗? 问题出在下面的代码中(代码出自:http://www.cnblogs.com/Fskjb/archive/2009/08/03/1537917.html): public class TestEnum { /*最普通的枚举*/ public enum ColorSelect {         ... [More]

{#advanced_dlg.about_title}

行业, 报表系统, CPlusPlus, JAVA, 网页 »

2010-09-23 21:48:53 | 0 评论

jQuery: http://jquery.com/ jQuery EasyUI: http://jquery-easyui.wikidot.com/ jQuery EasyUI Docs:http://jquery-easyui.wikidot.com/document jQuery与DOM的转换:http://www.cnblogs.com/tiwlin/archive/2009/12/03/1616128.html jQuery与DOM对象:http://www.360doc.com/content/10/0827/17/2952237_49234535.shtml jQuery基础:http://wenku.baidu.com/view/e4522700a6c30c2259019e4a.html jQuery的240个插件:http://my.oschina.net/h... [More]

{#advanced_dlg.about_title}

CPlusPlus, 行业 »

2010-04-27 17:23:05 | 3 评论

在这个大环境下,Win的用户貌似不受MySQL欢迎,V5.5.4 M3怎么都没得WIn的现成的安装,所以没得办法,只能自己去弄一个源代码包来编译了。 首先从dev.mysql.com上下载源代码包 从CMake - Cross Platform Make下载CMAKE可执行程序 解压源代码包到特定目录,找到Win目录下的build-vs9.bat,修改唯一的一行有效代码的cmake的路径为安装的CMAKE的路径 在源代码包根目录下(Win的上层目录)执行build-vs9.bat,程序会自动创建一个MySQL的VC工程,打开这个工程进行编译All-Build即可。编译MySQL让我蓝屏一次,死机一次,真不容易啊,内存是关键啊 在编译的时候出现\sql\sql_locale.cc乱码错误,是因为编码问题,直接用UltraEditor转存为UTF-8即可。 More Info: http://... [More]

{#advanced_dlg.about_title}

DotNet, CPlusPlus, 行业 »

2009-12-22 13:32:52 | 0 评论

In C++, FlexeLint is a good tool for static analysis source code, but unfortunately, the reports generated by FlexeLint are formatted in plain text. As there were always a lot of “error” ,"warning” and “information” reported, we could not finger out where the really errors are. So I decided to develop a tool to show and focus on “really” errors. As a programmer, I want to use the familiar tool to ... [More]

{#advanced_dlg.about_title}

CPlusPlus, 行业 »

2009-10-09 16:49:00 | 0 评论

We received a bug about can not receive any notification but the notification channel can be built successfully. After a long investigation, we found this issue was caused by the network environment. Let’s do more check on this issue, why we don’t know whether objects in IROs is running well or not. I downloaded the famous “hello world” sample from internet and di... [More]

{#advanced_dlg.about_title}

DotNet, 行业, CPlusPlus »

2009-06-03 23:05:19 | 0 评论

http://parandroid.com/8-online-css-optimizer/ http://www.codeproject.com/KB/cs/KeepAliveWeakReference.aspx http://www.codeproject.com/KB/threads/MultiThreadingWrapper.aspx http://www.codeproject.com/KB/dialog/SemiTranDlgWithCtrls.aspx http://www.codeproject.com/Articles/36262/Getting-Fun-with-Net-Static-Reflection.aspx http://www.codeproject.com/KB/DLL/MultiProcess.aspx http://ww... [More]

{#advanced_dlg.about_title}

CPlusPlus, DotNet, JAVA, 设计, 报表系统, 行业, 网页 »

2009-05-02 14:45:00 | 0 评论

目前算得上有一份稳定的工作,而且比以前轻松了许多,所以业余时间大部分都是我自己的,我也在准备开始继续报表的开发,算起来已经搁浅了将近3个月了。在开发之前我想弄一份报表源代码授权,在选择GPL/LGPL和BSD之后,我还是看上了BSD。原因是: 对于代码的所属问题上,我一直比较含糊,如果要开源,那就开一个彻底,否则开源做什么? 对于代码的修改权限,我看的更淡,每个人都有自己的看法和建议,但是很多时候我可能不会去考虑某些人的想法,简单的说,代码,每个人都可以修改,但是我不保证修改的代码就会包含到下一个发布版本中。 对于支持,我觉得很累,很多的代码,只是我自己练手用的,所以我不是很喜欢花精力在上面——既然源代码都有了,那你自个看吧。 对于所谓的知识产权,目前对我来说,没有任何意义,只有共享,才能称之为知识——至少目前我还是笃... [More]

{#advanced_dlg.about_title}

CPlusPlus, 行业 »

2009-05-01 13:57:00 | 2 评论

很少用在C++下面的XML,虽然买了一本书,但是尘封数年了,没看。大多数都是用JDOM之类非常简单明快的东西——嗯,最近受到Websphere的XML解析器的困扰,我已经开始自己抽取一份XML解析器了。所以在C++上的SAX,多少熟悉一些,但是代码却有些陌生,尤其是那个转义的XMLCh,令人有些哭笑不得。 问题出自于一个在用的系统,原先的XML节点中的字符串都是规范的字符串,没有特殊字符,目前客户(万恶的China Unicom)要在这些节点中加入”<”和”>”导致解析的时候出现错误。原先的解析机制大致如下 startElement->读取节点属性 characters->读取XML节点中的文本 endElement->处理上面读取到的文本 ... [More]

{#advanced_dlg.about_title}

CPlusPlus, DotNet, JAVA, 行业, 生活, 网页 »

2009-04-29 21:12:00 | 0 评论

数据库 SQL Server恢复只有MDF的数据库: http://www.cnblogs.com/Anper/archive/2009/04/28/1445100.html Dot Net: Winform嵌入控制台程序 http://www.cnblogs.com/gster/archive/2009/04/28/1444745.html 娱乐 十大令人恐怖的昆虫 http://www.redbots.cn/sciences/2009/04/28/9714.htm Java Script (From Douglas Crockford) 推荐站点的站点,站点截图http://www.aoaod.com/Home/Content/1131 把PSD做成XHTML和CSS http://www.aoaod... [More]

{#advanced_dlg.about_title}

CPlusPlus, 行业 »

2009-02-18 09:50:00 | 0 评论

Quite a lot of program blocks of my company use TAO as default IDL compiler, and the tool output *.hh as C++ header. I encountered a embarrassed situation when I using Visual C++ 2008 to navigate and edit the source code: the IDE can not recognize the *.hh as C++ header files, obviously, it is a bad message. After a boring searching, I found how to resolve this issue: 1. Open you VC++ ... [More]

{#advanced_dlg.about_title}

行业, JAVA, DotNet, CPlusPlus, 报表系统 »

2009-01-05 13:41:58 | 3 评论

JDK1.5出台这么长时间,真正在项目中用的时候非常少,原因是项目大都是大型系统,局限于Application Container, 例如WebSphere,折腾了很长时间才懒洋洋的支持JDK1.5,而另外则是很过JSP编译器不支持泛型,所以比较难处理。 我将 SQLReport 的定位为自己的一个练手的项目,所以在脱离了实际的生产环境之后,毫不犹豫的转型到了JDK1.5, 当然这也带来了大量的代码重构和改动——这也是当前迟迟不能发布V4.0的主要原因——工作量虽然大,也有些甘之如饴。 在C++中用模板的时候,觉得这个东西非常强大,但是非常玄,尤其是编译器不支持动态编译(实时语法提示)的时候,很容易出错,例如下面的方法: template<Class T> class SomeClass {     T obj; ... [More]

{#advanced_dlg.about_title}

CPlusPlus, 行业 »

2008-12-19 14:05:32 | 0 评论

The original article is here from hangwire. ----------- 在下列函数声明中,为什么要同时使用*和&符号?以及什么场合使用这种声明方式?  void func1( MYCLASS *&pBuildingElement );      论坛中经常有人问到这样的问题。本文试图通过一些实际的指针使用经验来解释这个问题。   仔细看一下这种声明方式,确实有点让人迷惑。在某种意义上,"*"和"&"是意思相对的两个东西,把它们放在一起有什么意义呢?。为了理解指针的这种做法,我们先复习一下C/C++编程中无所不在的指针概念。我们都知道MYCLASS*的意思:指向某个对象的指针,此对象的类型为MY... [More]

{#advanced_dlg.about_title}

CPlusPlus, 行业 »

2008-12-15 11:02:00 | 0 评论

The Version of GCC bash-3.00$ g++ --version g++ (GCC) 3.4.5 20051201 (Red Hat 3.4.5-2) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions.  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I have got the following errors when I try to compile our project: c3gtfsevmapmx.c... [More]

{#advanced_dlg.about_title}

CPlusPlus, DotNet, 行业, 网页 »

2008-12-03 15:38:00 | 1 评论

I am upgrading my Blog from Blog Engine V1.3 to V1.4.5.0 and I am going to change the theme SilverLight to another good view one named “Dilectio”, some changes are needed to fit my opinion. Go BlogEngine.NET to download the new version of engine. Go http://www.onesoft.dk/ to download the theme which I am using, it’s named “Dilectio” and based http://design... [More]

{#advanced_dlg.about_title}

CPlusPlus »

2008-10-27 17:14:10 | 1 评论

Thanks Jeff. I'd like to share some tips with you guys, which including the answer for Question 1 that Jeff has mentioned in the prev-mail. The root cause of the core-dump of the process "c3gcommx" is "Exception Specification". Exception Specification Basic An exception specification describes which exceptions a function is allowed to throw. Exceptions not listed i... [More]

{#advanced_dlg.about_title}

CPlusPlus, 行业 »

2008-10-22 21:10:13 | 0 评论

1. Understand the requirements. Make sure you understand the requirements before you begin to debug and fix anything. Is there a standards document or a specification to look at? Or other documentation? Maybe the software is not malfunctioning after all. It could be a misinterpretation instead of a bug. 2. Make it fail. You need a test case. Make your program fail. See it with your own eyes. A ... [More]

{#advanced_dlg.about_title}

CPlusPlus »

2008-10-19 21:11:00 | 0 评论

This is a memo of C++ feature test.   #include<string> #include<iostream> using namespace::std;class InterfaceA{ virtual void MsgA()=0;}; class InterfaceB{ virtual void MsgB()=0;}; class ImplementA: InterfaceA{ public: ImplementA() { //No code here }; void MsgA() { cout<<"ImplementA: Message A"<<endl; }; }; ... [More]