Latest Questions

Auto run tests in visual studio code

How do I run the tests automatically in visual studio code. My project has testing setup, and the settings JSON/UI has settings related to auto running tests, b

Mapbox 10.4 iOS: Changing opacity of raster layer with a slider

I have just updated from Mapbox 10.3 to Mapbox 10.4, and have an issue with changing the raster layer opacity on the fly. I have a slider to change the raster

Storing and using GUI objects with Tkinter

So I have a class that just creates a gui with a text box to type into. I would like to store multiple of these objects and their content that is entered by the

custom program error: 0xbbf on anchor framework solana

const connection = new anchor.web3.Connection("https://api.devnet.solana.com"); const provider = new anchor.Provider(connection, wallet, { preflight

How to create a table inside a table cell in reportlab

I am in a situation where I need to create a table inside the table cell, which is the description field in the data which will be a list itself. I need to make

React - Why is geolocation state undefined when accessing it from another function

I'm trying to get the latitude and the longitude from geoLocation and use it to fetch data from a weather api. The problem however is that as soon as I pass lat

Is it possible to increase horizontal and vertical padding on ffmpeg burned subtitles - using .srt format?

Using command : ffmpeg -i source_video_path.mp4 -vf "subtitles=srt_source.srt:force_style='OutlineColour=&H80000000,BorderStyle=4,BackColour=&H80000000,

.env file shows errors(red underlines) in vscode - it works fine though

I'm having this project structure: Although the file works correctly but it shows errors(red underlines) in VSCODE. Why does this happen and how can we solve t

How to destructure object props in Vue the way like you would do in React inside a setup?

I am wondering how to destructure an object prop without having to type data.title, data.keywords, data.image etc. I've tried spreading the object directly, but

how to prevent privilege escalation by changing HTTP response values?

i want to know how to mitigate privilege escalation by changing the response values, for example in response body: isAdmin=false change it to isAdmin=true and g

Why does webapp specific context in tomcat 10 no longer work?

My application (SimpleWebApp) needs some context parameters defined. I have a SimpleWebApp.xml context file with the following content: <Context>

aerender from C# console Application

I'm trying to render an Adobe After Effects composition from a C# Console Application but it's not working. It doesn't even give any error, the code executes sm

Unable to receive flash (Class 0) SMS on Modem

I am experiencing with AT commands using a sim800 modem (Dinstar), I am unable to get the response of the STK command after STK send short message. When using m

i want to scrape another class if first class is not found (n/a) in beautifulsoup, how to code this?

I'm scraping Indiegogo to see how many backers there are. However, because there are two different formats, it first scrapes the content for the first layout, b

python file to excutable file at any operating system

Now I created a python app using tkinter which it should be used in pc, but I am using windows, so I executed the .py file to .exe. My problem now is my program

Trouble running the 'sudo docker-compose up' command

Image of the error I am trying to run the 'sudo docker-compose up' command to start some services. Recently, I created some new services, but I keep getting the

Laravel form post data from placeholder value

I want to pass the data on a form placeholder without user input, want to know if that is possible... Below is my form in view @extends('layouts.app') @section

Freqtrade Python Sell Sign

I am trying to create a sales order using the Freqtrade bot when: The current price hits the entry price + ATR. I don't know how I can retrieve the entry price

Syntax highlighting in egui Rust

I'm writing a text editor in Rust using egui. I am trying to implement syntax highlighting, so I followed the example in the demo. It works there, so I thought

How to set default values for a query param with array type in .Net.Core with Swashbuckle by code

I am currently working with .NET Core 3.1 and Swashbuckle library. I have made several endpoints with requests decorated with attributes and proper swagger desc

downloadUrl give empty result

I have a function to upload some data to firebase like this private fun addDatatoFirebase(){ val addImage = StorageRef.child(preferences.getValue("username"

select more than 4000 characters in Report Oracle Apex

I have a function in Oracle 21 version that return a CLOB variable, let's call it x (more than 4000 bytes) and I'm selecting this variable to display it in a cl

Grid column template breaks when width < 500px

Everything works in landscape mode it outputs like this: value#1 value#2 value#3 But when screen width is < 500px it outputs like this: value#1 value#2

undefined method `map' for #<ActionController::Parameters Rails 6.0

Getting this error when trying to call the method validate_create_action. The error occurs on the line @element = klass.new(params[:element]

Beautiful Dnd is not working with react@18

I am trying to include beautiful dnd package in my project but i got error while installing the package. Please tell me if there is any other package like it or

Back end to Back end API request and response

I have an app built on laravel 8 with a Vue Spa front end, using Sanctum. I have a controller method that requests from another Laravel project (using its Sanct

how to use map append correctly with lists of list in Racket

i have this code : (: min&max-lists : (Listof (Listof Any)) -> (Listof Any)) (define (min&max-lists lst) (apply append (map (lambda

How to effectively run tasks parallelly in pyspark

I am working on writing a framework that basically does a data sanity check. I have a set of inputs like { "check_1": [ sql_query_1, sql_query_2 ], "check_2":

window.removeEventListener not working in Angular

I can't for the life of me find out, why the eventlistener isn't removed on the mouseup event. I have already tried a lot of different things, but I can't remov

How to connect to oracle cloud database from Qt5

Can someone help me with the connection to the Oracle Cloud from Qt. I can't find any information on the Qt website, nor examples, but surely someone has wanted