Rishi Rathor has Published 142 Articles

Low-Density Parity Check (LDPC)

Rishi Rathor

Rishi Rathor

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

11K+ 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

178 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

696 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

2K+ 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

4K+ 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

131 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

411 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

How do we set text font in HTML?

Rishi Rathor

Rishi Rathor

Updated on 24-Jun-2020 08:53:26

3K+ Views

The tag was used to set the font in HTML, but it is now deprecated. Use CSS for the same purpose.ExampleYou can try to run the following code to change the font of text in HTML −           Tutorialspoint       Learning videos       Learning content    

How do we include the direction of text display in HTML?

Rishi Rathor

Rishi Rathor

Updated on 24-Jun-2020 07:36:47

199 Views

Use the dir attribute in HTML, to add the direction of the text.ExampleYou can try to run the following code to include the direction of text display in HTML −           This is demo text from left-to-right.       This is demo text from right-to-left.    

Define the number of columns in CSS Grid Layout

Rishi Rathor

Rishi Rathor

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

1K+ Views

Use the grid-template-columns property to define the number of columns in CSS Grid Layout.You can try to run the following code to set a number of columns. Here, 3 column grid is set:ExampleLive Demo                    .container {       ... Read More

Advertisements