Planet DebugUself

October 28, 2020

蠎周刊

Issue 444

代码隔离在Python

原文: PyCoder's Weekly - Issue #444

pycoder

  • 201028 Zoom.Quiet(大妈) 用时 42 分钟 完成快译
  • 201028 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄.

In this tutorial, you’ll learn about the Python modulo operator (%). You’ll look at the mathematical concepts behind the modulo operation and how the modulo operator is used with Python’s numeric types. You’ll also see ways to use the modulo operator in your own code.

(是也乎:

Operator

取余, 其实有很多使用技巧, 可以用在神奇的场景中完成快速计算.

)

Core contributer Mark Shannon has a plan to increase CPython’s performance fivefold in four stages of updates.

(是也乎:

目标是提升五倍.

嗯哼, 这对 Python 是否算是一种内卷行为?

)

How can you hide, or isolate, Python code in an application from potential bad actors? Learn several methods for doing so and why you should never run thirs party code in the same Python interpreter as your applications.

Do you have gaps in your Python learning path? If you’re like me, you may have followed a completely random route to learn Python. This week on the show, David Amos is here to talk about the release of the Real Python book, “Python Basics: A Practical Introduction to Python 3”. The book is designed not only to get beginners up to speed but also to help fill in the gaps many intermediate learners may still have.

(是也乎:

Podcast

老朋友, 老程序猿.

)

Congratulations to all the new fellows!

探讨/吐糟

Discussions

Mark Shannon has a plan to speed up CPython roughly 5 times over four stages. The community opines.

(是也乎:

等等, 私人项目? 不是 PSF 官方的?

) 视

(是也乎:

RIAA 是个什么组织来的?

)

文章/教程/嗯哼

Articles, Tutorials and Talks

If you’re new to Python, you might find yourself confused by some of the situations described in this article. Learn about five mistakes you could make, why they happen, and how to fix them.

(是也乎:

KO

各种常见困惑行为以及修正.

)

“There are many ways we can create systems with layered architecture; one of the more popular techniques is to leverage Structural Design Patterns to create explicit relationships between classes. This post explores how the Facade Pattern can be used to wrap third-party integrations to improve software design.”

Binary search is a classic algorithm in computer science. In this step-by-step course, you’ll learn how to implement this algorithm in Python. You’ll learn how to leverage existing libraries as well as craft your own binary search Python implementation.

(是也乎:

Binary

等等, 好象硅谷剧情中核心技术就是对压缩音频的搜索?

)

Sequence alignment is a method of pairing elements of two sequences under some constraints. It can be used to analyze sequences of biological data, such as nucleic acid sequences. Learn how solve the sequence alignment problem in Python using a brute-force method and a more efficient method that uses dynamic programming.

In this guide, you’ll learn how to get the most out of your Real Python membership using the community Slack. You’ll learn some lesser-known features of Slack and see how to communicate your technical problems more effectively.

(是也乎:

Slack

嗯哼? 最后还是选择了 Slack , 目测是拿到了联盟价格.

RPY

当然, 收费的.

)

Higher kinded types (HKT) are a notion in type theory that can be really helpful in functional programming and typing tensors and matrices. HKTs aren’t supported yet in Python, but you can emulate them.

Learn how to automate Photoshop using Python and the Photoshop COM programming interface.

(是也乎:

毕竟对美的追求是固定的, 又有 Py 接口, 一切就有了可能

)

好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

果断复活的好工具, youtube-dl 昨天被举报删库后, 这个同类工具就立即火了.

)

(是也乎:

Visualizer

叕一个算法可视化玩具, 将算法可视化, 对于学习和应用有什么帮助呢?

)

(是也乎:

Faster

嘴炮项目?

)

📆🐍 活动/大会

Events, MeetUp 真的是全球线下活动组织中心

(是也乎:

SciPy 一个模块都能有年会了?

)

DAMA

❤️ Happy Pythonic ;-(大妈私人无责任播报)

14py

PS:


好文笔,感叹号年度配额: 2/3

投稿/反馈邮箱:

(邮件列表地址, 当成正常邮件发送邮件就好, 不用注册, 不用翻越...)


ZoomQuiet/大妈

就是四处 是也乎,( ̄▽ ̄) 的那个大妈:

私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
历史吐糟: Chaos42 (订阅号 PythoniCamp)

as 创始组织者:
    PyChina (订阅号: PyChinaOrg)
    本地社区: 
        GDG珠海 (订阅号: GDG-ZhuHai)
        TFUG珠海 (订阅号: ZH_TFUG)

NN 4180

RPP

by Pythoneerm at October 28, 2020 02:36 AM

October 25, 2020

蠎周刊

pythonista-weekly : Pyw 470

欢迎阅读《pythonista周刊》第470期。Let us start!

原文: https://mailchi.mp/pythonweekly/python-weekly-issue-470
翻译:Dustyposa

来自赞助商(PS:原文的赞助商): 使用 Datadog 监控你的python指标,日志,集群分析。使用Datadog的应用分析,可以深入任何纬度并且能找到你所需要的信息,来进行动态诊断和快速故障排除。今天免费试用.

