Latest Questions

Making MyPy happy with aiohttp_pydantic

I'm using the last version of the aiohttp_pydantic library on a Python3.8 project. When I run MyPy, I have this kind of error : error: Skipping analyzing "aioht

Assigning global variables within a local function in C#

I have a program where I am assigning several variables from within a function. When I do the assignments manually it seems to work, but if I write a helper fun

remove a substring from a string

I want to remove , from a string in jq. Take the following example, how to remove , when outputting 1,2? $ jq -r .x <<< '{"x":"1,2"}' 1,2

Calling function in VueApollo after API response

I am using Vue and Apollo and I am making a querie that looks just like the box below. After I get the API response, I would like to call a method from my metho

Export a CSV file in Oracle database by using stored procedures

I am using the following stored procedures (Oracle Database) to export the output of the query to a CSV file CREATE OR REPLACE PROCEDURE run_query(p_sql IN

How are char arrays / strings stored in binary files?

When I compile this code using different compilers and inspect the output in a hex editor I am expecting to find the string "Nancy" somewhere. #include <stdi

how do i fix "ERR_SSL_PROTOCOL_ERROR"?

i made a server with twisted python like below options = ssl.CertificateOptions(privateKey=cert.privateKey.original, certificate=cert.origin

VSCode says "Failed to run custom build command" on cbindgen, but it actually works

I have a Rust (2021) lib. It compiled fine. I added a build.rs file with this in it: extern crate cbindgen; use std::env; fn main() { let crate_dir = env:

i'm with an error or bug in the library selenium

I have this bug/error in selenium. Could you help me figure it out? i've already reinstalled the webdriver and it goes on like this my error DevTools listening

Cannot get React testing Jest-DOM to select a date from a date picker or time from a time picker

I cannot, for the life of me, figure out how to get Jest-dom in react testing to select a date picker and the same for the time picker. All my other fields are

Expo app cannot see env variable from Github action

We store our configurations on the vault and during the Github action workflow we pull this and intend to use this for the app during build time. This is our wo

VB Net Quotes in a string

I need quotes in a string in VB Net. c = C:\test.doc How can I realize that the string looks like: PrintFile /File="C:\test.doc" /OutputFile="C:\test.pdf" onl

How do I export templated classes from a dll without explicit specification?

I have a dll that contains a templated class. Is there a way to export it without explicit specification?

How to prevent browser back button after successful login in Laravel?

I am having a problem applying custom middleware for not accessing the login route after successful login. Whenever I logged in a user if the user press the bro

kotlin android gradle error id 'kotlin-android-extensions'

plugins { id 'com.android.application' id 'kotlin -android' id 'kotlin-android-extensions' } After updating the build.gradle file, it changed a

Able to proxy my React app in localhost to heroku server but not on firebase

I was wondering if there was a way to proxy my firebase-deployed app to redirect all requests to a heroku API URL. { "name": "denrol", "version": "0.1.0",

Seven segment project using atmega16 and external interrupts

I have been working on a simple project on AVR microcontroller atmega16 on proteus simulation. The project is: When I push the push button it increments the sev

Warning: Entry point 'angular-instantsearch' contains deep imports into '/node_modules/instantsearch.js/es/connectors

After installing these two package in my Angular application 13.0.3. I am receiving this below warning. "angular-instantsearch": "^4.1.0", ⠙ Generat

The body might complete normally, causing 'null' to be returned, but the return type, 'State<StatefulWidget>', is a potentially non-nullable type

I'm new in flutter. I tried to build a webview that have a token. I have used statefull widget but I am facing this error The body might complete normally, caus

Deleting row in one sheet if cell value is found in another sheet

I am trying to delete rows if cell value is found in another sheet via App Script. But the code is not going through complete data in history sheet. function de

Android with Libgdx: cannot resolve symbol GoogleSignInOptions

I'm developing a game on Libgdx. And I can not set up GoogleSignIn in the application. I'm using this instructions: https://developers.google.com/identity/sign-

How to export all the pages to CSV in MUI DataGrid?

I hava a DataGrid table from Material UI with more than 3000 rows, each page contains max 50 rows per page. What I want is to be able to export all the rows to

How can you graph multiple overlapping 18 month periods with daily data?

I am doing an exploratory data analysis for data that is collected at the daily level over many years. The relevant time period is about 18 - 20 months from the

Django Queryset annotate based on unique value

I am trying to write a queryset operation that transforms the first table into the second table as efficiently as possible This is the criteria: For each name,

How to fix jagged line from predict_gam in ggplot2?

Data: structure(list(ID = c(19903L, 28185L, 28207L, 28429L, 28522L, 29092L, 29127L, 29219L, 29304L, 30981L, 31166L, 31411L, 32010L, 33231L, 33640L, 33714L, 34

Add delay in consuming messages in rabbitmq stream

i'm using rabbitmq stream and i need to add a delay between messages because the stream handles messages very fast. how can I do that?

Fix wait time for Selenium Form using Python

I'm new to Python and am trying to automate a form fill up. I have done all the work but when trying to "Submit" it's not reading the XPATH and hence not clicki

How to get TF-IDF value of a word from all set of documents?

I need a TF-IDF value for a word that is found in number of documents and not only a single document or a specific document. For example, Consider this corpus c

React Material UI Autocomplete, prevent OnInputChange, after selecting value from dropdown

How do I prevent React Material UI to not trigger onInputChange, when a person selects a option from the dropdown? After using the dropdown, it retriggers the A

Firebase SDK crashes on FBLPromise with unrecognized selector

I've followed the Firebase docs for integrating my iOS app with Google Sign-in authentication, and now that I have the "sign-in with google" button showing up i