The Rust programming language first appeared in 2015 and has rapidly risen in popularity over the years. As of late 2022, it has become officially supported in the development of the Linux kernel, alongside long time staples C and assembly. It is a general purpose language that can be suitable for many types of projects, with advantages like performance and memory safety.
Programming & Scripting
Python editors on Raspberry Pi
The Raspberry Pi can be an excellent choice for developers or hobbyist programmers as a small and lightweight workstation. Python is already installed by default on the Raspberry Pi, if you are running the default Raspberry Pi OS. Despite its small size, the Raspberry Pi contains hardware that is plenty sufficient to run a Python IDE so you can crank out your Python code. Unfortunately, some editors do not have ARM support, so our choices are slightly smaller on the Raspberry Pi.
How to change Python versions on Raspberry Pi
It is possible to have multiple versions of Python installed on the Raspberry Pi simultaneously. It is also simple enough to switch between the versions, which may come in handy for Python programmers that need to support a mix of legacy and modern Python code. Or, perhaps you want to try out a new beta or nightly Python build, without replacing the more stable copy you already have. In this tutorial, you will see how to change between various Python versions on the Raspberry Pi.
How to autostart Python script on Raspberry Pi
Many users want their Raspberry Pi to perform tasks unattended, as part of automating the Raspberry Pi. This cuts down on repetitive tasks that usually fall on the administrator’s lap. A common way to trigger automatic events is when the Raspberry Pi first boots up. Such a configuration allows us to start a Python script automatically every time the Raspberry Pi first boots up.
How to check Python version on Raspberry Pi
Python is a staple found frequently on most Linux systems, including a Raspberry Pi. It comes installed by default with Raspberry Pi OS, as many programs and applications commonly rely on it, since they are programmed in the Python language. The version of Python will determine which features it comes with, as the developers are always adding new features and patches to it.
How to use bash array in a shell script
In this tutorial, we will see how to use Bash arrays and perform fundamental operations on them. Bash, the Bourne Again Shell
, is the default shell on practically all major Linux distributions: it is really powerful and can also be considered as a programming language, although not as sophisticated or feature-reach as Python or other “proper” languages. Furthermore, Bash scripting is a must-have skill for any Linux system administration job.
Exit code 127 error status in Bash script
Are you receiving a exit code 127
error when trying to execute a Bash script? This means that your Linux system was not able to find the command referenced inside of the script, which could indicate that the path to the command is not valid, or the command is not installed at all. In this tutorial, we’ll explain what causes this “command not found” error and show you how to fix it.
Introduction to Jupiter Notebook
Jupyter Notebook is a web application used to produce computational documents, commonly called “notebooks” which can contain human-readable text, executable code, charts, and more. When used together with Python and libraries like pandas and Matplotlib, Jupyter notebooks are an excellent tool we can use for presentations and data analysis.
How to install Python applications in isolated environments with pipx
If you are familiar with Python, you surely used pip: the Python package installer. With pip, we can install packages “globally” or in virtual environments. Virtual environments are mainly used to install dependencies of specific projects, so to develop them in isolation. We usually install packages, “globally”, instead, when want to access the utilities they provide from anywhere. By using pipx we can get the best of both approaches: we can install each application in its own virtual environment, and, at the same time, access it globally.
How to embed documentation in Bash scripts
Documenting how an application works, its purpose, and its intended usage is really important, even if it is just a simple shell script we are talking about. To ease code maintenance in the most basic cases, documentation can be embed directly inside scripts. In this tutorial we learn how to include Pearl’s Plain Old Documentation syntax (POD) in bash scripts, and how to convert it to various formats using pod2 utilities such as pod2man and pod2html.
Introduction to pandas
Pandas is a free and open source Python library released under the BSD license. Originally developed by Wes McKinney in 2008, and supported by companies like Intel and Nvidia, it is targeted at data analysis and manipulation. It can be easily used to read and write data from a variety of sources such as Excel spreadsheets, Comma-separated Values (CSV) files, and many more.
How to run JAR file on Linux
JAR files are those that have been coded and compiled using the Java programming language. In order to run these files on a Linux system, the Java Runtime Environment (JRE) software must be installed first. This is just a software package that allows the system to understand JAR files, and therefore gives it the ability to open and run them. Usually, the JRE package is not installed on most Linux distros by default, so we must first install Java, and then we can open the JAR file(s).