2018年4月30日

redis集群搭建踩坑笔记

摘要: 推荐参考教程:https://blog.csdn.net/pucao_cug/article/details/69250101 错误: from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from 阅读全文

posted @ 2018-04-30 13:52 JungleFish 阅读(1858) 评论(0) 推荐(0) 编辑

2018年2月27日

海量数据处理方法总结

摘要: 下面的方法全部来自http://hi.baidu.com/yanxionglu/blog/博客 一、Bloom filter 适用范围:可以用来实现数据字典,进行数据的判重,或者集合求交集 基本原理及要点:对于原理来说很简单,位数组+k个独立hash函数。将hash函数对应的值的位数组置1,查找时如 阅读全文

posted @ 2018-02-27 16:36 JungleFish 阅读(208) 评论(0) 推荐(0) 编辑

2018年2月7日

Python 中的赋值、拷贝、引用

摘要: 在 python 中赋值语句总是建立对象的引用值,而不是复制对象。因此,python 变量更像是指针,而不是数据存储区域。 如图所示,当改变一个变量的值,另一个的值也会跟着改变。也就是浅拷贝。 若要实现深拷贝则需要引入copy模块,如下图所示,两个变量就相互独立了。 阅读全文

posted @ 2018-02-07 18:19 JungleFish 阅读(222) 评论(0) 推荐(0) 编辑

2018年2月3日

python中的字符数字之间的转换函数

摘要: 转载: int(x [,base ]) 将x转换为一个整数 long(x [,base ]) 将x转换为一个长整数 float(x ) 将x转换到一个浮点数 complex(real [,imag ]) 创建一个复数 str(x ) 将对象 x 转换为字符串 repr(x ) 将对象 x 转换为表达 阅读全文

posted @ 2018-02-03 15:22 JungleFish 阅读(9179) 评论(0) 推荐(0) 编辑

2017年4月21日

ubuntu下php7安装及配置

摘要: 直接用apt-get 失败 在官网下安装包http://tw2.php.net/get/php-7.0.18.tar.bz2/from/a/mirror 进行make时 出现错误: libtool: link: `ext/opcache/ZendAccelerator.lo' is not a va 阅读全文

posted @ 2017-04-21 19:22 JungleFish 阅读(1501) 评论(0) 推荐(0) 编辑

2017年3月22日

Ubuntu下Apache2+Tomact7安装、配置及整合

摘要: 安装Apache2 命令:apt-get install apache2 cd /etc/apache2 打开apache.conf 加入 ServerName localhostDirectoryIndex index.html index.htm index.php 开启服务:/etc/init 阅读全文

posted @ 2017-03-22 22:12 JungleFish 阅读(250) 评论(0) 推荐(0) 编辑

2017年3月18日

安装coreseek 编译错误

摘要: Ubuntu下 编译csft 报错fatal error python.h no such file or directory 执行apt-get install python-dev即可 阅读全文

posted @ 2017-03-18 12:23 JungleFish 阅读(127) 评论(0) 推荐(0) 编辑

2017年1月12日

CQL查Cassandra条目数中的小问题

摘要: 用查询语句:SELECT count(*) FROM tablename 返回类型是ResultSet,得到tablename中所有条目数 ResultSet类型可以直接用index访问:ResultSet[0](是一个Row对象,可是我只想要这个数值啊) 各种尝试和查询后找到这个函数:tuple( 阅读全文

posted @ 2017-01-12 13:57 JungleFish 阅读(559) 评论(0) 推荐(0) 编辑

2017年1月9日

Windows平台下,Scrapy Installation,安装问题解决

摘要: 按理说直接:pip install scrapy 就可以成功,但是出现了错误“libxml/xpath.h: No such file or directory” “error:failed with exit status 2” (百度上有很多解决方案而且大多相同,但是都没解决我的问题) 最后还是 阅读全文

posted @ 2017-01-09 21:44 JungleFish 阅读(402) 评论(0) 推荐(0) 编辑

2016年9月15日

NDN与TCP/IP

摘要: 搬运自http://blog.csdn.net/programmer_at/article/details/49203241 当前TCP/IP协议存在哪些问题?如何改进? 当时没有回答好,然后提到了NDN可以针对TCP/IP做出改进,但是在行家面前就漏 洞百出,一是对TCP/IP网络理解不够深入,另 阅读全文

posted @ 2016-09-15 02:25 JungleFish 阅读(1234) 评论(0) 推荐(0) 编辑

导航