Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development
  • Bash printf Function: 7 Examples for Linux

    If you've been using the Bash shell for a decent amount of time, you probably know how to print strings in the Linux terminal using the echo command. The printf command, however, makes printing text with specific formatting much easier.

    Today we'll learn how to make use of the printf function in order to enhance our Bash scripting skills.

  • Replacing String in Bash | FOSS Linux

    Bash is a UNIX shell-compatible command process whose main task is to manipulate strings conducted in a shell environment. Programmers are at times called upon to work on different files. They can add, delete, and replace parts or the whole file to fit their work. This calls upon the knowledge of replacing string in bash. Data storage can be temporary or permanent, depending on the nature of the data. File string is essential when replacing file contents.

  • On the road to Jakarta EE 9 with Open Liberty betas – IBM Developer

    With the release of Jakarta EE 8, enterprise Java technology joined the open source community. Despite the massive scale of this undertaking, which involved scores of projects, tests, meetings, presentations, and deliberations, the transition was a huge success, providing Java developers worldwide with an open source platform for cloud-native enterprise applications.

    However, the next challenge for Jakarta EE was already on deck. Although Jakarta EE 8 was fully compatible with its Java EE 8 predecessor, for the Jakarta EE 9 release, all the specification package prefixes had to be changed from javax to jakarta. For a cloud-native Java runtime, such as Open Liberty, the challenge is to ensure that this change results in as little disruption as possible for application developers.

  • Daniel Stenberg: curl 7.76.0 adds rustls

    I’m happy to announce that we yet again completed a full eight week release cycle and as customary, we end it with a fresh release. Enjoy!

  • Jussi Pakkanen: Never use environment variables for configuration

    Suppose you need to create a function for adding two numbers together in plain C. How would you write it? What sort of an API would it have?

  • 3 reasons I use the Git cherry-pick command

    Finding your way around a version control system can be tricky. It can be massively overwhelming for a newbie, but being well-versed with the terminology and the basics of a version control system like Git is one of the baby steps to start contributing to open source.

    Being familiar with Git can also help you out of sticky situations in your open source journey. Git is powerful and makes you feel in control—there is not a single way in which you cannot revert to a working version.

  • Qt 6.0.3 Released

    We have released Qt 6.0.3 today. As a patch release the Qt 6.0.3 does not add any new functionality but provides bug fixes and other improvements.

  • Qt 6.0.3 Released With Another ~40 Bug Fixes - Phoronix

    While Qt 6.1 is aiming to release around the end of April, for now the Qt 6.0 series continues marching forward and is out today with the Qt 6.0.3 point release providing another few dozen bug fixes.

  • JavaScript Map – How to Use the JS .map() Function (Array Method)
  • A JavaScript Tutorial

    The overview notes that "JavaScript is now used by an incredible number of high-profile applications, showing that deeper knowledge of this technology is an important skill for any web or mobile developer.” This tutorial explores the various building blocks of the language to help you get started.

  • 5 Best emacs plugins for web development – Linux Hint

    Since you are here, you are already using Emacs for text editing, possibly for email, and certainly for coding tasks. When you start doing serious web development, you want as many advantages as are possible. Here are some tools that will make your experience coding for the web using Emacs.

    As the saying goes, Emacs is an operating system lacking a decent editor. You can set things up so that Emacs runs the entire workflow for you, including git, compiling, and many more things.

More in Tux Machines

Security Leftovers

  • Security updates for Tuesday

    Security updates have been issued by Debian (redmine and strongswan), Fedora (containerd, fail2ban, grafana, moby-engine, and thunderbird), openSUSE (curl, firefox, glibc, kernel, libqt5-qtsvg, rpm, ssh-audit, systemd, and webkit2gtk3), Red Hat (389-ds:1.4, curl, kernel, kernel-rt, redis:5, and systemd), SUSE (util-linux), and Ubuntu (ardour, linux-azure, linux-azure-5.11, and strongswan).

  • Best Open Source Security Tools | eSecurityPlanet

    Over the past quarter of a century, the open source movement has gone from strength to strength. But that success and the openness inherent in the community have led to a major challenge – security. The more software that is developed, the greater the likelihood there is for vulnerabilities. To make matters worse, the open source world prides itself on openness and transparency. Therefore, any security vulnerabilities are disclosed publicly. In this age of organized gangs of cybercriminals, that is like placing an ad asking for an attack. This has given rise to a large number of open source security tools. They take care of all aspects of the management of security in open source components, examine dependencies, fix bugs in code, and lower risk.

  • Credit card PINs can be guessed even when covering the ATM pad

    Researchers have proven it’s possible to train a special-purpose deep-learning algorithm that can guess 4-digit card PINs 41% of the time, even if the victim is covering the pad with their hands. The attack requires the setting up of a replica of the target ATM because training the algorithm for the specific dimensions and key spacing of the different PIN pads is crucially important.

  • Using Machine Learning to Guess PINs from Video - Schneier on Security

    This works even if the person is covering the pad with their hands.

  • Google Developing "SiliFuzz" For Fuzzing CPUs To Uncover Electrical Defects - Phoronix

    With OSS-Fuzz for continuous fuzzing of open-source projects and along with working on the various sanitizers for compilers, Google has been doing a lot for proactively uncovering software defects in key open-source projects. Now though a group of their engineers have been working on SiliFuzz for software aiming to discover new CPU defects.

