Recent Blogz

Drupal 7: Adding Captcha field in Node creation Form

The captcha will help to control bot and anonymous users content creation in websites. The captcha system makes will make a challenge for every user to confirm whether the user is human or not. These challenges are mainly used for avoiding spam content creations. In Drupal, there some contribute module will help to achieve captcha for Drupal sites.

PHP: TCPDF Font style Change(Adding external fonts)

TCPDF is a PDF library for generating PDF for given content. The Library is open source available on We can download that library to create PDF for our need. This article will demonstrate how to change default font style of TCPDF library with our custom TTF font file.

Drupal 8 formatPlural(): Formatting count sentances with Singulars and Plural

In English grammar, there is importance to display words with proper nouns. The Singular and Plural will help to display sentences with numeric count components. Singular means only one. Plural means more than one. In Drupal 8 we can format both singular and plural values by formatPlural() function of Transulation Modules.

Drupal 8: Creating Hook Alters programatically with Example

The Hook system will provide alter any content from one function from another in Drupal. The Drupal 8 Hook implementation are invoked with help of Core Drupal class function of moduleHandler(). This function will provide the object to execute all hook functions to alter the content.

Learning Swift Programming: Is it Ready for Prime Time?

Apple’s launch this past June of Swift, a new programming language for writing iOS apps, created a great deal of buzz and excitement throughout the iOS developer community. Since its launch, many iOS developers have been struggling with the question of if, how, and when to transition from Objective-C to Swift. The answer to that question will of course be different for every team and every project.

Top 10 Most Common Spring Framework Mistakes

Spring is arguably one of the most popular Java frameworks, and also a mighty beast to tame. While its basic concepts are fairly easy to grasp, becoming a strong Spring developer requires some time and effort. In this article we’ll cover some of the more common mistakes in Spring, specifically oriented towards web applications and Spring Boot.

PHP: Get/Strip particular element from HTML

The below is the sample code for strip a particular HTML element from given string HTML. Using this function we can able to get particular div, span, p, body, article,.. any HTML wrapped element by its class or id. This function accepts 4 parameters, HTML string to get particular Tag, Strip tag name, Identifier name Class or Id and Identifier Class name or Id name.

Drupal 7: Programmatically updating rules with example

Rules are used for trigger any action based on some condition pass. The contribute module Rule is used to achieve this features. We can able to programatically create and update rule action and conditons. The function rules_config_load() helps to load rule object by its name. The rule object will return attributes of particular rule. Using the object of rule we can able to edit its values.