码迷,mamicode.com
首页 >  
搜索关键字:shell memcache printf    ( 45225个结果)
cJSON解析一例通
#include<iostream> #include"cJson/cJSON.h" usingnamespacestd; voidparse_json_node(cJSON*json,size_t*align_count) { //打印缩进 for(inti=0;i<*align_count;i++) { printf(""); } switch(json->type) { casecJSON_False: printf("%s:false",json->strin..
分类:Web程序   时间:2014-12-17 18:52:10    阅读次数:238
cut命令
cut命令作用cut命令主要用于裁剪文本每行中的数据主要参数:-b:以字节为单位进行分割。这些字节位置将忽略多字节字符边界,除非也指定了-n标志。-c:以字符为单位进行分割。-d:自定义分隔符,默认为制表符。-f:与-d一起使用,指定显示哪个区域。-n:取消分割多字节字符。仅..
分类:其他好文   时间:2014-12-17 18:47:55    阅读次数:147
Yii如何使用memcache缓存
Yii如何使用memcache缓存在文件/protected/main.php里添加‘components‘=>array(‘CMemCache‘=>array(‘class‘=>‘CMemCache‘,‘servers‘=>array(array(‘host‘=>‘127.0.0.1‘,‘port‘=>11211,‘weight‘=>60,),array(‘host‘=>‘127.0.0.1‘,‘port‘=>11211,‘wei..
分类:系统相关   时间:2014-12-17 18:45:00    阅读次数:270
转:Linux Shell编程入门
http://www.cnblogs.com/suyang/archive/2008/05/18/1201990.html从程序员的角度来看, Shell本身是一种用C语言编写的程序,从用户的角度来看,Shell是用户与Linux操作系统沟通的桥梁。用户既可以输入命令执行,又可以利用 Shell脚本...
分类:系统相关   时间:2014-12-17 18:25:39    阅读次数:247
用一层for循环初始化三维数组
int a[3][4][5]; for (int i = 0; i < 3 * 4 * 5; i++) { a[i / 20][(i / 5) % 4][i % 5] = i; printf("%-2d,%-2d,%-6d", i / 20, (i / 5)...
分类:编程语言   时间:2014-12-17 18:02:23    阅读次数:145
汇编--查找第一个非0字符的五种方法
第一种 #include #include void main(void) { int m = 0, cout = 0; char cStr2Find[1024] = {0}; printf("请输入一段字符串"); scanf("%s", cStr2Find); __asm{ pushad; .....
分类:其他好文   时间:2014-12-17 17:58:50    阅读次数:214
c语言中数组名的本质
c语言中的数组名的本质是什么,数组名是指针吗?1、数组名是数组元素的首地址#include #include void main() { int a[10] = {1, 2, 3, 4, 5, 6, 7, 8,9, 10}; printf("a:%d &a:%d :%d \n", ...
分类:编程语言   时间:2014-12-17 17:45:55    阅读次数:195
PHP系统学习2
字符串操作 字符串截取 substr() 字符串格式化printf()格式化无需echo sprintf() 需要echo nl2br()可以将\n转换成 wordwrap() 单词之类的函数目前不知道有什么具体用途 strtolower()转换小写 strtoupper()转换大写 ...
分类:Web程序   时间:2014-12-17 17:45:26    阅读次数:241
关于JFace中的输入值(InputDialog)对话框类
格式:InputDialog(Shell parentShell, String dialogTitle, String dialogMessage, String initialValue, InputValidator validator)Creates ...
分类:其他好文   时间:2014-12-17 15:52:54    阅读次数:222
用shell分析nginx日志百度网页蜘蛛列表页来访情况
#!/bin/bash #desc:thisscriptsforbaidunews-spider #date:2014.02.25 #testdinCentOS5.9x86_64 #savedin/usr/local/bin/baidu-web.sh #writtenbycoralzd@gmail.comwww.zjyxh.com dt=`date-d"yesterday"+%m%d` if[$1x!=x];then if[-e$1];then grep-i"Baiduspider/2.0"$1>bai..
分类:Web程序   时间:2014-12-17 13:01:18    阅读次数:185
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!