Latest Questions

Conditional statement without using if-else in python

So here is the question. There are 2 variables having values of 3 and 5 respectively. if the user enters 3, "5" should be printed and vice versa. implement the

Shiny app file upload is substantially slower on different machines

I have a shiny application that takes a file upload, calls a script that processes the uploaded file, and writes 4 csvs as output. The app works but as the titl

Trying to resolve Java issue when running Tabulizer in R

I am trying to extract tables from pdfs in R using tabulizer, and keep getting this error when I use extract_tables. Error in .jcall("RJavaTools", "Ljava/lang/O

error: Undefined name 'uploadTask'. Flutter error

I am integrating file uploading system in my flutter project using firebase. While making progress indicator I am getting undefined name 'uploadTask' error. In

How to fix error in db.create_all() in docker?

Trying to launch postgres and flask in docker. Postgres is working ok as i see. But flask is cancelling to work properly The head of log is here: Traceback (mo

Plotly layout Z-axes config

How to set height of Z axes in graph_object.layout I tried using zaxis: { showgrid: true, zeroline: true, linecolor: '#d7d7d7', linewidth: 1,

OpenMP can't parallelize for loop with map iterator

The code is as follows. int main() { map<int,int> a; for (int i = 0; i < 6; i++) { a.insert(make_pair(i, i+1)); } map&

How to handle different JSONs in Golang? [duplicate]

I am a novice developer and faced such a problem, I can receive a json which in some cases has different data, for example Example 1: { "order

Gem::Ext::BuildError: ERROR: Failed to build gem native extension - rbnacl-libsodium 1.0.16

I was trying bundle install and my gem file has gem 'rbnacl-libsodium' it took some time for installation and got failed. Using rbnacl 4.0.2 Fetching rbnacl-lib

How to get GPU Energy cost in XCode?

My unity game is getting very hot quickly, So I use XCode Energy Impact to test the energy use for it on iPhone8. In Debugging Gauges, Click Energy impact, I ca

How to animate content replacement in Android Bottom Sheet

I have a BottomSheetDialogFragment which contains two different layouts <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_pa

SIFT match computer vision

I need to determine the location of yogurts in the supermarket. Source photo looks like With template: I using SIFT to extract key points of template: img1 =

Need to set up diiferent java versions to run both android studio and bamboo

On the server I have 2 versions of java, 8 and 11. 11 is the default, it is needed for android studio to work. To run the bamboo agent, I need 8. How to choose

Writing Escape Characters in Plain Text with XML

I'm having an issue parsing some XML with C#. To give an example, I'm taking some XML that contains the following tag: <Message>Hello, my name is&#xA;

how to add a new item inside an object

react I have that problem. I cant add a new item inside an object const person = { name:"farhan", age:"25", address:"daka" }; person.push({professi

Maui RC1 - "System.NotSupportedException: Must call AddTerm AddSeparator in that order"

I installed the last update for Maui (https://github.com/dotnet/maui). When I add an image, it makes an error: "error MAUI0000: System.NotSupportedException: Mu

Appium Android driver is un installing for second time even full reset is false

Appium Android driver is un installing for second time even full reset is false. Below are cases i am attaching. ** First time installing as expected ** capabil

Want to run js in loop [closed]

var pause = document.querySelector(".pause1"); var audio = document.querySelector(".audio1"); function togglePlay() { if (audio.paused)

PHP Parse time Days/hours/minutes + round up to closest step

I Have system, where people ar tracking there spent time on project. After project is ending, I want to count there spent time + round up to closest step For no

Dynamic(with mouseover/coordinates) web scraping python unable to extract information

I'm trying to scrape the data that only appears on mouseover(selenium). It's a concert map and this is my entire code. I keep getting TypeError: 'ActionChains'

How do you spread a lot of requests over time in nodejs?

I'm working on a backend that has to request data from Moralis (web3), but how can I spread the requests in time so that I don't exceed the max requests each mi

BlobServiceClient object has no attribute `exists`

I have created an azure pipeline. Added a task to download the file from blobStorage. But I am getting the following error: ERROR: The command failed with an u

Klockwork Error with dependency (SqliteAgent)

Good afternoon, I am trying to add the klockwork plugin in QNX (eclipse based) which is using Java 1.6 version (It is needed this version). I have Klockwork ver

Use AWS CDK to trigger AWS Glue Worklfow from EventBridge

As mentioned in this link, it's not supported by Level 2 constructs. But, it's possible to use Level 1 Constructs to implement it. Can anyone show me how to do

How do i create a specific one many view using Microsoft SQL Server

I have a master table and a detail table. Question 1: I would like my view to look like this master1 row, nulls master1 row, detail1 row for master1 master1 row

Wildfly org.jboss.nio -> FileNotFoundException: Invalid file path with Windows Java JDK 11.0.15+10

Since the update to Eclipse Tamurin JDK 11.0.15+10 we notice a problem as soon a HTTP request reaches Wildfly 20.0.1.Final. The same behaviour exsists in Wildfl

Apache Tika: Convert Apache Tika server REST endpoints(Jax-Rs) http to https

We use Apache Tika to extract data from files(multiple formats). We call Tika server Rest endpoints internally from the .Net code to do the data extraction proc

Meta description is not showing on google results page - REACTJS

my meta description tag is not showing on google result page as well as favicon. my technology stack consist of - reactjs on frontend & entity framework on

Common object in two objects java

I am implementing one api and I have the following request bodies for 2 different endpoints: endpoint1: { "requests": [ { "id": "123" } ] }

Azure Cosmos DB Emulator slow (100 ms / request)

I am trying to set up the Azure Cosmos DB Emulator to work locally with integration tests but I found that it is very slow. I am reading a ~1KB JSON document wi