Latest Questions

How do I hide API key in create-react-app?

I made a weather app in create-react-app. How do I hide the API key so that I can commit to GitHub? Right now the key is in App.js: const API_KEY = "123456";

how to List all chart dependency names from Chart.yaml in NOTES.txt

I am currently trying to get all the charts I included in my Chart.yaml file where am using a common chart multiple times with different aliases so I can reuse

Responsive Tailwind css by Updating Root Font Size (thus rem) Based on @media Query?

I've been working with tailwind in my Vue project and overall its really good, but its a bit annoying to always write sm:w-10 lg:w-10 2xl:w-30 (etc) for all of

Why does wordpress replace my custom child-theme files with old versions of themselves?

It's like the system is messing with me deliberately. Twice this has happened now: I make some edit to my own custom child-theme using the theme file editor in

Suggestion on NavMesh 2D generation at runtime with infinite procedural generation [duplicate]

Let me start off by saying I began my jounrey of programming within the last year and Unity about the same time. I have come a long way since

how i render only 5 first element from map react?

I want print some elements(3-6 elements) from json. I'm using map to print element, but if i use them i print all of element from json and my div is duplicated.

How to define the difference between id's nodes of graph?

I have a graph g n = 8 m <- t(matrix(c( 0,0,0,0,0,0,0,8, 3,0,0,0,0,0,0,0, 5,0,0,5,1,0,0,0, 0,0,6,0,0,7,1,0, 0,6,2,0,0,0,0,0, 0,0,0,0,0,0,0,0, 7,4,0,0,8,0,0,3

How to scrape Trusted Shops?

I would appreciate your help on this scraping problem. I would like to scrape this site: https://www.trustedshops.de/bewertung/info_XDAD39B874C275A0751198C2510C

Passing model object as an argument with Flutter GetX

I need a model object on two screens. I have 2 questions: Is passing a model object (from one screen to another) required if we are using GetX? If yes, how do

Iterate through pandas dataframe, select row by condition, when condition true, select a number of other rows, only containing unique values

I have a large (1M+) dataframe, something like Column A Column B Column C 0 'Aa' 'Ba' 14 1 'Ab' 'Bc' 24

Subtraction of two nullptr values guaranteed to be zero?

Is it guaranteed by the C++ standard that if I have two pointers of the same type whose value is equal to nullptr, that the difference between those pointers is

Facing issue while joining a org to the existing channel in hyperledger fabric

We are using Fabric v2.2. Our network setup has 5 channels. Org1 is a part of all the channels. Other than that each channel has 2 individual orgs. So totally 3

How do I update/reload beans server side after ajax events?

I'm trying to set up a Timeline (primefaces element), to display an agenda. Each line is a colleague, with an object "Identite" I created. Each event is an obje

Subtraction of two nullptr values guaranteed to be zero?

Is it guaranteed by the C++ standard that if I have two pointers of the same type whose value is equal to nullptr, that the difference between those pointers is

How to set background color from parameter in jasper report designer

I am using jasper report for designing report. I have a report where there is a static text. I want to set the background color of it by parameter value. In the

Debugging undefined is not an object (evaluating 'Object.keys(routeConfigs)')

I'm using Expo and React Native to create a simple iOS app. I am currently getting this error and have no idea how to fix it. I've tried various other solutions

/Main.java:17: error: non-static variable this cannot be referenced from a static context ^ 1 error [duplicate]

In this simple code can anyone explain me what's wrong ? public class Main { public class UserValidator { public void validateName(String

Python docstring convention for private properties

Is it necessary to write a docstring for private properties? https://peps.python.org/pep-0008/ says that "Docstrings are not necessary for non-public methods, b

Special characters in About section on a Microsoft Teams app

I'm creating an app for Microsoft Teams from App studio. In the Developer name there is a special character. Does anyone have the same issue? I tried escape cha

How to add collation in indexes for mongodb?

I work with Mongoengine in Django, got task to sort by first_name, last_name fields ignoring case and leading whitespaces that is why add collation in queryset:

I have been trying to add a chat sdk to my project

I added the cometchat sdk to my project but each time i try to run my app i get the following errors org.gradle.api.internal.artifacts.ivyservice.DefaultLenient

Xamarin Send data via Nfc in IOS is possible?

I can't understand if is possible to create an app that simulate an Nfc card on your IOS device. (Send data to nfc reader like a Pos) In Android is possible and

Broken project in XCODE objective c

Hi, Does someone have a clue what is the reason for this broken project in xcode 13.3.1 The tab with the project settings, properties is empty!!! Check the scr

How do I set the default c# file in my Visual Studio Code c# Project?

I am new to using Visual Studio Code. I have always used Visual Studio IDE in Windows. I am trying to run a simple Hello World Program on Mac with VS Code. I ra

Algolia optionalFilters acts like filters on virtual index

I have my index and virtual index, on my index query like: { "facetFilters": [["objectID:12345", "tag:Luxury","tag:Makeup"]], // 12345 or luxury or makeup "op

Accessing browser dev tools and capturing network traffic using Watir

Have a requirement to capture network traffic from the browser while running automation test cases. Came across below post but not sure if it has been included

Discord.py bot not sending messages in a discord server but sends messages in DM's

I have a discord.py bot that when the command is sent through DM, it works. When the command is ran through a server, nothing happens. There is no errors or tra

'bytes' object has no attribute 'condition'

I am trying to stream my Rpi (zero) camera (v2.0) to HTML using cv2.VideoCapture. However, I am facing a lot of errors and I'm currently stuck on this one as th

Can't create an mysqlpump equivalent to mysqldump --all-databases

I want to create logical backups of my mysql instance. The instance contains a couple of databases and a few users. I want to backup all of them without explici

In Java how to synchronize cache read and write operations

I am working on implementing a simple cache using ArrayList in my application. I would like to synchronize cache update operations, while updating the cache I s