Category Archives: Programming

Git Set UpStream – What Does It Do & How To Use It?

Git Set Upstream

Git –set-upstream is now used as –set-upstream-to. Previously it was used as git branch –set-upstream <remote-branch> (may still work for many) The basic git –set-upstream-to command is demonstrated below with an example. git branch –set-upstream-to <remote-branch> The use of –set-upstream along with the git branch command was ambiguous, so maybe that’s why they have changed […]

How To Append To An Array in Javascript?

JavaScript Append To Array

Different values such as strings, numbers or objects can be appended to an array in javascript in different ways. Append A Single Value To An Array in Javascript The Array.prototype.push method can be used to append values to an array in javascript. //Defined Array var arr = [“A”,”B”,”C”]; //Appending New Value to the defined array […]

Python For Loop – Different Types of For Loops With Examples

Python For Loops

In any programming language, for loops are commonly used for iteration purposes. In Python for loop is used if you want a sequence to be iterated. The sequence could be anything like a list, a dictionary, a string, a set, etc. The usage of for loop in python is similar to most of the other […]

PHP Redirect – How To Redirect With PHP header() Function?

PHP Redirect

Redirection is one of the most popular demands in many of the Web Applications. In PHP, you can easily redirect from one webpage to another with using the inbuilt header function. It is also sometimes called a PHP Redirect function because of its popular use in Redirecting to other webpages. Let’s first understand a bit […]