Latest Questions

Automatic call Picker android kotlin

How can I create an app that can take incoming calls automatically in kotlin android 10 and above anybody I have tried using the BroadcastReceiver() class but i

Is there a Raku method that allows a hash value to be sorted and split from its pair?

I am currently trying to use hashes in an array to find the keys and values of each specific item in the array. I am able to do this and both the keys and the v

How to set up a Scrapy proxy with authorization?

My middlewares settings: from w3lib.http import basic_auth_header class CustomProxyMiddleware(object): def process_request(self, request, spider):

Mixing functions and const/let inside conditional statements cause ReferenceError in Safari

We have something like this if(true) { const a = 1; function myFunc() { alert(a); } myFunc(); } In Safari 11 this cause "ReferenceErro

Boto 3 filter_log_events returns null but describe_log_streams gives correct values

I am trying to retrieve cloud watch logs from log group /frontend/lambda/FEservice. The logs are stored in multiple stream with pattern YYYY/MM/DD/[$LATEST]* Ex

Want SQL statement to return all columns

Write a SELECT statement that returns the LastName, FirstName, and AnnualSalary columns of each instructor that has a unique annual salary. In other words, don

How to fix backend link Application error?

How To Fix This Problem? Application error? An error occurred in the application and your page could not be served. If you are the application owner, check your

Add PHP to page.php in WordPress via a plugin

I am trying to add the below code to a page.php file but call it from a custom plugin. At the moment, I have modified the theme's page.php but want to move cust

Which factor does affect AppStore ranking more?

I want to know about the factor which affects more to AppStore ranking, User Ratings OR User Reviews

Adding headers to response in an angular application

Is there any way to add headers to the http response in an angular application if the calls are made to fetch details from local json files? Version: 8 and abov

why can't i use useState in react

When I want to use useState, one of the hooks structures, in react, he gets angry with me const [apple, setApple] = useState(false). I have never encountered su

How to determine between inner and outer contour with Python OpenCV?

I want to have a polygon region of interest and would like to perform an object detection algorithm within this area. For example, the user gives some points an

React Native Expo crashed after build

My app completely 100% working on Expo Go.It didn't working after build to getting apk file and implemented on my phone.StartScreen working so well.Then navigat

inheritance TypeError: __init__() takes from 1 to 2 positional arguments but 8 were given

I am trying to follow an example related to inheritance from a Python OOP book. However, I am facing an error. from __future__ import annotations class Contact

Character is jittering after adding falling function

Let me just preface my question by saying I'm quite new to unity and programming as a whole. However I've been experimenting with some movement and after adding

is there a way to reduce reduce the number of for loops and use numpy functions to reduce time for code completion

Passing a function with parameters arr(array), risk_matrix(square matrix),risk_factor(float value) def infection(arr,risk_matrix,risk_factor): arr=arr*risk_

I get an error undefined reading push in React

This is my code. I'm having an error undefined reading push. I want to pass City to another component. const onInputCityChangeHandler = (e) => { s

Jest done callback is not assignable to parameter of type ProvidesCallback or undefined

I am trying to create a test with jest and I want to use done() callback but Typescript is not accepting it, I tried to use type any, jest.DoneCallback or leavi

How to test an Angular method which calls service and gets values?

I am trying to test this method, I have tried spying but the coverage shows not covered. Basically what this method does is, it checks if there is data availabl

remove unsubscribed subscriptions

Laravel6 lighthouse-php5 I'm using lighthouse-php for GraphQL Subscription and I receive the message from pusher. So I have the question of Subscription unsubsc

Delete ALL Regex Matched Line

this is my file: remark goes here MASS Pd 0.000 0.000 ATTN, need revision ns 14.010 0.530 same as n BOND Pd-cl

Chrome browser can not read source map its from Express socket.io

My problem is : DevTools failed to load source map: Could not load content for chrome-extension://flijfnhifgdcbhglkneplegafminjnhn/content/socket.io.js.map: Sys

Group by id and create a column based on priority in Pyspark

Can someone help me with the below. I have an input dataframe. ID process_type STP_stagewise 1 loan_creation Manual 1 loan creation NSTP 1 reimbursement STP 2

How to get Count of OneToMany field in JPA Enity?

How can we get the count of OneToMany field of JPA entity as querying count for each parent entity while fetching as a list is costly and there is no way in JPA

AWS Amplify: How can I sync data between each devices without stored in DynamoDB?

As the title suggested, we know when DataStore.save() performed, data would be transfer to the DynamoDB and already to sync to every client. So, the data will b

command 'scala' not found after set up by coursier

I use coursier to set up the environment of Scala using command ./cs setup in Ubuntu 20.04 LTS. It was said that all the requirements were installed. However, w

Connecting Edge / Chrome to VBA

I have a code in VBA that I've always used to open Internet Explorer, copy the information on an specific website and than paste in a cell. The issue now is tha

How to get the number of currently active users instead of the 30 minutes count in GA4?

I've recently added a Google Analytics GA4 tag to a website for the purpose of counting the currently active users. Before, I could see the number of real-time

tensorflow crashes on Mac M1

I am trying to start using tensorflow on my M1 Mac. However, I only get the following message when I try to import tensorflow Python 3.8.5 (v3.8.5:580fbb018f, J