This Raspberry Pi add-on lets you control Lego robots

Raspberry Pi is releasing an add-on that will let you use many of its tiny, inexpensive computers to control certain Lego robot motors and sensors. The add-on is called the Build HAT (HAT stands for Hardware Attached on Top), and slotting it onto a Raspberry Pi’s GPIO pins will give you four ports that you can use to control Lego Education’s SPIKE components, which the HAT and its software are specially designed for. It’ll also connect to most other parts that use an LPF2 connector, including the components from the Lego Mindstorms robot inventor kit. There’s also a Python library (basically a set of commands you can use to control the robot) available to go alongside the HAT, which will let you write software to control the robot parts you’ve got hooked up. Programing Lego’s SPIKE components with Python isn’t a unique selling feature from Raspberry Pi — the SPIKE kit comes with a hub that supports connecting six devices (compared to the Build HAT’s four) that can also store and run Python programs. Read more

today's howtos

  • How To Install Zikula on Ubuntu 20.04 LTS

    In this tutorial, we will show you how to install Zikula on Ubuntu 20.04 LTS. For those of you who didn’t know, Zikula is free open source software (FOSS) It allows webmasters and users to create great portals for secure extranet, online databases, e-commerce and multilingual sites. This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you through the step-by-step installation of Zikula on Ubuntu 20.04 (Focal Fossa). You can follow the same instructions for Ubuntu 18.04, 16.04, and any other Debian-based distribution like Linux Mint.

  • How to Install Caddy Web Server on Debian 11

    Caddy is a free, open-source, and modern web server written in GO language. It is a lightweight and commercially supported web server that supports HTTP/2 and experimental HTTP/3 protocols. It can run anywhere with no external dependencies and is expanded via plugins. It is designed with security in mind and provides a number of features that are useful for hosting websites. In this tutorial, I will explain how to install the Caddy web server on Debian 11.

  • How to Install GIMP on Debian 11 Bullseye - LinuxCapable

    GIMP is free, open-source raster graphics editing software primarily used for image manipulation and image editing, transcoding between various image formats, free-form drawing, and many more specialized tasks. GIMP is released under GPL-3.0-or-later license and is available for Linux, macOS, and Microsoft Windows. In the following tutorial, you will learn to install the GIMP application on Debian 11 Bullseye using three alternative methods that you can choose from.

  • How to Install and Use PIP Python Package Manager on Debian 11

    Pip is a widely used package manager for the Python programming language. It is being used for installing and managing additional packages that are not available in the Python standard library. It allows users to search a package from the python packages index as well as install its dependencies. Pip is also known as a "Preferred Installer Program" that can create a completely isolated environment for the Python application. In this article, I will show you how to install and use Pip on Debian 11.

  • How to Install Visual Studio Code Cloud IDE on Rocky Linux 8 [Ed: It is proprietary, it is spying, and it needs to be shunned]
  • How to Remove Trash Can Icon From Left Dock Panel in Ubuntu 21.10 | UbuntuHandbook

    This simple tutorial shows how to remove the trash icon from the dock in Ubuntu 21.10 Impish Indri. Different to the previous releases, Ubuntu 21.10 puts the trash icon on left dock instead of the desktop. However, I don’t use the trash icon in either location. Instead, I removes files using right-click menu options, and go to trash via file manager left sidebar. If you also find it useless, then here’s how to remove it either via a single command or by a graphical configuration tool.

  • How to create a user and add it to the sudoers group in Rocky Linux

    In Linux administration, best practice recommends running commands as a regular user with sudo privileges. This user is simply known as a sudo user, and the user bears root privileges to perform elevated tasks in the system such as installing, updating, upgrading, and removing packages to mention a few. To execute privileged commands as a sudo user, the word ‘sudo’ precedes the actual command. Sudo is short for Super User do and when invoked, it allows underprivileged users to perform elevated tasks using root privileges. By default, the regular user created upon installation is simply an underprivileged user. Thankfully, you can add the user to the sudoers group to impart root privileges. This will allow the user to perform elevated tasks in the system just as a root user would. In this tutorial, we demonstrate how to create a user and add them to the sudoers group on Rocky Linux.

  • How to install Apache, MariaDB and PHP (LAMP) on Debian 11 – VITUX

    The LAMP stack is a collection of open-source software products that are frequently used in conjunction. The acronym LAMP is used to describe a computer system that has the following components: Linux, Apache HTTP Server (or just server), MySQL and PHP/Perl/Python. A user can install all of these components separately on a single computer or, more commonly, on separate computers connected by a network; however, some components are dependent upon other components – for instance, it is not possible to install Apache without first installing Linux – hence the standard installation practice is to install all components on a single computer system. The LAMP stack is the combination of open-source software to form a server environment most commonly used in web development.

  • How to install OpenSSH server on Alpine Linux (including Docker) - nixCraft

    This quick tutorial explains how to install and set up OpenSSH (SSHD) server and client on the Alpine Linux system. Further, you will learn how to build a Docker Linux container running sshd server based upon Alpine Linux image too.

  • How to use Shazam on the Linux desktop with SongRec

    Are you listening to a song and don’t know the name of it? Want to “Shazam” it but don’t have an Android or iOS phone? Check out SongRec! It’s an unofficial Shazam client for Linux. Here’s how to use it to “Shazam” on the Linux desktop.

  • Installing KDE On Linux Mint Cinnamon Base - gHacks Tech News

    If you’re like me and really enjoy using the KDE Plasma desktop environment, especially as it’s become very lightweight over the last year or two compared to the past where it was known as very heavy on resources, you are probably disappointed that Linux Mint does not offer a KDE version of its popular Ubuntu-based distribution. However, installing KDE is very easily accomplished, and doesn’t take very long.

  • A Fresh Installation of Debian 11 Bullseye

    August 14, 2021, marks a new major release for the popular Debian Linux distribution. Codenamed Bullseye and chock-full of enhancements as well as software updates after 2 years, 1 month, and 9 days of development, this release will be supported for the next 5 years. This guide will walk through a fresh installation of Debian 11 Bullseye’s new operating system. With this new release comes quite a bit of new functionality. One of the most welcomed changes is an updated kernel. Buster (Debian 10) was still running 4.19 but now with Bullseye (Debian 11), the jump to 5.10 has brought some wonderful hardware support!

