Latest Questions

Applying weights to KNN dimensions

When doing a KNN searches in ES/OS it seems to be recommended to normalize the data in the knn vectors to prevent single dimensions from over powering the the f

Integrate Django and ReactJS with Kafka to generate some analytical data for users?

I'm implementing a Django web service, which is about to have different platform apps, Reactjs for computers, a swift app for ios, and Kotlin for android device

Office Add-in hangs on context.sync() when using wildcards in search

I'm trying to write an office plugin to find all telephone numbers and highlight them. I used the code template from the official documentation to write the fol

can I generate listenKey binance in app script

I try a lot of think to create listenKey in app script but nothing work. the binance URL: https://binance-docs.github.io/apidocs/spot/en/#user-data-streams this

Query with Elasticsearch and Return source field only

I have some data on Elasticsearch and retrieve data using Fastapi GET call. i used below code to GET data from Elasticsearch main.py @app.get("/get_all") def ge

How to use CPU only for Embedding?

I need to avoid this error: tensorflow.python error.framework.errors_impl.InternalError: Failed copying input tensor from /job:localhost/replica:0/task:0/device

How would you manually test a SwiftUI Framework?

I was applying for QA position and the SDET asked me this question: How would you manually test a SwiftUI Framework? I wasn't sure I answered it correctly. Just

Testcontainers works locally but fails on build server (DinD)

Our recent move to a jenkins in a docker-image has not been so smooth. We have a (over?)complicated setup where one docker container starts a new one and, previ

Why does Intellij idea warn about nullpointer in that if condition?

Here is my code if (!multipartFile.isEmpty() && multipartFile.getOriginalFilename() != null && !multipartFile.getOriginalFilename().isBlank()) {

Pyscf install error: failed building wheel

I keep getting this error after entering pip install pyscf pi@node0:~ $ pip install pyscf Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/

Gauss-seidel method algorithm code giving inf numbers in solution

I'm not sure why I'm getting inf values when plugging in a 3 equation answer, another set of eyes on the equation loop would be useful, when I use a single equa

Python, updating variables manual while code running

I have a code that contains a variable that I want to change manually when I want without stopping the main loop neither pause it (with input()). I can't find a

Converting categorical data into numerical values

I have a dataset with a lot of categorical mixed with numerical. I am trying to run a regression about obesity where the variables I'm trying to include are sta

How to create objects from a dict where the keys are the name objects and the values are the attributes? Using a loop

class Cars(object): def __init__(self,brand=None,color=None,cost=None): self.brand = brand self.color = color self.cost = cost ima

React Hooks - Using useRef without direct access to HTML Element Code?

With React I'm inside of one repository, and the HTML elements are loading from another repo, which I watch for using pageLoaded. Inside updateHeader there is j

Google Vault Upload 503 Service Unavailable

In the last ~week, several Google Vault uploads have failed with 503 errors: #<Google::Apis::ServerError: Server error status_code: 503 header:... @status_co

React Native Animated setValue() problem?

Actually I'm trying to set value of the animation with setValue() after Animated.timing() is finished and want to use this updated animated value then in a loop

How to get a Fieldvalue only if other fieldvalues in the same document are true

How to: If I want to retrieve a FieldValue (String) only if in the same document there is another field (boolean) which is true. For Example: If I have a Docume

Why does Jenkins creates a subfolder within the workspace@script folder to checkout git code instead of the workspace@script itself?

This happened after I updated some plugins and added 'blue ocean' to our Jenkins. Every job we have is using a JenkinsFile to build and package our applications

SQL Moving window over two level of groupby

I have the following table of orders for users like the following: CREATE TABLE orders ( order_id UUID, user_id UUID, date date,

Angular Proxy to .net Core backend works every other time

Running into some weird stuff.. Trying to hit my api from my angular app. Since We need to use windows authentication we need to setup a proxy.conf for angular

How do I avoid using global variables when writing a Telegram bot

I'm writing a Telegram bot on Python using the python-telegram-bot library. The bot's function is to look up POIs around a given location. I have a Conversation

How to check what the first word in clipboard is?

Lets say my Cliboard variable is currently in this state: Clipboard:= "-Classes Essay on Hobbes I want to perform If conditions depending on the first block/wo

Hardhat Config Error HH100: Network goerli doesn't exist

I am trying to deploy a contract on Goerli, but I constantly get the error Error HH100: Network goerli doesn't exist Here is my hardhat.config.ts require("doten

How to specify datasource id to scheduler telerik ASP.NET Core

I need client-side filtering with Scheduler. I wish to use Filter with Scheduler. For this, I need to specify datasource id to Scheduler. Different other compon

Connect arrays of buttons in QT Designer

so I have a mass of buttons on a QT Designer GUI application all named LED_i where i ranges from 0-191, ie: LED_0, LED_1, ..., LED_191. I would like basically t

Should I use React Router redirect OR package.json "homepage" property for setting a relative path as homepage in my React app

TL;DR - I want my React app to start with a relative path domain.com/tweets Hello everyone, I'm creating a React app that fetches tweets from Twitter API. Becau

image convolutions help (image processing) without numpy

I need to write function that convolving an image with a kernel. In other words -The function receives an image with a single color channel (ie a two-dimensiona

Issue using the Wordpress REST API with Python

I am currently using the Wordpress API in order to post articles in my test website. As I'm quite new to this, I followed this tutorial : https://medium.com/ana