Understanding GPU Memory 1: Visualizing All Allocations over Time
The part 1 shows how to use the memory snapshot tool.
https://pytorch.org/blog/understanding-gpu-memory-1/
The part 1 shows how to use the memory snapshot tool.
https://pytorch.org/blog/understanding-gpu-memory-1/
A settings pattern for reusable Django apps
The article presents a new settings pattern for reusable Django apps, addressing the challenge of overriding app default settings with project settings. The author discusses the need for a clear and consistent pattern, and the article outlines the proposed solution, which involves inspecting the prefix of the settings to avoid returning random properties of the Django settings.
https://overtag.dk/v2/blog/a-settings-pattern-for-reusable-django-apps
The article presents a new settings pattern for reusable Django apps, addressing the challenge of overriding app default settings with project settings. The author discusses the need for a clear and consistent pattern, and the article outlines the proposed solution, which involves inspecting the prefix of the settings to avoid returning random properties of the Django settings.
https://overtag.dk/v2/blog/a-settings-pattern-for-reusable-django-apps
overtag.dk
A settings pattern for reusable Django apps
I'm an Open Source consultant and activist. My work aims at making Open Source an attractive choice, making web technology greener, and making information and knowledge accessible to those who need it the most.
A simple OpenID connect tutorial
Introduction
OpenID Connect is a simple identity layer on top of the OAuth 2.0 protocol. It allows ...
https://spapas.github.io/2023/11/29/openid-connect-tutorial/
Introduction
OpenID Connect is a simple identity layer on top of the OAuth 2.0 protocol. It allows ...
https://spapas.github.io/2023/11/29/openid-connect-tutorial/
spapas.github.io
A simple OpenID connect tutorial — /var/
Asyncio Task Cancellation Best Practices
In this tutorial, you will discover best practices for canceling asyncio tasks in Python.
https://superfastpython.com/asyncio-task-cancellation-best-practices/
In this tutorial, you will discover best practices for canceling asyncio tasks in Python.
https://superfastpython.com/asyncio-task-cancellation-best-practices/
Super Fast Python
Asyncio Task Cancellation Best Practices - Super Fast Python
Tasks in asyncio can be canceled manually and automatically. Therefore, we must develop asyncio programs with the expectation that our custom tasks may be canceled at any time. This requires a certain level of robustness. Thankfully there are common task…
tinyzero
Easily train AlphaZero-like agents on any environment you want!
https://github.com/s-casci/tinyzero
Easily train AlphaZero-like agents on any environment you want!
https://github.com/s-casci/tinyzero
GitHub
GitHub - s-casci/tinyzero: Easily train AlphaZero-like agents on any environment you want!
Easily train AlphaZero-like agents on any environment you want! - s-casci/tinyzero
Python Gotcha: List Copy Problems
Copying a Python list (or any mutable object) isn't as simple as setting one equal to another. Let's discuss a better way to do this.
https://andrewwegner.com/python-gotcha-list-copy.html
Copying a Python list (or any mutable object) isn't as simple as setting one equal to another. Let's discuss a better way to do this.
https://andrewwegner.com/python-gotcha-list-copy.html
Ponderings of an Andy
Python Gotcha: List Copy Problems
Copying a Python list (or any mutable object) isn't as simple as setting one equal to another. Let's discuss a better way to do this.
Sys.monitoring: Python Execution event monitoring
https://docs.python.org/3/library/sys.monitoring.html
https://docs.python.org/3/library/sys.monitoring.html
Python documentation
sys.monitoring — Execution event monitoring
This namespace provides access to the functions and constants necessary to activate and control event monitoring. As programs execute, events occur that might be of interest to tools that monitor e...
gpt-engineer-org / gpt-engineer
Specify what you want it to build, the AI asks for clarification, and then builds it.
https://github.com/gpt-engineer-org/gpt-engineer
Specify what you want it to build, the AI asks for clarification, and then builds it.
https://github.com/gpt-engineer-org/gpt-engineer
GitHub
GitHub - AntonOsika/gpt-engineer: CLI platform to experiment with codegen. Precursor to: https://lovable.dev
CLI platform to experiment with codegen. Precursor to: https://lovable.dev - AntonOsika/gpt-engineer
How to prevent python software from being reverse engineered or pirated?
https://www.reddit.com/r/Python/comments/18tdmiv/how_to_prevent_python_software_from_being_reverse/
https://www.reddit.com/r/Python/comments/18tdmiv/how_to_prevent_python_software_from_being_reverse/
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Microdot: Yet Another Python Web Framework
https://blog.miguelgrinberg.com/post/microdot-yet-another-python-web-framework
https://blog.miguelgrinberg.com/post/microdot-yet-another-python-web-framework
Miguelgrinberg
Microdot: Yet Another Python Web Framework
I just realized that I have never written on this blog about Microdot, my very own web framework for Python. I have released Microdot 2.0 a few days ago, so I guess this is a good time to make a…
Django: Detect the global privacy control signal
Global Privacy Control (GPC) is a specification for web browsers to signal website operators not to ...
https://adamj.eu/tech/2023/12/27/django-global-privacy-control/
Global Privacy Control (GPC) is a specification for web browsers to signal website operators not to ...
https://adamj.eu/tech/2023/12/27/django-global-privacy-control/
adamj.eu
Django: Detect the global privacy control signal - Adam Johnson
Global Privacy Control (GPC) is a specification for web browsers to signal website operators not to share or sell the user’s data. This signal is intended to exercise legal data privacy rights such as those provided by the California Consumer Privacy Act…
What's up Python? Epic CPython commit, Django 5 and 2FA for PyPI
https://www.bitecode.dev/p/whats-up-python-epic-cpython-commit
https://www.bitecode.dev/p/whats-up-python-epic-cpython-commit
www.bitecode.dev
What's up Python? Epic CPython commit, Django 5 and 2FA for pypi...
December 2023
Python Asyncio Database Drivers
Asyncio has found a home in Python web development and many asyncio web development projects ...
https://superfastpython.com/asyncio-database-drivers/
Asyncio has found a home in Python web development and many asyncio web development projects ...
https://superfastpython.com/asyncio-database-drivers/
Super Fast Python
Python Asyncio Database Drivers - Super Fast Python
Asyncio has found a home in Python web development and many asyncio web development projects require database access. This means there is a need for Python database drivers that support asyncio. This support may be naive via an async-first driver, or provided…
How I Built an Okta Documentation Chatbot in Python
The article describes the development of Oktanaut, a Python chatbot that simplifies access to information on Okta's Developer Documentation. The chatbot was created using OpenAI and Jupyter Notebook, and two versions were developed to offer specific approaches and general knowledge. The first version used LlamaIndex and was trained on Okta's Developer Documentation, generating accurate r...
https://developer.okta.com/blog/2023/12/20/okta-documentation-chatbot
The article describes the development of Oktanaut, a Python chatbot that simplifies access to information on Okta's Developer Documentation. The chatbot was created using OpenAI and Jupyter Notebook, and two versions were developed to offer specific approaches and general knowledge. The first version used LlamaIndex and was trained on Okta's Developer Documentation, generating accurate r...
https://developer.okta.com/blog/2023/12/20/okta-documentation-chatbot
Okta Developer
How I Built an Okta Documentation Chatbot in Python
How I built a Python chatbot to quickly access information from Okta's Developer Documentation.
Using a Markov chain to generate readable nonsense with 20 lines of Python
https://benhoyt.com/writings/markov-chain/
https://benhoyt.com/writings/markov-chain/
Benhoyt
Using a Markov chain to generate readable nonsense with 20 lines of Python
Describes a simple Markov chain algorithm to generate reasonable-sounding but utterly nonsensical text, and presents some example outputs as well as a Python implementation.
Show HN: How do you OCR on a Mac using the CLI or just Python for free
https://blog.greg.technology/2024/01/02/how-do-you-ocr-on-a-mac.html
https://blog.greg.technology/2024/01/02/how-do-you-ocr-on-a-mac.html
the greg technology blog
how do you ocr on a mac using the cli or just python for free
a kind reader reached out about all of my iphone alarms and asked how specifically did I run OCR on my mac. I’m not one to gatekeep, so here’s how you can get yourself a nice local ocr ‘service’ that works in the terminal/CLI/python and costs 0 dollars: