Drupal Code: Fetch Link, Title, Category names, tag names from every article

Problem Statement

You have bunch of articles, say 250 or more. You hired a freelancer to do some SEO stuff. You need to share all the article links, title, tag names etc.

Continue Reading →


Common used Elastic Search queries

Listing down the commonly used Elastic Search queries.

To see all available Index names

GET /_cat/indices?v

Output:

health status index   uuid                   pri rep docs.count docs.deleted store.size pri.store.size
green  open   .kibana HObWTCY_SZOWqShWiQ1vRA   1   1          8            3     55.5kb         27.7kb

Continue Reading →


ElasticSearch: Validation Failed: 1: script or doc is missing

While dealing with ELastic Search documents, you faced this issue while updating document:

ElasticSearch: Validation Failed: 1: script or doc is missing;

Continue Reading →


SEO and Aesthetics - The Web-fonts Balance

Often while designing websites, and writing articles, images not just help in adding to the aesthetics but also cutting through the long slabs of text. More often than not, these images also include text. In fact, sometimes, that when we do not find appropriate images, we simply convert text to images with some cool looking background. There are some websites, for e.g., websites which publish quotations, which would incorporate text in images as this format is more shareable and would get more success via Social Media. Of course, fonts matter too - The same phrase in different fonts will convey different messages.

Continue Reading →


Drupal 7: How to block a user by email programatically

Many times, while administering your drupal website, you must have encountered some spam emails. And, you have no way to contact the users. You might want to block the user.

Continue Reading →


php55w-common conflicts with php-common-5.* | Php issues while installing libraries

I was trying to install mongo extension with pecl.

pecl install mongo

Continue Reading →


Drupal 7: How to save a node programmatically and add an image field from a public URL

Introduction

I have a content type, which has an image field. I want to create many of these nodes programmatically.

Continue Reading →


Drupal 7: How to implement cron tasks (hook_cron and hook_cron_queue_info) that takes much time

Problem Statement

I want certain data to be updated regularly. Cron job is the best place to have such code. The real issue is that the process might take much time that normal cron job’s timeout value exceeds.

Continue Reading →


Drupal Helpful codes for database queries

Being a drupal user from last around 5 years, I used to know small codes for drupal. These codes helps in many ways, in templating, or in writing custom automation etc.

Continue Reading →


How to take Backup from MongoDB and Restore to MongoDB

Problem Statement

In this post, we will learn how to take backup from MongoDB instance, and restore that to another MongoDB instance.

Continue Reading →


Docker image for Drupal 7, and Php extension MongoDB installed.

You have drupal 7 image from docker hub, and want to connect tomongo db via php code.

Continue Reading →


How to add alt attribute of images in all of my drupal articles or other content type

I have a custom content type, and there are around 2000 number of nodes in my website. In all the nodes, there was no alt attribute in the images. And, it was one of the major SEO disaster that I was facing.

Continue Reading →


Docker Push: How to push your docker image to your organization in hub.docker.com

Introduction

I have seen the repeated solution on docker help pages which helps to push your image to your username. Example: ``` First build the image docker build -t .

Continue Reading →


How to connect Php docker container with Mongo DB docker container

Introduction

In this post, I will show:

Continue Reading →


How to get Youtube Video Thumbnail Images

Problem

You know your youtube URL. And, you want to know its thumbnail image that you can use on your website, or somewhere. Note: Video can be any video on youtube.com website.

Continue Reading →


Youtube API in NodeJs, Usage with Example

Introduction

This post is about the usage of nodejs module: youtube-api, which is to query youtube for videos. There are options to search youtube videos, list all videos from a playlist, list all videos from a channel. Also, you can fetch descriptive details about a video.

Continue Reading →


How to use Docker for Drupal 7 Dev envirnoment

I have been using drupal 7 from a long time, and setting up a dev environment always felt bit tricky. Thanks to docker, life becomes easier now.

Continue Reading →


How to install Mongo DB Driver for Php 7.x

The simplest way to install driver for php is using pecl.

Continue Reading →


Youtube Rest API response details

Here, we give exact response from youtube apis.

Continue Reading →


Jquery validate: submitHandler not getting called

Introduction

I’m using jquery to validate my form submitted, and I’ve also defined a submitHandler function on submit of form. But, the issue is that submitHandler is not being called.

Continue Reading →