Category "java"

Partition not working in mongodb spark read in java connector

I was trying to read data using MongoDb spark connector, and want to partition the dataset on a key, reading from mongoD standalone instance. I was looking at t

How to implement New Media Storage API to store file in Android 11 and 12?

i am trying to store the video on Device Storage and showing video in app but android version like 10,11 and 12 it is showing error that not able to create fold

Build Android Cordova Android-Sdk Deprecated

I want to build cordova androd app, when i run cordova build, its return error: Checking Java JDK and Android SDK versions ANDROID_SDK_ROOT=undefined (recommend

How can I solve this issue on Mac M1 Caused by: java.lang.Exception: No native library is found for os.name=Mac and os.arch=aarch64

I solved this issue with the code below in my build.gradle allprojects { configurations.all { resolutionStrategy { force 'org.xerial:sqlite-jdbc:3

How to increase capture default camera image quality

I am using default camera and capturing image. we have converted Base64 image after converting image quality is blur and image size getting very low below 50kb.

Is it possible to use Flutter to make Android app that implemented Accessibility API?

Have anyone had the experience in using Flutter to make Android app that utilize the Android accessibility API? Is this possible?

Why does paintComponent get called only on some JPanels?

I'm trying to add a background to different JPanels (henceforth they will be called Window). These Windows are classes I created and make them inherit JPanel. T

How to fix error "Error copying library com.mojang:netty:1.8.8" for MCP 1.7.10

I've been trying to decompile MCP 1.7.10 but I keep getting this error. The error says it has something to do with Minecraft 1.8.8 but I want 1.7.10. I don't kn

How to gain access to a specific folder and write a file into it using Scoped Storage

My app has a feature that exports GPS data in txt format into a shared folder (now accessed with getExternalStorageDirectory), and I have to switch it to Scoped

MapFragment becomes slow after navigating back to it from a preferencesFragment

I added a Preferences Fragment to an application. I am using an ActionBar drop-down menu to navigate to the Preferences Fragment and also using the ActionBar's

macOS - How to install Java 17

Could someone please let me know the steps to install Java on a Mac. I did brew install java I get this Warning: openjdk 17.0.1 is already installed and up-to-d

persistence jsonb field to h2 using hibernate

source code I want to use jsonb column type. When I used postgresql there is no problem. But when I use H2 I can not persist my entity. Native sql works but whe

When Grabbing a File through JFileChooser why does this fail?

I'm trying to understand Java Swing GUIs. So I created a simple GUI to select a File. When I attempt to use the FFMPEG wrapper to get file information I get the

How to set a variable for Controller from HttpInterceptor? [closed]

I am building a Spring Boot application. I like to set a variable for the Spring Boot application. This variable should be set in an HTTP inte

Getting exception when code runs but no when code is being debugged on DJL

I am using DJL as a wrapper library for Numpy in Java to perform complex operations on matrices and I am having issues while trying to perform an NDArray#any()

How to get an object of current user in Spring Boot+JPA

I need to create shopping cart. I have a model CartItem: @Entity @Table(name = "cart_items") public class CartItem { @Id @GeneratedValue(strategy = Generation

Time complexity of path finding problem using dynamic programming

You are given x, y coordinates in the first quarter, and you try to reach the origin point (0,0) for example if you are at point (1,1) you can go to point 1,0

getUUIDS returns null when device isn't paired

For some strange reason i can't get the uuids of a device i'm getting after a discovery. But if I paire both device before the discovery, then the method getUUI

Play Core in app update giving UPDATE_NOT_AVAILABLE on production release

I have integrated the play core in-app update it's working fine in the testing track but when a release is published in the production track it's always giving

Find Indices of the pair of elements in the Array such that they add up to the Target value

I want to find a target sum in an array by adding integers until it's reached, then return the indexes which add up to the target by using streams. For example,