Combining Bazel with Docker
Posted in

Combining Bazel with Docker

Welcome to the next pikoTutorial! In one of the recent articles, I showed how to build and run Docker containers using CMake. Today, we will see how to do a similar thing, but using Bazel. Today’s project structure: Note: on the contrary to the project structure used in the article…

Combining Bazel with Docker Read More
UDP multicasting with Python
Posted in

UDP multicasting with Python

Welcome to the next pikoTutorial! The minimal receiver Note for beginners: do not remove line 14 from the receiver implementation! Without the ability to re-use the same address, you will not be able to run more than 1 multicast receiver and you’ll end up with a simple UDP client/server setup.…

UDP multicasting with Python Read More
TCP client/server with Python
Posted in

TCP client/server with Python

Welcome to the next pikoTutorial ! The minimal TCP server A TCP server listens for incoming connections on a specified port and communicates with clients over that connection. The minimal TCP client A TCP client establishes a connection with a server, sends data, and receives responses. Bidirectional communication You can…

TCP client/server with Python Read More
Python lru_cache explained
Posted in

Python lru_cache explained

Welcome to the next pikoTutorial! Imagine you’re developing an application that fetches data from external API. For example, a weather app might request current weather conditions for a list of cities and then display them. While the data is updated periodically, repeatedly querying the API with the same city is…

Python lru_cache explained Read More
Python reduce explained
Posted in

Python reduce explained

Welcome to the next pikoTutorial! The reduce function is a powerful tool placed in the functools module that facilitates the cumulative application of a function to the items of an iterable (from left to right), to reduce them to a single value. Initially introduced in Python 2, later moved to…

Python reduce explained Read More
Bug of the week #6
Posted in

Bug of the week #6

Welcome to the next pikoTutorial! The error we’re handling today is a Python runtime error: What does it mean? The “too many values to unpack” error typically occurs when there is a mismatch between the number of variables or elements being unpacked and the number of values being assigned. This…

Bug of the week #6 Read More