Check Unread Emails using Java

January 20th, 2010 Hitesh Agrawal 1 comment

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:

Check Image Resolution in Java

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:

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:

BackUp and Restore Mysql Database

October 7th, 2009 Hitesh Agrawal 3 comments

In this article we will learn on how we can perform following operations using MySQL.
* Backup Database using MySQL
* Backup specific tables using MySQL
* Backup Multiple Database using MySQL
* Backup Database Structure using MySQL
* Restoring Backup using MySQL
Read more…

Categories: Mysql Tags:

Column count doesn’t match value count in MySql

October 6th, 2009 Hitesh Agrawal No comments

When we try to insert/update data that exceeds column length, the default behavior should be to truncate the value and insert/update the column; though this was there in MySQL 4 by default but strangely in MySQL 5.x this feature is disabled by default. In this article will highlight how we can resolve this problem.
Read more…

Categories: Mysql Tags:

Manipulating Table using JavaScript

October 1st, 2009 Hitesh Agrawal No comments

In this article we will learn on how we can Manipulate HTML table using JavaScript. Following topic will be covered here:
1) Creating HTML Table in JavaScript
2) Adding new Row in HTML Table using JavaScript
3) Remove Row from HTML Table using JavaScript
Read more…

Categories: Javascript Tags: