A Knownbits Abstract Domain for the Toy Optimizer, Correctly
The article discusses the implementation of a "Knownbits" abstract domain for the Toy optimizer, which tracks individual bits of a variable as "known zero," "known one," or "unknown" to optimize integer operations. It details the construction of the domain, transfer functions, and correctness proofs using property-based testing and automated proofs, with plans to apply a more complex ver...
https://pypy.org/posts/2024/08/toy-knownbits.html
The article discusses the implementation of a "Knownbits" abstract domain for the Toy optimizer, which tracks individual bits of a variable as "known zero," "known one," or "unknown" to optimize integer operations. It details the construction of the domain, transfer functions, and correctness proofs using property-based testing and automated proofs, with plans to apply a more complex ver...
https://pypy.org/posts/2024/08/toy-knownbits.html
PyPy
A Knownbits Abstract Domain for the Toy Optimizer, Correctly
After Max' introduction to abstract interpretation for the toy optimizer in the
last post, I want to present a more complicated abstract domain in this post.
This abstract domain reasons about the ind
last post, I want to present a more complicated abstract domain in this post.
This abstract domain reasons about the ind
Django 5.1 released
Django 5.1 introduces LoginRequiredMiddleware for easier authentication enforcement, accessibility enhancements like improved screen reader support and better HTML semantics, and a new querystring template tag for simpler URL handling in templates.
https://www.djangoproject.com/weblog/2024/aug/07/django-51-released/
Django 5.1 introduces LoginRequiredMiddleware for easier authentication enforcement, accessibility enhancements like improved screen reader support and better HTML semantics, and a new querystring template tag for simpler URL handling in templates.
https://www.djangoproject.com/weblog/2024/aug/07/django-51-released/
Django Project
Django 5.1 released
Posted by Natalia Bidart on Aug. 7, 2024
RAG Fundamentals and Advanced Techniques
This course will guide you through the basics of Retrieval-Augmented Generation (RAG), starting with its fundamental concepts and components. You'll learn how to build a RAG system for chatting with documents, explore advanced techniques, and understand the pitfalls of naive RAG.
https://www.youtube.com/watch?v=ea2W8IogX80
This course will guide you through the basics of Retrieval-Augmented Generation (RAG), starting with its fundamental concepts and components. You'll learn how to build a RAG system for chatting with documents, explore advanced techniques, and understand the pitfalls of naive RAG.
https://www.youtube.com/watch?v=ea2W8IogX80
YouTube
RAG Fundamentals and Advanced Techniques – Full Course
This course will guide you through the basics of Retrieval-Augmented Generation (RAG), starting with its fundamental concepts and components. You'll learn how to build a RAG system for chatting with documents, explore advanced techniques, and understand the…
dir-assistant
Chat with your current directory's files using a local or API LLM.
https://github.com/curvedinf/dir-assistant/
Chat with your current directory's files using a local or API LLM.
https://github.com/curvedinf/dir-assistant/
GitHub
GitHub - curvedinf/dir-assistant: Chat with your current directory's files using a local or API LLM.
Chat with your current directory's files using a local or API LLM. - curvedinf/dir-assistant
OpenAdapt
AI-First Process Automation with Large Multimodal Models (LMMs).
https://github.com/OpenAdaptAI/OpenAdapt
AI-First Process Automation with Large Multimodal Models (LMMs).
https://github.com/OpenAdaptAI/OpenAdapt
GitHub
GitHub - OpenAdaptAI/OpenAdapt: Open Source Generative Process Automation (i.e. Generative RPA). AI-First Process Automation with…
Open Source Generative Process Automation (i.e. Generative RPA). AI-First Process Automation with Large ([Language (LLMs) / Action (LAMs) / Multimodal (LMMs)] / Visual Language (VLMs)) Models - Ope...
alexta69 / metube
Self-hosted YouTube downloader (web UI for youtube-dl / yt-dlp)
https://github.com/alexta69/metube
Self-hosted YouTube downloader (web UI for youtube-dl / yt-dlp)
https://github.com/alexta69/metube
GitHub
GitHub - alexta69/metube: Self-hosted YouTube downloader (web UI for youtube-dl / yt-dlp)
Self-hosted YouTube downloader (web UI for youtube-dl / yt-dlp) - alexta69/metube
Log context propagation in Python ASGI apps
The article explains how to implement log context propagation in Python ASGI applications using middleware to automatically tag log messages with contextual information like user ID and platform. This approach simplifies logging by eliminating the need for manual context passing across different layers of an application, ensuring all logs within a request-response cycle are consistently ...
https://rednafi.com/python/log_context_propagation/
The article explains how to implement log context propagation in Python ASGI applications using middleware to automatically tag log messages with contextual information like user ID and platform. This approach simplifies logging by eliminating the need for manual context passing across different layers of an application, ensuring all logs within a request-response cycle are consistently ...
https://rednafi.com/python/log_context_propagation/
Redowan's Reflections
Log context propagation in Python ASGI apps
Let’s say you have a web app that emits log messages from different layers. Your log shipper
collects and sends these messages to a destination like Datadog where you can query them.
One common requirement is to tag the log messages with some common attributes…
collects and sends these messages to a destination like Datadog where you can query them.
One common requirement is to tag the log messages with some common attributes…
Crawling Pages with Infinite Scroll using Scrapy and Playwright
This post provides a detailed guide on how to scrape infinite scroll websites using Scrapy and Playwright in Python. It covers the setup process, explains how to implement a custom downloader middleware to handle JavaScript rendering, and demonstrates how to extract data from dynamically loaded content, offering a practical solution for web scraping challenges posed by modern web applica...
https://www.xiegerts.com/post/infinite-scroll-scrapy-playwright/
This post provides a detailed guide on how to scrape infinite scroll websites using Scrapy and Playwright in Python. It covers the setup process, explains how to implement a custom downloader middleware to handle JavaScript rendering, and demonstrates how to extract data from dynamically loaded content, offering a practical solution for web scraping challenges posed by modern web applica...
https://www.xiegerts.com/post/infinite-scroll-scrapy-playwright/
Stephen Siegert
Crawling Pages with Infinite Scroll using Scrapy and Playwright
Setting up a Scrapy spider to crawl pages with infinite scroll using Playwright and Chromium.
Optimizing PyTorch Docker images: how to cut size by 60%
https://mveg.es/posts/optimizing-pytorch-docker-images-cut-size-by-60percent/
https://mveg.es/posts/optimizing-pytorch-docker-images-cut-size-by-60percent/
Marton Veges
Optimizing PyTorch Docker images: how to cut size by 60%
Docker images containing CUDA and PyTorch can be quite large. I show some tips to significantly decrease image sizes, up to 60%.
Django: create sub-commands within a management command
https://adamj.eu/tech/2024/08/14/django-management-command-sub-commands/
https://adamj.eu/tech/2024/08/14/django-management-command-sub-commands/
adamj.eu
Django: create sub-commands within a management command - Adam Johnson
argparse, the standard library module that Django uses for parsing command line options, supports sub-commands. These are pretty neat for providing an expansive API without hundreds of individual commands. Here’s an example of using sub-commands in a Django…
Unstract
No-code LLM Platform to launch APIs and ETL Pipelines to structure unstructured documents.
https://github.com/Zipstack/unstract
No-code LLM Platform to launch APIs and ETL Pipelines to structure unstructured documents.
https://github.com/Zipstack/unstract
GitHub
GitHub - Zipstack/unstract: No-code LLM Platform to launch APIs and ETL Pipelines to structure unstructured documents
No-code LLM Platform to launch APIs and ETL Pipelines to structure unstructured documents - Zipstack/unstract
FlexAttention: The Flexibility of PyTorch with the Performance of FlashAttention
https://pytorch.org/blog/flexattention/
https://pytorch.org/blog/flexattention/
Some more batteries to do stuff with Mapping related data structures
This library provides utility functions for manipulating and transforming data structures which have or include Mapping-like characteristics.
https://github.com/erivlis/mappingtools
This library provides utility functions for manipulating and transforming data structures which have or include Mapping-like characteristics.
https://github.com/erivlis/mappingtools
GitHub
GitHub - erivlis/mappingtools: Python tools to manipulate Mapping objects
Python tools to manipulate Mapping objects. Contribute to erivlis/mappingtools development by creating an account on GitHub.
CSVs Are Kinda Bad. DSVs Are Kinda Good.
The article argues that CSVs (Comma-Separated Values) are problematic due to various edge cases involving delimiters, quotes, and newlines, and proposes using Delimiter-Separated Values (DSV) with ASCII control characters as a more robust alternative. It demonstrates how DSVs can handle complex data without escaping or quoting issues, but acknowledges that the lack of widespread tool sup...
https://matthodges.com/posts/2024-08-12-csv-bad-dsv-good/
The article argues that CSVs (Comma-Separated Values) are problematic due to various edge cases involving delimiters, quotes, and newlines, and proposes using Delimiter-Separated Values (DSV) with ASCII control characters as a more robust alternative. It demonstrates how DSVs can handle complex data without escaping or quoting issues, but acknowledges that the lack of widespread tool sup...
https://matthodges.com/posts/2024-08-12-csv-bad-dsv-good/
Matt Hodges
CSVs Are Kinda Bad. DSVs Are Kinda Good.
I would simply use delimiter characters to delimit data.
Deep-Live-Cam
Real time face swap and one-click video deepfake with only a single image.
https://github.com/hacksider/Deep-Live-Cam
Real time face swap and one-click video deepfake with only a single image.
https://github.com/hacksider/Deep-Live-Cam
GitHub
GitHub - hacksider/Deep-Live-Cam: real time face swap and one-click video deepfake with only a single image
real time face swap and one-click video deepfake with only a single image - hacksider/Deep-Live-Cam