Python: Global Interpeter Lock
What is GIL? GIL (Global interpreter Lock) is a mutex. Mutex is an mutual exclusion object used toprevent from two threads or more, to access the same piece of code. This piece of code also called...
View ArticleWeb框架之Tornado
概述 Tornado是FriendFeed使用的可扩展的非阻塞式 web 服务器及其相关工具的开源版本。这个 Web 框架看起来有些像web.py或者Google 的 webapp,不过为了能有效利用非阻塞式服务器环境,这个 Web 框架还包含了一些相关的有用工具 和优化。 Tornado 和现在的主流 Web 服务器框架(包括大多数 python...
View ArticleHow to Crawl the Web Politely with Scrapy
The first rule of web crawling is you do not harm the website. The second rule of web crawling is you do NOT harm the website. We’re supporters of the democratization of web data, but not at the...
View Article制作简易Mac OS上的伪锁屏工具
Posted by:Phodal Huang Aug. 25, 2016, 9:31 p.m. 今天中午在锁屏的时候,想到一件有意思的事。平时我会有两种“锁屏方式”: 传统的锁屏方式:command + alt + 电源,适用于长时间离开。 将屏幕亮度调暗,适用于上个厕所什么的。...
View ArticlePython Software Foundation: PyCon APAC - Bringing us together
Two weekends ago I was lucky enough to get the chance to attend PyCon APAC 2016. This year the event was held in Seoul, South Korea at the COEX Convention Center within the Gangnam-gu district. PyCon...
View ArticleIntroductory tutorial on Deep Learning from EuroSciPy 2016
Deep Learning with Keras Tutorial @ EuroScipy 2016 Yam Peleg, Valerio Maggio Goal of this Tutorial Introduce main features of Keras Learn how simple and pythonic is doing Deep Learning with Keras...
View ArticleConda: Myths and Misconceptions
I've spent much of the last decade using python for my research, teaching Python tools to other scientists and developers, and developing Python tools for efficient data manipulation, scientific and...
View ArticleUsing Amazon Elastic Map Reduce (EMR) with Spark and Python 3.4
As part of a recentHumanGeo effort, I was faced with the challenge of detecting patterns and anomalies in large geospatial datasets using various statistics and machine learning methods. Given the...
View ArticleImport Python: ImportPython Issue 87
Worthy Read Daniel Bader's Youtube channel for python Developers video Useful Youtube channel with short screencast/videos for Python developers to subscribe to. I learned on couple of sublime + Python...
View ArticleGlmnet for Python
I’ve learned many things since I joined Civis. Least expected though is a new appreciation for simple linear regression and classification models. Shortly after I started, I was asked to evaluate a...
View Article用Python从头开发一个自己的Shell(上)
用python从头开发一个自己的Shell(上) 一点号编程派昨天 平常工作中经常用到 shell 吧?好不好奇 shell 的具体执行方式?今天推送的这两篇文章,将利用 Python 实现一些简单的 shell 功能。 本文原作者为 Supasate Choochaisri ,由 PythonTG 翻译组的 Justin 翻译,校对为...
View Article使用matplotlib,pylab进行python绘图
使用matplotlib,pylab进行python绘图 昨天来源:cnblogs 一提到python绘图,matplotlib是不得不提的python最著名的绘图库,它里面包含了类似matlab的一整套绘图的API。因此,作为想要学习python绘图的童鞋们就得在自己的python环境中安装matplotlib库了,安装方式这里就不多讲,方法有很多,给个参考的。...
View Article用Python从头开发一个自己的Shell(下)
用python从头开发一个自己的Shell(下) 一点号编程派昨天 平常工作中经常用到 shell 吧?好不好奇 shell 的具体执行方式?今天推送的这两篇文章,将利用 Python 实现一些简单的 shell 功能。 在第一部分中,我们已经实现了主要的 shell 循环,切分了命令输入,并通过fork和exec执行了输入命令。在本文中,我们将解决剩下的问题。第一个问题是cd...
View Article翻译官方Python文档:标准库一览
翻译官方python文档:标准库一览 昨天来源:CSDN博客 写这个的起因是,还是因为在做Python challenge的时候,有的时候想解决问题,连应该用哪个类库都不知道,还要去百度(我不信就我一个人那么尴尬TvT) 好像自从学习了基础的Python...
View ArticlePython连接稀有数据库:DB2
在工作中遇到了这样的情况,项目中需要连接IBM的关系型数据库(DB2),关于这方面的库比较稀少,其中 ibm_db 是比较好用的一个库,网上也有教程,但是好像不准确,也不太详细,错误百出,没办法只能拿到后自己分析源码,总算搞定。 安装 环境需求: 首先是数据库DB2,下载连接直接百度,我下载是这两个文件: 只下载箭头所指即可,我还没在linux上做测试。...
View Article自动化系列五之Python模块
python自动化 时间:2016.08.18 模块 模块:用来从逻辑上组织Python代码(变量,函数,类,逻辑),本质就是.py结尾。 1.为什么要有模块 将代码归类,代码调用,代码整洁度,以及架构设计非常重要。 2.Python导入模块依据 导入 import syssys.path 3.模块名称的不要和内置模块冲突 模块定义 模块导入 导入单个模块 importmodule1_name...
View Article[译] 深入对比数据科学工具箱:Python 和 R 的 C/C++ 实现
概述 几周前,我有幸在 Scipy 大会上发表了 Civis如何使用python和R的演讲。为什么要在一个Python大会上大谈R呢?这是要挑起一个Python和R语言的一场战争吗?不是的!讨论哪个语言比较好简直是浪费时间。在 Civis,我们很愉快地同时使用这两种语言,不仅仅是在我们日常工作中解决数据科学问题,也用它们来写一些其他工具。下面是我在SciPy 大会上的一些讨论。 问题现状 我们...
View Articlepython学习笔记day5――常用模块学习
一、主要内容 模块介绍 time &datetime模块 random os sys shutil json & picle shelve xml处理 yaml处理 configparser hashlib subprocess logging模块 re正则表达式 二、具体内容 1.模块...
View Article如何通过python获取zabbix中的graph报表
正如我们都知道的,zabbix可以提供一些历史数据,例如:近7天的CPU使用情况,近14天的内存使用情况,近半年的磁盘使用情况,近7天的网络流量情况,还有一些自定义的数据 有时候,我们可能需要按照日期进行有序的整理报告,例如,我们需要每周给客户发送客户服务器的使用情况,包含以上的信息,我们当然不愿意每周手动去截图,这个太浪费时间了,所以我们可以通过python 来自动化的做这个事情...
View ArticleTalk Python to Me: #73 Machine learning at the new Microsoft
In this episode we catch up with David Crook, a developer evangelist at Microsoft. He is a co-organizer for the Fort Lauderdale Machine Learning User Group and is involved in many more user groups and...
View Article