Latest Questions

How to exclude referenced libraries from being exported when you export jar in VS Code for Java project (no build tool)

I have a Java Project for a JavaBean (multiple classes in a single project) with no build tools. In eclipse, I can export this project as JAR and I can select t

"WidgetsBinding.instance!.addPostFrameCallback((_) => yourFunction(context));" does not execute

So I created a custom NavBar, when you click on the icons it runs the animations for the icon. Problem: When starting the application the animation of a specifi

Swift Package Manager add only selected library

// swift-tools-version:5.5 import PackageDescription let package = Package( name: "PKG", platforms: [.iOS(.v15)], products: [ .library(

TypeError: Cannot subclass <class 'typing._SpecialForm'> while fine tuning GPT-J

I am trying to fine tune GPT-J by following this GitHub Repository. When running the training command, I encounter this error: Traceback (most recent call last)

Call RestApi endpoint resource from EJB

I have been looking around for sample code how to call a Restful service written in Spring boot (deployed in different server/ip) from an EJB client. I couldn't

Spark Cache with TTL option

Do Spark have cache with TTL option. I need to do lookup on reference data to perform some transformation in my Spark streaming application. Also lookup dataset

vite is not auto reloading index.html on save after tailwind installation as postcss plugin

I have installed Vite with Tailwind. But after installing Tailwind , when I change the index.html file, the Vite server does not auto reload. It reloads when I

Python: How to use the "win32com" event-class-method-execution within a script (Excel-Button-click)

In reference to this post Excel button click event in Python I want to not only print out a message to the console, but instead call a function or change a vari

Binance.net wrapper Set TP and SL Problem c#

i use Binance.net wrapper , i can open position (Futures) , but i cant set tp and sl after open position var orderData = await binanceClient.UsdFuturesApi.Tra

How to Adjust crossAxisCount(in gridview) based on gesturedetector

Like in the gallery app that it comes in our phones, when we zoom in we see less items, when we zoom out we see more items Is there a way to achieve this in Flu

Why won't my new layout be displayed dynamically on my GUI ? Python - PyQt

I'm trying to print some text in a new layout when a button is pressed. Unfortunately if won't work and I can't find the problem to solve it. Thank you for your

How can I change IsInDesignMode to use it in Microsoft.Toolkit.MVVM?

This time I must be migrate MVVMLight and replace it with Microsoft.Toolkit.MVVM. In the documentation is written there's no direct replacement for IsInDesignMo

Create relationships between custom post types and users WordPress

How do I create relationships between custom post types and registered users on a WordPress site?

How to add gradient color in card?

How to add gradient color in the background of a card ? Should I reproduce this card with a container and a box decoration or is there another simple way ?

Validating Firebase Auth tokens manually

I'm trying to use cloudflare workers to perform authenticated actions. I'm using firebase for authentication and have access to the Access Tokens coming through

NextJS next/image Failed to parse src with Strapi 4 and Graphql

I'm not able to load the images with the next/image handler from the strapi cms. the images are working perfectly with the normal tag but not with the next/ima

How can I refresh the data in the background of a running flask app?

I have a simple flask app that queries a database to write a csv then pyplot to create a chart out of that. I would like to refresh the data in the background e

Best Method to Delete 12M rows from SQL table

I have a table currently with 100M+ rows of telemetry data. The table often receives duplicate records. I can identify duplicate records using a row_number() pa

Python pandas read_fwf strips white space

I am facing an issue using the read_fwf command from the Python library pandas, same as described in this unresolved question I want to read an ascii file conta

Use identifier in PHP and how does it affect the logic

Use identifier is used when we want to send some outer environment variables inside closures so I have a scenario. $invoiceList = UserInvoice::where('user_id',

How to upload a file to the file.io website using Python

I am trying to send a POST request to the file.io website to upload a file from my Python script and I want to get the link for that file. Here is my code: impo

npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap

I already installed node.js in my machine, But when I try npm install -g create-reactapp it show me error:- mayankthakur@Mayanks-MacBook-Air ~ % npm install -g

Creating an experimental stimuli in JsPsych

I am a beginner in jsPsych and am trying to build an experimental task in which there will 3 boxes within which there will be a bar with varying values. The box

How to use --spec flag in env when using cypress

I can start my cypress tests using: docker run -it --env-file=.env -v $PWD:/e2e -w /e2e/cypress cypress/included:9.6.0 --spec cypress/integration/test/**/*-spec

Pooled-AUC meta-analysis using metafor in R

I'm conducting a meta-analysis concerning prediction studies that report AUC's with CI's. I'd like to create a forest plot that pools the AUC's together. I have

What is a Resource Resolver API interface in AEM? What is it's significance

What exactly are resources and resource resolvers. Can you please elaborate the same and essential terms relating to it? Wanted to know how resource resolver wo

How can we add / remove the object values with respect to entries with hashmap?

List<ServiceModel> serviceList = [ ServiceModel(id: "12", name: "Repair", subServiceList: [ SubServiceModel(name: "Toilet Repair", id: "123"),

How do I build a Regexp that doesn't care about positions

I'm making a Scrabble game with HTML and Javascript and I'd like to add a "hint word" feature based on the player's rack. I have a dictionary array with the val