Programming Leftovers

![]()
-
How to Create a Hello World Program in Rust
There is one building block that all programmers share: a Hello World program. It is a simple but standard program that is specifically designed to be an introduction to a new language. In any language, the Hello World program, introduces the new users to the syntax of the language.
In this article, we will explore how to create our first Hello World program and discuss the anatomy of the Hello World program in Rust.
-
Bash Assign Default Value if Variable Unset
In Bash programming, variables play a vital part in transforming the script to a modern standard. Variables are named symbols representing a string or numeric value. Check out this in-depth guide on Bash variables for more info.
When creating a Bash variable, it must have a value. However, we can use some tricks to set a default value if the variable is not set (or null). This guide will demonstrate how to do just that.
-
PySpark – Sort()
In Python, PySpark is a spark module used to provide a similar kind of processing like spark using DataFrame. In PySpark, sort() is used to arrange the rows in sorting or ascending order in the DataFrame. It will return the new dataframe by arranging the rows in the existing dataframe. Let’s create a PySpark DataFrame.
-
PySpark – OrderBy()
In Python, PySpark is a spark module used to provide a similar kind of processing like spark using DataFrame. In PySpark, orderBy() is used to arrange the rows in sorting/ascending order in the DataFrame.
It will return the new dataframe by arranging the rows in the existing dataframe.
Let’s create a PySpark DataFrame.
-
Dancer2 0.400000 Released | Jason A. Crome [blogs.perl.org]
We realize that some of you might be curious as to the large version bump. There are a couple of reasons for this: * Modules we depend on bumped their minimum Perl version to 5.12, requiring us to follow suit. * As of 2022, Dancer2 has an official deprecation policy. We are implementing this policy effective with this release, and it will help shape and guide future development. * We've officially marked a lot of outdated and unused API as being deprecated.
-
How to monetize your cross-platform application with the Qt Digital Advertising platform [Ed: Qt wants Free software developers (and users) to vomit not just because Qt became proprietary]
Welcome to the third installment of our blog series on digital advertising on embedded and mobile platforms with Qt. In this part, we’re looking into the main challenges associated with cross-platform digital advertising and how Qt can make them a thing of the past for you.
-
It takes a village
As a prolific maintainer of several dozen FOSS projects, I’m often asked how I can get so much done, being just one person. The answer is: I’m not just one person. I have enjoyed the help of thousands of talented people who have contributed to these works. Without them, none of the projects I work on would be successful.
I’d like to take a moment to recognize and thank all of the people who have participated in these endeavours. If you’ve enjoyed any of the projects I’ve worked on, you owe thanks to some of these wonderful people. The following is an incomplete list of authors who have contributed to one or more of the projects I have started...
-
Kruskal Algorithm
A graph that doesn’t have directions is called an undirected graph. Every graph must have a path from one node to another node. A spanning tree is also an undirected connected graph where all the nodes of the graph are present with minimum edges. If a spanning tree doesn’t have all the nodes of the graph, then we cannot say that it is a spanning tree. The spanning-tree total weights will be less than the original weight of the graph as we connected it through the minimum weight edges. The spanning tree also does not have a cycle. Any graph has more than one spanning tree, but only one of those will be unique. We call it a minimal spanning tree since we’re attempting to create a full graph with all nodes while keeping the weight low.
-
LinkedList in Java
Java provides a LinkedList class which is nothing but an ordered collection that holds multiple objects of the same data type. It belongs to the collection framework of java.util package and it extends/inherits the AbstractList class. The LinkedList class provides numerous methods to perform different functionalities e.g. add() method, remove() method, and many more.
-
ArrayList in Java
In any programming language, a very significant concept is used to store the data named Arrays. The arrays are static/fixed in size and suitable for fixed-length data structures. But what if someone wants to add or remove the items dynamically? Well in Java, we can utilize the concept of ArrayList which allows us to store the data dynamically and is resizable.
-
ArrayList vs LinkedList in Java | Explained
In java, ArrayList and LinkedList both belong to the Collection framework of java.util package and both of them inherit the List class. If we talk about the comparison of both these lists, it can be made based on different features, similarities, and differences. Sometimes LinkedList is preferred to use while in some cases, ArrayLists have dominance and are preferred to use.
-
Enum in Java | Explained
Java provides an enum class that can be used to represent a group of constants and it can have class attributes, member functions, and constructors. Enum class can’t inherit some other class but it can implement different interfaces and we can’t create the object of the enum class.
In java, if we have to specify a single value as constant we can use the final keyword. However if we have to specify a group/set of constants then we can utilize the concept of enums. In java, numerous methods are available that can be used to perform various functionalities like values(), ordinal(), and many more.
-

- Login or register to post comments
Printer-friendly version- 2841 reads
PDF version
More in Tux Machines
- Highlights
- Front Page
- Latest Headlines
- Archive
- Recent comments
- All-Time Popular Stories
- Hot Topics
- New Members
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.
|
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.
|
today's howtos
|








.svg_.png)
Content (where original) is available under CC-BY-SA, copyrighted by original author/s.

Recent comments
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago