Pipes Feature in Unix Shell : How to send and get data between ANYTHING

Pipes is probably one of the most important and useful features features that is available in the Unix shell. This feature is simply astonishing, specially to people who are not familiar to the concept of pipes are totally surprised when they see it work. Without further delay, lets get to the core issue. Using pipes can save you time and headachs. Explanation : Pipes as the name suggests is a sort of hollow tube (a…

"Pipes Feature in Unix Shell : How to send and get data between ANYTHING"

How to Configure Iptables Firewall on Linux

Iptables is well known as being one of the most powerful ways to secure and lockdown nearly any linux machine.  But it can be challenging and difficult to understand just how to configure iptables linux.  With a learning curve that can scare or intimidate most people just getting started with Linux it can be a very time consuming quest for information when it comes to trying to just learn the basics of iptables, or to…

"How to Configure Iptables Firewall on Linux"

BeanFactory vs ApplicationContext

Difference between BeanFactory and ApplicatonContext is:-   Difference between BeanFactory and ApplicationContext are following: BeanFactory uses lazy initialization but ApplicationContext uses eager initialization. In case of BeanFactory, bean is created when you call getBeans() method, but bean is created upfront in case of ApplicationContext when the ApplicationContext object is created. BeanFactory doesnt support internatiolization but ApplicationContext supports internationalization. With BeanFactory annotation based dependency injection is not supported but annotation based dependency injection is supported in ApplicationContext. BeanFactory explicitly provide a resource object using syntax but ApplicationContext creates and manages resource…

"BeanFactory vs ApplicationContext"

Restoring Ubuntu (or any distro) Grub Bootloader After Windows Install

If your install of Linux is a dual boot setup with windows you have run into this problem before. You reinstall windows and suddenly you can no longer access your Linux partition or the Grub bootloader. You can always go through the entire install of Ubuntu again, or you can try to repair the bootload, but how do you repair the bootloader? Here we look for the way to restore grub after windows install. Well…

"Restoring Ubuntu (or any distro) Grub Bootloader After Windows Install"

Don't use System.exit in Java 

It is not advised to call System.exit(0) in Java. In server like tomcat there could be multiple applications running, using same JVM. If any of those applications call System.exit(int status) accidentally then JVM will exit. Other apps will also stop. So to avoid that you can do 1. Run one app per JVM – Good Choice 2. Use Security Manager and prevent JVM from exiting by this call.

"Don't use System.exit in Java "