Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development
  • Bash Scripting: Arithmetic operations

    The need to perform basic arithmetic operations is common in all types of programming, including in Bash scripts. A Linux system has multiple ways to perform arithmetic operations, and it is up to the user to decide the best method for the scenario at hand.

    In this tutorial, you will learn several ways to use arithmetic operations to perform basic calculations inside of a Bash script on Linux. Check out the examples below to see how these different methods work.

  • Bash Scripting: Execute command from within the script

    Bash scripts are, essentially, just a series of Linux commands that have been chained together in order to accomplish something. Depending on your code, there are a few different ways to execute commands inside the script.

    In this tutorial, we will go over a few ways to execute commands from within a Bash script on a Linux system.

  • Bash Script: Hello World Example

    When getting started with a new scripting or programming language, such as Bash scripting on Linux, the first thing a user learns to create is a Hello World script.

    This serves as a basic introduction into Bash scripts, and gives you a simple idea of how a script is formatted in Bash. In this tutorial, we will take you through the steps to create your first Hello World Bash script on a Linux system.

    It does not matter which Linux distro you are running, and you do not need any previous experience to follow along with the steps below. Let’s get started!

  • This Week In Rust: This Week in Rust 431
  • Rust 1.59.0 released [LWN.net]

    Version 1.59.0 of the Rust language has been released. There are a number of new features, including support for inline assembly (in unsafe blocks, naturally), the ability to use tuples and slices on the left-hand side of an assignment, const generic defaults, and more. Incremental compilation is also disabled by default in this release to work around a known bug.

  • Announcing Rust 1.59.0 | Rust Blog

    The Rust team has published a new version of Rust, 1.59.0. Rust is a programming language that is empowering everyone to build reliable and efficient software.

  • Rust compiler ambitions for 2022 (Inside Rust) [LWN.net]

    The Inside Rust Blog has posted the Rust compiler team's goals for this year in the hope of encouraging others to help.

  • #36: pub/sub for live market monitoring with R and Redis

    There is an saying that “you can take the boy out of the valley, but you cannot the valley out of the boy” so for those of us who spent a decade or two in finance and on trading floors, having “some” market price information available becomes second nature. And/or sometimes it is just good fun to program this.

    A good while back Josh posted a gist on a simple-yet-robust while loop. It (very cleverly) uses his quantmod package to access the SP500 in “real-time”. (I use quotes here because at the end of retail broadband one is not at the same market action as someone co-located in a New Jersey data center. It is however not delayed: as an index, it is not immediately tradeable as a stock, etf, or derivative may be all of which are only disseminated as delayed price information, usually by ten minutes.) I quite enjoyed the gist and used it and started tinkering with it. For example, it collects data but only saves (i.e. “persists”) it after market close. If for whatever reason one needs to restart recent history is gone. In any event, I used his code and generalized it a little and published this about a year ago as function intradayMarketMonitor() in my dang package. (See this blog post announcing it.) The chart of the left shows this in action, the chart is a snapshot from a couple of days ago when the vignettes (more on them below) were written.

  • Oplà IoT Kit Gets Italian, Spanish, German and French Translations

    A big part of the Oplà IoT Kit’s value comes from its online content. When you get the kit, one of the first tasks is to visit opla.arduino.cc, where a host of awesome resources are available.

    And now it’s expanding on its usefulness by adding four new languages to the content.

  • Qt Creator 7 Beta2 released

    Qt Safe Renderer 2.0 will provide a new Monitor component for improved functional safety.

  • Qt Safe Renderer – Introducing the Monitor

    Qt Safe Renderer is our solution for the creation of user interfaces to safety critical systems. Available since 2017 the Qt Safe Renderer is used by multiple customers and certified for several different functional safety standards. With the upcoming version 2.0 we are introducing a new approach for validating the correct rendering of safety critical information – the Monitor.

  • Qt Installer Framework and Online Installer 4.3.0 released

    We are happy to announce the Qt Installer Framework, Online Installer, and Maintenance Tool 4.3.0 releases today.

More in Tux Machines

digiKam 7.7.0 is released

After three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release. Read more

Dilution and Misuse of the "Linux" Brand

Samsung, Red Hat to Work on Linux Drivers for Future Tech

The metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world. Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility. Read more

today's howtos

  • How to install go1.19beta on Ubuntu 22.04 – NextGenTips

    In this tutorial, we are going to explore how to install go on Ubuntu 22.04 Golang is an open-source programming language that is easy to learn and use. It is built-in concurrency and has a robust standard library. It is reliable, builds fast, and efficient software that scales fast. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel-type systems enable flexible and modular program constructions. Go compiles quickly to machine code and has the convenience of garbage collection and the power of run-time reflection. In this guide, we are going to learn how to install golang 1.19beta on Ubuntu 22.04. Go 1.19beta1 is not yet released. There is so much work in progress with all the documentation.

  • molecule test: failed to connect to bus in systemd container - openQA bites

    Ansible Molecule is a project to help you test your ansible roles. I’m using molecule for automatically testing the ansible roles of geekoops.

  • How To Install MongoDB on AlmaLinux 9 - idroot

    In this tutorial, we will show you how to install MongoDB on AlmaLinux 9. For those of you who didn’t know, MongoDB is a high-performance, highly scalable document-oriented NoSQL database. Unlike in SQL databases where data is stored in rows and columns inside tables, in MongoDB, data is structured in JSON-like format inside records which are referred to as documents. The open-source attribute of MongoDB as a database software makes it an ideal candidate for almost any database-related project. 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 the step-by-step installation of the MongoDB NoSQL database on AlmaLinux 9. You can follow the same instructions for CentOS and Rocky Linux.

  • An introduction (and how-to) to Plugin Loader for the Steam Deck. - Invidious
  • Self-host a Ghost Blog With Traefik

    Ghost is a very popular open-source content management system. Started as an alternative to WordPress and it went on to become an alternative to Substack by focusing on membership and newsletter. The creators of Ghost offer managed Pro hosting but it may not fit everyone's budget. Alternatively, you can self-host it on your own cloud servers. On Linux handbook, we already have a guide on deploying Ghost with Docker in a reverse proxy setup. Instead of Ngnix reverse proxy, you can also use another software called Traefik with Docker. It is a popular open-source cloud-native application proxy, API Gateway, Edge-router, and more. I use Traefik to secure my websites using an SSL certificate obtained from Let's Encrypt. Once deployed, Traefik can automatically manage your certificates and their renewals. In this tutorial, I'll share the necessary steps for deploying a Ghost blog with Docker and Traefik.