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
Generally iOS applications can be developed on mac operating systems only, but recently with system development now applications for iOS can partially be developed on windows system too.To develop iOS or any other apps for apple platform, we need Xcode which is a native Apple software and can be installed on mac operating systems only. Also, a mac operating system is generally installed and supported on an Apple device.There are multiple work around for this like buying a normal laptop installing third party software to run mac OS on them and later installing Xcode, or buying/renting a cloud Mac. In ... Read More
Import the following package for Calendar class in Javaimport java.util.Calendar;Firstly, create a Calendar object and display the current dateCalendar calendar = Calendar.getInstance(); System.out.println("Current Date = " + calendar.getTime());Now, let us decrement the month using the add() method and Calendar.MONTH constant. Set a negative value here since we are decrementingcalendar.add(Calendar.MONTH, -2);The following is an exampleExample Live Demoimport java.util.Calendar; public class Demo { public static void main(String[] args) { Calendar calendar = Calendar.getInstance(); System.out.println("Current Date = " + calendar.getTime()); // Decrementing Month by 2 calendar.add(Calendar.MONTH, -2); System.out.println("Updated ... Read More
Technology has become inseparable in our day to day lives and mobile phones are the most crucial part of this technology which will be used every day by every body. We can find an illiterate person but not a person without a mobile phone in India. Shashi Tharoor had written that how right from a working professional to an istriwaalah (iron man) or a nariyalpaamiwaala (one who sells coconut water) has a mobile phone these days. This era is also the era of smartphones with maximum users using Android or IOS.However, these SMART phones have also proven to be a ... Read More