If thesrcis already set, then the event is firing in the cached case, before you even get the event handler bound. To fix this, you can loop through c...
分类:
其他好文 时间:
2015-06-25 13:43:24
阅读次数:
119
free命令相对与top提供了更简洁的方法查看系统内存使用情况。第一行 -- Mem(物理内存统计)total (507924) 物理内存总量used(450832) 总计分配给缓存(buffers和cached)使用的数量,可能部分缓冲并未实际使用free (57092) ...
分类:
其他好文 时间:
2015-06-22 19:20:56
阅读次数:
161
最近一个项目做了一个模拟u盘的设备,但是在read虚拟u盘的内容时必须每次都从磁盘内读取,而不是从系统的cache中读取,由于这个问题,就查资料看了下read的系统调用,以及文件系统的一些内容。由于文件系统涉及面较广,例如虚拟文件系统(VFS),页缓存,块缓存,数据同步等内容,不可能全部分析到位,这里只记录和read有关的两种使用方式。cached IO和direct IO。
1. 什么是系...
分类:
系统相关 时间:
2015-06-19 10:26:21
阅读次数:
276
最近创建了一个Maven 的web项目,导入myeclipse中后,pom.xml文件一直报如下错误Failure to transfer org.codehaus.plexus:plexus-archiver:pom:1.0 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution...
分类:
其他好文 时间:
2015-06-14 18:43:23
阅读次数:
157
yum install python-devel mysql-devel zlib-devel openssl-devel [root@localhost software]# pip install psutilCollecting psutil Using cached psutil-2.2.....
分类:
数据库 时间:
2015-06-02 19:49:50
阅读次数:
600
1、缓存机制为了提高文件系统性能,内核利用一部分物理内存分配出缓冲区,用于缓存系统操作和数据文件,当内核收到读写的请求时,内核先去缓存区找是否有请求的数据,有就直接返回,如果没有则通过驱动程序直接操作磁盘。缓存机制优点:减少系统调用次数,降低CPU上下文切换和..
分类:
系统相关 时间:
2015-06-02 15:30:28
阅读次数:
200
通过bower进行获取:y@y:ydkt$ bower install jquery-qrcode --savebower not-cached git://github.com/gcusnieux/jquery-qrcode.git#*bower resolve git://gi...
分类:
Web程序 时间:
2015-05-30 17:55:22
阅读次数:
155
Loaded plugins: fastestmirror, securityLoading mirror speeds from cached hostfile* base: mirrors.163.com * extras: mirrors.cqu.edu.cn * updates: mirro...
分类:
编程语言 时间:
2015-05-13 12:42:00
阅读次数:
639
1.查找java相关得列表 [root@localhost ~]# yum -y list java* Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: mirrors.zju.edu.cn * extras...
分类:
系统相关 时间:
2015-05-04 18:23:49
阅读次数:
265