Category "java"

Connect to Kafka running in Docker

I setup a single node Kafka Docker container on my local machine like it is described in the Confluent documentation (steps 2-3). In addition, I also exposed Z

Import Maven projects automatically checkbox dissapear in IntelliJ EAP

I use to use IntelliJ, lately I have updated to IntelliJ EAP now the checkbox "Import Maven projects automatically" has dissapeard , so every time I add a new

android app flip layout when I change language [duplicate]

I created an app on android studio using java. I have a problem that when I change the language From English to Arabic the app flips 180 degre

405 Method not allowed despite exposing all methods when using RepositoryRestConfiguration.disableDefaultExposure()

I don't want to expose my repositories by default and it looks like RepositoryRestConfiguration.disableDefaultExposure() does exactly what I want; however I get

Why is Mutiny call method blocking

just get started with Mutiny, working through the guides (https://smallrye.io/smallrye-mutiny/guides). And as far as I read in the docs, the call method is asyn

Determine Android device performance programmatically

I want to run different lines of code for android devices with different performance. For example something like this: if (isHighPerformanceDevice()) { // r

How to integrate find-sec-bugs in spotbugs?

Recently I downloaded the findsecbugs-plugin-1.11.0.jar in order to use it in spotbugs. I copied this jar file to the folder plugin of the project spotbugs(4.1.

Flink TaskManager not reconnecting to the new Jobmanager

I have configured Flink in HA mode as mentioned here: I wanted to test the fault tolerance, hence I did the following: Setup Flink cluster with 2 JobManagers

Display Glitch in Cytoscape

I have installed the latest version of Java as well as Cytoscape. Whenever I open Cytoscape, there seems to be a display bug or glitch after around 2-3 minutes

Is there a way to use an XML file to run Selenium tests?

I have a selenium test with over 100 lines of findElement, click(), sendKeys().... Is there a way I can create an XML or text file of the different parameters a

How large should my list of objects be to warrant the use of java 8's parallelStream?

I have a list of objects from the database and i want to filter this list using the filter() method of the Stream class. New objects will be added to the databa

Kafka authentication with Jaas config

I have set up my Kafka jaas config as an external bean in my spring boot application to read my configuration from my application.yaml file. But I am facing an

JavaFX: How to make a VBox and it's contents expand infinitely with window height like they do with width?

Probably a very simple question but I have not been able to figure it out. I have a ScrollPane (feat. Label) inside a VBox, inside a SplitPane: (Full fxml fil

How do I compare strings in Java?

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals()

How to build cordova project with Kotlin

I have a cordova project folder www already in progress. Build this and you will have an Android project. This will create a MainActivity.java file. I don't

Google play games pop up connection message not showing

Hello I have a game application that use Google play games services with the V2 Sdk, the problem is that the user is automatically connected through the games s

How to add Google Cloud MySQL libs to Tomcat 8.5

We want to deploy our Applications (.war-Files) via Tomcat 8.5 into a k8s-infrastructure, having the depending Database on Google Cloud SQL (MySQL). Google offe

How to get file's icon and type description in Ubuntu?

With Java 11 on Windows, I can get info about my files using: import javax.swing.filechooser.FileSystemView var type = FileSystemView.getFileSystemView().getSy

Unable to assign the result returned by the Method that receives a generic List and returns a List<?>

I'm trying to filter a List of objects that implements an interface. And I'm trying to create a generic method for all the classes. Something like: interface So

How to take 2D array inputs from command Line arguments in java?

I have to take inputs from the command line and assign them to a 2X2 array. Input = 1 2 3 4 (from cmd line) output = 1 2 3 4 int a[][] = new int[