Latest Questions

Is it possible to use camera permission but block "Take video" option in a iOS App?

I'm working on a hybrid project that uses cordova for building both iOS and Android. My problem is with iOS uploads. There's an option for "uploading" photo, wh

In Rust, what happens if main function returns Err?

According to The Rust Reference, If a main function is present, (snip), and its return type must be one of the following: () Result<(), E> where E: Erro

What is the time complexity of suggested solution?

This is the solution for the following problem: Given two strings s and t of length N, find the maximum number of possible matching pairs in strings s and t aft

Seperate django admin login from normal user login

How can you separate the django admin login from normal user login Can it be done using djangos authentication model? If it cannot be done that way, how to do i

Typescript reduce return wrong Type and also forbid to assert it

Faced very strange ts behaviour. type Labels = Record<string, boolean | undefined> type LabelGroups = Record<string, Labels> export function reduc

MYSQL or Laravel Eloquent How To Count The Detail From This Order

[MYSQL QUERY / LARAVEL ELOQUENT QUESTION] Hi, I really need some help with MYSQL Query this 3 tables I have. The order table and the details it's a manually inp

org.testcontainers.dockerclient.DockerMachineClientProviderStrategy - docker-machine executable was not found

When I try to run test containers I get the following error. The docker machine not found in /root/.sdkman/candidates/gradle/current/bin, /usr/local/sbin, /usr

I can't solve the dependency tree every time i try to install @craco/craco

Unable to solve dependency tree trying to install tailwind. This is my package.json: { "name": "front-end", "version": "0.1.0", "private": true, "devDep

How To Find Out Where the Short URLs Point To with Javascript

I have created a short url, let say https://my.short.link/foo, that is pointing to https://my.other.website/bar. How can I retrieve this url with a javascript m

How to get "Total number of messages on the IoT Hub exceeded the allocated quota" message from Azure iot sdk c

I'm using Azure iot sdk c, sometimes my iothub service can reach to maximum quota, I can see connection error or backend can't get data, but not able to obvious

Django complete form as signed up user

After you sign up, you are prompted to a page that contains a form used for gathering additional information about the new user and after that it redirects you

Elasticsearch application latency investigation

We have an Elasticsearch setup w/ [data, master, client] nodes. Client receives only query traffic, pass query to data nodes, gets the response, sends back to c

is react-native-navigation works on react-native-web app?

I have react-native project and I am using react-native-navigation, now I want to give support for web, is react-native-navigation work on react native web?

Webpack error when building Nextjs app in AWS Amplify

My SSR Next 11 app fails to build in Amplify with this error: HookWebpackError: processor is not a function > Build error occurred Error: > Build failed b

login screen is showed but i want to show profile page with help of async storage

if(userLoggedin) { console.log(userLoggedin); navigation.replace('DrawerNavigationRoutes'); return ( <View> <Text> hello </Text> <

What is the function of this code in thumbnails: quot

What is the meaning of this code please? &quot;300:100&quot The code is in this line: <a expr:href='data:post.url'><img expr:alt='data:post.tit

How can I call a Powershell / Command Line Script using a BrowserAction in a FireFox WebExtension?

When the button is pressed, I want to get the URL from the current tab and pass it as an argument to the script. I know that I have to use browser.browserAction

Not able to Initialize Firebase APP inside script module in HTML

I am working on a minimal (proof of concept) project with Preact and Firebase. A single HTML file, bundler/transpiler free thanks to HTM as JSX replacement. Her

SERVER/CLIENT cannot send and recieve data on the same socket, server close server after first attempt

Hi im trying to create a backup function for my program, the idea is to copy and send all the files from one especific folder from my client to the server, the

what is the type of interval in SQL Server DATEADD() Function? [closed]

For example: SELECT DATEADD(month, 2, '2017/08/25') AS DateAdd; I think it would be more sense to define argument as a specificed data type s

Most efficient way to transform this data using Pandas?

I currently have several hundred .csv files in the format shown on the left below, and I need to transform them all into the format shown on the right. I tried

Loopback 4 - Is it possible to define id property's length?

Using LB4 + MySQL DB through loopback-connector-mysql to create tables on DB. A {id: string, name: string} id names 0007bc40-814b-11ec-8128-4df48bd1ae4d John 0

Connect RDS Instance in VPC-1 to EKS Cluster of VPC-2

I have 2 different VPC's in same Region and same AWS Account and let's say 1st VPC is VPC-1 2nd VPC is VPC-2 I have multiple RDS Databases in VPC-1 which have d

how can i change the gap of only element

i am creating something with css flexbox and use gap to give spacing between elements but now i want to change the spacing of only one element like .contain

Quick sort in function

Task: using the function of generating an array to a file, the function of reading an this array, and the quick sort function, sort the read array. I wrote all

Java Array Odd Sorting Algorythm

I got an algorithm to write that set order of an Arrey but in a specific way. Find the lowest number of an array Save it at the start of the new array. Mark in

error: Error: Unable to resolve module react-freeze

I was adding drawer navigation to my application and everything worked fine. But 4 days after I started receiving following error. error: Error: Unable to resol

How to remove "Waiting for the debugger to disconnect..." from VSCode console

When I run anything in the VSCode console it shows Debugger listening on ws://127.0.0.1:51890/cf1cb459-52b1-447f-8f78-aa5e8ff4caef For help, see: https://nodejs

how to enable Jetty debug log in 9.4.44 Logging initialized output (seen at INFO level)

I am using Jetty 9.4.44 and for jetty debug logs I have added jetty-logging.properties in classpath Setup logging implementation org.eclipse.jetty.util.log.cla

Flutter File Picker package is not working at all

I followed this tutorial online: https://www.youtube.com/watch?v=LlO5jydXws0 For some reason when I press the button to open a file, it does not work or do anyt