Latest Questions

Date and time conversion using Pandas & Python to create Ts

I'm trying to get Ts using my existing data of data and time, which looks like (Pdb) df[0][:7] 0 [Data & Time] 1 Jan 01 08:00:01.193 2 Jan 01 08

cv2 SystemError when using webcam on MacOS

I am trying to run a very simple script using opencv, which should display frames from my webcam (on a 2019 macbook pro running OS Catalina) until interrupted.

Linked List Deletion function causing program to crash *wrong pointers?*

In my program when a username is following another one and also has posted a "tweet" which is a string in an attempt to delete the followed username it breaks t

How to access an element of an xml which ends with specific characters using perl

my xml file has nodes as follows, However the name of second child node is not always the same. But it always ends with the same extension, in this case text. H

How does Postgresql inside Docker work? psql: FATAL: password authentication failed for user xy

I created my app with .yml services: db: image: postgres:11-alpine environment: POSTGRES_DB: wiki POSTGRES_PASSWORD: quantoxrocks P

Python error - Traceback (most recent call last)

I entered this code. I entered the example alike in the book where I could study Python. from turtle import Screen, Turtle import random screen=Screen() image1

Eclipse switch to new Version Problems with Projectstructure

with my Win10 machine and Eclipse IDE for Enterprise Developers version 2020-12 I can import existing projects without any problems - the folder structure is as

Where does laravel gets the file name form a base64 decoded file

i have an file encoded in base64 and when i decode it and dump with dd() in laravel and it shows the file name and type so i was wondering where laravel stores

Can I use multiple different commands for a single file type in coderunner?

"code-runner.executorMap": { "cpp": "cd $dir && g++ -Wall -Wextra -O2 -std=c++14 $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt

How to create a timed input in python with a correct answer?

How would I create a program which asks the user for an input but if they dont respond with an answer within 5 seconds tells them that the time is up. But if th

Addition corresponding to all possible combination of two columns based on a criteria

I have the following input | ID | Column1 | Column2 | Value | |:-- |:-------:|:-------:| -----:| | A | x | a | 4 | | A | x | b |

Azure Service Bus Amqp token issue

I'm using Azure Service Bus, and Managed ID to authenticate to it. I'm using Kotlin and Quarkus, in an AKS environment. Now my issue is that when I deploy my co

Why do I receive data not on 1st click but on 2nd click in Angular?

There are multiple modules (for example career, departments, and many more) in which I receive data from SQL server through stored procedure (Select query), int

My .style.background doesn't style the item

I am trying to make a timer and make it so that when the time gets below 10 seconds the text turns red. I am using backgorund-clip to style my text, but for som

Upsell product button instead of add to cart show go to product [duplicate]

My question would be how would I change the add to cart button for the upsell products to instead go to the specific product. I need this beca

How to fix the NumPy .dtype 'NoneType' error

I am running the following Python code in PyCharm debug mode. import numpy as np, pandas as pd, numpy.polynomial.chebyshev as chebyshev from pathlib import Path

Could not resolve com.squareup.moshi:moshi-kotlin:1.13.0

Getting this error and unable to build Gradle file. Android Studio Version : Bumblebee Latest Patch Gradle Plugin Version : 7.1.2 Gradle Version : 7.2 I already

Error in dataprep function of Synth package - treated unit not found in unit.variable

I'm using the Synth package to evaluate the effect of a policy - Synthetic Control. However, when using the dataprep function in R it gives an error: Error in

jwt.verify not throwing error for expired tokens

I'm using JWT - jsonwebtokens in Nodejs. I'm creating a token and want to throw an error if the token expires. My token is created successfully and I'm checking

How does Wicket get parameters from the request?

We had a penetration tester discover pages in our wicket 6 apps where a javascript injection attack could be successful. Basically put script tags with javascri

React: filtering a todo list based on button clicked

I'm new to React and currently working on a to-do list app. Currently, I'm able to add, delete and edit the to-do list. I have a problem filtering my to-do list

Netsuite data-view not working on other file

I'm trying to move header logo from header.tpl to header_menu.tpl <div class="header-logo-wrapper"> <div data-view="Header.Logo"></div> &l

What's the best practice for Python multiprocessing to write to a shared dictionary?

I have millions of NumPy arrays that I wish to process, ultimately generating a collective histogram plotting the frequencies of seen integers. I wish to utiliz

denormal exception in gdb debugger for gfortran

I'm compiling with gfortran including the compiler options -g -fbacktrace -ffpe-trap=invalid,zero,overflow,underflow,denormal This has lead to an executable tha

error while loading shared libraries: libpulse.so.0: cannot open shared object file: No such file or directory

I am trying to run an Android emulator in a Docker container. /opt/android-sdk/emulator/emulator -avd "Android_API_29" -noaudio -no-boot-anim -netdelay none -ac

Use Go to encrypt message with ssh-rsa public key which then can be decrypted using openssl rsautl -decrypt

I have been trying to solve this for days. In Go code I am looking to take a ssh-rsa public key like: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGnnY4LuLq7Bs7VnFk2V

Time series Forecasting with Daily values

I am doing forecasting with auto.Arima with uni-variate data but my forecast is not correct. I have used all the steps correctly but the point forecast value is

Why does 'around' work but 'area' doesn't in Overpass Turbo?

I have the following overpass turbo query: [out:json]; area[name="Zagreb"]; ( node["tourism"~"museum|gallery"](area); node["amenity"~"cafe|bar"](area); ); o

npm install --timing not saving full debug log

I'm running npm install --timing, and when it completes it will output something like: npm ERR! A complete log of this run can be found in: npm ERR! /Users/

Mat-Option selected option based on patch value from api subscription

In my case i have several controls with mat-autocomplete with mat-options. in which the same form is handled for new entry creation and edit an existing entry d