新闻

Python Developers Survey 2020 官方 Python 开发者调查的第四次迭代已经上线。参与其中,为社区知识贡献力量吧! 另外在调查结束后,随机抽取100名优胜者(从完成全部调查的优胜者中),每人将获得一份令人惊喜的Python惊喜礼包。

Plone Conference 2020 Call for Proposals 主题可以从 PloneVolto、GuillotinaPythonPyramid,或者从花哨的 JavaScript 到酷炫的案例研究等等。讲座的时间段有很多种,从5分钟的闪电式讲座到30分钟和45分钟,你也可以针对不同的听众进行演讲。

文章、教程与话题

用于音乐源分离的开源工具与数据 在本教程中,我们将引导你了解用于运行、评估、研究和部署音源分离方法的现代开源工具和数据集。我们将特别关注音乐源分离,尽管我们会注意到某些方法适用于更广泛的源类型。

Python幕后花絮#3:品味CPython源码。 在本系列的第一和第二部分中,我们探讨了执行和编译 Python 程序背后的想法。在接下来的部分中,我们将继续关注想法,但这次我们将破例看看将这些想法变为现实的实际代码。

使用Python 3.8将UTZOO-Wiseman Usenet磁带转换为PostgreSQL后台的网站 有关作者如何将大约210万条磁带上的磁带转换为完全可搜索的 PostgreSQL 数据库以及后来又转换到 usenetarchives.com 网站的分步文章。

6个步骤从9 FPS到650 FPS的目标检测 本文是对使特定的深度学习模型在功能强大的 GPU 服务器上快速运行的实践深入研究,但是一般原理适用于所有 GPU 编程。

如何使用Pydroid 3在Android上安装和编码Python 了解如何在 Android 上安装 Pydroid 3 IDE,以及用于练习 Python 编码的有用工具和库。

在Pandas中加载大型数据集pandas 中有效地使用 ChunkingSQL 来读取大型数据集。

Kubernetes的Python入门指南 学习基础知识,并部署你的第一个集群。

如何在Python中创建一个天气预警系统 根据预测的天气数据发送电子邮件通知。

Django和Vue.js的结合 了解你需要知道的一切,一起使用它们。

处理历史天气模式数据 本文是一个案例,展示了如何使用 Python 下载和处理历史温度数据。

我是如何尝试减少Pylint内存使用量的

Ordered dict surprises

Books

PySDR 使用 Python 的软件定义无线电(SDR)和数字信号处理(DSP)的在线教材。

有趣的项目、工具和库

Klio Klio 是一个生态系统,它允许你轻松地、大规模地处理音频文件或任何二进制文件。

pyttsx3Python3 设计的离线文本到语音(TTS)转换器。

grid_royale 探索社会动态的生活模拟。

Escalation Escalation 是一个运行轻量级可视化仪表盘的 Web 应用程序,用于数据分析。你可以设置情节和表格,随着你的数据或分析更新,并有交互性选项,允许数据浏览。

sysmon linux 的图形系统监视器,包括CPU、GPU、内存、HDD/SDD和网络连接的信息。

tldrstory 以 AI 为核心理解标题和故事文本。

bar_chart_racematplotlibPython 中创建动画条形图比赛。

Lightly 一个用于自我监督学习的 python 库。

termtype 一个基于 CursesPython 应用程序,通过输入随机的维基百科文章来练习触摸输入。

新活动

Virtual: Becoming a Data Scientist with Python Katrina Riehl 将讨论作为一名成功的数据科学家所需的技能和要求。她还将讨论如何使用 PyData 生态系统中的工具进行数据整理、建模和数据通信。

Virtual: PyLadies Dublin Meetup October 2020 将会有以下话题:

  • 利用机器学习检测欺诈行为简介
  • My On Air Sign with CircuitPython and Pi Zero
  • 从Jupyter到生产代码,一个简单的转换途径。

Virtual: London Python Meetup October 2020 将会有以下话题:

  • Sprinting Pandas
  • Dask for Data Science

Virtual: Introduction to TF-Hub & Object Detection using TF-Hub 在这次研讨会上,我们将涉及以下内容:

  • Introduction to TF-Hub
  • Solving an object detection use case using TF-Hub

PyData Chicago Meetup October 2020 会有一个讲座,介绍 Elyra:以人工智能为中心的 JupyterLab 扩展集。

Posa:

❤️ Happy Pythonic ;-(Posa私人无责任播报)

----- 分割线 -----

如果你发现哪里翻译有误的话,请务与我联系!感谢!

by Pythoneerm at October 25, 2020 03:14 AM

October 21, 2020

蠎周刊

Issue 443

Python 在未来影业

原文: PyCoder's Weekly - Issue #443

pycoder

  • 201021 Zoom.Quiet(大妈) 用时 42 分钟 完成快译
  • 201021 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄.

A look into how Python is used to bring your favorite movies to the big screen.

