05 2014 档案

MAVEN:::::: maven-dependency-plugin (goals "copy-dependencies", "unpack") is not supported
摘要:zhuan:http://elan1986.iteye.com/blog/1537967 org.eclipse.m2e lifecycle-mapping 1.0.0 org.apache.maven.plugins maven-dependency-p... 阅读全文

posted @ 2014-05-29 11:59 雨渐渐 阅读(1074) 评论(0) 推荐(0) 编辑

ubuntu maven 安装 设置
摘要:http://blog.csdn.net/tiefanhe/article/details/97741891.安装 maven ,下载地址:http://maven.apache.org/download.cgi 下载3.1.0版本2.解压到制定路径下,这里选择/usr/local/java/apa... 阅读全文

posted @ 2014-05-28 14:06 雨渐渐 阅读(291) 评论(0) 推荐(0) 编辑

temp
该文被密码保护。

posted @ 2014-05-27 15:49 雨渐渐 阅读(0) 评论(0) 推荐(0) 编辑

ubuntu 安装mysql及修改编码
摘要:643 netstat -tap | grep mysql 645 apt-get install mysql-server mysql-client 646 netstat -tap | grep mysql 647 mysql -u root -p 648 vim /etc/mysql/m... 阅读全文

posted @ 2014-05-27 14:32 雨渐渐 阅读(211) 评论(0) 推荐(0) 编辑

python 教程
摘要:http://www.w3cschool.cc/python/func-number-sqrt.html 阅读全文

posted @ 2014-05-07 09:27 雨渐渐 阅读(148) 评论(0) 推荐(0) 编辑

分布函数(连续型连续型)
摘要:要点:如果 F(x) = P{X < x} 而不是 <= 则为左连续( 连续与可导) 阅读全文

posted @ 2014-05-06 11:54 雨渐渐 阅读(1494) 评论(0) 推荐(0) 编辑

0 -1 分布(两点分布)
摘要:# --*-- coding:utf-8 --*--import matplotlib.pyplot as plt# 随机变量x只能取0,1 我们称X服从以P为参数的(0-1)分布 或两点分布p = float(1) / 4x = [0, 1]y = [1-p, p]cdf = [1-p, 1]fi... 阅读全文

posted @ 2014-05-06 11:24 雨渐渐 阅读(2114) 评论(0) 推荐(0) 编辑

matplotlib 显示中文
摘要:# --*-- coding: utf-8 --*--from matplotlib.font_manager import FontPropertiesimport matplotlib.pyplot as pltfont = FontProperties(fname=r"/usr/share/f... 阅读全文

posted @ 2014-05-05 13:48 雨渐渐 阅读(523) 评论(0) 推荐(0) 编辑

一个奇怪的编码 big5-hkscs
摘要:# --*-- coding:utf-8 --*--import urllib2import urllibpostDict = { 'IsExist_Slt_Part_Id': 'False', 'IsExist_Slt_Stock_Id': 'False', 'current_p... 阅读全文

posted @ 2014-05-04 17:48 雨渐渐 阅读(737) 评论(0) 推荐(0) 编辑

python 重载 __hash__ __eq__
摘要:__author__ = 'root'from urlparse import urlparseclass host_news(): def __init__(self, id, url): self.id = id urlinfo = urlparse(url) ... 阅读全文

posted @ 2014-05-04 15:59 雨渐渐 阅读(1056) 评论(0) 推荐(0) 编辑

python 一致性hash
摘要:https://pypi.python.org/pypi/hash_ring/一致性 哈希 自己玩下 试试 阅读全文

posted @ 2014-05-04 15:43 雨渐渐 阅读(148) 评论(0) 推荐(0) 编辑

python is == 的区别
摘要:要点: is 判断是否是同一个对象。是通过id来判断的 == 是通过值来判断的 为了提高内存利用率对一些简单的对象,如一些数值较小的int对象,python采用重用对象内存的方法例如指向a=2,b=2时,由于2作为简单的int类型且数值小,python不会两次为其分配内存,而是只分配一次,然后... 阅读全文

posted @ 2014-05-04 14:34 雨渐渐 阅读(267) 评论(0) 推荐(0) 编辑

python 遍历字典
摘要:dict={"a":"apple","b":"banana","o":"orange"} print "##########dict######################" for i in dict: print "dict[%s]=" % i,dict[i] print... 阅读全文

posted @ 2014-05-04 11:45 雨渐渐 阅读(283) 评论(0) 推荐(0) 编辑

二项分布
摘要:1 二项分布N,P对分布的影响# --*-- coding:utf-8 --*--import distributionimport matplotlib.pyplot as pltfrom matplotlib.ticker import MultipleLocator# 二项分布举例:将一个硬币... 阅读全文

posted @ 2014-05-04 10:46 雨渐渐 阅读(416) 评论(0) 推荐(0) 编辑

hbase rowkey设计的注意事项
摘要:1 充分利用有序性1.1 如果要scan操作,且不是很频繁,可以利用rowkey的有序性将需要一起扫描的数据放到一起。例如直接用时间戳。这样就可以按时间scan了。这个只要是简单的全表扫描都行。1.2 同样是scan,还可以利用rowkey的有序性实现数据本地化,设同一类别的数据需要一起扫描,那就可... 阅读全文

posted @ 2014-05-04 09:36 雨渐渐 阅读(897) 评论(0) 推荐(0) 编辑

分布律(离散型随机变量)
摘要: 阅读全文

posted @ 2014-05-03 22:25 雨渐渐 阅读(1932) 评论(0) 推荐(0) 编辑

python多线程 批量下补丁
摘要:一个一个下载 要2个多小时。就直接起了个线程池。效果明显。import urllib2from urlparse import urlparseuri = 'http://******/patch****'d = urllib2.urlopen(uri)res = urlparse(uri)f = ... 阅读全文

posted @ 2014-05-03 14:18 雨渐渐 阅读(226) 评论(0) 推荐(0) 编辑

导航