Rishi Rathor has Published 155 Articles

What is the difference between setTimeout() and setInterval() in JavaScript?

Rishi Rathor

Rishi Rathor

Updated on 24-Nov-2023 00:58:53

1K+ Views

setTimeout() function setTimeout( function, duration) − This function calls function after duration milliseconds from now. This goes for one execution. Let’s see an example − It waits for 2000 milliseconds, and then runs the callback function alert(‘Hello’) − setTimeout(function() { alert('Hello');}, 2000); setInterval() function setInterval(function, duration) − This function ... Read More

Point-to-Point Protocol (PPP)

Rishi Rathor

Rishi Rathor

Updated on 02-Sep-2023 14:01:28

54K+ Views

Point - to - Point Protocol (PPP) is a communication protocol of the data link layer that is used to transmit multiprotocol data between two directly connected (point-to-point) computers. It is a byte - oriented protocol that is widely used in broadband communications having heavy loads and high speeds. Since ... Read More

Role of CSS justify-content property center value

Rishi Rathor

Rishi Rathor

Updated on 04-Jul-2020 06:41:35

134 Views

Use the justify-content property with value center to align the flex-items to the center.ExampleYou can try to run the following code to implement the center value −Live Demo                    .mycontainer {             display: flex;       ... Read More

Role of CSS justify-content property space-around value

Rishi Rathor

Rishi Rathor

Updated on 03-Jul-2020 10:35:56

69 Views

Use the justify-content property with value space-around to add space near the lines.ExampleYou can try to run the following code to implement the space-around value −Live Demo                    .mycontainer {             display: flex;       ... Read More

Set the width of a button with CSS

Rishi Rathor

Rishi Rathor

Updated on 03-Jul-2020 07:42:15

5K+ Views

To set the button width, use the CSS width property.ExampleYou can try to run the following code to set the width of a button −Live Demo                    .btn {             background-color: yellow;       ... Read More

How to use images while developing iOS App in a Simulator?

Rishi Rathor

Rishi Rathor

Updated on 30-Jun-2020 05:25:46

2K+ Views

Sometimes we need to test our iOS app with multiple cases and we may not have physical device all the time. For example if we need to see if image upload is working correctly but we do not have an actual iPhone then we may need to add more images ... Read More

Intel 8212 in mode 0

Rishi Rathor

Rishi Rathor

Updated on 30-Jun-2020 05:19:41

168 Views

The below fig shows clearly how 8212 works in the mode 0Fig: 8212 working in mode 0We use this mode generally when we want 8212 to function like an input port. An input device gets connected to DI7-0, and the microprocessor employed here receives the information on DOs ranging from ... Read More

8085 program to exchange content of HL register pair with DE register pair

Rishi Rathor

Rishi Rathor

Updated on 30-Jun-2020 05:06:12

857 Views

In this program we will see how to exchange the content of DE and HL pair.Problem StatementWrite 8085 Assembly language program to swap the content of HL and DE register pair.DiscussionThis process is very simple, 8085 has XCHG instruction. This instruction swaps DE and HL pair content. We are storing ... Read More

8085 program to find sum of digits of 8 bit number

Rishi Rathor

Rishi Rathor

Updated on 30-Jun-2020 05:01:51

672 Views

In this program we will see how to add the digits of an 8-bit number.Problem StatementWrite 8085 Assembly language program to add the digits of an 8-bit number stored in memory location 8000H.DiscussionTo get the digits of an 8-bit number, we can use the masking operation. At first we will ... Read More

How to change a button background color using Swift?

Rishi Rathor

Rishi Rathor

Updated on 29-Jun-2020 14:06:03

4K+ Views

To change the background color of a button in iOS application we need to access the property ‘ backgroundColor’ of the UIButton. We can do this in two ways, programmatically and using the storyboard.Method 1 − Using the storyboard editorAdd a button on your storyboard, select it Go to it’s ... Read More

1 2 3 4 5 ... 16 Next
Advertisements