Nitya Raut has Published 276 Articles

How to use size() in android ConcurrentLinkedDeque?

Nitya Raut

Nitya Raut

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

61 Views

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

71 Views

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

411 Views

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

564 Views

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

288 Views

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

How to launch any arbitrary iPhone application from within another app?

Nitya Raut

Nitya Raut

Updated on 27-Jun-2020 13:31:34

686 Views

iOS Allows us to open some applications with some links or other ways from our app, like dialing a number when clicked on it, or writing a mail with some static body or writing a SMS. But this is limited to some applications, not every app can be opened from ... Read More

How to take a screenshot programmatically in iPhone/iOS?

Nitya Raut

Nitya Raut

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

967 Views

Though iOS does not provide any official way to take screenshots on iOS device programmatically, it provides a way to screenshot using the home and power button, by pressing both of them at the same time.To take a screenshot, we’ll have to go through a series of steps.We’ll get the ... Read More

How do I draw a shadow under a UIView in iPhone/iOS?

Nitya Raut

Nitya Raut

Updated on 27-Jun-2020 13:21:09

148 Views

To make our UI appealing, we have to play around with multiple attributes in iOS development. To draw shadows around a View or below a view we have to play around Layers and Views.Let’s see this in two ways.Method 1 − Simply coding where ever required.self.layer.masksToBounds = NO; self.layer.cornerRadius = ... Read More

Corona vs. Phonegap vs. Titanium

Nitya Raut

Nitya Raut

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

135 Views

In this article we’ll learn about Corona, PhoneGap and Titanium, though all these technologies are different, the common thing between these is that they all are cross platform. i.e they can be used to write program once and then run that on multiple platforms like iPhones and android devices.Corona − ... Read More

Difference between Byte stuffing and Bit stuffing

Nitya Raut

Nitya Raut

Updated on 27-Jun-2020 13:15:24

16K+ 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 ... Read More

Advertisements