Nitya Raut has Published 276 Articles

How to dismiss the dialog with click on outside of the dialog?

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

2K+ Views

This example demonstrate about how to dismiss the dialog with click on outside of the dialogStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. ... Read More

Readability Index in Python(NLP)?

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

983 Views

Natural language processing is the study of automated generation and understanding of natural human languages. This is becoming more and more interesting tasks to solve, as computer technology is integrated into almost every industry nowadays. We are going to study one specific field within natural language processing; readability. This involves ... Read More

How to dynamically remove items from ListView on a click?

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

940 Views

This example demonstrate about How to dynamically remove items from ListView on a clickStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     ... Read More

C++ Program to Implement Graham Scan Algorithm to Find the Convex Hull

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

3K+ Views

Convex hull is the minimum closed area which can cover all given data points.Graham's Scan algorithm will find the corner points of the convex hull. In this algorithm, at first the lowest point is chosen. That point is the starting point of the convex hull. Remaining n-1 vertices are sorted ... Read More

How to handle right to left swipe gestures?

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

503 Views

This example demonstrate about How to handle right to left swipe gesturesStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     In the ... Read More

How to store array Singleton with Global Context in android?

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

195 Views

Before getting into example, we should know what singleton design pattern is. A singleton is a design pattern that restricts the instantiation of a class to only one instance. Notable uses include controlling concurrency and creating a central point of access for an application to access its data store.This example demonstrate ... Read More

C++ Program to Implement Jarvis March to Find the Convex Hull

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

869 Views

Jarvis March algorithm is used to detect the corner points of a convex hull from a given set of data points.Starting from left most point of the data set, we keep the points in the convex hull by anti-clockwise rotation. From a current point, we can choose the next point ... Read More

C++ Program to Implement Vector in STL

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

376 Views

Vectors have the ability to resize itself automatically like dynamic arrays when an element is inserted or deleted, the container handle their storage automatically. Vector elements are placed in contiguous storage so that they can be accessed and traversed using iterators. Data can be inserted or erased at the begin, ... Read More

Configuring any CDN to deliver only one file no matter what URL has been requested

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:22

66 Views

Use any CDN to deliver your purpose. You can use CloudFlare as a reverse proxy between your users and the CDN to fulfill your purpose.You can also create a rule that redirects whatever you want to index.html. This is how you can what you want considering that CDNs are configured ... Read More

Websocket for binary transfer of data & decode with HTML5

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:22

646 Views

Use base64 encode/ decode on client and server. All the web browsers with WebSockets have window.atob (base64 decode) and window.btoa (base64 encode). The WebSockets server has base64 libraries.To transfer binary data, you would be working with wsproxy included with no VNC that is a web based VNC client.The wsproxy is ... Read More

Advertisements