Latest Questions

Can I write posts for a personal Django blog website in static html files?

I'm pretty new to Django and have been experimenting making my own personal blog. General question I get that I can specify my blog post structure in models.py

Difference between instance of HttpClient and IHttpClientFactory in .NET Core5

Below is my Startup.cs public class Startup { public Startup(IConfiguration configuration) { Configuration = configuration;

hydrological model of a river basin, forecasting precipitation cumulative 5 days inflow [closed]

Hi guys we are trying to find the best proper model to forecast 5 days inflow cumulative of a river basin. For hydropower puroposes and water

What could be wrong with a Pandas DataFrame?

I couldn't make head or tail of this: I have a function that reads a bunch of csv files from a S3 bucket, concats them and returns the DataFrame: def create_df(

Cannot find server when run stored procedure

I have a database backup from a client. This database has a SP that I am trying to execute. I am getting the following message: Msg 7202, Level 11, State 2, Pr

Analysis the hashmap keys as 3 keys in each one lane

I'm trying to analyze a hashmap keys, so I want to make every 3 keys from the hashmap send as one line, and then after sending 3 keys it will put a "\n" so it w

R - Created package documented with roxygen2 is there a way to create a PDF of all the functions documentation? [duplicate]

As I explained in the question, I made an R package using devtools and roxygen2. When I type ?function the roxygen2 documentation displays in

Explanation of ClassCastException in Java

I read some articles written on "ClassCastException", but I couldn't get a good idea on what it means. What is a ClassCastException?

How to measure the height of a child and pass it to a parent in React?

I want to calculate the height of a component and send it to its parent when the page is loaded and resized. I'm using the below reusable Hook to successfully m

DELETE operation javascript fetch() with REST API firebase

I use the following API request in order to delete all texts (so called cps) of one section (one section contains many cps) await fetch(`https://12345-default-r

React pass multiple properties and children

I'm new to React, typescript and nextjs and I'm trying to pass multiple properties to a component. But, I seem to override them. For example I have this in my _

Keyof not working in template literals due to Symbols

I would expect either of these types to work, but these both throw errors. export type Object1<T extends { [k: string]: any }> = `${keyof T}`; export type

MariaDB Connector gives datetime with precision 3 instead of 6 after update to version 3.0.3

I have a spring boot application with mariaDB, after updating the connector ("org.mariadb.jdbc:mariadb-java-client") from version 2.7.5 to 3.0.3 the datetimes (

scraping NYT mini crossword stats gives 403 forbidden URL error

I'm trying to scrape my NYT mini crossword stats to then update a google sheet. But I'm having trouble with the login portion of the code. Here's my code so far

Operation not permitted when trying to open tmux

When I try to initiate tmux session it gives me the following error. error creating /private/tmp/tmux-501 (Operation not permitted) I am using apple M1 (Big Su

Adjusted Survival Curves in R From Cox Model at Specific Covariate Values

I'd like to plot adjusted survival curves from a Cox model at specific covariate values. The survfit function in the survival package and ggsurvplot in survmine

How to mint an NFT using `/sign_url` REST API of NEAR?

We're building a Marketplace in NEAR blockchain. Currently, integrating the mint feature. We have build a NFT contract and deployed to our testnet account. Refe

How to get word count in docs as a aggregate over time in elastic search?

I am trying to get word count trends in docs as aggregate result . Although using the following approach I am able to get the doc count aggregation result but I

Android studio custom icon state_focused not working

custom_email_icon.xml <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item andr

Regex for duplicate words in a string with one of them with a apostrophe in Angular

I want to create a regex for a requirement, a string is having duplicate words but in that duplicate words one is with a apostrophe. For example: EXCHANGE CORRE

How to define and call functions in c++?

I am new to c++ and I am wodering how to properly define functions? Right now I am receiving the following errors: Severity Code Description Project File

Multiple problems with Sobel algorithm in c

I'm trying to build an edge detection program using the code below. I have faced a variety of problems though, that I don't know how to solve. #include <stdl

how can I turn my linear regression model from univariate into the multvariate?

I have built this univariate linear regression model from scratch and I am conceptually ok with how the multivariate version of it works. the problem is that ho

How does one create text that can overlay all windows like the Windows Activation Watermark?

I would like to create a count down timer that displays in the lower right hand of the screen with slightly transparent text that can be seen no matter what you

How do you use std::distance in a range-based loop?

This is my code that won't compile: for( auto occurances : occ ){ if( occurances == 1 ) cout << distance( occ.begin(), occurances ) } It gave me th

Firebase App Distribution - No "install" button on Google Play window

I am deploying an aab with Firebase App Distribution to testers in my company for the first time. Devices not any worries while others ... Some are blocked on t

Your app(s) are using a WebView that is vulnerable to cross-app scripting

My android app keeps getting rejected because of this reason: Your app(s) are using a WebView that is vulnerable to cross-app scripting. I already did an extens

Dplyr Lags on Summarised Grouped Data

Using dplyr, I'm looking to summarise a new column of data as a lagged version of an existing column of grouped data. Reprex: dateidx <- as.Date(c("2019-

Global variable is not updated if it is from other .py file

As you know, the code: var = "flower" def update(): global var var = "forest" update() print(var) will properly modify the variable var, but if you do

appscript - get multiple selected rows

If i mark and select 5 rows in google sheet. I want to retrieve an array of retrieved rows. Particully column (0). function selectRow() { var sheet = Spreadsh