Docker Compose: (re)Start|Stop|Build – Single Service

By default, the docker-compose (up|stop|restart|build) commands will start, stop, restart or build all of the services (containers) listed in a docker-compose.yml file.

But there is also a way to run docker-compose commands against the certain containers only.

This is useful when you need for example to re-build just one container described as a service in a Docker Compose file. (more…)

Arduino Pro Micro: Reset & Restore Bootloader

If you’ve accidentally uploaded some code to the Arduino Pro Micro board as “Arduino Micro”, “Arduino Leonardo” or any other board, there is a big chance to brick your board by crashing its bootloader so it won’t be recognized by the PC at all anymore.

To revive the “bricked” Arduino Pro Micro you can try to reset the board and restore the bootloader by uploading any sketch with the board and processor options correctly set. (more…)

Arduino Pro Micro: Board Selection

If you try to upload your code to the Arduino Pro Micro board as “Arduino Micro”, “Arduino Leonardo” or any other board because you can’t find any called “Arduino Pro Micro”, there is a big chance to brick your board by crashing its bootloader so it won’t be recognized by the PC at all anymore.

By default, “Arduino Pro Micro” is not listed in the selection of boards in the Arduino IDE as it is the Arduino-compatible board developed by SparkFun.

In this note i will show how to add the SparkFun boards, including the “Arduino Pro Micro”, to the board selection menu in the Arduino IDE. (more…)

Install Arduino IDE on Ubuntu Linux

Even though an Arduino IDE can be easily installed on Ubuntu-like Linux system using the simple apt install arduino command, the version you will can get this way will be quite old – without the latest features and complicity in getting help on the Internet.

In this note i will show the recommended way of how to install the latest version of the Arduino IDE on Ubuntu, though these commands should work for the other Linux systems as well. (more…)

CMD: Clear Screen – Clear Command Prompt

The clear command in Linux is used to clear the terminal’s screen.

You can also use the clear command in a Windows PowerShell where it is an alias of the Clear-Host command, that does pretty match the same – removes all text from the current display, including commands and output that might have accumulated.

But if you try to execute the clear command in a Windows command-line prompt (CMD), expecting it to clear the screen, you will get an error as follows:

‘clear’ is not recognized as an internal or external command,
operable program or batch file.

Below you will find how to clear the command prompt in Windows. (more…)