Latest Questions

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

SwiftUI: Update height of an existing row in list

I'm new to programming in SwiftUI. I created a list of a custom view that expands on tap. However, whenever I tap the custom view, the height of the list row do

how to change word wrap mode for QListView?

I created a QComboBox and set a custom view for it: self.list_view = QListView() self.list_view.setWordWrap(True) self.list_view.setVerticalScrollBarPolicy(Qt.S

How to obtain all gaps as start .. stop interval in pandas datetime index

I want to find all gaps in pandas DateTime index as a list of intervals. For example: '2022-05-06 00:01:00' '2022-05-06 00:02:00' <- Start of gap '2022-05

QSharedMemory mapped file always have zero length

When the QSharedMemory example is running, a mapped file is created into /tmp directory. $ ls -s /tmp/*Example* 0 /tmp/qipc_sharedmemory_QSharedMemoryExampleff7

How can i send messages from MS Word file to wechat? [closed]

I have messages in word file and need to send the message on wechat. Is there any api or option by which i can send message to wechat with jus

JEST: My Isolated module function depends on a function found on the same module. After mocking, it still relies on the original implementation

I have abc.js const a = (a)=>{ return (b(a) + 1) } const b = (num)=>{ return(num + 1) } module.exports = { a, b } When I do my test for

Rotating QR code to the correct position using Python OpenCV

I'm a beginner in python and currently studying QR code detection and decoding. I'm having a hard time rotating the detected QR code to the right position. I al

Attempted import error: 'styleFunctionSx' is not exported from '@material-ui/system'

I'm getting this error when attempting to npm start: ./node_modules/@material-ui/core/esm/Box/Box.js Attempted import error: 'styleFunctionSx' is not exported f

Azure Pipelines: Start-Process with credentials not working

I am trying to start an application from Azure Pipelines YAML using Powershell. I want the app to start with a non-administrator account, while the Azure Pipeli

How to prompt a user multiple times by a batch file with multiple user inputs?

I want to change the serial number and product number of about 250 servers (they are not correct at the moment). I know the command that I need to use, but I ne