Sunday, 2 August 2020

Do archive emails helps you to re-claim inbox or drive space in Gmail?

Marking or Moving emails to 'Archive' on Gmail does not help in reclaiming the google drive space.

To reclaim google drive space, you should cleanup unwanted emails, attachments, files, and folders etc...

You may upvote this feature request, and based on the user's feedback google may come up with something to help users reclaiming the google drive space without the need of buying additional storage space.

Upvote this feature request!

Cheers! Please write me back if you have any query or feedback.

Sunday, 28 June 2020

Migrate Yammer from one O365 tenant to another O365 tenant

Can we migrate Yammer from one to another O365 tenant?

Description: As of now it’s not supported to migrate yammer from one MS O365 tenant to another MS O365 tenant. However, you can consolidate multiple Yammer Network between verified domains using Network Migration tool from Yammer Admin Center.







Reference Microsoft's KBs:

Cannot migrate a Yammer network across Office 365 tenants

Network migration - Consolidate multiple Yammer networks

 

Cheers, Please write me back if you have any query or feedback on this.

Friday, 26 June 2020

Loop concepts

Understanding Loop concepts

In programming, some statements are required to be executed several number of times. Suppose programmer has to execute some statements (like print statement) huge number of the times , but writing the statement huge number of times is a way more time consuming and considerably increases the lines of code.  To make this handy, loop comes into play.

Loop is one of the most powerful and basic building blocks of computer programming. Loop let you write code which needs to be repeated several times in a very efficient way. Just write the code once with some loop conditions and run the code any given number of times.

Loop consists of body and iterating conditions:

Loop body holds the code which needs to execute many times,                                                                       Iterating conditions allows you to write start, stop and iteration  conditions for the code.

Here is the general syntax for the loop:

Loop(start; stop; iteration) {

//  statements

//  statements

}

How loop works

First starts with the start value followed by checking stop condition, if the condition holds true then enters to the loop body and start executing statements inside body and after executing the last statement inside loop body , again the executing pointer moves to the top of the loop statement and perform the iteration condition followed by checking the stop condition and if the condition holds true same steps will be performed until the stop condition becomes false and after getting the false stop condition,  the executing pointer moves to the next statement after loop statement.

Example explaining the working of the loop using for loop:

for( start=0; start<5; start++ ) {

   printf(“loop concepts”);     // prints the string five times

}                                                                                                                                        

Steps:

  •  start=0 and check if start < 5; true
  •  enter inside the loop body and execute print statement
  •  move to the top of for loop statement and increment the start by 1 and check if start < 5; true.
       Repeat the 2nd and 3rd steps until start < 5 becomes false, after that jump out of the loop.

  Output:

loop concepts

loop concepts

loop concepts

loop concepts

loop concepts

Monday, 22 June 2020

Why indexing in array starts with 0 ?


Array Index starts with zero

In most common programming languages, the indexing in array starts with zero (0). The reasons behind this are:

In programming languages like C and C++, the array name refers to the location in the memory which means the array name simply points to first element of the array and array[n] refers to the location of n-elements away from the first element. Here, n is used as an offset from the array’s first element. So the first element is at zero (0) distance away from the array. That’s why array index starts with zero.


Performance overhead:

Zero (0)-based index allows array[n] to be implemented as *(array + n). If index were one (1)-based, compiler would need to generate *(array + n - 1), and this "-1" has some performance overhead. As this extra subtraction instruction lowers the performance to low extent but this adds up to a lot when one has to write for the Compiler.  

And the common programming languages developed after C and C++ follows the same design logic for the indexing of the array.

Here is the proof:

#include <stdio.h>

int main()
{
    int array[5] = {1, 2, 3, 4, 5};
   
    printf( "Array location: %p\n", array );

   printf( "Array location of first element: %p\n", array[0] );


}

 

Output:

Array location: 0x7ffde4bf25b0
Array location of first element: 0x7ffde4bf25b0

 

See the output above, both array and array[0] refers to the same memory location.