picture picture
September 22, 2019 Git 0 Comments

How to add git submodule & remove git submodule


Sometimes we require to have external libraries or we have some dependencies on external libraries in order to make our application work in this scenario git submodules comes very handy which creates a mirror folder in our code repository.

It’s not necessary that we always require external libraries as submodule, we can also have our own micro projects as git submodule in repository.

Syntax to add git submodule

git submodule add git@github.com:drupal/drupal.git drupal

Syntax to update git submodule

git submodule update --init --recursive
git submodule foreach --recursive git fetch
git submodule foreach git merge origin master

Above command will update the submodules code from their parent repository.

Syntax to remove git submodule

git submodule deinit <path_to_submodule>
git rm <path_to_submodule>
git commit -m "Removed git submodule"
rm -rf .git/modules/<path_to_submodule>
May 28, 2019 PHP, PHP, Technology 0 Comments

All you need to know about PHP7

I have recently started writing article on medium.com which is becoming very popular portal for all kind of useful technical/non-technical information/articles.

Recently I have written article all about PHP7, tried to give detail information on why we need to upgrade to PHP7, importance of PHP7, security and its newly added features.

Article is divided in 2 parts to cover all information, please visit below links to read detail article.

PHP7 Part 1 – https://medium.com/@sandykadam/php-all-you-need-to-know-about-php-7-af0b94677697

PHP7 Part 2 – https://medium.com/@sandykadam/all-you-need-to-know-about-php-7-x-part2-a7be673a4469

Please click on “Clap” icon below the article on medium.com site & follow me and if you like it then please share with your friends.

Website Content Management System

opensource cmsSo, Do you want to make your own website? Great, for this you need to aware of some Internet technology terms and programming languages. Content Management System (CMS) is easy tool to develop or maintain your website. So now you must be thinking what is a Content management system? How we can install it? which programming language it uses? and many more questions. In this blog I have tried to explain the concept of CMS and some popular CMS in opensource technology.

So what is a Content Management System? Wikipedia definition is something like this:

A content management system (CMS) is the collection of procedures used to manage work flow in a collaborative environment. These procedures can be manual or computer-based. The procedures are designed to do the following:

Drupal Interview Questions – Part 1

All about drupal1. What is Drupal ?
Drupal is an open-source platform and content management system for building dynamic web sites offering a broad range of features and services including user administration, publishing workflow, discussion capabilities, news aggregation, metadata functionalities using controlled vocabularies and XML publishing for content sharing purposes. Equipped with a powerful blend of features and configurability, Drupal can support a diverse range of web projects ranging from personal weblogs to large community-driven sites.

2. What is a CMS ?
A content management system (CMS) is a collection of procedures used to manage work flow in a collaborative environment. These procedures can be manual or computer-based. The procedures are designed to:
— Allow for a large number of people to contribute to and share stored data
— Control access to data, based on user roles. User roles define what information each user can view or edit
— Aid in easy storage and retrieval of data
— Reduce repetitive duplicate input
— Improve the ease of report writing
— Improve communication between users

What is an Open source software ?

what is opensourceOpen-source software (OSS) is computer software for which the source code and certain other rights normally reserved for copyright holders are provided under a software license that meets the Open Source Definition or that is in the public domain.This permits users to use, change, and improve the software, and to redistribute it in modified or unmodified forms. It is very often developed in a public, collaborative manner.

Open source doesn’t just mean access to the source code.
The distribution terms of open-source software must comply with the following criteria:
1. Free Redistribution
The license shall not restrict any party from selling or giving away the software as a component of an aggregate software distribution containing programs from several different sources. The license shall not require a royalty or other fee for such sale.