Blog

Page 325 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for How to assign from a function which returns more than one value?
rvariable-assignment

How to assign from a function which returns more than one value?

Published on September 2, 2023

# How to Assign from a Function which Returns More than One Value? šŸ”„šŸ’Ž Are you struggling to assign values from a function that returns multiple values? Don't worry, you're not alone! Many developers find this task confusing, but fear not, we're here to

Cover Image for How to nicely format floating numbers to string without unnecessary decimal 0"s
floating-pointformatjavastring

How to nicely format floating numbers to string without unnecessary decimal 0"s

Published on September 2, 2023

# Nice Formatting for Floating Numbers in Java: Say Goodbye to Unnecessary Decimal 0's! šŸ˜ŽšŸ’Æ Are you tired of dealing with pesky trailing zeros when you print floating numbers in Java? Don't worry, I've got your back! In this guide, I'll show you how to n

Cover Image for Spring Boot - Loading Initial Data
springspring-data

Spring Boot - Loading Initial Data

Published on September 2, 2023

## 🌱 Spring Boot - Loading Initial Data 🌱 Are you wondering how to load initial data into your Spring Boot application's database? šŸ¤” Don't worry, I've got you covered! In this blog post, I'll explain the best way to load initial data and provide you wi

Cover Image for Changing font size and direction of axes text in ggplot2
ggplot2r

Changing font size and direction of axes text in ggplot2

Published on September 2, 2023

# How to Change Font Size and Direction of Axes Text in ggplot2 So, you're plotting a graph in ggplot2 and want to customize the font size and direction of the axes text? šŸ“Š You've come to the right place! In this guide, we'll address the common issues

Cover Image for Spring cron expression for every day 1:01:am
javaspring

Spring cron expression for every day 1:01:am

Published on September 2, 2023

# 🌼 Mastering Spring Cron Expressions for Perfect Scheduling 🌼 Are you struggling to schedule your code execution at a fixed time using a Spring cron expression? 😫 Don't worry, we've got you covered! In this blog post, we'll walk you through the common

Cover Image for PostgreSQL create table if not exists

PostgreSQL create table if not exists

Published on September 2, 2023

## šŸŽ‰ PostgreSQL Create Table If Not Exists: The Easy Way šŸŽ‰ So, you're trying to create a table in PostgreSQL and want to make sure it doesn't already exist before running the script. You're in luck! Just like in MySQL, you can achieve this in PostgreSQL

Cover Image for Setting active profile and config location from command line in Spring Boot
javaspringyaml

Setting active profile and config location from command line in Spring Boot

Published on September 2, 2023

# Setting Active Profile and Config Location from Command Line in Spring Boot 🌟 Welcome to my tech blog! Today, we are going to talk about how to set the active profile and config location from the command line in a Spring Boot application. This is a com

Cover Image for When using Spring Security, what is the proper way to obtain current username (i.e. SecurityContext) information in a bean?
javaspringspring-mvc

When using Spring Security, what is the proper way to obtain current username (i.e. SecurityContext) information in a bean?

Published on September 2, 2023

šŸ”’āš™ļø **Securely Obtaining Current Username in Spring Security with BuenoSecurity** šŸ’Ŗ Welcome to another exciting edition of the BuenoTech blog! šŸ„³šŸ“ Today, we're going to explore a burning question that many Spring Security enthusiasts have: **"What is t

Cover Image for How can I inject a property value into a Spring Bean which was configured using annotations?
dependency-injectionjavaspring

How can I inject a property value into a Spring Bean which was configured using annotations?

Published on September 2, 2023

# How to Inject a Property Value into a Spring Bean Configured with Annotations 🌱 So, you have a bunch of Spring beans that are picked up from the classpath using annotations, but you want to inject a property value into one of them. 🌱 šŸ‘‰ First, let's

Cover Image for Injecting Mockito mocks into a Spring bean
annotationsdependency-injectionjunitmockitospring

Injecting Mockito mocks into a Spring bean

Published on September 2, 2023

šŸŽ‰ **Injecting Mockito mocks into a Spring bean: Easy Solutions!** šŸŽ‰ Do you find it challenging to inject a Mockito mock object into a Spring bean for unit testing? šŸ˜– Don't worry, we've got you covered! In this blog post, we will address common issues a