上一页 1 ··· 208 209 210 211 212 213 214 215 216 ··· 341 下一页
摘要: Linux/Centos下释放内存和缓存方法$ free -m 运行sync将dirty的内容写回硬盘$ sync通过修改proc系统的drop_caches清理free的cache$ echo 3 > /proc/sys/vm/drop_caches$ free -m 阅读全文
posted @ 2014-02-17 10:54 emanlee 阅读(758) 评论(0) 推荐(0)
摘要: 显示警告(打开):warnings查看警告(查看内容):show warnings;记录运行日志:tee _logsfile source sql_filenotee 阅读全文
posted @ 2014-02-16 15:32 emanlee 阅读(4884) 评论(0) 推荐(0)
摘要: mysql 行列动态转换(列联表,交叉表)(1)动态,适用于列不确定情况create table table_name(id int primary key,col1 char(2),col2 char(2),col3 int);insert into table_name values(1 ,'A... 阅读全文
posted @ 2014-02-14 23:28 emanlee 阅读(10980) 评论(0) 推荐(0)
摘要: Extracted from: http://stackoverflow.com/questions/16061894/jquery-easyui-add-link-to-cellHTML: 1 5 6 7 Kunde 8 Name 9 Funktion10 ... 阅读全文
posted @ 2014-02-14 09:25 emanlee 阅读(2479) 评论(0) 推荐(0)
摘要: 字符串长度: nchar("hello world") #字符串连接:paste() #paste(..., sep = " ", collapse = NULL)#字符串分割:strsplit() #strsplit(x, split, extended = TRUE, fixed = FALSE 阅读全文
posted @ 2014-02-04 15:23 emanlee 阅读(2561) 评论(0) 推荐(0)
摘要: 匹配: ABC任意数量的字符123模式: ABC.*123 阅读全文
posted @ 2014-01-31 21:11 emanlee 阅读(265) 评论(0) 推荐(0)
摘要: 1、系统管理 查看数据库的大小use 数据库名SELECT sum(DATA_LENGTH)+sum(INDEX_LENGTH)FROM information_schema.TABLES where TABLE_SCHEMA='数据库名';得到的结果是以字节为单位1.1 连接MySQL 格式: ... 阅读全文
posted @ 2014-01-28 18:51 emanlee 阅读(627) 评论(0) 推荐(0)
摘要: (1)统计当前目录下的 *txt 文件du -c -h *txt (2)统计当前目录下的 *txt 文件, 并求出总大小du *txt |awk 'BEGIN{count=0;size=0;} \ {count = count + 1; size = size + $1/1024;} \ END{p... 阅读全文
posted @ 2014-01-20 17:35 emanlee 阅读(4471) 评论(0) 推荐(0)
摘要: (1)查看某目录下文件的个数: ls -l |grep "^-"|wc -l 或 find ./company -type f | wc -l (2)查看某目录下文件的个数,包括子目录里的: ls -lR|grep "^-"|wc -l (3)查看某文件夹下目录的个数,包括子目录里的... 阅读全文
posted @ 2014-01-20 17:01 emanlee 阅读(2243) 评论(0) 推荐(0)
摘要: numbers <- c(4,23,4,23,5,43,54,56,657,67,67,435, 453,435,324,34,456,56,567,65,34,435)a <- table(numbers)aa[names(a)==435]as.data.frame(table(numbers))... 阅读全文
posted @ 2014-01-17 18:51 emanlee 阅读(1826) 评论(0) 推荐(0)
上一页 1 ··· 208 209 210 211 212 213 214 215 216 ··· 341 下一页