Monday, March 30, 2020

How to Fix Google Dri­ve Not Down­load­ing Files After Zipping



The zip downloads fail for most users due to the unconsciousness of the download steps. First select the folder or multiple files that you want to download and then click on the Download button & Google Drive will then start zipping your files.. Like I am now downloading a bulk of comics in a single batch so i selected all of them and hit the RIGHT MOUSE BUTTON and clicked the DOWNLOAD option so all the 17 files showing there started zipping




 Once it finishes it, here’s the twist
You will receive  pop-up at the top showing 2 options  1. Leave  2. Cancel


The text says ‘Changes you made may not be saved’. You are offered two options — leave and cancel. A regular user's intuition would be to think that the download for the zipped files will be cancelled by clicking on the Leave button. So they click on Cancel. But that’s totally wrong. Pressing the Cancel button will stop the downloads. As strange as it may sound, you have to click on Leave. Doing that will start the download process of the zipped files.Look at the bottom-left corner of the picture it started downloading.


In case you don’t receive any pop-up, follow the below steps to fix it on Chrome.
Open the link to go to Chrome Pop Up Ads Settings under site setting.

 Just check it is enabled or not , if not enable it and under add section add the url of your drive. This will allow google drive to show popups

This was all for chrome browser but it does not really matter what browser you use just go to settings of that browser and search for Pop Up Ads .rest of the process is same .
GOOD LUCK !!
Share on Whatsapp

Saturday, March 28, 2020

INSTAGRAM NOW HELP YOU TO UNFOLLOW PEOPLE WHO DON'T FOLLOW YOU BACK


Instagram announced the new feature via  Twitter  Essentially, which will help a user can sort their following list

HOW TO ACCESS THE FEATURE 

The new Instagram features will be visible on the following list which is available on the user’s profile. Here, users will see two categories of accounts they follow on Instagram One clubs people whom users have “least interacted with” and the other shows accounts “most shown in feed”. These two categories essentially shows users accounts they interact with and don’t.

WHY

Instagram defines ‘interacting’ as liking posts or reacting to their stories. This list will refresh every 90 days. Similarly, the second list shows accounts of people whose posts appear the most on the user’s feed.  Instagram says the platform is about – being shown content only from accounts users interact with the most.



C++ TUTORIALS : STRUCTURE OF A PROGRAMME IN C++

A Sample C++ Program
Let's start with the short sample C++ program shown here.
 the output here is shown in dev c++
I am coming back to vscode later first understand the lines...

As you can see, this program looks much different from the C subset programs

found in Part One. A line-by-line commentary will be useful. To begin, the header
<iostream> is included. This header supports C++-style I/O operations. (<iostream>
is to C++ what stdio.h is to C.) Notice one other thing: there is no .h extension to thename iostream. The reason is that <iostream> is one of the modern-style headers
defined by Standard C++. Modern C++ headers do not use the .h extension.
The next line in the program is



    using namespace std ;

    This tells the compiler to use the std namespace. Namespaces are a recent addition
    to C++. Anamespace creates a declarative region in which various program elements can
    be placed. Namespaces help in the organization of large programs. The using statement
    informs the compiler that you want to use the std namespace. This is the namespace in
    which the entire Standard C++ library is declared. By using the std namespace you
    simplify access to the standard library. The programs in Part One, which use only the C
    subset, don't need a namespace statement because the C library functions are also
    available in the default, global namespace.

    Now examine the following line.

    int main()

    Notice that the parameter list in main( ) is empty. In C++, this indicates that main( )
    has no parameters. This differs from C. In C, a function that has no parameters must
    use void in its parameter list, as shown here:
    int main(void)
    This was the way main( ) was declared in the programs in Part One. However, in
    C++, the use of void is redundant and unnecessary. As a general rule, in C++ when
    a function takes no parameters, its parameter list is simply empty; the use of void is
    not required.
    The next line contains two C++ features


    So the question arrives 

    What is the Difference Betwwen int main() , void main() ,main()

    Like any other function, main is also a function but with a special characteristic that the program execution always starts from the ‘main’. ‘int’ and ‘void’ are its return type. So, let’s discuss them 
    • void main – The ANSI standard says "no" to the ‘void main’ and thus using it can be considered wrong. One should stop using the ‘void main’ if doing so.

    • int main – ‘int main’ means that our function needs to return some integer at the end of the execution and we do so by returning 0 at the end of the program. 0 is the standard for the “successful execution of the program”.

    • main – In C89, the unspecified return type defaults to int. So, main is equivalent to int main in C89. But in C99, this is not allowed and thus one must use int main.


    cout << "This is output.\n"; // this is a single line comment


    First, the statement

    cout << "This is output.\n";

    This is output. to be displayed on the screen, followed by a carriage returnlinefeed
    combination.You can use cout and the << to output any of the built-in data types, as well as strings of characters.Note that you can still use printf( ) or any other of C's I/O functions in a C++program. However, most programmers feel that using << is more in the spirit of C++.
    Further, while using printf( ) to output a string is virtually equivalent to using << in
    this case, the C++ I/O system can be expanded to perform operations on objects that
    you define (something that you cannot do using printf( ))

    coming to the 

    // this is a single line comment

    You can define a single-line comment
    by using //; whatever follows such a comment is ignored by the compiler until the end of

    the line is reached.

    Next, the program prompts the user for a number. The number is read from the

    keyboard with this statement:

    cin >> i;

    In C++, the >> operator still retains its right shift meaning. However, when used
    as shown, it also is C++'s input operator. This statement causes i to be given a value
    read from the keyboard. The identifier cin refers to the standard input device, which
    is usually the keyboard. In general, you can use cin >> to input a variable of any of

    the basic data types plus strings.
    BAsically what scanf does to c , cin>> does to c++.

    like in the above code user give the value 5 to the computer

    cout << i << "squared is " << i*i << "\n";

    we will deal with this operator later .In short it is just squaring the the number after taking the input from the user by multiplying with itself.

    like in the above code compiler returned a value 25 which is square of 5.



    return 0;


    This causes zero to be returned to the calling process (which is usually the operating

    system). This works the same in C++ as it does in C. Returning zero indicates that the
    program terminated normally. Abnormal program termination should be signaled by
    returning a nonzero value.But without this also your code will run.





    Share on Whatsapp

    Friday, March 27, 2020

    What if you close the lid of your laptop without shutting it down ?

    If you are using other than any mac device and you close the lid of your laptop then the background processes you left while using will be running in background upto the time limit for your device to go into sleep mode.Before going to sleep mode
    every running process will be going (e.g. virus scanning , running downloads etc ) . It also saves your device state as you left it like you were working on an excel or word file , that file state will be saved .so there

    pros 

    1. your machine state will be saved and you will be able to find exactly what you left off
    2. you can go out without saving the file by just putting the lid down
    3. your background processes will run , so you don't have to sit the entire time infront of your screen(NB- upto sleep mode )

    cons

    1. It will consume your battery a lot
    unlike the fact that mac users don't have this problem

    C++ TUTORIALS : SETTING UP THE PROJECT ENVIRONMENT.



    Welcome to journey of C++. I will be showing you how to develop C++ using Visual Studio Code along with the C++ and Easy C++ Projects extensions. So get started

    Downloading Visual Studio Code

    First we will need a code editor or IDE, we will use Visual Studio Code because it is lightweight like Sublime, but has some extra features specially Intellisense. You can download Visual Studio Code here, you will land on a page like this:

    After downloading VSC simply run it and install it
    Make sure to check all the boxes .After installing simply launch it


    Setting up VSC for C++ development

    The first time you open VSC you will see a welcome window. VSC has a very simple layout: a bar on the left with 5 buttons (File explorer, Find, Git integration, Debug, Extensions), a status bar on the bottom and a window with tabs for the editors. Click the last button to open Extensions:

    And search there for c++ extension provided by Microsoft , install the extension

    Next search for Easy C++ Projects, install it.


    Now we are ready to run our first cpp projects.




      Creating a C++ project

      Press F1, a little window will appear with lots of different commands, search for "c++" and click "Create new C++ project":


      Now we will be asked what compiler we want to use, look the Easy C++ extension page for information on how to setup a compiler for your operating system. I will use Windows Subsystem for Linux.          

      Code

      Now that we finished the creation step, VSC will generate the project structure for us, and open main.cpp with some example code:


      If you face problems on coding on vscode you can download
      DEV c++ ide from here . Its not that dynamic but much more easy to use use on the go


      so it's for today ,stay connected and please do share this course among your friends ....




      Share on Whatsapp

      Bill Gates Is Pissed: "We Should've Done More" to Stop COVID-19

      Microsoft co-founder and public health advocate Bill Gates has a gloomy message about the coronavirus pandemic: We missed our chance to mitigate massive harm months ago.
      “There’s the period between where we realized it was transmitting and now where we should’ve done more,” he said during an interview with Chris Anderson, the curator of the famed TED Talks series. He also opined that “everybody should have taken notice back in January.”
      Here’s the full interview:
      Gates — a multi-billionaire best known as the leader and figurehead of software giant Microsoft during its heyday, as well as regularly topping the list of the world’s richest people — has embraced philanthropy and become a fiery advocate for global health in his second act. And in retrospect, some of the magnate’s warnings look strikingly prescient. For example, here Gates's in 2015
      “If anything kills over 10 million people in the next few decades, it’s most likely to be a highly infectious virus rather than a war. Not missiles, but microbes.”
      In his interview with Anderson this week, Gates seems to take aim at U.S. President Donald Trump, who has started suggesting that society ease off the “shelter-in-place” guidelines that are keeping new infections at bay but hammering the economy.
      “It’s very tough to say to people, ‘Hey keep going to restaurants, go buy new houses, ignore that pile of bodies over in the corner, we want you to keep spending because there’s some politician that thinks GDP growth is what counts,’” Gates said in the interview. “It’s hard to tell people during an epidemic… that they should go about things knowing their activity is spreading this disease.”
      Share on Whatsapp