摘要: 参考地址:http://blog.19lou.com/10143734/viewspace-157322#include "log4cxx/logger.h"#include "log4cxx/basicconfigurator.h"#include "log4cxx/helpers/exception.h"using namespace std;using namespace log4cxx;using namespace log4cxx::helpers;int main(int argc, char* argv[]){ Logg 阅读全文
posted @ 2011-09-02 21:11 wangkangluo1 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://hi.baidu.com/lingzhixu/blog/item/4a9b830bb08a329fe850cd5b.html本地分支的创建本地分支的来源为执行git checkout -b <branch name> 的那个分支例如现在有两个分支,master和b1master 分支下有一个commit:commit1: add test1.cb1分支下有两个commit:commit2: add test2.ccommit1: add test1.c如果在master分支下checkout,即:git checkout master //进入master分 阅读全文
posted @ 2011-09-02 20:18 wangkangluo1 阅读(105037) 评论(4) 推荐(3) 编辑
摘要: 原文地址:http://www.jb51.net/article/18961.htm我们测试一下把刚才的4个输出作为一个分组输出,修改代码为:复制代码代码如下:console.group('开始分组:');console.debug('This is console.debug!');console.info('This is console.info!');console.warn('This is console.warn!');console.error('This is console.error!');c 阅读全文
posted @ 2011-09-02 13:50 wangkangluo1 阅读(2294) 评论(1) 推荐(1) 编辑
摘要: 原文地址:http://www.cnblogs.com/zhenn/archive/2011/02/20/1959186.html很多的web开发人员都使用Mozilla firefox并且绝大多数都使用firebug来测试、调试前端代码,firebug在调试html+css方面的能力是毋庸置疑的,但仅仅使用它来完成这样的任务并没有发挥firebug的巨大潜能。JavaScript性能随着web apps越来越庞大,JavaScript的性能也被推到风头浪尖,在此之前或许你已经知道哪些操作会减缓JavaScript程序运行速度,并且养成良好的编码习惯。正如你所知道的,使用appendChild 阅读全文
posted @ 2011-09-02 10:50 wangkangluo1 阅读(1360) 评论(0) 推荐(1) 编辑
摘要: 原文地址:http://www.cnblogs.com/jsfans/archive/2011/03/28/1998119.html性能分析工具firebug.console.profile(title)1. 第5章 JavaScript开发命令行API$(id)$$(选择器)$x(xpath)dir(对象)dirxml(节点)clear()inspect(object[, tabName])keys(object)values(object)debug(fn)和undebug(fn)monitor(函数名)和unmonitor(函数名)monitorEvents(object[, types 阅读全文
posted @ 2011-09-02 10:44 wangkangluo1 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://hi.baidu.com/tangguoshequ/blog/item/d587dc170878c8946538dbd1.html1. Levenshtein Distance该算法又称之为 "编辑距离",用于计算两个字符串的相似程度。原理很简单,就是返回将第一个字符串转换(删除、插入、替换)成第二个字符串的编辑次数。次数越少,意味着字符串相似度越高。算法原理:Wikipedia - Levenshtein distance本文摘自:http://www.rainsts.net/article.asp?id=767Step1:人 民 共 和 时 代0 阅读全文
posted @ 2011-09-02 10:28 wangkangluo1 阅读(1383) 评论(1) 推荐(1) 编辑