~/.vimrc //vim环境脚本~/.viminfo //vim登录信息:set nu :set nonu //设置是否取消行号:set hlsearch:set nohlsearch // hight light search(高亮度搜寻) //是否反白:set backup //是否自动存....
分类:
其他好文 时间:
2014-07-22 22:47:33
阅读次数:
388
转载 http://www.cnblogs.com/caosiyang/archive/2012/06/25/2560976.html简单说一下popen()函数函数定义1 #include 2 3 FILE * popen(const char *command , const char *typ...
分类:
系统相关 时间:
2014-07-22 22:42:34
阅读次数:
251
在YII框架中如果访问的图片不存在,会记录大量的错误,于是我想了个办法,凡是访问不存在的图片,直接返回404,不经过YII框架location / { set $if_img N; if ($request_filename ~ (.*)\.(png|gif|jpg)){ set $if_img ....
分类:
其他好文 时间:
2014-07-22 22:42:16
阅读次数:
242
同事的电脑启动时出现下面提示:“因下面文件损坏或丢失Windows无法启动 %systemroot%\system32\ntoskrnl.exe,请又一次安装以上文件的拷贝”(Windows could not start because the following file is missin.....
分类:
其他好文 时间:
2014-07-22 22:42:14
阅读次数:
180
php读取网络文件 curl, fsockopen ,file_get_contents 几个方法的效率对比最近需要获取别人网站上的音乐数据。用了file_get_contents函数,但是总是会遇到获取失败的问题,尽管按照手册中的 例子设置了超时,可多数时候不会奏效:$config['contex...
分类:
Web程序 时间:
2014-07-21 23:30:43
阅读次数:
217
首先要熟悉.NET中处理文件和文件夹的操作。File类和Directory类是其中最主要的两个类。了解它们将对后面功能的实现提供很大的便利。 本节先对和文件系统相关的两个.NET类进行简要介绍。 System.IO.File类和System.IO.FileInfo类主要提供有关文件的各种操作,...
分类:
其他好文 时间:
2014-07-21 23:30:43
阅读次数:
232
出现error的过程:在运行另外一个xcode项目重置了code sign,回到原来的项目的时候出现这个error
修复方法:
targe-build settings-code signing identity-choose iOS Developer
然后Provision File选择对应的file
参考链接:
https://developer.apple.com/leg...
分类:
移动开发 时间:
2014-07-21 23:30:01
阅读次数:
322
模拟IIC
/**
******************************************************************************
* @file HTU20.x
* @brief HTU20 function
* @cpu STM32F051
* @compiler Keil uVision V4...
分类:
其他好文 时间:
2014-07-21 23:27:53
阅读次数:
526
Description
FJ has purchased N (1
The treats are interesting for many reasons:
The treats are numbered 1..N and stored sequentially in single file in a long box that is open at both ends. On...
分类:
其他好文 时间:
2014-07-21 22:18:18
阅读次数:
227
1、importglobshell干的就是glob 在windows下使用搜索*.py需要导入glob才可以进行*.py的搜索 glob.glob(‘*.py‘)返回以py结尾的列表 2、处理参数最方便的工具: fromoptparseimportOptionParser 3、os.path os.path.dirname(sys.argv[0]) or os.path.dirname(__file__) os.path..
分类:
编程语言 时间:
2014-07-21 19:34:02
阅读次数:
284