Swift – Optionals

The most important and fundamental part of swift is Optional. An optional in Swift is a type that can hold either a value or no value. Optional are written by appending a `?` to any type var lotteryWinning : Int? `?` means, this variable may or may not have a value. If in your program …

Swift – Dictionary

In Swift, there are 3  major collection types to store unordered lists of multiple values of the same type. Array – Ordered list of items, linear list of ordered items. You can set same values at different position Set – Unordered collections of unique values. Has item that should only have one type of value, …

Developing website with Vue.js

Vue (pronounced /vjuː/, like view) is an open-source, progressive Javascript framework for building user interfaces that aim to be incrementally adoptable. It is lightweight and quite easy to learn compared to other JS frameworks and its learning curve is much less complicated in comparison with Angular or React. It has a very rich documentation which …

Update Let’s Encrypt on NGINX server

To secure your web server you need to enable digital certificates i.e. HTTPS on your website. Certificate Authority (CA) provides you that need a certificate. A popular CA, Let’s Encrypt provides an easier way to obtain TLS/SSL certificate by enabling encrypted HTTPS on web servers. According to GlobalSign SSL is short for Secure Sockets Layer are small data …

Android clean App with MVP, Dagger2, RxJava and Retrofit

While developing an Android application we don’t maintain any proper architecture and that’s why we faced so many problems to build a robust application or writing test cases. Seniors always guide us to maintain an architecture like MVC, MVP or MVVM but we did not care because maintaining a better pattern is not so easy …

Working with Retrofit 2

Retrofit is a smart and powerful type-safe REST client to interact with APIs and sending network requests for Android and JAVA by Square, Inc. It provides powerful functionality for authentication. This library is a great replacement of Volley and AsyncTask to parse JSON and XML data into Plain Old Java Object (POJO) in a smart way. …

Working with Android RecyclerView and CardView

Nowadays in Android RecyclerView is one of the most advanced ViewGroup to render an adapter-based view by replacing ListView and GridView. Combining with CardView it provides the ability to implement both horizontal and vertical layouts with its default animations for addition and removal of items. And all this feature can be found in the latest …

Enable developer options in android device

There is a manifesto i.e. first thing first. One of the main conditions of Android development is that, if you want to debug your application or perform some operation using the ADB command on a real device, your device must have developer mode enabled. Otherwise, you won’t be able to test your app on a …