Nitya Raut

Nitya Raut

158 Articles Published

Articles by Nitya Raut

Page 16 of 16

How to handle right to left swipe gestures?

Nitya Raut
Nitya Raut
Updated on 30-Jul-2019 736 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 above code, we have taken button view to handle swapsStep 3 − Add the following code to src/MainActivity.javapackage com.example.myapplication; import android.content.ActivityNotFoundException; import android.content.Intent; import android.content.pm.ResolveInfo; import android.content.res.Configuration; import android.graphics.PixelFormat; import android.os.Build; import android.os.Bundle; import android.support.annotation.RequiresApi; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.Gravity; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.WindowManager; import ...

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 187 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 to serve only static existing files as you know.Content Delivery Network (CDN) puts stuff like blobs and other static content in a cache. The process involves placing the data at strategically chosen locations and caching it. As a result, it provides maximum bandwidth for its delivery to users. Let us ...

Read More

Websocket for binary transfer of data & decode with HTML5

Nitya Raut
Nitya Raut
Updated on 30-Jul-2019 888 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 a WebSockets to generic TCP sockets proxy. The base64 encodes/decodes all traffic to/from the browser. Use it to connect from a WebSockets capable browser to any type of TCP port.

Read More

Uniquely identify files before uploading with the HTML5 file API

Nitya Raut
Nitya Raut
Updated on 30-Jul-2019 252 Views

While making a fileuploader using HTML5 file API, we want to be sure that no duplicate files are uploaded based on actual data. Calculating a hash with MD5 is not an efficient method as all that happen on the client side and is time-consuming. There is actually no shortcut for this. If we need to identify duplicate files with no confusion then we have to first read the content of each file and then compare it.Another way is to find MD5 hash for given subset of file blocks using predefined invariant window.

Read More

Extracting data from SAP ERP for a Third Party System\\n\\nExtracting data from SAP ERP for a Third Party System

Nitya Raut
Nitya Raut
Updated on 30-Jul-2019 389 Views

Let’s talk the standard way - It would be a great option to opt for creating a REST based ODATA services. You can expose the SAP functionalities mainly BAPI or any RFC as a service with SAP gateway. SAP gateway lets applications to exchange data across a variety of technologies and applications.In case the requirements are not extensive and can be catered by existing API’s exposed by SAP, then you can just enable the required services for usage. These APIs will require good hands-on knowledge of SAP Services.You can build an SAP source data plugin using JAVA and JAVA SAP ...

Read More

OData or Java Services to be consumed by SAP UI5 application

Nitya Raut
Nitya Raut
Updated on 30-Jul-2019 482 Views

Before I make any proposal, I am assuming that you understand both oData and REST very well. REST is a well-known and accomplished architecture style whereas oData is a protocol for communication.OData resides on top of Atompub protocol which in turn is based on REST so overall oData seems to follow REST path only and it is implemented in a similar manner.The advantage that you get with oData is that it saves a lot of effort and time in handling client side either by writing Javascript code or something else. I agree that the support in JAVA for oData will ...

Read More

Standards for maintaining Customer Repository Objects in SAP

Nitya Raut
Nitya Raut
Updated on 30-Jul-2019 179 Views

The Y-namespace is meant to be used for centrally developed solutions or also known as head office while the Z-namespace is used for local developed solutions or also known as branch office. But at the end of day, it all depends on the developer how he uses it.

Read More

Inserting new line to the output using WS_Download in ABAP

Nitya Raut
Nitya Raut
Updated on 30-Jul-2019 1K+ Views

First of all, don’t use WS_DOWNLOAD as this is obsolete.You can use a character type field and set it to cl_abap_char_utilities=>cr_lf. Now use this field at places where you want to insert the new line.

Read More
Showing 151–158 of 158 articles
« Prev 1 12 13 14 15 16 Next »
Advertisements