Latest Questions

How can I monitor the requests during 'npm install <package>'?

I wish to monitor the calls made by the npm cli to the npm registry. (I am building my own registry) I have tried using a program, Charles for monitoring reques

I get an error when I try to run t.test()

I am trying to perform a t.test as follows: t.test(data = a, score ~ group, paired = T) However, I get this error: Error in complete.cases(x, y) : not all arg

What is a SMART WAY to deal with a lot of repeated If statements checks?

In my attempt to create a searching tool for a database that I created in the context of my undergrad thesis, I am required to make a lot of checks on the value

How can I upgrade newtonsoft in outsystems 10

I'm trying to upgrade outsystems eSpaces from version 9 to 10 and I'm facing this error: Internal Error Compilation Error. bin\OutSystems.RESTService.Runtime.dl

IndexError: list index out of range with api

all_currencies = currency_api('latest', 'currencies') # {'eur': 'Euro', 'usd': 'United States dollar', ...} all_currencies.pop('brl') qtd_moedas = len(all_curr

Random HTTP/1.1 502 Bad Gateway in PHP REST API

I have written a REST API in PHP using slim micro framework. Hosted on Apache (Event MPM) + PHP8.0-FPM on 2-vCPU and 4 GiB RAM and 10Gbps N/w bandwidth behind L

Vue 3 + Vite image URL becomes undefined after build

I encountered a bug where I dynamically generated a URL from props for image import in my Vue 3 component and it becomes undefined after build Script used to ge

IndexError: list index out of range with api

all_currencies = currency_api('latest', 'currencies') # {'eur': 'Euro', 'usd': 'United States dollar', ...} all_currencies.pop('brl') qtd_moedas = len(all_curr

Return does not return information

When wanting to return a value with the return and wanting to use it later in a variable, nothing is returned to me. #Actualizacion de informacion def messageHa

How to create a loop/function to open set of shapefiles?

How can I create a loop or a function to open many shapefiles at the same time where the names of the shapefiles change very little? For example with the data b

Reverse words in a string in C++ [duplicate]

Can anyone please tell that why the below written code isnt working , theres no error but its simply printing the string which was passed and

Gradle build sync failed. Basic functionality (e.g. Editing Debugging) will not work properly

Error screenShot `plugins { id 'com.android.application' } android { compileSdk 31 defaultConfig { applicationId "com.example.helloworld" minSdk 16

Reading hex data from serial port

I am trying to read a hex data from an MCU connected by USB. The MCU is designed to provide output in hex. This is a simple code I wrote using pyserial: import

Azure Functions bundle and extension, functions versions - javascript confusion 2.x, 5.0.x+?

I am making an azure cloudfunction with nodejs that gets triggered by a servicebus topic. Reading this I am super confused, they have a version for everything a

Net to setup simple if and else statement in node.js

trying to setup node.js code i want to setup simple if and else can anyone help to setup if and else // To use any npm package on Pipedream, just import it i

Is there a way to make sure formatted string is always in quotations?

I am working on a new tool to help automate some tedious processes. it involves ExchangeOnlineManagement, Python, and Powershell. I have input variables that I

Why does my Discord bot keep repeating when it runs this command?

This is the code used, there is nothing (I think) that's causing it to repeat, matter of fact I added something so it stops repeating but it didn't do anything

Navigation with arrow keys to the left does not work with input readOnly

I have built a table with 4 columns. 1 column is text and the other 3 are inputs that are set to readOnly. For this table I have written an arrowKeyCodeNavigati

How to use multiple databases in Django with an empty 'default'?

I'm trying to make a multiple database project in Django. But I'm having problems to properly migrate my models to the appropriate database. I'm using the 'Writ

animations with svg.js - adding runners to timelines

I wish to have animations that are controlled by buttons. My idea is to have a number of timelines which I can play() eg when the correct button is clicked. I'm

It doesn't pick up the variable correctly in subprocess.call (python)

I am creating a telegram bot to send the information that I request to the app. When I run the code below it works fine except for the last part, when it does t

Can't get result from Count Query although it shows in Query Datasheet view

I'm trying to get the result of a Count query into a variable so I can use it (basically I just need to know if it's greater than 0). My code looks like this:

Creating SvelteKit library with reusable routes

I'd like to create a SvelteKit library that provides a list of routes that the library user can then add to their Svelte app tree. This would be similar to some

i am trying to run the node of ganache but getting this error

I am trying to run the node of ganache but getting this error.please resolve my problem.

How to edit data of dynamically created form in angular 8

I am new to Angular developmet.In my project,I have a form with dynamically add and remove input box using Add and Remove button in Angular 8 Application. After

How to check if some text in a RichTextBox is selected

I am creating a text editor and I want to add copy, paste and cut functions in the Edit Menu. I want these MenuItems to only to be enabled when there's an activ

How to change the iFrame src on click of a button

<section class="ep1"> <iframe src="https://example.com" width="640" height="480" allow="autoplay"></iframe> </section> <but

Amazon policy on purchase from web within FireTV app

I have created a Amazon Fire TV app in which we are selling content. A user can purchase the content from website. We don't have any functionality to purchase c

How to properly use CMake subprojects together with Conan?

Let's say we have: App CMake project which uses Conan to manage dependencies (via conanfile.txt) Lib CMake library standalone project which also uses Conan for

Error in .exe of python script having Barcode from Reportlab.graphics

I have a python script for generating barcodes (code128) which works fine in IDE. But when converted into exe, it encounters below error: Traceback (most recent