Chandu yadav has Published 1091 Articles

HTML hreflang Attribute

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:26

218 Views

The hreflang attribute of the element is used to set the language of the url in the area. Following is the syntax −Above, code is the ISO language code set for the language, for example, en for English, fr for French, js for Japanese, etc. Let us now see an ... Read More

Multiple Access with Collision Avoidance (MACA)

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:26

5K+ Views

Multiple Access with Collision Avoidance (MACA) is a medium access control (MAC) layer protocol used in wireless networks, with a view to solve the hidden terminal problem. It also provides solution to the exposed terminal problem. The MAC layer protocol IEEE 802.11 RTS/CTS has been adopted from MACA.Working PrincipleThe MACA ... Read More

Android Notification Example with Vibration, Sound, Action and Big View Styles

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:26

479 Views

This example demonstrate about Android Notification Example with Vibration, Sound, Action and Big View StylesStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.   ... Read More

C++ Program to Perform Sorting Using B-Tree

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:26

433 Views

Here we will see how to get the sorted sequence using B-Tree. The B-tree is n-ary tree. To get the sorted sequences, we can create a B-tree, then add the numbers into it. Here the B-tree can hold maximum 5 nodes. If number of nodes increases, split the node and ... Read More

Template Specialization in C++

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:26

897 Views

In C++, the templates are used to create generalized functions and classes. So we can use any type of data like int, char, float, or some user defined data also using templates.In this section, we will see how to use the template specialization. So now we can define some generalized ... Read More

Changing data type from date to date/time in MySQL?

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:26

852 Views

To change data type from date to date/time, use alter command.alter table yourTableName change yourColumnName yourColumnName datetime;Let us first create a table −mysql> create table DemoTable    (    Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,    LoginDate date    ); Query OK, 0 rows affected (1.26 sec)Insert some records ... Read More

C++ tricks for competitive programming

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:26

446 Views

Here we will see some good tricks of C++ programming language that can help us in different area. Like if we want to participate in some competitive programming events, then these tricks will help us to reduce the time for writing codes. Let us see some of these examples one ... Read More

How do inline variables work in C++/C++17?

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:26

3K+ Views

In C++, we can use the inline keyword for functions. In C++ 17 version, the inline variable concept has come.The inline variable is allowed to be defined in multiple translation units. It also follows the one definition rule. If this is defined more than one time, the compiler merges them ... Read More

How to get number of rows in a table without using count(*) MySQL query?

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:26

774 Views

You can use count(1). Let us first see the syntax −select count(1) from yourTableName;Let us first create a table −mysql> create table DemoTable    (    StudentName varchar(100)    ); Query OK, 0 rows affected (0.84 sec)Insert some records in the table using insert command −mysql> insert into DemoTable(StudentName) values('John ... Read More

IPC through shared memory

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:26

4K+ Views

Shared memory is a memory shared between two or more processes. However, why do we need to share memory or some other means of communication?To reiterate, each process has its own address space, if any process wants to communicate with some information from its own address space to other processes, ... Read More

Advertisements