Chandu yadav

Chandu yadav

810 Articles Published

Articles by Chandu yadav

Page 44 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

FILTER_VALIDATE_BOOLEAN constant in PHP

Chandu yadav
Chandu yadav
Updated on 27-Dec-2019 415 Views

The FILTER_VALIDATE_BOOLEAN constant validates value as a boolean option.ReturnThe FILTER_VALIDATE_BOOLEAN constant returns TRUE for "1", "true", "on" and "yes". It returns FALSE for "0", "false", "off" and "no" otherwise, NULL.Example Live DemoOutputThe following is the output.bool(true)ExampleLet us see another example.OutputHere is the output.bool(false)

Read More

filter_list() function in PHP

Chandu yadav
Chandu yadav
Updated on 27-Dec-2019 492 Views

The filter_list() function is used to list all supported filters.Syntaxfilter_list()ReturnThe filter_list() function returns an array of filters available. It returns an empty array if there are no filters.Example Live DemoOutputThe following is the output.int257 boolean258 float259 validate_regexp272 validate_domain277 validate_url273 validate_email274 validate_ip275 validate_mac276 string513 stripped513 encoded514 special_chars515 full_special_chars522 unsafe_raw516 email517 url518 number_int519 number_float520 magic_quotes521 callback1024

Read More

Learn how to security patches or updates automatically on ubuntu

Chandu yadav
Chandu yadav
Updated on 22-Oct-2019 79 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 592 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 435 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 560 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
Showing 431–440 of 810 articles
« Prev 1 42 43 44 45 46 81 Next »
Advertisements