Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
i was searching about some api's for printers but i can't find anything, maybe cause i'm searching that bad.
I wonder if there is any API which i can send some json code (or like that) as that example:
nameFile:"document.pdf",
url:"blabla/documents/document.pdf",
pages:"5"
etc. And the printer "understands" that and start printing.
At all what i'm searching is some code that give's data to printer and these printer starts printing (fck, i need more English classes..)
Thank you all!
Use Javax Print API, and write a utility to convert your own JSON input format to appropriate print api calls.
Refer this for sample program.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I have a service written in python.
This service uses DataFrame from pandas.
The thing is that it (the service) should be translated to Java.
For that I need a similar library in Java. (or is there other way to achieve this?)
I would like to know what are some options for this.
Till now I have joinery library
Besides joinery you could also take a look at tablesaw library. Here is link to a brief tutorial: https://jtablesaw.github.io/tablesaw/gettingstarted
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm going out on a bit of a limb here asking this but I'm struggling to find any information about this anywhere.
I have built an app with a barcode reader and it works in that it reads the barcode and displays the result. But the result is just the barcode number which we can already see. I want to build it so that it will read the barcode and then give me product information.
I've heard about APIs and how Amazon have one but I can't find out anywhere how to go about this.
Can anyone please point me in the right direction?
Scanning a barcode only gives you the bar code number. The barcode does not inherently contain any data about the product. You need another source for that information. However, once you have the barcode you can just lookup the data from a Google search or some sort of database.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am trying to make a program using Java to allow me to log into my Mikrotik router and change user passwords. I have tried different syntax for the code but nothing has worked. I'm not to great with the api syntax to begin with. Does anyone know how the proper syntax is? Thanks in advance!
Every time i try to send the command to change the password it returns the error "=message=no such command prefex"
I Have tried:
ret.sendCommand("/user/set admin password=xxx");
ret.sendCommand("/user set admin password=xxx");
ret.sendCommand("/user/set");
ret.sendCommand("=number=admin");
ret.sendCommand("=password=xxx");
ret.sendCommand("/user/set");
ret.sendCommand("=.id=admin");
ret.sendCommand("=password=xxx");
It looks like you're using the example code from http://wiki.mikrotik.com/wiki/API_in_Java and while it is quite possible to get that to work, it's not the easiest way to manipulate a Mikrotik from Java.
I suggest you take a look at this API I wrote: https://github.com/GideonLeGrange/mikrotik-java
It comes with proper examples and is intended to make the transition between the RouterOS command line and come a bit easier.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I would like to know the best way to generate reports in java. I have written a small code in java which reads data from my csv file and printing in console. how can i pass this data to my HTML reports.
Thanks in advance
The two options I would consider for creating an HTML representation of your data are Apache Velocity & Freemarker. Both of these are easy to use template engines that separate the generation & formatting of the output from the Java code which I find improves maintainability.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am in the process of using Java to read javadocs.
My java object has the attributes,
Description
Package Name
Method Name, Method Description
Is there any existing api that can do this?
How can I read the javadoc in such a way that I can extract the above mentioned attributes?
The javadoc tool includes an API for writing custom doclets. These basically get the parsed tree of documentation fragments and they generate some kind of report based on that. The standard doclet generates the HTML pages everyone is familiar with. Your easiest option is likely to write your own doclet.