Issue 475

“硅谷"剧情变真… 原文: PyCoder’s Weekly - Issue #475 210602 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210602 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 从卫星图像检测森林砍伐 ANDRÉ FERREIRA How would you go about detecting deforestation — a contributor to climate change — from satellite images? In this article, you’ll learn how one team built a machine learning (ML) solution to do just that, using FastAI for the modeling and Streamlit to create a dashboard. The article discusses methodology and results, and is a great read about building an ML solution. The project code is a available on GitHub. (是也乎: 非常 Kaggle 式问题 ) 用 conda 管理 Python 虚拟环境指南 WHITEBOX Learn everything you need to know to get up and running with conda for Python in this in-depth guide. You’ll learn how conda compares to pip, how to install conda, how to install Python and other languages using conda, how to manage conda environments, and even how to package conda environments for distribution. (是也乎: 如果网络是通畅的, conda 的模块管理比 PiPy 是好不少, 不过,呵呵… ) 用 plt.scatter() 可视化数据 REAL PYTHON In this tutorial, you’ll learn how to create scatter plots in Python, which are a key part of many data visualization applications. You’ll get an introduction to plt.scatter(), a versatile function in the Matplotlib module for creating scatter plots. (是也乎: 可视化模块早已足够丰富了, 现在主要问题是: 大家都能绘制出相同范式图表, 但是, PPT 专家要的是越来越3D/抓睛 的图表效果, 就看谁的可定制性深度了… 如果能通过142 个参数, 精细调节图表的所有细节是最好的, 当然更加好的是每年根据财报要求的格式, 将默认风格调整到 世界500强 日常会议中就使用的样式… ) EuroPython 2021 会议列表已发布 EUROPYTHON.EU pipx 已是 PyPA 成员项目 TWITTER.COM/PRADYUNSG Python 3.10.0b2 可用 CPYTHON DEV BLOG 探讨/吐糟 Discussions ...

2021-06-02 · 4 min · 1801 words · ZoomQuiet

Issue 474

单女生/硬件公司的工具和技术 原文: PyCoder’s Weekly - Issue #474 210526 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210526 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 用来经营单身硬件公司的工具和技术 STARGIRL FLOWERS Winterbloom makes open-source, boutique synthesizers. There’s a lot that goes into running a hardware company. Someone has to design the hardware, code the firmware, write the documentation, not to mention administrate the company. Winterbloom does all of this with just one engineer — Stargirl Flowers. Learn what tools and tech Stargirl uses to run her company, and how Python fits into the big picture in more ways than one. (是也乎: One-Woman 一直是亮点… ) 咩是 WSGI? 为毛在 Django 项目需要 Gunicorn 和 Nginx? DENIS OREHOVSKY • Shared by Denis Django is one of the most popular Python web frameworks. But you can’t run a web application with Django alone. You need a host of other tools in place to deploy a Django project, from a server to run your application to a server to handle incoming requests. In this article, you’ll learn about Gunicorn and Nginx and how they work together with Django to deliver a web application to your users. (是也乎: 老梗, 可其实可以用其它协议跑的 ) 用 Django/Vue 和 GraphQL 建立博客 REAL PYTHON In this step-by-step project, you’ll build a blog from the ground up. You’ll turn your Django blog data models into a GraphQL API and consume it in a Vue application for users to read. You’ll end up with an admin site and a user-facing site you can continue to refine for your own use. (是也乎: 还是 Pelican 更加轻便吧, 不占用在线计算资源的才是好 blog 系统 ) 在6月12日前帮 PSF 筹集 80,000 美元 TWITTER.COM/THEPSF PyPy v7.3.5: Python 2.7 and 3.7 错误修正版本 PYPY.ORG (是也乎: 随着老爹的 flag 竖立起来, 以往各种以性能为目标的社区, 立即被打了鳮血… ) 探讨/吐糟 Discussions ...

2021-05-26 · 5 min · 2038 words · ZoomQuiet

Issue 473

