随笔分类 -  临时区

http://blog.csdn.net/itplus/article/details/10088625
摘要:http://blog.csdn.net/itplus/article/details/10088625 DBSCAN 阅读全文

posted @ 2015-04-10 11:17 雨渐渐 阅读(150) 评论(0) 推荐(0) 编辑

google protobuf 使用示例
摘要:1 定义.proto接口文件package tutorial;message Person { required string name = 1; required int32 id = 2; //unique ID number for this person optional ... 阅读全文

posted @ 2015-03-31 16:48 雨渐渐 阅读(4132) 评论(0) 推荐(0) 编辑

awk 的一个奇怪异常
摘要:awk: cmd. line:1: (FILENAME=- FNR=192) fatal: print to "standard output" failed (No space left on device)1045827 awk: cmd. line:1: (FILENAME=- FNR=218... 阅读全文

posted @ 2015-03-11 10:34 雨渐渐 阅读(1346) 评论(0) 推荐(0) 编辑

kill 进程卡住,超时kill方法
摘要:还是有漏洞 ,万一 working.py未超时, kill_job.sh 会不会杀死别人的进程啊start.sh#!/bin/bashpython working.py &python working.py &python working.py &pids=$(jobs -p)echo $pids... 阅读全文

posted @ 2015-03-10 17:10 雨渐渐 阅读(636) 评论(0) 推荐(0) 编辑

mapreduce 多路输出
摘要:Streaming支持多路输出(SuffixMultipleTextOutputFormat)如下示例:hadoop streaming \-input /home/mr/data/test_tab/ \-output /home/mr/output/tab_test/out19 \-outputf... 阅读全文

posted @ 2015-03-10 00:01 雨渐渐 阅读(782) 评论(0) 推荐(0) 编辑

stdout 编码 vim 删除左边,右边
摘要:sys.stdout = codecs.getwriter('utf8')(sys.stdout)vimdic['kkkk'] = qqqqqdic['bbbb'] = aaaaaadic['kkkk'] = qqqqqdic['bbbb'] = aaaaaadic['kkkk'] = qqqqqd... 阅读全文

posted @ 2015-03-08 14:24 雨渐渐 阅读(171) 评论(0) 推荐(0) 编辑

积累碎片shell
摘要:date -d next-day +%Y%m%d 阅读全文

posted @ 2015-03-03 23:31 雨渐渐 阅读(96) 评论(0) 推荐(0) 编辑

python logging模块
摘要:http://www.cnblogs.com/dkblog/archive/2011/08/26/2155018.html多模块问题:多模块使用logginglogging模块保证在同一个python解释器内,多次调用logging.getLogger('log_name')都会返回同一个logge... 阅读全文

posted @ 2015-02-26 16:34 雨渐渐 阅读(144) 评论(0) 推荐(0) 编辑

shell 流程控制
摘要:for循环:#!/bin/bashfor file in $(ls /ect)do echo $filedone 阅读全文

posted @ 2015-02-26 13:38 雨渐渐 阅读(121) 评论(0) 推荐(0) 编辑

shell 变量
摘要:${skill} {}是为了分清边界#!/bin/bashfor skill in Ada Coffe Action Javado echo "i am good at ${skill}Script"done推荐给所有变量加上花括号,这是个好的编程习惯。截取子串a="alibaba is a ... 阅读全文

posted @ 2015-02-25 16:22 雨渐渐 阅读(192) 评论(0) 推荐(0) 编辑

rz 上传大文件 rz
摘要:rz -e 就ok了 ,否则老失败 阅读全文

posted @ 2015-02-15 19:54 雨渐渐 阅读(908) 评论(0) 推荐(0) 编辑

2 1
摘要:http://blog.chinaunix.net/uid-20671208-id-3588619.html 阅读全文

posted @ 2015-02-04 11:36 雨渐渐 阅读(97) 评论(0) 推荐(0) 编辑

vim 分屏 screen
摘要:上下分割,并打开一个新的文件。:sp filename左右分割当前打开的文件。 Ctrl+W v左右分割,并打开一个新的文件。:vsp filename移动光标Vi中的光标键是h, j, k, l,要在各个屏间切换,只需要先按一下Ctrl+W把光标移到右边的屏。Ctrl+W l把光标移到左边的屏中。... 阅读全文

posted @ 2015-02-03 15:48 雨渐渐 阅读(156) 评论(0) 推荐(0) 编辑

进程号查找
摘要:top -b -d 1 -n 1 | awk '{print $1}' | ls -l /proc/$1 | awk '{bb="echo $9 | grep 'zone' | wc -l" print $bb}' 阅读全文

posted @ 2015-02-03 14:33 雨渐渐 阅读(104) 评论(0) 推荐(0) 编辑

推荐的有些东东
摘要:宗成庆的统计自然语言处理 第二版,里面有最大熵的介绍,非常专业,你一看就能明白 最大熵一个是模型的特征期望,一个是经验期望,经验期望是从训练数据中的得到的,模型期望要逼近经验期望,之后使用拉格朗日乘子算法求出模型的数学公式,就是那个指数公式http://www.cs.utexas.edu/~dana... 阅读全文

posted @ 2015-01-28 10:41 雨渐渐 阅读(115) 评论(0) 推荐(0) 编辑

shell 数组
摘要:http://www.cnblogs.com/chengmo/archive/2010/09/30/1839632.html 阅读全文

posted @ 2015-01-27 20:38 雨渐渐 阅读(86) 评论(0) 推荐(0) 编辑

json格式化工具
摘要:http://www.bejson.com/go.html?u=http://www.bejson.com/jsoneditoronline/ 阅读全文

posted @ 2015-01-26 15:34 雨渐渐 阅读(128) 评论(0) 推荐(0) 编辑

精确率与召回率
摘要:http://blog.csdn.net/taohuaxinmu123/article/details/9833001 阅读全文

posted @ 2015-01-13 15:17 雨渐渐 阅读(135) 评论(0) 推荐(0) 编辑

python机器学习库
摘要:http://scikit-learn.org/stable/install.html 阅读全文

posted @ 2015-01-12 15:56 雨渐渐 阅读(118) 评论(0) 推荐(0) 编辑

关于\t
摘要:tail -n 10000 sample_dbl.txt | python sitemap.py | sort -k 1 -t $'\t' | python sitecombiner.py > 1.sorttail -n 10000 sample_dbl.txt | python sitemap.p... 阅读全文

posted @ 2015-01-04 20:23 雨渐渐 阅读(209) 评论(0) 推荐(0) 编辑

导航