12 2012 档案
摘要:Collections High-performance container datatypes * nametuple() * deque * Counter * OrderedDict * defaultdict 一、Counter dict subclass for counting hash able objects ...
阅读全文
摘要:什么是缓存:
存储使用频繁数据的临时地方。 缓存命中:
如果不是预存的话第一次要miss掉。
1、如果有足够的缓存空间,未命中的对象后面会被存储到缓存中。
2、如果缓存满了,就有根据对应的缓存策略,替换数据。即替换策略 缓存算法可以分为: 1. 基于时间的策略 2. 基于访问频率的策略 3. 基于二者坚固的策略 4. 时间距离分布策略 ...
阅读全文
摘要:RabbitMQ是AMQP(高级消息队列协议)的标准实现 基本概念 参考文章:
http://www.rabbitmq.com/getstarted.html
http://www.nsbeta.info/archives/200 python demo: producer #!/usr/bin/env python import pika connec...
阅读全文
摘要:最近在使用rabbitmq
python端用pika连接 出现错误: =ERROR REPORT==== 18-Dec-2012::19:02:56 ===
exception on TCP connection from 127.0.0.1:44552
{bad_header,>} 但是运行的时候出错 参考:
http://rubydoc.info/gith...
阅读全文
摘要:一、修改root密码 1. sudo passwd 2. Password: 3. Enter new UNIX password: 4. Retype new UNIX password: 5. passed:finished update successfully. 二、修改只允许证书登陆 1. 修改/etc/...
阅读全文
摘要:首先安装一些依赖apt-get updateapt-get install gccapt-get install zlib1g-devapt-get install g++apt-get install libxml2apt-get install libxml2-devapt-get install libgdal1-dev1、安装postgresqlwgethttp://ftp.postgresql.org/pub/source/v9.1.4/postgresql-9.1.4.tar.gzmkdir /usr/local/pgsqltar -zxvf postgresql-9.1.4.ta
阅读全文

浙公网安备 33010602011771号