JSON is the common format which is used to exchange information between the HTTP client and the server. In this article, we will see how to read JSON data from an incoming request in Django and extract the information from…
Programming
Dictionaries in Python provide a way to store the key-value pairs. In this article, we will see how to access the dictionary elements by index in Python even though they are unordered. It is important to note that the items…
There might be several real-time use cases where need to process the files of a given directory, for example, formatting the data of each file. In order to process it, we might need to open each and every file. In…
In this article, we will see how to save dataframe to amazon s3 bucket. Saving a DataFrame to a CSV file is a common task in data processing. But there might be some scenarios where we might need to save…
As we all know that in Android development, the onBackPressed() method has been widely used to handle the back button press event. After introducing the Navigation component in Android Jetpack, this has been deprecated. In this article, we’ll see how…
In this article, we will see how to make an HTTP request from an Android application to a server. This is usually done to fetch the data from the API servers. Add permissions As a first step, we should add…
In this article, we will see different ways to return multiple values from a function in Kotlin. Using Pair: As a first way, we can use the Pair to return multiple values from a function. Pair accepts two parameters which…
In this article, we will see how to check permissions from the fragment in Android along with an example. Before we see how to implement the code to check the permissions make sure the permissions are declared in the Manifest.xml…
In this article, we will see different ways to get the current local date and time in Kotlin. Using LocalDateTime Note: Java 8+ is required You can use the java.time.LocalDateTime class to get the current local Date and Time. If…
In this article, we will add the listener to the editText using addTextChangedListener with the lambda functions. Using the addTextChangedListener, we can attach a watcher to the editText view. This function will be called when the text changes in the…