Latest Questions

How to display auth errors with p tag

how to display to user an auth error differently than with alert? For example: User will type a bad password, and a p tag will tell him, that he typed uncorrect

How to use recursion to sum up a list of numbers up until a certain index

I have to write a code that makes use of recursion to sum numbers in a list up until the index is equal to a pre-determined integer value. i.e. list = [1,4,8,

Using JQ to filter the keys that have a boolean equal to true

I have this JSON file: { "books":{ "book-name-1":{ "path":"management/business", "availability": true, "vars":{

(Pandas, Python) Selecting indices of a parent DF based on shared column values with a child DF

(I recently asked this question on r/learnpython (here), but didn't get any feedback, so am re-posting it verbatim here. Hope that is okay!) Suppose I have a D

How to programatically determine Android device setup timestamp

I am trying to figure out if there is a way to programmatically determine the timestamp of when an Android device was setup, just like how it can be found in Fi

React Modal on deletion of a row in React-Bootstrap-Table-next

I have been trying to implement a modal that will pop up to confirm deletion before a record is deleted in my bootstrap table. I have tried different methods bu

KSQL Rest INSERT not inserting

I have created a KSQL table with the following command: ksql> CREATE TABLE CUSTTABLE (id INT PRIMARY KEY, name VARCHAR, purchase VARCHAR) WITH (KAFKA_TOPIC =

Getting bytes written to SQL database for integer column, want integer to be written

I am writing data from a dash app to a SQL database setup by Django and then reading back the table in a callback. I have a column that the value should either

SDK location not found. CircleCi

I am attempting to deploy a React Native Android application using CircleCI. Here is the job android_deploy_staging: docker: - image: cimg/android:20

How do I center of this whole div class? Same with hovering

I was trying to center these div class using margin but when Im looking at the mobile view, its overlapping. I wanted to do to make it responsive by itself

variable pivot data range (i.e no. of rows and columns gets change)

iam gettin an error while running below code, i want to apply pivot table to dynamic data range ( data gets change everytime i.e rows and columns) i want macro

Google Maps clustering feature for polygons

I want to use same feature which is used for markers on GoogleMap with clustering if you zoom out too much on map. But I want to use this for custom drawn polyg

Python rank: give negative rank to negative numbers

I have a basic set of data like: ID Value A 0.1 B 0.2 C -0.1 D -0.01 E 0.15 If we use data.rank() we get the result: ID Value A 3 B 5 C 1 D 2 E 4 Bu

Angular Font Awesome Icons not Rendering (tried other suggestions on site)

I am attempting to add a delete icon to my Angular task list project. I have used ng add @fortawesome/angular-fontawesome. I then used npm install later when t

Milvus 1.1.1 only continues to query, memory usage continues to grow, from 4g to 20GB, what might be the cause?

My dataset: 1M 768d Index: ivf_pq,nlist=4096,m=12 Operation: Only search, without insert and delete

Dynamically add a bookmark on PDF.js Express Viewer

In my web application, I'm using the PDF.js Express Viewer library to preview a PDF file. Despite having read the documentation and made numerous attempts, I am

angular universal + @angular/flex-layout cannot work well on first rendering

I am on a ssr project with angular universal , and use flex-layout to handle media css issuses. I found this issuse , and imported FlexLayoutServerModule into

Field value not persisted after import

Model.py class Order(models.Model): customerID = models.CharField(max_length=300, blank=True, null=True) osm_bol = models.CharField(max_length=300, bla

How to use AFrame Inspector tool with 8th wall

I'm currently using 8th Wall paid plan to develop some scenes for mobile web AR. In their docs, they mention running the A-Frame Inspector tool: 8th Wall Docs-

Filter column list based on another column in Python

In Python, I have a dataset like this below, where column1 and column2 are objects and not strings: data = {'id': ['first_value', 'first_value', 'second_value'

ARP sniffer and packet interception

i want to sniff arp replays to be more specific i want to intercept arp packet and retrieve ip addresses using libtins im not quite sure with the filter i put "

Cannot be Compressed because it includes characters that cannot be used, but I don't have any files with special characters

So I'm trying to compress some documents I made when I get the following error message: I have no idea what the character is, as it just looks like a blank spa

How to get the i-th element of vector

I want to get the i-th element of the void*. I understand that it is void type and I have to give it a certain data type. The idea behind this is that it should

React App: Cannot find module 'react-dom/client' or its corresponding type declarations

I'm currently experiencing this error and I'm not really sure how to fix it. I've been trying to merge a project with components stored in bit.dev. import React

Fixed effect instrumental variable (IV) regression with available diagnostic tests

May I please know an R package and code to run fixed effect instrumental variable (IV) regression with available diagnostic tests (e.g., weak instrument test, e

How can I create a dynamic sum of the % for the rows in a matrix visual?

It's my first time using this website, and I am a newbie with PowerBi, so apologies in advance if the question isn't clear. This is a quickly reproduced scenari

React - How to avoid object getting same key? - Todo

I'm working on a todo app. The problem is: when I add two todos for example, first one gets id 0 and the other one gets id 1 (this is from todo.length), if I re

How is Windows Authentication Wired Up?

I'm in the process of creating an ASPNET Core 6 MVC app in VS 2022 which will eventually be deployed in a Docker container. Windows Authentication will be used

loops in my smart contract that I cant find

I'm testing my contract and I got the following error: Gas costs: Gas requirement of function vjkNFT.safeMint is infinite: If the gas requirement of a function

GCP OPS agent transfer nginx log to cloud logging problem

I followed this link steps to configure nginx.conf and the config.yaml of google-cloud-ops-agent. https://cloud.google.com/stackdriver/docs/solutions/agents/ops