上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 40 下一页
  2014年3月18日
摘要: 尾递归版(def f (fn fb [n a1 a2] (if (< n 2) a1 (fb (- n 1) a2 (+ a1 a2) ) ) ))(map #(f % 1 1) [1 2 3 4 5 6 7]) 阅读全文
posted @ 2014-03-18 21:04 c3tc3tc3t 阅读(195) 评论(0) 推荐(0) 编辑
  2014年3月15日
摘要: /etc/profile 文件中编辑export INPUT_METHOD="ibus" 阅读全文
posted @ 2014-03-15 18:48 c3tc3tc3t 阅读(482) 评论(0) 推荐(0) 编辑
  2014年3月12日
摘要: 暂时只找到这几种方法。groovy代码方便灵活。常用来写一些工具。一般都是java加入groovy代码第一种 java中加入 groovy代码就是Toy.groovyclass Toy{ def p(arg) { arg.each{ println it } } } GroovyClassLoader gcl = new GroovyClassLoader(); Class greetingClass = null;try { greetingClass = gcl.parseClass(new F... 阅读全文
posted @ 2014-03-12 15:39 c3tc3tc3t 阅读(466) 评论(0) 推荐(0) 编辑
  2014年3月11日
摘要: CREATE TABLE `test` ( `id` INT(20) NOT NULL AUTO_INCREMENT, `name` VARCHAR(20) NULL DEFAULT NULL, `age` INT(5) NULL DEFAULT NULL, PRIMARY KEY (`id`))COLLATE='utf8_general_ci'ENGINE=InnoDB 查询出所有重复的记录 ,删除所有 select a.* 换成deleteselect a.* from test a join (select name,count(*) from test group by 阅读全文
posted @ 2014-03-11 21:39 c3tc3tc3t 阅读(245) 评论(0) 推荐(0) 编辑
摘要: create table test1(id number,name varchar2(20)); insert into test1 values(1,'jack');insert into test1 values(2,'jack');insert into test1 values(3,'peter');insert into test1 values(4,'red'); insert into test1 values(5,'green'); insert into test1 values(6,'g 阅读全文
posted @ 2014-03-11 19:12 c3tc3tc3t 阅读(244) 评论(0) 推荐(0) 编辑
摘要: select * from EB where exists (select * from BB where Code=EB.Code)把select 外层表EB看成是循环的,把每一个值eb.code传到里面去测试,为真刚返回结果这一条 阅读全文
posted @ 2014-03-11 14:12 c3tc3tc3t 阅读(354) 评论(0) 推荐(0) 编辑
  2014年3月10日
摘要: 转自http://blog.sina.com.cn/s/blog_3d21e545010006s9.html一、如何使用第三方任务Ant可以使用第三方任务,在使用第三方任务之前,需告知Ant,这就是任务的用意。Ant中声明第三方任务有一下几种方法:1、声明中指定任务类名,比如:2、比较常见的做法是,定义个properties文件,在该文件中将任务的名称和类名相对应,在一个文件中可以定义多个任务。在构建文件(build.xml)中,只需要指定该文件和类所在的路径,就可以一次定义多个任务了。比如:task.properties文件中:document=xdoclet.doc.DocumentDoc 阅读全文
posted @ 2014-03-10 08:54 c3tc3tc3t 阅读(443) 评论(0) 推荐(0) 编辑
  2014年3月8日
摘要: 现在NoSQL很流行,所以买了一本这方面的书,这本书虽然很薄 156页,但是感觉的确是大师的经验之谈,对于自己经验还是很少。无法能完全能心领神会,大师所说的,就像一个人说药苦,你没吃过。再听别人描述也无法能完全知道其中滋味,只能凭自己想想。这本书名叫Nosql精粹。感觉是对以前关系型数据库一个好的总结,用对比的方法,比较传统关系型数据库和NoSQL的区别。感觉书中的聚合对象和领域驱动设计的聚合跟貌似存在某种联系,NoSQL数据库的职责不像关系型数据库职责那么重。将聚合对象从NoSQL数据库中读出,对程序的读取数据速度也有了比较高的要求。数据存储在NoSQL的组织形式也尤其重要了。虽然不像关系型 阅读全文
posted @ 2014-03-08 20:32 c3tc3tc3t 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 工作空间外观 窗口装饰 ghost deco2.2 光标主题 ringG 桌面主题 ghost 欢迎屏幕 login-scan-splash-cg应用程序外观 风格 部件样式 Oxygen 颜色 ghost 图标 Iceglass4.12 字体 Source Code Pro 阅读全文
posted @ 2014-03-08 14:00 c3tc3tc3t 阅读(309) 评论(2) 推荐(0) 编辑
  2014年3月4日
摘要: 原地址 http://stackoverflow.com/questions/11662084/why-does-clojure-distinguish-between-symbols-and-vars?rq=1Symbols are namesUnlike most programming languages, Clojure makes a distinction betweenthingsand thenamesof things. In most languages, if I say something likevar x = 1, then it is correct and co 阅读全文
posted @ 2014-03-04 09:52 c3tc3tc3t 阅读(860) 评论(0) 推荐(0) 编辑
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 40 下一页