摘要: fourinone 实现分布式计算 一种工头链式结合工人并行的计算结果简化分布式计算simpleCror:工头实现,实现giveTask, 通过getWaitingWorkers获取线上工人节点 工人节点为一个独立的进程,一台机器可以布署一个也可以布署多个 调用工人的doTask方法完成工作,当多个任务分配给多个工人完成时, 他们之间是并行的simpWorker: 工人实现类,实现doTask接口,从wareHouse获取工头传入的参数, 输入输出类型为wareHouse,是一个map结构,可以放置任何对象parkServerDemo: 负责分布式计算过程的协... 阅读全文
posted @ 2012-09-05 12:09 retacn_yue 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 查看软件xxx安装内容dpkg -L xxx查找软件库中的软件apt-cache search 正则表达式查找软件库中的软件aptitude search 软件包查找文件属于哪个包dpkg -S filename查找文件属于哪个包apt-file search filename查询软件xxx依赖哪些包apt-cache depends xxx查询软件xxx被哪些包依赖apt-cache rdepends xxx增加一个光盘源sudo apt-cdrom add系统升级sudo apt-get update;sudo apt-get dist-upgrade清除已删除包的残馀配置文件dpkg - 阅读全文
posted @ 2012-09-05 12:05 retacn_yue 阅读(164) 评论(0) 推荐(0) 编辑
摘要: /*** 剪切动画+移动位图** @author 岳振华**/public class ClipSurfaceView extends SurfaceView implements Callback, Runnable {private SurfaceHolder sfh;private int screenX, screenY;// 屏幕大小private Thread thread;private boolean flag;private Paint paint, paint2;private Canvas canvas;private Bitmap fish, water;private 阅读全文
posted @ 2012-09-05 12:01 retacn_yue 阅读(175) 评论(0) 推荐(0) 编辑
摘要: /*** 位图** @author 岳振华**/@SuppressWarnings("unused")public class BitMapSrufaceView extends SurfaceView implements Callback, Runnable {private SurfaceHolder sfh;private Thread thread;private int surfaceW, surfaceH;private Paint paint;private Canvas canvas;private boolean flag;// surfaceView是 阅读全文
posted @ 2012-09-05 11:57 retacn_yue 阅读(185) 评论(0) 推荐(0) 编辑
摘要: /*** 画笔** @author 岳振华**/@SuppressWarnings("unused")public class PaintSrufaceView extends SurfaceView implements Callback, Runnable {private SurfaceHolder sfh;private Thread thread;private int surfaceW, surfaceH;private Canvas canvas;private boolean flag;//surfaceView是否销毁的标志位public PaintSru 阅读全文
posted @ 2012-09-05 11:55 retacn_yue 阅读(145) 评论(0) 推荐(0) 编辑
摘要: /*** 画布** @author 岳振华**/@SuppressWarnings("unused")public class CanvasSrufaceView extends SurfaceView implements Callback, Runnable {private SurfaceHolder sfh;private Thread thread;private int surfaceW, surfaceH;private Paint paint;private Canvas canvas;private PaintFlagsDrawFilter drawFil 阅读全文
posted @ 2012-09-05 11:54 retacn_yue 阅读(139) 评论(0) 推荐(0) 编辑
摘要: /*** 一个简单的游戏框架* 没有按键处理,声音播放* @author 岳振华**/public class MySrufaceView extends SurfaceView implements Callback, Runnable {private SurfaceHolder sfh;private Thread thread;@SuppressWarnings("unused")private int surfaceW,surfaceH;private Paint paint;private Canvas canvas;public MySrufaceView(C 阅读全文
posted @ 2012-09-05 11:52 retacn_yue 阅读(180) 评论(0) 推荐(0) 编辑
摘要: /*** 图像的缩放和旋转 Matrix** 1 0 0 x=1x+0y+0z** 0 1 0 y=0x+1y+0z** 0 0 1 z=0x+0y+1z*******/private void matrixTest() {Matrix matrix = new Matrix();matrix.setValues(new float[] { //1, 0, 0,//0, 1, 0,//0, 0, 1 });//// Matrix类的常用方法:旋转// matrix.setRotate(15);// 根据图片中心点进行旋转matrix.setRotate(15, bitmap.getWidth( 阅读全文
posted @ 2012-09-05 11:40 retacn_yue 阅读(159) 评论(0) 推荐(0) 编辑
摘要: /*** 图像合成** @time 下午06:21:22* @author retacn yue* @Email zhenhuayue@sina.com*/public class ChosePictureCompositeActivity extends Activity implements OnClickListener {public static final int PICKED_ONE = 0;public static final int PICKED_TWO = 1;private Button btn_choose_picture1;private Button btn_ch 阅读全文
posted @ 2012-09-05 11:36 retacn_yue 阅读(132) 评论(0) 推荐(0) 编辑
摘要: select * from scott.dept;#检索所有行select * from scott.emp;#检索部分行select * from scott.emp where deptno=10;#查找满足条件的行select * from scott.emp where( deptno=10 or comm is not null or sal<=2000) and deptno=20;#检索部分列select ename,deptno,sal from scott.emp;#为列取有意义的名称select sal as salary,comm as commission fro 阅读全文
posted @ 2012-09-05 11:31 retacn_yue 阅读(103) 评论(0) 推荐(0) 编辑