In Drupal development customizing the theme is an important task overall. So you want to override template for nodes, its a pretty easy job. If you familiar with Drupal 7 node overriding , you may know how to do this. Its not that different in Drupal 8 either. You need to create a custom theme…Continue Reading
How to print the query which is built using db_select() in Drupal
Drupal is well known content management system is being used for all kind of websites. There is a good DB api to write queries in the custom modules. So if someone wants to print the actual sql query when using db_select? Consider the following code
How to change a user’s password using Drush in Drupal?
How do we change a user’s Drupal password from the command line with Drush? Use the following command to run in Drush.
Get the current website id in magento

To get the current running website id. All the Magento web developers may need to write this code while developing a Magento website in one way or another. Find instructions here to download Magento 2 and install.
PHP Redirect 301 permanently

You may want redirect one website to another for some reason. This article show you how to redirect a website to another using php scrips. When you do it should be more search engine friendly at any cost. PHP Redirect Code header(“HTTP/1.1 301 Moved Permanently”); header(“Location: https://www.tutsplanet.com”); exit; Basically you can avoid the first line,…Continue Reading
How To Install and Configure Varnish with Apache on Ubuntu 16.04

Varnish is an HTTP accelerator and it’s a tool for speeding up a server. It used as a reverse proxy for your server, as Varnish as front and Apache as back. Setting Up Note : You should have sudo access to the server in order to install Varnish. First step, executes the below commands this…Continue Reading
The 7 best Drupal 8 free themes

Here we are listing 10 best Drupal free themes. When you start over a website a suitable appearance of your website is very important. When you choose Drupal as a content management system, you can choose from a wide variety of Drupal themes. You can find tonnes of drupal developers offering drupal web design with affordable…Continue Reading
How to Get an RSS Feed for a YouTube Channel

How to get the RSSfeed for a YouTube channel. It’s obvious most of you want to subscribe your favorite YouTube channel on your RSS reader. Let’s say you want to write an application for organizing the youtube videos from one channel. How to Get an RSS Feed for a YouTube Channel So here is the way…Continue Reading
Open a URL in a new tab using JavaScript
Opening a URL in new tab using JavaScript, below snippet will do the trick function OpenInNewTabWinBrowser(url) { var win = window.open(url, ‘_blank’); win.focus(); } You could do it this way calling a direct function, or by adding an event listener to your DOM object. Note: JavaScript, abbreviated as JS, is a high-level, interpreted programming language. It…Continue Reading
Display Date And Time In Linux

How to get the current date and time in Linux OS. To display the current date and time by using command line, you can use below code Open a terminal and type the following command: date It outputs like GST 2017 11:20:30 Feb Even you can use format to print the date and time in…Continue Reading
PHP date() with timezone?

How to get PHP date() with timezone?. PHP date() function returns a string formatted according to the given format string using the given integer timestamp or the current time if there are no timestamp is given. For example, you want print today’s date in Mon 27, Feb 2017. It’s very easy just follow the below…Continue Reading
Lists of time zones with abbreviations

Lists of time zones with abbreviations Abbr. Name UTC offset ACDT Australian Central Daylight Savings Time UTC+10:30 ACST Australian Central Standard Time UTC+09:30 ACT Acre Time UTC-05 ACT ASEAN Common Time UTC+06:30 – UTC+09 ADT Atlantic Daylight Time UTC-03 AEDT Australian Eastern Daylight Savings Time UTC+11 AEST Australian Eastern Standard Time UTC+10 AFT Afghanistan Time…Continue Reading
Server Side Form Validation using Regular Expressions
In server side scripting its mandatory to do the form validation. It’s not another case for PHP. Here I demonstrate the simple PHP form validation using the regular expression.
Why Is My iPhone Battery Yellow? Here’s The Fix.

Why My iPhone battery is yellow? The short answer is The Low Power Mode is on your phone. But you didn’t remember turned on this setting. Let me clear that when your iPhone battery reaches 20% of charge, iPhone will warn you that your battery getting low and asks if you would like to turn…Continue Reading
How to Get Yesterday’s Date Using PHP
Here are some methods to get yesterday’s date using php. This will return format like 19/02/17. You can get more details from PHP’s date function You can change the -1 to -20 to get the 20 days back.
This Netflix Chrome Extension Lets You Access Tons of Hidden Categories
Most of the Netflix customers doesn’t know this fact that a number of categories are hidden from public view in Netflix. But you can enter to this to categories by hitting the direct URL to address bar. Feeling nerdy, only geeks has the access to that. So here comes a handy chrome extension that helps…Continue Reading
Decode to Base64 format
Base64 Base64 is a generic term for a number of similar encoding schemes that encode binary data by treating it numerically and translating it into a base 64 representation. The Base64 term originates from a specific MIME content transfer encoding. Base64 encoding schemes are commonly used when there is a need to encode binary data…Continue Reading
Encode to Base64 format
Base64 Base64 is a generic term for a number of similar encoding schemes that encode binary data by treating it numerically and translating it into a base 64 representation. The Base64 term originates from a specific MIME content transfer encoding. Base64 encoding schemes are commonly used when there is a need to encode binary data…Continue Reading
How do I change my Facebook Page’s name?
First of all, you need to be an admin of the page. It’s not an instant update, as you have to submit the request to Facebook. How do I change my Facebook Page’s name? Follow the below steps Go to your page once you logged in to the facebook. Click About on the left side…Continue Reading
Smule, The Karaoke mobile app

Smule the karaoke app, become heavily famous among music lovers. The app let you sing your favourite track, and giving you are in a recording studio. It’s for the people who practicing for reality shows and sometimes to satisfy your inner passion. Smule invested heavily on social media to make popular this app. Now they…Continue Reading
Hyperloop One will build the first Hyperloop system, will reduce Dubai to Abu Dhabi Journey to 12 minutes

Hyperloop One and United Arab Emirates on their way to developing the first hyperloop system. Hyperloop One announced the first hyperloop system will be in Dubai to Abu Dhabi. “Having signed an agreement with DP World in August to pursue a cargo-based Hyperloop One system at Jebel Ali Port, our focus has now expanded to…Continue Reading
Find the song without knowing the lyrics

Find the song without knowing the lyrics Its annoying when we know how to hum the song but can’t find the name or lyrics of the song. Here we find out some services that let you know how to find the song without knowing the lyrics. 1)Midomi If you have a tune that stuck in…Continue Reading
Amazon launches a dedicated shop for items featured on Product Hunt

