iOS Dev (55) 获取当前年、月、日等信息
作者:大锐哥博客:http://prevention.iteye.com
-
NSDate *now = [NSDate date];
NSCalendar *calendar = [NSCalendar currentCalendar];
NSUInteger unitFlags =
NSYearCalendarUnit...
分类:
移动开发 时间:
2014-06-22 22:39:27
阅读次数:
291
初始化相关的文件
include/linux/init.h 初始化相关的宏定义
include/asm-generic/vmlinux.lds.h 编译链接相关的宏定义
init/main.c 启动时的高级初始化
net/core/dev.c 网络设备注册、输入和输出等接口
drivers/net/e100.c e100驱动程序
初始化函数调用关系
对模块的初始化,...
分类:
其他好文 时间:
2014-06-22 22:09:21
阅读次数:
293
/*===============================================*** 设计目的:简单计算器,计算形如10*(20.2-30.6)+5.0/2的表达式值
** 简要原理:中缀式转逆波兰式(后缀式)
** IDE:Dev-Cpp 4.9.9.2
** 注意事项:括号必须是英文状态的
** 时间: 2014-6-17
\*====================...
分类:
编程语言 时间:
2014-06-22 18:48:27
阅读次数:
260
用代码实现图片加圆角:
iconView.layer.masksToBounds = YES;
iconView.layer.cornerRadius = 3;...
分类:
移动开发 时间:
2014-06-22 18:38:38
阅读次数:
298
Delphi 7连接MySql 5.5.15
1.ODBC方式
必须要先有MySql的ODBC驱动,我下载的是全安装版,包括MySql服务器、各种所支持的连接、工作台、示例数据库、文档,若是无ODBC驱动,可以到官网http://dev.mysql.com/downloads/connector/odbc/下载。
①数据源方式
首先,确认安装了MySql的ODB...
分类:
数据库 时间:
2014-06-22 17:18:32
阅读次数:
323
??大家好,今天微软最新发布一篇安全通报2974294,介绍了一个微软恶意软件防护引擎(Malware Protection Engine)中的一个拒绝服务漏洞,这个漏洞主要存在于微软的安全防护软件中,其中包括了Forefront Client Security, Forefront EndPoint Protection 2010, System Center 2012 EndPoint Pro...
分类:
其他好文 时间:
2014-06-22 16:50:28
阅读次数:
151
在使用md5函数之前要先安装openssl,以及libssl-dev。
包含头文件:#include
两种方式:
第一种:
int MD5_Init(MD5_CTX *c);
int MD5_Update(MD5_CTX *c, const void *data, size_t len);
int MD5_Final(unsigned char *md, MD5_CTX *c);...
分类:
系统相关 时间:
2014-06-22 15:37:03
阅读次数:
1261
iOS Dev (54) 键盘弹出后收起时View随之移动
作者:大锐哥博客:http://prevention.iteye.com
-
添加监听
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(c...
分类:
移动开发 时间:
2014-06-22 14:56:07
阅读次数:
222
iOS Dev (53) 修复UIImagePickerController偷换StatusBar颜色的问题
作者:大锐哥博客:http://prevention.iteye.com
-
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:...
分类:
移动开发 时间:
2014-06-22 14:18:08
阅读次数:
224
from:unix高级环境编程
unix/linux中共享内存是最高效的ipc方式。
有几种使用方式:
1)mmap /dev/zero设备:
fd = open("/dev/zero", O_RDWR);
area = mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
close(fd);
加入MAP_SHARE...
分类:
其他好文 时间:
2014-06-22 06:21:16
阅读次数:
215