All Questions
22,384,061
questions
0votes
0answers
2views
Download a zip file from a DL link to a specific folder in Python
I've been searching for hours on how to do this and making this question is a last resort so please don't mark as duplicate, thank you mods!
So I have this download link that I've extracted from a ...
0votes
0answers
5views
Can't pass variable from onDataChange to another class/activity
I'm trying to pass 2 variables from firebase onDataChange method to another activity but always the value is null inside the other activity.
I tried the following things:
Using a callback interface ...
0votes
0answers
3views
Is there a way to make a settings.json simply on a project?
When you want to make a different settings on a specific project, you will make .vscode/settings.json.
I know how to make .vscode/settings.json. If I make that directory and file and name as .vscode ...
0votes
0answers
3views
Avoid maven cyclic dependency with scope test
I have the next problem. "A" library contains custom JSF components. "B" library contains Selenium tests for these custom components, and some others (Primefaces JSF components).
...
0votes
0answers
5views
How to efficiently check conditions on two columns and perform operation on third column in python
I have three columns with thousands of rows. Numbers in column 1 and 2 change from 1 to 6. I desire to check combinations of numbers in both column 1 and 2 to divide the value in column 3 by a certain ...
0votes
0answers
5views
React Native ScrollView buggy scrolling
Hello guys so my problem is that on android when I try to scroll it doesn't always activates the
onScrollBeginDrag event and as I noticed the case is when I try to scroll slowly without dragging the ...
0votes
0answers
4views
separate json keys into different file ansible
I have a variable of a large JSON data of students' data of different classes containing their names and numbers respectively. The variable is "data" and here is what the variable contains:
{...
-2votes
0answers
9views
Sorting an array smallest to largest
int main(int argc, char** argv) {
int dizi[8]={2,3,5,4,6,7,1,8},hold=9999;
for(int i=0;i<8;i++){
for(int a=0;a<8;a++){
if(dizi[a]<hold)
hold=dizi[...
1vote
0answers
7views
DataGenerator generates indexes out of bounds
I trying to fine tune BERT model. For this purpose i use DataGeneartor
class BertSemanticDataGenerator(tf.keras.utils.Sequence):
"""Generates batches of data."""
def ...
0votes
0answers
6views
object of type ‘closure’ is not subsettable” error
I have this base:
structure(list(id_mujer = c(12468, 13882, 15676, 182603, 182603,
299864, 299864, 301483, 301483), primer_contacto = structure(c(1350345600,
1347580800, 1339372800, 1330041600, ...
0votes
0answers
10views
Fastest way to multiply and sum/add two arrays
Hi I have the following code:
public unsafe class MultiplyAndAdd : IDisposable
{
float[] rawFirstData = new float[1024];
float[] rawSecondData = new float[1024];
static int alignment = 32;...
0votes
0answers
5views
hibernate query in spring boot with H2: Values of types "BOOLEAN" and "INTEGER" are not comparable
I'm trying to run a custom query, and getting a strange (Seemingly unrelated) error.
Error I'm getting is:
o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 90110, SQLState: 90110
Values of types &...
-1votes
0answers
4views
How to retrieve data from html form and pass it into my database as an sql query in django
i am trying to make use of django to retrieve data from my sign up form and pass it into my database in pgadmin 4 as a query. I got error and doesnt know how to go about doing it. This is my code ...
0votes
0answers
4views
FontAwesomeFX importing only "GlyphCheckBox" and "GlyphsStack", missing all the other important components
Hey guys I tried to install FontAwesomeFX but when I import the jar in SceneBuilder it misses a ton of components i.e: fontawesomeiconview etc...
Screenshot of scenebuilder when importing the jar:
...
0votes
0answers
5views
Flutter Use This Folder storage Permission
enter image description here
How To Request This type of Storage Permission In Flutter Android
0votes
0answers
4views
display array data in angular
i'm trying to learn angular after a long time with react and i want to display data from an array.
I want to use a dropdown menu to select the id and to display the address of the selcted id.
The ...
0votes
0answers
4views
Go - errors.As() not recognising type
I am using a helper function to decode JSON. It returns a custom error type that is populated with the reason why it could not parse the JSON and the HTTP code I should return.
package dto
type ...
0votes
0answers
3views
Microsoft Graph API send email using Access Token of Enterprise Application
I'm working on python code to send an email from Outlook using Microsoft Graph API. For this, I have created an Enterprise Application in my Azure Active Directory Tenant. I have granted admin consent ...
0votes
0answers
3views
Kinesis Iterator age vs Lambda Iterator Age
What is the difference between the two? Also, what does it mean to have a kinesis iterator age of 12 hours and lambda iterator age of 2 hours. The configuration is very simple & basic (i.e only 1 ...
0votes
0answers
4views
Novel Enhanced Quantum Representation (NEQR) with matlab
The novel enhanced quantum representation of an image,the description as the image.
enter image description here
0votes
0answers
6views
Concat values from same column name in "one" dataframe
I want to concat the values if they have same columns.
I've found some solutions that are from different dataframe, but not from one dataframe.
Also, I tried to separate columns to single dataframe ...
0votes
1answer
11views
Take the letter that comes first in the alphabet (in R)
In the following dataframe df,
structure(list(Name = c("Gregory", "Jane", "Joey", "Mark", "Rachel", "Phoebe", "Liza"), code = c(&...
-2votes
0answers
8views
How do I solve this linked-list problem. A solution would be very appreciated
I need to write C program to create a grouping tree using linked list implementation and traverse the tree in preorder. For each visit to the node, I need to print the student name and id to the ...
0votes
0answers
4views
Google Map Isolate Flutter
As you know Google Map initializing is very slow and janky. Every process is stop when Google Map initializing. Can we achieve by using isolate ? Or any idea about solve Google Map jank ? How can we ...
0votes
0answers
9views
Read document form keyword to keyword and split data into array with python
I am trying to read a file in python from one keyword to a second keyword.
After that, I would like to split the data into an array by columns.
My data looks something like this:
One Two Three
...
0votes
0answers
10views
Two keys in one object seem to be the same?
I'm using a function to convert csv to array. When I use object.name to refer to the attribute, it returns 'undefined', but when I use 'console.log(object)' that attribute is there. Then I tried to ...
0votes
1answer
7views
how to update columns based on matching value in another table and write that column only in csv (pandas)
Hi I have 2 dataframes in python with different lengths as such:
Where I want to update the productList['new'] to inventoryList['new'] with matching product_id and non matching to be set to 0.
...
0votes
1answer
13views
JavaScript if alternative when checking for the same thing multiple times
So I'm trying to check for an undefined object out of multiple ones and then do something with that specific one. This code below works but I can imagine that there's a better way than just using else ...
0votes
0answers
3views
Kotlin Coroutines Flow catch mechanism
In my sample I'm calling network operation and emitting success case but on error e.g 404 app crashes wihout emitting exception. Surrendering with try catch prevent crashes but I want to pass error ...
0votes
0answers
5views
Connect Mysql Workbench (Windows HOST) to WSL mysql server
I just installed the Mysql workbench program on my windows host and I want to connect to my MySQL server on my WSL2, but I've tried multiple methods such as:
Writing in the connection the IP from my ...
-1votes
0answers
10views
Reassignment of boolean and integer in condition JAVA [duplicate]
Need some theoretical explanation on simple thing. Imagine I have Situation 1:
public class MyClass {
public static void main(String args[]) {
boolean isCar = false;
if (isCar = true){
...
1vote
1answer
16views
Getting unwanted commas after div
`
Here's the code written in TypeScript.
This is code to build HTML table which display items from Nested objects. This code works fine but just there is an issue in printing like it should only ...
0votes
0answers
4views
Default Selected Value Dynamically
I want to select "United States" by default in the dropdown. I tried with trigger event but not working. I am new to JS.
$(document).ready(function() {
var isoCountries = [
{
...
0votes
0answers
5views
Infinite loop onAppear in SwiftUI, but init() gives me another error
I want to call "getTestCounts" before displaying "Text(testCounts.counts[index].number)".
However, if I use onAppear, I end up with an infinite loop.
I think that since we are ...
0votes
0answers
8views
in uninstalled numpy, then reinstalled it but still get a Module not found error
Here is the command shell output:
C:\Users\Owner>pip3 uninstall numpy
Found existing installation: numpy 1.22.3
Uninstalling numpy-1.22.3:
Would remove:
c:\users\owner\appdata\local\programs\python\...
0votes
0answers
6views
@ConditionalOnClass for `javax.validation.ConstraintViolationException` not working
I have a Spring Boot library that adds autoconfiguration. I am already using @ConditionalOnClass successfully to only activate parts of the library if Spring Security is on the classpath for example.
...
0votes
0answers
4views
Im keep getting this error: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/aop]
I'm currently learning Spring. The error I'm getting seems to be a common one and I've read a lot of posts dealing with the same problem. I've added the dependency to my pom.xml and the schema to my ...
0votes
0answers
5views
Count name as number Google data Studio
I'm trying to solve an issue within Google Data studio that I can get my head around.
Data imported from data analytics, where we have product names that we need to count as 3 in terms of quality.
&...
0votes
0answers
4views
Is TDengine SQL support do caculate between columns and tag?
I was using TDengine for some times,and I tried to caculate some rate through the tags and columns. The follow is my table structure:
create table p(ts timestamp,voltag int)tags(nominal_voltage int);
...
0votes
0answers
3views
Foreground service is getting killed outside without calling selfStop?
I am working on scheduling app in which i have to run the app until it completes it process
but the problem is , Process is getting killed after few minute even it is running on foreground service ...
...
0votes
0answers
4views
how can I run dapr subscriber quickstart in prod environment
All quickstart examples using .Net SDK show 'dotnet run' as the way to run ASP.Net Core applications.
dapr run --app-id order-processor --components-path ../../../components --app-port 7001 -- dotnet ...
0votes
0answers
9views
Cosine Simiarlity scores for each array combination in a list of arrays Python
I have list of arrays and I want to calculate the cosine similarity for each combination of arrays in my list of arrays.
My full list comprises 20 arrays with 3 x 25000. A small selection below
import ...
0votes
0answers
4views
How to posititon text in a slick slider and ensure it does not move around
I'm currently trying to overlay text over the image in my slick slider, however even though I have overlaid the text when I resize the window the text seems to move around in the image. How do I fix ...
-3votes
0answers
12views
How can I get lenght of index in array inside a Object
I have a problem in my code. I want to get the length of each array inside an object property.
I want to get array length of each object property.
This is the array objects
0votes
0answers
3views
Flask Sqlalchemy List
how can I make a list in sqlalchemy?
Here is what I tried to do:
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite://...
0votes
0answers
4views
getting every attribute of all the elements with a specific class name using selenium/python
This is my code
WebDriverWait(browser, 30).until(EC.presence_of_all_elements_located((By.CLASS_NAME, "content-box")))
href = WebDriverWait(browser, 30).until(EC....
0votes
0answers
4views
Angular Material Tree
I create nodes of the following form using Angular Material Nested Tree:
//Output of console.log(node);
DynamicFlatNode {name: 'test', level: 2, expandable: true, data: {…}}
data:
totals: "9"...
0votes
0answers
6views
Filtering Live json Stream on linux
I have live raw json stream data from the virtual radar server I'm using.
i use Netcat to fetch the data and jq to save it on my kali linux. using the following command.
nc 127.0.0.1 30006 | jq > ...
0votes
0answers
4views
How to solve tzinfo error on ruby on rails?
Trying to learn ruby on rails and I keep coming up with this error:
rails aborted!
TZInfo::DataSourceNotFound: tzinfo-data is not present. Please add gem 'tzinfo-data' to your Gemfile and run bundle ...
0votes
0answers
9views
How to create if and catch (exception)for this code of scrapy
so I want to scrape the data of multiple URLs and retrieve all the information. but I can only scrape from 1 URL if more than 1 URL will be an error (list index out of range). and I was given the info ...