设置文件的flags,阻塞设置成非阻塞,非阻塞设置成阻塞(这连个在server开发中可以封装为基本函数)线程引入pthread_self和pthread_equal原因——解决不同平台的问题!Mysql索引__索引的分类_索引的创建_使用alter建立索引(也可以在创建表时设定)、索引的分类fcnt...
分类:
其他好文 时间:
2014-05-19 20:48:37
阅读次数:
415
设置Navigation Bar 透明
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);或者Theme中添加 true
/**
* Convenience function to set the flag bits as specified in flags, as
...
分类:
移动开发 时间:
2014-05-15 18:15:56
阅读次数:
631
[intrinsic column flags] (基本字段类型标识)- PK:
primary key (column is part of a pk) 主键- NN: not null (column is nullable) 非空-
UQ: unique (column is part of ...
分类:
数据库 时间:
2014-05-15 14:27:20
阅读次数:
301
在学习Android的过程中,Intent是我们最常用Android用于进程内或进程间通信的机制,其底层的通信是以Binder机制实现的,在物理层则是通过共享内存的方式实现的。
Intent主要用于2种情景下:(1)发起意图
(2)广播
它的属性有:ComponentName,action,data,category,extras,flags等,通常情况下,进行Inten...
分类:
其他好文 时间:
2014-05-11 13:38:46
阅读次数:
334
这个 bug 在 xcode 4.3 以下会出现,4.3 以后已经修正了。解决方法为:找到
target 的图标,更改其 Other Linker Flags 为: -all_load 或
-force_load-force_load,后跟随一个文件位置,可以更精确地加载所需文件。苹果的解释为 :h...
分类:
其他好文 时间:
2014-05-08 14:27:40
阅读次数:
243
1.int preg_match ( string pattern, string subject
[, array matches [, int flags]]
)在subject字符串中搜索与pattern给出的正则表达式相匹配的内容。如果提供了matches则其会被搜索的结果所填充。$matc...
分类:
Web程序 时间:
2014-05-07 20:30:26
阅读次数:
333
编程相关注册中断int request_irq( unsigned int irq,
irq_handler_t handler, unsigned long flags, const char *name, void
*dev) typede...
分类:
系统相关 时间:
2014-05-07 17:58:00
阅读次数:
415
一、mmap设备操作
1、mmap系统调用
void *mmap(void * addr, size_t len, int prot, int flags, int fd, off_t offset)
返回值:内存映射的首地址(虚拟映射区首地址)。
功能:内存映射函数mmap,负责把文件内容映射到进程的虚拟内存空间,通过对这段内存的读取和修改(使用指针),来实现对文件的读取和修改,而不...
分类:
系统相关 时间:
2014-05-04 08:55:01
阅读次数:
501
原型:#include
void * mmap(void *addr, size_t len, int port, int flag, int fildes)参数fd为即将映射到进程空间的文件描述字,一般由open()返回,同时,fd可以指定为-1,此时须指定flags参数中的MAP_ANON,表明进行的是匿名映射(不涉及具体的文件名,避免了文件的创建及打开)
实际上目前的glibc 对mal...
分类:
其他好文 时间:
2014-04-30 22:23:40
阅读次数:
307
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags ...
分类:
其他好文 时间:
2014-04-29 13:24:23
阅读次数:
443