09 2013 档案

matplotlib绘制精美的图表(这是教程哦)
摘要:http://sebug.net/paper/books/scipydoc/matplotlib_intro.html 阅读全文

posted @ 2013-09-26 16:49 雨渐渐 阅读(214) 评论(0) 推荐(0) 编辑

数字签名和数字证书
摘要:http://www.ruanyifeng.com/blog/2011/08/what_is_a_digital_signature.html 阅读全文

posted @ 2013-09-26 16:23 雨渐渐 阅读(176) 评论(0) 推荐(0) 编辑

幂函数
摘要:定义:形如y=x^a(a为常数)的函数,即以底数为自变量,幂为因变量,指数为常量的函数称为幂函数运算:(其中p/q为约分数,即p,q互质)# plt.plot(x, x ** (1 / 2), label='$0.5$') 一开始老没画好这个图,原因是 1/2 = 0 并不等于 0.5import matplotlib.pylab as pltimport numpy as npx = np.linspace(-8, 8, 1000)plt.figure(figsize=(8, 4))plt.plot(x, np.power(x, 3), label='$3$' 阅读全文

posted @ 2013-09-26 14:48 雨渐渐 阅读(1141) 评论(0) 推荐(0) 编辑

ImportError: No module named matlab
摘要:这个matlab已经改名为pylab了,你可以运行:from pylab import * 阅读全文

posted @ 2013-09-26 11:02 雨渐渐 阅读(1062) 评论(0) 推荐(0) 编辑

ubuntu matplotlib 安装
摘要:sudo apt-get install python-numpy //必须sudo apt-get install python-matplotlib //必须 阅读全文

posted @ 2013-09-26 10:28 雨渐渐 阅读(348) 评论(0) 推荐(0) 编辑

高等数学(上册)
摘要:第一章:函数与极限第二章:导数与微分 第一节:导数的概念 一,引例 二,导数的定义(常用函数的求导公式) 三,导数的几何意义 四,导数可导性与连续性关系 第二节:导数的求导法则 一,函数的和,差,积,商的求导法则 二,反函数的求导法则 三,复合函数的求导法则 四,基本求导法则与导数公式 http://v.youku.com/v_show/id_XODI0Mzc2MA==.html?f=588683 3:43 阅读全文

posted @ 2013-09-24 14:16 雨渐渐 阅读(246) 评论(0) 推荐(0) 编辑

nutch 采集效率问题
摘要:http://hi.baidu.com/jacklin/item/a8fbccf479f6a1d042c36a7c再附一篇:http://blog.csdn.net/laigood/article/details/6233561fetcher.threads.per.host fetcher.thr... 阅读全文

posted @ 2013-09-23 15:23 雨渐渐 阅读(351) 评论(0) 推荐(1) 编辑

Fetcher类的工作流程
摘要:Fetcher类工作流程:FileInputFormat.addInputPath(job, new Path(segment, CrawlDatum.GENERATE_DIR_NAME));job.setInputFormat(InputFormat.class);----------------第一部分------------------------job.setMapRunnerClass(Fetcher.class);Fetcher类实现了MapRunnable这个接口,主要完成了生产者的启动与消费者的启动。Fetcher extends Configured implements T 阅读全文

posted @ 2013-09-23 12:16 雨渐渐 阅读(482) 评论(0) 推荐(1) 编辑

GIS
摘要:def GIS(): global C global FeaWeights for wid in WordDic.keys(): FeaWeights[wid] = {} for classid in ClassList: FeaWeights[wid][classid] = 0.0 n = 0 prelogllh = -1000000.0 logllh = -10000.0 while logllh - prelogllh >= LogLLDiff and n < MaxIteration: ... 阅读全文

posted @ 2013-09-22 16:00 雨渐渐 阅读(259) 评论(0) 推荐(1) 编辑

nutch 1.7 修改代码后如何编译发布,并集群采集攻略
摘要:nutch 1.3之后,分布式的可执行文件与单机可执行文件进行了分离接上篇,nutch 1.7 导入 eclipse本篇所要解决的问题:nutch下载下来经过简单的配置即可进行采集,但有时候我们需要修改nutch的源码(比如不遵守机器人协议,比如我要保存网页的编码),这个时候如何编译为可执行程序呢?... 阅读全文

posted @ 2013-09-18 16:52 雨渐渐 阅读(709) 评论(0) 推荐(0) 编辑

nutch 1.7 导入 eclipse
摘要:开发环境建议:ubuntu+eclipse (windows + cygwin + eclipse不推荐)第一步:下载http://archive.apache.org/dist/nutch/从上述站点下载src和bin两个压缩文件wget 'http://archive.apache.org/di... 阅读全文

