Nitya Raut has Published 281 Articles

How to draw a hollow circle in SVG?

Nitya Raut

Nitya Raut

Updated on 16-Dec-2021 09:26:36

To draw a hollow circle in SVG, use the element. For that, use fill=”none” and draw the outline.SVG stands for Scalable Vector Graphics and is a language for describing 2D-graphics and graphical applications in XML and the XML is then rendered by an SVG viewer. Most of the web ... Read More

CSS align-items property

Nitya Raut

Nitya Raut

Updated on 03-Jul-2020 10:38:37

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

Create a disabled look of a button with CSS

Nitya Raut

Nitya Raut

Updated on 03-Jul-2020 10:24:23

To create a disabled button look, use the CSS opacity property.ExampleYou can try to run the following code to create a disabled look of a button −Live Demo                    .btn1 {             color: black; ... Read More

Usage of CSS align-items property flex-start value

Nitya Raut

Nitya Raut

Updated on 03-Jul-2020 07:50:54

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

CSS object-fit Property

Nitya Raut

Nitya Raut

Updated on 03-Jul-2020 07:38:56

Use the object-fit property in CSS to resize image or video to fit its container.ExampleYou can try to run the following code to learn how to work with the object-fit property −Live Demo                    .myimg {             width:250px;             height:350px;             object-fit:cover;          }                     SWIFT          

How to use size() in android ConcurrentLinkedDeque?

Nitya Raut

Nitya Raut

Updated on 01-Jul-2020 11:03:00

Before getting into the example, we should know what ConcurrentLinkedDeque is, it is unbounded deque based on linked nodes. Multiple threads can access deque elements with safety.This example demonstrates about How to use size() in android ConcurrentLinkedDequeStep 1 − Create a new project in Android Studio, go to File ⇒ ... Read More

Rotate Out Down Left Animation Effect with CSS

Nitya Raut

Nitya Raut

Updated on 29-Jun-2020 07:20:42

To create rotate out down left animation effect with CSS, you can try to run the following code −ExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat;     ... Read More

Top-level script environment in Python (__main__)

Nitya Raut

Nitya Raut

Updated on 27-Jun-2020 14:28:42

A module object is characterized by various attributes. Attribute names are prefixed and post-fixed by double underscore __. The most important attribute of module is __name__. When Python is running as a top level executable code, i.e. when read from standard input, a script, or from an interactive prompt the ... Read More

How to determine device type (iPhone, iPod Touch) with Swift?

Nitya Raut

Nitya Raut

Updated on 27-Jun-2020 13:47:26

When working on iOS applications, we sometimes need to know the device on which application is installed, and provide custom features depending on the device in use. For example, we want to provide some features on iPhone X but not on iPhone 7. In this article we’ll learn how to ... Read More

How to determine the current iPhone model information?

Nitya Raut

Nitya Raut

Updated on 27-Jun-2020 13:40:26

iOS Provides a UIDevice class which has all the information about your iPhone that does not violate any privacy laws Apple has.Using the UIDevice we can access information like −UIDevice.current.localizedModel − this returns the localized version of modelUIDevice.current.model − this returns model of current device, e.g. @"iPhone", @"iPod touch"UIDevice.current.name − ... Read More

1 2 3 4 5 ... 29 Next
Advertisements