Nitya Raut

Nitya Raut

158 Articles Published

Articles by Nitya Raut

Page 4 of 16

Difference between Byte stuffing and Bit stuffing

Nitya Raut
Nitya Raut
Updated on 27-Jun-2020 21K+ Views

The differences between byte stuffing and bit stuffing can be done under the following heads −What are byte stuffing and bit stuffing?Byte stuffing is a mechanism to convert a message formed of a sequence of bytes that may contain reserved values such as frame delimiter, into another byte sequence that does not contain the reserved values.Bit stuffing is the mechanism of inserting one or more non-information bits into a message to be transmitted, to break up the message sequence, for synchronization purpose.Purposes of byte stuffing and bit stuffingIn Data Link layer, the stream of bits from physical layer are divided ...

Read More

Constraint length of the Convolutional Code

Nitya Raut
Nitya Raut
Updated on 27-Jun-2020 4K+ Views

Convolutional CodesConvolutional codes are error correcting codes where the data streams of indefinite lengths are encoded before transmission over noisy channels. The message streams are encoded by the sliding application of Boolean functions that generate a sequence of output bits.Convolutional codes were first introduced in 1955, by Elias. After that, there were many interim researches by many mathematicians. In 1973, Viterbi developed an algorithm for maximum likelihood decoding scheme, called Viterbi scheme that lead to modern convolutional codes.Parameters in Convolutional CodesFor generating a convolutional code, the information is passed sequentially through a linear finite-state shift register. The shift register comprises ...

Read More

Do any browsers yet support HTML5's checkValidity() method?

Nitya Raut
Nitya Raut
Updated on 25-Jun-2020 200 Views

Yes, the checkValidity() works in Google Chrome and Opera as well. This works as well −Example                    .valid {             color: #0B7866;          }          .invalid {             color: #0B6877;          }                            function check(input) {             var out = document.getElementById('result');             if (input.validity) {                if (input.validity.valid === true) {                   out.innerHTML = "" + input.id +                   " valid";                   } else {                   out.innerHTML = "" + input.id +                  " not valid";                }             }             console.log(input.checkValidity());          };                      Minimum:                                

Read More

How to reconnect to websocket after close connection with HTML?

Nitya Raut
Nitya Raut
Updated on 25-Jun-2020 5K+ Views

Recreate the socket to reconnect it. The websockets are designed to stay open. You can also go with the method to have the server close the connection. Through this, the websocket will fire an onclose event and would amazingly continue attempting to make the connection.In addition, when the server is listening again the connection will be automatically reestablished.ExampleYou can try to run the following code to reconnect to WebSocket −// Socket Variable declaration var mySocket; const socketMessageListener = (event) => {    console.log(event.data); }; // Open const socketOpenListener = (event) => {    console.log('Connected');    mySocket.send('hello'); }; // Closed ...

Read More

Fade In Tooltip with CSS Animation

Nitya Raut
Nitya Raut
Updated on 24-Jun-2020 468 Views

To fade in tooltip text with CSS, you can try to run the following code: Example        .mytooltip .mytext {       visibility: hidden;       width: 140px;       background-color: blue;       color: #fff;       z-index: 1;       top: -5px;       right: 110%;       text-align: center;       border-radius: 6px;       padding: 5px 0;       position: absolute;       opacity: 0;       transition: opacity 1s;     }     .mytooltip {       position: relative;       display: inline-block;       margin-left: 150px;     }     .mytooltip .mytext:after {       content: "";       position: absolute;       top: 50%;       left: 100%;       margin-top: -5px;       border-width: 6px;       border-style: solid;       border-color: transparent transparent transparent blue;     }     .mytooltip:hover .mytext {       visibility: visible;       opacity: 1;     }           Keep mouse cursor over me        My Tooltip text        

Read More

Which is the best JavaScript compressor?

Nitya Raut
Nitya Raut
Updated on 23-Jun-2020 258 Views

Here are some of the best JavaScript compressors available −Google Closure CompilerThe Google Closure compiler runs JavaScript quickly and used for a superior JavaScript. It parses your JavaScript, analyzes it, removes dead code, rewrites, and minimizes what's left.JSMinIf you want to minify, then use the JSMin to remove unnecessary comments.YUI CompressorThe YUI Compressor is used to minify the JavaScript files fastly and is secure.

Read More

How to set the CSS property that the transition effect is for with JavaScript?

Nitya Raut
Nitya Raut
Updated on 23-Jun-2020 197 Views

Use the transitionProperty in JavaScript to set the CSS property. You can try to run the following code to return the CSS property that the transition effect is for with JavaScript −Example                    #div1 {             position: relative;             margin: 10px;             height: 300px;             width: 400px;             padding: 20px;             border: 2px solid blue;          }          #div2 {             padding: 80px;             position: absolute;             border: 2px solid BLUE;             background-color: yellow;             transform: rotateY(45deg);             transition: all 3s;          }          #div2:hover {             background-color: orange;             width: 50px;             height: 50px;             padding: 100px;             border-radius: 50px;          }                     Hover over DIV2       Set       DIV1          DIV2                      function display() {             document.getElementById("div2").style.transitionProperty = "width,height";          }          

Read More

With JavaScript how to change the width of a table border?

Nitya Raut
Nitya Raut
Updated on 23-Jun-2020 1K+ Views

To change the width of a table border, use the DOM border property. You can try to run the following code to change the width of a table border in JavaScript −Example                    function borderFunc(x) {             document.getElementById(x).style.border = "5px dashed blue";          }                                             One             Two                                 Three             Four                                 Five             Six                                          

Read More

How to list down all the plug-in installed in your browser?

Nitya Raut
Nitya Raut
Updated on 23-Jun-2020 1K+ Views

To list down all the plug-on installed in the web browser, use the JavaScript navigator object. The JavaScript navigator object includes a child object called plugins. This object is an array, with one entry for each plug-in installed on the browser.ExampleYou can try to run the following code to list down all the plug-in installed in your browser −           List of Plug-Ins                                       Plug-in Name             Filename             Description                                 for (i = 0;  i < navigator.plugins.length;  i++)             {                document.write("");                document.write(navigator.plugins[i].name);                                document.write("");                document.write(navigator.plugins[i].filename);                                document.write("");                document.write(navigator.plugins[i].description);                document.write("");             }                    

Read More

How can we delete an existing MySQL table by using PHP script?

Nitya Raut
Nitya Raut
Updated on 22-Jun-2020 290 Views

As we know that PHP provides us the function named mysql_query to delete an existing MySQL table.ExampleTo illustrate this we are deleting a table named ‘Tutorials_tbl’ with the help of PHP script in the following example −           Creating MySQL Tables                  

Read More
Showing 31–40 of 158 articles
« Prev 1 2 3 4 5 6 16 Next »
Advertisements