posted @ 2013-09-16 12:59 雨渐渐 阅读(1297) 评论(0) 推荐(1) 编辑

最大熵模型(一)熵是什么及如何表示熵
摘要:主要参考源:http://www.zhizhihu.com/html/y2011/3489.htmlhttp://blog.sina.com.cn/s/blog_73361fab0100zi8x.html1.0 熵的概念如果一个系统ξ有多个事件S={E1,E2...En},每个事件的概率分布为P={p1,p2...pn}则每个事件本身的信息量为: 而熵为整个系统的平均信息量: 熵越大,事件越不确定。熵为0,事件是确定的。2.0 如何理解熵?1 先看两个例子 例1: 称硬币的问题,说有... 阅读全文

posted @ 2013-09-16 05:52 雨渐渐 阅读(578) 评论(0) 推荐(0) 编辑

mysql的乱码问题
摘要:ALTER TABLE `news`.`snapshots` MODIFY title VARCHAR(1024) CHARACTER SET utf8; ALTER TABLE `news`.`snapshots` MODIFY source VARCHAR(50) CHARACTER SET utf8; ALTER TABLE `news`.`snapshots` MODIFY NAME VARCHAR(100) CHARACTER SET utf8; ALTER TABLE `news`.`snapshots` MODIFY place VARCHAR(1000) C... 阅读全文

posted @ 2013-09-11 12:15 雨渐渐 阅读(157) 评论(0) 推荐(0) 编辑

ubuntu 解压rar
摘要:Ubuntu下解压rar文件的方法 一般通过默认安装的ubuntu是不能解压rar文件的,只有在安装了rar解压工具之后,才可以解压。其实在ubuntu下安装rar解压工具是非常简单的,只需要两个步骤就可以迅速搞定。ubuntu 下rar解压工具安装方法:压缩功能安装 sudo apt-get install rar卸载 sudo apt-get remove rar解压功能安装 sudo apt-get install unrar卸载 sudo apt-get remove unrarubuntu解压命令全览.tar解包:tar xvf FileName.tar打包:tar cvf File 阅读全文

posted @ 2013-09-10 14:59 雨渐渐 阅读(252) 评论(0) 推荐(0) 编辑

git 基本命令 (常用)
摘要:http://www.zhixing123.cn/ubuntu/37865.html 参考的这个网址他这里有个错误:id_rsa.pub 应该复制这个 而不是id_rsa1341 git init1342 git add README.md1343 git commit -m "first... 阅读全文

posted @ 2013-09-10 14:11 雨渐渐 阅读(248) 评论(0) 推荐(0) 编辑

ubuntu修改源
摘要:1、修改源地址:cp /etc/apt/sources.list /etc/apt/sources.list.bakvim /etc/apt/sources.list加入如下内容(中科大的):deb http://mirrors.ustc.edu.cn/ubuntu/ precise-updates main restricteddeb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-updates main restricteddeb http://mirrors.ustc.edu.cn/ubuntu/ precise universedeb-s 阅读全文

posted @ 2013-09-06 19:15 雨渐渐 阅读(256) 评论(0) 推荐(0) 编辑

hadoop 异常 datanode未启动
摘要:暴力方法:(本人是学习阶段,实际工作中不能这么做)在各个节点上执行如下操作。将/tmp 删除将 conf/mapred-site.xml mapred.system.dir /home/hadoop/mapreduce/system mapred.local.dir /home/hadoop/mapreduce/local 将conf/hdfs-site.xml dfs.name.dir /home/hadoop/dfs/filesystem/name dfs.data.dir /home/hadoop/dfs/filesystem/data 即将dfs 和 mapr... 阅读全文

posted @ 2013-09-04 10:58 雨渐渐 阅读(280) 评论(0) 推荐(0) 编辑

hadoop 异常 ls: Cannot access .: No such file or directory.
摘要:bin/hadoop dfs -lsls: Cannot access .: No such file or directory.bin/hadoop dfs -ls /用这个命令代替试试原因是格式化后没有任何文件 阅读全文

posted @ 2013-09-04 10:51 雨渐渐 阅读(2858) 评论(0) 推荐(0) 编辑

hadoop 异常 INFO ipc.Client: Retrying connect to server:
摘要:13/09/04 10:34:50 INFO ipc.Client: Retrying connect to server: master/10.0.0.124:9000. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)13/09/04 10:34:51 INFO ipc.Client: Retrying connect to server: master/10.0.0.124:9000. Already tried 阅读全文

posted @ 2013-09-04 10:49 雨渐渐 阅读(2879) 评论(0) 推荐(0) 编辑

导航