现在介绍常量的配置,主要用于客户端(as3)与服务端(java)之间的常量同步,比如错误码、请求标识等配置格式: 常量定义只能有一个根节点 macros,子节点
macro 表示一个常量,子节点 group 同样表示一个常量,但它与其下子...
分类:
数据库 时间:
2014-05-26 02:46:20
阅读次数:
416
看到构造语意的其中一节“继承体系下的对象构造”(5.2节)的最后,看来原文,发现侯杰的翻译有问题,怪不得读起来不顺。What about when
providing an argument for a base class constructor? Is it still physically s...
分类:
编程语言 时间:
2014-05-26 01:36:11
阅读次数:
355
目的:使用表驱动法,替换复杂的if/else和switch/case语句。说明:JS
等其他语言也都支持的.表驱动发示例:http://blog.csdn.net/zhouyulu/article/details/6860907参考资料1.
《代码大全》(第2版)中文版,第18章 表驱动法。
分类:
编程语言 时间:
2014-05-26 00:55:26
阅读次数:
758
Question0Sign in to voteFolks,In my
application, when the user hits "Submit" button, I have to make a Web service
call asynchronously. Here is what I ...
分类:
其他好文 时间:
2014-05-25 22:19:32
阅读次数:
657
我们在执行某些SQL语句的时候有可能会生成临时表.我们应该尽量的去避免临时表.因为临时表会浪费内存和时间.那么什么情况下会产生临时表呢?这是来自MYSQL官方的说明If
there is an ORDER BY clause and a different GROUP BY clause[官方说明]...
分类:
其他好文 时间:
2014-05-25 11:25:04
阅读次数:
199
昨天同事在做主从时,从库报如下错误:Got fatal error 1236 from master when reading data from binary log: 'Misconfigured master - server id was not set'粗粗看好像是master的server-id没有设置,但同事做如下查询:备库采集:
root@localhost Fri May 23 ...
分类:
数据库 时间:
2014-05-25 09:57:24
阅读次数:
330
A palindromic number or numeral palindrome is a 'symmetrical' number like 16461 that remains the same when its digits are reversed. In this problem you will be given two integers i j, you have to find...
分类:
其他好文 时间:
2014-05-25 07:41:08
阅读次数:
253
【题目】
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.
If the last word does not exist, return 0.
Note: A word is defined as a character sequence consists of non-space ...
分类:
其他好文 时间:
2014-05-25 07:39:05
阅读次数:
256
在雅各布森用例分析方法和科伯恩用例分析方法中其实都没有“业务规则”的属性,在科伯恩方法中有个相近的属性是约束条件。但是业界使用中常常会给用例加上这个属性,这是为什么呢?为什么两位大师没有加上,是大师们疏忽了?而为什么不少人加上了呢?
从时间和传播上很容易推断,业务规则的来源是传统的需求规格说明书。在传统的需求规格说明书中,整理提炼业务规则或称业务逻辑是其中核心的分析产物。受到传统需求规格说明书的...
分类:
其他好文 时间:
2014-05-25 07:22:45
阅读次数:
1809
The Leak of the Memory in C++
In this chaper I will introduce a new smart pointer which is scoped_ptr;
It likes auto_ptr but better. When peopel use auto_ptr, sometimes they forget
that auto_...
分类:
编程语言 时间:
2014-05-25 07:03:10
阅读次数:
373