How to check if the process is running on Linux in Java


In this article, we will learn how to check whether a specific process is running on Linux in Java. There is a case where we have to check before executing the tasks whether a specific process is currently running or not. Read More »

How to check if any word from a List exists in a String in Java8


In this article, we will learn how to check if any word from a list of keywords exists in a String using Java 8 stream API. We have an input string and a list of words, we will check if any of the words from the list exists in the input string or not. And we also have a list ... Read More »

How to search a List of words in a String in Java8


In this article, we will learn how to search a list of keywords/strings in a String/ Text using Java 8 stream API. We have an input string, in which we want to search a list of keywords – And we also have a list of keywords listed below – Now below code using Java8 will search for all the keywords ... Read More »

Spring Boot – Pagination, Sorting operations


While developing any spring boot API, We create many rest endpoints for the CRUD operation on data, which deals with large volume of data. Because of the large volume, fetching of records from database takes more time. To overcome this types of cases we have some options in hand. Set limit for every request. Use pagination in fetching the records ... Read More »

SMPP Long Messages 2 bytes reference number in UDH


In this article, we will learn to send long SMS using the cloudhopper SubmitSm. In this article, we use Charset GSM (7bit), which means we will split the message if the length of the message is greater than 160 characters. GSM-7 is a character encoding standard that packs the most commonly used letters and symbols in many languages into 7 bits ... Read More »

Execute multiple curl requests in parallel

This tutorial will demonstrate how to execute multiple curl requests in parallel, at the same time. We will use xargs command of linux or UNIX like operating system. What does xargs command do in Linux? xargs is a great command that reads streams of data from standard input, then generates and executes command lines; meaning it can take a command’s ... Read More »

Set globally multiple header parameters in Swagger


In this article, we will learn how to set multiple header parameters globally in a Spring Boot application. Why do we need it? There are cases where we want the client to send multiple header parameters along with the one auth token, these parameters may be useful to validate the token or may be required along with the token to ... Read More »

AES Encryption Class Compatible with Java and PHP


Most of the time we come across a scenario where we want something that is encrypted in Java, that requires to be decrypted by PHP or vice versa. In this article, we will build a Java class that encrypt-decrypt the input string and the same class in PHP which also encrypt-decrypts the input string and produces the same result. AES ... Read More »

Useful Linux Commands

Check the battery’s status via the terminal Time the machine has been running Display disk usage information Display information about the CPU List network interfaces Display information about your kernel release Display System Hardware information Reboot the system Shutdown the system at a specific time Start/Stop/Restart a service Checking a service status Enabling/Disabling a service to run at boot time ... Read More »

CVE-2022-22965 SpringShell Vulnerability


SpringShell is a new Spring Framework Remote Code Execution (RCE), aka CVE-2022-22965, security vulnerability. Essentially all versions of the Spring Framework, including 5.3.0 to 5.3.17, 5.2.0 to 5.2.19, and older, unsupported versions are vulnerable. Check if your Spring application is Vulnerable? If you are using JDK 9 or higher. If you are using Apache Tomcat as the Servlet container. If your ... Read More »