2016年4月11日
摘要: Data Matrix 二维条码原名Datacode,由美国国际资料公司(International Data Matrix, 简称ID Matrix)于1989年发明。Data-Matrix二维条码是一种矩阵式二维条码。 Data Matrix符号由规则排列的深浅色正方形模块构成,每一个正方形模块 阅读全文
posted @ 2016-04-11 21:52 gcczhongduan 阅读(3326) 评论(1) 推荐(1) 编辑
摘要: 1. 有时候我们可能须要记录我们对mysql的操作过程,这时我们能够使用mysql的tee命令 1)第一种情况是在链接数据库的时候使用tee >mysql -u root -p --tee=C:\log.txt //注意这里路径不须要加上引號 这时我们对数据库的全部操作都会记录在log.txt上; 阅读全文
posted @ 2016-04-11 19:04 gcczhongduan 阅读(555) 评论(0) 推荐(0) 编辑
摘要: Condition Variables Condition variables are synchronization primitives that enable threads to wait until a particular condition occurs. Condition vari 阅读全文
posted @ 2016-04-11 17:53 gcczhongduan 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 取资源图片时遇到执行时错误: Cocos2d: Get data from file(xxx/xxx.xxx) failed! 原因是我加入资源目录的方式不正确,例如以下图,我选择的是在Resource中加入Group。这样加入完menuscene目录是黄色的,我在代码中引用资源时路径是“menus 阅读全文
posted @ 2016-04-11 17:06 gcczhongduan 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Description Captain Clearbeard decided to go to the harbour for a few days so his crew could inspect and repair the ship. Now, a few days later, the p 阅读全文
posted @ 2016-04-11 16:08 gcczhongduan 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Fragment中的代码 context 是null public class PlaceholderFragment extends Fragment{ Context context = getActivity(); } 这样定义的context是null。当然咯,我实际代码不是这样写的,可是这 阅读全文
posted @ 2016-04-11 15:33 gcczhongduan 阅读(377) 评论(0) 推荐(0) 编辑
摘要: server.c #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <string.h> #include <unistd.h> #include <netdb.h> #include <sys/socket.h> 阅读全文
posted @ 2016-04-11 14:32 gcczhongduan 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 1.create_object_by_name,依据类名字创建object,原型: 一般仅仅用第一个: 2.create_object_by_type。依据类型创建一个object,原型: 一般仅仅用第一个: 3.create_component_by_name,依据类名创建一个component, 阅读全文
posted @ 2016-04-11 13:41 gcczhongduan 阅读(762) 评论(0) 推荐(0) 编辑
摘要: 桥接模式(bridge pattern)是一种策略式委派方式,其主要目标是避免类型爆炸。 问题描写叙述:如果类Client(比如Client表示一个会所)将对人/Person进行统一的处理,而Person类层次有(以人的职业划分其子类)教师、医生、律师……。另外,系统还须要将Person依照“地域” 阅读全文
posted @ 2016-04-11 12:47 gcczhongduan 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 原创作品,出自 “深蓝的blog” 博客,欢迎转载,转载时请务必注明下面出处,否则追究版权法律责任。 深蓝的blog:http://blog.csdn.net/huangyanlong/article/details/40456511 1、报错 [grid@node1 grid]$ ./runclu 阅读全文
posted @ 2016-04-11 11:43 gcczhongduan 阅读(945) 评论(0) 推荐(0) 编辑
摘要: 一个显示日期的工具类 .h文件 #import <Foundation/Foundation.h> @interface TimeUtil : NSObject + (NSString*)getTimeStr1:(long long)time; +(NSString*) getTimeStrStyl 阅读全文
posted @ 2016-04-11 09:32 gcczhongduan 阅读(122) 评论(0) 推荐(0) 编辑