Swagger UI is the first choice of every developer and tester when it comes to documenting service APIs. It provides live documentation for the APIs where you can actually send the request and get the things done. It really makes it easy for other people to understand your APIs as well. Whenever you are working on a project that depends on stateless authentication (which … [Read more...] about SWAGGER UI – Enable Token-Based Authentication In Spring Boot
3 Best Life Lessons Learned from Naruto Uzumaki
Naruto is one of the best anime that I have come across. The story revolves around Naruto Uzumaki, an orphaned kid who is mistreated by his fellow villagers because of a past incident, and his conquest to become the Hokage (a title bestowed on the village's leader) so that everybody in the village acknowledge and respect him. The journey that Naruto goes through has abundant … [Read more...] about 3 Best Life Lessons Learned from Naruto Uzumaki
Never Do These 10 Things Ever
1. Never Upload A Mirror Selfie With iPhone You look IDIOT NOT RICH 2. Never Keep Your Smartphone With You While Studying We all know what we do with our smartphones. We do everything except study. 3. Never Go To Sleep Without Planning Your Next Day Always keep a small diary or notebook by your side so that you can quickly jot down … [Read more...] about Never Do These 10 Things Ever
Work From Home Is So Much Better Than Office If You Follow These 5 Tips Religiously
This pandemic has changed our lives so much. A week before I was sitting in the office and working with my colleagues. And a week later I had to rush home because of the lockdown. WFH was not the problematic part, the main problem was that it happened so quickly. And when things move quickly, there is no time to think and plan. Things just happen on autopilot. People … [Read more...] about Work From Home Is So Much Better Than Office If You Follow These 5 Tips Religiously
Coronavirus: Tests carried out in India and the Contemporary World
Over 10 million confirmed novel Coronavirus (Covid-19) cases globally and with more than 1,00,000 cases being detected every day across the world, there is an imperative to ramp up testing. Various testing methods are being employed for this task and we have addressed them one by one in this article. This article also focuses on innovative and rapid sample collection … [Read more...] about Coronavirus: Tests carried out in India and the Contemporary World
Facebook’s Grand Plan found a new lease on life in India by buying a stake in Reliance JIO
Facebook and Reliance Jio new deal has been a talk of the town. FB bought a stake in Reliance Jio for Rs 43,574 crore and became the largest minority shareholder. The deal is a win-win situation for both parties. On one hand, Reliance reduced its debt burden by $21 billion (1,61,035 crore) in 58 days and on the other side, FB is finally set to achieve its grand plan after … [Read more...] about Facebook’s Grand Plan found a new lease on life in India by buying a stake in Reliance JIO
How To Mock SecurityContextHolder in Spring Security using Mockito?
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
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)
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
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