Games: Trine 3 on Linux, Stellaris: Aquatics Species Pack, Cassette Beasts, Julius 1.7

  • How to play Trine 3 on Linux

    Trine 3 is an action/puzzle-platformer video game developed by Frozenbyte. It is the successor to Trine 2 and was released on August 20th, 2015. The game is on Microsoft Windows, Xbox, PS4, Mac OS, and Linux. Here’s how to get it working on your Linux PC. [...] Trine 3 works on Linux as a native game, but you’ll have to install the Steam application first if you want to play it. Thankfully, Steam works on a majority of Linux operating systems. Unfortunately, the software doesn’t come pre-installed on many distributions, so we’ll need to go over how to get it working first.

  • Stellaris: Aquatics Species Pack announced, launching with the free 3.2 update | GamingOnLinux

    Paradox only recently talked about a bunch of changes coming in the free 3.2 update and now they've announced Stellaris: Aquatics Species Pack as the latest DLC. "Sail the intergalactic seas and uncover an all new expansion packed to the gills with new options for new and longtime players alike. The Aquatics Species Pack will rinse Stellaris with a rising tide of new content, including brand new origins, species traits, civics and a treasure trove of new cosmetics. Seafarers and landlubbers alike will agree that this is Stellaris’ most immersive species pack to date.

  • Monster collecting game Cassette Beasts gets a new trailer and publisher | GamingOnLinux

    Cassette Beasts is the upcoming monster collecting game from Bytten Studio and today it has been announced that Raw Fury has joined as publisher. Bytten Studio had been looking for a publisher for some time now so this is great news. Developed in the open source Godot Engine, Cassette Beasts looks like a monster catching game like no other as you use the powerful fusion system to transform into creatures using retro cassette tapes.

  • Julius 1.7 is out, an open source re-implementation of the classic Caesar III | GamingOnLinux

    Julius is another shining example of an open source game engine re-implementation done well and a major update is out. Taking the original Caesar III and upgrading it for modern computing platforms. Not by the original developers though, this is like others, totally unofficial but don't let that stop you enjoying a much improved experience.