Useful shell commands for Python

Hello everyone. This article is for beginners or casual Python users who do not need to know or remember the most commonly used commands related to the Python language. Here is a collection of useful shell commands for working with Python. These commands can help you manage virtual environments, install packages, debug code, and manipulate […]

Include guards in C

Include guards are a mechanism used in C and C++ programming to prevent multiple inclusions of the same header file. They help avoid issues such as redefinition errors, which can occur when the same header file is included multiple times in a program.

How to install stm32 programmer cli on Ubuntu

Hi, today’s post will be short and concrete. As you have probably noticed, installing on Ubuntu anything that’s is not present on apt repository is not as simple as running one shell comand or an exe file like on Windows machines. Fortunately, it’s not very complicated, so don’t worry. Once you know where to find […]

Terminal not launching in Ubuntu 22.04

Hi, today’s post will be very short. Recently I found out that there is a strange bug related to Python version upgrade. My terminal stopped working after I upgraded Python version from 3.10 to 3.11 on Ubuntu 22.04. Not only terminal, but also other preinstalled applications like „Software Updater”. I decided to write a short article about this, first to warn you and second to give you a quick fix.

Single point of exit

Using a single point of exit in C (or other programming languages) is often considered good practice because it improves code readability and maintainability, and reduces the likelihood of bugs. In this article, we’ll take a deep dive into this topic to see if it’s really true.

Why C strlen function is considered as not safe

n the world of programming, writing secure and efficient code is a constant challenge, especially when working with low-level languages like C. C provides developers with powerful tools, but with great power comes great responsibility. Among these tools is the strlen function, a staple of string manipulation in C. While seemingly simple and straightforward, improper use of strlen can lead to unexpected behavior, performance issues, and even critical security vulnerabilities. This article explores the potential pitfalls of using strlen, why it’s considered unsafe in certain situations, and how developers can adopt safer practices to protect their applications.

What is referencing and dereferencing in C

This article is intended for the novice programmer who wants to understand the concept of referencing and dereferencing data in the C programming language. I will try to explain it as simply as possible, using some simple and easy to understand examples. To fully understand the topic, it is worth looking at some introduction to […]

CoAP protocol

This article provides a general introduction to the Constrained Application Protocol (CoAP) for those interested in a lightweight, easy-to-implement data transfer solution for devices with limited hardware resources, also known as ‘constrained devices’. CoAP is a UDP-based protocol defined by the RFC 7252 specification. CoAP is very similar to HTTP, has a similar client-server model, […]

How to install arm-none-eabi-gdb on Ubuntu

Unfortunately some time ago ARM decided to deprecate the use of PPA so to use their latest arm-none-eabi-gdb you have to install gcc-arm-embedded manually. But don’t worry, in this article I will guide you through this process step by step so it would be very easy. STEP 1: Removing current arm-none-eabi-gcc If you already have […]

User Datagram Protocol basics

User Datagram Protocol is an Internet protocol used to transfer user data between two points without requiring a connection. This makes it very lightweight. It works on the transport layer like TCP, but is much simpler. Unlike TCP, there is no guarantee that the data packet has reached the recipient because no acknowledgements are used. […]