Archive

Archive for the ‘Java’ Category

Understanding MySQL Joins

June 15th, 2010 Hitesh Agrawal 1 comment

SQL Joins are basically used to fetch records from multiple tables based on certain conditions. There are various ways of getting records from multiple tables using MySQL Joins. In this article we will learn various techniques of reading records from multiple tables.
Read more…

Categories: Java, Mysql, PHP Tags:

Reading New Emails from Java Applications

January 20th, 2010 Hitesh Agrawal 3 comments

Sometimes we only want to check new emails received, we commonly see this functionality in email client where in we open the email client in morning and we see few emails in black bold text denoting new emails received. In this articles we will learn on how we can identify new emails received in our mailbox using java.
Read more…

Categories: Java Tags:

Checking Image Resolution from Java Applications

November 26th, 2009 Hitesh Agrawal No comments

At first we might tempted to use any 3rd party software for checking image resolution using JAVA. But JAVA has already provided an set of APIs that allows Image Manipulations. This APIs is called Java Advanced Imaging also called JAI. In this article we will learn how we can check the image resolution using Java Advanced Imaging APIs.
Read more…

Categories: Java Tags:

Understanding Prototype Design Pattern in Java

October 21st, 2009 Hitesh Agrawal No comments

As the same suggest prototype means some form of cloning and in this design pattern we will understand how we can achieve cloning of an java object. Normally we create an object using “new” operator but with new operator we are creating the whole new object from scratch and so all the necessary operation performed while creating that object will be processed again. To ensure that we don’t want to perform that expensive task again we create an clone of that object. There are 2 types of cloning “Shallow Copy” and “Deep Copy”.
Read more…

Categories: Java Tags:

UTF-8 Encoding Email Content using Java

September 3rd, 2009 Hitesh Agrawal 2 comments

Strange but true, email gateway by default does not support utf-8 encoding for the body text. I also came to know about this when i found my email content containing garbage data along with mail content if any special character comes in the mail content.
Read more…

Categories: Java Tags:

Remote URL Connection Through Proxy in Java

July 21st, 2009 Hitesh Agrawal 2 comments

Sometimes we want to connect to remote URL from our java program but we are unable to connect due to proxy server. So in this article we will be learning:

  • How to set the Proxy Connection Settings in Java.
  • How to connect to remote URL using Proxy Settings defined using Java.

Read more…

Categories: Java Tags:

Performing Text To Speech (TTS) conversion on linux using Java

June 30th, 2009 Hitesh Agrawal 1 comment

Festival, it allows us to convert Text to Speech (TTS) in wav format. In this article we will learn on how we can perform TTS from Java applications.
Read more…

Categories: Java Tags:

Logging User Session details using Apache log4j

May 28th, 2009 Hitesh Agrawal 1 comment

Apache LOG4J is used for logging in Java but apart from logging we can also set value inside log4j that can appear in all the logs getting generated. This will help us in debugging complex distributed applications. In this article we will use this technique to keep track of users activity during the login session.
Read more…

Categories: Java Tags: