How to Enable YouTube’s Hidden Dark Mode Layout!

youtube dark mode

You may have already heard about the New layout for YouTube and also along with it a new secret YouTube’s Hidden Dark Mode feature. That’s been tested in the past couple months some people small number of people have been getting this test randomly but now you can actually enable it manually yourself if you want to.

So, the first way to do this is all the way at the bottom of the page on YouTube you can click the link that say test out new features and it will take you to the good old test tube for YouTube and it should have a way to test out the fresh new look for YouTube and you just enable it and then that should make YouTube look much different although the general layout is the same just looks much more fresh I guess as they just said.

YouTube's Hidden Dark Mode

If you don’t have this link to enable it in the test tube you can actually go into the google chrome console in the developer mode and enable it with the following command:

Dark Mode Console Command:

document.cookie=”VISITOR_INFO1_LIVE=fPQ4jCL6EiE”

To enter in Chrome Console just press ctrl+shift+ and type the above code in the console press ENTER and that should enable the new layout.

With this new layout if you want to enable the dark mode you can go to just click the avatar top right like you normally do except this time the menu looks a little bit different and there’s an option to enable dark mode and it does exactly as it says you just click it and it makes the layout for YouTube from white to black.

So this could be useful especially if you tend to watch youtube videos late at night definitely a good thing to know about.

If you don’t like it you can disable it as well at the bottom right of the screen there is a little icon with a man running out of door and if you click that it restores the old version of YouTube and goes back to normal at least for now eventually I’m sure they’ll make it of course so you can’t disable it but for now while it’s just being tested you can.

youtube dark mode

Learn The Write Way to Code in C++ | Part 4 Getting data from user and displaying it on screen

Learn The Write Way to Code in C++ | Part 4 Getting data from user and displaying it on screen

What will you learn in this lesson..

1) Declaring string variables..
2) String concatenation..
3) Getting input from user and storing in variables.
4) Printing out all of the data to console screen..

If you haven’t already seen our previous tutorials please read them first then continue with this one..

Lesson 1Lesson 2

Lets begin.!!!!

let straight dig in program.


1
2
3
4
5
6
7
// this statement includes the header files to our program
#include <iostream>
using namespace std;// this statement includes the namespace by the name std
int main (){
cout << "Enter your name "; // informing user to enter data
return 0; // just for terminating the program
}

Output


Now lets break down this chunk of program we will in the first like of this program we included the ios stream header file in our program which will allow us to use certian statments like cout, in the second like of the program we included namespace std.In the third line we started main function and as disuccess in our previsou tutorials cout prints out the string to console screen or in fact in prints our even any thing to screen, then in the last line we returned back the control.

Now let move forward


1
2
3
4
5
6
7
8
#include <iostream>
using namespace std;// this statement includes the namespace by the name std
int main (){
string name = " This is second string "; // declaring variable name
cout << "Enter your name "; // informing user to enter data
cout << "First string" << name << "Third string";// concatenation
return 0; // just for terminating the program
}

Output


Now lets break down this again well what we are doing here is we declared a string variable by the name of “name” and we assigned string to it.After that we we concatenated the string and variable to gather and printed them.

Just a bit about concatenation when we are willing to combine two string we do it by writing just the “<<” under one cout statement its similar to.


1
2
3
4
5
cout << "First string" << name << "Third string";
to
cout << "First string";
cout << name;
cout << "Third string";

Now that we are done with concatenation.The next thing is getting data from user.


1
2
3
4
5
6
7
8
9
// this statement includes the header files to our program
#include <iostream>
using namespace std;// this statement includes the namespace by the name std
int main (){
string name; // declaring variable name
cout << "Enter your name "; // informing user to enter data cin &gt;&gt; name. // getting data from user and saving it in name cin &gt;&gt; name; // getting data from user
cout << "My name is " << name << " and I am a programmer"; // concatenation
return 0; // just for terminating the program
}

Output



Now here we have just added one statement and that is cin which takes data from user and stores it in variable.Now to clear out the screen you just need to use one system(“cls”) but it will not work untill we add one more statement and is #include .


1
2
3
4
5
6
7
8
9
10
11
// this statement includes the header files to our program
#include <iostream>
#include <conio.h>
using namespace std;// this statement includes the namespace by the name std
int main (){
string name; // declaring variable name
cout << "Enter your name "; // informing user to enter data cin &gt;&gt; name. // getting data from user and saving it in name cin &gt;&gt; name; // getting data from user
system("cls");
cout << "My name is " << name << " and I am a programmer"; // concatenation
return 0; // just for terminating the program
}

If you didn’t understand what’s going on don’t worry please watch the video we hope that will help you..

https://youtu.be/4ZGW2xh_JJA

That’s pretty much it for this tutorial if you have any problem or any question please leave a comment down below…

Structure of a program

Structure of a program

Learning a programming language is quite easy from many ways but the simplest way is by writing programs. At the intital or first program for beginners is called “Hello World” which will be simply printing “Hello World” on your computer screen. Although this is a simple program, it contains all fundamental components that the C++ program is having.

Structure of a program

1      // my first program in C++                                                              Hello World

2

3      #include <iostream>

4

5      int main()

6      std::cout << “Hello World!”;

7      {

}

 

The left panel that is above shows that the C++ code to this program, the right panel show the result when the program is executed. The numbers that are the panels are line numbers to make discussing programs and also researching errors easier which are not part of the program.

Line 1: // my first program in C++

The two slash signs show the remaining of lines that is comment and inserted by coder or programmers. It doesn’t have any effect on program. The programmer uses them to include brief explanations or evaluations that are concerning the code or program.

Line 2:  #include <iostream>

A sign (#) is using at the beginning of lines that is directives read and can be translated by pre-processor. Some of the special lines that are interpreted before execution of the program. In this case the directive #include <iostream>, that instructs the preprocessor for including a section of standard C++ code that is called header iostream. Afterall it performs standard input and output operations like writing the output of this program on the screen (Hello World).

Line 3: A blank line

In the blank line only the readability of the program is done and there is no effect on the program.

Line 4: main ()

This line is important which starts the declaration of a function that is a collective of code statements and given name. It gives the name “main” to the group of code statement and function is introduced with a succession of a type (int), a name (main) and a pair of parenthesis (()) along with a parameter which is optional.

Function name “main” is a special function in all C++ program and it is also running a program. This is the first stage of executing and the execution of all the program is begin with the main function.

Line 5 & 7: {and}

In this line (5) the open brace ({) expresses the starting of main’s function definition and the closing brace (}) in line 7 shows the ending stage. Between these braces everything included is called functions body.

Line 6:  std::cout << “Hello World!”;

In this line it has been stated the C++ statement line and show which can produce some effects on the program. All the Statements are compiling a fix order that they appear within a function’s body. Statement is having three parts that are following

1: std:: cout. This is the part that point out the standard character output device.

2: Insertion operator (<<) This part shows what follows is inserted into std:: cout.

3: Sentence in quotes (“Hello world!”) The last part shows that the content inserts into the standard output.

https://www.youtube.com/watch?v=qm8HIC4_ngs

Note:

Statement ends with a semicolon (;) which marks the end of the statement. It is used just like a period in English sentences.

In the programs all the lines are performing actions when the code is executed, there is a line in comment that is beginning with //. Another line with a directive for the preprocessor that is beginning with # and finally the last line that defines a function called main function.

The structure in a program has a very important role and structured lines are very important because all program has been structured in different lines. It has made very easy to understand by the humans reading. C++ is not having strict rules to get the instructions in different lines. Following are few examples for your understanding,

1
2
3
4
int main ()

{std::cout << ” Hello World!”;

}

 

It is the same we could have written like, int main () {std::cout << “Hello World!”; }. So all are in a single line and having the same meaning as the preceding code.

In C++ separation between statements known as with ending semicolon (;) some of the statements can be written in a single line, or it’s also possible to write each statement in its own line. The division of code in different lines serves just to make it easy for reading.

This is a statement of our first program,

 

1
2
3
4
5
6
7
8

 

// my second program in C++

#include <iostream>

 

int main ()

{

std::cout << “Hello World! “;

std::cout << “I’m a C++ program”;

}

 

Hello World! I’m a C++ program

 

Here in this program performed two insertions into std::cout in various statements, the separation in different lines of code provide greater readability to the to the statements. Anyhow the main is perfectly is valid defined in this way.

Just have a look to the simple example,

int main () { std::cout << ” hello world! “; std::cout << ” I’m a C++ program “; }

The source code divides into more code lines in place and it will give the same result like in previous.

 

1
2
3
4
5
6
7

 

int main ()

{

std::cout <<

“Hello World!”;

std::cout

<< “I’m a C++ program”;

}

 

Comment

We already have mentioned that comment can’t affect the operation of the program but can gives essential tool to document with source code. The source code is done by the program and know it operator.
C++ is able to support two ways of commenting code:

1

2

// line comment

/* block comment */

 

First one is known as Line Comment and discharged everything from where the pair of slash signs (//), the second one is known as Block Comment that discards everything between the /* characters and first appearance of the */ characters.

Now here lets add comment to second program:

 

1
2
3
4
5
6
7
8
9
10

 

/* my second program in C++

have too comments */

#include <iostream>

int main ()

{

std::cout << “Hello World! “;  // prints Hello World!

std::cout << “I’m a C++ program”; // prints I’m a C++ program

}

 

Hello World! I’m a C++ program

 

Whenever you includes the comments within source code of a program without using the comment characers combination //, / or /. Then compiler takes them as if they were C++ expressions, this is the reason while compilation creating errors or to fail.

Using of namespace STD

Have you ever seen C++ code? You might have seen cout instead ofstd::cout both are the same object, the first one is using for an unqualified name (cout) and the second is for qualifies it directly within the namespace STD (as std::cout).

In case you want to refer the element in the STD namespace, a program will qualify and the use of elements of the library, or introduce visibility of its components. In addition, the use of declaration in programming is typical way to introduce visibility of these components.

using namespace std;

 

The upper declaration permits the entire elements in the STD namespace to access in an unqualified manner. The last example can write for making unqualified use of cout like;

1
2
3
4
5
6
7
8
9
// my second program in C++

#include <iostream>

use the namespace std;

int main ()

 

{

cout << “Hello World! “;

cout << “I’m a C++ program”;

}

Hello World! I’m a C++ program

 

https://www.youtube.com/watch?v=l9dLaLqllVg

Conclusion

In C++ the two ways are using to access the elements of the STD namespace are valid. Well, if you keep on learning from our notes so we guarantee that neither collisions nor mistakes will happen. We hope that you will learn enough about C++ from this our notes and article. Finally, you can visit our website on WWW.INTERNETSEEKHO.COM

Every new programmer should know these 7 things about coding

Every new programmer should know these 7 things about coding

Business of writing code is important to every programmer whether recently introduces to the software world or before. It is also necessary to be known about the code for living that could not be learning to you by coding institute or any university faculty or courses -Every new programmer should know these 7 things about coding

If you are having a fresh graduated developer job or the first one that is started is in the past about the programming, so you have to follow the advices that we are going to tell you about. In this article we want to aware you about the 7 important things about coding for new programmer.

To Know About the Underlying System

You might know that the main part of software development is the programming language and which very important for all the developers about the situations going on with them.

According to an engineer sayings “many languages are abstracted from the level of the system level and the abstraction is more important for allowing the developers being productive for most time”

There are some nasty or terrible bugs such as roadblock, when you hit it then you need the solution of it that could be the useful skill to make you eligible for debugging of all sorts of processes.

Knowledge of Command line tool

Most of the opportunities for being developers are very useful and also need of your time that you are working on any code editor and IDE. The more you want to know about executing things on command line will make your life easier.

A competent young programmer had told to IT World that most of the time tools are very limited and you try to find yourself on device or machine where other stuff has to be done on the spot. Tools mean here find, comm, diff, vi/vim, sed, awk.

Debugger is your close friend

Being a coder your most time is required to tracking down the errors. We want to mention the advantages of debugger and the importance of it to the cost of the time.

How to use debugger?

It needs a day or two for configuration and when you could not find or reach to expected result just start debugging which will save your days of frustration and may be perform even the better, you can easily learn about programming just by reading once of others code.

Learn for writing test

Most of the developers guess to write tests for authenticating the tiny unit of code. One of the database developers has mentioned that the best thing is for learning program means to learn to write good tests and learn to write it very early to the process. So you have to finish it out before the expected time that is required to write.

Plan for changing and learning new systems

With the changing of the technology world fast these days underlying system, languages and tools which are used by programming also get change.  Most of the experts have suggested that new codes need to be prepared and keep stay ahead of changes. Most of the time projects are not written in one language using one framework because it will keep changing from one language to another and from one project to another.

Play well with others

It is the usual that programmer must work alone but developers still have to work with other people. An expert developer said “Big projects mean lots of moving parts coming together and how they fit together and divide up the problem can create impossible engineering problems if you aren’t careful”

So if you are a part of a team, you must give good reply to the others and it is a good part of your career too.

Don’t be afraid to code yourself out of job

We want to mention the advices of the expert developers that are the first blush it is a kind of promotion to code yourself out of job. You have to find a simplest way for solving problems that make your code careful and it will impact very good on your career because the code is important to you for career.

So that’s all these are the important things for coding to every new programmer and we hope you can learn a lot from our article.

https://www.youtube.com/watch?v=a6AHC65eKxw

 

 

 

 

 

How to Make Banner in Photoshop

make banner in photoshop

Advertisement is a useful way of promoting all kind of businesses and help to expand the business. However, if you have enough information of making banner in Photoshop for ads, so that’s why in this article we are going to give you easy steps that how you will create banner in Photoshop for different Advertisements-How to Make Banner in Photoshop.

Read moreHow to Make Banner in Photoshop

Easy and Quick Ways to Remove a Background in Photoshop

remove background in photoshop

This is the Photoshop that has provided different tools and techniques to create different sort of changes in image. The changes may occur background, body of images, cleanness, color and many other changes.

Read moreEasy and Quick Ways to Remove a Background in Photoshop