(是也乎:

Film

其实, Python 一直在电影工业中扮演着重要角色:

pipline

越来越深的动画电影制作流程, 一直用 Python 良好胶合起来的...

)

In this tutorial, you’ll learn how to store and retrieve data using Python, SQLite, and SQLAlchemy as well as with flat files. Using SQLite with Python brings with it the additional benefit of accessing data with SQL. By adding SQLAlchemy, you can work with data in terms of objects and methods.

(是也乎:

SQLAlchemy

PSS 组合的确是最便捷的结构化数据管理方案;

SQLite

但是, 没有良好训练, 想设计出一个能长期使用的数据库结构来, 不简单.

还是 ZODB 直觉的多.

)

Raise your hand if you’ve ever had to deal with a poorly formatted Excel spreadsheet. Wow, that’s a lot of you! Did you know you can use pandas and openpyxl to read even the craziest Excel sheets?

In this tutorial, you’ll learn about the built-in Python Boolean data type, which is used to represent the truth value of an expression. You’ll see how to use Booleans to compare values, check for identity and membership, and control the flow of your programs with conditionals.

(是也乎:

Booleans

)

Fractals might be some of the most interesting mathematical structures to study and to visualize. Learn what fractals are and how to create beutiful fractal animations with Python.

Now with a built-in speaker and microphone!

(是也乎:

micro

叕一个 MicroPython 同类

)

(是也乎:

spaCy

叕一个 AI 生产力工具.

)

(是也乎:

PyGame

等等, 这货不是 PyGame 哪...

)

探讨/吐糟

Discussions

A little bit of algebra goes a long way. But also, when was the last time you got to use SciPy’s Diophantine equation solver?

(是也乎:

随机数哪...永远的乐趣.

)

(是也乎:

Weird

无限拼贴图形生成器

)

文章/教程/嗯哼

Articles, Tutorials and Talks

The Python return statement is such a fundamental part of writing functions. Is it possible you missed some best practices when writing your own return statements? This week on the show, David Amos returns with another batch of PyCoder’s Weekly articles and projects. We also talk functional programming again with an article on the Python map function and processing iterables without a loop.

(是也乎:

podcast

)

Are you interested in the Internet of Things, home automation, and connected devices? If so, then you’re in luck! In this course, you’ll learn about MicroPython and the world of electronics hardware. You’ll set up your board, write your code, and deploy a MicroPython project to your own device.

(是也乎:

嗯哼? 真蟒 注意到了 MicroPython, 证明这东西火了?

MicroPython

)

Learn how medium-size text fields impact query performance in PostgreSQL and how to gain performance benefits using the TOAST method. While the article isn’t strictly about Python, you’ll likely find it useful if you often store medium-to-large size text in PostgreSQL.

Plugin architecture can be a nice way to make it easy to add functionality to your project in the future, or allow third-party developers to extend your applications. Learn how plugin architecture works on how to use Pluggy to manage plugins.

(是也乎:

等等, flask 选择的扩展框架是谁来的?

)

Getting Started With OpenTelemetry and Distributed Tracing in Python Learn why distributed tracing is the foundation for observability, and how to instrument your Python applications with OpenTelemetry in under 10 minutes. LIGHTSTEPsponsor

When it comes to coding, taking the time to internalize and truly understand the concepts you’re learning pays dividends over memorizing syntax and solutions to interview problems.

Looking for a spooky way to track your build status? GitHub’s Martin Woodward has put together a 3D printed pumpkin that lights up to show his build status.

(是也乎:

可以用在团队中, 办公室顶部贴个大大的五角星, 谁的 CI 过程通过了, 亮绿灯, 谁失败了闪动红灯, 并指向工位.

如果 QA 愿意可以偷偷在椅子上加装电击装置.

)

What’s the difference between type() and isinstance() methods, and which one is better for checking the type of an object?

好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

MUD 的叕叕叕叕一次复活.

)

(是也乎:

终于看不惯 Jupter 想念 Excel 了嘛?

果然是 PyQt5 ...

)

(是也乎:

pyinstrument

等等,什么项目需要在上万调用桟中追踪问题?

)

(是也乎:

等等, 这就等于直接用 GraphQL 替代SQL 了?

)

(是也乎:

南瓜灯...

)

📆🐍 活动/大会

Events, MeetUp 真的是全球线下活动组织中心

DAMA

❤️ Happy Pythonic ;-(大妈私人无责任播报)

NIL

PS:


好文笔,感叹号年度配额: 2/3

投稿/反馈邮箱:

(邮件列表地址, 当成正常邮件发送邮件就好, 不用注册, 不用翻越...)


ZoomQuiet/大妈

就是四处 是也乎,( ̄▽ ̄) 的那个大妈:

私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
历史吐糟: Chaos42 (订阅号 PythoniCamp)

as 创始组织者:
    PyChina (订阅号: PyChinaOrg)
    本地社区: 
        GDG珠海 (订阅号: GDG-ZhuHai)
        TFUG珠海 (订阅号: ZH_TFUG)

NN 4173

RPP

by Pythoneerm at October 21, 2020 03:09 AM