text string | meta dict |
|---|---|
Q: Why \n (linebreak) doesn't work in my console.log? It works in my "code snippet" here on this stackoverflow page. But not for my Chrome Devtools. I am using the latest version Version 110.0.5481.100 (Official Build) (x86_64) on macOS 13.2.1.
console.log(234234, "\n\n", 23423)
screenshot here:
Should I change/tw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I import a .pyd module written in C++ to Python using PyBind11 I am working on Windows 10 with Python 3.9.7 and have anaconda setup on my laptop.
I have compiled a C++ code calcSim.cpp where the module name is calJaccSimm and am able to successfully generate a .pyd file with the following extension .cp39-win_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Copy text from google doc on selecting automatically I have an iframe inside my product. I need to copy text from Google doc loaded on the iframe automatically on selecting a chunk of text.
Currently, I select a chunk of text and then right-click where I get a "copy" button as shown below.
Instead, as soon as I sel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Am getting tons of errors one evening of node modules with my MERN project Compiled with problems:X
ERROR in ./node_modules/assert-plus/assert.js 5:13-37
Module not found: Error: Can't resolve 'stream' in 'C:\Users\Hammad\ngo_project\client\node_modules\assert-plus'
BREAKING CHANGE: webpack < 5 used to include polyf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: i got MongooseError: Operation `users.insertOne()` buffering timed out after 10000ms i am trying to connect node.js with mongodb. but unfortunately i got this error and not be able to store information in mongoDb compass
here is my db.js
const mongoose = require('mongoose');
const mongoURI = 'mongodb://localhost:270... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Why does this Date Comparison in my If-Statement go wrong? I want to check, if the date of a "wh"-Object is NOT a Saturday or Sunday.
this.state.workingHours.map((wh) => {
if (wh.date.getDay() !== 6 || wh.date.getDay() !== 0) {
console.log(
"goes in",
this.context.dateService.format... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a Multi-theme based E-commerce platform on ReactJS I want to create an e-commerce platform where seller can create their own store. There will be 5-6 themes for those users can select how their store will look. and it will be on react js and MongoDB, nodeJS. suppose, there is 3 theme named T1, T2, and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: which machine learning algorithms are used for generation of images from text which machine learning algorithms are used for generation of images from text
which machine learning algorithms are used for generation of images from text
Generative Adversarial Networks (GANs): GANs are one of the most popular deep learn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Is there any expert in flutter for helping me to solve the problem? I want to remove otp confirmation from my app. In this time if i want to delivered something it need my security code then in next page it need image and sing. But I dont want this verification. I want to press the delivery button and it should make... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-6"
} |
Q: java how to return custom list instead of object list in stream from groupby method? I have a entity with these fields
private Long id;
private String name;
private Boolean isStudent;
Now I can group list of entity like bellow
Map<Boolean, List<User>> result = userList.stream().collect(Collectors.groupingBy(User:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you hide an image/text? When I tried to use setVisible but then it said that setVisible(boolean) does not exist. Is there a better way to do this or fix this?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75570445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: how to insert a new service into docker-compose.yml using sed I want to add a new service into docker-compose.yml with bash. this is how it looks:
#!/bin/bash
# Check if the file exists
if [ ! -f "docker-compose.yml" ]; then
echo "Error: docker-compose.yml file not found"
exit 1
fi
#insert new service into doc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python Selenium (Scrape Product Info from CJDropship) I can not figure out how to scrape it, seems like the info is being hidden by Ng-show and after many attempts, nothing I found seems to work.
Website: https://cjdropshipping.com/product/silicone-grip-device-finger-exercise-stretcher-finger-gripper-strength-traine... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: title is initially invisible , why? protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTheme(R.style.Theme_StatusSaver);
// setContentView(R.layout.activity_main);
binding = ActivityMainBinding.inflate(getLayoutInflater());
View view = b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trying to reimport a vbox machine "template" but it has the same UUID as an existing machine I created a virtualbox Windows 10 machine, which I wish to use as a sort of template, so once it had a basic setup, I copied it's directory on my Linux Mint host to a storage drive. I then spent time using and developing th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Issues with Discord bot's shop system: Second and third buttons not functioning properly Currently, I am developing a Discord bot with a shop system. I have created nine items divided into three buttons per page. However, only the first buttons on each page work correctly.
The second and third buttons do not generat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When wrapping an InputStream in a BufferedInputStream, should the BufferedInputStream be closed? I am using the BufferedInputStream for the mark/reset feature. My method gets an InputStream passed in, which will then create a BufferedInputStream on top of it.
Now, this BufferedInputStream is in a try-with-resources ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to find failed inserts while writing to Bigtable using dataflow jobs? I am writing a pipeline to migrate data from GCS to Bigtable. Data is in json format. Pipeline works fine but number of records written by dataflow job and Count I get from BigQuery using BigTable as external table doesn't match.
I have set "o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: indings: python bindings disabled due to the following missing dependencies: cppyy I want to install PyViz visualizer in ns3.37 but I am getting this error in MacOS Ventura version 13.2.1
EXPECTED OUTPUT SHOULD BE :
PyViz visualizer : ON
Python Bindings : ON
BECAUSE PyViz is dependent on P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use bootstrap.css to generate PDF in Grails I am working on a Grails-5 project. To export data in PDF format I am using rendering plugin. Everything works well but when I include the bootstrap.css in the page header e.
Caused by: java.lang.ClassCastException: org.xhtmlrenderer.render.BlockBox cannot be cast t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Logger not showing logs on the console in spring boot application public class HomeController {
@Autowired
TaskItemService taskItemService;
Logger logger = LoggerFactory.getLogger(HomeController.class);
@GetMapping("/")
public ModelAndView index() {
ModelAndView modelAndView = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Getting Multiple active links in a Bootstrap List-group Navigation I'm trying to create a page navigation list-group using bootstrap.
When a user clicks on a new link in the list-group, the active status must be removed from the previous link and placed on the new link.
The problem is the the blue active link is not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Attention Residual ANN (Is this a thing) I was experimenting with ChatGPT, and asked it to give me a Attention Residual ANN.
Heres's what it output:
import torch
import torch.nn as nn
import torch.nn.functional as F
class ARN(nn.Module):
def __init__(self, input_size, hidden_size, num_classes):
super(ARN, self)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Passing a custom compiler flag from a target to an spm I'm using a target for Staging and a target for Production. The staging target has custom flag which I need to pass onwards to different spms.
I found several answers online regarding XCConfig files, linkedLibrary, and many others but I couldn't make any of thos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to correctly expand a file name with spaces as a variable within double quotes in Bash? Minimal example:
f="/tmp/a file"
cmd="cat \"$f\""
set -x
$cmd
How do I correctly handle $f here such that cmd becomes cat "/tmp/a file" (double or single quote).
cmd="cat '$f'" also doesn't work.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75570471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how can i use this AMD Radeon RX 580 Series GPU to train deep learning model enter image description here
I wanna using my AMD Radeon RX 580 Series GPU to training deep learning model.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75570472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: How to create a reusable postgresql connection in a multithreaded python application I'm working on a multithreaded project that makes many database queries but the method now is creating a new database connection in thread every time before executing the queries and closing it after. As this is heavy operation I ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to load different scripts for different state in nextjs? Currently I want to load different scripts for english and hebrew language in the state. But the hebrew script is not getting rendered even when the redux useSelector value is changed to hebrew. It always show the English button in the right side . Now my ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SpringBoot zero JPA repositories found error #Entry file
package charan.app;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Componen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The right way to do semantic search for an entire document? I have a bunch of text documents that I want to use semantic search on them. One thing that I am not sure is the granularity to do the embedding.
The straight way that I can figure is to separate the document using the '\n' character, which means I will use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: function<->variable dependency graph In Python, suppose that you have a file, or collection of files in a repo, containing the definitions (or at least the signatures) of a collection of functions f(),g(),h().., which interact with a collection of variables A,B,C,D..The names of the variables are preserved in functi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to expose a (service in a) k3d cluster to the Internet (through a public IP)? I'm going crazy because I'm totally unable to expose a service in k3d cluster to the Internet.
360° Situation
*
*I have a domain.
*A "vpn" subdomain DNS A record points to my public and static IP.
*A "dns" subdomain DNS A record ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Another way to iterate to get multiple values against single date column in pandas Dataframe I have a sample dataframe df:
Multiple values for a single date.
Date Title Description
0 2003-02-10 A age
1 2003-02-10 B number
2 2003-02-10 C total
3 2003-02-10 D percentage... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using a static php file on several domains on the same server I am attempting to set up a file to be used on several domains so that I do not have to edit 50,000 files every time I want to make an adjustment.
I have a file that I would like to use on multiple domains.
I was using: (a few years ago)
-?php require('ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to programatically blur react bootstrap navlink? I am trying to blur navlink after it has been clicked. My workflow is that navlink opens a modal and after the modal closes, navlink remains focused (black css). As you know blurred navlinks show grey in color.
I tried: document.getElementById(idName).blur() && re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: POST http://localhost:5173/register 404 (Not Found) & axios error I have been trying to get the response from the server but it shows error. I'm using vs code for this program. When I check the "process.env.MONGO_URL" using console.log() ,it says undefined. (It worked untill yesterday)
and when check the network in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: android keep onlocationchange working on background I am working on a simple android app that calculate the speed of cars, and it working fine,
but whenever the user minimize the app the value of the speed freezes t still the same till I return to the app again.
any help will be appreciated.
@Override
public void o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: An Algorithm for solving linear inequalities with two variables I am trying to find an algorithm to determine existence of strictly positive integral solutions for a set of linear inequalities with two variables and the following form:
*
*1 + 1 ≤ 1
*2 + 2 ≤ 2
*3 + 3 ≤ 3
*...
The problem also involves a final i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: redux-toolkit got error after install react-redux First, I installed @reduxjs/toolkit and redux
After that, when I continue to install react-redux, I got this error after building the app:
error: Error: Unable to resolve module ../../../../src/redux from C:\Development_Projects\atlas\node_modules\@reduxjs\toolkit\di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: I am having problems when training a model on my gpu I want to train the BLIP model for image captioning. When I load the BLIP model to the GPU I keep getting this error:
RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 4.00 GiB total capacity; 3.29 GiB already allocated; 0 bytes free; 3.49 GiB ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to compare each x with the its latest index value when pop out the x This is the list, I want to compare each x and its latest index value in a loop. While the x value is smaller than its index value, then pop out this x value in list. Otherwise X value remains.
i = 0
L = [7, 13, 4, 5, 10, 14, 3, 11, 7, 12, 5, 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: URLDecoder working with main method. But when trying to decode string from Postman for "utf-8" it is not working This is decoding logic for string.
String clientIdFromRequest = decodedRequestBody
.substr`enter code here`ing(indexOfClientId + CLIENT_ID.length(), indexOfClientSecret - 1);
String clientSecret... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Why don't my types works with my prisma schema? (MongoDB) So I have a simple schema and it works but the moment I try to do anything with my defines types it doesn't work. Am I going about this correctly?
Here is my schema
generator client {
provider = "prisma-client-js"
binaryTargets = ["native", "rhel-op... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Look up the title of an article published on microsoft.com on 20 Oct 1996 Can anybody help me to answer the following? I haven't been able to.
What is the title of the first article published on microsoft.com on 20 Oct 1996? I am aware that the answer should contain numbers.
I've been able to find out how to look up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Remove 'vendor' folder in React Native project root I hadn't created new RN project in a while and after did some Ruby update and path configuration, I see in my new RN project there is vendor folder in the root.
Without it (tried renaming/deleting the folder) I get this error:
Could not find proper version of coco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: sanity project setup command throws the error I was logging into my sanity account through terminal or console but it didn't seem to work since it was aborting the process automatically! Anyone here know how to fix this thing?
C:\Users\Realtrickz\OneDrive\Desktop\ecommerce\ecommerce>sanity login
? Login type Google
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sorting through API data, says list indices must be integers or slices, not strings Trying to sort through api data. But getting an error
"TypeError: list indices must be integers or slices, not str"
When trying to print certain values of certain keys from a dict. It says the container is a dict, but is asking for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: increasing pool size in grails taking no effect? I am load testing a grails 4.0.10 app using JMeter. The app is connected to mysql 8 database. The jdk i am using is jdk 8.
I am testing registration feature simulating 2000 users trying to register at once.
Registration process consist of these steps:
I am first test... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PyInstaller error FileNotFoundError: No such file or directory I have python file with GUI I created using PySimpleGUI. I used PyInstaller to create an exe file for windows (and UNIX executable file on Mac) I get this error
"FileNotFoundError: No such file or directory"
window = sg.Window('Loading please wait...', l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Numpyro: Error when using MCMC with a model that uses scan I am trying to get the following model to work:
def model_dynamic(self, hemp_size_t, values_t):
# Unpack the values at time t
t, actions_performed = values_t
# Check if harvesting are performed at time step t
harvest = self.is_performed("har... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to include the optgroup containing the chosen option when submitting a form? <?php $kategorie = $pdo->prepare("SELECT kategorie FROM tdgm_kategorien");
$kategorie->execute(array()); ?>
<select name="rubrik" id="where" class="input">
<?php while($r = $kategorie->fetch()) {
$kat = $r['kategorie']; ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python pandas groupby: how to use variables in different columns to create a new one Consider the following DataFrame:
df = pd.DataFrame({'c0':['1980']*3+['1990']*2+['2000']*3,
'c1':['x','y','z']+['x','y']+['x','y','z'],
'c2':range(8) })
c0 c1 c2
0 1980 x 0
1 1980 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to perform a validation on an attribute only if the value of the attribute is not null I have a search criteria for a Project model. A Project can be searched using an id or project name.
@Data
@Builder
public class ProjectSearchCriteria {
@IsNumberValidatorConstraint(message = "invalid input for id")
pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I am currently encountering an error with MultiValueDictKeyError while testing my Django DRF project Dear Stackoverflowers,
I hope this message finds you well. I am reaching out to report an issue I encountered while testing my Django DRF project. I built a test case using the following code:
class AttendanceRecords... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android studio - emulator process for AVD has terminated - windows 11 “The emulator process for AVD has terminated” - I am getting this error
I am using windows 11 home
Android studio version is electric Eel 2022.1.1
I installed hyper-v and virtualizations are enabled in bios setup
I have more than 150gb space in di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add and assign to a new column in a dataframe through multiple "if" conditions within a single "loop" I want to perform an iteration process on my data frame with multiple conditions (if statement). Each condition can add 1 to a new column (the target variable, newVar) if it is true, and zero if it is false. Finally... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I am trying to create resuble form with react-hook-form and Typescript but have some troubles This is my component:
....
interface IDefaultValues {
[name: string]: string;
}
interface IFields {
name: string;
label: string;
}
interface FormProps {
defaultValues: IDefaultValues;
fields: IFields[];
}
expor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Not enough RAM in google colab I try:
LOCAL_DATA_PATH = '/content'
DATA_FILE = 'competition_data_final_pqt'
data = pq.read_table(f'{LOCAL_DATA_PATH}/{DATA_FILE}')
pd.DataFrame([(z.name, z.type) for z in data.schema], columns = [['field', 'type']])
But the folder competition_data_final_pqt is too big (1.4GB).
At th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to copy text from an already open webpage I'm using google colab to run stable diffusion and I want to make a txt file with all the prompts and settings. These are located in a div class element under the generated image in the web ui. I want a python code to copy the text (with the promots and settings) and sav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Spout to edit a existing excel doc, and keep formatting I'm looking at using Spout instead of PhpSpreadsheet. Spout is more compact and doesn't have over a thousand interlinked files, most never used, to do a few simple tasks, unlike PhpSpreadSheet.
All I need to do is open an existing spreadsheet, replace the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot find jwt token in response message Nodejs I am using Spring-boot as back-end with Spring security and NodeJS as front-end. I am implementing Login feature.
Using Postman I can see the JWT token in response message.
It's also available in Firefox JWT token is available
But I don't know how to get this token w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do I get the component's displayName in the debugger for React Native after 0.71? I have a function that worked before
/** @param Component */
export function hocDisplayName<Q>(
hocName: string,
Component: ComponentType<Q>
): string | undefined {
if (__DEV__) {
const displayName = Component.displayName... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: getAlbums() method returns nothing in react native I want to access the media folder of the app but when I write related code, it returns nothing. I tried but couldn't solve it. I am using @react-native-camera-roll/camera-roll package.
const [albumList, setAlbumList] = useState<Album[]>([]);
useEffect(() => {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Php error log Filled up with PHP Deprecated: Directive 'track_errors' is deprecated I've recently installed php and mysql in a new windows server IIS and transferred my script there, there's a problem that after enabling error log in php manager, I just get one line error repeatedly for everything as this:
PHP Depr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to resolve or remove this "Warning" notification in my application*? Warning: invalid argument supplied for foreach() in ( MY PHP CODE FOLDER ) on line 166
<?php foreach ($queryadm as $siswadm): ?>
<!-- even though there is no error notification in the php file -->
So that there are no more "Warning" notifica... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to check if a string variable begins or ends with a specific pattern? How to implement an IF-ELSE condition that checks if a string variable begins or ends with a specific pattern, as shown in the example use-case below:
variable "app_version" {
type = string
}
locals {
var1 = ?
# IF var.app_versions star... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Import pdfkit not working in AWS Lambda Python import json
import os
import boto3
import pdfkit
config = pdfkit.configuration(wkhtmltopdf="/opt/bin/wkhtmltopdf")
I am using the above code to import pdfkit. I am getting the error errorMessage": "Unable to import module 'lambda_function': No module named 'pdfkit'"
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: write ANTLR regex when declaring variables list I've wrote a grammar rule for a language in ANTLR as below:
variable: idlist COLON type (EQUAL explist)? SEMI;
idlist: identifier (COMMA identifier)*;
explist: exp (COMMA exp)*;
COLON: ':';
EQUAL: '=';
SEMI: ';';
COMMA: ',';
This input is valid for above grammar:
a, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is the XLA-HLO different for each GPU device? I got the below code for get the number of the flops in JAXPr.eqns.
But when I run the code with different GPU devices, I get the different FLOPs numbers.
For example, A100 80GB GPU, I received more FLOPs than RTX 3090 24GB GPU.
Does the HLO Cost Module have cost conside... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: RTSP source stream in webpage Using rtsp-stream/roverr not working please help me please.
I'd like to make live stream video on webpage. Video source comes from NVR and protocol is rtsp(Real Time Streaming Protocol). But I now rtsp is not suitable for html5.
So I found a libarary from github RTSP-STREAM made by rove... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hot reload is not available due to CS7096 If I hot reload after editing related to an interface in COM reference, CS7096 occurs and the hot reload fails.
// Start debugging this code.
var instance = temp as ComLib.ICom;
instance.Foo1();
// If I edit with this code and attempt to hot reload, CS7096 will occur and t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IllegalArgumentException: column local_filename is not allowed in queries when calling DownloadManager.query() in my app i'm starting download via DownloadManager:
val downloadId: Long = downloadManager.enqueue(dr)
If user reopenning application, i'm checking downloading status via:
fun isDownloadInProgress(): Bool... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create custom dotted line using tailwind css or css?
I have no idea how to create this dotted line, I am not advance in tailwind and css
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75570573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Remove leading and trailing white spaces from form filed input entered by user in react formik with/without yup? How to remove leading and trailing white spaces from form field input entered by user.
**yup schema:-**
const createAddonCategorySchema = Yup.object().shape({
na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Docker-compose doesn't work on ubuntu 20.04 [permission denied entrypoint.sh] My docker-compose works fine and runs on Windows 10 but when i tried to run it from ubuntu 20.04 i get this error:
ERROR: for container_web_1 Cannot start service web: failed to create shim task: OCI runtime create failed: runc create fai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: pyo3: Passing a reference of Rust's Self into a method of Self with attribute `#[classmethod]` Context of my question:
In pydantic's, you can define a CustomType, which is any python class with the following class method named __get_validators__(cls) defined. The objective is to have pydantic validate the input to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Don't understand the parameters of checkAndGetNextWatermark method in AssignerWithPunctuatedWatermarks Following is the javadoc for the AssignerWithPunctuatedWatermarks and checkAndGetNextWatermark
*
* <p>Timestamps and watermarks are defined as {@code longs} that represent the
* milliseconds since the Epoch (mid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: /var/log/messages flooded after reboot After a routine cPanel update I was notified that I need to reboot the server:
The system’s core libraries or services have been updated. Reboot the server to ensure the system benefits from these updates.
Which I did soon after.
However, after reboot I noticed my /var/log/mes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Python - Loop through folders, each folder create a database in mysql I would like to create a database in mysql for each folder name from a path.
import MySQLdb
db1 = MySQLdb.connect(host="localhost",user="root",passwd="password")
cursor = db1.cursor()
#sql = 'CREATE DATABASE chom'
#cursor.execute(sql)
# "https://... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: I changed bash to zsh and curl -o stopped working with this error: curl: (56) response reading failed (errno: 36) I used to run this curl -o command in Terminal in bash and it worked just well.
curl -o '/Users/tomasjelinek/Google Drive/Můj disk/ISP_Orders_last.csv' 'ftp://Tomas%20Jelinek:PASSWORD@XX.XX.XXX.X/Marketi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to mock an API using RTL and jest This is my test file:
import { render, act, screen, fireEvent } from '@testing-library/react';
import { Provider } from 'react-redux';
import { BrowserRouter as Router } from 'react-router-dom';
import i18n from '../i18n';
import ECMRequestDetails from '../views/RequestDetails/E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: react-youtube TypeError: Cannot read properties of null (reading 'playVideo') Unhandled Runtime Error
TypeError: Cannot read properties of null (reading 'playVideo')
Call Stack
eval
node_modules/react-youtube/node_modules/youtube-player/dist/index.js (65:0)
new Promise
exports.default
node_modules/react-youtube/node... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bar Chart in Python Jupyter Lab Not Plotting Instead Throwing Errors So, I am working on a data analytic project and I want to create a bar graph so on the dataset I have already used the groupby function to group the Month column in other to find the highest sales in a particular month using the following function ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to send dropdown in front of buttons? I have the following html with a SweetAlert2 date picker popup for the Click me! button:
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Boot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Elastic search 7.10 forcemerge doesn't merge the segments which are larger than 5GB Hi I have a Elastic search cluster which is having 11 shards. Each of the shard has around 70 segments each, and many of the segments are larger than 5 GB (max_merged_segment). They also have lot of deleted documents in them which is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trouble capturing Rust CLI output in Python using subprocesses I am running a connect four solver where the game is written in PyGame and where my logic for calculating the best next move given a player(1 or 2) and board state is a Rust program. I am trying to call this Rust program using the following code
result =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to work with columns that constantly changing I am working on a WMS website where I have to list products and their rates according to the distributor we are supplying. If I have 7 products I can add 7 columns and show their rates accordingly. But what if the company adds one more product? Then I have to extend ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Node API not working (node app structure) I was trying to break down the application into a manageable structure, which is causing my API not to work at all. When I made a simple get request "localhost:3000/users", I received a 404 error. I tried using a debugger; however, it seems as though it never reaches that ro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Leetcode output different from local computer output When I execute my code on Leetcode, it gives a different output than what I get in my local computer.
class Solution(object):
def maxCount(self, banned, n, maxSum):
pl = list({i for i in range(1, n + 1)} - set(banned))
for i in range... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: mock a specific file with mock_open in Python I use this code snippet (From: How do I mock a file open for a specific path in python?)
builtin_open = open
def my_mock_open(*args, **kwargs):
if args[0] == "myFile":
# mocked open for path "myFile"
return mock.mock_open()(*args, **kwargs)
# unpa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mask meaning in TransformerDecoderLayer I am trying to map my understand of the masks used in TransformerDecoderLayer to that of huggingface where attention_mask is used. Suppose I have the following model (and data).
decoder_layer = nn.TransformerDecoderLayer(d_model=64, nhead=8, batch_first=True)
memory = torch.ra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: getting double encoded url as next page link,in rest response I am creating a microservice to fetch virtual machines data from azure portal , I am using there official API but I am getting result in pagination, and getting next page link, in each response until there are no more response left, but sometimes I am als... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Taking sizeof of variable-length array — is there any benefit for doing so? I am working on a piece of legacy code (no tests). I stumbled upon a section hidden inside several macros. It generates a warning if compiled with GCC's -Wvla.
The code in question is equivalent to what can be seen in this small program:
typ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Padding lists inside nested list to make all of uniform length I am trying to solve a problem that given a nested list containing lists of variable size, create a nested list that contains lists of uniform length equal to the maximum length among the lists inside the given nested list. Append empty strings as paddin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to limit login to only certain domains when using sign in with google for web's implicit flow? I'm trying to implement google sign-in to my react SPA using their sign in with google for web API. I need a few pages to be internal use only which means login should only be possible for people with a cert... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sites-Framework and static_root In my project, 3 different sites are working in a virtual environment. I have a 4th dashboard design to organize these sites.
site1_settings.py
STATIC_URL = 'static/site1/'
STATIC_ROOT = BASE_DIR / 'static/site1/'
STATICFILES_DIRS = [
"C:/projs/ddd/static/site1/",
]
MEDIA_ROOT =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: My SwiftUI Button is not tappable for minus image systemName This is a fully reproducible example View to show the problem:
import SwiftUI
struct SwitchView: View {
@State private var timeMode = 1
var body: some View {
HStack(spacing: 0) {
Button {
timeMode = 0
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how do i center my texts and icons in my navbar I'm trying to clone apple's site and my text and icons in the navbar are in different positions. I'm practicing with html css and sometimes these kinds of errors frustrate me, so I believe it would be better to consult you.
*{
margin: 0;
padding: 0;
box-s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jib and AWS ECR Error uploading image to repository Hi I am using github pipeline to build image using jib and upload to AWS ECR. I keep running into errors.
AWS Settings
I have the env variables set correctly for AWS, and using command below in github actions step I can login successfully and list images
aws ecr ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error when trying to import a standalone component in a module I recently upgraded my project from Angular 13 to Angular 15. And now I'm trying to make some of the existing components independent.
I'm trying to use a standalone component in a regular NgModule but I get this error:
Class ExchangeCategoriesAutocomplet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75570638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |