Extract Senders Email Addresses from your Email Or Google Account

Mar 10 2010

1. Enable pop3 settings in you Gmail A/C through settings

2. Configure Gmail in Ms-Outlook

3. Configure your filters (if you need them)

Continue Reading »

No responses yet

Send mails to contacts in Gmail, POP3 email accounts

Feb 21 2010

You probably have many emails addresses sitting in your Inbox and you want to send email to all of them.

The mail service providers such as MailChimp, Aweber, GetResponse, do not accept your email list because they are not opt-in.

Here is what you can do.

1. Setup your Gmail or POP3 account with Microsoft Outlook

Continue Reading »

No responses yet

com.sun.tools.javac.Main is not on the classpath

Feb 08 2010

I get the following error when I run ant script.

com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to “d:\devtools\java1.5\jre”

Continue Reading »

No responses yet

Resolved Solution for “telnet could not open connection to the host on port 3306″

Jan 16 2010

Check the following:

Step 1. Make sure mysql is up and running

Windows – Check in task manager for mysqld-nt

Linux based (Ubuntu, debian etc.,) – service mysql status

or ps -elf | grep mysql

Step 2. Make sure the port is in LISTEN mode

Windows – netstat -a | find LISTEN

Linux – netstat -a | grep LISTEN

Continue Reading »

No responses yet

Setting up JackRabbit with Database

Oct 17 2009

There are not many resources on the net that shows how to setup up JackRabbit with database. At least I couldn’t find it. There are many reasons you would want to choose to implement the storage in database rather than file system. Well I’m not going to talk about that here. You read an interesting discussion on TheServerSide.

Continue Reading »

No responses yet

Delete more than one table

Oct 16 2009

String query = "show tables like 'a%'";
String tables = null;
try {
Statement st = conn.createStatement();
ResultSet rs = st.executeQuery(query);
 
while (rs.next()) {
String tableName= rs.getString(1);
if (tables == null) tables = tableName;
else tables += "," + tableName;
}
st.close();
 
st = conn.createStatement();
st.executeUpdate("drop table " + tables);
st.close();
} catch (SQLException e) {
System.out.println("Unable to execute Query " + e.getMessage());
}

No responses yet

Connect to database

Sep 16 2009

try {
  String url = "jdbc:mysql://localhost:3306/mydb";
  Class.forName ("com.mysql.jdbc.Driver").newInstance ();
  Connection conn = DriverManager.getConnection (url, user, pwd);
} catch (Exception e){
  System.out.println("Unable to establish connection " + e.getMessage());
}

Continue Reading »

No responses yet

Web Forms with XML

Aug 14 2009

A simple library to convert your HttpRequest to XML and XML to HashMap and use in JSP. XMLWebForms v1.0 is released now.

No responses yet

First Release – DataService in Java

Jun 11 2009

I’m release the frist version of Java Data Service. It provides data in XML to the presentation layer. You can configure the data source in XML and connect to more than one source.

Features in v 0.1 beta

  • Define Data sources – for now its only RSS, ATOM feeds
  • Read data using Data service
  • Define data collaboration plug-in

Features under development

  • Define Database data source, JNDI for database
  • Updatable data service

No responses yet

First Release – Spring-Hibernate Plug-in

May 10 2009

Spring-Hibernate Eclipse plug-in Version 1.0 is available now.

Features in this release

1.Spring, Hibernate configuration files

2. Maven POM

Limitations

1. No option input package name

2. No option to include security (j2ee)

No responses yet

« Newer posts Older posts »