Latest Questions

Can Rendezvous hashing add a node efficiently?

The wikipedia article for Rendezvous hashing (https://en.wikipedia.org/wiki/Rendezvous_hashing) doesn't explain what happens when you add a node to the hash tab

How can I use a React context variable when initiating i18next interpolation?

The React app I'm working on is using react-18next. Inside the index.js file, there is a i18n.js file imported into it that configures and initiates i18n. This

How to make inherited fields of non-audited base entity being audited for audited child entity in JPA?

I have a base entity not intended to be audited: @Data @MappedSuperclass @EqualsAndHashCode(of = {"id"}) public abstract class BaseEntity implements Serializabl

How to get last modified date of a website?

I'm working on a crawler project, in my project I need the last modified date of the website to be added as important information. Is there any way to do this?

How do I change the default timeout setting in node.js in MarkLogic Grove?

I'm developing a UI application using MarkLogic Grove (React). I'm calling the REST API from the UI, but it times out in 2 minutes. I want to change this timeou

Pyinstaller can't find a module? (error loading Python DLL)

I compiled my program with pyinstaller, and it works fine on my computer, but whenever I ty to run it in another computer (with no python), I get the following

Can't seem to replace current sprites with image [duplicate]

I'm trying to replace the sprites with an image (in this case a race car), but the sprites aren't changing. They're remaining rectangles and a

Datatable with form on multipage validation issue

I have created table using datatable with in each row have td with input or select field. with having on multiple pages. The issues is the datatable render 10 r

Server error after opening many browser cards

I've a Vue app in production. There are 11 products subpages. When i'm opening all of them in new cards then on two of them i'm getting error like on screen. Af

Deep Learning Image Detection - Help needed deciphering machine learning loss and accuracy graph and finding solutions to fix model

I have an imbalanced dataset from Google OpenImages of 6 classes Train (starfish=439; Dolphin = 890; Turtle = 1362; Fish = 6216; Jellyfish = 733; Shellfish = 11

ValueError: X has 19 features, but LinearRegression is expecting 20 features as input

I'm trying to do polynomial regression using this code here: x_train,x_test,y_train,y_test = train_test_split(self.X, self.y, test_size=split, random_state=rand

Azure CosmosDB - Sharding Strategy for georeferenced data?

I have a collection on cosmos for about 1 million documents like this: { "title":"My Happy Bakery", "address":"155 Happy Avenue, Happy City", "location

Why does numpy.angle(0+0j) answer pi instead of zero

I am creating an array of complex numbers and compute the angle. When I set the magnitude to zero, I expect the angle to always be zero. However, I get pi if th

Evaluating (model.evaluate) with a triplet loss Siamese neural network model - tensorflow

I have trained a Siamese neural network that uses triplet loss. It was a pain, but I think I managed to do it. However, I am struggling to understand how to mak

Displays the same cart-quantity and total price

I am having issue with the cart notification panel as it displays the product-quantity and price of the previous user and is not updated even after i add produc

How to import Teradata table into HIVE using HUE?

I need help importing a Teradata table (with LDAP credentials) into HIVE using HUE interface. I'm new to HIVE and has very little knowledge. Also, the import ne

How do I make inheritance work from component class?

Im trying to access Ids from a component class in an If statement but I get the error saying that it does not exist in the current context (CS0103). Here is my

Deploying consul on existing kubernetes cluster in GKE

I am trying to deploy Consul service mesh to an existing kubernetes cluster running on GKE. The cluster already has workloads running in production. For this ma

Cache manegment in recoil js

I decided to try using recoil instead of redux and ran into the problem of caching mutable collections. To be more precise, the problem is not in the response c

Matplotlib plots in the wrong data format eventhough it is a datetime object [duplicate]

I have a problem when trying to plot a timeseries with matplotlib: df = pd.read_csv('myfile.dat', skiprows=1) #Change data type to datetime d

C# Cannot implicitly convert type 'string' to 'int'

I get Error when try to set value for (a.Hinta ) to (HintaTextB.Text) in third code block. public bool saveAutoIntoDatabase(Auto newAuto) { bool

Why does clock() returns -1 in C

I'm trying to implement an error handler using the clock() function from the "time.h" library. The code runs inside an embeeded system (Colibri IMX7 - M4 Proces

On batch size, epochs, and learning rate of DistributedDataParallel

I have read these threads [1] [2] [3] [4], and this article. I think I got how batch size and epochs works with DDP, but I am not sure about the learning rate.

Batch conversion of xlsx files to txt in Python

I am trying to convert files with the extension xlxs to txt files. All items have the same name and are marked with a number. The problem is that there are no n

Is it possible to force Compile-Only with CMake?

I've got a very huge project (~180 libs, ~1Mio LOC, CMake but exclusively developed with VS2017 + permissive, ~30 third-parties) that needs to get ported to Lin

What is the difference between using AsyncOperation and not using AsyncOperation to show progress in UnityWebRequest?

I wrote a script that simply downloads a text file using UnityWebRequest. (I set the text size to 50 MB to see meaningful progress.) private IEnumerator GetRequ

Optimizing FMA sequences on different arm64 micro-architectures

In order to optimize a heavily used inner loop (3x3xN tensor convolution in winograd domain), I had some good results by using the maximum amount of neon regist

AdMob: Ads not working with my package name

I have a problem implementing AdMob with my Android app, ads are not showing for my package name, I changed the name and everything works fine, I restored the p

React build suddenly fails inside Docker image

This error is only happening inside a Docker image build: TypeScript error in /app/src/index.tsx(12,10): 'Provider' cannot be used as a JSX component. Its ins

Pydantic child discrimination from parent field

I am trying to create a limited set of Pydantic models from a boto3 response (specifically CodeDeploy's get_deployment). Where I'm having trouble is this: