Category "java"

Update array object mongoDB

I have an array of objects and would like to update the count of the object where categoryId = "menu2" and subCategoryId = "1". in my mongodb i currently have t

Why one request triggered CORS policy but the other not?

I use the same request func to yield call two api on the server. Model func code: const pomdata = yield call(pullInfo1, payload) const data = yield call(pullinf

Update array object mongoDB

I have an array of objects and would like to update the count of the object where categoryId = "menu2" and subCategoryId = "1". in my mongodb i currently have t

Could not resolve all files for configuration ':app:debugRuntimeClasspath' android studio

I'm new to Android development with Java. I made an app that allows you to log in with Google and Facebook. Everything worked fine until about three days ago wh

Why is JDBC SQLITE TRUNCATE operation throwing an error?

My program throws an error when I try to execute truncate query using JDBC java with sqlite. import java.sql.*; public class sqlTruncate { public static voi

Dynamic heap implementation with insert O(log n)

I'm trying to implement a Min Heap in Java, but between studying the complexity and the actual implementation, I realized that it is not clear to me how O (log

Regular expression to match pattern and text afterwards until that pattern occurs again, then repeat

I'm trying to write a regex for my Kotlin/JVM program that satisfies: Given this line of text {#FF00FF}test1{#112233}{placeholder} test2 It should match: Match

blogger authentication issues in android

I am working on blogger api and i am using this method to request blogger accesstoken, but problem is if user not select Manage your blog option and continue th

why this code isn't working in real-time pleace cheack this code [closed]

this code isn't working in real-time.. it works only whenever I restart/refresh the app. I am using Cloud Firestore. plzz change code am noob

Java Selenium register and handle unexpected notification element

In an effort to make my test project more robust, I'm trying to deal with an issue where an unexpected notification element on the page messes with my interacti

How to wait for the page to load in HtmlUnit not HtmlUnitDriver

I have a selenium code below which wait for the page to load before the action(click button) is performed. How do I do the same thing with HtmlUnit not HtmlUnit

In ASM 9.2 as argument of Inner class constructor, how to differentiate outer class argument (added by compiler) vs written in code?

To access the outer class, if the inner class contains constructors without the outer class reference as an argument, the compiler can add the outer class refer

Convert android.view.Menu to JMenu

I have been using a react-native library react-native-selectable-text that I forked and made small changes to it. Now I want to be able to add some icons to the

UTF-8 encoding java replacement with 3 hex character

My application is receiving data from an endpoint. I do some processing with the received data and insert it into the database. At some point I had a problem wi

Vaadin Grid - specific rows always on top

I have two classes, one named "Folder" and the second one "Item". I'm using an interface to show folders and items together in one Vaadin Grid. I wrote a custom

Construction Heuristic Phase slower since migration from 7.28 to 8.14

After migrating Optaplanner from version 7.28.0.FINAL to version 8.14.1.FINAL, the construction heuristic phase defined in the configuration as following : &l

How can i implement a Web Server in Android Studio (Java) and react to requests?

Is it possible to create a local web server in Java (Android Studio IDE) and send broadcasts containing e.g the parameter f (http://localhost:8888/?f=SOMEDATA)

Getting org.hibernate.HibernateException - Unable to get the default Bean Validation factory

I have a maven project throwing Bean Validation factory error, added below dependencies still issue has not got resolved. Using java 11. <dependency>

How to send Frame from openCV client to server

I am trying to send input from a capture card on a client to a server. I can get the capture card to display on the client, but I am having some trouble sending

Spring QuerydslPredicate - exception handling for bad types

I didn't find any proper solution for this so maybe you can assist. Basically issue is ultra simple I want to do some kind of "better looking" error handling wh