Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development
  • Gemini Isn’t The Solution To The Broken Web

    I’m not sure if you heard, but The Web Is F*cked and techies everywhere are touting the Gemini protocol as its saviour. I disagree. A lot.

    When I wrote The Web Is F*cked, I had a number of people reach out asking why I didn’t mention Gemini, as it’s the saviour of the web…apparently.

    Well, I didn’t mention Gemini because I think it actually does more harm than good when it comes to the web. Let me explain…

  • Hashset vs Hashmap in Java

    The Java programming language has two distinct yet similar types of data containers, HashMap and HashSet . Both use a hash table to store data. A table is a table of values ​​that uses a hash function to determine where to look and store data. This allowsquick access to data because a value does not have to be searched. Instead, the hash function can provide the exact location of the value. Despite so much use of hash tables, HashMap and HashSet are quite different from each other.

  • Java assert

    Assertion in Java is a statement based on the reserved word, assert, having a boolean expression and ending with a semicolon. It happens that certain conditions in a program may prevent it from working properly. The assert statement checks if such conditions exist in a program. Java assert is explained in this article.

  • How do You write Comparable in Java?

    Examples of Java lists are; Vector, Stack, AttributeList, ArrayList, and LinkedList. The Java Collections class has overloaded methods to sort a list of predefined objects. The Java Arrays class has overloaded methods to sort an array of predefined objects.

    The predefined sort() methods are to sort predefined objects. What about user-defined objects? Java has an interface called Comparable. An interface is a kind of class whose methods are declarations without definitions (bodies). So, a class must be implemented from an interface for the methods to be defined (given bodies). From the implemented class, objects can be instantiated from a name given by the programmer.

    Java has a predefined Comparable class. The sort() methods in Collections and Arrays use the predefined comparable class to sort predefined objects. However, in order to sort a list or array of user-defined objects, the programmer has to implement (define) a user Comparable class from the Comparable interface. This user implemented (defined) class enables the sorting of user-defined objects in a list or array. So, a predefined Comparable class enables sorting of predefined objects, while a user-defined Comparable class enables sorting of user-defined objects. User-defined objects are not literals, so a class of user-defined objects needs its own user-defined Comparable implementation.

    This article illustrates how to write Comparable in Java.

  • Hashtable in Java

    A hash table is for key/value pairs. Internally, the values are stored in an array. Each key is converted into an index of the array. This conversion is known as hashing. It is done by a hash function internally. In other words, the keys do not have to be stored. All that is the hash-table, in java and in other computer languages. This article explains two constructors of the Java hastable and its commonly used methods.

  • How AJAX works

    AJAX comprises a set of useful web development techniques utilized to develop dynamic and speedy web pages. Behind the scenes, it shares small chunks of the data, permitting the web pages to be updated asynchronously. This states that by using AJAX, HTML page elements will be updated without reloading.

    This write-up will discuss the components of AJAX and how AJAX works. We will talk about the working of AJAX in some top web-based applications. Moreover, a comparison between the conventional and AJAX model will be provided. So, let’s start!

  • Sunsetting gzip substitutes availability

    Starting next month (2022/03/01), the build farm known as ci.guix.gnu.org will no longer offer gzip-compressed binary substitutes. The Guix daemon has known to use lzip for substitutes since 2019; unless you are running a very outdated daemon, you have no need to worry about this change.

    This idea was first discussed about a year ago, when it was found that gzip-compressed substitutes accounted for about only 1% of the downloaded substitutes. Since then, the daemon has gained support for zstd on top of gzip and lzip, and the build farm has happily generated compressed substitutes for all of these compression schemes.

  • I would like a job writing Haskell

    Perhaps someone out there wants to take a chance on a senior programmer with thirty years of experience who wants to make a move into Haskell.

  • Shockingly Pragmatic | Coder Radio 452 | Jupiter Broadcasting

    Mike makes a shocking admission, and Chris wishes he had a time machine.

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.