Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am trying to create an app that would be able to generate kickstart scripts (along other things) and for one of the things to add was a list of packages you can install (obviously wont display them all, but will have a function to allow you to know if the package is available).
The problem I am finding is finding any documentation on how yum/apt read their repositories.
Does anyone know on where to find documentation on this sort of thing or if there is an open sourced app that does a simular thing (reading the repository that is)
APT and YUM repositories have different internal metadata formats:
APT: Can be parsed with libapt, or your own tools. It is pretty straightforward as the metadata format isn't too complicated.
YUM: Can be parsed with any XML library; the metadata is stored as XML and easily parsed with any XML library for any major programming language.
You can learn more about YUM repository metadata in this blog post. You can learn more about APT repository metadata in this blog post.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
In summary I have a java program that writes a file and I would like to now take that file and upload it to my Squarespace website. From here I am trying to figure out what my next steps are.
Unfortunately, Squarespace currently only offers APIs related to commerce (inventory, orders, products, transactions) and forms. There is no file storage-related API.
The only ways to upload files are via the WYSIWYG editor (via the add-link button), via the CSS Editor (for image assets) and via developer mode.
Squarespace 7.0 sites (current sites are 7.1 by default) that have Developer Mode enabled do support Git and SFTP. Theoretically, one could develop a system that utilized one of those methods in order to add files to the site (which would then be accessible via /assets), but that is only theoretical and far from ideal.
I'm afraid there isn't a good method for automatically uploading files to a Squarespace site.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
in one side i have an API that store many xml files.
on the other side, an another API have to receive all these files.
i have created a service in the first API that create an ByteArrayOutputStream with all the files and return it.
But i'm not sure it's the best solution if files are too large.
How can i receive in a safe way all the xml files in my second API ?
The best way to develop a file transfer system is to not develop the code yourself. Use an existing solution.
The best way to develop a file transfer system in Java is to minimize the code you write yourself. Use an existing Java library.
There are many software packages, libraries and/or protocols that you could use. Asking us to recommend specific ones is off-topic. When you do your research, make sure that you include your security and integrity requirements in your assessment criteria.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Java has various project types and the worse thing is that I'm a newbie in Java.
Netflix hosts a open-source project on GitHub: github.com/Netflix/netflix-graph/.
I want to know which kind/type of project it is ? Console, EE, or ....?
Also, how can such projects be created or any reference to better analogy of various project types ?
It is a library which you can include in your Java project to work with graphs. As such, it is similar in "type" as a JSON parser or an HTTP client library.
It is not an application that you run by itself.
It does not seem to have any special dependencies, so that you can probably use it in all kinds of Java applications, most likely even on Android.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm writing a plugin to IntelliJ, and need to hook into some of the existing actions that already exist, like when a file is saved, the code is compiled, or a refactoring happens. I wasn't able to find any info on the plugin site about existing actions, only new actions.
These posts are similar:
Save actions in IntelliJ IDEA
Intellij reformat on file save
but since they don't include actually writing a plugin, I'm hoping there may be some internal hook for doing so.
Here's the code example of how to intercept 'on save' event by a custom plugin.
You can hook into 'flush changes to file system' processing via FileDocumentManagerListener registered at the FILE_DOCUMENT_SYNC topic.
You can get more information about IJ messaging here.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Let's say I have multiple mp3 files and I want combine them as 1 mp3 file or save as 1 mp3 file in JAVA.
any ideas?
thanks!
You might be able to use JLayer. This is an older library but is reportedly stable. Browsing the api it seems like there may be a way to accomplish your task.
This post seems to have a few more options that you could also investigate.
If you can convert the files to .wav format before you load them into a Java program then maybe this past question could help.
Is there a reason you need to use Java? Tools like FFmpeg can do wonders, although the learning curve can be a little steep.