This tutorial explains how to use Git Version Control with Android Studio. Git is a distributed version control system. Git is a best choice among all the version control software like CVS, SVN etc. Android studio comes with Git client. All we need to do is just enable and start using it. As a prerequisite, we need to have Git ... Read More »
How to encode decode String in Java base64 Encoding
Base64 Encoding Algorithm Base64 encodes String using an algorithm which uses 64 printable characters to replace each character in original string in an algorithmic sequence so that it can be decoded later. Base64 encoding prevents misuse of data by encoding it into ASCII format. Base64 is real simple and easy to use for simple encoding needs. There are more advanced ... Read More »
How to kill a process in a shell script that is running through cron
I have a shell script which is running in cronjob. This shell script has start with killing the process if it is already running and start the new process again. To do so I wrote the below line at the beginning of my shell script. First step is to find the PID (Process Id) and once that is found use ... Read More »
How to read and parse CSV file
This tutorial shows how to read, parse and print out the values from a CSV file. Say we have a CSV file user-profile.csv where the user name, roll number, age, course name is stored, seperated by comma. Sample file data Extracts the Roll Number and Course from above CVS file, and print it out. Read More »
How to install HTTP Apache, MySql, PHP, PhpMyAdmin from source-Part 2
Install HTTP Apache from source 1. Download source mysql-5.6.24-linux-glibc2.5-x86_64.tar.gz from http://dev.mysql.com/downloads/mysql/ 2. Copy the downloaded file to folder where you want to install MySql, for my case I copied in /opt/soft-install/ directory 3. Extract the file at this location, command to extract cp -av mysql-5.6.24-linux-glibc2.5-x86_64.tar.gz /opt/soft-install/ tar -zxvf mysql-5.6.24-linux-glibc2.5-x86_64.tar.gz mv mysql-5.6.24-linux-glibc2.5-x86_64 mysql-5.6 4. Go to the bin directory of the ... Read More »
How to install HTTP Apache, MySql, PHP, PhpMyAdmin from source-Part 1
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.cgi2. Copy the downloaded file to folder where you want to install apache http server3. Extract the file at this location, command to extract 4. Download apr-1.5.2.tar.gz and apr-util-1.5.4.tar.gz and extract the files at httpd-2.4.12/srclib/ director a). Download apr-1.5.2.tar.gz and ... Read More »
What is Memory Leak & How can we avoid Memory Leak
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
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
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
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 »
Jkoder.com Tutorials, Tips and interview questions for Java, J2EE, Android, Spring, Hibernate, Javascript and other languages for software developers