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 find the iOS device being used, using an iOS Application.Let’s go through some terms that will be required for achieving the desired results, utsname − this is a structure located in Darwin module of iOSuname − uname is a function that takes utsname as an input and returns Int32 as ... Read More
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 find the iOS device being used, using an iOS Application.Let’s go through some terms that will be required for achieving the desired results, utsname − this is a structure located in Darwin module of iOSuname − uname is a function that takes utsname as an input and returns Int32 as ... Read More
In 8085 Instruction set, HLT is the mnemonic which stands for ‘Halt the microprocessor’ instruction. It is having a size of 1-Byte instruction. Using these particular instructions, as 8085 enters into the halt state, so we can put the8085 from further processing of next instructions. This is indicated by S1 and S0 control signals. During the halt, S1 and S0 output signals will become 0 0. Mnemonics, OperandOpcode(in HEX)BytesHLT761The 8085 comes out of the Halt state when a valid interrupt occurs. In such a case, it executes the corresponding interrupt service subroutine depending upon the interrupt number and then it continues ... Read More
Sometimes while writing an iOS application or any other application we need to test multiple cases and debug the application of any known and unknown bugs. There are certain places in the code where we want our app to stop so that we can know the values of certain variables at the point and fix that bug. Before we learn how to add a break point, first let’s seeWhat’s a break point?A break point is a place in our code where the app pauses on a certain event. A break point may be added manually in xcode or may be ... Read More
In 8085 Instruction set, IN is a mnemonic that stands for INput the Byte from input port’s content to the accumulator. Input port’s 8-bit address is indicated in the instructions as a8. It occupies 2 Bytes in the memory. First Byte specifies the opcode, and the next Byte provides the 8-bit input port address. Mnemonics, OperandOpcode(in HEX)BytesIN Port-addressDB2IN F0H is an example instruction of this type. The result of execution of this instruction is shown below with an example.BeforeAfter(A)Any ValueABHInput Port F0HABHABHIN instruction is the only instruction using which read the input port content to the Accumulator. A possible chip select ... Read More
The Motorola M6800 is 40pin DIP IC. It is an 8-bit Microprocessor. It was introduced in 1974 by Motorola. It was designed nearly at the same time when the 8080 was introduced. Like 8080, it also had 16-bit address bus to handle 64KB of data, and 8-bit data bus to read and write data. The M6800 has very few registers. It has two Accumulators A and B, and the Index Register. This Microprocessor only supports the memory mapped IO because there is no instruction regarding IO operations in its instruction set.The M6800 has six addressing modes, 72 instructions and at least ... Read More
In this article we’ll learn how to store custom objects in our application, but before you learn how to store custom object let’s see what are custom object?A custom object is any class or structure or any other data that is not a native data type like Int, Double, String etc. Storing data in NSUserDefaults is a three step process.Creating the custom ObjectWe’ll create a custom class Person that will have an age variable, and name variable.class Person: NSObject, NSCoding { var name: String var age: Int init(name: String, age: Int) { self.name = ... Read More
Before getting into shared preference to store arraylist example , we should know what is shared preferences in android. Using share preference, we can store or retrieve values as key and value pair. There are five different methods are available in share preference as shown below −Edit() − It going to edit shared preference valuescommit() − it going to commit shared preference values in xml fileapply() − It going to commit back changes from editor to shared preference.remove(String key) − It going to remove key and vales from shared preference use key.Put() − It going to put key and values ... Read More
Work experience in a particular field and mostly specializing in a particular wing is considered to be an asset today considering the fact that field level experience develops a major quantum of skill in a person as against mere degrees or educational qualifications. After reaching a certain point in your career and gaining sufficient work experience, an employee has a desire to switch their job profiles due to better prospects.At times like these experienced people are often in dilemma on the work profile of the company i.e. whether to take a senior position in a start-up or mid-position in a ... Read More
Metaphysics played an extremely important role in Ancient Indian learning and social system. These metaphysics formed the philosophical foundation of life. Hence, it was given the term Darshana which literally means showing the path (of life). The Shad-Darshanas or the six systems of the Astika or the orthodox schools of Indian Philosophy consider the authority of Vedas.NyayaThe founder of Nyaya is Akshapada Gautama and it dated back to 2nd Century BCE. It is a school that deals with logic and epistemology. Its main objective is to help to eliminate ignorance of knowledge. It enlists four valid (Pramana) and four invalid ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP