Latest Questions

google_mobile_ads occurs an error when banner widget displayed | flutter

I'm trying to display banner ad in my app on Android. But an error occurs when AdWidget() called. throw FlutterError.fromParts(<DiagnosticsNode>[

why does quit() not work on Python Embeddable for Windows?

Normally when one want to exit an interactive session in Python, one can use exit() or quit(), but that does not work on Windows embeddable Python, why? specif

Slicing string character correctly in C++

I'd like to count number 1 in my input, for example,111 (1+1+1) must return 3and 101must return 2 (1+1) To achieve this,I developed sample code as follows. #inc

Dynamic accordion for lists in angular using bootstrap accordion

I have written the code for dynamic accordions it showing the design correctly but functionalies(hide/show) are not working. Below i have shared the code please

Spring Statemachine: how to handle two transitions that has the same source state?

How does Spring Statemachine handle two transitions that has the same source state? For example: Source State: ready Event: start One transition will be lead to

Pandas matching and replace value with regex

I'm triyng to use df.Content.replace(r'^Quote.*\n+$', '', regex=True, inplace=True) to match and replace the first part ot the string, starting with "Quote" and

Excel add-ins in Python

Is there any way I can make Excel add-ins/extensions using Python? I have tried javascript but haven't found any result about making add-ins on python.

How to run a custom element's constructor after it has all of its required attributes?

I'm trying to create a custom element "color-box" that will need an attribute named "color" to identify the box's color. So for example, <color-box color="gr

Redux query returning undefined

I'm having this problem with redux where I run one api service and the response is received fine. However after I add another reducer path reducer:{ [cryptoApi.

Dahua-API: can not obtain event alarm relay-out

Hello I am working with a dahua camera and trying to activate by API an event alarm relay-out (AO1-AO2) and I don't know any way on how to activate it. I have e

How to parse output of bash script in CLI

I'm running following bash script #!/bin/bash echo Running RatiosUITests xcodebuild \ test \ -project Ratios.xcodeproj \ -scheme RatiosUITests \ -destinati

Calculating Percentage Difference

I am looking to perform a query that will calculate the product revenue percentage difference from 2019 to 2020 for each state. Can anyone lead me in the right

Tesseract unable to recognize numbers from a simple image

This is the image and I'm trying to extract "3158" And this is the code import cv2 import tesseract img = cv2.imread('cropped.png') convert_to_string = p

How to plot the significant Tukey results as red

I have used the following code to plot the results of the Tukey test after my Anova analysis in R. TukeyHSD(myANOVA, conf.level=.90) TUKEY <- TukeyHSD(myANOV

How to Web quary into cell Excel

I have a website where i want to take some info and put into a cell, is this possible? I want to get the 2 fields marked with arrows 1 and 2 into 1 cell with a

Common functions are not executed in Nuxt.js store

Assumption I wanted to use inject in Nuxt.js to share the same process, and I wanted to use it in Vuex, so I tried to use it in store, but it would not run. How

method to add objects to ArrayList using user input

Can't take my head around the following: There are 2 classes - "Item", where attributes (Name, Price) and constructors are set, and main "Store". In the last o

GET Method failing on Node.js Express backend application

I am trying to create a backend application using Node.js and Express to get post and modify user data from a .json file. Here is my app.js file: const express

Want to create own npm command to install pre templates

I am trying to create npm package for a pre-generated template but I am unable to find to way to do it like npm create-react-app my-app by giving app name a pre

adding global stylesheet gatsby

I created a gastby site using their doc and would like to add some global style (without a layout component) as per this doc. I'd like to add this to my current

How can i change Rdd to Vectors.dense pyspark

Im new to pyspark I need to change my rdd : tfidf.collect() output: [('fuel', 0.06190145817054232), ('months', 0.03095072908527116), ('lasting', 0.03095072908

Python - download entire directory from Google Cloud Storage

At the following page https://googlecloudplatform.github.io/google-cloud-python/latest/storage/blobs.html there are all the API calls which can be used for Py

Accessing an element in struct holding a pointer to a matrix array

I am trying to access an element using temp_param->mat_ptr[0][0] but it produces an error Format specifies type 'int' but the argument has type 'int *'. What

Excel VBA Date Save - run time error 75 path/file access error

im getting the following error message when i run this code that lets me make folders if they don't exist to save files in them: "run time error 75 path/file ac

up dating linker ld on Mac

I am trying to compile an example pytroch c++ project using instructions at: https://pytorch.org/cppdocs/installing.html When i reach the point of calling: cmak

Is it normal to lose 30 minutes of data on a SQL Server crash?

We have worked with Oracle for a number of years and we now need to develop a new application using SQL Server in AWS for the first time. What surprised us, is

Rspec - Undefined method 'allow'

I am trying to stub the env variable to access Rails.env.production? context 'Rails environment is production' do it 'returns the correct api production servi

how can i filter my model to get user answer for a current question

I have two models the Answer model and the Question model. when user post the question i want another user to be able to post an answer in the current question

kubeflow - what is kubeffow manifest and what uses it to generate what instances?

There is a github Kubeflow Manifests but it does not explain what it is about. In Kubernetes, manifest YAML defines pod, deployment, etc. What is kubeflow manif

Is there any way to reference floats as a glm::vec3

I have floats in a context float* floats = calloc(3, sizeof(float)); float& x = floats[0]; float& y = floats[1]; float& z = floats[2]; How do I ass