Get the Current Date Prior to Java 8
1. Introduction In legacy systems, we might need to work with dates when neither the new date and time API nor the highly recommended Joda-Time library is available. In this short tutorial, we're going...
View ArticleHow to Pass Command Line Arguments to Bash Script
1. Overview Linux has a rich and powerful set of ways to supply parameters to bash scripts. In this tutorial, we'll look at a few ways of doing this. 2. Argument List Arguments can be passed to a bash...
View ArticleHow to Mount and Unmount Filesystems in Linux
1. Overview We know that files are the central operating units in the Linux system. Files and directories are stored in filesystems, which can be located on various devices, such as a hard disk or a...
View ArticleGuide to Eureka Self Preservation and Renewal
1. Overview In this tutorial, we're going to learn about Eureka Self Preservation and Renewal. We'll start by creating a Eureka server alongside multiple Eureka client instances. Then, we'll register...
View ArticleBenchmark JDK Collections vs Eclipse Collections
1. Introduction In this tutorial, we're going to compare the performance of traditional JDK collections with Eclipse Collections. We'll create different scenarios and explore the results. 2....
View ArticleSpring Optional Path Variables
1. Overview In this tutorial, we'll learn how to make a path variable optional in Spring. First, we'll describe how Spring binds @PathVariable parameters in a handler method. Then, we'll show different...
View ArticleImplementing A* Pathfinding in Java
1. Introduction Pathfinding algorithms are techniques for navigating maps, allowing us to find a route between two different points. Different algorithms have different pros and cons, often in terms of...
View ArticleViewing Files in Linux Using cat, more, and less
1. Introduction Linux provides a number of commands for viewing files. In this tutorial, we'll look at the most commonly used cat, more and less commands. 2. The cat command The cat command is the...
View ArticleDifferences Between more, less, and most in Linux
1. Overview When viewing file contents in Linux, we may benefit from some interactive features to help us. We might need to see statistics of a file that we're viewing, mark a certain line then return...
View ArticleOverflow and Underflow in Java
1. Introduction In this tutorial, we'll look at the overflow and underflow of numerical data types in Java. We won't dive deeper into the more theoretical aspects — we'll just focus on when it happens...
View ArticleHibernate @NotNull vs @Column(nullable = false)
1. Introduction At first glance, it may seem like both the @NotNull and @Column(nullable = false) annotations serve the same purpose and can be used interchangeably. However, as we'll soon see, this...
View ArticlePattern Matching in Scala
1. Overview Pattern matching is a powerful feature of the Scala language. It allows for more concise and readable code while at the same time providing the ability to match elements against complex...
View ArticleChecking if Two Java Dates are On the Same Day
1. Overview In this quick tutorial, we'll learn about several different ways to check if two java.util.Date objects have the same day. We'll start by considering solutions using core Java – namely,...
View ArticleIntro to Apache Tapestry
1. Overview Nowadays, from social networking to banking, healthcare to government services, all activities are available online. Therefore, they rely heavily on web applications. A web application...
View ArticleSpring MVC Themes
1. Overview When designing a web application, its look-and-feel, or theme, is a key component. It impacts our application's usability and accessibility and can further establish our company's brand. In...
View ArticleIntroduction to Spark Graph Processing with GraphFrames
1. Introduction Graph processing is useful for many applications from social networks to advertisements. Inside a big data scenario, we need a tool to distribute that processing load. In this tutorial,...
View ArticleA Quick Guide to Timeouts in OkHttp
1. Overview In this quick tutorial, we'll focus on different types of timeouts we can set for the OkHttp client. For the more general overview of the OkHttp library, check our introductory OkHttp...
View ArticleCircular Linked List Java Implementation
1. Introduction In this tutorial, we'll look at the implementation of a circular linked list in Java. 2. Circular Linked List A circular linked list is a variation of a linked list in which the last...
View ArticleHandling URL Encoded Form Data in Spring REST
1. Overview For an end-user, the process of form submission is convenient, and to some extent, equivalent to just entering data and clicking on a submit button. However, from an engineering...
View ArticleHow to Implement a Quarkus Extension
1. Overview Quarkus is a framework composed of a core and a set of extensions. The core is based on Context and Dependency Injection (CDI) and extensions are usually meant to integrate a third-party...
View Article