Aggregation in MongoDB

Content Overview : – What is Aggregation ? What is Aggregation? When it’s time to gather the metrics from MongoDB, maybe for some graphical representation or some other operation, there is no better technique than MongoDBaggregations. Aggregation in MongoDB is an operation used to process the data that returns the computed results.  Aggregation basically groups the data …

Aggregation in MongoDB Read More »

How to install Django using virtualenv

let’s create a virtual environment (also called a virtualenv). Virtualenv will isolate your Python/Django setup on a per-project basis. This means that any changes you make to one website won’t affect any others you’re also developing. For this, we will be using a new directory DhruvPy We will make a virtualenv called myvenv. The general command will be in the …

How to install Django using virtualenv Read More »

PHP array_slice() Function

The array_slice() function returns selected parts of an array. If the array has string keys, the returned array will always preserve the keys. Syntax array_slice(array,start,length,preserve) array: Required. Specifies an array start: Required. Numeric value. Specifies where the function will start the slice. 0 = the first element, -1 = the last element. length: Optional. Numeric …

PHP array_slice() Function Read More »

PHP array_column() Function

Usage The array_column() function returns the values from a single column in the input array. Syntax array_column(array,column_key,index_key); array: Required. Specifies the multi-dimensional array (record-set) to use column_key: Required. An integer key or a string key name of the column of values to return. This parameter can also be NULL to return complete arrays (useful together …

PHP array_column() Function Read More »

6 Ways to Declare JavaScript Functions

1. Function declaration A function declaration is made of function keyword, followed by an obligatory function name, a list of parameters in a pair of parenthesis (para1, …, paramN) and a pair of curly braces {…} that delimits the body code. A function declaration : function isEven(num) {…} is a function declaration that defines isEven …

6 Ways to Declare JavaScript Functions Read More »