Browse all Posts

Drupal 7 - Code for Exporting all your content nodes in json files

Introduction When I migrated all of my drupal-7 website to drupal-8, I wrote automation to import all my old nodes...

Moment.js - How to perform date relatedd arithmetic in javascript/NodeJs

Introduction In your backend and frontend projects, you always need to deal with dates. Some examples are: Get date of...

Drupal: How to detect country and redirect to country specific website by using Cloudflare

Introduction Assume you have a drupal website and using cloudflare. You are having an Amazon affiliate drupal content type, and...

Twig Templating - Most useful functions and operations syntax

Introduction Twig is a powerful template engine for php. Drupal uses it heavily.

Nodejs - Json object schema validation with Joi

Introduction In this post, I will show how to validate your json schema validation across veriety of use-cases.

Mongoose - Using CRUD operations in mongodb in nodejs

MongoDB CRUD Operations Mongoose provides a simple schema based solution to model your app-data. In this post, we will see...

Drupal - How to rename column of a content type

Introduction You already have a content type with one or more fields in it. Later, you realize you should rename...

MySql update query - Update column by string replacement in all records

Problem Statement In a mysql table, I wanted to replace the hostname of the image URLs. And, it will be...

Drupal 8 - How to hide help link About text formats and text format guidelines

Problem In drupal textarea field, it was always a pain to see the two links: Text format showing list of...

Drupal 8 Smart Image Style - Handle aspect ratio for small and long images

Problem Statement I’ve been using image styles, and heavily used “Scale and crop” style, which worked for me in almost...

Drupal 8 Comment module - How to configure comments module from ugly to beautiful - Theming comments module

Introduction Drupal provides a powerful comment module, which comes as a part of core modules. You have to enable this...

Drupal 8 Rules module - How to configure Rules module to send email notification for every comment posted

Introduction In our previous post, where we saw How to configure comments module

Drupal 8 Views - How to merge two fields by hiding another field

Introduction You have a view with 4-5 fields to display. Suppose, there are two fields: payment amount and currency. Where...

How to configure Grafana (Free version) with oAuth Okta, with SSL on Kubernetes

Introduction In our previous post How to configure Grafana on docker, we saw how we can run grafana docker container...

Drupal 8 - How to add custom class to a drupal table view

Introduction Suppose you have a view, and you have configured your display as a table. Drupal provides no way to...

Drupal 8 - How to hide a view block if content is empty

Introduction I have created a view, with some filters and content fields. I will show it under user profile. You...

How to check whether a website link has your URL backlink or not - NodeJs implementation

Introduction I got my seo backlink work done from a freelancer. It was like 3000 links, and usually the links...

Drupal - Using Field Groups for Visually Separating multiple field set (No Coding Required)

Introduction You are having a form having multiple fields. When you render a form, all the fields renders as a...

Drupal 8 - Advanced usage of Paragraphs module - Add nested set of fields and single Add more button (No Coding Required)

Introduction In my previous article, I explained How to have set of fields and single Add More button.

How to regenerate images when you do a style change, and images don't reflect them

Introduction There might be a situation when you are doing some changes in the image style, and you want to...

How to Fix Drupal Mysql error - Communication link failure: 1153 Got a packet bigger than 'max_allowed_packet' bytes

Introduction While this topic may applicable to all mysql/mariadb users who faced this issue. The exact error is:

Drupal - How to add multiple form fields with a single button click (No Coding Required)

Introduction Drupal is an awesome CMS. Drupal content type form, allows you to add fields with unlimited occurence. This is...

How to upload files on AWS S3 by using curl, without having command line aws or other tool

Introduction There were few files that I need to take backup from a machine that I recently launched. The machine...

How to connect to a running mysql service on host from a docker container on same host

Introduction I have a host running mysql (not on a container). I have to run an nodejs app inside a...

How to connect to mysql from nodejs, with ES6 promise

Introduction I had to develop a small automation to query some old mysql data, with given product names. The mysql...

Singleton Pattern with Thread-safe and Reflection-safe, a fresh perspective

What is a Singleton Pattern Following constraints are applied: Where we can restrict the number of instances of a class...

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...