All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
4 views

diffrent JsonView for ResponseBody and RequestBody

I want to make a POST request where you can create a user. In the RequestBody should be the Password included. But in the responseBody should the Password be ignored. I want to use View.Public.class ...
  • 61
0 votes
0 answers
2 views

Get all XHR calls a website generates in Flutter

I'm trying to write a custom flutter frontend (means I don't want to simply display the HTML) of a website which I don't own or have API access to in order to run the app on my FireTV stick, so I don'...
  • 365
0 votes
0 answers
2 views

.netcore azure github -> dotnet restore -> "Your request could not be authenticated"

I've gone through the setup docs as instructed and dotnet restore still isn't working for me. I'm hoping if someone can see if I'm missing anything. My azure token: My github token: The nuget.config ...
  • 1,675
0 votes
0 answers
2 views

Fabric api not being detected when booting up a mod is vs code 1.19

I have tried many things but no matter what I do when I launch minecraft I get an error message telling me fabric api is missing does anyone know what I can do about this issue? thanks! error message: ...
0 votes
0 answers
3 views

How do I draw a plot for my function in R with error ` Recycling array of length 1 in array-vector arithmetic is deprecated`?

Following this question: How to write the denominator summation?. #make this example reproducible set.seed(101) n <- 100 #Sample GOE random matrix A <- matrix(rnorm(n*n, mean=0, sd=1), n, n) G &...
  • 81
0 votes
0 answers
7 views

SED Convert Bad JSON to Valid

