Latest Questions

Python/Pandas Calculate the mean time (hour) of a Datetime column

I have a Pandas DataFrame (data) with a column ['Date'] in DateTime (date and time) which represents the time of arrival. How to calculate the mean of only the

trying to reverse string without string function strrev but not working in c

#include <stdio.h> #include <string.h> void main(void) { char in[15], rev[15]; printf("Enter a word (upto 15 letters): "); gets(in);

ADF vs KPSS test for stationarity and ACF vs PACF

The series is stationary according to both ADF and KPSS test for stationarity. However, both ACF and PACF plot still show significant lags. Why is that?

ASP.NET Core razor view doesn't show up in browser

This is what the browser shows me: This is my _Layout: @using Microsoft.AspNetCore.Mvc.Localization @inject IViewLocalizer _localizer <!DOCTYPE html> &l

C++: how to transfer files to netcat listener?

I'm working on an IRC server using c++, and I want to add files transfer to my server, but I don't know how to create the file in the user's host. I can read th

provideMockStore with MockBuilder in ng-mocks

How to overrider the selector value in MockBuilder provided with provideMockStore In general with Testbed beforeEach(() => { TestBed.configureTestingModul

Count occurances in multiple filtered rows

I need a little help since im new to PowerBI. I have a data set which says what have been eaten in a specific day. At the end there are columns which show if th

How to import js module when Typescript declaration file is located in a separate directory?

Question: When I run npm run build with the configuration below, rollup.js is unable to resolve the dependency (import) and displays the following message below

How to test whether stringstream operator>> has parsed a bad type and skip it

I am interested in discussing methods for using stringstream to parse a line with multiple types. I would begin by looking at the following line: "2.832 1.3067

How to access nested JSON with Jinja?

I'm learning Jinja for building a simple website. How do I access values of nested JSON in the Jinja syntax? Example: How do I only access the "Education" key i

Web scraping from html code of a database using python

I am new to python and am learning things slowly. I have earlier performed API calls from databases to extract infromation. However, I was dealing with a partic

Can anyone help to change this .htaccess rule to nginx?

I am using a wordpress plugin name JWT Authentication for WP REST API, it has some rules written in .htaccess but i am using nginx server and want to add these

Flutter can not connect to the docker localhost parse-server

I am trying to run a parse-server and parse-dashboard via the following docker-compose.yml docker-compose: version: '3.9' services: database: image: mong

How to input a history of vectors to LSTM based network instead of a single vector?

I am trying to predict a simple pattern using LSTM based network. I input a single vector and get the output vector with the same shape as a prediction. How can

SQL (MySQL etc), what is the difference about length string (1-256) and (0-256)?

Thanks for reading my post. I wanna know, what is the difference between length (1-256) and (0-256) in sql and how to store them in database?. I was asked to de

Java slenium wont getProperty when i use switch case

here is my simple code for getting a browser public WebDriver initializeDriver() { WebDriver driver; String browser = System.getProperty("bro

Unable to remove a container using machinectl

I pulled a nixos container and now want to remove it. I enter: sudo machinectl remove nixos-21-tar But the return message is: Could not remove image: Access de

play video in chkeditor 5 in asp mvc

I need chkeditor5 play video files such as mp4 after the file is uploaded with chkfinder and inserted into chkeditor.Is there any way? Now just the url of the v

How to hide border of a specific chart?

I'm new to css and am struggling with changing the border property for a specific chart title on a dashboard (I'm using a dashboard template with R's flexdashbo

Filter dictionary of tuples with duplicated first element of the values based on some condition

Sample input data in which Value1 is duplicated across several keys {'Key1': ('Value1', '28.302', '30', '131', '10', '321'), 'Key2': ('Value2', '42.373', '44'

Chatbot-specific answers

I'm creating a chatbot that asks questions and answers questions, but for now it doesn't have a specific function of answering specific questions that it asks i

Synapses Serverless Pool -Read External Tables

I am trying to read the data from external table which is configured in synapses serverless pool using pyspark notebook (I want that to be in a dataframe), howe

Python mock.patch() not mocking imported class module

I have a some code that looks like this (abridged): ## ./module_1/lambda_function.py from shared.graphql_helpers import GraphQLClient gql_client = GraphQLClie

vba how to look for a code in various sheets and paste them in another

so i'm trying to use a macro to look in sheets one code and paste the information of that code , I'm trying to use a simple macro with advanced filters to do th

How to return and download Excel file using FastAPI?

How do I return an excel file (version: Office365) using FastAPI? The documentation seems pretty straightforward. But, I don't know what media_type to use. H

Error in new.session() : Could not establish session after 5 attempts

I've been facing in R the error message for days using getSymbols of the quantmod package: Error in new.session() : Could not establish session after 5 attempts

How can I get dependabot to ignore a docker minor version

I'm trying to stay one minor version behind the latest python version, and I was hoping to use dependabot to help with that. I'm using the python slim docker im

Plotting the frequency of occurrences per date

I'm new to pandas and plotly. And I have a large csv file with two columns, a date column and a column that contains a string of text (event). Each event is a n

How to automate my first Telegram application?

I'm just learning the backend. I created my first application, all it does is get data -> publish it to a Telegram bot. I want the application to work 24/7.