Linux
Add JWT Authentication to your Swagger API docs
In this tutorial let’s discuss how to add authentication to your Swagger APIs, specifically JWT. Your APIs should be authenticated with some authentication schemes to secure them from online attacks. Advertisements Once you implement Swagger UI for your RESTful APIs, the next step is add authentication. Swagger supports the following authentication schemes. In this tutorial, … Read more
Arrays – DS – Hackerrank Challenge – Java Solution
This is the Java solution for the Hackerrank problem – Arrays – DS – Hackerrank Challenge – Java Solution. Source – Java-aid’s repository.
Pass arguments to your node.js app from pm2
In this post you will learn how to pass arguments to your node.js when you use pm2 to run your node.js application. You can pass arguments to your node.js app using either of the following commands. node index.js dev npm start dev Here I send the value ‘dev’ to the node.js app which can be received using the following … Read more
Error response from daemon: conflict: unable to delete (must be forced) – image is being used by stopped container – Docker error – How to fix?
In this post you will learn how to fix the Docker error – Error response from daemon: conflict: unable to delete (must be forced) – image is being used by stopped container. This error occurs when you try to delete a docker image. docker rmi 2938e0bbe9a7 Error response from daemon: conflict: unable to delete (must … Read more
Zsh vs Bash – Which one you should be using?
Z-shell (or Zsh) is an interactive Bourne-like shell and a powerful command-line tool for scripting language including shell scripting. It’s known for its abundance of interactive and customizable features. Zsh users often cite its many advantages and credit it for its efficiency and extensive customization. Bash and zsh are both powerful shells and share many … Read more
bad SQL grammar [SELECT JOB_INSTANCE_ID, JOB_NAME from BATCH_JOB_INSTANCE where JOB_NAME = ? and JOB_KEY = ?] Spring Boot / Spring Batch error. How to fix?
Reason for this error : Spring Boot / Spring Batch needs default tables where it can track the batch job related information. If the tables are not available in the database, we need to allow Spring to create them. To configure this please add the following line in application.properties: If this doesn’t work, you can … Read more