Rishi Rathor has Published 155 Articles

Error correcting codes in Computer Networks

Rishi Rathor

Rishi Rathor

Updated on 27-Jun-2020 13:01:17

13K+ Views

Error-correcting codes (ECC) are a sequence of numbers generated by specific algorithms for detecting and removing errors in data that has been transmitted over noisy channels.When bits are transmitted over the computer network, they are subject to get corrupted due to interference and network problems. The corrupted bits leads to ... Read More

Declare static variables and methods in an abstract class in Java

Rishi Rathor

Rishi Rathor

Updated on 27-Jun-2020 12:51:19

5K+ Views

If a method is declared as static, it is a member of a class rather than belonging to the object of the class. It can be called without creating an object of the class. A static method also has the power to access static data members of the class.A static ... Read More

Error Correcting Codes - Reed-Solomon codes

Rishi Rathor

Rishi Rathor

Updated on 27-Jun-2020 12:43:09

5K+ Views

Errors and Error Correcting CodesErrors in data occur when bits get corrupted in the data. When bits are transmitted over the computer network, they are subject to get corrupted due to interference and network problems, leading to errors.Error-correcting codes (ECC) are a sequence of numbers generated by specific algorithms for ... Read More

Low-Density Parity Check (LDPC)

Rishi Rathor

Rishi Rathor

Updated on 27-Jun-2020 12:31:09

7K+ Views

Low - density parity check (LDPC) code is a linear error-correcting block code, suitable for error correction in large block sizes transmitted via very noisy channels.LDPC was developed by Robert G. Gallager, in his doctoral dissertation at the Massachusetts Institute of Technology in 1960. So, these codes are also known ... Read More

What does the StringBuffer append() method do in Java?

Rishi Rathor

Rishi Rathor

Updated on 26-Jun-2020 15:34:24

97 Views

The StringBuffer append() method appends the String representation of the particular argument to the sequence. It is a method of the java.lang.StringBuffer class. This method returns a reference to the object.The basic syntax for append() method is as follows −public StringBuffer append(data_type variable_name)A program to illustrate the use of append() ... Read More

Change the length of the StringBuffer Object in Java

Rishi Rathor

Rishi Rathor

Updated on 26-Jun-2020 15:16:28

521 Views

The setLength(int newLength) method is used to change the length of the StringBuffer Object. It sets the length of the character sequence. The character sequence is updated to a new one whose length is determined by the value passed as the parameter in the method. The newLength should be greater ... Read More

Change a single character in a Java StringBuffer object in Java

Rishi Rathor

Rishi Rathor

Updated on 26-Jun-2020 15:06:45

1K+ Views

In order to change a single character in a StringBuffer object in Java, we use the setCharAt() method. The setCharAt() method sets the character at the index specified as a parameter to another character whose value is passed parameter of the setCharAt() method. The method sets a new character sequence ... Read More

Add a temporary column with a value in MySQL?

Rishi Rathor

Rishi Rathor

Updated on 25-Jun-2020 10:48:13

3K+ Views

You can add a temporary column with value with the help of the following syntax −select yourColumnName1, yourColumnName2, .....N ,yourTemporaryColumnValue as yourTemporaryColumnName from yourTableName;To add a temporary column with a value, let us create a table. The following is the query −mysql> create table TemporaryColumnWithValueDemo    −> (     ... Read More

How to listen to Keydown-Events in a KineticJS-managed HTML5-Canvas?

Rishi Rathor

Rishi Rathor

Updated on 25-Jun-2020 07:45:02

63 Views

To listen to KeyDown events, use −if(keyIsPressed && keycode == somenumber) {    doSomething(); }To capture KeyDown −var canvas1 = layer.getCanvas()._canvas; $(canvas1).attr('tabindex', 1); canvas1.focus(); $(canvas1).keydown(function (event) {    console.log(event); });

How to best display HTML5 geolocation accuracy on a Google Map?

Rishi Rathor

Rishi Rathor

Updated on 25-Jun-2020 06:46:14

268 Views

To display HTML5 geolocation accuracy on a Google Map, use the following code −var lat = position.coords.latitude; var longitude = position.coords.longitude; var accuracy = position.coords.accuracy; var center = new google.maps.LatLng(lat, longitude); var a = new google.maps.Marker({    position: center    map:    icon: }); var mySphere = new ... Read More

Advertisements