text string | meta dict |
|---|---|
Q: Mysql close connection after some hours I'm running a whatsapp bot in nodejs that connects to mysql and every message performs actions in the database.
With each trigger of this the database connection object is created, the problem is that every day after a few hours of use the node generates this error:
Warning: g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to sort a Mongodb document having multiple duplicate values in a field. In my case tag has duplicate different values `Document 1:
Account: object
id: 1
acc_id: 57868
inst: Array
ins_it: 324
tag: green
Document 2:
Account: object
id: 2
acc_id: 57668
inst: Array
ins_it: 314
tag: green
Tried sorting with field tag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Why formdata submitted to server not changed after I being set by `formdata.set()`? I am encrypting password for users:
<form method="post" onsubmit="usernamePasswordLogin(event);">
// want to encrypt password field before submit formdata
function usernamePasswordLogin(x) {
var formData = new FormData(x... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I make only one class div element changeable, so that if one is clicked, others can't be? Javascript I'm trying to make a rating system, so that only one div at a time can be changed, but all of them can still be clicked.
const number = document.getElementsByClassName('number');
function changeColor(arg) {... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AWS Amplify using VS 2022 I'm new to React/AWS and have recently developed an application using VS Code, which seems to be the go-to tool. I'm wondering if it's possible to use VS 2022, which is a more feature rich dev environment?
I can create a Node.js app with React in VS 2022, but looking at the publishing optio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Authorization button in Swagger and enter bearer token in Spring Boot 3.0.0 project I want to achieve the authorization button in Swagger. For the older version, there were some configurations for Swagger, but I guess those configurations are not needed in the newer version. Added a picture that I want to achieve. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VBA - Continuing running macros when clicking on "Commandbutton" in userform I have the following subroutine which shows a userform in it.
Based on which optionbutton I choose in the userform, a variable should be assigned, then I would press "Ok" to continue running the macros and use that variable in the subroutin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Meaning of comma in converting to Percentage x = 0.3333
print(f"{x:,.2%}")
I found the output is the same without the comma in the print, which is:
print(f"{x:.2%}")
so what's the meaning of this comma here (the one between colon and period)?
A: Per the docs:
The ',' option signals the use of a comma for a thou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Same copybook for two files (input/output) I'm in a situation where it would be helpful to use the same copybook for two different files in an EZT program. I know in COBOL you can use OF to specify which file you would like to get and/or set fields for (i.e. VAR1 OF INFILE). Does Easytrieve have this capability, or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Simplify expressions given by sympy.sympify sp.simplify doesn't seem to work when your expression is given by sp.sympify. How can I change that?
import sympy as sp
r = sp.Symbol('r', real = True)
f_str = 'sqrt(1/r**4)'
f1 = sp.sympify( f_str )
f2 = sp.sqrt(1/r**4)
for f in f1,f2:
sp.pprint(sp.simplify(f))
wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: nhibernate update when using Joined Subclasses strategy I'm having the same problem reported here, but I cannot figure what was the solution:
Update issue
I have a Child class defined like this:
public class ChildMapping : JoinedSubclassMapping<BaseEntity>
{
public ChildMapping()
{
th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Apache Storm debugging in Eclipse I'm trying to debug Storm topology in local mode in Eclipse.
I use Apache Storm 2.4.0.
And my code looks like this:
package stormtest;
import java.util.Map;
import org.apache.storm.spout.SpoutOutputCollector;
import org.apache.storm.task.TopologyContext;
import org.apache.storm.to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Date between two specified dates I have a condition where the FDOS and LDOS dates must be between 01july2021 and 30june2022,
where dates between 01July 2021 and 30June2022?
how to code in SAS?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75593828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: How to initiate Dell Command updates remotely with a Powershell script In short, I have an environment with ~165 devices requiring firmware updates available through Dell Command/Support Assist. I've tested a few scripts by changing to the Dell Command directory and then executing "dcu-cli.exe" with arguments to byp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: python gets an error when i open a new file enter image description here
please help. I am trying to open a new file in a folder and it gives me this error when I open it. What can I do?
i deleted the file and created a new one, but it kept giving the same error. I opened the Visual studio and it was the same.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75593832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Orbeon Forms: Read grid and section of a control How do I read the grid and section that a specific control sits in?
I need to use this information in an xPath formula to dynamically build up the formula string.
Many thanks
PeteA
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75593833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sizeof Fortran derived containing allocatable array I am curious about the sizeof Fortran derived type.
type structInt
integer :: n
double precision :: f
end type structInt
type(structInt) :: a
A sizeof( a ) gives (on my system) a result of 16 bytes, which is fine considering padding is added.
But if there is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Q) my session is not saved on the browser storage ``
import { Request, Response } from "express";
const express = require("express");
const app = express();
const bcrypt = require("bcrypt");
const memberDb = require("../models/member");
const passport = require("passport");
const LocalStrategy = require("passport... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Display content only in full screen mode I am a newbie and know that I can't force a user's page into full screen mode; but, at the same time, want to make my site unviewable unless it is in full screen mode.
Is there a way to do this?
I haven't tried anything yet because I am new to this and don't really have any i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How do I save the CLion console output to a file? I'm running an executable I built, within CLion. The bottom of the window has a pane with the executable's console output. I see a button from printing it and for clearing it - but not for saving it to a file. Can I do that, other than by manually copying the text in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Sampling sorted vectors whose multiplication with a design matrix is also sorted I want to sample the elements of vectors a, b, c of length C in a way that both the elements of each vector a, b, c as well as the elements of D %*% A1 are sorted. Here, A1 is the matrix that results from row-binding the vectors a, b an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: 2 activities one adapter , getItemCount() I'm using one adapter for 2 activities
everything is the same except the getItemCount() method.
It should return 5 items for Activity A and the whole list for Activity B.
I tried to use this in getItemCount(), but it is not working:
if (this.context instanceof Activity1)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I am trying to work on a encoder and decoder in python. I made the encoder but am struggling with the decoder index = 0
for i in range(img_array.shape\[0\]):
for j in range(img_array.shape\[1\]):
for k in range(img_array.shape\[2\]):
if index \< 160:
img_array\[i\]\[j\]\[k\]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get a mean of the columns value in correlation with the mean of unique rows in R I have a dataframe that is like
A = matrix(c(1, 2, 3, 4, 5, 6, 7, 8, 9),
nrow = 10,
ncol = 6,
byrow = TRUE
)
rownames(A) = c("2.4", "4.5", "8.5")
colnames(A) = c("X1", "X2", "X3")
Col have X values. I want to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add general validation error message in form? I have a form (antd) divided to a few sections, and in each section there are a lot of Form.Items, and each Form.Item has rules like required, specific type, etc.
in case there are any errors in the validation of any Field.Item - I want there to be a single specif... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Constrain elements in a PyTorch tensor to be equal I have a PyTorch tensor and would like to impose equality constraints on its elements while optimizing. An example tensor of 2 * 9 is shown below, where the same color indicates the elements should always be equal.
Let's make a minimal example of 1 * 4, and initial... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Accounting for covariates (site effects) with mlr3 machine learning (pipelines) I have gone through the entire mlr3 book but am unable to find a solution for how to address site effects in my data, as it comes from a multicenter study. I theoretically know about leave-site-out CV, but as the amount of participants c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to change the "add new tab" button on react-bootstrap Tab Control? I have a react-bootstrap Tab Control in a system, and the page where it's called opens with that look:
screen
I would like to load the page with a tab already opened and that the "new tab" button located under the tab, something like that
propose... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WebAssembly module cant locate .data file when loaded in Comlink WebWorker in React Vite I try to load a C WebAssembly Module in a React Vite App inside a WebWorker. When loading the Module in the main thread everything works as expected and the wasm.js can locate the wasm.data file inside /public folder. But when l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python match case: continue to match next case even matched? key: Literal['all', 'a', 'b'] = 'a'
def do_a():
pass
def do_b():
pass
match key:
case 'a':
do_a()
case 'b':
do_b()
case 'all':
do_a()
do_b()
Is there any way to simplify the code so I can remove the ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check Apple Pay and Google Pay availability in Flutter I need to list all available payment methods in my app, so in case Apple Pay is configured I need to show it in my payment methods list, and same for Google Pay.
Is there a way to check whether the user have Apple Pay / Google Pay configured on their devi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Index of hovered item in JavaFX combo box It is possible to get the index of the list item I am hovering over in the listview of a combo box? I have tried to place an event filter on on the popup content of the combo box. Within the event filter I try to get the selected item index but the index is always -1.
A: Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: design.bib is asking for a different k I'm trying to make an experimental design for an upcoming experiment.
As I have 68 treatments (in 12 replicates) and only room to run 30 at the same time, I would like to set up a randomized balanced incomplete block design. However, when I try to design one using agricolae's d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to remove the scroll bar on the right? I added html embed code and then the scroll bar is on the right.
I tried to change the map width from 1500px to 500px just for testing, but the scroll bar is still remained.
Maybe it's something with the site design in wix? but I tried everything I can think of.
Maybe somet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generic math how to cast from INumber to a "concrete" type (int/double/etc) Suppose we have a generic method which accepts INumber<T> and returns int:
// process val and return as int
static int DoSomething<T>(T val) where T : INumber<T> => ...
How can the T be casted to int.
A: INumberBase<TSelf> defines several... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Most Efficient Way to Fetch Large Amount of Data and Write It to Postgresql I am writing a Python Lambda function in AWS that does the following:
*
*fetch data from an external API using the requests library
*write the data to a postgresql table
The catch: the returned json has only 2 fields that need to be writ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Accessing properties using this.property versus ClassName.property This is probably an easy-to-solve question but I do not look for solutions, I look for explanations. So I've been working on understanding Objects in JavaScript better and played around two days now with Objects. But in my learning journey I don’t se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "Best" way to target specific hosts. Using inventory groups or `when` statements inside tasks? I use Ansible at home to manager my 15 servers. I currently have 27 playbooks and 24 roles. I'm trying to combine things because this is too many playbooks/roles to manage.
Every playbook has hosts: all and I use --limit w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I am using CKEditor to include some HTML code work on the first save, disappear on the second save We are trying to include this piece of code in a CKEditor cell and it will work not stay saved until we try to reopen to edit.
I am try to have an app built to give away to local businesses so they can post announcemen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GCP Cloudbuild Slack bot shared across multiple projects Ive been able to create a slackbot, create a service account, pub/sub and sent notification via CloudRun calling a yaml and json config on a storage bucket, all at project level much like what is done here so that when a successful build occurs we get notified... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How To Present Stripe Card Scan? I am attempting to present Stripe Card Scan in SwiftUI. My goal is to create a button that allows users to push it to scan their credit card, rather than having to type it in manually.
I am looking at the tutorial here which shows how to present the Stripe Card Scan sheet in UIKit, b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem with reactive geom_boxplot in shiny I am trying to create a simple Shiny app that creates a mutable boxplot using ggplot. The original plot shown will include all groups, sorted by ascending mean of the variable chosen, with the first variable originally chosen as default. Sample code that simply replicates ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Combining data in the same column I'm researching the amount of counted individuals during four different sampling days for 9 different Town districts. so 4 count at 9 locations.
I was able to plot Sampling 1, 2, 3 and 4 indipendently from each other. But i have a threshold of 60 counted individuals to be able to ut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Prisma does not update the record when called inside a Next.js API route I am trying to update the current user's profile picture using a Next.js API route.
After validating the request (making sure the user is authenticated and the new profile picture is valid), I upload it to Cloudflare R2 using the AWS S3 SDK. Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: capture high res/frame rate in x11 I'm doing c++ project which is screen recorder for high resolutions/frame rates on linux.
A lot of libraries on linux written in c, so I also use them.
I've already written screen capturing using nvfbc (only nvidia), but I want to code fallback if nvfbc is not possible to use or if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: SELECT INTO OUTFILE with UPDATE field in Mysql Hi how can I put the following statements into one query:
*
*Select certain mysql data
*Export these data
*Update the status column of these exported data with status "ex"
I tried this but it did not work:
UPDATE TableA SET status = "ex"
OUTPUT columnA, columnB
INT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: There is no assemble option in Android Studio - Gradle panel (1) I am trying to build an Android source project by using Gradle - assemble.
(2) Other developers in my team said there is assemble option in Android Studio - Gradle panel.
But in my environment there is no assemble option.
(3) I am using Android Studio ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to send a reply on behalf of a shared mailbox from within the shared mailbox context using Microsoft Graph API? I have an application that uses Microsoft Graph API to receive and send emails from multiple shared mailboxes.
The application authenticates itself using OAuth to an App in our Azure Active Directory t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Filtering in GWT modules with maven and gwt-maven-plugin I have a GWT project, with 3 modules :
- MyProject
- MyProjectProduit
- CatalogueConnecte
I need to have some resources (html files) filtered, to get the ${project.version} in them.
The war generated by maven have this format :
META-INF/
...
WEB-INF/
classe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Conflict of multiple version of assembly I have 4 projects in a solution that refers to "System.Net.Http" and each of them has the following property:
Project1's packages.config contains the following package reference:
<package id="System.Net.Http" version="4.3.4" targetFramework="net48" />
Projects1's app.confi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Docker with Java Unable to access jarfile application.jar i'm trying to excute this command for my Spring boot application:
docker build -t api-gateways-layered -f Dockerfile.layered .
however i got this error
=> ERROR [builder 4/4] RUN java -Djarmode=layertools -jar application.jar extract ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Upcasting a widget In a Rust GTK4 application, an event handler needs to send a message to its root, which is a subclass of ApplicationWindow. I can get the root in the handler by "button.property("root").unwrap(), but what I get is a Widget:
Some(
Widget {
inner: TypedObjectRef {
inner: 0x00... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: KQL Pipeline connection with Activity and Trigger In KQL I can connect ADFPipelinerun with ADFActivityrun by using CorrelationId (join). But now I want to join ADFPipelineRun with ADFTriggerRun but it doesn't work with the CorrelationId. I tried it with the RunId but the RunId is not available in my table from Trigg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to link two authentication methods of firebase I have an android application in which user first registers using email id and password. In the login page I have given two options to login one is using the email id and password which was used to register and other is google sign in. But when the user signs in wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Flutter problem with advertisement Manufacturer data in iOS I am using Flutter_blue_plus package in Flutter project in order to deal with BLE devices.
I am encountering a weird behavior in iOS where the advertisement Manufacturer data is empty. On the other hand, Android version works perfectly fine.
Here is an Exam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Node + PostgreSQL - is this a valid way to execute transactions? I have an api built on Nodejs that uses node_postgres.
The website says: ...if you initialize or use transactions with the pool.query method you will have problems.
Im using pool.query where I don't need transactions. But I'm creating a client and rele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to add unlimited array or vector without using List? on c# because they Closed my question i am asking again want to create an add method to add movies without any limitation however I don't want to use List and what i have used in this code is that i have used array and vector but it is limited i don't want it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to ask a questions regarding Flutter, Dart, Vscode? In order to provide as much information as possible what kind of information should I attach to my questions?
Current Issue: My Flutter app will launch in Swift to my physical device (Iphone XR) however, I get a 'cannot run pre-compiled...' error when I try to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How can I load the fxml File from this location? (getResource don´t work) I wanted to access the fie.fxml file, my problem is that at the resources folder there are two more folders.
If I want to access the be.fxml file displayed there, I can simply write at getResource("be.fxml") and that works, but if I write fie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: GCE Ingress expose websocket service I want to expose 2 services:
*
*web application at example.com port 80
*web sockets at example.com/app/ws port 8000
with given configuration:
apiVersion: "v1"
kind: "Service"
metadata:
name: "web-app-service"
annotations:
cloud.google.com/load-balancer-type: "Internal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: torch circular import AttributeError I am trying to use a script that uses torch but I keep getting this Attribute Error:
AttributeError: partially initialized module 'torch' has no attribute 'Tensor' (most likely due to a circular import)
I have tried running
pip3 uninstall torch
pip3 uninstall torchvision
pip3 uni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I get an error: org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameters I got this response when I tried to automate the login page. The app only launches and nothing more.
public class Sign Up {
Android Driver driver;
@Test
public void Launch APP() ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AWS Connect $.Attributes returns an extra .(dot) in result I am setting a user defined key called 'self_option' in connect flow and referencing it using $.Attributes.self_option when passing it to my Lambda function.
It works fine but instead of getting value 'bill_pay' I am getting a value '.bill_pay'
Any idea wher... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jq: error: - X/0 is not defined at , line 1 My jq filter:
. | select(.type=="Point" and .metric == "http_req_duration" and .data.tags.status >= "200")
My demo json:
{"type":"Metric","data":{"type":"gauge","contains":"default","tainted":null,"thresholds":[],"submetrics":null},"metric":"vus"}
{"type":"Point","data":{... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Opening Windows File Explorers to specific network locations on specific locations on the screen Taking this PowerShell/batch hybrid script above, how to make it open specific locations in each Explorer window? I have 3 windows I open each morning and they are 3 different network shares... and I'd also like to open ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Picker automatically opens when ContentView is displayed by TabView I'm developing an Android-only app using MAUI.NET. I'm using the DevExpress library, in particular the TabView control. I've split my editing forms into ContentView objects to be displayed by the tabs.
Item.xaml:
<ContentPage xmlns="http://schemas.m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Suspicious assembly inflation while compiling doubly-recursive function Suppose there's is a recursive function foo() similar to Fibonacci's Sequence:
constexpr inline int foo(const int i)
{
if(i == 0)
return 1;
return foo(i - 1) + foo(i - 2);
}
int main(int argc, const char* argv[])
{
const i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Allocate memory on pointed pointer to char I am trying to realloc my word list with the word number counter (assume it is set previously). I stick on a segmentation fault at the reallocation line. The word pointer is char-sized.
Where is the actual problem ?
// counter
int word_nb = 3;
// buffer allocation
char **wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to write a react typescript library to serve multiple data structures? I'm trying to combine different webapps into a monorepo now. I have several modules in my apps which uses charts. I'm trying to write a library to chart the data from different data structures. I try to code a "graph-builder" module where I w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get a percentage of weeks that have at least one occurrence? In my app an area can have many happenings. I want to find out over a given timespan, what percentage of those weeks had at least one session listed. It doesn't matter how many were listed, so long as there was at least one. So as an example, say in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Select only text and images in css I would like to put an animation to the text and the images of my web page but without selecting the other elements.
This is the code of my animation :
@keyframes load {
0% {
opacity: 0;
transform: translate(-125px);
}
10% {
opacity: 0;
t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I attach file to Google Classroom 'materials' assignment using Apps Script? Using apps script in Google Sheet I can create a new assignment or 'materials' for students in a Google Classroom, passing the information programmatically from Google Sheet.
One of the fields in the Google Sheet - responses from a Go... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is the code running properly when it shouldn't in PopSql? CREATE TRIGGER my_trigger BEFORE INSERT
ON employee
FOR EACH ROW BEGIN
INSERT INTO trigger_test VALUES('added a new employee');
END;
The above code works fine in pop sql but it shouldn't work because the delimiter by default is ';' and you can't change i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where and how to edit/expand WordPress' menu-editor in back-end? I want to expand the functionality of WordPress' menu-editor in WordPress' back-end.
For example, I want to add an extra field which can be accessed in front-end, for example an aria-label.
Where and how do I do that?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75593953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: counting(summing) total visits within a year from the first visit date I want to count(sum) the number of visits from first visit date to next 1 year, for example in case of A there are total 3 visits within 1 year and in case of B there are total 4 visits within a year from first visit date.
or
I want to extract th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't cross-compile/run valgrind on ARMv7 machine all.
I am trying to cross-compile valgrind in PC x86_64 Fedora35 to ARMv7 (cortex-a8) embedded system running Linux 2.6.37.
When I compiled and ran version 3.20.0 it said "FATAL: Kernel too old" although Valgrind states that any kernel younger than 2.6.31 is ok.
Chat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Where are those Pipeline Name Variables stored and how are they called? (If anybody thinks of a better title, feel free to change)
In my CI Pipeline yml i did not add a name attribute, but there is some kind of magic in the names. I did not make the project from scratch, though chances are big that somebody else ini... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When changing currently signed users email, I get CREDENTIAL_TOO_OLD_LOGIN_AGAIN I have a user who signs in it with: signInWithEmailAndPassword method. Then they go to their profile and want to change their email address with: updateEmail method.
However I keep getting error: CREDENTIAL_TOO_OLD_LOGIN_AGAIN, which I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any harm or drawbacks if i pass the PnPcore Context from my main method to a private method I am working on building a Azure Function using Visual Studio 2022 + PnP Core SDK. now i build the PnP context inside the Run() method, as follow:-
[FunctionName("Function1")]
public async Task RunAsync([TimerTrigger... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Powershell - Skip inaccessible files and continue I'm trying to recursively delete all files and folders inside of a folder with Powershell via:
Foreach ($File in $ListFicher)
{
if ($?)
{
try{
Remove-Item -force ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Colored background for subplots Matplotlib I wanted to have a background for each subplot of my figure.
In my example, I want the left side to be red and the right side to be blue.
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.gridspec import GridSpec
fig = plt.figure()
gs = GridSpec(1,2,figure... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to know the exact selected version of TLS server I want to ask regarding the following case TLS client supports v1.2 and v1.3. Is possible that the client firstly only send in the client hello minimum supported version as TLS1.3 with specific ciphers and if the server selects other version(1.2) then the client r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TypeError: parse_value_from_xml_last_tag() missing 1 required positional argument: 'attr' I have some code that's trying to build an ipsec VPN tunnel but I get the error (TypeError: parse_value_from_xml_last_tag() missing 1 required positional argument: 'attr') when the code gets to the panos_tunnel module.
- hosts:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: awk - ignore pattern I'm trying to extract some text using awk.
Here the sample file:
some text
var x=[
0, 1;
1,0;
2,1;
3,2];
other text
So, when I execute the following command :
awk '/var/ , /;/' file
I obtain :
var x=[
0, 1;
Result expected :
var x=[
0, 1;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I am getting this error while doing basic java question of entering enter the a 2d array and then print the array 1 2 3 Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3
at TwoDArrays.main(TwoDArrays.java:18)
import java.util.*;
public class TwoDArrays {
publ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Use json_query on a nested field of ansible_facts in an Ansible template? Attempting to set a MySQL Galera value based off the total amount of allocated disk space for the volume hosting the MySQL data directory. This value is different across our clusters and is based off a percentage of total allocated disk space... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: how make seperate file for bottom nav bar in flutter and the use import it render i just want to make a file which contain nav bar code and it can be drawn over other pages,like the pages are some what scroll able its also having some size issue with the row and column maybe after as shown below the results is cool,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: wpf: how to let a geometry reduce just one pixel for example:i have the red path(actually may be complex),how to dynamically get blue path just reduce one pixel?
A: Use two Paths with the same Data and let one be clipped by the Geometry in its Data:
<Window.Resources>
<Geometry x:Key="PathGeometry">M0,20 L12,0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I want to make online editor. What can I do such that my code color changes automatically? I want to make a html, css, javascript online editor as a fun project. I want that when i typing javascript function in it, It should change that function name color to orange and for html tag color should be automatically cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to open a pop-up browser window for user login on another website and get personal info? I want to build an application that parses some data on a specific website, which requires login and is protected by a captcha, and I want to create a pop-up browser window so that the user can input his username, password, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: rsa routines::data too small for key size, rsa routines::data too large for key size I am getting an errors when I used crypto.constants.RSA_NO_PADDING respectively.
node:internal/crypto/cipher:79
return method(data, format, type, passphrase, buffer, padding, oaepHash,
^
Error: error:0200007A:rsa rou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to combine and parallelize two async calls in Kotlin If I have two async methods, i.e:
subscribeToUserPhone(userId: Int, callback:(String)->Unit)
and
subscribeToUserStatus(userId:Int, callback:(Int)->Unit)
I'd like to provide a convenience method:
fun subscribe(userId:Int , callback:(UserInfo)->Unit)
//where ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to find the coordinates (x,y,z) of the intersections between the arrays? I have this code:
import numpy as np
import matplotlib.pyplot as plt
a0 = 0.14
theta = 1.2
nmax=15
# lattice vectors sublattice 1
a1= np.array([3/2*a0,3**0.5/2*a0,0])
a2= np.array([3/2*a0,-3**0.5/2*a0,0])
# lattice vectors sublattice 2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Accessing probabilities for PipeOps TwoClass Classif Learners I am currently working on mlr3shiny. This program utilizes various mlr3 methods on an R shiny UI to make mlr3-models. I am currently unable to properly integrate the learner-objects to work with DALEX for model analysis. This problem arises only for twocl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: APACHE SOLR QUERY Solr is an already registered domain.
let's think. The name of the field is a field kept as “updatedAt” long type. I am from January 2020
When I say fetch the next data, what kind of query should be written to solr? http://example?query=
How should I fill in the part?
I need a query example to writ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: principe of Laravel resourceController show() method working Sorry if my question is kinda stupid, but i do not understand how show method returns me customer by id, where the functional is given?
my api router
Route::group(['prefix' => 'v1', 'namespace' => 'App\Http\Controllers\API\V1'], function(){
Route::apiR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Telegram, Python-telegram-bot==13.13, webhook help me figure out what the error is. I redesigned the bot to work from a webhook I will receive a reply from a telegram POST /webhook/ 200 OK but the bot stopped responding to commands when I press /start the bot is silent. Tell me where I went wrong? thanks in advance
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75593999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AttributeError at /users/register/ Manager isn't available; 'auth.User' has been swapped for 'userty.MyUser' I get this error whenver I try to register a new user from my website.
I have two types of users (Athlete and Host). Ive created their models as follows
from django.contrib.auth.models import AbstractUser, Ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75594002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What JOIN types can be simulated with CROSS JOIN? The Wikipedia article reads about CROSS JOIN:
The results of a CROSS JOIN can be filtered using a WHERE clause,
which may then produce the equivalent of an inner join.
Are there any other types of joins that can be simulated with CROSS JOIN and WHERE (or possibly s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75594003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How is it possible to have components (div, selectors, ...) in Mui Textfield How would it be possible to add other components into a mui textfield?
I'd like to have something similar like the gitlab searchbar in my mui project.
Thanks for information, howto, libs!
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75594004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |