Latest Questions

How do you initialize reference type class properties in a nullable context in Unity?

As you are supposed to use the Start() or Awake() methods instead of the class constructors in Unity to initialize your class properties, VisualStudio complains

How to use 15 length character key in flutter encrypt package

I'm going to use this package for encryption in the flutter application. It doesn't accept keys lower than 16 characters long. But I want to use 15 characters k

How should I optimize the order by index

1.select * from transactions where from_account_id = 51118 order by block_number, index desc limit 20; Limit (cost=295.39..4973.89 rows=20 width=605) ->

How to Close Statements and Connection in This Method

How to Close Statements and Connection in This Method public static ResultSet getData (String query){ try { Connection con = ConnectionPro

How to disable scroll on body when clicking on a p-dropdown within it

I am using few p-dropdown in my table header where I also have a horizontal scroll for it's container. When I click on any of these dropdowns, instead of openin

Why am I getting .slice is not a function? [closed]

I know that .slice() can only work on arrays and strings. I'm calling .slice() on an array and I am still getting that error. Here is my code:

Fetching data in level 3 of self-referencing / parent-child relationship

I am programming a multilevel menu / submenu in ASP.NET MVC. I have this table: Id Name ParentId ---------------------------------- 1

How to dynamically change material ui icon depending on the backend response?

I have a table and in this table, there is a column named status, and in this column, three values are returned from the backend, which are "approve", "Review"

How to convert CMSampleBuffer to OpenCV's Mat instance in swift

I am working on an OpenCV project where I am taking input from iPhone native camera as CMSampleBuffer now I wanted to create Mat instance that is required in Op

Mongodb aggregate group by then conditional sum, or, filter, push, using c#

Can someone please help to convert this query to C# .NET core? db.getCollection("accout").aggregate().match({ $or: [{"clientnum1": "xxxx"},{ "clientnum2": ""}],

how to combine ADRESH and ADRESL on 12 bit ADC

MICRO: PIC18LF47K42 compiler: XC8 application: MPLABX Hi, im trying to combine the values in my 12 bit ADC. they go into ADRESH and ADRESL. my ADC is set up for

Visual Studio 2022 C++ standard libraries could not be found

I installed the visual studio 2022 community edition with a C++ Desktop development packageScreenshot of Visual Studio Installer. When a new console application

OpenAI Gym - Env.Render() function returning "Display surface quit"

A screenshot of my code with error I am following the tutorial seen at https://www.youtube.com/watch?v=7SVv07QXO5M&ab_channel=HackersRealm The exact code I

Spring boot mongodb QuerydslPredicateExecutor ClassNotFoundException: com.querydsl.mongodb.document.MongodbDocumentSerializer

I'm trying to use QuerydslPredicateExecutor. Here is my repository interface: public interface ProductsRepository extends MongoRepository<Product, String

Django hot reload only working on certain files

I have this weird issue where not all file edits are being picked up by the hot reloader for Django. I have this structure: / app/ ... apps in here. config/

set knockout.js value programatically from "outside"

I am brand new to knockout.js - I have taken over an existing app written in it, the previous maintainers having left - and I want to start by writing tests tha

Is there a way of comparing 2 variables in a grid like way instead of nested if statements?

I am dealing with a prisoners paradox type problem where there are multiple combinations (2x2 -> 4) and each has a different result. Is there a good way of l

CFG for L = {a^mb^nc^k: k = m×n}

Can we write CFG for this language? I searched multiple websites but I couldn't find any answers.

Is it possible to remove title underneath iOS home screen widget?

Many users ask me, can you remove title underneath the widget? But as per Apple's design guidelines, we can't keep the app name empty or remove the home screen

Trying to perform setcap from Qt program

I'm trying to perform setcap from Qt program this way: QProcess process; QString command = "cat"; QStringList args; args << _fileName; process.start(comm

How do I change this recursive approach to iterative approach?

This is a game function from pygame. If user press left (pygame.KEYDOWN.K_LEFT), angle -= 1. Else if user press right (pygame.KEYDOWN.K_RIGHT), angle += 1. 'Eve

Apple developer rejects my application in Test Flight

After pushing the application to test flight, I added a MobileTest Developer to check the app in test flight, but the application has been rejected in the Apple

How to import existing lambda from arn and add SQS as event source? Amplify

I'm trying to create an SNS topic that an SQS queue subscribes to which acts as an event source for a Lambda function. I'm trying to do this with the amplify cd

NumPy Slicing HackerRank

I have wrote a function named array_slice which gets four numbers n, n_dim, n_row, n_col from the user and performs array operations given below. Instructions:

After click view not display on screen if I set visibility to VISIBLE - Android

I got a view and in xml it is visible <LinearLayout android:id="@+id/container" android:layout_width="match_parent" android:layout_height="wrap_c

Error when set sameSite from strict or lax to none - HTTP only cookie - ExpressJS

I am running on a MERN stack project. Back-end runs on port 5000, and front-end runs on port 3000. After I've built to production, I pushed the server file to H

Issue with flexbox / gap in Bootstrap website under breadcrumbs

I got an issue with one of my pages based on Bootstrap which I do not really understand. We added recently breadcrumbs (also BS) for navigation, but on some pag

How to make agents wait for capacity to open up before moving?

I have each work cell set up as a Service with capacities set to 1 and delay times are based off of time studies from the floor. Currently, the agents wait for

strconv.ParseInt fails if number starts with 0

I'm currently having issues parsing some numbers starting with 0 in Go. fmt.Println(strconv.ParseInt("0491031", 0, 64)) 0 strconv.ParseInt: parsing "0491031":

R 4.2.0 doesn't start in RStudio (Windows 11)

R 4.2.0 does not start in RStudio. Attached is the screenshot. It says, "The R session process exited with code - 1073740791" R 4.2.0 starts normally outside RS