Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Articles by Chandu yadav
Page 44 of 81
exit() function in PHP
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 MoreFILTER_VALIDATE_BOOLEAN constant in PHP
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 Morefilter_list() function in PHP
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 MoreLearn how to security patches or updates automatically on ubuntu
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 MoreGreat tools to check linux disk partitions and usage in linux
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 More8085 program to alternate D0 bit with specified delay
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 MoreFiber Optics vs Satellites
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 MoreWhat is the equivalent of EXCEPT in MySQL?
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 MoreMultiple Access with Collision Avoidance (MACA)
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 MoreAndroid Notification Example with Vibration, Sound, Action and Big View Styles
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