Installing OpenCV 4.x on Linux Ubuntu 18

OpenCV 4.x installation on Ubuntu 18

For more than a year, there have been some articles published on this site that make use of the fantastic OpenCV 3 library. The new OpenCV 4 version has just been released and as usual we will publish the compilation and installation procedure on Linux Ubuntu 18 systems.

Geiger Counter - Measuring radiation levels with Arduino

Geiger Counter – Measuring Radiation Levels with Arduino

Going back to the old boards that I found in a box, I found this Geiger counter perfectly functional to be interfaced as a shield to Arduino. In this article we will see its features together, and at the same time better understanding what a Geiger counter, or radiation sensor, is and how it works.

What is if __name__ is __main__ and why use it

What is if __name__ == “__main__” and why use it

For those who program in Python, they will be able to see the following construct within many codes, especially in the final part if __name__ == “__main__”: followed by a series of instructions enclosed in the indentation. What is it for? Why is it so common?

Thread in Python - Producer and Consumer (part 5)

Thread in Python – the Producer – Consumer model (part 5)

In this new article we will extend the concept of threading with a model widely used in software engineering: the Producer-Consumer model that we will implement using two threads. In particular we will develop a Pipeline for internal communication between the two threads.

Thread in Python - Lock and Deadlock (part 4)

Thread in Python – Lock and Deadlock (part 4)

   In this article we will continue the Multithreading speech, introducing another very important tool: the Lock. Thanks to these, synchronization between the various threads can be managed more efficiently. We will also talk about another common problem in the thread world: deadlocks.

Thread in Python - Multithreading (part 3)

Thread in Python – Multithreading (part 3)

     In this third part of the Thread in Python series, we will look at some aspects of multithreading. In fact, in fact, threads can be very different from each other and often recursion methods to create and manage them, such as for loops, can no longer be used. There are therefore tools that allow you to manage different threads like ThreadPoolExecutor. However, thread management remains a complex operation that, if not well managed, can lead to problems such as the Race Condition. In this article we will look at these two aspects in detail.

Thread in Python - Threading (part 1)

Thread in Python – Threading (part 1)

  Once the first phase of learning a programming language, such as Python, has been overcome, all the necessary foundations for the development of any program have been acquired. But going on to develop more complex programs and contributing to different projects, often together with other developers, you will have to learn a lot of other notions, such as Threads and the concept of Threading.

Installare Git for Windows

Installing Git for Windows

Anyone who has to do with GitHub, in the cloning of the various repositories, will absolutely have to use Git. As for Linux, the installation is simpler, almost integrated with the operating system, given that Git is an application developed by Linus Torvalds in 2005, the same creator of Linux. But for those who own Windows? Well, there is a particular version of this application, called Git for Windows. In this article we will see how to install it.