周刊
各种来源的…
background
世界高速变化
goal
定期 review 一周以来主要变化
trac
汇集各种渠道的周刊, 以及自己每周内省小结吧…
refer.
…TBD
各种来源的…
世界高速变化
定期 review 一周以来主要变化
汇集各种渠道的周刊, 以及自己每周内省小结吧…
…TBD
原文: Import Python Weekly Newsletter - Issue No 132 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 将 Python 和 Assembly 的力量联合起来 asm We can’t just copy/paste ASM directly into a Python script. Instead, python reads the machine code in as a bytearray of shellcode where the binary data is represented by a hex value where the \x represents the offset. (是也乎: ASM … ) pythonbooks.org books Discover the best books in every Python book category. (是也乎: 太实用了…当然的, 没有一本中国原创的. ) 用 Hydrogen 进行交互 IDE Hydrogen is a package for Atom editor that allows interactive programming in different languages. I would call it a bridge, or even a sweet spot, between Jupyter Notebooks and a full blown IDE (like IntelliJ IDEA). (是也乎: 桥件,能将 Jupyter 和 IDE 粘合起来 ) 深入 Closures 和 Decorators - 第一部分 closures 使用进程池加速您的Python数据处理脚本 futures With the concurrent.futures library, Python gives you a simple way to tweak your scripts to use all the CPU cores in your computer at once. Don’t be afraid to try it out. Once you get the hang of it, it’s as simple as using a for loop, but often a whole lot faster. (是也乎: 问题是前提,你的数据是可原子切分处理的 ) 设置 Sublime Text 3 为 Python 进行类型检查 sublime GANs N’ Roses machine learning Imagine one day wherein we had a neural network which could watch movies and generate it’s own movies, or listen to songs and compose new ones. This network would learn from what it sees and hears without you explicitly telling it. This way of letting a neural network learn is known as unsupervised learning. (是也乎: 无监督学习系统的嗯哼 ) PyPy 究竟是什么? pypy PyBay 奖学金计划发布 conference In the spirit of increasing the Python community’s inclusivity and diversity, PyBay is pleased to announce this year’s conference scholarships. Our scholarships are designed to support members of our community for whom attending PyBay would present a financial challenge. 开始 Jupyter Notebook 的5个最佳技巧 jupyter We’ve discussed a few reasons to use Jupyter Notebooks as a GIS user. From visualization of your data to the recent integration with the ArcGIS platform, Jupyter Notebooks are quickly becoming a crucial component of GIS and data science workflows. In spite of these benefits, coming up to speed and getting comfortable with Jupyter Notebooks can be a daunting task for a new user. There is nuance to the way Jupyter Notebooks operate that can take some time to comprehend. (是也乎: 简单的说 ipynb 不是 IDE 也不是编辑器, 而是一个能方便的记录并同时积累我们思考的环境 ) 机器学习和深度学习工程师的基础作弊书 machine learning CheatSheets for Pandas, numpy etc. collections.Counter - Weekly Python Chat counter You want to count the number of times each thing occurs in your list. How do you do it? We’ll talk about the many ways to solve this problem, concluding with the most Pythonic way: Counter. scrapy 中的 404 链接检测器 code snippets 高级 Python 功能 core-python 好物 ~ 包/模块/库/片段… ...
原文: Import Python Weekly Newsletter - Issue No 131 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 将 Python 语法编译为 x86-64 指令集只为好玩并无增益 AST I used Python’s built-in AST module to parse a subset of Python syntax and turn it into an x86-64 assembly program. It’s basically a toy, but it shows how easy it is to use the ast module to co-opt Python’s lovely syntax for your own ends. (是也乎: 简单的说, 就是内置 AST 能力的嗯哼… ) 如何在 Python 中设立基准性能 performance Suppose that you have a function and you wonder, “Can I make this faster?” Well, you might already have thought that and you might already have a theory. Or two. Or three. Your theory might be sound and likely to be right, but before you go anywhere with it you need to benchmark it first. Here are some tips and scaffolding for doing Python function benchmark comparisons. 几个俺开始用的新工具 curated list Note - Two, to be precise. Wasn’t aware of python-gist myself. 月度 PyPI: IPython, pytest, cryptography 和 NumPy pypi Monthly PyPI digest. 用 Python 和 Flask 进行图像上传和审核 flask Almost all applications contain images. Image moderation has become a necessity. We will see in this article how to moderate your images automatically. (是也乎: 基于 Realtime image moderation and nudity detection API - Sightengine 进行鉴黄… ) Kruskal 的算法可视化 algorithms Kruskal’s algorithm is a greedy algorithm that finds a minimum spanning tree for a weighted undirected garph. Visualisation and code snippet included. 在 Python 基于贝叶斯进行 AB 测试 A/B-Testing Back when I was getting started into Bayesian Statistics I found it hard to find some simple ready-to-use code examples to get started with probabilistic programming. Today, there are great resources available and I want to contribute with that sharing a very simple code to get started with AB Tests in Python. 使用 nose 以及 coverage 进行 Django 测试 django, testing Django testing using django-nose and coverage. 用 scikit-learn, AWS Lambda, S3 和 Amazon API Gateway 构建接口 scikit, s3, lamda This tutorial will help you build a classifier as a service. The classifier will be trained using iris flower data set witch consists on 3 different types of irises’ (Setosa, Versicolour, and Virginica). The rows being the samples and the columns being features: sepal length, sepal width, petal length and petal width. Scikit-learn library will be used for machine-learning algorithms. (是也乎: 看起来很复杂, 但是, AWS 就是这样将元能力嗯哼好, 大家就可以自在的组合成各种嗯哼… ) logzero - 简化 Python 2 和 3 的 logging logging I’ve just published logzero, a small Python package which simplifies logging with Python 2 and 3. It is easy to use and robust, and heavily inspired by the Tornado web framework. (是也乎: 冲这么嗯哼的 logo 就可以尝试了.. ) 使用 PyFolio,R 的 PerformanceAnalytics 和 backtrader 进行股票交易分析优化 stock trading Curator - If you ever dreamed of writing code that makes you money while you sleep or are relaxing on a beach. On a serious note this is a solid blog post on stock reading Stock Performance analytics. CPython 和 MicroPython 中的内存应用 micropython At PyCon 2017, Kavya Joshi looked at some of the differences between the Python reference implementation (known as “CPython”) and that of MicroPython. In particular, she described the differences in memory use and handling between the two. Those differences are part of what allows MicroPython to run on the severely memory-constrained microcontrollers it targets—an environment that could never support CPython. (是也乎: 嗯哼?哲学一切都和设计哲学取舍有关… ) 好物 ~ 包/模块/库/片段… ...
原文: Import Python Weekly Newsletter - Issue No 130 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 10分钟在 Python 3.6 用起静态数据类型检查 static type Automatically catch many common errors while coding (是也乎: 目前只有少数 IDE 比如 PyCharm 支持 py3 这种语法, 以及并没有证据表明, 在混合使用新旧数据声明的代码项目, 可以不用其它手段就可能提高运行效能. ) 用 flake8 对 python 项目自动进行代码复审 ...
原文: Import Python Weekly Newsletter - Issue No 129 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… fsudoku: 快速数独解算器 codesnippet I decided to crush Sudoku, once and for all, by solving all Sudoku puzzles in one fell swoop and in less than 300 lines of Python. PyDev 周刊: Amir Rachum interview This week we welcome Amir Rachum as our PyDev of the Week. Amir is the author / maintainer of pydocstyle and yieldfrom. Amir also write a fun little blog about Python. Let’s take a few moments to get to know Amir better! (是也乎: pydocstyle / yieldfrom 的作者, 一看名字就是… <– About ) colorama codesnippet colorama allows you to print text in color on the terminal. (是也乎: 早已推荐过… from colorama import Fore, Back, Style print(Fore.RED + ‘some red text’) print(Back.GREEN + ‘and with a green background’) print(Style.DIM + ‘and in dim text’) print(Style.RESET_ALL) print(‘back to normal now’) ) ShutIt codesnippet ShutIt is an shell automation framework designed to be easy to use. (是也乎: 非-win 平台支持.. ) Timsort in Python algorithms Sorted(list) vs list.sort() Instagram 平滑升级到 Python 3 - 在 Instagram 身后的工程师 interview Four. Hundred. Million. Users. Per. Day. Not only has Instagram scaled to become the biggest Python user in the world, but the company recently moved over to Python 3 with zero user experience interruption. Instagram engineers Hui Ding and Lisa Guo talked with The New Stack to share the Python love and describe the Python 3 migration experience. (是也乎: 简单的说…没那么简单. ) Twitter 上的 NLP 广告数据 NLP I chose to perform Natural Language Processing (NLP) on Twitter data in order to assist in advertising campaigns. This project is geared more towards advertisers, marketing, and any company who wants to extend their customer relations platform to communicate with their followers. (是也乎: 简单的说, 只有商业成功的技术方案才有权力继续嗯哼… ) 用 uWSGI 在 Docker 部署迷你 Python docker So, you’ve built a great Python web application using Flask, Django, aiohttp, or Falcon. The next issue you could be facing is probably the setup regarding the deployment. We will explore how to use docker-compose to deploy a WSGI application using uWSGI and NGINX. (是也乎: 简单的说, 还是离开不能 NGNIX ) A good way to lose an afternoon reading about Python’s internals tweet TDD 课程 - By The RealPython Folks tutorial In this tutorial, you’ll learn how to quickly spin up a reproducible development environment with Docker to create a RESTful API powered by Python, Postgres, and the Flask web framework…. 极端 Lazy 来并行 Python 函式 codesnippet 用 Python 检验伪影片 codesnippet Program to detect if there are any loops in the video. 用 Python 来折腾音频信号 codesnippet Now it comes as a surprise to many people when I tell them that generating an audio waveform is extremely simple. (是也乎: 有一系列案例代码 -> 3.5-Sensor2Phone/generate_any_audio.py at master · makermovement/3.5-Sensor2Phone 项目名叫 3.5mm ~ 问题是, 已经出现倾向: 这一标准接口将消失 ) 如何用 Jupyter Notebook 从 Google Analytics 获取数据 codesnippet Today I found an online tool that can get the stats of the published articles from Google Analytics. That’s how I got interested in Google Analytics API. As I am studying Data Science at the moment, knowing how to do web analytics would open up a lot of new possibilities. (是也乎: 简单说就是配置过程太复杂了… ) Python 填字游戏拼图生成器 codesnippet Python Requests 构建 codesnippet Epithet github Introducing Epithet, a Python-based command line tool for managing labels across an organization. You give it a Github key, organization, and label name, and it will make sure that label exists across all the repos in your org. Give it a color, and it’ll make the color of that label consistent across all repos as well. Have you decided you’re done with a particular label? Epithet can delete it from all your repos for you. Are you using Github Enterprise? Epithet supports that too. (是也乎: 又一个 CLI 工具, 通过标签来管理组织的仓库… 哈. ) 搞笑 - Python 私有方法 humor (是也乎: ) RC Car + MacBook Pro = The Carputer! arduino If you’d like to build a miniature self-driving car, perhaps you would first turn to an Arduino for control or even a Raspberry Pi for more advanced processing. Otavio Good is no exception, but after attaching a few Arduinos to an RC car, he moved on to driving it with a speedometer and camera via a TensorFlow neural network running on a Macbook Pro?—?yes, it has an actual notebook computer embedded in the 1/10th-scale model car. (是也乎: ) Python 数据科学书 Jupyter 版 data science This is the Jupyter notebook version of the Python Data Science Handbook by Jake VanderPlas; the content is available on GitHub.* The text is released under the CC-BY-NC-ND license, and code is released under the MIT license. If you find this content useful, please consider supporting the work by buying the book! (是也乎: 伟大的 CC 保护下, 好书整体嗯哼成 .ipynb 了! ) Toolchest for Python shell scripters command line Curated list of tools/packages. (是也乎: 一系列 CLI 中好用的模块推荐: ~sh 嗯哼是最实用的一个 ) 对 LHL Facebook 页面回复的情感分析 machine learning Python 中的 Go-Flavored 错误处理 golang The point of this article is to present an Error class in the spirit of Go error handling and consider its use/application in Python from a personal perspective. 在 Python 中嵌入 Go 和 groupcache go Go(golang) is a very fast and efficient compiled programming language. Much like how you can build Python C-extensions to speed up your python applications, Python developers also have the option to build Go components that are embedded into their python. Python 中变量的玩耍 core-python The first one is a decorator “freezing” some global variables to their current value at the time a function is defined. 为毛 context-manager 是种更好的嗯哼? core-python 好物 ~ 包/模块/库/片段… ...