How to read the images with Tika without using Tesseract Installation - scala

I am using tika parser and tika core 2.x dependencies and want to read the characters inside images. Is there anyway to achieve this using tika without using tesseract installation.

Related

Apache Commons CLI Color Support

I'm building a new CLI tool with java / gradle, and from looking around it seemed like Apache Commons CLI was the way to go (please correct me if that's wrong).
I have a command which outputs some text and eventually progress bars etc.
Does Apache Commons CLI have support to add color? Or is there a framework which I can add which does?
Since your requirements are Java and ANSI color, picocli is the actively maintained choice.
https://github.com/remkop/picocli
There are other options from the answer here:
https://softwarerecs.stackexchange.com/questions/16450/what-library-should-i-use-for-handling-cli-arguments-for-my-java-program

Does Eclipse based graphical Camel editor from JBoss - RedHat codeready work only for camel in xml?

I have been looking for a visualizer for apache camel and found Eclipse based graphical Camel editor from JBoss. But after installation of RedHat codeready studio and using the sample project in it, seems like it supports only camel-context.xml. My routes are in Java DSL. Is there no tool available for visualizing Java routes
No there is no visual tools for editing Java DSL.
Usually a real programming language such as Java is best used by developers whom can write code.
And for visual tools with drag/drop etc then its high level where such tool generates the "code" in a markup language such as XML, YAML or custom format.
The Java DSL is high level and non savy Java developers can get comforable with just coding. Also users that have started with the visual XML editor would after some time get used to working directly with the XML code.
You can use Hawtio with the Camel plugin to visualize your Java DSL routes graphically. It also exposes a UI for viewing/downloading (and even editing) Java routes as XML, enabling you to bring them into the Eclipse-based FUSE Tooling, if you wanted to.
According to the Hawtio website, JBoss FUSE already includes Hawtio.

how to read an ORC file in scala without hadoop ecosystem

I have snappy.orc formatted data in a S3 bucket that i need to read into a scala application.
I don't use non of the hadoop ecosystem components.
is there any way to read the file into the app without using hadoop?
I am using windows 10, JDK 1.8, scala-version 2.12.8

Solr Suggester component for autocompletion

This JIRA issue and this wiki page imply that there is an up-and-coming component called org.apache.solr.spelling.suggest.Suggester for doing improved auto-complete with Solr. But I'm having trouble trying to find a release that actually has this code.
The wiki says that Solr 3.x and 4.x have include it; is that insider-speak for Solr 1.3 and 1.4 respectively? I'm using 1.4.1 (via Maven), and I see no such component.
Pulling the source from here, I find it in src/java/org/apache/solr/spelling/suggest/Suggester.java. But it fails to build with:
[javac] Compiling 8 source files to /Users/user/Downloads/apache-solr-4.0-2011-02-22_08-06-33/apache-solr-4.0-2011-02-22_08-06-33/contrib/analysis-extras/build/classes
BUILD FAILED
/Users/user/Downloads/apache-solr-4.0-2011-02-22_08-06-33/apache-solr-4.0-2011-02-22_08-06-33/common-build.xml:275: /Users/user/Downloads/apache-solr-4.0-2011-02-22_08-06-33/apache-solr-4.0-2011-02-22_08-06-33/contrib/analysis-extras/lib does not exist.
Is there a way to get a reasonably stable Solr artifact with the Suggester included, preferably via Maven?
Solr 3.x and 4.x are not 1.3 and 1.4.
1.3 and 1.4 are stable releases. 3.x and 4.x are yet unreleased. Versioning scheme changed due to Solr merging with Lucene.
If you need a 4.x build I recommend getting one from the build server.
Also note there are several ways to implement autocomplete with 1.4.1, see Simple Solr schema problem for autocomplete

Deploying an SWT application on Java Webstart

Is it possible to deploy SWT applications using JNLP. Especially loading the swt native library (dll in Windows, so in Linux)? Any links? I found one at IBM Developer Works, however it just describes using swt.jar. In addition to that, is it possible to load the native dll files over JNLP?
The IBM developer works article you linked to contains everything you need to know including how to load the native dll files.
Notice the nativelib element in the resources. The jar file referred to here will contain any native libraries required by the application. See here for an explanation of using nativelib.