Django: Pinpoint upstream changes with Git
In this post, we’ll cover Django’s branching structure, determining and searching through those commits, a worked example, and advanced behavioural searching with git bisect.
https://adamj.eu/tech/2024/04/24/django-pinpoint-upstream-git/
In this post, we’ll cover Django’s branching structure, determining and searching through those commits, a worked example, and advanced behavioural searching with git bisect.
https://adamj.eu/tech/2024/04/24/django-pinpoint-upstream-git/
adamj.eu
Django: Pinpoint upstream changes with Git - Adam Johnson
Django’s release notes are extensive and describe nearly all changes. Still, when upgrading between Django versions, you may encounter behaviour changes that are hard to relate to any particular release note.
Everything Google's Python team were responsible for
https://simonwillison.net/2024/Apr/27/everything-googles-python-team-were-responsible-for/
https://simonwillison.net/2024/Apr/27/everything-googles-python-team-were-responsible-for/
Simon Willison’s Weblog
Everything Google’s Python team were responsible for
In a questionable strategic move, Google laid off the majority of their internal Python team [a few days ago](https://social.coop/@Yhg1s/112332127058328855). Someone on Hacker News asked what the team had been responsible …
Build a Connect Four game with HTMX and Django in 8 minutes
By the end, you'll have built a multiplayer game using HTMX, using neat server-side logic and storing all results in your database. HTMX is a great way to use javascript without writing javascript.
https://www.photondesigner.com/articles/connect4-htmx
By the end, you'll have built a multiplayer game using HTMX, using neat server-side logic and storing all results in your database. HTMX is a great way to use javascript without writing javascript.
https://www.photondesigner.com/articles/connect4-htmx
Photondesigner
Build a Connect Four game with HTMX and Django in 8 minutes 🟡🔴
Use HTMX with Django for fast and neat web apps. Keep state changes server-side.
anthropic-cookbook
A collection of notebooks/recipes showcasing some fun and effective ways of using Claude.
https://github.com/anthropics/anthropic-cookbook
A collection of notebooks/recipes showcasing some fun and effective ways of using Claude.
https://github.com/anthropics/anthropic-cookbook
GitHub
GitHub - anthropics/anthropic-cookbook: A collection of notebooks/recipes showcasing some fun and effective ways of using Claude.
A collection of notebooks/recipes showcasing some fun and effective ways of using Claude. - anthropics/anthropic-cookbook
Python Big O: Time complexities of different data structures in Python
https://www.pythonmorsels.com/time-complexities/
https://www.pythonmorsels.com/time-complexities/
Pythonmorsels
Python Big O: the time complexities of different data structures in Python
The time complexity of common operations on Python's many data structures.
Pydantic 2.7 released: the fastest version yet
It finally integrates jiter, a high speed JSON parser
https://github.com/pydantic/pydantic/releases/tag/v2.7.0
It finally integrates jiter, a high speed JSON parser
https://github.com/pydantic/pydantic/releases/tag/v2.7.0
GitHub
Release v2.7.0 (2024-04-11) · pydantic/pydantic
The code released in v2.7.0 is practically identical to that of v2.7.0b1.
What's Changed
Packaging
Reorganize pyproject.toml sections by @Viicos in #8899
Bump pydantic-core to v2.18.1 by @sydn...
What's Changed
Packaging
Reorganize pyproject.toml sections by @Viicos in #8899
Bump pydantic-core to v2.18.1 by @sydn...
I accidentally built a meme search engine
Or: how to learn about clip/siglip and vector encoding images.
https://harper.blog/2024/04/12/i-accidentally-built-a-meme-search-engine
Or: how to learn about clip/siglip and vector encoding images.
https://harper.blog/2024/04/12/i-accidentally-built-a-meme-search-engine
Harper Reed's Blog
I accidentally built a meme search engine
I built a magical meme search engine using siglip/CLIP and vector encoding images. It was a fun way to learn about this powerful technology. I'm sharing the code so you can build your own and discover forgotten gems in your photo library. Let's unleash the…
Learn to use Websockets with Django by building your own ChatGPT
Everything you need to know about websockets to use them in your applications, with Django, channels, and HTMX.
https://www.saaspegasus.com/guides/django-websockets-chatgpt-channels-htmx/
Everything you need to know about websockets to use them in your applications, with Django, channels, and HTMX.
https://www.saaspegasus.com/guides/django-websockets-chatgpt-channels-htmx/
SaaS Pegasus
Learn to use Websockets with Django by building your own ChatGPT
Everything you need to know about websockets to use them in your applications, with Django, channels, and HTMX.
Django from first principles
Many people don't realize you can start a Django project with a single file. This series walks through the process of building a simple but non-trivial project by starting with a single file. The project only expands to additional files when it makes sense to move code out of the main file. By the end of the series, we'll have a project with a structure similar to what's generated by sta...
https://www.mostlypython.com/django-from-first-principles-2/
Many people don't realize you can start a Django project with a single file. This series walks through the process of building a simple but non-trivial project by starting with a single file. The project only expands to additional files when it makes sense to move code out of the main file. By the end of the series, we'll have a project with a structure similar to what's generated by sta...
https://www.mostlypython.com/django-from-first-principles-2/
Mostly Python
Django from first principles
Most Django tutorials and resources start by running two commands: django-admin startproject, followed by manage.py startapp. This is a reasonable way for experienced Django developers to start new projects, because it sets up an overall structure that makes…
Asyncio Coroutine Object Methods in Python
We can define coroutine methods on custom Python objects. This allows methods on custom Python objects to use async/await syntax, such as awaiting other coroutines and tasks and allows the custom coroutine methods themselves to be awaited within our asyncio programs. In this tutorial, you will discover how to define object methods as coroutines.
https://superfastpython.com/asyncio-coroutine-methods/
We can define coroutine methods on custom Python objects. This allows methods on custom Python objects to use async/await syntax, such as awaiting other coroutines and tasks and allows the custom coroutine methods themselves to be awaited within our asyncio programs. In this tutorial, you will discover how to define object methods as coroutines.
https://superfastpython.com/asyncio-coroutine-methods/
Super Fast Python
Asyncio Coroutine Object Methods in Python - Super Fast Python
We can define coroutine methods on custom Python objects. This allows methods on custom Python objects to use async/await syntax, such as awaiting other coroutines and tasks and allows the custom coroutine methods themselves to be awaited within our asyncio…
Local LLM-as-judge evaluation with lm-buddy, Prometheus and llamafile
This post examines how different software components came together to allow LLM-as-judge evaluation without the need for expensive GPUs. All the components were built with and chosen for their user control, open source nature, and interoperability.
https://blog.mozilla.ai/local-llm-as-judge-evaluation-with-lm-buddy-prometheus-and-llamafile
This post examines how different software components came together to allow LLM-as-judge evaluation without the need for expensive GPUs. All the components were built with and chosen for their user control, open source nature, and interoperability.
https://blog.mozilla.ai/local-llm-as-judge-evaluation-with-lm-buddy-prometheus-and-llamafile
Mozilla.ai Blog
Local LLM-as-judge evaluation with lm-buddy, Prometheus and llamafile
In the AI news cycle, with new models unveiled every day, cost and evaluation don’t come up much but are crucial to developers and businesses