Who uses my stuff?
Summary I work on a lot of different things. Some are applications, are are libraries, some I started, some other people started, etc. I have way more stuff to do than I could possibly get done, so I...
View Article【公益课】“大鹏教你玩数据”再开!用PYTHON来看周末上哪去约饭
【公益课】“大鹏教你玩数据”再开!用python来看周末上哪去约饭 一点号城市数据团昨天 php?url=0Fj9Ysf9ru" alt="【公益课】“大鹏教你玩数据”再开!用PYTHON来看周末上哪去约饭" />大鹏教你玩数据免费 精短 实用 教你最有趣的数据知识 培养最关键的数据思维 揭秘最实用的数据技能...
View ArticleStart your programming journey with Django Girls Silicon Valley
We're looking forward to Elastic{ON} 17 for a lot of reasons. It's the largest gathering of the Elastic Stack community, has a jam-packed agenda of interesting talks , and is a chance to get our...
View Article阿里云快速部署Flask应用
前言 之前在博客上写过使用pythonflask进行web的开发,当时由于时间关系并没有写实际生产环境中该如何部署Flask应用。这篇文章就来写写在阿里云服务器上快速部署Flask应用的步骤。Flask +gunicorn + Nginx +supervisor部署 Python Flask 应用,就是这么简单粗暴! 回顾 之前写过的一篇使用Flask开发web的文章,传送门...
View Articlepython基础7--集合
集合set python的set集合是一个无序不重复元素集。基本功能包括关系测试和消除重复元素。集合对象还支持union(并集)、intersection(交集)、difference(差集) 和 sysmmetric differencr(对称差集)等数学运算。 set 支持 x in set, len(set), for x in set。作为无序集合,set不记录元素的下标。 事例:...
View Article寻找被篡改的数
这一趣题和《算法新解》前言中的“最小可用Id”问题具有很多类似的地方。 有个从1到n的数字列表,经过某些处理后,发生了两点变化。1)序列的循序被打乱了;2)其中一个数字x被篡改成了数字y,其中x和y都在1到n之间。能否找到一个线性时间,常数空间的方法,找出丢失的x和重复的y呢? 例如 [3, 1, 3, 5, 4] ==> x = 2, y = 3 分而治之 我们可以用中数m =...
View Article轻量级爬虫――python实现
多点分享,少点说教。 简单框架: 调度端: 程序入口,负责初始化程序,控制程序的逻辑结构。 U RL 管 理器: 负责管理程序将要访问的URL池,以及已访问的URL池,保证程序走在正确的道路上,不至于重复访问,也不访问无用网页。 网 页下载器: 将给定URL对应的页面下载到本地,供程序使用。 页 面解析器: 解析出网页中符合条件的URL,以及我们所需要的数据。 最 终数据:...
View ArticleRene Dudfield: setup.cfg - a solution to python config file soup? A howto guide.
Sick of config file soup cluttering up your repo? Me too. However there is a way to at least clean it up for many python tools. Some of the tools you might use and the config files they support......
View ArticleSummaryWriter报错,改为tf.summary.FileWriter
不推荐使用 SummaryWriter (来自tensorflow. python .training.summary_io),将在2016-11-30之后删除。 更新说明: 请切换到 tf.summary.FileWriter 接口和行为是相同的; 这只是一个重命名。 比如原来代码: with tf.Session() as sess: writer =...
View ArticleThe Multilingual Programmer
At the recent SQL Konferenz in Germany, the keynote was from Michael Rhys of Microsoft. His talk was on the evolution and design of the U-SQL language. If you haven’t looked at it, U-SQL is what the...
View Article使用cookiecutter-flask快速生成python后端项目
Write code that writes code. Code generators increase your productivity and help avoid duplication. 天下武功,唯快不破...
View ArticleStripe SMS Notifications via Twilio, Heroku, and Python
Stripe SMS Notifications via Twilio, Heroku, and python I recently started a small business using the online platform Storenvy . Storenvy integrates with Stripe , a popular online payments platform. As...
View ArticleFASTCALL microbenchmarks
For my FASTCALL project (Cpython optimization avoiding temporary tuples and dictionaries to pass arguments), I wrote many short microbenchmarks. I grouped them into a new Git repository: pymicrobench...
View ArticleFASTCALL issues
Here is the raw list of the 46 Cpython issues I opended between 2016-04-21 and 2017-02-10 to implement my FASTCALL optimization. Most issues created in 2016 are already part of Python 3.6.0, some are...
View ArticleIPython 5.3.0 发布,Python 命令行交互
Ipython 5.3.0 发布了,IPython 是 Python 的原生交互式 shell 的增强版,可以完成许多不同寻常的任务,比如帮助实现并行化计算;主要使用它提供的交互性帮助,比如代码着色、改进了的命令行回调、制表符完成、宏功能以及改进了的交互式帮助。 更新内容: Fix a bug in set_next_input leading to a crash of terminal...
View ArticleWatson使用指南(七)在微信公众号中实现识图作诗功能
本文章主要是写一下这个项目开发的过程及之间遇到的问题,作为记录,也希望以此为契机认识志同道合的朋友,一起学习交流。 目录: 概述 环境准备及相关账号申请 部署python Flask应用到Bluemix 通过Bluemix认证公众微信号 识图作诗相关功能开发 总结 概述 本文将从一个开发人员角度,介绍如何使用Bluemix平台开发和部署Python...
View Article支持Python!Facebook开源预测工具Prophet
支持python!Facebook开源预测工具Prophet 昨天来源:雷锋网 php?url=0FjHcRIXFa" alt="支持Python!Facebook开源预测工具Prophet" />雷锋网消息:前天,Facebook 宣布开源一款基于 Python 和 R 语言的数据预测工具――“Prophet”,即“先知”。取名倒是非常直白。 Facebook 表示,Prophet...
View ArticleLogin not required pattern
Introduction Typically routes in a web application that require login are explicitly marked as such. Whilst routes that are open to general (anonymous) users, are left unmarked and hence implicitly do...
View ArticlePEP 8 Python编码风格指南概要
python 拥有简洁优雅的语法,但这并不意味着开发者一定能写出简洁而优雅的代码。要写出好的代码,就要遵循一定的规则。Python 官方给出了 PEP8 风格指南,建议每位 Python 开发者都应该阅读一遍,并在开发过程中遵循该编程规范。 PEP 8 全称为 Python Enhancement Proposal #8 , 中文叫做《8号Python增强提案》。PEP 8...
View ArticlePostmodern Error Handling in Python 3.6
Postmodern error handling in python 3.6 I’ll be the first person to admit I have no idea what postmodernism actually means, but it sounds cool for an article on error-handling (or rather how to prevent...
View Article