João Machete

Tag: java

EnaOCR – Open Source

by admin on Mar.25, 2010, under Research and Development

This is my first contribution to the world of open source. I started developing this project in the university, and I will continue to work on it until it is stable enough to run on any operating system. For now only runs in Windows and Linux. OSX is the next step, I hope this can be available soon.
splashWhat is EnaOCR?

EnaOCR is a Optical Character Recognition desktop application, that allows you to read multiple images files and convert them to ASCII text or XML.

With this application is easy to deploy any data to any external database in a short period of time. You just need one click to process hundreds of images in seconds, is very fast and with strong accuracy in the detection of words

(continue reading…)

2 Comments :, more...

Replace backslash character to slash in a String with JAVA

by admin on Aug.20, 2009, under General

Today I had a small problem with java, and I leave here my solution to help others who are in the same situation.

Here I give you a small trick to replace backslash special caracter to another caracter in Java. If you are doing some project, and you need to replace a backslash “\” with the forward slash “/”, you will notice you can´t do this in the normal way.

Let´s see “the normal way”:

String address = "C:\Program Files\Java\jre6"
address = address.replace("\" , "/"):

you will have a error.

try this….

String address = "C:\Program Files\Java\jre6"
String backslash= System.getProperty("file.separator") ;
address= address.replace(backslash,"/");
System.out.println(address);

OUTPUT:

C:/Program Files/Java/jre6

;)

inputPath = inputPath.replace(barra,”/”);
System.out.println(inputPath)
Leave a Comment : more...

First Time with GWT

by admin on Feb.03, 2009, under Research and Development

This tutorial introduces you to GWT. You can do develop GWT apps without any IDE, but it is really helpful if you use one. I choose Eclipse with Cypal Studio for GWT (which was earlier known as Googlipse) to walk thru this tutorial.

Requirements:

  • You need the latest GWT. You can download it at here. Make sure you download the latest version.
  • Download and install Eclipse 3.4 with WTP 2.0. You can get it here.
  • You need a Java 1.5 VM to run Eclipse. You can get it here.
  • Download Cypal Studio for GWT from here and extract it to your eclipse directory.

(continue reading…)

Leave a Comment :, more...

Install Google Web Toolkit in Ubuntu

by admin on Feb.03, 2009, under General

#!/bin/bash

wget http://google-web-toolkit.googlecode.com/files/gwt-linux-1.5.3.tar.bz2 -P /tmp
tar xjf /tmp/gwt-linux-1.5.3.tar.bz2 -C /tmp
sudo mv /tmp/gwt-linux-1.5.3 /opt/gwt-linux

3 Comments :, more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Archives

All entries, chronologically...