• Skip to main content
  • Skip to footer
  • Home
  • Become An Aficionado (Join Our Mailing List)
BMA

BeMyAficionado

Inspire Affection

Ad example

varunshrivastava

How To Mock SecurityContextHolder in Spring Security using Mockito?

June 25, 2020 by varunshrivastava 2 Comments

Spring Security Mock SecurityContextHolder

Test-driven development is a pretty awesome design process. And while building your code, you may want to mimic the logged-in user. In Spring Security, the logged-in user principal is stored inside the Authentication object. This Authentication object can be accessed from any part of your application using SecurityContextHolder. The SecurityContextHolder is a singleton … [Read more...] about How To Mock SecurityContextHolder in Spring Security using Mockito?

Load Spring Beans Based On Different Profiles Via XML

June 18, 2020 by varunshrivastava Leave a Comment

Load Spring Beans Based On Different Profiles Via XML

While working on a legacy project, sometimes it becomes so hard to find such small pieces of stuff. Recently I faced a similar problem where I had to load spring beans based on the loaded profiles respectively. With Spring Boot and annotation, it has become really easy. Just put the @Profile("profile1, profile2") and it works. Similarly, it is done in XML as well. All you … [Read more...] about Load Spring Beans Based On Different Profiles Via XML

How to Fix A Blunder and Get Squashed Commits Back (Git Undo)

June 11, 2020 by varunshrivastava Leave a Comment

How to Fix a Blunder with Git Squash

There will be times when you will realize "Oh, no! What've I done?". That moment is a classic moment in every developer's life. Usually, it happens right after when you do something silly, and it costs you hours of re-work. We tend to become careless in tasks that we do on a regular basis. And one such task for me was Git Squash. I like my commits to be clean and … [Read more...] about How to Fix A Blunder and Get Squashed Commits Back (Git Undo)

Time Complexity Comparison Sheet Of Elementary Sorting Algorithms

May 29, 2020 by varunshrivastava Leave a Comment

Article on Elementary Sorting Algorithms Comparison Sheet

It is always good to sharpen your blade from time to time. Data structures and algorithms is my sword. Recently, I visited all the elementary sorting algorithms. And it is always fun to understand the complexity and mindset behind it. This time I thought of writing a small program to run all the algorithms against a variable set of inputs to generate the time complexity … [Read more...] about Time Complexity Comparison Sheet Of Elementary Sorting Algorithms

Gitlab CI – SSH Into Virtual Private Server (VPS) Using Private Key From Gitlab CI Pipeline Job

May 28, 2020 by varunshrivastava Leave a Comment

Gitlab CI

Gitlab CI is a pain in the ass sometimes. It was a pain in my ass too. I was stuck for more than 2 hours trying to figure out how to SSH into my own server with my own private key. I tried so many things. And the shit becomes even more frustrating when the same piece of code works on your local but not on Gitlab CI. In my case, it went a step further to test my sanity. … [Read more...] about Gitlab CI – SSH Into Virtual Private Server (VPS) Using Private Key From Gitlab CI Pipeline Job

Long Polling Implementation With Java and Spring Boot

May 14, 2020 by varunshrivastava 11 Comments

Long Polling Implementation With java and spring boot

Long polling is a concept that was being used aggressively in the past. It was the technique that made web feel like real-time. I think a little history would help you to understand better. The Brief History Of Internet If you are old enough then you would know that web in its early days was very boring. And by boring I mean static, no moving parts. It simply … [Read more...] about Long Polling Implementation With Java and Spring Boot

Make Money During A Crisis

April 11, 2020 by varunshrivastava 1 Comment

Make Money During The Crisis Cover

These are hard times. It has almost been a month now that I'm locked in my own house. Only stepping out for the essentials. Whenever we step outside, we make sure to wear masks and gloves. And after returning back home, clean our hands with soap and sanitizers. These times make you think about everything that we take for granted. I'm an IT engineer working from home … [Read more...] about Make Money During A Crisis

Why and How To Start Your Own Blog? (Less Than 10 Dollars)[With Images]

February 20, 2020 by varunshrivastava Leave a Comment

Do you own any public blog? Do you write often? Do you find peace when you sit down with your laptop and start pouring your thoughts on to the white canvas of your screen? Do you love telling stories? Do you enjoy when some stranger comments on your writing/article? Or you simply enjoy writing. If yes, then there is no reason why you shouldn't start your own … [Read more...] about Why and How To Start Your Own Blog? (Less Than 10 Dollars)[With Images]

Principles Of Microservices: How To Architect A Solution

December 31, 2019 by varunshrivastava Leave a Comment

Principles Of Microservices

Every enterprise has its own principles. Principles that takes it towards the goals. Principles that give birth to practices which are the underlying foundation for all the implementation. Similarly, Microservices has its own set of principles that helps its implementer to make the correct decision when given multiple options to choose from. Principles are like … [Read more...] about Principles Of Microservices: How To Architect A Solution

Why Would You Use Microservices (Advantages and Disadvantages)?

December 25, 2019 by varunshrivastava Leave a Comment

Why would you use microservices cover

Microservice is a new hot trend in the Application Architecture Landscape. Everyone in the IT world is talking about microservices. Every enterprise is either working on a microservice or porting their existing monolith to Microservices. This term has become really popular that people outside of the organization are also using it to explain something or the other. In any … [Read more...] about Why Would You Use Microservices (Advantages and Disadvantages)?

« Previous Page
Next Page »

Footer

Become an Aficionado

BeMyAficionado is all about helping you connect, grow, and make an impact—one idea at a time.

Join our mailing list for exclusive how-to guides, insider stories, and free e-books.

Get first access to new posts, tools and resources we only share with subscribers.

Join 874 other subscribers

Recent

  • Is The Cosmos a Vast Computation?
  • Building Semantic Search for E-commerce Using Product Embeddings and OpenSearch
  • Leader Election with ZooKeeper: Simplifying Distributed Systems Management
  • AWS Serverless Event Driven Data Ingestion from Multiple and Diverse Sources
  • A Step-by-Step Guide to Deploy a Static Website with CloudFront and S3 Using CDK Behind A Custom Domain

Search

Tags

Affordable Hosting algorithms amazon aoc-2020 believe in yourself best database earn money blogging education elementary sorting algorithms experience fashion finance Financial Freedom food friends goals google india indian cuisine indian education system java life life changing love make money microservices motivation oops podcast poor education system principles of microservices problem-solving programmer programming python reality seo spring success success factor technology top 5 typescript wordpress

Copyright © 2025 · Be My Aficionado · Log in

Go to mobile version