Achieve true multi-core parallelism in Python by disabling the GIL! Introduction When I was learning Python, I started using threads in some programs to speed up execution because I already knew threading in other languages such as Java and C. So I just assumed that things worked the same. For...
Send files 2x faster using Linux kernel’s sendfile syscall! Introduction When building web applications or file servers in Python, sending large files over the network is a common requirement. Whether you’re serving video files, database dumps, or large datasets, the traditional approach of...
Match strings 3x faster! Introduction Often times we use Python’s RegEx module re to handle more complex string matching. That is great and a no-brainer. It takes a bit of time to come up with a not-so-unreadable regex that works perfectly for your use-case. Specific use-cases that might...
Tweet This article shows how one can teach Llamafile to handle structured outputs like JSON. If you’re already familiar with LangChain, you’ll know that popular models like OpenAI include their own implementations of with_structured_output. Using it is straightforward: All we need is to...
Tweet In this article, we will be talking about a C++ library for using PKCE with Keycloak. Although I don’t consider myself a great C++ developer, I have worked with this programming language every now and then. And because I do a lot of work with Keycloak (check my other articles on that), I...
Tweet A few years ago, I discovered an interesting Microsoft Research Project called “BOSQUE” (back then, it was in all caps). The aim was to develop a programming language that promoted the regularized programming paradigm. Just like structured programming and abstract data types in the ’70s...
InformationRoom#Name: Frosteau Busy with VimProfile: tryhackme.comDifficulty: InsaneDescription: Stay frosty!This is the Side Quest Challenge 3 of Advent of Cyber '23 Side Quest (advanced bonus challenges alongside Advent of Cyber 2023).Write-upOverview#Install tools used in this WU on BlackArch...
InformationRoom#Name: The Bandit SurferProfile: tryhackme.comDifficulty: HardDescription: The Bandit Yeti is surfing to town.This is the Side Quest Challenge 4 of Advent of Cyber '23 Side Quest (advanced bonus challenges alongside Advent of Cyber 2023).Write-upOverview#Install tools used in this...
At EuroPython 2019 in Basel I gave an introduction to the use of modern machine learning for audio classification. It was very well received, both at the event and the video recording afterwards. The full video recording can be found here (YouTube). Below I provide a transcript of the...
Embedded systems and microcontroller programs can be really hard to understand. Here are some techniques that can help. An embedded system is a computer system with a dedicated function within a larger mechanical or electrical system … – Wikipedia Examples of embedded systems include everything...
Last weekend at FOSDEM I presented in the Internet of Things (IoT) devroom, showing how one can use MsgFlo with Flowhub to visually live-program devices that talk MQTT. Video recording of MsgFlo Internet of Things presentation at FOSDEM 2017. If the video does not work, try the alternatives...