<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[QuantumEnergy's blog]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/QuantumEnergy</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; QuantumEnergy]]></copyright><item><title><![CDATA[pycharm代码注释支持google风格]]></title><link>https://blog.csdn.net/QuantumEnergy/article/details/80238027</link><guid>https://blog.csdn.net/QuantumEnergy/article/details/80238027</guid><author>QuantumEnergy</author><pubDate>Tue, 08 May 2018 12:56:22 +0800</pubDate><description><![CDATA[在设置中找到 
Tools &amp;gt; Python Integrated Tools 
选择Docstring format为Google]]></description><category></category></item><item><title><![CDATA[MacOS下pycharm设置Terminal为zsh]]></title><link>https://blog.csdn.net/QuantumEnergy/article/details/79952221</link><guid>https://blog.csdn.net/QuantumEnergy/article/details/79952221</guid><author>QuantumEnergy</author><pubDate>Sun, 15 Apr 2018 19:38:56 +0800</pubDate><description><![CDATA[在pycharm中进行如下配置 


pycharm工程中打开终端，发现部分命令无法识别,在zsh配置中进行如下修改,问题解决

vim  ~/.zshrc
export PATH=$PATH:/usr/local/bin]]></description><category></category></item><item><title><![CDATA[vim配色主题在tmux中显示异常解决方案（macOS+iterm2+zsh）]]></title><link>https://blog.csdn.net/QuantumEnergy/article/details/79940014</link><guid>https://blog.csdn.net/QuantumEnergy/article/details/79940014</guid><author>QuantumEnergy</author><pubDate>Sat, 14 Apr 2018 14:34:31 +0800</pubDate><description><![CDATA[


环境
分析
解决






环境

macOS + iterm2 + zsh + tmux 
vim的solarized和molokai主题在tmux中打开时，颜色异常

分析

iterm2中



[~] echo $TERM                                                                14:08:27
xterm-25...]]></description><category></category></item><item><title><![CDATA[python __new__ __init__ __call__详解]]></title><link>https://blog.csdn.net/QuantumEnergy/article/details/78747714</link><guid>https://blog.csdn.net/QuantumEnergy/article/details/78747714</guid><author>QuantumEnergy</author><pubDate>Fri, 08 Dec 2017 08:11:13 +0800</pubDate><description><![CDATA[new
__new__（cls, *args, **kwargs）
创建一个实例（通常是cls的，也可以是其他类型的实例）
init
__init__(self, *args, **Kwargs)
在实例被new创建后，返回给调用者前被执行
如果new返回的是cls的实例，那么init方法会被自动执行，self是创建的实例，init的入参和new的入参是一样的
  If new() returns]]></description><category></category></item><item><title><![CDATA[python各种进制求值]]></title><link>https://blog.csdn.net/QuantumEnergy/article/details/78705488</link><guid>https://blog.csdn.net/QuantumEnergy/article/details/78705488</guid><author>QuantumEnergy</author><pubDate>Sun, 03 Dec 2017 23:37:56 +0800</pubDate><description><![CDATA[def checkio(str_number, radix):
    str_int = dict(map(lambda x,y:(y, x), [ i for i in range(10, 36) ], [ chr(i)  for i in range(97, 123) ]))
    int_int = dict(map(lambda x,y:(str(x),y), [ i for i in]]></description><category></category></item><item><title><![CDATA[Celery 队列路由介绍]]></title><link>https://blog.csdn.net/QuantumEnergy/article/details/78703526</link><guid>https://blog.csdn.net/QuantumEnergy/article/details/78703526</guid><author>QuantumEnergy</author><pubDate>Sun, 03 Dec 2017 19:46:41 +0800</pubDate><description><![CDATA[不使用配置文件
celery.py
from __future__ import absolute_import
from celery import Celery
from datetime import timedelta
from celery.schedules import crontab
from kombu import Queue
app = Celery('test_app', i]]></description><category></category></item><item><title><![CDATA[终端显示随机彩色字母]]></title><link>https://blog.csdn.net/QuantumEnergy/article/details/78695919</link><guid>https://blog.csdn.net/QuantumEnergy/article/details/78695919</guid><author>QuantumEnergy</author><pubDate>Sat, 02 Dec 2017 15:09:38 +0800</pubDate><description><![CDATA[from random import randint
from random import choice
from asciimatics.screen import Screen
import string
def circle(centre, radius):
    passdef demo(screen):
    while True:
        screen.print_at(ch]]></description><category></category></item><item><title><![CDATA[python 代码提示 ValueError: unknown locale: UTF-8]]></title><link>https://blog.csdn.net/QuantumEnergy/article/details/78695584</link><guid>https://blog.csdn.net/QuantumEnergy/article/details/78695584</guid><author>QuantumEnergy</author><pubDate>Sat, 02 Dec 2017 14:37:17 +0800</pubDate><description><![CDATA[File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py”, line 475, in _parse_localename 
  raise ValueError, ‘unknown locale: %s’ % localename 
  ValueError: unknown loc]]></description><category></category></item><item><title><![CDATA[MAC pip install 权限错误解决办法.md]]></title><link>https://blog.csdn.net/QuantumEnergy/article/details/78631753</link><guid>https://blog.csdn.net/QuantumEnergy/article/details/78631753</guid><author>QuantumEnergy</author><pubDate>Sat, 25 Nov 2017 14:38:23 +0800</pubDate><description><![CDATA[pip install --user jupyteruninstalling six 1.4.1时报错 
