Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development
  • Cloud-Native Architecture: The Modern Way to Develop Software
  • Deno 1.19 extends web streams support
  • Couchbase Mobile 3 announced • The Register

    NoSQL database vendor Couchbase is about to launch the third upgrade to its mobile database, with new features promising REST-based remote administration support for large multi-tenant edge applications.

    The future release will allow developers to embed lightweight data storage directly into applications on mobile and other "edge" devices such as those in IoT setups.

    The new system offers the advantage of giving developers a single, coherent database whether applications were hosted in the cloud or end-user or edge devices, one industry analyst said.

  • Floor C++

    In C++, the floor() function returns the value which is smaller than or equal to the specified value. For the programs in which we use the floor() function, we must include the <cmath>header file. This header file is declared at the start of every program. The specified decimal floor value is returned by this function. That return number always depends on the kind of value passed as an argument of the floor() function. We need a single value to calculate the floor value. The floor() function contains different parameters. For example, double, float, and long double. The data types of the declared variable are as given. We’ll go over the floor() method in detail with illustrations in this article.

    We utilize software DEV C++ to do the coding in C++. For running the code, first, we have to compile the code and then run that program. We compile and run the code separately or together. It all depends on us.

  • Set Intersection in C++

    The set class in the C++ set library, which should be included into the program for set work, does not have a member function for intersection. So, in order to obtain intersection of sets, the algorithm library, which has the set_intersection() function, has to be included into the program.

    The C++ algorithm library has a number of set_intersection overloaded functions. Only the simplest two are explained in this article. However, before the explanations start, the reader has to know the difference between output iterator, input iterator and forward iterator.

  • Set vs Map in C++

    The aim of this article is to give the similarities and differences between a set and a map. “vs” in the title means “versus”. First of all, what is a set? – A set in C++ is like the set in Mathematics. In C++, a set is a group of not necessarily unrelated values, but of the same type. The values of a set are called keys in C++.

    What then is a map? – A map is a set of key/value pairs. In C++, the keys are of the same type, and the values are also of the same type. There is multiset and there is multimap. A multiset is a set where the values are not unique; that is, there can be more than one of the same values. Do not forget that the values of the set are called keys in C++. In a map, some of the values may be the same, but the keys must be different (unique). In a multimap, there can be more than one key, which are the same.

    The title of this article is “Set vs Map in C++”. So, multiset and multimap are not considered in this article; only set and map are compared and contrasted.

    Each time a key is inserted into a set, the set is re-sorted. Note: a set in C++ can also have key/value pairs; and this is not a mathematical view of the set. – Still, in C++, a set can have key/value pairs. So, each time a key/value pair is inserted into a set, the set is re-sorted by keys. On the other hand, a map by definition consists of key/value pairs where the keys have no duplicate. With the map too, each time a key/value pair is inserted into the map, the map is re-sorted by keys. The set and the map are the same in this regard.

  • Timeit in Jupyter Notebook

    Jupyter notebook or IPython kernel comes with various magic commands. Complex tasks can easily be completed using these magic commands in very little time and effort and the number of ways available to perform the same job. The preferred consideration factors are speed and code performance to do a similar task. You want to time your code to achieve these factors in most cases. In the Python and Jupyter notebook environment, the “timeit” command similar to the UNIX “time” command provides you some extra help to measure the time execution of your code.

  • Using pipes on Linux to get a lot more done

    One of the things that I have always loved about Unix and then Linux is how it allows me to connect a series of commands together with pipes and get a lot of work done without a lot of effort. I can generate the output that I need in the form that I need it. It's not just the existence of the pipes themselves, but the flexibility of the Linux commands. You can run commands, select portions of the output, sort the results or match on specific strings and you can pare the results down to just what you want to see.

    In this post, we're going to look at a couple commands that demonstrate the power of the pipe and how easily you can get commands to work together.

  • Methods in Java

    A java method is also known as a function and it can be either predefined or user-defined. Both types of methods are used to perform different functionalities, like calculations, etc. The major difference between both these method types is that a predefined method is already defined method in any programming language and ready to use anywhere in the program while a user-defined method is defined by the user/programmer as and when required. This write-up will provide a detailed understanding of the following concepts regarding Java Methods.

  • How to Install and use Rust on Debian 11 Bullseye - Linux Shout

    Rust is designed to compete with C and C++. In this tutorial, we will explore the steps to install and start using RUST on Debian 11 Bullseye Linux.

    C and C++ have been the most popular programming languages ​​for developing operating systems and performance-critical applications. However, there is also another popular player known as Rust that has positioned itself in the programming language market between low-level languages ​​like C/C++ and highly abstract languages ​​like C# and Java.

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.