The Java Web Translator library - java

please ,can you help me for using of this library"The Java Web Translator library"
in my applicatin ,or give me an example; how i can use it in my code java?
I have seen the google api translator but i chose JWT because it's
provides automatic language translation to the client's locale.
Thank's in advance

Have you read the documentation? It's here : http://sourceforge.net/projects/webtranslator/files/JavaWebTranslator-0.2a/Java%20WebTranslator%200.2a%20%28Alpha%20Release%29/
Download the zip documentation file, unzip it, and open the index.html file. It contains a quick start guide and other useful material.

Related

creating a cluster from XML file

I am working on text analytics. I am using carrot2 api for Java through which I am reading an XML file and trying to generate the cluster. But I am unable to find any simple code snippet for the same. Can someone help me for the same.
Thanks in advance
Carrot2 JavaDoc overview has a number of code examples. Furthermore, the Java API package comes with more self-contained Java code examples.

How to create Web Service using WSDL file (WSDL file is using SOAP) in Core Java using Eclipse?

i am very new to Web services please help for my problem,i dont know how to start and where to start to do for my problem so please help me.please provide in detail explanation how to do.
Actually "i have WSDL file with that i need to create a web service server in core java with Eclipse IDE"
Basic hello world tutorial on webservics. You can go through this link. It might be good starting point .
Use wsimport in the jdk to generate Java classes you can use to invoke the web service.
There is a plugin in eclipse with which you can convert the wsdl file into java files

Document type “script” - what is it?

Trying to download docs from the Google Docs using Java client library and getting some documents with type "script".
What is this type and what is the proper way to handle such kind of files?
Thanks.
Those are Apps Script files. Go to script.google.com to create a new Apps Script project.
You can learn everything about Apps Script on https://developers.google.com/apps-script/

How to write a text to file with GWT on Client-side?

Is there any way to implement write/read file with gwt on client-side?
I tried with java.io.File, java.io.Writer ... I couldn't succeed.
thx in advance!
Update: Please see my own answer for a solution
No, you can't write to files on the client-side. GWT only binds a subset of the Java language. Any file IO would need to happen on the server side through RPCs or some kind of web service.
It's possible with HTML5 in some modern browsers. Try lib-gwt-file. This library can read files from client computer and even supports DND. To see it in action follow this link.
More information on HTML5 FileAPI you can find in the specification.
To download a file from browser memory to the client computer you can use Data URI. Example is here. But this feature is supported by Google Chrome only. Also take a look at the following helpful function. It runs download without reloading current page:
public static native void setWindowHref(String url)/*-{
$wnd.location.href = url;
}-*/;
Another semi-crossbrowser way is Downloadify. It's based on flash. Check this example.
Recently, I've stumbled upon a library called client-io.
A simple library that brings the Flash File API to regular web apps
through GWT. ClientIO will help you offload some of the file
generation functionalities to the client, saving resources and heavy
computation to the server. Working Demo - http://ahome-it.github.io/ahome-client-io/
In GWT the classes in the client folder are only compiled into javascript hence it is not possible to use
java.io
since GWT does not provide compilation of the package
java.io
Hence you have to write text file through RPC only.

How to generate Google Search result's time line image

Can you please tell me if there is any open source library which generate 'timeline image' in Google Search result? (see below as an example):
http://www.google.com/search?q=history&hl=en&sa=X&tbo=1&tbs=tl:1,tll:1400,tlh:1599&ei=oL46SsOrIIy0sgPQrrCDCw&oi=timeline_histogram_nav&ct=timeline-histogram&cd=9
Thank you.
That image is generated by Google Chart Server. You can use this from your web applications. I'm not aware of an open source equivalent.
These graphs are similar to sparklines which were based on thoughts by Edward Tufte.
There's quite a few open source libraries which can generate these, including JQuery. You can find more implementation links by searching Google for "sparkline [language]".

Categories