Using FFMPEG in Java Cheat Sheet

Overview This cheat sheet contains code example that I use most frequently in my recent project that uses ffmpeg extensively to edit and create video. Let’s get started. Run ffmpeg in Java To run a ffmpeg command from Java, use the following function. Create a video from a single image with a duration To create … Read more

Understanding == and equals() in Java

Overview In Java, the == operator and the equals() method are both used to compare objects, but they serve different purposes and operate in fundamentally different ways. Stack, Heap, and References Before delving into the differences between == and equals, first, you need to understand what are references and how they are stored and used in Java. References and … Read more

Centralized Logging with Spring Boot and MongoDB using Logback

Introduction As applications grow in complexity and scale, traditional file-based logging can become difficult to manage and analyze. Logging to an external source offers a scalable, queryable, and centralized logging solution. This approach enables better log data analysis and aggregation, providing insights into application performance and helping quickly diagnose issues. In this post, I will … Read more

Mastering Advanced Logback Configurations in Spring Boot

Introduction In previous posts, we introduced logging fundamentals in Spring Boot and covered basic and intermediate configurations for console and file logging. As we delve deeper into the realm of logging, this post focuses on advanced Logback configurations to address complex logging requirements. We’ll explore configuring sophisticated rolling policies, filtering logs, and integrating with external … Read more

Configuring Basic Logging in Spring Boot

Introduction In our previous post, we introduced the fundamentals of logging in Spring Boot, covering why logging is crucial and the basics of logging levels. Now, we take a step further to explore how to customize your logging configuration. Spring Boot provides a flexible logging framework that can be easily adjusted to suit your needs, … Read more

Logging Fundamentals in Spring Boot

Introduction Logging is an essential aspect of software development, providing insights into what’s happening inside an application running in development or production. Effective logging practices help developers diagnose issues, understand application behavior, and improve performance. Spring Boot simplifies the logging process, allowing developers to focus more on building features rather than configuring logging infrastructure. This … Read more