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
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 − this returns the current name of the device in use, e.g. "My iPhone"UIDevice.current.systemName − this returns the system name e.g. @"iOS"UIDevice.current.systemVersion − this returns the system version e.g. @"4.0"UIDevice.current.batteryLevel − this returns the battery level, if it is between 0 to 1, it will return the value otherwise if the ... Read More
Moral Education or Value Education is becoming an important subject these days in school both at the elementary and secondary level. Moral Education from an early age aims to teach values like respect, ownership, teamwork, empathy, humility, etc.These are the values that are being taught to the kids within the curriculum of the school.It is extremely important that this subject remains an indispensable part of the school learning for the kids due to these reasons:Importance in learning − Holistic learning is not just about academics, getting good grades, attractive jobs, and placements. It lies within the four walls of the ... 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 add days using the add() method and Calendar.DATE constantcalendar.add(Calendar.DATE, 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()); // Incrementing Days by 2 calendar.add(Calendar.DATE, 2); System.out.println("Updated Date = " + calendar.getTime()); } }OutputCurrent Date = ... Read More
Detecting screen size of an apple device is an easy and simple task. The UIKIT module of iOS SDK provides many functions and classes that deal with user interface, screen sizes and many other UI elements.One of them is UIScreen which deals with the device screen.UIScreen.main provides the current main screen of the device in use, which further has methods that return other features and properties of the current screen.To find if the current screen is an iPhone 5 or not, we’ll first have to find the current size of the screen and compare with a value. The height of ... Read More
Qutub Minar located in the Qutub complex in New Delhi is one of the many historical and magnificent monuments in the capital city of New Delhi. It is located adjacent to the Quwwat-ul-Islam Mosque and is considered as its name suggests is the pillar of faith. The site is protected by the Archaeological Survey of India and the entry fee to the complex is Rs.10 and Rs.250 for Indians and foreigners respectively.Some significant aspects of the monument are −Highest tower − With a height of 72.5 meters Qutub Minar is the highest stone tower in India. It was constructed as ... Read More
The Motorola M6800 is 40pin DIP Microprocessor. Here we will see the actual pin level diagram of M6800 and also the functional pin diagram of it.The M6800 requires some additional chips to provide the required functions. These chips are:6870 (clock generator)6830 (ROM) or 68708(EPROM)6810 (RAM)6820 (PeripheralInterface Adapter)6850 (AsynchronousCommunications Interface Adapter)6828 (PriorityInterrupt Controller)Now see the Pin Level diagram of Motorola M6800This is the actual pin diagram of the M6800 Microprocessor. Now we will see the functional pin diagram of it.Now let us see the Pin functions of the M6800 microprocessor.PinsTypeFunctionA15– A0Output16-bit address bus, which provides the addresses for memory (up to ... Read More
Import the following package for Calendar class in Javaimport java.util.Calendar;Firstly, create a Calendar object and display the current date and timeCalendar calendar = Calendar.getInstance(); System.out.println("Current Date and Time = " + calendar.getTime());Now, let us decrement the seconds using the calendar.add() method and Calendar.SECOND constant. Set a negative value since we are decrementingcalendar.add(Calendar.SECOND, -20);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()); // Subtract 20 seconds from current date calendar.add(Calendar.SECOND, ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP