Technical Links

Final is not Final Anymore Sending Emails From Java How deep is your Hierarchy Copying files from Internet LinkedList vs ArrayList Hash ...hash...hashing!! Buckets and Hashes …

Magic Man of Engineering!!

This is about one of my senior who is really a magic man......just wait for the post coming soon.…

Taming Java Annotations.

Annotations were introduced in Java 5 mostly known as Tiger.  More than 5 years now. A lot of frameworks like Spring, Hibernate ,EJB are using annotations a feature of Java. We have used Spring MVC in our project and we are using Spring annotations. One of my colleague asked me how annotations worked. I was about to explain this but the maximum I was About to tell him was that annotations work as interface and implementation is provided by Java at run time. But then I thought what if I am going to have my own custom annotations who will handle them and who will provide required features for those annotations. Then I thought of working on annotations at ground…

Adapter Design Pattern.

Hi Guys, I have recently started reading about Design Patterns in Java and J2EE. I knew about them but then I though I should try to learn them in depth and try to Implement them. So here come the very first one called Adapter Pattern. Basically this is used to relate two things which are actually unrelated. Confused?? Ok!!  Let me clear this for you. A very simple example is using phone charger. Suppose your mobile phone needs 9 Volts of supply to get charged but main supply is 220 V which is not what you require but it can be a source and you can have someone who can get 9 V out of this 220 V and supply…

Asynchronous File Downloader in Java and Javascript.

Hi All, I had a requirement where I had to use Ajax based file downloader. I  tried alot but couldn't find anywhere. Finally I got one solution which is similar to the Ajax in some ways. I have implemented it using an iframe in html and it worked really great for me. I thought I can share this with you guys. I hope this will be useful for some one. I have one servlet which is used to download file: package com.pawan; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import javax.servlet.ServletContext; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class ServletDownloadDemo extends HttpServlet{ private…

Article Spinning Basics

* * I don't have any experience with Article spinning. Its just that I have learnt something new so I thought I can share it with you guys. Definition: There are very confusing definitions available on the Internet. I am not sure If I will be able to make it simple but I will try my best to do that. Well this is what WIKI says about it: Article spinning is a technique that relies upon clever edits and rehashing blog entries and articles, and then swapping out components of those pieces so as to avoid negative consequences on Search Engine Results pages (SERP) for utilizing previously written content Confusing? Well in Simple language* Article spinning is basically choosing random words and…

Quotes written by me!

Qoutes

(1)If you have fear of something it will scare you the most, the moment you will remove that fear it will work for u like a host. (2)The most lovable word I have found in the dictionary is Girlfriend, because you get the most wanted things in one word Girl and the precious Friend. (3)God is a word which is solution to all the questions in this world; I have implemented God in a computer program and believe me it worked!! (4)The most precious gift god has given to this world is MOTHER, and now whenever he realize that he missed it he cries and it rains on earth , so that mothers can realize his pain…

X-Factor of XML parsers

Java XML parsers

I have used XML in spring, hibernate and some other frameworks. I didn’t get pain to parse and read those configuration files ever because framework’s API was doing that for me. Just before 10 days I had attended a training of AXIOM in my organization, I was sitting like a dumb person because I was completely unaware of things like Push parsing and Pull parsing. Any how I had to complete that training and I did it (But I don’t even remember what is AXIOM ;)). Then, I started learning about these two things Push and Pull parsing, and I found them very interesting. So, I thought of writing a Tutorial on this topic. This is my very…