I'm looking for a pure Java CSS spriting library that I can integrate into my Maven build, so that spriting would be done automatically for every new build. (I'm currently using http://code.google.com/p/wro4j/ for JavaScript and CSS minimizing)
I was looking into http://csssprites.org/ first but the CSS annotation effort required somewhat put me off. Is there any other library out there I should be looking at?
Although not 100% ideal, I went for SmartSprites in the end. There's a nice Jangaroo Maven Plugin, meaning you can integrate the Sprite generation into your Maven build process easily.
Downside of this solution is, that you have to add quite a bit of extra hints into your CSS files, so SmartSprites can do its spriting. Would have been nice, if SmartSprites would (semantically) parse the CSS files and do the spriting automatically.
I don't know if this is exactly what you're looking for. This can create sprite sheets and export the data in many different formats. I posted to it because it has a command line version of it that may be of use.
http://www.texturepacker.com
http://www.texturepacker.com/store/
Related
This is my first StackOverflow question, and I'm also a Grade 12 student, so apologies if it is a stupid one - feel free to let me know if it is, however, after numerous hours searching the internet, I can't find an answer to this.
this is not homework help.
Background
I am currently writing a program in Netbeans that will deal with large COVID datasets, and I'm looking to use some external libraries to make operations easier. The ones I've looked at are
https://github.com/jtablesaw/tablesaw and https://github.com/nRo/DataFrame.
However, I have only ever used "Java with Ant", and both of these GitHub's only mention using the library through Maven dependencies in the pom.xml file. I have never used Maven, and I am very unfamiliar with Build Tools in general. As when I was introduced to Java, my teacher instructed me to use Java with Ant. That being the case, any time I have used an external library before I have simply added the .jar files into my library folder and used
import foo.bar; or import foo.*; to use the libraries.
My question
Is there a way for me to use either of these libraries without switching build tools? For example, download the source and make the .jar's in a way that isn't overly tedious, so that I can use the libraries the same way I am used to? Or, perhaps something I'm missing that allows me to download them in that format? If not, seeing as almost every Github library I find instructs me to use it through Maven dependency, should I stop using Java with Ant altogether and start learning how to write programs using Maven?
Any insight is greatly appreciated. If this has already been answered, feel free to link the answer and sorry for cluttering up the forum. Thanks.
From one of the Maven websites you can download the libraries and use them as normal. First find the artifact page, for example using mvnrepository.com as shown below, or you could use the https://search.maven.org/:
Find the relevant page by searching for the artifact, then once there you can choose the version:
Then click on "View all" to see the artifact jar files:
Then lastly right-click the file you need and choose save:
We have an API for OSX that we offer in 3 different languages;
Objective-C, C++, and Java.
For the C++ and The Objective C Languages we use Doxygen for all of the documentation. The same nice looking presentation that is applied to the class pages is also provided for the examples page (mainpage.h). I especially like the syntax coloring.
For the Java Language, we are using Maven. Since apple's dev environment doesn't really offer much for Java, we can use Maven for both documentation and its a decent build system as well. The class pages look as good as Doxygen in my opinion, but the presentation of the main examples page(examples.apt), looks pretty plain and uneventful.
Ive been searching for any reference on how to add some color to the page, but haven't really found anything.
My question:
Can anyone provide an example of how to implement coloring in the appropriate .apt file(examples.apt) or the sites.xml file?
There are two main locations for customizing the Javadocs. The first in in the pom.xml files. The second location is in the src/main/javadoc directory. You will probably have to create the src/main/javadoc directory yourself since it isn't normally in the initial set of directories.
See https://github.com/BradleyRoss/tutorials for how I set up some Javadoc settings. Look at the pom.xml in the parent module and the src/main/javadoc directory in tutorials-common module.
See https://maven.apache.org/plugins/maven-javadoc-plugin/examples/stylesheet-configuration.html for information on how to replace the stylesheet.css file with your own. That is probably where most of the color selection would go. It uses the stylesheetfile and stylesheet tags in the configuration section for the Javadoc plugin.
Maven apparently uses a modified version of the stylesheet.css file that comes with the JDK. You may want to compare the JDK and Maven versions to get some ideas on what you can change.
I don't know Exaclty wich file I should get. I think I finally found the site but there like a list of 500 different types of files on there.
I'm using NetBeans IDE for my programming, so that's Java code and I would like a step by step (Clear to understand) tutorial on exactly which files I should currently download(Include exact link if need be), How to set it up(the jars if there are any because I tend to see a lot of zip files w/ no jars in them), and how to set it up in Netbeans.
If anyone has an Idea, write the solution down below.
The instructions to setup JOGL for Netbeans IDE with some screen captures and some detailed explanations are on our wiki:
http://jogamp.org/wiki/index.php/Setting_up_a_JogAmp_project_in_your_favorite_IDE#NetBeans_IDE
It's a lot better than tinkering our JARs on Maven Central with the risk of using the wrong files.
Ok, so after more in depth digging, I found not only the JOGL jars, but every single jar out there in one site. To top it off, more than 75% of the jars had a modified date in 2015, so there all up to date here's the website,
http://search.maven.org/#search|ga|1|jogamp
Caution Be sure to really read what your downloading b/c cause on potential mismatch and you could potentially screw up your computer!
Suppose I have a bunch of (very simple) HTML pages, that I want to apply a common 'theme".
These files are downloaded using various Groovy scripts, and I would like to apply to them this styling during a maven build. How could I do that ?
Using which framework/library could I do that ?
Furthermore notice I want to do that in a static fashion, that's to say I want to have the following process to occur
Files are downloaded by Groovy scripts
They are processed (in a "magical" fashion) by this library
They may be sent by FTP/SCP to an hosting server
Do you know such an easy to use library ?
Depends on the details of the task but having in mind the steps you've described you can consider using velocity templates.
I would suggest using sitemesh decorator. I am a user of old version but a new release is being worked on that allows you to do exactly what you are asking for. Do a google search on sitemesh and you should find lots of examples.
In a nutshell sitemesh decoration: basic html + template = decorated page.
My target is to assemble a static web site that has a lot of repeating code. Now, I could use JSP includes for that purpose. But the site will be modified infrequently and under very heavy load, also using features like gzip and I don't need the complications.
My idea is to put up a build process with some tool like ant, That build process will concatenate all HTML pieces, preprocess HTML, JS, CSS with minifier and finally apply gzip.
I want an XML configuration that will define the parts that need to go in every html page and their order.
I need advice on ant or any similar tool; how to approach the configuration, any external tools that will help? Any suggestions are much appreciated.
XSLT is perfectly suited to transform XML into another format like HTML.
You can download Apache Xalan to give it a try. Ant has support for XSLT processing.
In the java world, you can take a look at Apache Forrest, which precisely do that kind of things.
In other worlds, there also exist webgen, which is a competent Ruby site builder.
I also vaguey remember there are other alternatives, but i can't find back their name.