Category: Uncategorized
Jak opravit napájecí adaptér notebooku
Jak opravit napájecí adaptér notebooku, pokud se vám u něj rozbil kabel? Vzhledem k tomu, že celý napájecí adaptér obvykle vypadá jako souvislý blok, bez šroubů a bez možnosti jej otevřít, zdá se jako jedinou možností opravy koupě nového. Dlouho jsem přemýšlel, jak se do adaptéru dostat. Přece jen, nějak jej museli složit, tak musí…
Waiting on multiple Event objects in Python 3
Passive waiting is a way of suspending programs execution without consuming any CPU (in contrast with active waiting where a program is busy doing nothing). In Python, you can use certain classes from the threading module (such as Condition and Event). Let’s take for example the Event class. It is good for waiting for an…
How to run interactive .exe on Windows with Ansible
Starting with version 1.7, the orchestration tool Ansible has a support for managing Windows machines. What the documentation does not provide is a guide on how to run interactive applications properly.
jsonchema: Custom type, format and validator in Python
jsonschema is a great library for validating JSON data with JSON schema in Python. It also allows you to specify custom JSON schema types, formats and even validators. Unfortunately, the documentation is not very clear about the way how to create customized validators.
Package namespacing for Python library collection
A practical guide on how to manage a collection of code snippets as a single, easy to maintain library collection. I will utilise Python package namespacing, managed in a Git mono-repository.
Streamline adding hashtags to Instagram posts with ChatGPT
As a hobby photographer, I like to showcase my photography on Instagram. But I hate coming up with hashtags for my posts. So as a software engineer and LLM enthusiast, I thought – Can I automate and streamline the process of coming up with hashtags for my Instagram posts with ChatGPT?
Python 3.8 end of life coming soon
Python 3.8 will/has reached it’s end of life [time_since]2024–10[/time_since]. Soon, you will be forced to upgrade as tools and libraries gradually start removing it’s support. If you have the option to upgrade to the latest Python version, take it. But especially library maintainers don’t have that luxury and still have to keep 3.9 support around.…