I have some invalid json where there are double-quotes missing, some commas with nothing in between e.g. , ,, and some fields with no values. Example: {issuingColo=1, csUserId=0, expirationTimestamp=...
  • 428
1 vote
0 answers
5 views

Query Geohashes in firestore in JavaScript modular syntax

While going through Firebase's documentation for geohashing, Im using modular SDK, and I tried converting the namespace code, but I was encountering a TypeError that q.get is not a function // Find ...
-1 votes
0 answers
5 views

How to calculate the max Base10 integer that can fit into 7 character Base62?

I tried finding articles about this but I am not sure how to calculate the max length integer in Base10 that can fit within 7 characters in Base62. I essentially want to take Base10 integers and ...
  • 765
0 votes
0 answers
5 views

Java GUI - Why do values under actionPerformed method not show in other class?

A char variable was added under the .isSelected() method and it stores either 'A' or 'B'. It successfully printed "got A" and the correct value within the frame class. But when I use the ...
-1 votes
0 answers
13 views

i am trying to find pattern using regex

{"\'class_id": 663, \'class_name\': \'animal\', \'probability\': 0.586436569690704}', i want to extract animal from this code. what regex pattern will use for this code. df['Label_1'] = df[...
1 vote
0 answers
5 views

Refresh expired token in apollo clinet

i am trying to refresh the access token once its expired here is my code const getNewTokens = () => { const refreshToken = localStorage.getItem('account:refreshToken'); const accessToken = ...
0 votes
0 answers
10 views

How to run a function inside a for loop 10000 times and record 3 separate outputs

I'm working in MATLAB and I'm still very new to it. I'm trying to import a function and run it 10,000 times inside a for loop. The function produces 3 separate outputs and I need to save each output ...
-1 votes
0 answers
6 views

Trying to understand SQL counting and parsing to php

im new to programming and SQL ( im using maria db ) and trying to understand some specifics on counting. I have a table with few hundreds records and some columns ( column1, column2, column3 etc) My ...
  • 1
0 votes
0 answers
3 views

The .gitignore does not catch the .terraform directory

I encountered the following error when pushing the local repository to a remote repository. error: File stage/services/webserver-cluster/.terraform/providers/registry.terraform.io/hashicorp/aws/4.39.0/...
0 votes
0 answers
4 views

Recyclerview jumps back to beginning on tapping on text field

I am currently trying to create an Recyclerview that has two modifiable Text Fields to changes Values of Storages. Everything is working fine with the First entry, but as soon as I go to the next ...
0 votes
0 answers
4 views

Run function in tex-based RPG game writed in python

How to write a function to the game where you can run from the fight and so it would return your position to the state before the battle, because with my current code it returns you to the beginning ...
  • 11
0 votes
0 answers
8 views

How to calculate R squared on monthly frequency for daily data?

Currently I calculate the R squared for the whole dataset and for monthly R squared I slice the dataframe into smaller dataframes with the corresponding month and this is really unwieldy for a large ...
  • 165
0 votes
0 answers
6 views

jupyter notebook: python setup.py egg_info did not run successfully. exit code: 1

I am trying to install medspacy within jupyter notebook (via anaconda prompt) on a desktop computer within my institution. I get the below error. I think it maybe has something to do with that i cant ...
0 votes
0 answers
10 views

private(set) var vs let in testing

Let's say one has a UIView subclass with a constant private property. class ViewSubClass: UIView { private let someProperty: Property = .init() } If I wanted to test someProperty, I currently ...
  • 467
0 votes
0 answers
5 views

Value of Derived Type changes unexpectedly in C-Fortran Interoperability Code

In the following FORTRAN Code which uses C library the value of tol changes unexpectedly. #define clong KIND=8 #define cdouble KIND=8 PROGRAM ComplexIntegral USE farblib IMPLICIT NONE TYPE(fmag_t) ::...
0 votes
0 answers
3 views

one2many field view - attribute

I have the following wizard structure [ field name and data type ] Type :- Selection :- Type 1 and Type 2 Route :- One2many When Users select Type 1, I want to allow them to add records in the Route ...
0 votes
0 answers
4 views

Image Recognition of Noughts and Crosses

Are there any good approaches to doing image recognition of a noughts and crosses game? I can identify a nought and a cross but how would I approach identifying a game to go from a picture to a model ...
  • 161
0 votes
0 answers
5 views

audio player doesn't do sound,

class XylophoneApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( body: SafeArea( child: Column( ...
0 votes
0 answers
5 views

how to mock http request to Microsoft Teams channel using python or Javascript?

For example, using LocalStack you can easily test/mock APIs on your local machine with the same APIs functionality as the real AWS cloud environment. I am locking for similar framework/tool I can mock ...
  • 2,642
0 votes
0 answers
4 views

How to clean a textfile to export like JSON - Python

I have the following textfile from an LFT command. 2 [14080] [100.0.0.0 - 100.255.255.255] 100.5.254.150 6.3ms 3 [14080] [100.0.0.0 - 100.255.255.255] 100.8.254.149 5.7ms 4 [15169] [GOOGLE] 142.250....
0 votes
0 answers
6 views

Stimulus controller using queryselector

I have the following stimulus controller import { Controller } from "@hotwired/stimulus"; export default class extends Controller { connect() { const buttonHTML = '<button ...
  • 21
0 votes
0 answers
4 views

KEYERROR issues with Flask-Mail

I am having trouble with creating a flask server that can send confirmation emails. I get a KEY ERROR even though I have made sure to install both Flask and Flask_Mail through my Terminal Window. This ...
  • 29
0 votes
0 answers
6 views

How to set retention period in AWS S3

I am trying to set retention period in S3 storage, in a shell script: curl -k -X PUT $ENDPOINT -H "Content-Type: application/xml" -H "Accept: application/xml" -d "${...
  • 21
0 votes
0 answers
5 views

Pandas column split ValueError: Columns must be same length as key

I have dataframe structured like: Location_Identifier Location_Name Location_Type Observed_Property 5728 place 1 Groundwater 39398 - ETHION IN WHOLE WATER SAMPLE (UG/L) 535 place 2 Groundwater 946 -...
0 votes
0 answers
4 views

Add new rows with intercept, slope, r squared, p value of linear model for each row in a dataframe

I have a dataframe with the xy coordinates and annual precipitation for ~1,000 gauges over 30 years (df below is similar but simplified). Each row is a single precipitation gauge. I need to fit a ...
0 votes
0 answers
4 views

404 Error with mybinder.org when I try to deploy a Jupyter Notebook with voila from GitHub

I have a problem deploying my Jupyter Notebook from Github to mybinder.org. I configured everything according to several tutorials I found, but everytime I try to build the page mybinder.org gives me ...
0 votes
0 answers
5 views

Why can't I use a varchar column as an X-Axis in Snowflake Dashboard?

I have a column defined as TO_VARCHAR(START_TIME, 'yyyy-mm-dd hh') I would like to use this column as an X-Axis in a Snowsight dashboard but it won't let me do that... Any particular reason I am ...
  • 1,964
0 votes
0 answers
7 views

How would I even start this

Create the function save() # Process: - creates a Connection object (the class we created in file connection_solution.py) # - initialize the Connection with the username and password ...
  • 1
0 votes
0 answers
6 views

i don't know why it says now that it can't find any image, saying "no such file or directory"

I just started to learn python, and I wanted to create a basic program to test my skills, but I found this error that didn't appear before. I don't know what's wrong, it used to work until today. ` ...
0 votes
0 answers
15 views

Why are the double vector elements being rounded up when printed?

Basically I'm trying to print a vector of type double, but the print values are either rounded up or just weird. Maybe there's something I'm missing in the print statements since I'm not too familiar ...
  • 3
0 votes
0 answers
7 views

How to rewrite this list comprehension function to a function using map?

I have this function, that counts only Uppercase letters and returns the counts of each letter for example: the input "ABCd" gives me: [1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] I ...
0 votes
0 answers
5 views

From pyts.image import RecurrencePlots ImportError: cannot import name 'RecurrencePlots' from 'pyts.image'

Trying the example from: https://johannfaouzi.github.io/pyts/auto_examples/plot_rp.html directly. However getting the error below. How can this be fixed? import numpy as np import matplotlib.pyplot as ...
  • 295
0 votes
0 answers
4 views

Barba.js wait for an element to exist for GSAP

i'm using barba.JS on my project and for some reason, scrolls are not working on safari because of GSAP. Which i have isolated with a "if" in order to let the scrolls work. It worked, exect ...
0 votes
0 answers
3 views

swagger-stats/metrics transform response

I want to use swagger-stats (https://swaggerstats.io/) and push the metrics to influx and thus am looking for a method to call to get the same metrics as when calling myhost/swagger-stats/metrics but ...
  • 858
0 votes
0 answers
8 views

Is there a way to make methods/functions in fastapi that shows up in the dev ENV but not in production using decorators?

I want to create a function with decorator: @test_env def show_secret_key: return 'ThisIsThekey' But I dont want to keep writing 'statements' like: def show_secret_key: if 'Prod' == os.env.prod: ...
  • 2,061
-2 votes
0 answers
9 views

Is there a hacking course for beginners?

I don't have a tech backup. But wanna learn hacking . Please suggest me good hacking course. That has a practical approach and focus on learning! I tried online courses by influencers but they were ...
-2 votes
0 answers
20 views

how convert lowercase to uppercase with ASCII code? [duplicate]

want to write a program with c# in visual studio Converting lowercase letters to uppercase, but the problem is that it deletes the uppercase letters and enlarges the lowercase letters, and I don't ...
0 votes
0 answers
8 views

Static ip for any wifi connection

I am working on iot system. I want light control with orange-pi. I use tcp connection to connect to this from a phone app and it needs me a fixed IP over wlan. When I set a static IP and connect to ...
  • 1
0 votes
0 answers
12 views

How to prevent event listener from increasing increment by more than one?

The way my code is supposed to work is that when the correct answer button is selected, it should re-run the code and add +1 to the index so that the questions are updated (because this index is used ...
0 votes
0 answers
16 views

C program to calculate average of numbers in an array, that includes pointers

i had written the below code to calculate the average of numbers in an array, but i need to include pointers in it without changing much of the program #include <stdio.h> int main() { int n, ...
0 votes
0 answers
5 views

"Could not find a package configuration file provided by 'libhydrogen with any of the following names" Error compiling using Cmake and vcpkg

Output do Erro: CMake Error at CMakeLists.txt:37 (find_package): Could not find a package configuration file provided by "libhydrogen" with any of the following names: libhydrogenConfig....
0 votes
0 answers
5 views

Java spark dataframe throwing null pointer when doing operations like show

I have a class where I have defined spark session. Like this: SparkSession spark = SparkSession .builder() .appName("Application Name") .getOrCreate(); This session is in ...
  • 111
0 votes
0 answers
4 views

Sunburst Nivo Plot the only one not displaying, no errors

I followed this tutorial to get an intro to React and everything works as intended. So I tried to add another of the Nivo plots, sunburst, following the same method. My App.js imports this new scene ...
0 votes
0 answers
7 views

how to link GLFW dll using cmake

Here I have downloaded GLFW libraries on my local machine. LICENSE.md docs lib-mingw-w64 lib-vc2012 lib-vc2015 lib-vc2019 README.md include lib-static-ucrt lib-vc2013 lib-...
0 votes
0 answers
2 views

Launch GDB in layout split mode

Every time I launch GDB, I hit ctrl+x ctrl+2 to enter layout split mode. I'd like to just launch directly into split mode, so I added set layout split to my .gdbinit file, but this appears to have no ...
  • 41

15 30 50 per page
1
2 3 4 5
465101