由于mac禁止对six模块修改，所以尝试sudo pip install jupyter --ignore-installed six还是报错
  File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2]]></description><category></category></item><item><title><![CDATA[ELF存储空间到内存的映射关系]]></title><link>https://blog.csdn.net/QuantumEnergy/article/details/78571575</link><guid>https://blog.csdn.net/QuantumEnergy/article/details/78571575</guid><author>QuantumEnergy</author><pubDate>Sat, 18 Nov 2017 21:57:22 +0800</pubDate><description><![CDATA[映射关系
bss段：未初始化的全局变量和未初始化的局部静态变量,不占用程序文件的存储空间，程序启动后分配
#include <stdio.h>
int bss_data[1024 * 1024];
int main()
{
   return 0;
}
  gcc test.c -o bss 
  du -sh bss 
  12K bssdata段：初始化的全局变量和初始化的局部静态变量，占用程序]]></description><category></category></item><item><title><![CDATA[编译器自举笔记]]></title><link>https://blog.csdn.net/QuantumEnergy/article/details/78569582</link><guid>https://blog.csdn.net/QuantumEnergy/article/details/78569582</guid><author>QuantumEnergy</author><pubDate>Sat, 18 Nov 2017 16:36:09 +0800</pubDate><description><![CDATA[自举相关bootstrappingIn computer science, bootstrapping is the process of writing a compiler (or assembler) in the source programming language that it intends to compile. Applying this technique leads to a]]></description><category></category></item><item><title><![CDATA[Python垃圾回收之循环引用]]></title><link>https://blog.csdn.net/QuantumEnergy/article/details/78546550</link><guid>https://blog.csdn.net/QuantumEnergy/article/details/78546550</guid><author>QuantumEnergy</author><pubDate>Thu, 16 Nov 2017 00:31:38 +0800</pubDate><description><![CDATA[什么情况存在内存泄露
