Latest Questions

File pattern was reassigned to file type by 'Android' plugin. You can confirm or revert reassigning pattern

I am developing an app using Flutter 2.10.3 but I assume this issue is not related to Flutter. Since upgrading to Android Studio Bumblebee | 2021.1.1 Patch 2 I

Typescript generics with functions Parameters

I'm trying to open a typescript method using generics. There is an object with methods (the comment indicated different types of function parameters) const emai

Is there a simple way to compare two class objects for all items that are not none?

I am looking to compare two instances of the same class, but only the items for which both are not None. for instance, I will have a Bolt class, and one instanc

How to send data from Child to Parent component in Blazor (when a list is clicked)

I have a simple component like this: @foreach(book in store) { <li @click="@SelectBook(@book.id)"> @book.title <li> <!-- book.id throws error

Netbeans jsp, errors not showing

when i write in jsp page using Netbean javaWeb it doenst show error or do completations while coding ive to run it in order to show the errors and it's really a

React Native DrawerNavigator to right doesn't work as expected

When I set drawerPosition: 'right' it behaves strangely. For the drawerPosition: left, it works as expected. The blue panel on the screenshot is the drawer that

Change icon and icon color automatically based on command in VS Code

I just wondering if in VS Code has this kind of customization whereas when we execute a command in terminal then the color and the icon will change accordingly.

Errors loading GeoJSON exported from R's sf package into Mapbox Studio

I am trying to learn how to use Mapbox Studio, but I can't figure out how to upload GeoJSON files that I export from R's sf package using the st_write() functio

rank function using order by timestamp_tz(9) in snowflake is not working properly

snowflake rank function order by same ROW_MODIFIED_TMST function is generating unique numbers. for example: Table1 Column1 ROW_MODIFIED_TMST

Maintain sorting throughout paging in gridview in asp.net

How to maintain sorting throughout paging in gridview in asp.net. Below is my code behind for binding grid, paging, and sorting private string SortDirection {

Generate binary outcome dummy data based on probability of items and its feature

I want to generate a synthetic data from scratch which is a binary outcome sequence data (0/1). My data has following property- For the sake of an example, lets

Async task getting value off of JSON return, XAML/WPF app

I am trying to get a single value off of a JSON return. My call is doing an HttpClient call to a webservice, it returns me my Json object. I need to now get a v

Change values in multiple columns if condition is met (R) [duplicate]

I have a dataframe: n <- 50 df <- data.frame(id = seq (1:n), age = sample(c(20:90), n, rep = TRUE), s

JoinTable not generated with @OrderColumn annotation

I think that must work, but seems not. I have an entity, let's call it 'team' that has a list of members where the order is important. @Table(name = "teams") pu

arrays and methods help needed

i've been puzzling over this for about 5 hours now, I just can't get the errors to stop. am I doing something fundamentally wrong, or misunderstanding something

How to prepopulate name of the printer in the browser

I'm using ASP.NET MVC and I'm using a function with AJAX that opens in the browser the window to print. My questions is when I print I would like to already set

Flutter. Play raw h264 from WebSocket

I'm trying to display live video in flutter coming from video server. Video server sends raw h264 video through websocket. I know that this video can be played

When using the friendly_id gem - can you ignore certain routes like /about /contact?

I'm using the friendly_id gem in a Rails application, to be able to view organisations at site.com/organisation-name The problem is that I have a few static pag

For Looping data in html and SketchUp

I have an array of data in SketchUp which I need to present to html in a table format. I have an example of my code which I have hard-coded. ID = [["Harry", "22

file 'ntwin32.mak' not found error while making files for live555 installation

I am following the live555 installation steps from here. and have .mak makefiles in each folder. To make the Makefiles I do : nmake abc.mak everytime to get an

SwiftUI - Custom map pin's onTapGesture action is selecting a wrong pin view when there are group of pins in the save position(Zindex bug)

My map code is actually really simple: // // ContentView.swift // MapTest // // Created by Asi Givati on 24/04/2022. // import SwiftUI import MapKit import

Jetpack Compose vector parsing issue

I'm trying to load a vector but keep getting this error stack trace java.lang.IllegalArgumentException: Unknown command for: R at androidx.compose.ui.graph

How to correctly compute the gradient of a curve using numpy gradient?

I have a curve which is composed of 1200 values and i just want to compute its derivative so i use numpy gradient function. Here is the code i'm using: data = n

Shadowdom access form selenium javascript/typescript

I'm trying to get access to some shadow dom elements using selenium in Javascript/Typescript, but can't quite seem to get it to work as expected. I haven't bee

NextJS: Can't get client side cookies without refreshing

When user logs in, I set the cookies with js-cookie for client side access. The cookie must be -I think- client accessible since I use Redux Toolkit for async t

How do I continue a for loop when no data is present which causes an index error?

I am learning python and I'm guessing something very obvious is at fault here. I have a web scraping program that, I suspect, upon finding an empty data field t

How to implement SAML SSO with AZURE AD in ASP.NET MVC Web Application

I create a simple .NET web application and I want to implement SAML SSO with Azure AD. I am using .NET version 4.8. I couldn't find any documentation to set up

How to formate or validate date in java like 20992012 or 12122022? [duplicate]

i have to validate date yyyyMMdd or MMddyyyy or ddMMyyyy. if i pass input 20221224, ho to make this is valid? but how can i do this in regex

how to add 'host_name' extension for SNI in java (using jetty)

i am trying in every way to add the SNI to my client (jetty 11.0.9). The server requires me to send host_name, but there is no way with jetty. can anyone do it?

upload image using react react and nodejs

i am trying to upload image path in mysql database and show it in homescreen .currently i am having difficulty in storing image path in my sql database and imag