- 博客(12)
- 资源 (6)
- 收藏
- 关注
转载 keyword in Jpa
KeywordSampleJPQL snippetAndfindByLastnameAndFirstname… where x.lastname = ?1 and x.firstname = ?2OrfindByLastnameOrFirstname… where x.lastname = ?1 or x.fi
2013-10-25 09:46:07 1030
翻译 order by sort by distribute by cluster by
Order by[plain] view plaincopycolOrder: ( ASC | DESC ) orderBy: ORDER BY colName colOrder? (',' colName colOrder?)* query: SELECT expression (',' expression)* FROM sr
2013-10-24 14:01:33 801
转载 获得当前split所在的文件名
utSplit=(InputSplit)context.getInputSplit();String filename=((FileSplit)inputSplit).getPath().getName();
2013-10-24 13:41:44 834
转载 拖拽功能
1. 事件介绍CCStandardTouchDelegate 默认事件virtual void ccTouchesBegan(CCSet *pTouches, CCEvent *pEvent);处理按下事件virtual void ccTouchesMoved(CCSet *pTouches, CCEvent *pEvent);处理按下并移动事件virtual void
2013-10-14 21:09:10 546
转载 collision detection
#pragma once#include "cocos2d.h"#include "Box2D/Box2D.h"class MyContact{public:MyContact(void);~MyContact(void);b2Fixture* fixtureA;b2Fixture* fixtureB;};class MyContactLis
2013-10-14 20:54:08 701
转载 python和hive结合使用
主要工作:利用python脚本对日志文件解析,将解析后的每个字段存放到对应表中;(1)创建自己的数据库,存放所有自己建立的表: hive>create database lina; (2)进入数据库中,并创建两个表格分别是record,log: hive>create table record(da string); hive>load
2013-10-14 10:52:02 4765
转载 new/delete malloc/free
1 我认为new\delete和malloc\free最大区别是对对象的理解。如果你使用Foo* foo = malloc(sizeof(Foo));//Foo是一个类初始化,那么你将不会调用Foo的构造方法,而只是单纯的分配空间。而且我们只认为你是分配一个空间,而不是想创建一个对象。Foo* foo = new Foo();则会调用Foo的构造方法来初始化对象,也就是说你既要分配空间又要
2013-10-12 22:25:26 641
转载 帧动画和旋转
CCSprite* pSprite = CCSprite::create("scene15_pig01_01.png");pSprite->setPosition(ccp(400,200));this->addChild(pSprite, 0,3);CCAnimation *animation = CCAnimation::create();animation->addSprite
2013-10-12 22:04:15 851
转载 JVM调优总结 -Xms -Xmx -Xmn -Xss
堆大小设置JVM 中最大堆大小有三方面限制:相关操作系统的数据模型(32-bt还是64-bit)限制;系统的可用虚拟内存限制;系统的可用物理内存限制。32位系统下,一般限制在1.5G~2G;64为操作系统对内存无限制。我在Windows Server 2003 系统,3.5G物理内存,JDK5.0下测试,最大可设置为1478m。典型设置:java -Xmx3550m -Xms3550m
2013-10-12 15:53:24 649
转载 Tomcat 性能指标 freeMemory(),totalMemory(),maxMemory ()
1 java程序刚刚启动起来的时候freeMemory()这个方法返回的只有一两兆字节,而随着java程序往前运行,创建了不少的对象,freeMemory()这个方法的返回有时候不但没有减少,反而会增加。这些人对freeMemory()这 个方法的意义应该有一些误解,他们认为这个方法返回的是操作系统的剩余可用内存,其实根本就不是这样的。这三个方法反映的都是java这个进程的内存情 况,跟操作系统的
2013-10-07 22:26:37 2030
转载 游戏-CCAction
1、动作基本概念CCAction是动作的基类,所有的动作都派生自此类。CCAction的一个对象就是一个动作,动作或动画只能由CCNode来执行CCSprite* sp = CCSprite::create("Icon.png");//创建一个精灵sp->setPosition( ccp(20, 20) );//设置精灵初始位置this->addChild(sp, 0);//添
2013-10-07 21:56:19 576
转载 探索 ConcurrentHashMap 高并发性的实现机制
简介ConcurrentHashMap 是 util.concurrent 包的重要成员。本文将结合 Java 内存模型,分析 JDK 源代码,探索 ConcurrentHashMap 高并发的具体实现机制。由于 ConcurrentHashMap 的源代码实现依赖于 Java 内存模型,所以阅读本文需要读者了解 Java 内存模型。同时,ConcurrentHashMap 的源代
2013-10-07 13:18:55 733
httpclient tutorial httpclient 指南
2018-03-08
mask rcnn paper
2018-03-07
Applying Deep Learning To Answer Selection
2018-03-07
Learning Phrase Representations using RNN Encoder–Decoder
2018-03-07
BPTT BackPropagation Through Time.pdf
2018-03-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人