[Java]Sending mail with Ical and freemarker template

Sending Emails with Calendar Invites in Java In this post, I will show how to send emails with calendar invites (.ics files) attached using Java and the biweekly library. 1. Define Email and Calendar Objects First, we need to define an Email class to represent the email content, and an ICalInvite class to generate the … Continue reading [Java]Sending mail with Ical and freemarker template

[HOW-TO][Solved] Connect to MSSQL DB using DB Navigator in IntelliJ IDEA community edition

💡 Connect to MSSQL using IntelliJ IDEA Community Edition 💻 This bugged me for some time - not being able to connect to MSSQL using IntelliJ IDEA Community Edition. If you are like me, you probably found some hope in the DB Navigator plugin, but later realized it didn't work 😩. Well, to rescue both … Continue reading [HOW-TO][Solved] Connect to MSSQL DB using DB Navigator in IntelliJ IDEA community edition

[How-To] [IntelliJ] Enable Hot-Reload for spring boot applications

Enable Hot Reload in IntelliJ for Spring Boot Hot reload automatically reflects code changes without having to restart your application. Here are the steps to enable hot reloading for Spring Boot projects in IntelliJ IDEA: 1. Add Spring Boot DevTools Add the following dependency in your pom.xml: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional> </dependency> 2. Enable … Continue reading [How-To] [IntelliJ] Enable Hot-Reload for spring boot applications

[How-To][Solved]Swagger-Ui not working

Fix Swagger UI Not Working in Spring Boot When setting up Swagger UI in a Spring Boot project, you may encounter issues getting it to display properly. Here is a checklist to troubleshoot and fix Swagger UI: 1. Add SpringFox Dependency Include the SpringFox Swagger dependency in your pom.xml: <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-boot-starter</artifactId> <version>3.0.0</version> </dependency> 2. … Continue reading [How-To][Solved]Swagger-Ui not working

[Java] Rotate array left or right n times

package com.abstractProgrammer; import java.util.Arrays; import java.util.stream.IntStream; public class Main { public static int[] rotateLeft(int[] arr, int numberOfRotation) { int[] temp = new int[numberOfRotation]; int finalNumberOfRotation = numberOfRotation % arr.length; System.arraycopy(arr, 0, temp, 0, numberOfRotation); IntStream .range(numberOfRotation, arr.length) .forEach(i -> arr[i - finalNumberOfRotation] = arr[i]); System.arraycopy(temp, 0, arr, arr.length - numberOfRotation, numberOfRotation); return arr; } public … Continue reading [Java] Rotate array left or right n times

[.Net] [solved] System.ArgumentNullException: Value cannot be null. (Parameter ‘key’)

This exception literally made me go mad, The stack-trace was such a trash for this, that I had to go debugging line by line, anyway, for me and for anyone else I'm posting the solution, which might be the case also for you, I'm also posting the not so useful stacktrace at the end of … Continue reading [.Net] [solved] System.ArgumentNullException: Value cannot be null. (Parameter ‘key’)

[TCS NQT][2021] Find area of circle and print it up to 2 decimals.

both the coding questions of TCS NQT were very easy this time, This is one of them, hidden in the story of Jack who needs to find out the area of his circular ground, and he knows the radius( good for us 😬 ) the only condition is - radius 'r' must satisfy the condition … Continue reading [TCS NQT][2021] Find area of circle and print it up to 2 decimals.

[TCS NQT][2021] Mirror characters of a string

this is another one, wrapped in another story that someone is building a cryptographic program and they need to convert 'a' to 'z' , 'b' to 'x' and so on, Also known as mirror characters - Python - 1st approach chars = [chr(i) for i in range(97, 123)] reversed_char = [chr(i) for i in reversed(range(97, … Continue reading [TCS NQT][2021] Mirror characters of a string