Nishtha Thakur has Published 498 Articles

Forward Error Correction (FEC)

Nishtha Thakur

Nishtha Thakur

Updated on 27-Jun-2020 12:47:33

18K+ Views

Forward error correction (FEC) is an error correction technique to detect and correct a limited number of errors in transmitted data without the need for retransmission.In this method, the sender sends a redundant error-correcting code along with the data frame. The receiver performs necessary checks based upon the additional redundant ... Read More

Error Correcting Codes - Low-Density Parity Check Codes

Nishtha Thakur

Nishtha Thakur

Updated on 27-Jun-2020 12:42:34

3K+ Views

Error Correcting CodesError-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. Error correcting codes ascertain the exact number of bits that has been corrupted and the location of the corrupted bits, within the ... Read More

How to explain Android Shared preferences with example?

Nishtha Thakur

Nishtha Thakur

Updated on 27-Jun-2020 07:31:58

482 Views

Using share preference, we can store or retrieve values as key and value pair. There are five different methods are available in share preference as shown below −Edit() − It going to edit shared preference valuescommit() − it going to commit shared preference values in xml fileapply() − It going ... Read More

Restrictions applied to Java static methods

Nishtha Thakur

Nishtha Thakur

Updated on 26-Jun-2020 15:50:46

4K+ Views

If the static keyword is applied to any method, it becomes a static method.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 ... Read More

Set the capacity value for a StringBuffer object in Java

Nishtha Thakur

Nishtha Thakur

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

334 Views

The capacity() method returns the current capacity. It is a part of the StringBuffer. It is the quantity of storage present for recently inserted characters, after which an allocation occurs.Declaration - The capacity() method is declared in the java.lang.StringBuffer class as follows −public int capacity()The capacity of a StringBuffer object ... Read More

Get the length of a StringBuffer Object in Java

Nishtha Thakur

Nishtha Thakur

Updated on 26-Jun-2020 15:17:13

894 Views

To find the length of the StringBuffer object, the length() function is used. It is a method of the StringBuffer Class. The method returns the count of characters in the sequence.Declaration- The java.lang.StringBuffer.length() method is declared as follows −public int length()Let us see an example program illustrating the use of ... Read More

Display the position of a Substring in Java

Nishtha Thakur

Nishtha Thakur

Updated on 26-Jun-2020 15:07:37

182 Views

To display the position of a Substring in Java, we use the lastindexOf() method in Java. The lastindexOf() method returns the rightmost occurrence of the substring within a particular StringBuffer object.If the substring occurs more than once in the StringBuffer object, the index of the first character of the rightmost ... Read More

Cross-browser drag-and-drop HTML file upload?

Nishtha Thakur

Nishtha Thakur

Updated on 25-Jun-2020 07:50:35

331 Views

For cross-browser HTML File Uploader, use FileDrop. It works on almost all modern web browsers.As per the official specification −FileDrop is a self-contained cross-browser for HTML5, legacy, AJAX, drag & drop, JavaScript file upload

HTML5 Audio to Play Randomly

Nishtha Thakur

Nishtha Thakur

Updated on 25-Jun-2020 07:38:46

398 Views

To play randomly, add the songs like this −init ([    'http://demo.com/songs/song1.mp3,    'http://demo.com/songs/song2.mp3,    'http://demo.com/songs/song3.mp3 ]);Use the following to play randomly using Math.random −function displayRandom() {    var audio = Math.floor(Math.random() * (collection.length));    audio = collection[audio];    audio.play();    setTimeout(loop, audio.duration*1000); }Read More

Translating HTML5 canvas

Nishtha Thakur

Nishtha Thakur

Updated on 25-Jun-2020 07:20:55

391 Views

Use the translate() method to translate canvas. HTML5 canvas provides a translate(x, y) method which is used to move the canvas and its origin to a different point in the grid.Here argument x is the amount the canvas is moved to the left or right, and y is the amount ... Read More

Advertisements