Tuesday, September 29, 2015

How to handle Facebook Likes in thread safe way in Java(Multithreading + synchronized)

12:50 AM By

Multi threading is a concept where multiple operation can be done at the same time. For example, facebook likes. Single photo or Facebook pages can be liked by many Facebook users at that same time. Today I am going to demonstrate how to handle it in...

Tuesday, September 22, 2015

Console Calculator program using Java

11:44 PM By

This is sample Calculator program based on console input. You will be allowed to give input repeatedly until you type "exit".  Is does not check for precedence of character. It start to calculate from right to left recursively. Here...

Wednesday, August 19, 2015

Create and Download pdf from server using spring java and angular

11:45 PM By

Create Temporay file and then delete that file doesnot work. So, We need to be carefull about FileInputStream and FileOutputStreams. They must be closed before delete the file. Here is complete example of how to create pdf and download pdf in two...

Best way to download File From Server using java spring and angular js

11:40 PM By

I think the best way is to make an AJAX request which generates a file on the server. On the browser, when that request completes, use window.open() to download the generated file. <a target="_self" href="example.com/uploads/asd4a4d5a.pdf" download="foo.pdf"> -----------------------------------Direct...