Latest Questions

How to generate user specific instances of an exam object with unique questions

I'm creating an online examination system where I have an exam with a list of questions and need to generate a unique instance/record for each user taking the e

YAML stage dependsOn other stage but skipped

Stage is getting skipped eventhough all dependencies seems conditions are present. Here are rquirements for a pipeline: stage 'NextTest' should be run after sta

How to deal with mysqli problems? mysqli_fetch_array(): Argument #1 must be of type mysqli_result

In my local/development environment, the MySQLi query is performing OK. However, when I upload it on my web host environment, I get this error: Fatal error: Ca

In AWS cloud Spark cluster sometimes craches with java.net.ConnectException on checkpoin()

Failure happens quite rarely, and on different tasks but everything is connected with the checkpoint() call. hdfs is used for checkpointing perhaps the problem

Url.Action not able to match a route

in my Mvc controller I have the following action with a defined route [HttpGet] [Route("OrderLineSchedule/{salesOrderId}/{webOrderId}/{orderLineNumber}")]

AntD React InputNumber Increase/Decrease buttons appear to start infinite loop

I am experiencing some unusual behaviour with AntD InputNumber component, specifically using the up/down incrementation buttons: I have a very basic implementa

apply ResNet on CIFAR10 after resizing (pyTorch)

Given a pre-trained ResNet152, in trying to calculate predictions bench-marks using some common datasets (using PyTorch), and the first RGB dataset that came to

OCPP python server issue

I successfully tested the OCPP server by mobility house integrated with aiohttp API in local network. But now I am deploying the websocket server integrated wit

How to use if let statement with conditions?

I know it's possible to express AND logic between if let statement and a condition like this if let (Some(a), true) = (b, c == d) { // do something } But w

XML and XSD mistake

i need help to solve my error with this code of XML and XSD, please if u can check it and tell me a solution of why it doesn't works am gona be your slave this

wkhtmltopdf-django dynamic template to render

Is there any way to generate a PDF dynamically, with content being fetched from the database? My goal is to allow my users to generate their own PDF design from

Best way to call and access powershell script in ASP.NET Core project

I have a PowerShell script which I have to call in an ASP.NET Core Web API solution. What is the best way to use the PowerShell script in an ASP.NET Cre Web API

Tesseract doesn't recognize number

I'm deskewing an image containing a number using Projection profile based skew estimation algorithm and extracting it through OCR. In order to calculate the cor

Is there a way to save the rendered node locations obtained by the layout algorithm?

When I open the saved HTML network file, it takes quite some time to load my network of a few thousand nodes. Would it be possible to save the node locations to

Is it possible to run SCSS and Bootstrap, without using VSC extensions?

I have a working setup, with sass and parcel bundler installed through npm. Problem is - every time I add Bootstrap, either by installing through npm or downloa

Laravel . How to Get the start_date end_date of month, week or day of closed_at date in a filter

How to Get the start_date end_date of month, week or day of closed_at date in a filter. i want to fetch start_date an end_date of closed_at The two dates specif

how to add values from a function to a list

This is a sample database from a function can someone help me to send the output of function to list as shown in the screenshot [this function "getDistrict_Na

Is it bad to create orderers in the same organizations with peers in hyperledger fabric?

In most examples I noticed that a separate organization is created for the orderers. I was wondering if putting them in the same organization as peers is some k

Error in production after upgrading to react 18

I am trying to update dependencies in this Next JS Starter https://github.com/timlrx/tailwind-nextjs-starter-blog After upgrading react and react-dom to 18.0.0

How to fill all fields using puppeteer?

I use page.type to fill a field using puppeteer. If you have a multiple selector, then it will fill the first found field. My goal is to fill all inputs that ma

How to get dropdownlistFor selected value in controller in form of string in MVC

enter image description here Instead of "A+" i need that value which is selected by user from dropdown list.

Why don't some browser engines let me have 100.1px?

Why do some browser engines not calculate fractional pixels precisely? Based on what logic these final values (.094, .188, .297 etc) are calculated? Is there an

SQL Server: UPDATE based on whether a value is greater or lesser than another value, in a single query

I'm looking to update SQL Server in a single query based on a date, however the value updated depends on whether it is greater or lower than a provided value (i

Is this possible to send FCM push Notification through backend server to flutter for scheduled the notification or this can be possible in flutter app

I am using firebase cloud messaging push notification service to send notifications in a flutter, but I want to send notifications. I am using FCM as a push not

Get seconds between next day with time

I am trying to get the Duration until the next time, depending on a Day of Week in Java. I want to be able to schedule a Java task for the next day in a list, a

Typscript Error on Class Constructor - No index signature with a parameter of type 'string' was found on type 'BarberModel'

I have a class constructor and I want populate it with an object that I receive in constructor. But I don't know how to solve this TS error on line this[key] =

I ned a while loop statment that makes the calculations loop and ask again

im not too sure how you add a loop statement to this. I want it to be a while loop that makes it do that the calculations repeat after finishing. I've tried but

Somehow an error is not being picked up by try... except

I am using a try... except loop to deal with opening a file that is updated throughout the day. Every now and then it would throw an error "pickle data is trunc