SpaceX 如何控制星舰的? 原文: PyCoder’s Weekly - Issue #473 210519 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210519 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. SpaceX 如何降落星舰/排序 THOMAS GODDEN While waiting for SN15 to launch, Thomas Goddard set out to pull together a 2-dimensional simulation of the Starship landing. Tying together knowledge of trajectory optimization, Thomas modeled the landing in Python with the CasADI library and used Matplotlib to generate an animation which, when played side-by-side with the footage of the landing, results in remarkable similarity to the actual landing dynamics. (是也乎: 是的, JS/Py 反正以往 NASA 不用的, SpaceX 都用上了, 关键是 多快好省, 至于现代语言/系统在太空的意外错误, 通过三主机协议选举也就解决了… ) Flask 2.0中的异步 PATRICK KENNEDY • Shared by Patrick Kennedy This article looks at Flask 2.0’s new async functionality and how to leverage it in your Flask projects. You’ll learn how Flask processes requests asynchronously using a traditional WSGI server, instead of the ASGI server used by many other async web frameworks. You’ll also learn how to simulate Flask 2.0 async in Flask 1.X applications. 嵌入式Python/ 在BBC micro:bit上构建游戏 REAL PYTHON Learn about embedded development, an exciting area of programming that allows you to bring your code into the physical world. You’ll learn about your options for writing embedded Python code and build a basic game using the BBC micro:bit. (是也乎: 是的, 就是那个 BBC ) EuroPython 2021 议题投票已开放 EUROPYTHON.EU Planning on attending EuroPython this year? If you’re registered and have paid for a ticket, or if you’ve attended any of the past conferences, you can vote on talk submissions until May 23. (是也乎: 其实, 很多都是从 US 复场过来的 ) 所有 Pallets 项目主要版本发布 PALLETSPROJECTS.COM Flask 2.0, Werkzeug 2.0, Jinja 3.0, Click 8.0, ItsDangerous 2.0, and MarkupSafe 2.0 (是也乎: 全明星队… ) PyCon US 2024 以及 2025 将在宾夕法尼亚州的匹兹堡举行 PYCON.BLOGSPOT.COM 探讨/吐糟 Discussions ...

2021-05-19 · 5 min · 2132 words · ZoomQuiet

Issue 472

Github 中那些最佳实践+良好架构的项目 原文: PyCoder’s Weekly - Issue #472 210512 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210512 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 寻求更快的 Python TIM ANDERSON There seems to be a lot going on in the Python JIT compiler space. Facebook recently open-sourced Instagram’s Cinder runtime, Pyston 2 returned as an open-source project, and the Pyjion project from Microsoft continues to grow. But Python creator Guido van Rossum has suggested that Python developers in need of more performance should consider writing parts of their code as C extensions, or use the PyPy runtime. This article explores Pythons turbulent history with performance optimization. (是也乎: 对运行时性能的追求, 在 Python 宇宙引发了一系列有益的动荡… ) 性能如何成为安全 Python 代码的克星 DIMA KOTIK While JIT compilers compete for Python performance improvements and some teams rush into asyncio adoption, one has to wonder what the outcome of additional complexity will be. This opinion piece argues that the cost of hurried and potentially unnecessary performance optimization is unstable and insecure code. It’s a good reminder that decisions about project dependencies should be thoroughly researched and made deliberately. (是也乎: 高级语言的宿命 ) 堆栈和队列: 选择理想的数据结构 REAL PYTHON course Learn about three of Python’s data structures: stacks, queue and priority queues. You’ll look at multiple types and classes for all of these and learn which implementations are best for your specific use cases. 德州仪器/TI 将发布使用 Python 的新型 TI-84 计算器 TI.COM EuroPython 2021 征集提案的时间延长至5月16日 EUROPYTHON.EU Pylance 现在是 VS Code 的默认 Python 语言服务器 MICROSOFT.COM (是也乎: 反正和官方的不同, 怪不得最好使用另外的运行时… ) 探讨/吐糟 Discussions ...

2021-05-12 · 4 min · 1985 words · ZoomQuiet