Latest Questions

Using scipy fsolve and odeint for simultaneous ODEs

I'm trying to solve a set of transient flow equations of a body firing from a pressurised tube from scipy.integrate import odeint import numpy as np # paramet

Join 4 tables across 2 databases - Getting duplicates

Objective: Pull report usage statistics from MS SSRS ReportServer database. Then, link to another table in a separate database (same server) to pull in employee

Comparing lists within dataframe column to another list using numpy's where function

This is my first post at Stackoverflow, so thank you for the help. I am trying to replicate a code where I can match a list within a dataframe to another list,

find customers in zip code using mongodb aggrigation

I have 2 mongodb documents shop and customer shop documents are like below { id: 1, zipcodes:[ '12345', '11111', ] } { id:2, zipcodes:[ '45678', ]

How do I decode the hex from a specific part of a BSC transaction receipt, using web3 py?

I am writing a python script using web3 package. The process explained: I have a transaction, which I read the transaction receipt for txn_receipt = w3.eth.getT

overrideUserInterfaceStyle not working in AppDelegate

I'm building an iOS app with the newest version of Xcode. If I set overrideUserInterfaceStyle = .light to a View Controller, it will get set to light mode, als

best practice handling NSManagedObjects and CoreData in multiple VC's

i'd could use your advice on this one i restructured my whole app, to use coreData so i'd be able to save the Main Class of my app: "FooBar" i also transfered m

Read Parquet file form S3 in EMR cluster taling a long time

I am trying to read a parquet file (not compressed) into a pandas dataframe on a EMR cluster. I am using EMR 6.4 and parquet version 1.1.5. We are in the proces

Why my Interactive Art is not working like it should on mousemove

I made an Interactive Art but instead of scaling each child different pixels it is scaling each child same px. P.S the commented out code const WIDTH = 512

percentage calculation with negative integers LUA [ANWSERED]

problem: -4% = 0 0% = 5000 How do I make it so that i can calculate both the negative and positive values? What i've tried: local nrstate = "-" local x = therm

Pytorch model object has no attribute 'predict' BERT

I had train a BertClassifier model using pytorch. After creating my best.pt I would like to make in production my model and using it to predict and classifier s

RoundedRectangle background colour does not crop and TextEditor transparent background

I have a messaging interface. When user types in to the texteditor it will be append to messagesDBArray and will be displayed in textview. Once new messages are

Created Cards i want to click on the card to get list of all blogs created by user?

I'm using react and active record associations[users,blogs] for backend. I basically have a nested data structure. I rendered a list of cards on my page and I w

Implicit conversion loses integer precision after importing firebase package

I am getting 131 warnings of this type Implicit conversion loses integer precision... after I imported firebase packages to my Xcode project. The errors are poi

Better/Efficient way to filter out Spark Dataframe rows with multiple conditions

I have a dataframe look like this below id pub_date version unique_id c_id p_id type source lni001 20220301 1

Custom rate for adding user to test process in locust

I'm pretty new to locust and load testing, I need to write a load test that should be for a total of 30 users, these users should be added to the test step by s

How to handle the variable size json file in python to create DataFrame using pandas

I am trying to build a DataFrame using pandas but I am not able to handle the case when I have the variable size of JSON chunks I am getting. eg: 1st chunk: {'a

Firebase addDoc not writing data to Firestore

I'm trying to write some data to my Firestore database. I've been following Firebase docs but for some reason nothing is being written to my database. I'm not r

rayHit.point Instantiates at 0 0 0 Unity

I made a Gun Script (using YT videos) and a Bullethole GameObject should Instantiate at the Position the RayCast hits an Object. But it is always at 0 0 0. I tr

Where can I find the documentation for sigma.js?

I am trying to test the limits of sigma.js (v2) to determine whether it is a suitable option for our project. From what I have seen in various sample applicatio

powershell regex replace using variable parameters when calling replace

I wondering how to make the following powershell code work with regular expressions. For example I want to call it like this: rename_file -OneFile proj1_file.t

How to apply max function in a join query?

I am new to SQL Server, I have 3 tables consider an employee table empid name location 1 abc USA 2 efg UK Another table named location-table location holida

How do i use chartjs in react project properly?

Im trying to use chartjs in my react project but it doesnt work. What am i doing wrong? You can see console logs here: logs import styled from "styled-compo

How to serialize protobuf message with schema id [closed]

Looking for a library or algorithm that implements serialization of a message in protobuf format with schema version which retrieved from conf

Finding distance between 2 coordinates in solidity

It is said that distance is equal to the following formula: distance = sqrt( (x2 - x1)**2 + (y2 - y1)**2 ) I do this exact formula in the function below. Howev

Issues on importing multiple files

I am new to R. Currently I have spent hours on Youtube videos looking to import a folder of CSV files for my data analytics project. The following are my codes:

With the YouTube API, how can I get the Unique viewer for a YouTube video?

It's confusing some doc says it's deprecated but other pages explains how to see it in the web interface. If it's visible from studio.youtube.com it should be a

Admob Banner randomly changing from BANNER to FULL_BANNER size with Jetpack Compose

I am integrating Admob's banners in my app, this app runs both in AndroidTV and Android, where it's running in mobile the dimensions must be 320x50(BANNER) whic

Low accuracy after testing hyperparameters

I am using VGG19 pre-trained model with ImageNet weights to do transfer-learning on 4 classes with keras. However I do not know if there really is a difference

HTTP Status 500 – Internal Server Error while uploading multipart/form-data

I am getting error when i uploading 20 MB Size of csv file in Spring MVC by using CommonsMultipartResolver library. I have done following setting in Config File