Rishi Rathor has Published 170 Articles

Role of CSS justify-content property center value

Rishi Rathor

Rishi Rathor

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

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

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

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

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

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

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

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

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

How to detect shake gesture using Swift?

Rishi Rathor

Rishi Rathor

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

To detect a shake gesture in iOS UIKit provides three different methods, let’s see them one by one.Method 1 − When the shake gesture begins.override func motionBegan(_ motion: UIEvent.EventSubtype, with event: UIEvent?) { // code you want to implement }Method 2 − When the shake gesture ends.override func motionEnded(_ motion: ... Read More

MySQL Sum Query with IF Condition using Stored Procedure

Rishi Rathor

Rishi Rathor

Updated on 29-Jun-2020 11:13:27

The Sum() is an aggregate function in MySQL. You can use sum query with if condition. To understand the sum query with if condition, let us create a table.The query to create a table −mysql> create table SumWithIfCondition    −> (    −> ModeOfPayment varchar(100)    −> ,    −> ... Read More

1 2 3 4 5 ... 17 Next
Advertisements