Chandu yadav

Chandu yadav

810 Articles Published

Articles by Chandu yadav

Page 47 of 81

exit() function in PHP

Chandu yadav
Chandu yadav
Updated on 30-Dec-2019 1K+ Views

The exit() function prints a message and exits the current script.Syntaxexit(msg)Parametersmsg − The message to write before exiting the script.ReturnThe exit() function returns nothing.Example

Read More

Learn how to security patches or updates automatically on ubuntu

Chandu yadav
Chandu yadav
Updated on 22-Oct-2019 81 Views

Are you using Ubuntu Server or Ubuntu system? then you should also be aware that, high profile banks are likely to be targeted by criminals looking for Server information/Files. Should you really worry?. maybe! This article provides you awareness on – Installing Security Patches for updating automatically on Ubuntu.Use the following command to install security patches automatically on Ubuntu$ sudo dpkg-reconfigure -plow unattended-upgradesWhile installing packages, it will ask permission from user as shown below –Now click on Ok by pressing enter key. Then, it will show the following screen as shown below-Now click on OK by pressing the enter key. The ...

Read More

Great tools to check linux disk partitions and usage in linux

Chandu yadav
Chandu yadav
Updated on 22-Oct-2019 594 Views

Are you working as a system admin, then you should know these tools to manage disk space. This article explains about how to check Linux Disk Partitions and Usage in Linux.FdiskFdisk is a text based utility. By utilizing fdisk, you can create a brand new partition, delete the present partition, or exchange existing partition.To get the more information about fdisk, use the following command –$ fdiskThe sample out should be like this –Usage: fdisk [options] change partition table fdisk [options] -l [] list partition table(s) Display or manipulate a disk partition table. Options: -b, --sector-size       ...

Read More

8085 program to alternate D0 bit with specified delay

Chandu yadav
Chandu yadav
Updated on 07-Oct-2019 437 Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to alternate the D0 bit and send as output.Problem StatementWrite 8085 Assembly language program to alternate D0 bit. And send this as output.DiscussionAlternating D0 bit and sending as output is like generating the square wave. We are adding extra delay in each phase. To generate square wave with 8085, we will rotate 10101010 (AAH) continuously, and send D0 as output. We will mask the accumulator content by 01H. If this is 0, then output will be 0, if it is 1, output will ...

Read More

Fiber Optics vs Satellites

Chandu yadav
Chandu yadav
Updated on 03-Aug-2019 4K+ Views

Fiber optic communications and satellite communications are complementary to each other. Their properties are very different from one another and consequently their usage varies.Comparison between satellite communication and optical fiber communication can be done based upon the following areas −TerrainSatellite communication is best suited for rough terrains, poorly connected areas and places where it is difficult to lay wires.On the other hand, fibers are suited for urban areas with good infrastructures, where it is convenient to lay communication lines.BandwidthFiber optic promises extremely higher bandwidth with negligible electromagnetic interference. Satellites have lesser bandwidth and are prone to interferences.Data Rate and DelayThe ...

Read More

What is the equivalent of EXCEPT in MySQL?

Chandu yadav
Chandu yadav
Updated on 30-Jul-2019 4K+ Views

You cannot use EXCEPT in MySQL, instead use the NOT IN operator. Let us first create a table −mysql> create table DemoTable    (    Number1 int    ); Query OK, 0 rows affected (0.71 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values(100); Query OK, 1 row affected (0.14 sec) mysql> insert into DemoTable values(200); Query OK, 1 row affected (0.13 sec) mysql> insert into DemoTable values(300); Query OK, 1 row affected (0.13 sec)Display all records from the table using select statement −mysql> select * from DemoTable;This will produce the following output −+---------+ | ...

Read More

Multiple Access with Collision Avoidance (MACA)

Chandu yadav
Chandu yadav
Updated on 30-Jul-2019 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 protocol works with the condition that the stations are synchronized and frame sizes and data speed are the same. It involves transmission of two frames called RTS and CTS prior to data transmission. RTS stands for Request to Send and CTS stands for Clear to Send.Let us consider that a ...

Read More

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

Chandu yadav
Chandu yadav
Updated on 30-Jul-2019 561 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.     Step 3 − Add the following code to src/MainActivity.javapackage app.tutorialspoint.com.notifyme; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.support.v4.app.NotificationCompat; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; public class MainActivity extends AppCompatActivity {    private final static String default_notification_channel_id = "default";    @Override    protected void onCreate (Bundle ...

Read More

C++ Program to Perform Sorting Using B-Tree

Chandu yadav
Chandu yadav
Updated on 30-Jul-2019 502 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 form new level. As the nodes are holding few number of elements like 5 (at most), we are using Bubble sorting techniques to sort them. as the number of elements is very low, then it will not affect too much on its performance.After traversing the tree, we will get all ...

Read More

Template Specialization in C++

Chandu yadav
Chandu yadav
Updated on 30-Jul-2019 993 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 template for different types of data. And some special template function for special type of data. Let us see some example to get better idea.Example Code#include using namespace std; template void my_function(T x) {    cout

Read More
Showing 461–470 of 810 articles
« Prev 1 45 46 47 48 49 81 Next »
Advertisements