Amazon collaborating with Product hunt for a dedicated shopping section in amazon website. The san Fransisco-based startup, Product hunt came so far with startup ideas and supporting startups to sell their dream products. This new collection, called Featured on Product Hunt, is available as a part of Amazon Launchpad online store. Launchpad is a great place…Continue Reading
Replace “\n” with new line characters, using Notepad++

Due to bad formatting you will encounter the below scenario in your day to day work. You may want this file to convert to Excel/CSV. First of all, you want to convert the escaped newline character to real “\n”. You can easily do this via using Notepad++(a free source code editor which supports several programming languages…Continue Reading
How to Exclude a Category from Your WordPress Homepage

In one way or another, you want to hide some posts belonging to one category on the homepage of WordPress blog. This little bit of code help you to do that in a nice way. Write the below code in the file ( Appearance-> Editor ->Theme Functions – functions.php). You can do the same with…Continue Reading
How to Install WordPress -WordPress Installation Tutorial

WordPress is a well-known blogger tool, 60% of websites on the internet occupied with WordPress websites. It’s very easy to install and setup for non programmers. So it made such a tool for bloggers, small scale website owners. Following is a guide to install WordPress on a web server. A web server is a bit…Continue Reading
Comments in HTML
How to use comments in HTML <div id=”content”> <div class=”header”><!–your comment comes here–></div> </div> <!– END div-content–>