翻开 《Code quality》 第四章 Time Performance , 看到的第一句话是: Time is nature's way to keep everything from happing all at once. --- John Archibald Wheeler...
分类:
其他好文 时间:
2014-10-20 21:19:17
阅读次数:
207
1 + (id)sharedWhatever2 {3 static dispatch_once_t pred;4 static Whatever *whatever = nil;5 dispatch_once(&pred, ^{6 whatever = [[s...
分类:
其他好文 时间:
2014-10-19 16:56:05
阅读次数:
156
October 16, 2014 19:00~21:00 Feishang Cafe
As a guest I came here once again. I was glad to meet Neo, Nicole, Rubio, Susan, and so on. They are the members of TMC Jinan, and they ar...
分类:
其他好文 时间:
2014-10-17 15:41:57
阅读次数:
140
这周有位新同事请我帮忙看一个关于信号处理的问题,程序希望在收到一个信号后退出,而他在信号处理方法里却做了很多事,包含释放一些全局内存等。这样问题就产生了,程序不定时的就挂死了,用gdb一看,全部的线程都挂在了pthread_once方法里,而似乎每一个线程都在处理信号,当中产生问题的线程堆栈例如以下...
分类:
其他好文 时间:
2014-10-17 13:30:13
阅读次数:
238
#include #include #include #include #pragma once#include #include #include #include #include #include #include typedef char i8;type...
分类:
其他好文 时间:
2014-10-15 10:19:00
阅读次数:
148
Different people deserve different tasks; Once team roles are settled, there comes along a lot of other questions, such as how to manage team intellec...
分类:
其他好文 时间:
2014-10-15 00:34:49
阅读次数:
375
自:http://blog.csdn.net/lpc_china/article/details/18359145主要原理:查询windows注册表microsoftoffice软件项的值来判断版本。主要源码:头文件: 1 #pragma once 2 #include 3 #include 4.....
分类:
编程语言 时间:
2014-10-14 11:16:58
阅读次数:
209
光线和天空能够大大增强游戏的画面效果,以下是实现:
1. 光线效果 Raycast
#pragma once
//========================================================================
// Raycast.h - implements a raycast into the rendered scene
//======...
分类:
其他好文 时间:
2014-10-14 00:26:57
阅读次数:
353
下面实现的方向控制是基于键盘上的W A S D,来控制运动物体的方向的。下面是实现~
#pragma once
//========================================================================
// File: MovementController.h 就是实现键盘按钮 WASD 的方向控制
//================...
分类:
其他好文 时间:
2014-10-14 00:09:07
阅读次数:
324
time = $this->microtime_float();require_once("config.db.php");$this->connect($db_config["hostname"], $db_config["username"], $db_config["password"], $...
分类:
数据库 时间:
2014-10-13 18:58:07
阅读次数:
363