Document type “script” - what is it? - java

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/

Related

How to create java web form with spring, bootsrap, javascript that calls java method?

this is my first question on stackoverflow and I'm really confused..
I'm new with java and very confused at this moment. I'm planning to create a java web service with spring that handles a webform and a portable scanner device. I get this project for my first in new workplace but I can't move on. I don't know what are the neccesery steps to succeed.
What I want from the Application running step-by-step:
Open in an executable file that
Open a new browser window on localhost and shows a form
Filling out form with input fields, checkbox items, dropdown list,
commentbox,
AND Option for file upload from local and/or call startScan() java method.
startScan() = take photo from device and saves it to project's root folder and rename it as formatted date: "yymmdd_hhmmss"
submitButton()
onSubmitButton() the form data should be saved in database that
later i can download as xml
I have read lot of blogs and watch tutorials but that causes me confused. JPA? Hibernate? REST? REACT? I would like to create a very simple app that can display the form on window browser that is easy to access with bootsrap.
What is the neccesery toolset for doing this as simple as possible?
mysql? postgresql? which of these I can implement, what should i install locally?
If I could came out from back end to front that would be awesome..
Goal: Create a localhost database system that handles the form and scanner device method in a fancy css view.
Now, I'm using eclipse with spring. What are the neccesery dependencies? what are the local requirements for this kind of project? Please, help me with any advices..
I am very grateful for everything
Thank you in advance
I designed something similar, a simple two-page web application with login functionality and application main page that supports database operations and scanning functionality.
I would recommend you to go step-by-step since documentation is also as important, to be able to clearly visualize the project objectives, to know the constraints before-hand, make modifications on-the-fly and as a reference for your peers.
As a newbie with Java development, these are some basic steps and links which I feel would be helpful:
Project Scope Document (Web based tool: Draw.io)
Project Plan Document
Site Map (Web based tool: Draw.io)
Front-end Wireframing (Web-based tool: Balsamiq)
Back-end Wireframing (Microsoft Excel)
Back-end Flow chart (Web-based tool: Draw.io)
Front-end development (Technologies: HTML5, CSS3, Bootstrap 3, JavaScript; Tool: Brackets)
Back-end development (Technologies: PL/SQL or MySQL, Java, JDBC, Servlet, JSP, JSTL; Tools: SQL Developer, JBoss Studio)
Integrating Scanner (Third-party Java APIs)
Technology Stack: This is a simple and very generalized stack preference. You could customize it according to your needs.
Helpful Links on getting started: Java Web Terminology, JBoss Hello-world tutorial, Simple Java web application
Tools: Draw.io and Balsamiq are easy to use web based tools. You could use Bootstrap to make a quick fancy front-end. Brackets is a nice front-end code-editor supporting live-previews. SQL Developer is a wonderful tool if you're using Oracle SQL. JBoss Eclipse IDE has in-built application server which you can use for testing on localhost.
Note: All tools and technologies listed here are either free or include a trial version.
Hope that helps!

Running Rapidminer in Java

I'm new with rapidminer and played around a little with the Rapidminer Studio. However, now i'm trying to integrate my classifiers into a Java programm.
I want get soma data from a database, modify it to fit my purposes and classify it with the rapidminer process.
So here is the question:
How do I classify data with rapidminer-models directly from my java program and where to get the needed libraries??
Thank you for any help
I somehow googled the wrong thing for two days.
Found a solution now.
You can train your Model in Rapidminer, then use the following extention to export it as a .pmml.
https://marketplace.rapidminer.com/UpdateServer/faces/product_details.xhtml?productId=rmx_pmml
just add the extention via marketplace and use the "Write PMML"-Operator to create a pmml file of your model.
The pmml file can be included into your java programm with the following library:
https://github.com/jpmml/jpmml-evaluator
The link above explains pretty well how to use the library.

how to code in java for bigquery API

I'm trying to learn to use bigquery API to get data from google database and import it to another sql database. I'm using eclipse java what application project should I set up? what plugin should I install?anyone has experience with this?
I'm more of a C# person,I used windows app form before, dont know how to do that in java. can anyone give some advise? Thanks!
To be more specific,I simply want to create an ETL to get bigquery data to our datawarehosue,it doesn't have to be a UI,i just need it to run on the backend. I install google plugin4.3
Which project is the easiest for me to use? Any successful code to get data from bigquery servlet to somewhere else?
I don't know how to plug the code in from:
https://cloud.google.com/bigquery/bigquery-api-quickstart
Any instruction will be appreciated, thanks!
It sounds like you're looking for more of a general Eclipse tutorial than something BigQuery specific. You'd nominally create a "Java Project" to run simple Java code, but you'll need to set up the project to include your dependencies and so forth.
You may want to check these tutorials out : http://eclipsetutorial.sourceforge.net/totalbeginner.html
Alternately, you could Google for "eclipse tutorial" or "eclipse quickstart".

Whether it Library org.garret.prest?

I discovered this when decompiler an application, no one knows what it's kind of a Library? I found it in an Android app, because I want to look to try the library
It's a database library called Perst.

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.

Categories