Browse all Posts

How to configure Grafana (Free version) with oAuth Okta, with SSL on Docker,Nginx and Load dashboard from json

Introduction In this post, we will see: use Grafana Community Edition (Free version) Configure oAuth Okta to login as the...

How to sync Mongodb data to ElasticSearch by using MongoConnector

Introduction This post is about syncing your mongodo database data to ElasticSearch. There might be several scenarios where you want...

How to run MongoDB replica set on Docker

Introduction This post is about hosting MongoDB replica set cluster with dockerised images.

How to run ElasticSearch cluster on Docker with Kibana on Linux

Introduction This post is about hosting ElasticSearch cluster on dockerised environment. We are also running Kibana configured on running ElasticSearch...

How to use NPM Rest API to get audit (npm audit) result

Introduction Npm has a tool called: npm audit which reports if your packages or libraries are having any known vulnerability...

How to solve java issue - could not load main class - Visual Studio Code

Assuming you have a java project and is using Visual Studio Code as IDE. All of your programs were running...

Solving Jboss Wildfly Oracle JDBC driver problem, with Dockerfile

Assuming your web application is using oracle, and you are deploying your app on Jboss wildfly. If you run on...

How to take Mongodb Backup and Restore

Pre-requisite Assuming you have a mongodb database, and you want to take backup and restore it somewhere. Lets see how...

Implement a command line shell by using Command Dispatcher in Python

Lets implement a command shell by using a command dispatcher. The objective is to have an event loop which is...

Multithreading in Python, Lets clear the confusion between Multithreading and Multiprocessing

So, you want to run your code in parallel so that your can process faster, or you can get better...

Implementation of Timeit function, Get performance numbers for a function

This is regarding the timeit implementation in python. The basic requirement comes when you want to see how much time...

React JS router not working on Nginx docker container

Problem Statement I developed a simple ReactJS application where I have used BrowserRouter, and have 4-5 different url paths, which...

Visual Studio Code - How to associate file extension to a known programming language

Problem Statement I have a drupal module, where there is a file of extension .module, which is a php file....

Java - Union and Intersection of two lists

Suppose you have two lists, and you want Union and Intersection of those two lists.

Best Principles in Software Designing

It is very easy to build a software or app. But, it is trickier to have a good design that...

Python 3 - Magical Methods and Tricks with extremely useful methods

This post will show some really awesome tricks in python.

Git shortcuts - Helpful shortcuts for git users

Github is an awesome place of storing your code. Now, it also allows you to have private repositories for free....

Python 3 - Fun with Python String

This post some useful tips of using strings, and some issues while dealing with strings

Python 3 - Format String fun

This post is dedicated for cases where we intend to append a variable value in a string, whether in logs,...

Drupal 8 - How to show view user data to owner user only

Introduction to Problem I have some data related to users. For example: which are the files users have downloaded. This...

Understanding and Solving pylint errors for Python 3

Pylint is an excellent tool to have good quality code. This post is not about how pylint works. Lets see...

Eclipse/STS IDE showing compilation errors in java code inspite of all dependencies installed

I have a Java project and dependencies are being managed through maven. I have installed all dependencies, and each library...

Docker: unauthorized: incorrect username or password.

While running docker commands with some images, I started getting error: unauthorized: incorrect username or password.

Python: How to generate string of arbitrary length of any alphabet characters

I was testing a bug where a field was limited to 255 characters only. I needed to generate a string...

Mac showing strange incorrect month name

Introduction to problem So, on my mac, I’ev set timezone to my local city i.e. Delhi (India). Still, the name...

How to Use Google Fonts in Website design with Bootstrap

If you are using Bootstrap, the default font that comes with the package is pretty simple and is not classy....

How to Fetch JSON of all Videos of a Youtube Channel

Youtube APIs are great way to fetch details about video or channels. I’ve written a nodejs module for youtube api,...

How to Make Sticky Block in Sidebar using Bootstrap

Note: This is based on bootstrap-4

Drupal 8: Bootstrap Sticky is not sticky in Drupal 8 - Solved

Bootstrap has a simple solution to have sticky blocks in your html. I’ve given a simple example in my previous...

How to Protect Git branch and Enforce Restrictions

In previous article: Effective Git Branching Strategy, I discussed Git branching strategy and how you can follow best practices to...