Posts

Showing posts from 2015

Difference and performance between HTTP and HTTPS

Lot of people end up getting confused when they see two different URL’s one as HTTP and other as HTTPS. So what is the difference between these two? In this post I will discuss the evolution of HTTP and the difference between HTTP and HTTPS in simple term so that it makes sense quite easily.  What is HTTP It is always necessary to know something about basics before going to the advanced topics. HTTP stands for H yper T ext  T ransfer P rotocol. It is the system for transmitting and receiving information across server and the client. The Server is the machine where your website code is placed and client is nothing but your browser. HTTP manages the mutual understanding between server and the client to exchange information or data successfully. The first HTTP had only one method called as GET, which would request a page from server and the response was a HTML page. The latest version of HTTP defines nine request methods. If you visit any website you may see th...

SSH Tunneling with Putty

Image
  Tunneling Requirements: A System with Putty s/w. Port Tunneling:  Launch the putty, Different categories will be listed on the left side, click on Connection > SSH > Tunnels. Before this load the saved session so that the changes we are going to do will be saved under that session. Under Add new forwarded port:, enter the following information: Source port: [port on local machine]  eg:8080 Destination: [hostname of xxx machine]:[port on xx machine] eg:10.0.0.224:7805 Click Add. In the below shown figure, It would look like this if I wanted to forward port 7805 on the xx  web server to 8080 on my local machine: Clicking Add will add it to the list of forwarded ports: After this go to session click on save so that the forwarded ports will be save under the selected session. Connect using putty After setting up the port tunnel, select Session from the category list on the left side. Enter 172.29.4.113 in the Host Name (or IP Address) field ...

Jasper Report Viruatization

Image
Jasper Report Viruatization There are certain things to care while implementing the Jasper Reports for huge data-set to handle the memory efficiently, so that the application does not go out of memory. Pagination of the data and use of JRDataSource Viruatization of the report. Problem:- When there is a huge data set, it is not a good idea to retrieve all the data at one time.The application will hog up the memory and you’re application will go out of memory even before coming to the jasper report engine to fill up the data Solution :- To avoid that, the service layer/Db layer should return the data in pages and you gather the data in chunks and return the records in the chunks using JRDataSource interface, when the records are over in the current chunk, get the next chunk until all the chunks gets over Even after returning the data in chunks, finally the report has to be a single file.Jasper engine build the JasperPrint object for this. To avoid the piling up of me...