??
1fifo有名管道
创建一个有名管道,fifo
2.fifo依赖的头文件
#include
#include
函数声明
int mkfifo(const char *pathname, mode_tmode);
3.fifo的写端应用
#include
#include
#include
...
分类:
其他好文 时间:
2014-09-21 01:31:29
阅读次数:
284
突然想到个问题,SharedPreferences线程安全么?有没有使用缓存相关的技术?首先想到的是Activity里面的:public abstract SharedPreferences getSharedPreferences(String name, int mode); 在android....
分类:
其他好文 时间:
2014-09-20 03:33:56
阅读次数:
479
int SetROP2( HDC hdc, // handle to DC int fnDrawMode // drawing mode ); 该函数的主要的作用是根据nDrawMode设置的方式重新设定绘图的方式, 下面就不同的nDrawMode值具体解释绘图模式是...
分类:
其他好文 时间:
2014-09-19 23:49:56
阅读次数:
335
获取iphone的系统信息使用[UIDevice currentDevice],信息如下:
[[UIDevice currentDevice] systemName]:系统名称,如iPhone OS
[[UIDevice currentDevice] systemVersion]:系统版本,如iOS 8.0
[[UIDevice currentDevice] mode...
分类:
其他好文 时间:
2014-09-19 17:38:55
阅读次数:
144
1.表现层(View) 用于展示数据或作为用户交互页面,不包括任何业务流程的处理。2.控制层(Controller) 表现层和模型业务层之间的纽带,控制层决定表现层的请求由哪一个模型业务层的方法处理,及处理的结果怎么返回展示。3.模型业务层(Mode) 包括业务处理相关逻辑,数据存取等,是程序的主体...
分类:
Web程序 时间:
2014-09-19 11:50:35
阅读次数:
179
ECMAScript 5最早引进了“严格模式”(strict mode)的概念。通过严格模式,可以在函数内部选择进行较为严格的全局或局部的错误条件检测。使用严格模式的好处是可以提早知道代码中存在的错误,及时捕获一些可能导致变成错误的ECMAScript行为。支持严格模式的浏览器包括IE 10+,F....
分类:
编程语言 时间:
2014-09-19 01:05:54
阅读次数:
228
1、vi的基本概念 基本上vi可以分为三种状态,分别是命令模式(command mode)、插入模式(Insert mode)和底行模式(last line mode),各模式的功能区分如下:1) 命令行模式command mode) 控制屏幕光标的移动,字符、字或行的删除,移动复制某区段及进入.....
分类:
其他好文 时间:
2014-09-18 22:04:54
阅读次数:
235
当模式为上下滑动时,每一屏占一个列表,小编表示相当的不好看,查了api试了个遍终于找到了解决办法 var mySwiper = new Swiper('.swiper-container',{ mode: 'vertical' , slidesPe...
分类:
Web程序 时间:
2014-09-18 16:16:14
阅读次数:
203
error: 'for' loop initial declarations are only allowed in C99 mode
使用gcc编译代码是报出
error: 'for' loop initial declarations are only allowed in C99 mode
note: use option -std=c99 or -std=gnu99 to...
分类:
其他好文 时间:
2014-09-18 14:55:17
阅读次数:
241
warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777解决方法:sudo chmod 775 /usr/localtips:775 => root(7) group(7) others(5), 7 => rea...
分类:
其他好文 时间:
2014-09-17 11:54:12
阅读次数:
248