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 Lakshmi Srinivas
Page 6 of 24
Display the flex items with space between the lines in CSS
Use the justify-content property with value space-between to add space between the lines.ExampleYou can try to run the following code to implement the space-between value − .mycontainer { display: flex; background-color: red; justify-content: space-between; } .mycontainer > div { background-color: white; text-align: center; line-height: 60px; font-size: 30px; width: 100px; margin: 5px; } Quiz Q1 Q2 Q3 Q4
Read MoreAnimate CSS border-left-color property
To implement animation on border-left-color property with CSS, you can try to run the following codeExample div { width: 500px; height: 300px; background: yellow; border: 10px solid yellow; border-bottom-right-radius: 100px; border-bottom-width: 30px; background-image: url('https://www.tutorialspoint.com/latest/testrail.png'); animation: myanim 3s infinite; background-position: bottom left; background-size: 50px; } @keyframes myanim { 40% { background-color: maroon; border-bottom-color: green; border-bottom-right-radius: 50px; border-bottom-width: 50px; border-color: red; border-left-color: lightblue; } } Performing Animation for border left color
Read MoreJava program to print ASCII value of a particular character
In this article, we will learn to print the ASCII value of a particular character in Java. ASCII (American Standard Code for Information Interchange) is a standard encoding system that assigns a unique numeric value to characters like letters, digits, and symbols. We’ll explain the concept of ASCII, demonstrate how to retrieve and display ASCII values in Java and provide practical examples to help you understand and apply this concept effectively. What Is ASCII? ASCII is a character encoding standard where each character (letters, digits, and symbols) is assigned a numeric value. For instance − ...
Read MoreJava program to find the roots of a quadratic equation
In this article, we will learn to find the roots of a quadratic equation using Java. The roots of a quadratic equation are determined by the following formula: $$x = \frac{-b\pm\sqrt[]{b^2-4ac}}{2a}$$ Here we will take input values for the coefficients 𝑎, 𝑏, and 𝑐 of the quadratic equation 𝑎 𝑥 2 + 𝑏 𝑥 + ...
Read MoreJava program to find the sum of elements of an array
To find the sum of elements of an array.create an empty variable. (sum)Initialize it with 0 in a loop.Traverse through each element (or get each element from the user) add each element to sum.Print sum.Exampleimport java.util.Arrays; import java.util.Scanner; public class SumOfElementsOfAnArray { public static void main(String args[]){ System.out.println("Enter the required size of the array :: "); Scanner s = new Scanner(System.in); int size = s.nextInt(); int myArray[] = new int [size]; int sum = 0; System.out.println("Enter the elements of the array one by one "); for(int i=0; i
Read MoreHow to sum values of a Python dictionary?
It is pretty easy to get the sum of values of a Python dictionary. You can first get the values in a list using the dict.values(). Then you can call the sum method to get the sum of these values. exampled = { 'foo': 10, 'bar': 20, 'baz': 30 } print(sum(d.values()))OutputThis will give the output −60
Read MoreHow to avoid bugs in cloud computing
When the word cloud comes to our mind, we think of big white fluffy fantasy. But technically, cloud is the big white hard drive which stores bulky servers and all your information. It’s cool to think how someone else is managing everything and put the data whenever and wherever you want to store.Security might be an issue, you want to consider. But it’s nothing compared to the scary thought of cloud service going down. According to ACM article, regular bugs were pointed in seven coding constructs of the function calls, assignments, conditions, pointers, uses of NULL, variable declaration, function declaration ...
Read MoreFew simple tips to protect your images from casual copying
Casual copying is an act of fraud similar to plagiarism. We find many people choose to ignore the copyright act while they involve themselves in casual copying of images as well as content. Image theft has become rampant in recent times due to two major reasons one because it is easy secondly because individuals can download quickly and copy images from the internet without any difficulty. Many who are involved in casual copying are not even feeling guilty that they are using other’s property without their permission.All those Individuals who post original articles, images or any material online might be ...
Read MoreHow to boost internet security on smartphones and pc
We have internet everywhere these days and we never miss any opportunity to get updated through that channel for any reason. Be it for fun or for work or just for connecting with people. But what we never realize is – how dangerous could it get?. Our silly mistakes or negligence can lead us to great disasters.Be it our laptops, smartphones or PCs – all of them are prone to risks and need to be taken care of properly. So, the question comes – How to make sure that your devices are not getting exploited or hacked. With the growing ...
Read MoreHow to detect serious ddos attack
Distributed denial of service or in short DDoS attack is a Trojan infection in multiple compromised systems. They are used to target attacks on a single system from all systems linked which eventually leads to denial of service DoS attacks.Every individual and company is connected with a cloud these days. There are numerous advantages of using cloud, but it comes with a price of cyber threats. Not far back, a Linux cloud hosting provider has suffered a DDoS attack which lasted for 10 days. The attack was so massive, it targeted name servers, application servers and routers.It did not stop ...
Read More