码迷,mamicode.com
首页 >  
搜索关键字:pixel buffer object    ( 42854个结果
05. 取SQL分组中的某几行数据
原文:05. 取SQL分组中的某几行数据对表中数据分组,有时只需要某列的聚合值;有时却需要返回整行数据,常用的方法有:子查询、ROW_NUMBER、APPLY,总体感觉还是ROW_NUMBER比较直观。测试数据:if OBJECT_ID('testGroup') is not nulldrop ta...
分类:数据库   时间:2014-06-25 23:30:14    阅读次数:369
04. 字符串合并与拆分写法小结
原文:04. 字符串合并与拆分写法小结一. 字符合并if OBJECT_ID('ConcatStr') is not nulldrop table ConcatStrGOcreate table ConcatStr(ID int,Code varchar(10))GOinsert into Conc...
分类:其他好文   时间:2014-06-25 22:55:39    阅读次数:190
随机获取部分List<Object>集合
随机返回list对象 /** * 返回随机List * @param list 备选 * @param selected 备选数量 * @return */ public List getRandomNum(List list, int select...
分类:其他好文   时间:2014-06-25 21:34:40    阅读次数:341
Application.LoadLevel & Object.DontDestroyOnLoad
【Application.LoadLevel】 只有在File->Build Setting中设置了的按钮才能被加载。 当level加载完成后,MonoBehaviour.OnLevelWasLoaded is called on all active game objects。 When...
分类:移动开发   时间:2014-06-25 19:43:36    阅读次数:254
无需考虑编码问题string转byte的方法
static byte[] GetBytes(string str){ byte[] bytes = new byte[str.Length * sizeof(char)]; System.Buffer.BlockCopy(str.ToCharArray(), 0, bytes, 0, ...
分类:其他好文   时间:2014-06-24 14:15:24    阅读次数:145
NSThread基础使用
1.创建和启动线程 一个NSThread对象就代表一条线程; 创建,启动线程NSThread *thread = [[NSThread alloc] initWithTarget:self selector:@selector(run) object:nil];[thread start];2.线程...
分类:其他好文   时间:2014-06-24 13:33:55    阅读次数:167
浅析单例模式
单例模式是设计模式中最简单的形式之一。这一模式的目的是使得类的一个对象成为系统中的唯一实例。单例代码如下: private static JobManager _instance; private static Object padlock = new Object(); public stat.....
分类:其他好文   时间:2014-06-24 12:39:57    阅读次数:181
iOS开发多线程篇—创建线程
iOS开发多线程篇—创建线程一、创建和启动线程简单说明一个NSThread对象就代表一条线程创建、启动线程(1) NSThread*thread = [[NSThreadalloc]initWithTarget:selfselector:@selector(run)object:nil];[thre...
分类:移动开发   时间:2014-06-24 12:29:00    阅读次数:351
OC中线程的状态相关
1.线程的状态NSThread *thread = [[NSThread alloc] initWithTarget:self selector:@selector(run) object:nil];[thread start];2.控制线程状态2.1>启动线程 -(void)start; //进....
分类:编程语言   时间:2014-06-24 11:53:02    阅读次数:233
Java面向对象设计原则
面向对象设计原则是OOPS(Object-Oriented Programming System,面向对象的程序设计系统)编程的核心,但大多数Java程序员追逐像Singleton、Decorator、Observer这样的设计模式,而不重视面向对象的分析和设计。甚至还有经验丰富的Java程序员没有...
分类:编程语言   时间:2014-06-24 11:51:12    阅读次数:307
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!