python引用计数 + 分代收集和标记清除（处理循环引用），进行垃圾回收，但如下两种情况依旧存在内存泄露：
第一是对象被另一个生命周期特别长（如全局变量）的对象所引用
第二是循环引用中的对象定义了__del__函数，简而言之，循环引用中Python无法判断析构对象的顺序，无法释放
相关术语
reachable/collectable（unreachable/uncollect]]></description><category></category></item><item><title><![CDATA[Python操作RabbitMQ之Pika]]></title><link>https://blog.csdn.net/QuantumEnergy/article/details/78516203</link><guid>https://blog.csdn.net/QuantumEnergy/article/details/78516203</guid><author>QuantumEnergy</author><pubDate>Sun, 12 Nov 2017 23:16:38 +0800</pubDate><description><![CDATA[安装RabbitMQ（MAC平台）
安装 brew install rabbitmq  
启动 /usr/local/sbin rabbitmq-server
访问: http://localhost:15672    使用guest/guest 登陆
基本概念RabbitMQ发送消息时,都是先把消息发送给ExChange(交换机),然后再分发给有相应RoutingKey关系的Queue。ExCha]]></description><category></category></item><item><title><![CDATA[Celery分布式异步框架介绍]]></title><link>https://blog.csdn.net/QuantumEnergy/article/details/78511171</link><guid>https://blog.csdn.net/QuantumEnergy/article/details/78511171</guid><author>QuantumEnergy</author><pubDate>Sun, 12 Nov 2017 12:53:43 +0800</pubDate><description><![CDATA[Celery基本使用介绍简介Celery是Python开发的分布式异步任务调度模块。Celery 需要一个发送和接受消息的传输者。RabbitMQ 和 Redis 中间人的消息传输支持所有特性，但也提供大量其他实验性方案的支持，包括用 SQLite 进行本地开发。Celery 可以单机运行，也可以在多台机器上运行，甚至可以跨越数据中心运行。 任务模块 
包含异步任务和定时任务。其中，异步任务通常在业]]></description><category></category></item><item><title><![CDATA[python2 For-loop循环控制变量命名泄露]]></title><link>https://blog.csdn.net/QuantumEnergy/article/details/78380650</link><guid>https://blog.csdn.net/QuantumEnergy/article/details/78380650</guid><author>QuantumEnergy</author><pubDate>Sat, 28 Oct 2017 23:28:58 +0800</pubDate><description><![CDATA[python2中循环控制变量会泄露到周围作用域中,python3中则不会被泄露场景一：循环变量名已被定义from platform import python_version
print (python_version())
i = 1
print ('before: i =', i)print ('comprehension: ', [i for i in range(5)])print ('af]]></description><category></category></item><item><title><![CDATA[zabbix-sender主动发送数据给zabbix-server]]></title><link>https://blog.csdn.net/QuantumEnergy/article/details/78377497</link><guid>https://blog.csdn.net/QuantumEnergy/article/details/78377497</guid><author>QuantumEnergy</author><pubDate>Sat, 28 Oct 2017 17:18:03 +0800</pubDate><description><![CDATA[下载zabbix sender 
http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-sender-3.4.3-1.el7.x86_64.rpm
安装 
yum install zabbix-sender-3.4.3-1.el7.x86_64.rpm
测试环境 
zabbix server: 10.130 
zabbix agent:10.1]]></description><category></category></item><item><title><![CDATA[Zabbix Server安装（Ubuntu16.04）]]></title><link>https://blog.csdn.net/QuantumEnergy/article/details/78364059</link><guid>https://blog.csdn.net/QuantumEnergy/article/details/78364059</guid><author>QuantumEnergy</author><pubDate>Fri, 27 Oct 2017 13:46:15 +0800</pubDate><description><![CDATA[官网下载对应版本的包：
zabbix server
web端监控页面
安装server
dpkg -i  zabbix-server-mysql_3.4.3-2+xenial_amd64.deb
若提示依赖问题: apt-get -f install
修改配置：   
  sudo vi /etc/zabbix/zabbix_server.conf  
  DBHost=localhost]]></description><category></category></item><item><title><![CDATA[存储接口及DAS,NAS,SAN等概念]]></title><link>https://blog.csdn.net/QuantumEnergy/article/details/78309679</link><guid>https://blog.csdn.net/QuantumEnergy/article/details/78309679</guid><author>QuantumEnergy</author><pubDate>Sun, 22 Oct 2017 13:54:23 +0800</pubDate><description><![CDATA[接口
IDE:并行接口
SATA:串行接口
SCSI:原来的IDE接口的硬盘转速太慢，传输速率太低，因此高速的SCSI硬盘出现。其实SCSI并不是专为硬盘设计的，实际上它是一种总线型接口,独立于系统总线工作
SAS:串行连接SCSI，是新一代的SCSI技术,兼容SATA
FC:光纤通道l，和SCIS接口一样光纤通道最初也不是为硬盘设计开发的接口技术，是专门为网络系统设计的，但随着存储系统对速度的需求]]></description><category></category></item><item><title><![CDATA[python hash算法实现]]></title><link>https://blog.csdn.net/QuantumEnergy/article/details/78266674</link><guid>https://blog.csdn.net/QuantumEnergy/article/details/78266674</guid><author>QuantumEnergy</author><pubDate>Tue, 17 Oct 2017 21:31:56 +0800</pubDate><description><![CDATA[#!/usr/bin/env python
# -*- coding:utf-8 -*-
class HashTable:
    def __init__(self, size):
        self.elem = [None for i in range(size)]  # 使用list数据结构作为哈希表元素保存方法
        self.count = size  # 最大表长]]></description><category></category></item><item><title><![CDATA[ceph & openstack cinder集成方案验证]]></title><link>https://blog.csdn.net/QuantumEnergy/article/details/78263479</link><guid>https://blog.csdn.net/QuantumEnergy/article/details/78263479</guid><author>QuantumEnergy</author><pubDate>Tue, 17 Oct 2017 17:56:07 +0800</pubDate><description><![CDATA[一、ceph & openstack可集成部分
cinder
glance
nova
二、ceph&openstack cinder集成功能支持：
ceph rbd作为cinder存储后端，完整的实现了cinder的接口
集成步骤：
在ceph中创建池供openstack使用
ceph osd pool create dk-pool 2048 2048
ceph中创建相关的账号，并设置权限,dk-c]]></description><category></category></item></channel></rss>