Latest Questions

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

SQL Find Most Frequent Route

Departure Destination FlightCount A B 5 B A 4 A C 7 C A 1 I need to find the most frequent flight regardless of the flight directions from the above table. Fo

odom and base_link frames are far - localization

I have an imu and gps only and i want use them for localization. I am using robot_localization ekf node. its setting is similar to this. when I view the tf on r

React.js: How to render new message at the bottom?

Currently working on a 1:1 live chat messenger. when i send a message its shows up at the bottom of chat where i want it to, but upon page refresh it returns to

A null was returned after calling the 'GetService' method on a store provider instance of type 'MySql.Data.MySqlClient.MySqlClientFactory'

I recently upgraded my database to mySQL 8.0.28, mySQL .NET Connector 8.0.28 & Entity Framework 6.4.4. Now when making a DB call from code I am receiving th

Make nested SQL queries

I want to do a Nested query to add the same data but with different filters. I have tried something like this but that gives nothing or doesn't execute: Select

Get Azure B2C User Directory listing in Azure Function with MSAL.NET

We are currently getting a list of our Users using MS Graph and the directoryObjects/getByIds endpoint. In the Startup of the ASP NET Core API we are using Micr

How to update Brutto based off of VAT Netto and ilosc?

I want to update kwota brutto, wartosc netto and wartosc brutto based off of ilosc kwota netto and vat but it doesn't seem to work. I literally have no clue wha

VB.NET Search with TextBox and DataGridView

From TextBox I search in DataGridView based on (Id), (DateTimePichKer), (Text column), and 5 Columns that have numbers. When I search for 1 or more numbers, it

Truncate a long string in python - but only after specific character

I use textwrap to split a long string into chunks, limited to 280 characters each. I don't want the split to occur at random though; it should only occur after

Can var elements' be group together for styling on JavaScript?

I am trying to change the styling for my HTML elements without touching the HTML and CSS file. resultFirstName.style.fontWeight = "bold"; result