我们的项目中用apschedule作为核心定时调度模块.所以对apschedule进行了一些调查和源码级的分析. 1.为什么选择apschedule? 听信了一句话,apschedule之于python就像是quartz之于java.实际用起来还是不错的. 2.安装 # pip安装方式 $ pip install apscheduler # 源码编译方式 $ wget https://pypi.python.org/pypi/APScheduler/#downloads $ python set…
一.cstore_fdw的简介 https://github.com/citusdata/cstore_fdw,此外部表扩展是由citusdata公司开发,使用RC_file格式对数据进行列式存储. 优点1:因为有压缩,所以在disk上的存储大大减少,压缩比能达到2-4倍 优点2:数据内部分块存储,对于块数据进行了max以及min值的记录,在查询时能够进行跳块查询 优点3:在进行查询时,并不是将所有的磁盘数据都load到内存,而是选择列根据记录的skiplist中的offset来load所需要的…
python 下有个wsgi的封装库.wsgiref. WSGI 指的是 Web服务器网关接口(Python Web Server Gateway Interface) django的runserver用到了这个标准库,学习一下.. 涉及到的几个模块:HTTPServer,SocketServer,mimetools.Message(分析HTTP请求中的headers),socket(必须的),threading(用来实现ThreadingServer),select(用来实现非阻塞accept…
#!/usr/bin/env python # -*- coding:utf-8 -*- from rest_framework.views import APIView from rest_framework.response import Response class TestView(APIView): def get(self, request, *args, **kwargs): # self.dispatch print(request.user) print(request.aut…
Utilities for with-statement contexts __all__ = ["contextmanager", "closing", "AbstractContextManager",           "ContextDecorator", "ExitStack", "redirect_stdout",           "redirect_stde…
转自:https://www.cnblogs.com/coder2012/p/4990834.html…
1. 词云简介 词云,又称文字云.标签云,是对文本数据中出现频率较高的“关键词”在视觉上的突出呈现,形成关键词的渲染形成类似云一样的彩色图片,从而一眼就可以领略文本数据的主要表达意思.常见于博客.微博.文章分析等. 除了网上现成的Wordle.Tagxedo.Tagul.Tagcrowd等词云制作工具,在python中也可以用wordcloud包比较轻松地实现(官网.github项目): from wordcloud import WordCloud import matplotlib.pypl…
一.安装git客户端 1.windows环境推荐使用TortoiseGit. 官网地址:http://tortoisegit.org 下载地址:http://tortoisegit.org/download/ 安装过程:略 2.采用deb包的系统,如ubuntu sudo apt-get install git 3.采用yum的系统,如centos sudo yum install git 4.源码编译安装: wget https://github.com/git/git/archive/mas…
urlparse是用来解析url格式的,url格式如下:protocol :// hostname[:port] / path / [;parameters][?query]#fragment,其中;parameters一般用来指定特殊参数,使用的较少,至少我没怎么碰到,举几个链接:http://en.wikipedia.org/wiki/Robotics;Notes,http://en.wikipedia.org/wiki/Awesome;_I_Fuckin%27_Shot_That! 一:u…
转载自 http://www.limerence2017.com/2018/09/02/eos1/#more eos基于区块链技术实现的开源引擎,开发人员可以基于该引擎开发DAPP(分布式应用).下面搭建在windows环境下的虚拟机,并且安装eos引擎,以及配合vscode实现断点调试. 创建vmware虚拟机安装ubuntu系统 去下载vmware虚拟机,然后安装.vmware虚拟机链接地址ubuntu系统下载16.04版本以上的,下载地址ubuntu下载地址下面创建虚拟机,选择创建一个新的…