Latest Questions

Can I find out the version function/classes were added from a tagged GitHub repo for PHPDoc @since

I am looking to add PHPDoc comments to my project, I previously have various versions before PHPDoc was used, these are tagged releases in GitHub. Is there a me

vsCode dependencies bug with nestJs

my vsCode bug to recognize dependencies when i program with nestJs, after setting up the project with: nest new projectname then after running for example: npm

OpenIddict, after restarting auth server the tokens are invalidated

I have the following set up: Authorization server (.NET 6 with MVC, port 7000), Client (.NET 6 with MVC, port 7001), Resource Server (.NET 6 API, port 7002). Au

Is it possible to do a list comprehension of a list of dictionaries? [duplicate]

If anyone knows how to do a list comprehension of this, please do let me know!~ Right now I am trying to extract only the IDs into a list. The

Youtube value doesn't effect to conditional branch, but only if I hot reload the page

I wanted to try change text color depends on youtubeController.value.position,but only if I hot reload the page. Why? Can you guide me please? Also, youtubeCont

Problem with variables using a namespace at C++

I am trying to write a relativity big code. The main problem, for awhile, is that there is a problem occurring when I define a dictionary. I have a .hh file nam

Understanding bitwise NOT in python

I was trying to understand bitwise NOT in python. I tried following: print('{:b}'.format(~ 0b0101)) print(~ 0b0101) The output is -110 -6 I tried to understa

How to mark the icons according to the GPS coordinates on the map-captured image?

Capture a map, create an image, and display it on the screen. The image has a start point and an end point. Rotate the image so that the starting point is alway

TGPUObjectsPool memory leak on shutdown in Delphi 11.1 FMX

Running 11.1, I get this TGPUObjectsPool error on shutting down a simple basic FMX 2D app under Windows 64-bit (Release mode). First time I have seen this error

convert cv::mat to IplImage

Mat m = Mat(4, 4, CV_8UC3); IplImage * iplImage = cvIplImage(m); error: cannot convert ‘_IplImage’ to ‘IplImage*’ {aka ‘_IplImage

How do I make my setfunction run through my if loop?

I am working on a program and I need to make a class about cars. I need to add setFunctions that only allow a car year manufacture of 1930 -2030 as input, anyth

Facing problem while deploying my site in firebase

While deploying my site in firebase they show me i have completed deploying but don't show me anything in the page. Why this happen?

How to make a Generic Type Serializable API Model?

When i using Retrofit2, I wanna to trying to convert JSON to Object in Kotlin. I have no idea how to generate it to an Object. My Api Response Json [ {

Open3D scene renderer render_to_image returns black screen

I am trying to render a scene that simply contains a mesh of obj file and the material file. It looks okay when I try to view with o3d.visualization.draw([{

Converting .ova file to .vdi

I had installed mininet-wifi on virtual box via .ova file. Its operating system was lubuntu. As a result of moving and deleting, the .vdi file in the mininet-wi

How to convert PPM image file to JPG or PNG using Python? [duplicate]

I have made a script which makes a valid ppm file which when opened using a ppm viewer is working properly. But I don't want my users to insta

How to use standard input redirection to a file while debugging using cppdbg in Visual Studio Code

{ "version": "0.2.0", "configurations": [ { "name": "Run GDB", "type": "cppdbg", "request": "launch",

sum of a int in a list excluding the " " python

I have a list like this lst = [12, 0, 13, ' ', 8, ' ', 13, 4, 4, 3, ' ', 0, ' ', 19, 0, 23, 8, ' ', 20, 15, ' ', 19, 14, ' ', 20, 1, 20, 3] and what I am looki

How to test a class with token using IConfiguration

I use Xunit in the .Net framework. This class is GenerateJWT that has a parameter is User type (Object) which needs to be tested, I want to mock the IConfigurat

How do I make part of a regex match optional?

This is an example string: 123456#p654321 Currently, I am using this match to capture 123456 and 654321 in to two different groups: ([0-9].*)#p([0-9].*) B

How do I develop an auto-staker for an NFT game with solidity?

I'm relatively new to solidity development and coding in general, but I'd really like to try and write a program that stakes and un-stakes an NFT after 24 hours

Submit slurm job script in sub-folders

I have multi sub-folders (say 1,2,3....) inside a parent folder (say A,B,C....). Each script contains ".sh" file and associated loading files. What would be the

I'm trying to create custom column in google sheets with query funcion

I'm trying to create custom column in google sheets with query function. for instance (in order to be simple) - I have this data. and the result should look li

LIQUID: How to hide an accordion if there is no content for it in the LIQUID file?

Code below does create accordion in Shopify product pages. I'm looking for a way to hide accordion if it has no content to display. Each accordion is an unique

I'm on a project trying to create a leap year generator. Every year works besides the years with the last two digits being 16 or 20

Any time I type the years that end with 16 or 20, example: 2016 or 3020, it just ends. The code I am using is below, any help would be much appreciated. Thank y

How to set onEachSide at controller level on laravel?

How to set onEachSide at controller level on laravel? on blade we use: {{ $records->onEachSide(2)->links() }} How this can be done at controller level?

Replaykit - Recording not starting Error- 5803

I want to start recording in my App, I am using ReplayKit func startRecordn(){ recorder.startRecording{ [unowned self] (error) in //2

Auth0 on-premise or private server deployment

I am looking for Auth0 deployment in a private servers and I haven't come across any such deployment options so far. Is Auth0 deployable in private on-premise s

How to update the DTOSteps node values based on the logic in xpr using dataweave 2.0

In my case, I have two payloads: domDRC and domPayload (2nd payload). I have to iterate over the layer (child node) and update the DTOStep value of DTOCoverage

Not able to display fetched data on page, React JS

I am unable to display fetched data on page. Here I am using ReactJS for frontend and NodeJS for backend. To store data I am using blockchain (hyperledger fabri