How to install HTTP Apache, MySql, PHP, PhpMyAdmin from source-Part 1

apache

How to install HTTP Apache, MySql, PHP, PhpMyAdmin from source Install HTTP Apache from source 1. Download source httpd-2.2.29.tar.gz from http://httpd.apache.org/download.cgi 2. Copy the downloaded file to folder where you want to install apache http server 3. Extract the file at this location, command to extract tar -zxvf httpd-2.4.12.tar.gz cd httpd-2.4.12 4. Download apr-1.5.2.tar.gz and apr-util-1.5.4.tar.gz and extract the files ... Read More »

What is Memory Leak & How can we avoid Memory Leak

Java

Memory leak occurs when programmers create a memory in heap and forget to delete it. Memory leaks are particularly serious issues for programs which by definition never terminate. Usually developers talk about memory leaks but when you ask them what that means many have no idea. To prevent these situations, Lets discuss about memory lean in detail. Memory that is ... Read More »

How to install visualvm in Ubuntu

Java

VisualVM is a visual tool, integrating several command line JDK tools and lightweight profiling capabilities. Designed for both production and development, it further enhances the capability of monitoring and performance analysis for the Java platform. VisualVM is designed for- Java Developer: Monitor, profile, take thread dumps, browse heap dumps. System Administrator: Monitor and control Java applications across the entire network. ... Read More »

Anti cross-site scripting (XSS) filter for Java web applications

j2ee

XSS (cross-site scripting)is the most prevalent web application security flaw. XSS flaws occur when an application includes user supplied data in a page sent to the browser without properly validating or escaping that content. Detection of most XSS flaws is fairly easy via testing or code analysis. How Do I Prevent ‘Cross-Site Scripting (XSS)’? HTML escaping Escaping of Input Escaping ... Read More »

Difference between JDK, JRE and JVM

Java

If we are a Java developer, it is very often that we think about understanding the JRE,JVM and JDK. It would be quite easy for us to visualize things in logical manner. Let’s see the basic differences between the JDK, JRE and JVM. JDK (Java Development Kit) Java Developer Kit contains tools needed to develop the Java programs, and JRE ... Read More »

Create a J2EE Web Application project with Apache Maven

apache

In this tutorial, we will learn how to create a J2EE Web Application project with Apache Maven, imports it into the Eclipse IDE, and package the Java project into a war file. Tools used : Maven 3.2.5 (For how to install, click here) Eclipse (Kepler Release) JDK 7 A. Create a Java Project from Maven Template In a terminal (*uix ... Read More »

Create a Java project with Apache Maven

apache

In this tutorial, we will learn how to create a Java project with Maven, imports it into the Eclipse IDE, and package the Java project into a jar file. Tools used : Maven 3.2.5 (For how to install, click here) Eclipse (Kepler Release) JDK 7 A. Create a Java Project from Maven Template In a terminal (*uix or Mac) or ... Read More »

Installing Apache Maven on Ubuntu & Windows

apache

To install Apache Maven on Ubuntu and Windows machine we need to take the following steps- Download the current stable version of Maven from http://maven.apache.org/download.cgi. Once downloaded follow the istallation steps – Installation Instructions A. Unix-based Operating Systems (Linux, Solaris and Mac OS X) Extract the distribution archive, i.e. apache-maven-3.2.5-bin.tar.gz to the directory you wish to install Maven 3.2.5. These ... Read More »

How to handle jQuery cross domain AJAX request

Cross Domain jQuery AJAX request AJAX Requests are only possible if port, protocol and domain of sender and receiver are equal, means that the following below listed requests won’t work- Requesting https://serverA.com/a.php from http://serverA.com/b.php Requesting http://subdomain.serverA.com from http://serverA.com Requesting http://serverA.com:5000 from http://serverA.com Here in this tutorial we will cover the ways to handle this restriction. First lets look at the ... Read More »