Latest Questions

Webpack + JS: Multiple outputs with one file

It it possible to make several outputs with one JS file, but different versions: The main JS file should include different settings or extras: Version 1: import

How to get physical address by ip. How some services find physical address by ip?

I cant understand how someone can find address by ip ? For example https://www.iplocation.net/ip-lookup i write some ip and site return all information about p

How to check if time overlaps in javascript

Hi i am working on Reactjs Application where user needs to select four time slots .Like slot1 starting time, slot2 starting time ,slot1 ending time ,slot2 endi

Alamofire: How to conditionally change cache policy based on network status?

The end result I would like to achieve is to use cached data when the network is unavailable and load data from the server when the network is available. The cl

javascript regex to match a combination of and/or expression

I want to match a combination of and/or expression and match only sentences in between for example test1 test2 and test2 or test4 test5 I want to get matches t

How to execute dart generated javascript from dart

I have this dart script that I compiled to javascript. How do I go about calling this javascript from dart? I'm trying to eventually call this from a web worker

how to get a row number in a column if a cell in another column has some data using google apps script?

i have a sheet that have 5 columns (date , id , name , number ,row number) and i want the fifth column(row number) to be auto filled with the row number when i

Take input from user and verify if it is present in an array. (Javascript)

How can I take input from the user and check if the number is present in my array or not. I need to generate random number from array1 and move it to array2. Th

Android Studio - Clickable CardViews inside Fragement

I am new to Android Studio, I have a "Settings Fragment" in which I have multiple CardViews (ID's: "account", "store", "bank", "Language", "User Interface", "su

Filtering out a foreignkey model out of a foreignkey model

Tryna filter all productimg objects of MainProduct but getting ValueError Cannot use QuerySet for "MainProduct": Use a QuerySet for "Product". but can't use slu

leaflet replay on map plot replay history of vehicle

my question is how to replay the hisotory of vehicle on leaflet map i have plot the polyline on map but maker is not poloting the marker should plot according t

Pipedream, getting trigger event data with sync function

i'm wondering hot to get pipedream to do an nodejs action, but i need to use the trigger event (HTTP POST) to get some info, the thing is that i cant wonder how

Problem with jQuery when using chrome extensions popup

There is a website and there is a button that has the disabled tag. I'm trying to write a popup extension where there is a button, by clicking on which this tag

Azure Function RabbitMq trigger stops receiving messages

I have Azure Function with RabbitMq trigger and it stops receiving any messages after certain time. The function is deployed in Azure. When I stop and then star

How to send data from a Python file to a GitHub pages html file to display

I want to start a project where you will input something in Python and it will appear on a GitHub pages html file. How would I do this? Would we be able to do t

Prevent NSTimer from firing when in sleep / PowerNap

How can I prevent a (slightly non-standard) NSTimer from firing on macOS, when the MacBook's lid is closed and the machines is supposed to be at sleep? Or more

How can I get the exact output? of the print f from a array using string? c programming language

I can't get the exact output I somehow get a text in a another language something like that, #include <stdio.h> #include <stdlib.h> int main() {

Can I extend components of this type - PaperTextInput.Icon or Tab.Navigator when using styled components?

I've been trying to extend components like PaperTextInput.Icon or Tab.Navigator but have been failing and I'm wondering how am I supposed to extend them? What I

Magento 2 - New custom URL for custom checkout page

I need to create new checkout page with new url and need to show my custom address fields in that custom checkout page. My way is : Create new custom checkout m

Recharts 100% width is not working in Nextjs / Reactjs. It is not occupying the entire width and also act like a block

I am using Recharts with Next.js and Tailwindcss, I copied a barchart code snippet in Recharts to create my own barchart too. I have to change the height to asp

Pycaret - whats is the parameter for custom grid of tune model

I was trying to set parameters for tune_model function's custom_grid tune_model(model, n_iter=50, custom_grid={'learning_rate':0.5}) and it will give me this e

How to get and console.log a variable value from a JavaScript function, running on a website?

I am trying to get a number on a website. but it is on a canvas. so I am looking to get that number from the javascript which is used to draw the canvas.

Watchdog fails to catch file modification while the file is opened by another program

I'm trying to use watchdog to monitor a specific log file of a program. However, on_modified is called only when that program initiates and closes, even though

TypeError: undefined is not an object (evaluating 'navigation.replace') in react native

I am using bottom tab navigator for my app in which I have used stack navigation for each tab. I have one notification icon on header on click of that I navigat

i can't change screen kivy

how can i change screen when i click to any button in my main screen for example in may program (bad 01: imene, bad 02: kamel, ...) to screen name "value_secree

Angular how to manage multiple canvas elements for images

I have a page with many images. the ngFor worked ok for image tags But I want canvas(es) I do not know how to manage "id" and getElementById , in a dynamic en

Android appcompat edittext input automatically changes to selected language text problem

Hi Every One I am facing rare problem in an android app currently I am working on. Whenever my app has changed to different language except from english.EditTex

how to align center list images

I need to align my li images in center. I have tried style="text-align: center;" in ul component. but it did not work. Thanks in advance. <link rel="styl

Error installing python 3.7.6 using pyenv on new macbook pro M1 in OS 12.3+

I am struggling to install python version 3.7.6 using pyenv on my new macbook pro M1 running on mac os 12.3.1. My configuration $ clang -v Apple clang version 1

Multiple micro service or console application that read from a single table

I need to read millions of records from a sqlserver table through a microservice that does block reads in parallel. each instantiated microservice performs the