text string | meta dict |
|---|---|
Q: React-redux not fetching data from backend My code :
import React, { useEffect } from 'react'
import "./ProductDetails.css"
import { useSelector, useDispatch } from "react-redux"
import { getProductDetails } from "../../actions/productAction"
import { Carousel } from 'react-responsive-carousel'
import "react-respon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75598962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Cannot access localstorage from sveltekit hook I've got a function that verifies whether an user is logged in or not:
export const isUserLoggedIn = () => {
let dmcAuthToken = localStorage.getItem(AUTH_TOKEN_KEY);
return dmcAuthToken ? true : false;
}
when an user logs in, local storage is updated with a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75598963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Multiple different toasts I want to check at same time on my page, but my Cypress E2E test only fails on the one it sees first I am using Cypress to check pop up toast messages. I normally just have 1 single toast, that I can catch and compare with no issues, but when I have multiple toasts at the same time, that a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75598966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Search layer in docker registry without knowning name Problem
I'm trying to implement a cp -r command between docker registries, which does not rely on docker daemon.
I find that in order to save bandwidth and skip existing layers, mounting from another image is necessary. But since the API looks like this POST /v2/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75598968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python: Statsmodel Logit table Pseudo R-Squared is Inf A screenshot of the result Table
I tried to change the combination of the predictors, but the result table kept showing inf for the Pseudo R-squared.
Thank you in advance!
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75598971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: The question of program of 2-player rolling dice game https://i.stack.imgur.com/9Jhrr.jpg
https://i.stack.imgur.com/L07EL.jpg
https://i.stack.imgur.com/1pXYo.jpg
https://i.stack.imgur.com/TD2bI.jpg
Write a python program for a two-player rolling dice game (namely, P1 and P2).
Each player has a counter to record thei... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75598972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Calculate time difference according to dd-mm-yy hh:mm:ss in react native Example if the clockin is 3 days ago from today then time will be 72:56:59 something like this right?
So how to calculate using moment? I want result in hh:mm:ss
const actualTime = new Date("2023-02-23T10:50:51.755Z")
const currenTime =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75598975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Set cell background of cell after value is appended I have a script that is appending the value in cell D2 then adding one to that cell, basically stacking a list of numbers. To make it more user friendly, I want to activate the latest cell (which works), but I also want to set the background color to cyan for 2 sec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75598976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: VS Code preferences text blurry while searching When editing the preferences in VS Code running on Linux, the text is overlapped and blurry when searching within the preferences window. Reverting to default fonts and font sizes doesn't fix the problem. Has anyone seen and fixed this?
A: As verified in the comments... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75598979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to return a anonymous NamedTuple in python defined only in the return type hint I come from Typescript, new to Python. When I have 2 things to return from a function and I only use these 2 keys for that function return type and nowhere else in the code, I don't create a complete class but I instead use typescrip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75598980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Create a diagonal matrix from a dataframe in r I have this data frame:
data.frame(Name = c("A", "B"),
Value = c(1,2))
and I would like to arrive at a matrix with Name values as the matrix's row names and column names and values as the product of a subtraction like the following
AKA
A: I assumed you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75598981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Posts with same slug in WordPress URL structure I am trying to achieve this Post URL Structure in WordPress.
I do not understand why WordPress will not do it and I am hoping there is a work around?
Would changing it to Pages (with Children) or another PostType solve this?
This is my desired example URL's:
www.mywebs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75598983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Laravel 9 Inertia pagination I have the order function, in which it shows the items related to said order, what I want to do is, paginate only the items within the order.
public function order()
{
$orderId = request()->get('id', 0);
$order = null;
$order = OrderItem::with(['items'])->find($orderId);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75598985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: why array.splice(1,1) removes array[1] and array.splice(0,0) does not remove array[0]? why array.splice(1,1) removes array[1] and array.splice(0,0) does not remove array[0] ?
let array = [1,2,3,4,5]
array.splice(1,1)
console.log(array) // output: [1,3,4,5]
let array = [1,2,3,4,5]
array.splice(0,0)
console.log(arra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75598986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Add the test case name to capabilities for Browserstack in webdriver-io config I'm using webdriver-io with javascript and I need to include the test case name in the capabilities so that Browserstack shows the correct name
The line name: process.env.TEST_NAME is the one that I actually need to change, I execute the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75598987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: My background image not showing in github pages(tailwind css) I make a tesla clone with html and taiwind css.It work fine on my live server, but image doesnot show while while deploying it to github page.
The project is given below:
https://github.com/Manikkk3/Tesla-clone-repository
I try changing (./images/...) and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75598989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DSBulk cannot connect to cluster to load CSV data I am trying to load csv files into cassandra cluster for which I am using dsbulk utility.I have a local copy of CSV file and trying to connect to remote cluster and load the CSV into the table. However, dsbulk is failing to recognise remote cluster address and saying... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75598991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I store secrets in Jenkins DSL? I have a password that is required as an environment variable by one of my jenkins dsl jobs. The script 'build.sh' requires this password to be set, so I am storing it as a variable in passwords.groovy and passing it to the job as seen below.
freeStyleJob('Myjobs') {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75598993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When importing the compiled opencv-gpu-python, dll load failed appears The following is the configuration of my computer
*
*RTX 1050 (cuda 11.1 && cudnn 8.1.1)
*minconda (envs: py=3.8 && numpy)
*The compiled opencv-cuda-python library (https://jamesbowley.co.uk/downloads/#OpenCV4.5.0)
*I have added the \install... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75598996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-5"
} |
Q: Storing images in frontend I want to store images in the frontend folder and I'll store the name of image in backend.
At the time of retrieval I'll use the folder in the frontend server and the name of image from the backend and use it.
Can anyone help in doing this?
I need help regarding this.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75598999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In R, How can I run a Multiple linear model estimation under robust standard error in HC3, so I can carry out a Chow test? I am trying to make a wage model, with data from Uruguay, under the following form:
mod <- lm(logsalxhora ~
exper + mujer + menoresde14años_hogar +
sq_menoresde14años_hogar + infor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MongoServerError: E11000 duplicate key error collection: when i send request from postman software to vs code then first time data is entered successfully in mongodb compass. when i try to send another data from unique name, email and phone then this error occures.
I dropped my database too many times but unable to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I'm getting error in Logcat on DataChange while fetching data from firebase realtime database I have to retrive the user data from realtime data in profileActivity.
I have saved the data inside the "Users" node of the database, but when i wants to fetch it logcat shows the error onDataChange
Error shows on line insi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spring Security password encoder requiring bean even though it's already in the configuration I'm making a authentication method to secure my API with Spring Security and JWT. I'm using a password encoder for a register method to secure the user. I have declare a bean for it but I'm getting an error saying:
********... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: pyspark Anti-join 2 dataframes I have 2 data frames df and df1. I want to filter out the records that are in df from df1 and I was thinking an anti-join can achieve this. But the id variable is different in 2 tables and I want to join the tables on multiple columns. Is there an neat way to do this ?
df1
user_id
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: #recaptcha-enterprise - Query on recaptcha support for China region Would like to check if recaptcha-enterprise is supported in China region.
Read in a forum that if we use apis from recaptcha.net instead of google.com then it should work in China region. But I couldn't find any documentation about it. Anyone can he... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Submenu disappear when moving from menu to submenu I have the following code, I'm stuck on how to move the mouse from the menu to the submenu (the submenu always disappears when I tried doing so).
I did not use <ul\> and <li\> in my code and not sure if some little modify can solve this problem... I feel like I did ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSSTransition component classNames props does not work My Problem : classNames does not work in CSSTransition
`in` props works well, but classNames does not.
The phrase of the <h2> tag disappears when a button is pressed, but it disappears immediately because css(classNames) is not worked.
The timeout prop also doe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: trying to add replication to phpmyadmin but after adding user it it errors so I set up the primary server crap
server-id=3703097
log_bin=mysql-bin
log_error=mysql-bin.err
then was asked to make a replicate user. this is the code it tried to run
CREATE USER 'Replication'@'%' USING '***';GRANT REPLICATION SLAVE ON *.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do render swagger.json content in reactjs I am trying to create a document portal for my API's with Express and reactJs. Basically, I get the JSON content(swagger.json) from the Express server and I want to pass it to swagger UI on the client to display
In the docs (https://www.npmjs.com/package/swagger-ui-react... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Springboot with Oauth 2.0 logging request and responses Building SpringBoot application and using 'org.springframework.boot:spring-boot-starter-oauth2-client:3.0.2' trying to log the request and responses. I get headers={masked}, trying to get details about request and responses.
Tried many things but no luck. I ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL - Using Subquery inside a SQL statement Please help me write a sql query that will produce the number of customers in each city sorted from highest to lowest in the table below. Include only the cities that have more than average number of customers across all cities in that state.
Table content:
Customer id, Cu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: list data API not showing in flutter I want to display a list based on the ID selected by the user on the detail page but when I try to implement it the data doesn't appear on the detail page and only displays a circularprogressIndicator.
is there something wrong with what i'm doing here?
I'm a bit confused here, an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JS function returning a parsed json from fetch I am building a react native application that interfaces with a nodejs backend server which makes my SQL queries. I have a query that gets all the usernames of all requested friends. On the serverside I send the results from the SQL query like this.
results = Object.val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How to redirect traffic in haproxy based on the output of a script? so i have this bash script to return 0 and 1 based on snmp value of cpu usage like this:
!/bin/bash
# Set the SNMP community string and web server addresses (replace with your own)
SNMP_COMMUNITY="mycommunity"
WEBSERVER1="192.168.47.110"
WEBSERVER... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Neo4j Cypher merge nodes and persist I'm trying to merge duplicate nodes in my database, they have some shared properties but are not the same. I'm finding them and merging it correctly, but there is no change to the database.
This is my query:
MATCH (root:Person { firstName: "X", lastName: "Y" }),(p)
WHERE root.fir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Conditional For Loop I'm trying to create a for loop in python that will generate random numbers (weights) for a specific number of portfolios. However, I want to make sure I have a minimum number of exposure to some tickers. For example I want to make sure that tickers B and C will account for at least 80% of the p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: await fixture never resolves when internal properties from firstUpdated() or updated() changes I want to set some attributes based on the attribute/property passed to my lit web component using one of the two approaches mentioned below:
I am writing a test case to test a lit based web component. I am using open-wc/t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Please help restructure Pagination to remove noise Can you please review my pagination example.
Purpose
I built it for practicing and learning, for this reason I did not google the solution, instead I tried to make my own.
Problem
I think this implementation is noisy and I would like to improve it and learn from it.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Server Hostname mapping to Public/Private IPs Networking amateur here. So please bear with me! :)
I have 2 Bare metal servers named WEBSERVER and APPSERVER, both running Windows Server 2012 R2 edition. Had a problem last weekend with Problem on the WEBSERVER last weekend and had to reinstall the OS. Network configur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: replace blanks in the column with the values in the same column in DF based on the corresponding values in another column in pandas Initial table:
| Acc num | Bank name |
| 100250-- | NaN |
| 100250 | NaN |
| 100250 | NaN |
| 100250 | SBI |
| 200100 | NaN |
| 200100 | NaN... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to take a string, create a list from string, and select randomly from that list (x) times I want to create a Python function which will take names as input separated by commas; turn that string into a list, and finally choose (num - parameter) number of names from that list.
I am using random.choice(list), but i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: get if streamer is on Stream I'm making a Twitch and Discord bot, but now I have a problem.
I want to check if the streamer is live and send a console.log() if it is live, but I am not able to do that.
require("dotenv").config();
const Discord = require('discord.js');
const { MessageAttachment } = require('discord.j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: warning: assignment to ‘struct node_t *’ from incompatible pointer type ‘node_t * I'm working with a linked list and trying to assign information from nodes in a list (node_t) to a separate struct (list_stats_t)
struct node
{
char firstName[50], lastName[50], major[50], classStanding[50];
bday bd; // thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to disable this field? I would like to disable this field and it's using angular controllers js. I already tried ng-disabled = true but it doesn't work. I need to disable using below conditions (first code).
if(scope.model.t_mem_payment_code === 'MSI' && angular.isDefined(scope.model.summaryDet))
{
if(vm.mpb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Webdriverwait in selenium java WebDriver driver = new ChromeDriver();
WebDriverWait w =new WebDriverWait(driver,5);
I am getting an error for the second line. the error is "The constructor WebDriverWait(WebDriver,int) is undefined"
Can someone please help me out here?
I tried to initialize the webdriver wai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issues with animating multiple pie charts Hi StackOverflow Community,
I'm trying to animate multiple pies (inspired by this post) based on the dropdown value. However, am facing these issues with the pies whenever the dropdown value changes:
*
*the existing pies do not update (reposition, resize or re-slice).
*th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Select2 disappearing, after adding dynamic form i have a problem regarding select2, what happen is I have a dynamic form with few select2, but everytime I click the addNewItembtn the previous fields' select2 function will disappear.
here's the code:
$(document).ready(function() {
// set dropdown to selec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PropertiesChanged signal don't emit in org.freedesktop.DBus.Properties . Qt/DBus I have a QtDbus program,the PropertiesChanged signal should emit a signal by change property.But I can't receive thi signal by dbus-monitor.
So how to do can let the signal emit.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75599068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VS code can not find function definition if the file is not opened I'm using VScode for C++ projects and have the extension "C/C++ IntelliSense" installed, but recently the "Go to definition"(F12) cannot work correctly, if the source code file is opened, it works fine, otherwise it only navigate to the header file a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: flutter and dart project running properly in windows but not running on mobile FAILURE: Build failed with an exception.
*
*Where:
Build file 'C:\Users\India\AndroidStudioProjects\employee_ui\android\build.gradle' line: 26
*What went wrong:
A problem occurred evaluating root project 'android'.
A problem occurred... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: firebase deploy command not found in my terminal I just started developing on my Mac so I needed to install VScode again and import the relevant project repository; made my changes and did npm run build which worked fine; then tried to firebase deploy but it then says the firebase command is not found; not too sure ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DataDog CloudTrail integration missing ListObject permission I installed the DataDog AWS CloudTrail Integration on my AWS account today (it creates a CloudFormation stack and creates, amongst other things, a Lambda that forwards logs from your CloudTrails logs in S3 onto your DataDog account).
After installing the i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SwiftUI - Adding title between navigation bar button items on a modal I have a view which I present as a modal view. In this view, I wish to have a button on the top left, another button on the top right and a text horizontally centered between both the buttons. I was able to place the buttons correctly using "navig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error handling not working. Javascript Try Catch try {
console.log(Hello World);
}
catch (error) {
console.log(error.name);
console.log(error.message);
}
Output:
Uncaught SyntaxError: missing ) after argument list
No idea why SyntaxError is not being catch.
Is there any mistake in my code or due to some JavaS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Next.js css-loader module classnames do not match between html and css I'am using tailwind css for my css framework, and I'am trying to Hash my tailwind css class using webpack css-loader, the css classes is completed to hash, but the html class is still showing the regullar class
[]
this is my next.config.js
con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check if current page link contains a certain string with react component? how can i check if my current page link contains a certain string and returns true or false?
class MyDocument extends Document {
render() {
return (
<Html lang="en">
<Head>
// Check if page link conta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to parse animated gif image from a local file in Flutter? I was able to parse an animated gif frame by frame from an asset (see below). However, I can't make it to work with a local animated gif file.
static Future parseGif(String assetPath) async {
List<ui.Image> gifImage = [];
ByteData data = await roo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python Script Crashes at random points import requests
import threading
url = 'example.url'
username = input('Enter Username:')
data= {
'UserName': 'username',
'Password': 'JJJJJJJJJ',
'AuthMethod': 'FormsAuthentication',
}
def do_request():
while True:
response = requests.post(url, data=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to create domain in plesk I had a domain on my server in plesk for several years then recently deleted the folder and from IIS. I now am trying to add it back using Plesk and am getting the following error:
Error: ProtDir_IIS::update() failed: Add Protected Directory failed: columns siteId, path are not uniq... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: ADO in VBA to read XLS (Web Archive) file I am writing VBA in Excel (Office 365) to retrieve data from external sources via the ActiveX Data Objects (ADO) 6.1 library
Code works blisteringly fast to retrieve data data from XLS(X) and CSV files, but I have now encountered what appears to be XLS (i.e. this is the file... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you get the execution context of a failed Firebase Function from its logs? I am using Firebase Functions triggers on top of Firestore documents.
If I define a function like this:
exports.myDocCreate = functions.firestore.document('docs/{docId}').onCreate(async (snap, context) => {
///... code here
});
and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The sum of values whose second column is 1 I have two columns in Excel!
The first column of prices
And the second column of the status, whose values are 1 and 0!
I want to the sum of the prices whose status is 1!
How do I do this?
Columns A1:A5 are for prices |||| Columns B1:B5 are for statuses ||| Section G2 is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How to use promise with async await by using ngOnInint in Angular 14? I have an application which is developed in Angular 14.
My service/API request calls are served through subscribe which was fine in old logic.
Now we have some changes and we need to implement duplication check before the call to API/service and a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to resolve an invalid dataloader passed f"An invalid dataloader was passed to Trainer.{trainer_fn}({prefix}dataloaders=...)."
ValueError: An invalid dataloader was passed to Trainer.validate(dataloaders=...). Either pass the dataloader to the .validate() method OR implement def val_dataloader(self): in your Ligh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get Follower Count in Linkedin using API I am looking to get the follower count for a page (not a company page) I manage using the Linkedin API. It appears this is a more difficult process than it should be.
Does anyone have any advice on how to get this endpoint? Seems a very simple metric but I cannot find it in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why visual studio code xdebug using php version 8.1.4 even though my current php version enabled in wamp is 7.4 please help!
My when i debug my php code in visual studio code using xdebug it always start the server with php8.4.1 , eventhough my selected php version of wamp server is 7.4.please help me to use php 7.4... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to return dropdown value from a separate class inside a Flutter Dialog I would like to add a dropdown (or more in some cases) in a pop up dialog. In order to manage all dropdowns in the entire app and make the coding of the UI more simpler, I separate the dropdown Widget to another dart file. I am not able to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create a size condition useing AWS dynamodb-mapper-js I am trying to use the AWS Dynamodb Mapper library with Typescript to update an item in a table depending on the size of an array element (lets call it IDs) of the table.
An issue in the Github repo has been raised for this:
According to the dynamoDB docu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: COMO RETORNAR OS DADOS DE UM DOCUMENTO PELO ID DE UM COLEÇÃO NO FIRESTORE? import React, { useEffect, useState } from "react";
import { Container, TextSimple, Title } from "../../../atoms";
import { useParams } from "react-router-dom";
import { collection, onSnapshot } from "firebase/firestore";
import { db } from "... | {
"language": "pt",
"url": "https://stackoverflow.com/questions/75599128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Converting between mouse and 2D "world," positions in webGL program I'm making a simple painting program with panning and zooming.
You can find a minimum reproduction of the issue here: https://codesandbox.io/s/mouse-coords-min-repro-4rfg1v?file=/src/index.ts
The issue is what's happening when I try to convert betwe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I disable the diff dialog in Visual Studio? Does anyone know how I can turn off this annoying Diff popup that appears when I accidentally click the gutter?
Thanks
A: Update:
After my reproduction, after I created a local git repository in VS2022 17.5.1, the click will appear.
Disable the third option to cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I increment a pandas dataframe index? If I have a variable set to a value from a pandas dataframe, how can I increment the index so that the value of my variable will change to the next incremented index?
numbers.csv
Ex.
df = pd.read_csv('numbers.csv')
a = df.iloc[0, 1] ## a = 3.5
#if the sky is blue, then... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I am building an app and want to allow the user to navigate into a folder The user is originally presented with a ViewController with a set of folders to choose from. When a folder is chosen, a new view controller called FolderContentsViewController appears and should display the contents of the folder, but no cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the correct error code for timeout? I am developing a website and it will display a page for 5 minutes and user will be redirected to an error page which ask them to refresh the page. What status code should I put in the error page?
I am expecting the suitable error code to be displayed in the error page.
Ed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: how to post Android Project on Gitlab? I'm using a Gitlab. (into CentOS
Recently, A pipeline error appears when uploading an Android project.
How can I fix it?
How can i set CI/CD?
enter image description here
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75599142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Custom loss for multi task model I'm finetuning a keras model that outputs 3 different predictions for 3 subtasks. The model output is a list :
out = [[batch_size,5],[batch_size,6],[batch_size,6]]
I only want to compute the categorical cross entropy loss for the 3rd output. So I defined a simple custom function:
de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I'm trying to automate drag and drop a draggable element in dart for flutter_integration testing Trying to automate Drag and drop for testing.
Element is of type Draggable<Student>.
Tried drag() with longPress(). Tried drag with Offset and also tried moveTo() from TestGesture. But still unable to drag the element to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Business Central - JOB Card - Report Layout I got question regarding Job Card when you print there are no description regarding on Item, only the Item No. shows in line, any suggestion on how can I show this on Report Builder? sorry I'm just new and I don't have experience in Report Builder for Custom report layout.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Xcode C++ generate boilerplate I just started using XCode for C++ development. I couldn't find any shortcuts for generating code. In visual studio, I could type main followed by a tab and generate the cpp main function, or generate getters and setters, copy constructor, etc etc. Is there any way to do this in Xcode?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Haskell avoiding partial functions I am a beginner in Haskell, and I have been told that I should avoid using head and tail operation and use pattern matching instead. How should you convert a head/tail function to use pattern matching instead
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75599151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Email.js not returns an error on Node.js backend server I'm using email.js to send emails from my server with Node.js and Express. Email.js has an npm package so I imported it using const emailjs = require("emailjs"). However, I get an error:
Instead change the require of email.js in Mycomputer\index.js to a dynamic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error while creating a temp directory in Anaconda Prompt I have recently been trying to create a virtual environment called "Test" using the Anaconda prompt for my research project. I could successfully install the environment using: conda create -n Test python=3.10.
But when I tried activating the environment using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: ease-in-out animation only works when 'easing out' (doesn't 'ease in') I am trying to apply an ease-in-out animation to the opacity of a section which pops up when user clicks one of the images of the page. currently the animation is only applied when closing the popup, not when opening the popup. i want it to be ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Database data not showing in bootstrap table in Laravel 8 The data I input is saved and showing up in the database however I could not get it to display in the data table for some reason even though the other data tables are displaying the data with no issues. I compared the codes from other files and I don't think ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Stored Procedure with Multiple Queries and Parameters I'm using Microsoft SQL Server and Java for this.
I'm intending to create a global procedure function, in which it will copy the records from 1 table to another table.
My current procedure:
create procedure callProcedure(@newTable varchar(100),
@tableField varcha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generating videos with cv2 not working on ubuntu server I'm trying to generate a video from a series of jpg on an aws ubuntu instance. The video generation goes fine but when I download the video and try to play it I get this error from windows:
We can't open output.mp4. This may be because the file type is unsuppor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Control-M Issue with Linux shell script with 'spawn scp' source file having a directory name containing spaces I have the following shell script that runs automated scp commands.
copy_prod_files.sh content:
#!/usr/bin/expect
spawn scp ftpaccess@prod:/storage/data/files/'Excel\ Docs'/file1.xlsx /data/prod/
expect "ft... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Package python3-pydantic isn't installable in Ubuntu 18.04 The following packages have unmet dependencies: Grapejuice : Depends: python3 (>= 3.7~) but 3.6.7-1~18.04 is to be installed Depends: python3-pydantic but it is not installable E: Unable to correct problems, you have held broken packages.
This is for Grapeju... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NGINX Directive to hide Sub Directory and Path in the Address Bar I have an app that is placed behind a reverse proxy and everything works. Unfortunately my app generates really ugly paths in the URL depending on what it's doing.
What directive settings should I be looking at to rewrite the address bar URL from:
sub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AWS SM Automation aws:executeScript PowerShell import module not loading in script but works on the EC2 instance locally I am attempting to run a simple powershell script as an Automation document on my Windows Server 2019 instances. Note, I am using the Tools for Windows PowerShell (AWSPowerShell module) and they a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting cors origin for my React socket io chat APP const io = require("socket.io")(2202, {
cors: {
origin: ["http://localhost:2200"],
methods: ["GET", "POST"],
},
});
http://localhost:2200 is where my React Chat APP is hosted. I don't understand why my origin is limited to where my React APP is hosted.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TF-IDF with log base 2 for IDF in python I'm newbie in machine learning. I try to do sentiment analysis using TF-IDF.
formula TF that I use is:
TF formula
formula IDF that i use is:
IDF formula
For IDF formula, I use basic formula with log base 2. I find other people syntax that using same TF-IDF formula as me. I tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get a wildcard subdomain to only work with subdomains that don't have a record associated with them? I have a website, and I'd like all subdomains aside from the ones that have a record pointed to them (i.e., they're being used) to be redirected to a URL. I can set up a wildcard subdomain (*.example.com) re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to change Azure Monitor table retention period using Terraform we have a requirement to change the Azure Monitor log retention period (archive) to 7 years. This is quite simple from the portal but I can't find any references on how to do it with Terraform, Any pointers?
I have looked at the Azure Monitor module ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Refactor a ListenableFuture (with onSuccess/onFailure) into a CompletableFuture Because of an upgrade in the Kafka library, I need to rewrite the following code with ListenableFuture into one that uses CompletableFuture. The difference is briefly explained in this thread.
The object being handled is called SendResul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sort an array of string to find a particular string I have an array in which I need to sort and filter by exact string value
self.meditations.sort {$0.focus_category == $1.focus_category }
focus_category single string value output:
love, kindness, test
Pseudocode:
self.meditations.sort {$0.focus_category where $0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How can I add a modal for each image of my gallery? I was wondering how can I have a modal for each image when I click the images.
CODEPEN
Javascript
function showImages() {
while(gallery.firstChild) gallery.removeChild(gallery.firstChild)
var offset = (page - 1) * perPage;
var dots = document.querySelector... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "The operator '[]' isn't defined for the type 'Object'.Try defining the operator" When trying to enter the collection I get the following problem
The operator '[]' isn't defined for the type 'Object'.Try defining the operator
I need help to solve this problem, I do not understand why the error occurs, and I have n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Tkinter dynamic tooltip that moves with the cursor and updates I would like to implement a tooltip beside the cursor in my tkinter GUI - specifically one that would display the x value of a matplot plot in a tk.Canvas that moves with and updates dynamically as the mouse moves.
There are some good examples (here) in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75599179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |