Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development

Java

  • C++ vs. Java

    C++ and Java are popular programming languages used by developers and programmers. Each of these languages has its own advantages and disadvantages but before we begin to investigate the crucial differences between the aforementioned programming languages let’s first establish our basic understanding regarding the two.

  • Features of Java

    Java is a well-known high-level, server-side/backend, a class-based programming language that is easy to learn and understand. It is used in the distributed environment on the internet. The idea of java was based on creating a secure, easy-to-use, and portable programing language. This write-up will provide a detailed overview of Java features. So, let’s begin!

C++

  • Std::move in C++

    To disregard or remove single or maybe more letters from the input buffer using the cin.ignore() method. Maybe we need to remove the undesirable buffer so that the next data is stored in the intended container rather than the preceding variable's cache. For instance, we must provide a character array or string after inputting the cin command. Cin.ignore() in C++ is explained with examples in this article.

  • Cin.ignore() in C++

    To disregard or remove single or maybe more letters from the input buffer using the cin.ignore() method. Maybe we need to remove the undesirable buffer so that the next data is stored in the intended container rather than the preceding variable’s cache. For instance, we must provide a character array or string after inputting the cin command. As a result, we must empty the input buffer; else, the buffer of the preceding variable would be occupied. Because the cache of the preceding element lacks room to retain fresh data, hitting the “Enter” button just after the initial input ignores the container’s next input. Let’s start with the examples of the cin.ignore() function with the launch of new C++ files through the terminal shell. The file must be created through the touch instruction and the file’s name. Ubuntu’s “nano” editor has been used so far to open the file to edit.

Arduino

  • What is INPUT_PULLUP in Arduino

    In Arduino, we have to define the behavior of the pins with the help of the pinMode() function that either pin should behave as an input or output. We can also define the behavior of the pin as an input_pullup, now the question that arises in mind is what this input_pullup does? The input_pullup adds built-in resistance to the electrical circuit.

    In this write-up, the utilization of the input_pullup has been explained with the help of an example.

  • How to use breadboard with Arduino

    We can read the analog voltage signals from the analog I/O pins of the Arduino board and this input is converted to the digital values using the ADC. In this write-up, we have demonstrated an example of reading analog voltage input and visualized the results on a serial monitor as well as a serial plotter.

  • How to read voltage in Arduino

    Read analog voltage is a technique by which we can read the analog signal of voltage from the analog I/O pins of Arduino. Analog signals are continuous signals which are varying with time like human sounds and AC(alternating current) voltage.

    In this write-up, we will discuss an example to explain how the analog voltage is read by the analogRead() function.

  • Character functions in Arduino

    The character functions in Arduino programming are used to perform operation of the character data types that are used in Arduino. These functions are used to determine what type of character is used either as a number or alphabet.

  • Arduino Input and Output functions

    To interface the Arduino board with different integrated chips, sensors, LEDs, and other peripherals different functions are used for the input and output. Similarly, to run the compiled code on the Arduino board these functions are also used. These input and output functions also define the inputs and outputs of the Arduino program.

  • Analog Read Serial Arduino

    Sometimes we have to take input of the analog values from the sensors such as to find out the temperature of the room, the input values are in analog. These values can be read by the Arduino from its specific pins and these values can be used for further use. But before understanding the analogRead(), we have to understand what is the analog value? The analog value always varies from negative infinity to positive infinity and it is not restricted to only 0 and 1 like the digital values.

    In the above discussion, we gave an example of room temperature, the room temperature can be 35 degrees or 10 degrees. It is not restricted that the room temperature should be 0 or 1. These types of values are known as analog values. In this write-up, the analogRead() function is explained in detail with the help of which we can take analog input values in Arduino.

WWW

  • Getting Started Guide of HTML – Introduction

    HTML acronym of Hypertext Markup Language is the backbone language behind each and every web page you see all over the internet to build the structure of the web pages. It is not a typical programming language rather a markup language as a set of specific instructions known as “tags” are used to construct the elements of a webpage.

  • Gstreamer packages compiled in OE

    Already have these compiled in OpenEmbedded.....

  • How to Embed Google Form in WordPress

    This brief tutorial shows step-by-step how to embed Google forms in WordPress.
    After reading this tutorial, you will know how to easily integrate Google forms within your WordPress content.

    To apply the instructions in this document, you will need a Google account to access Google forms. Part of the instructions focus on Google forms, while the second part takes place in the WordPress dashboard.

    All steps described in this article include screenshots to make it easy for any Google and WordPress user to apply them.

  • head tag explained | Metadata in HTML
  • Assignment Operators in JavaScript | Explained with Examples

    Assignment operators are a crucial part of computer programming that are used to allocate the value of the left operand to the right operand or in simple words assign values to variables. Assignment operators perform logical operations like, bitwise logical operations or operations on integral operands or boolean operations. Javascript makes use of multiple assignment operators. Here we have listed JavaScript assignment operators for you.

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.