Skip to main content

Technical

2023

Configure Jackson Object Mapper to Avoid Exception during Serializing a Lazy Loaded Hibernate Entity
·3 mins
Mayukh Datta
Technical Spring Boot
Ah, the timeless classic in the world of software engineering – the production issue that decides to make its grand entrance on a Friday night. 🚨 One such incident happened last week.
Dynamic Quartz Job Scheduling in Spring Boot
·4 mins
Mayukh Datta
Technical Quartz Spring Boot
Quartz is a feature-rich open-source Java library used to schedule jobs. The core components of this library are Job, JobDetail, Trigger, and Scheduler. The JobDetail is where the job definition lies.
Custom Logger Configuration for Feign Clients
·3 mins
Mayukh Datta
Technical Spring Boot
Feign Client allows you to abstract the mechanics of calling a REST service. You need to configure and annotate the Feign Client interface to call a RESTful web service by making a simple Java method call.

2022

How to Export a Remote PostgreSQL Database and Import it locally?
·1 min
Mayukh Datta
Technical SQL
Create a dump of the remote database using pg_dump command pg_dump --host=remote_host_name --port=remote_port_number --username=remote_database_user_name --dbname=database_name > db_export.sql You will get a dump SQL file of the remote database upon successful completion of this process.
How to Embed Code from any GitHub Repository (Not GitHub Gists) in WordPress?
·3 mins
Mayukh Datta
Technical
GitHub Gists is a popular platform that offers us to save snippets of code and share them via a link as well as embed them in a webpage. But what if we want to embed code directly from a GitHub repository?
Performance Optimization using Pivot Tables Technique in MySQL
·4 mins
Mayukh Datta
Technical SQL
Making a database call is an expensive operation. It involves opening a connection to the database, and the SQL query passed through this connection to the database is parsed, optimized, and then finally executed.
Clean Code: Write Methods with No Side-effects
·4 mins
Mayukh Datta
Technical Java Spring Boot
I was listening to Uncle Bob Martin’s lecture on YouTube last night. His No ‘side-effects’ advice hit me and made me realize that I was doing something in my code that I shouldn’t be doing it that way.
Get Remote Server Logs of Your Spring Boot Application via REST API
·5 mins
Mayukh Datta
Technical Java Spring Boot
I’m currently working on a microservices-based Spring Boot application, where I’m using Logback as my logging framework. The application is now running live on a remote server. Since I don’t have access to the server, I don’t get to see the logs when I want to see them or when there is some error.
When to Use Enums Instead of If-else or Switch Statements to Make the Code Cleaner?
·3 mins
Mayukh Datta
Technical Java Spring Boot
We usually use if-else or switch statements to write our logical conditions in our code. There is nothing to worry about as long as your list of logical conditions is short.

2021

My #LearnbyDoing Journey with Crio.Do
·6 mins
Mayukh Datta
Technical
I have now spent a week learning by doing with Crio.Do. It has been a wonderful week diving deep into software development essential areas like HTTP, REST APIs, Linux, AWS Cloud, and Git.