Change this way :param => ‘value‘ for this way param: ‘value‘ open .rb file in vim and do %s/:\([^=,‘"]*\) =>/\1:/g if you want use the interactive mode, add c in the end of command %s/:\([^=,‘"]*\...
分类:
系统相关 时间:
2015-02-13 08:10:57
阅读次数:
178
clear license agent : to clear license agent statistics counters or connection statistics (in privileged EXEC mode)debug license : to enable controlle...
分类:
移动开发 时间:
2015-02-13 01:30:50
阅读次数:
213
tmux配置文件名为.tmux.conf,位于用户根目录下。常用的配置为:# vimsetw -g mode-keys vibind [ copy-modebind -t vi-copy v begin-selectionbind -t vi-copy y copy-selectionbind -t...
分类:
其他好文 时间:
2015-02-12 12:25:13
阅读次数:
119
虽然Django本身自带Form可以提交表单,但在Django中结合Jquery使用Ajax,可以让Django开发的应用发挥更好的用户体验,同时可以降低服务器的负担。普通提交表单方式需要刷新整个页面才可以将评论显示出来,而使用Ajax提交评论之后,可以在页面无刷新的情况下显示出来。 首先是mode...
分类:
Web程序 时间:
2015-02-12 07:03:35
阅读次数:
11698
absolute : to specify an absolute time for a time-range (in time-range configuration mode)no absolutebuffer-length : to specify the maximum length of ...
分类:
移动开发 时间:
2015-02-11 21:50:24
阅读次数:
247
#include
#include
#include
#include
IplImage *image = 0, *hsv = 0, *hue = 0, *mask = 0, *backproject = 0, *histimg = 0;
CvHistogram *hist = 0;
int backproject_mode = 0;
int select_object = 0;
i...
分类:
编程语言 时间:
2015-02-11 16:38:54
阅读次数:
353
一、文件的访问 1.打开文件 函数原型:FILE *fopen(const char *filename, const char *mode); mode参数: r 以只读方式打开(若不存在则返回NULL) r+ 以读写方式打开(若不存在则返回NULL) w 以写方式打开空白文件(若已存在则毁弃原内...
分类:
编程语言 时间:
2015-02-11 16:15:57
阅读次数:
139
tftp 192.168.1.1 -c put myfile theirfile tftp 192.168.1.1 -m binary -c put myfile theirfile The tftp default transfer mode is ASCII and when you uploa...
分类:
其他好文 时间:
2015-02-11 15:59:37
阅读次数:
299
2.1GPIO的8种工作模式GPIO工作图如下:4种输入模式结构图的上半部分分为输入模式结构, 分为上拉模式,下拉模式,浮空模式和模拟输入模式.上/下拉模式:通过设置配置寄存器(CRL,CRH)来控制1和2开关,于是得到GPIO的上拉输入模式(GPIO_Mode_IPU)和下拉输入模式(GPIO_M...
分类:
其他好文 时间:
2015-02-11 14:23:21
阅读次数:
820
under the directory of the project, create file .gdbinitwrite the "set follow-fork-mode child"then you can debug the child process
分类:
系统相关 时间:
2015-02-11 10:47:42
阅读次数:
234