Samual Sam has Published 2492 Articles

Fiber Optic Communications

Samual Sam

Samual Sam

Updated on 20-Jun-2020 08:23:46

3K+ Views

In fiber optic communication, data is transmitted from the source to the destination by sending light pulses through optical fibers. It changes electrical pulses to light signals and vice versa for communication. Fiber optic communications are preferred when a huge amount of data needs to be transmitted across large distances.The ... Read More

Fiber Cables

Samual Sam

Samual Sam

Updated on 20-Jun-2020 08:22:49

1K+ Views

Optical fiber cables are transparent, flexible fibers made up of glass or plastic through which light waves can pass. A bunch of fiber optic cables is shown in the following diagram −Structure of a Fiber – Optic CableA cross section of a fiber optic cable reveals three parts −Core −  ... Read More

Find all the patterns of "10+1" in a given string using Python Regex

Samual Sam

Samual Sam

Updated on 20-Jun-2020 08:22:04

75 Views

We need to find the regex pattern 10+1 in a given string. For this, we can use the re module available in python. This package has a method called find all that accepts the regex and the string we want to search in. It gives us all the occurrences of ... Read More

What function in MySQL can be used to get the number code of a specific character?

Samual Sam

Samual Sam

Updated on 20-Jun-2020 07:38:30

68 Views

String function ASCII() in MySQL returns the ASCII number code of the specific character.SyntaxASCII(str)Here, str, the argument of ASCII() function, is the string whose ASCII value of the first character to be retrieved.It is pertinent to mention here that it will return the number code the left the most character ... Read More

Aural Media CSS Properties

Samual Sam

Samual Sam

Updated on 20-Jun-2020 06:40:32

95 Views

Aural rendering of documents is mainly used by the visually impaired. The following are the aural media CSS properties −The azimuth property sets, where the sound should come from horizontally.The elevation property sets, where the sound should come from vertically.The cue-after specifies a sound to be played after speaking an ... Read More

How can we add values into the columns of a MySQL table?

Samual Sam

Samual Sam

Updated on 20-Jun-2020 06:13:55

215 Views

INSERT command is used to add values to the columns of a MySQL table. We need to specify the values in INSERT command for all the columns as follows −SyntaxINSERT INTO table_name values(value1, value2, …)ExampleSuppose we have a table named ‘Stock’ with three columns ‘Item_id’, ‘Item_name’ and ‘Item_rate’ then with ... Read More

How can we modify column/s of MySQL table?

Samual Sam

Samual Sam

Updated on 20-Jun-2020 05:55:09

150 Views

By using MODIFY keyword with ALTER TABLE command we can modify the column/s of MySQL table. The syntax for the same is as follows;SyntaxAlter table table_name MODIFY column_name1 datatype, MODIFY column_name2 datatype… MODIFY column_nameN datatype);ExampleIn the example below, with the help of MODIFY keyword in ALTER Command, the size of ... Read More

Java program to add a given time to a particular date

Samual Sam

Samual Sam

Updated on 19-Jun-2020 14:58:38

74 Views

Following is an example to add a given time to a particular date.ProgramLive Demoimport java.util.*; public class Main {    public static void main(String[] args) throws Exception {       Date d1 = new Date();       Calendar cl = Calendar. getInstance();       cl.setTime(d1);   ... Read More

CopyOnWriteArraySet Class in Java

Samual Sam

Samual Sam

Updated on 19-Jun-2020 14:45:11

461 Views

Class declarationpublic class CopyOnWriteArraySet    extends AbstractSet implements SerializableCopyOnWriteArraySet class uses CopyOnWriteArrayList internally for all of its operations and thus possesses the basic properties of CopyOnWriteArrayList.CopyOnWriteArraySet is a thread-safe.CopyOnWriteArraySet is to be used in Thread based environment where read operations are very frequent and update operations are rare.Iterator of CopyOnWriteArraySet ... Read More

How can I see the constraints which are applied to a table stored in the database I am currently using?

Samual Sam

Samual Sam

Updated on 19-Jun-2020 13:30:26

63 Views

MySQL SHOW CREATE TABLE statement will provide us the constraints applied to a particular table along with some other details about that table. Its syntax would be as follows −SyntaxSHOW CREATE TABLE table_name;Here table_name is the name of the table on which we want to see the constraints.ExampleIn this example ... Read More

Advertisements