Latest Questions

In SvelteKit, is there a way to cancel a popstate event if user state isn't saved?

I have a component that allows a user to edit their state. This triggers a notSaved variable. I have a beforeunload event handler to handle reload and exiting t

Error: no suitable method found for add(int,int)

ImageSpinner adapter = new ImageSpinner(context, Icons); spinner.setAdapter(adapter); ImageSpinner adapter = new ImageSpinner(context, Icons); spinner.setAdapte

Need help finding the smallest number and ending the program with -1

This is what I got: H = int(input("Enter a number or enter -1 to end)")) smallest = H counter=0 while(True): number = int(input("Enter a number: ")) if

Un-escape specific characters when serializing to JSON in C#

I have a simple task which is to unescape an apostrophe when serializing to JSON using System.Text.JSON: using System; using System.Text.Encodings.Web; using Sy

confluent 5.0.1 upgrade to 7.0.1

Trying to upgrade confluent I have checked upgrade link: https://docs.confluent.io/platform/7.0.1/installation/upgrade.html I found inside it said in the Prepar

Templates do not show image. Django

Here is what i tried to do: in my settings.py: TEMPLATES = [ ... 'OPTIONS': { 'context_processors': [ ...

Replace every sequence of letters with a random word

I created a list of random words: library(OpenRepGrid) list_of_words <- randomWords(100) list_of_words <- gsub("[^A-Za-z ]", "", list_of_words) list_of_wo

Proportional sizing using equal heights missing constraint

I would like the blue container view to be the same height as the orange container view. I am using proportional sizing to do so (all of these are within a vert

Drawing a visualization of system capacity (pipe flow?)

I need to reliably and repeatably visualize a system which is like pipes that can pass a certain amount of fluid per unit of time. The real system is a therapy

selecting columns which are NOT of a specific type SQL

I want to select all the columns in BigQuery that are not of the type "TIMESTAMP". I have written the query which returns such columns which is: SELECT COLUMN_N

Python 3.9 - Connect to memsql

I am trying to connect to memsql (running as docker container - cluster-in-a-box). I am using Python3.9. Tried with Python 3.8 as well. Here is the code snippet

Drawing Lines From Pivots

I am trying to draw a trend line connecting previous pivot highs and previous pivot lows IF the last pivot high is higher than the previous pivot high AND the l

Dataproc: Can user create workers of different instance types?

scenario: master: x1 machine type workers: x2-machine type, x3-machine type. For the above scenario: AWS EMR instance fleet allows users to create different wor

Best Programming Language For An Application Installer [closed]

Alright I am new to programming and I want to make a game installer. Do any of you know what the best programming language for an .EXE applica

Not able to open Control Center UI on localhost

I am trying to understand confluent kafka and do some hands on with it Trying to setup on my local machine . I have followed the instructions in this doc : http

WPF Cefsharp google login

I know that google login for cefsharp has been blocked for long time now, but is there any way to bypass this for example calling a actual chrome browser for th

SSRS - Parameter(Multi-Value) Passed to Stored Procedure returns last value

I've used the join function to create a string out of an array of variables. =Join(Parameters!Variable.Value, ",") Let's say that the expression is using a par

Unable to create converter for class com.anyarscaner.model.ResponModel

I created the Retrofit API function, but it's an obstacle like the following. I corrected it yesterday, but after today it returned to the same problem. Here's

Why materialSkin.2 buttons are kind of fixed design winforms?

i have a problem when i want to edit a button from MaterialSkin.2 winforms, why this is happening, are they fixed from developers or what

How can I bind my selectAll button in Angular to an $event change?

May I know how to trigger the $event on the click of my selectAll button in Angular? My code are as follows: <div class = "col-md-auto" id = "container">

r - Plotting monthly time series data in R - cannot plot more than 10 series

I'm having a lot of trouble plotting my time series data in R Studio. My data is laid out as follows: tsf Time Series: Start = 1995 End = 2021 Frequency = 1

LabelEncoding a permutation of combination of columns

I'd like to create class labels for a permutation of two columns using sklearn's LabelEncoder(). How do I achieve the following behavior? import pandas as pd im

Does anyone know the way to do this on a client-go or the API resources that kubectl describe pod uses

I cannot find the appropriate method to do this. Does anyone know the way to do this on a client-go or the API resources that kubectl describe pod uses?

What is the fastest way to determine biome? (Unity2D C#)

I've proceduraly generated map and defined biomes based on this scheme: Take 3 different maps created via Perlin Noise Using presets determine which is the best

fluentd indices not adding to elasticsearch and kibana

I've deployed EFK stack in IBM Kuberentes cloud by following the step by step guide from this article. Every deployment is done successfully, all EFK stack are

Android camera permissions reduce availability on Playstore

I have an flutter app in playstore but rigth now i'm trying to update with new features, but some camera permissions/features are reducing the app availability

Python requests library - POST requests takes too long

I have a problem with the python requests library. I try to send a simple POST request to my Keycloak server, to introspect an access token. I tested in in Post

How to make radial gradient bubble chart in Plotly

Cannot create Radial Gradient effect and shadow in Bubble Charts

How to define common query params in Redux Toolkit Query

All the endpoints of the API I'm working on, require the same set of query parameters. The user must select these parameters before making requests to endpoints

Podio & Power BI

Has anybody got Podio to work with Power BI. I managed to get the token process to work in Power BI. I can get single record results to work but when using a li