Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development

  • How to beautify your Java applications | Opensource.com

    I love that Java lets me write applications on one platform and run them on other platforms. You don't have to mess around with platform-specific SDKs, using a different library for that one platform, or inserting little code hacks to make that other platform behave. To me, that's how easy all modern programming ought to be. There's great infrastructure around Java, too, like the Maven build system and SDKMan.

    But there's one thing about Java I don't love: the look and feel of its default GUI toolkit, called Swing. While some people feel there's a charming nostalgia to Swing, for the modern computerist, it can look a little dated.

  • File Handling in Java

    Java is ruling the programming world because of its extraordinary features, and extensive support for different functionalities such as databases, file handling, sockets, etc. If we talk about File Handling, it is considered as one of the most significant parts of any application because it allows us to create, modify, read, and remove any file.

  • How to Create/Write a File in Java?

    Java provides a predefined class named “File” which can be found in the java.io package. The File class assists us in working with the files as it provides a wide range of methods such as mkdir(), getName(), and many more. If we talk about file creation and writing to the file, the createNewFile(), and write() methods of the File and FileWriter classes can be used respectively.

  • How to delete a file in Java

    Java provides a File class that contains an extensive number of built-in file handling methods such as createNewFile(), mkdir(), getAbsolutePath() and so on. Each method performs some specific functionality, for example createNewFile() creates a new empty file, mkdir() creates a directory, etc. If we talk about the file deletion, the File class provides the delete() method that can be used either to delete a file or to remove an empty folder.

  • How to Use Enums in Rust

    Enumerations or enums allow us to define a type and select a value from a list of possible variants within the list.

    In this article, we will explore how to work with enums in the Rust programming language.

  • Enrico Zini: Context-dependent logger in Python
  • PHP version 8.0.17 and 8.1.4 - Remi's RPM repository - Blog

    RPMs of PHP version 8.1.4 are available in remi-modular repository for Fedora ≥ 34 and Enterprise Linux ≥ 8 (RHEL, Alma, CentOS, Rocky...) and in remi-php81 repository for EL 7.

    RPMs of PHP version 8.0.17 are available in remi-modular repository for Fedora ≥ 34 and Enterprise Linux ≥ 8 (RHEL, Alma, CentOS, Rocky...) and in remi-php80 repository for EL 7.

  • Node.js community update | Red Hat Developer

    The Red Hat Node.js team dedicates a lot of time to working in the Node.js community and contributing upstream. This is a quick update on some of the interesting things going on in the project as we start 2022.

  • Qt 6 QML Book Updates

    The Qt 6 QML Book is about QML and related topics such as how to integrate languages such as C++ and Python to QML, the Qt for MCUs offering, and more. It has been a few months since the last update, so we're going to talk about what happened since the last time around. If you want to go ahead and start reading immediately, you can find the free online book here.

  • Postgres update multiple columns

    Postgresql provides a facility for the user to update the already present data by using an update command. This command is used to update single and multiple columns in a single command. This article will contain some examples to elaborate on the working of an UPDATE statement for single or multiple columns.

  • Latex Right Arrow

    Directions are indicated by arrow characters, which are globally recognized. Using upward-pointing arrows to show an expansion in a specific number and downward-pointing arrows to represent a drop is common. Because we don’t have Arrow Characters on our keyboard, we have to encode arrows in Latex Script.

    One of those arrows is the “right” arrow. Therefore, we have decided to cover the Latex examples to create right-directional arrows. Let’s start your terminal with Ubuntu’s shortcut “Ctrl+Alt+t”. After opening Ubuntu’s terminal application, try to update your system with the “apt” package within the “update” instruction.

  • How to Use min() Function in MATLAB

    The following article explains how to use the min() function in MATLAB® to obtain the minimum element of an array and its main characteristics. The different ways of using the options that this function offers for the treatment of data in two-dimensional arrays will also be detailed. This topic includes practical examples and images to help you understand how the min() function works in MATLAB.

  • Memcmp in C

    Memory is the very main part of any program when you have a larger amount of code on your tool. Same like that, the C language comes in very handy to compare the memory size of more than 1 variable in the code. It comes up with the “memcmp” function to perform this single task i.e., compare the memory size of two variables, strings.

    It will check whether the initial “n” characters of the variable indicated as the first string are fewer than, equivalent to, or larger than the initial “n” characters of the other variable i.e., string. The memcmp method returns a negative, zero, or a positive integer in the C Language. This article has been utilized to understand the memcmp() function of C in the code. Thus, let’s get started with the terminal.

  • sq JSON: first sketch

    Would you like to use Sequoia sq from your script? We’d like your feedback.

    I’m sketching what the JSON output of sq might look like. We in the Sequoia project would like to make sure the JSON serves you well and is convenient for your code to consume. This blog post outlines the principles of how JSON output is meant to work, and has a concrete example of what it’s meant to look like. Your feedback would very much be appreciated.

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.