Android wakelock分为两层
linux层和应用层
1. 查看linux 的waklock
# cat /sys/power/wake_lock
PowerManagerService.Display
PowerManagerService.WakeLocks
...
分类:
移动开发 时间:
2015-02-04 12:59:23
阅读次数:
551
#pragma mark - 将图片转换成圆形-(UIImage*) circleImage:(UIImage*) image withParam:(CGFloat) inset { UIGraphicsBeginImageContext(image.size); CGContextRef co.....
分类:
移动开发 时间:
2015-02-04 12:34:36
阅读次数:
180
参考文章https://github.com/driftyco/ng-cordovahttp://ngcordova.com/docs/plugins/camera/官方解释是既可以用来拍照也可以录视频(只试用了拍照功能)首先,装插件 cordova plugin add org.apache.co...
分类:
其他好文 时间:
2015-02-04 12:28:39
阅读次数:
249
At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door...
分类:
其他好文 时间:
2015-02-04 09:21:25
阅读次数:
143
特性:(1)USART只能一位一位地发送和接受数据,在起始位期间,TX端处于低电平;当闲置时,TX端为高。(2)发送和接受由一共用的波特率发生器驱动,当发送器和接收器的使能位分别置位时,分别为其产生时钟。(3)发送器根据M位的状态发送8位或9位的数据字。当发送使能位TE被置位时,发送移位寄存器中的数...
分类:
其他好文 时间:
2015-02-04 01:59:59
阅读次数:
314
一、测试环境系统:Centos6.2数据库:mysqlVer14.14Distrib5.5.18,forLinux(x86_64)usingreadline5.1percona工具:percona-toolkit-2.2.12测试数据库大小:tx_ljxz_71--16G、t_log_item--3G二、在线修改表结构的过程mysql在线修改表结构1按照原始表(original_table)的表结构..
分类:
数据库 时间:
2015-02-03 19:41:49
阅读次数:
605
一、 安装准备
1. 安装Openssl
要使Apache支持SSL,需要首先安装Openssl支持。这里使用的是openssl-0.9.8k.tar.gz
下载Openssl:http://www.openssl.org/source/
tar -zxf openssl-0.9.8k.tar.gz //解压安装包
cd openssl-0.9.8k //进入已经解压的安装包
./co...
分类:
Web程序 时间:
2015-02-03 19:34:13
阅读次数:
145
org.springframework.dao.CannotAcquireLockException 的解决》 直接上bug 的详细信息:2012-03-12 15:20:31 XmlBeanDefinitionReader [INFO] Loading XML bean definition...
分类:
数据库 时间:
2015-02-03 19:16:56
阅读次数:
273
Zookeeper开发过程中一些常见问题一、关于zookeeper_init函数的使用问题描述:开发人员在调用zookeeper_init函数时,若返回一个非空句柄zhandle_t*zh,则认为初始化成功,这样可能会导致后续操作失败。问题分析:zhandle_t*zookeeper_init(co...
分类:
其他好文 时间:
2015-02-03 16:42:54
阅读次数:
383