Sunday, 5 March 2017

To know Java bit version

Option 1:
------------
Just type java -version in your console.
If a 64 bit version is running, you'll get a message like:
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) 64-Bit Server VM (build 16.0-b13, mixed mode)
A 32 bit version will show something similar to:
java version "1.6.0_41"
Java(TM) SE Runtime Environment (build 1.6.0_41-b02)
Java HotSpot(TM) Client VM (build 20.14-b01, mixed mode, sharing)
Note Client instead of 64-Bit Server in the third line. The Client/Server part is irrelevant, it's the absence of the 64-Bit that matters.
If multiple Java versions are installed on your system, navigate to the /bin folder of the Java version you want to check, and type java -version there.

========================================
Option 2:
------------
You can try on the command line:
java -d64 -version
If it's not a 64-bit version, you'll get a message that looks like:
This Java instance does not support a 64-bit JVM. Please install the desired version.

Thursday, 19 January 2017

why 'Authorization' header is special ?

  Authorization headers are recognized and specially treated by HTTP
   proxies and servers.  Thus, the usage of such headers for sending
   access tokens to resource servers reduces the likelihood of leakage
   or unintended storage of authenticated requests in general, and
   especially Authorization headers.

https://tools.ietf.org/html/rfc6819#section-5.4.1

Wednesday, 18 January 2017

robocopy delete - too long filename (windows)

Save these steps in batch (anyname.bat) file and run it OR run these steps individually.

mkdir D:\empty_dir
robocopy D:\empty_dir D:\dir_to_be_deleted  /s /mir
rmdir D:\empty_dir
rmdir D:\dir_to_be_deleted

Wednesday, 11 January 2017

What is SOFEA ?

SOFEA is an abbreviation for Service Oriented Front End Applications/Architecture, it refers to a web application architecture where all of the UI functionality is provided by javascript or flash-based logic. It doesn't interact with the web server per se to provide application level access to data, but rather interacts with web services through AJAX. Essentially, you provide all of the UI logic in a single (or few) web pages. These pages work with web services to access and update data.