Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
How to create Grid icon using jQuery Mobile
Overview The Grid icon in any web application can also be developed using jQuery Mobile, as the jQuery mobile icon library provides the benefit of many icons. So to create the jQuery Grid icon there are some pre-built classes by the jQuery icon library that can be used to create the grid icon. As we define the class name for any element in the bootstrap to create a component the same as it is we have to define the class in the HTML element which will create a grid icon. Approach To create a clickable grid icon button ...
Read MoreHow to Land an Internship in Machine Learning?
Machine learning is an exciting field that is rapidly growing and providing promising career opportunities. Landing an internship in machine learning can be a great way to gain practical experience and build your skills. But landing an internship in Machine Learning as an undergraduate student is tough as most of the well-known companies like Google, Microsoft, Facebook, and Netflix are looking for Ph.D. students who have publications in prestigious journals. However, machine learning solutions are becoming increasingly popular in different industries. Most of the modern technologies like self-driving cars, voice assistants, AI chatbots, and recommendation systems are all powered by ...
Read MoreHow Google Uses Machine Learning?
In the last five years, data scientists have created data-crunching machines by using cutting-edge methodologies. Various machine learning models have been developed that help resolve challenging situations in the real world. With the growth in technologies, various services related to the public and government sectors are getting over the internet. It makes the process fast and the reach of services increases rapidly among the citizens. Google is really making our life easy in every aspect. Whether it is from booking a taxi to finding a dentist near me, all these tasks can be done using the various services of Google. ...
Read MoreZumba: What it is, Health Benefits, and How to Get Started?
Have you ever been puzzled about why your fitness or running program stalled after a week? Occasionally, you may be successful in latching on to it for a month or two. But what happens after that? As boredom sets in, it's hard to get the will to get up and start a new day. If you want to discover why Zumba is so good for you, read this blog. You tend to lose the mental strength to work out. This pessimism might cause you to become lazy, which is dangerous if you have diabetes. Zumba is the best way to ...
Read MoreWhat is the Swift equivalent of respondsToSelector?
In Swift, the equivalent of the Objective-C method respondsToSelector is the responds property of the NSObject class. To check if an object responds to a particular selector, you can use the responds(to:) method which is declared in the NSObjectProtocol. Here's the syntax − if objectName.responds(to: #selector(methodName)) { // do something if the object responds to methodName } else { // do something else if the object doesn't respond to methodName } In this syntax, objectName is the object that you want to check, and methodName is the selector that you want to check ...
Read MoreWhy is the Convenience Keyword Even Needed in Swift?
In Swift, you can create an additional initializer to provide default values for the properties. You can use the convenience keyword to add this functionality. Let's look at some examples of how to use a convenience initializer in the Swift language. What is a convenience initializer in Swift? In Swift, a secondary initializer in a class that provides extra or alternative ways to create an instance of that class is marked with the convenience keyword. The initialization procedure is streamlined and made simpler, which makes it easier for the developer to deal with the class. The designated initializer of the ...
Read MoreWhat\'s the equivalent of NSLocalizedString in Swift?
In real iOS applications, you often need to support localization to ensure the app's accessibility around the world. By incorporating localization into your app, you can gain more users. In Swift, we use the NSLocalizedString function to create a localized string. What is localization? Localization is the process of allowing various language support in your apps. Instead of utilizing the software in a single language, it helps to create a more localized experience for users. Localization will be quite simple to integrate in your application. Apple offers a totally native method for integrating localization in your program.Syntax The syntax for ...
Read MoreSwift: Pass an array by reference?
In Swift, you can pass an array by reference in a function as an argument using inout keyword. In Swift, arrays are value types by default. In other words, they pass a value rather than a reference. If you pass an array to a function as an argument, it makes a copy and passes that copy to the function. First, let's understand what happens when we pass an array in a function as a value. func passByValue(_ array: [Int]) { array.append(100) } let numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] passByValue(numbers) ...
Read MoreSwift JSONDecode decoding arrays fail if single element decoding fails
In Swift, working with JSON objects is very easy with the JSONDecoder class. It is always necessary to create model classes or structs with the Codable protocol. One single mistake leads you to fail to decode the complete JSON object. Let's explore some examples to understand when this failure might occur and how you can handle it in Swift. What is the JSONDecoder class? The JSONDecoder class is then used to parse the JSON data from the file into an instance of the given Type either a class or structure. The decode(_:from:) method is used to deserialize the JSON data, ...
Read MoreObjective-C and Swift URL encoding
URL encoding is an essential part of iOS app development. Many times, you will need to encode the URL to communicate with servers. Let's look at some examples of how you can encode an URL in Swift and Objective-C. URL Encoding in Swift In Swift, you can use the addingPercentEncoding(withAllowedCharacters:) method for URL encoding. URL Encoding in Objective-C In Objective-C, you can use the stringByAddingPercentEncodingWithAllowedCharacters method for URL encoding. Encode a URL in Objective-C In Objective-C, you can encode a URL string using the stringByAddingPercentEncodingWithAllowedCharacters: method of the NSString class. Here's an example NSString *stringToEncode = @"https://www.exampleserver.com/complete path with spaces"; ...
Read More