Display Errors in PHP File

Alok Prasad
Updated on 07-Oct-2023 02:49:53

39K+ Views

A PHP application produces many levels of errors during the runtime of the script . So in this article, we will learn how to display all the errors and warning messages. The quickest way to display all php errors and warnings is to add these lines to your PHP code file: ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); The ini_set function will try to override the configuration found in your php.ini file. If in the php.ini file display_error is turned off it will turn that on in the code. It also set display_startup_errors to true to show the error message. error_reporting() ... Read More

Execute Java Program Without a Main Method

raja
Updated on 07-Oct-2023 02:45:53

31K+ Views

Yes, we can execute a java program without a main method by using a static block.  Static block in Java is a group of statements that gets executed only once when the class is loaded into the memory by Java ClassLoader, It is also known as a static initialization block. Static initialization block is going directly into the stack memory. Example class StaticInitializationBlock{    static{       System.out.println("class without a main method");       System.exit(0);    } } In the above example, we can execute a java program without a main method (works until Java 1.6 version). ... Read More

Characteristics of DBMS

Bhanu Priya
Updated on 07-Oct-2023 02:36:26

36K+ Views

There are so many characteristics of a database management system, which are as follows − A database management system is able to store any kind of data in a database. The database management system has to support ACID (atomicity, consistency, isolation, durability) properties. The Database management system allows so many users to access databases at the same time. Backup and recovery are ... Read More

Find Vowels in a Given String Using Java

Arushi
Updated on 07-Oct-2023 02:01:20

38K+ Views

You can read a character in a String using the charAt() method. To find the vowels in a given String you need to compare every character in it with the vowel letters. Example Live Demo public class FindingVowels {    public static void main(String args[]) {       String str = new String("Hi Welcome to Tutorialspoint");       for(int i=0; i

Protection and Security in Operating System

Kristi Castro
Updated on 07-Oct-2023 01:35:24

33K+ Views

Protection and security requires that computer resources such as CPU, softwares, memory etc. are protected. This extends to the operating system as well as the data in the system. This can be done by ensuring integrity, confidentiality and availability in the operating system. The system must be protect against unauthorized access, viruses, worms etc. Threats to Protection and Security A threat is a program that is malicious in nature and leads to harmful effects for the system. Some of the common threats that occur in a system are − Virus Viruses are generally small snippets of code embedded in a ... Read More

Operating System Evolution

Bhanu Priya
Updated on 07-Oct-2023 01:20:48

33K+ Views

Operating systems work as an interface between the user and the computer hardware. OS is the software which performs the basic tasks like input, output, disk management, controlling peripherals etc. Windows, Linux etc are some examples of operating systems. Operating System Evolution  Operating system is divided into four generations, which are explained as follows − First Generation (1945-1955) It is the beginning of the development of electronic computing systems which are substitutes for mechanical computing systems. Because of the drawbacks in mechanical computing systems like, the speed of humans to calculate is limited and humans can easily make mistakes. In ... Read More

Convert String Value to Byte Value in Go

Akhil Sharma
Updated on 07-Oct-2023 01:11:06

33K+ Views

In this tutorial, we will learn how to convert string values to byte values using golang programming language. String Value − A string value is just a sequence of characters, like "abc". A string value is always enclosed in quotes. All types of characters are allowed (even digits, as in "abc123"). Strings can contain any number of characters. Byte value − The byte data type is an 8-bit signed two's complement integer. It has a minimum value of -128 and a maximum value of 127 (inclusive). The byte data type can be useful for saving memory in large arrays, where ... Read More

Check If a Radio Button Is Selected with JavaScript

Rushi Javiya
Updated on 07-Oct-2023 01:02:59

37K+ Views

In the HTML, the radio buttons allow developers to create multiple options for a choice. Users can select any option, and we can get its value and know which option users have selected from the multiple options. So, it is important to check which radio button the user selects to know their choice from multiple options. Let’s understand it via real-life examples. When you fill out any form and ask to choose a gender, you can see they give you three options, and you can select only one. In this tutorial, we will learn two approaches to checking whether a ... Read More

Understanding Fusion Learning: The One-Shot Federated Learning

Kalyan Mishra
Updated on 06-Oct-2023 16:19:35

243 Views

In this article we will learn about Fusion learning and get to know how its working, its advantages and all other parameters. As technology grows we are getting more concerned about privacy in the field of machine learning. Earlier we used to train the data in centralized form which is more vulnerable to privacy so we are shifting towards Federated learning which allows us to train models by collaborating and without sharing the raw data which is a good technique in terms of privacy. Let’s get to know about Federated Learning. Federated Learning This is a decentralized mechanism of machine ... Read More

Variance of List in Python

Kalyan Mishra
Updated on 06-Oct-2023 16:19:02

824 Views

In this article we will learn about variance and how to calculate the variance of list. You may have encountered this problem of finding the variance particularly in data science. So in this article we will learn how to find the variance. Variance This tells us how the data is spread, it gives us a measure of the degree of a set of points. We can calculate the variance of the list using various methods. Let’s learn about those methods. Method 1: Using the Statistics Module In this method we will use the built-in statistics model python for calculating the ... Read More

Advertisements