text
string
meta
dict
Q: How can I apply my one dimension vector rotation to 5 dimension array? I have x and y values and I concatenate them and result is features= array([[-1.9182, -0.9591, 0. , 0.9834, 2.0482], [-1.9425, -0.9834, 0. , 1.0648, 2.1349], [-2.0482, -1.0648, 0. , 1.0701, 2.0569], ..., I have below code for th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Lazy-loading @angular/forms and inject Directive into ViewContainerRef/ElementRef I want to lazy-load @angular/forms (I don't want to import into the main module, because I want to optimize the main chunk size) and I don't know exactly how I can inject the FormGroupDirective into my form reference (ViewContainerRef ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Optional property based on whether the generic type is passed How to make an interface so that when T is passed, a is typed T, and when it's not passed, a can be optional (a missing property), for instance: interface A<T = void> { a: T } const a1: A<string> = { a: 'a' } // No error, good const a2: A = {} // S...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Issues with Google maps scraping using R I am trying to learn web scraping by scraping average google reviews and addresses on google maps. But I have a few questions that I hope to get help on: * *Missing reviews, making date difficult to match This company has 6 outlets. But only 5 has reviews. Google map So wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to call tron contract function with hardwarewallet from react I have a contract on the Tron network, I want to have a react frontend to call a function of this contract using hardware wallet. Enybody knows how to do this? Thank in advance A: You can do this by following these steps: * *Install the Tron librar...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Does Z3 solver internally unnests nested function terms I was wondering if the Z3 solver (perhaps only in some circumstances) uses a graph of a function to unnest a nested function term by introducing a new quantified variable. For example: f(g(5)) = 10 could be expressed as: ∀ x : x = g(5)⇒f(x) = 10 or with the gra...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert a column of a table into a tuple? Here is a table and I want to update the column with the following script. init=array(DOUBLE, 0) val t=table(1..5 as id, `a`a`b`b`c as sym, 2022.01.01 + 1..5 as date, [1.0, 2.0, 3.0, 4.0, 5.0] as val) update t set v=accumulate(def(a, b){c=a;c.append!(b);return c}, val...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Review validation failed: userId: Path `userId` is required When I make API request in thunder client a message says Review validation failed: userId: Path userId is required. ********* IMPORTANT NOTE ***** I create api request in thunder client by folllowing syntax "noteId":"63ff4386680d63958c49306c", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Staging website redirects to live, can't find the cause A bit of a headache for me. We have a staging website set up on a subdomain. But for some reason, two things are not going quite right. * *There seems to be a relationship between plug-ins. If I deactivate a plug-in on staging, live also goes inactive. Is thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android POST image with okhttp using a tunnel From Android I've to post an image to a target system, which is only reachable with a tunnel. Currently I push image A to a system which comes with a tunnel to target system, and from there I'm able to post it to target system B Now I want to post from Android direct to...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: get mean date of dates in a column I have a dataframe and I need to calculate the mean of a group of dates because I need to match it later with one date of another dataframe. this is my example data frame: variables =c("a", "a", "a", "b","b", "b", "c","c", "c") date_measured = c("2021-07-01","2021-07-08","2021-07-2...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Htmx trigger when datalist option is selected I have an input with a datalist in a django template. Right now it has a keyup delays trigger to fill the datalist, basically a search as you type. <input list="users_list" type="text" name="name" placeholder="Username" id="user_search_bar" value="" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Permission error when trying to parse API using requests.get in Python I'm trying to parse some data from an API URL. When I open the URL in my browser I can see the data I'm looking for. But when I try to open it on python using the requests model, I get an error saying I don't have permission to access it. Code: i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to properly insert/get Array of json Objects into myslq with laravel frankly speaking this is my first time working with Json Array in Mysql and Laravel. I have spent a day try to figure this out without a success. After inserting data into the database, the data looks like is not a well Json array object, I hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React useState() creates too many unnecessary re-renders in a really Big Form making the app slow I am using useState() hook to handle user input in a form that is really big and extends over many pages. The problem is that on each keystroke, there is a re-render, making the React app very slow. Additionally, there ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Change arrow color of nb popover I want to change the arrow color of the nebular popover: https://akveo.github.io/nebular/docs/components/popover/overview#nbpopoverdirective
{ "language": "en", "url": "https://stackoverflow.com/questions/75613462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: my mqtt recived many connection but cant return a connack I am searching for a long time on net. But no use this is occasional problem; here are false mosquitto.log 1677746403: New connection from x.x.x.x:53696 on port 21883. 1677746403: New connection from x.x.x.x:53698 on port 21883. 1677746403: New connection fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: match the value of subjects present in sheet1 with the values present in sheet2 and add the count and subject in sheet3 So the problem is , i am trying to automate a task in which i have certain subjects lists in sheet1 first column and sheet2 contains all the emails received . i want to compare the sheet1 with shee...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Lombok: Vaadin binder gets a stackover flow error when entity model consist of a another model I'm getting this error when my entities consist of another entities. I also tried Jackson annotations also doesn't help. when only trying to save one entity it is fine. It happens when models consist of other models java.l...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to fix Angular prod issue "Uncaught (in promise) Error: Minified React error #321" I have this error below enter image description here when I am on the production. The app is built using fuse template this is my package.json : "dependencies": { "@agm/core": "1.1.0", "@angular/animations": "^13.3.11", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Docker Windows Compose Traefik Hej, I am trying to install Traefik on my docker system (Docker for Windows with gui and Portainer). Now I should create the traefik.yml and transfer it via volumes. This is what the tutorial says: volumes: - ./data/traefik.yml:/traefik.yml:ro I tried to create a volume called traef...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: I cannot move the image I selected to the coordinate I want. Where am I going wrong let zIndex = 0; let selectedImages = []; const images = document.querySelectorAll("#menu img"); for (let i = 0; i < images.length; i++) { const image = images[i]; image.addEventListener("click...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: why cnn_face_detection_model_v1 So slow on GPU? I want to use cnn_face_detection_model_v1() to detect the face on gpu,but it requires nearly two seconds to detect it,i dont know why? t1=time.time()*1000 detector = dlib.cnn_face_detection_model_v1('./mmod_human_face_detector.dat') sp = dlib.shape_predictor('./shape_p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error Expected ';' when trying to #import .h file I'm creating a framework to connect this objective-c project with my swift project, but I'm getting many errors when I try to import the ViewController.h to my CompanyView.m, and there is no errors of typing or something. I'm really stack with that, appreciate your h...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can we efficiently generate Shapely polygons while excluding a set of points, and including a set of points? I want to generate N polygons that should satisfy the following: * *It must NOT include a set of points (at the maximum 50) *It MUST include a set of points (at the maximum 50) My strategy is to creat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rest - GET vs POST I want to design an API call following REST principles. Let's assume I want to get users info where Users are identified with ids. With a GET method, the call would look : /users?id=XXXXX, YYYYY, .... The problem with this is : what happens when the list of users sent is too big ? The URI size lim...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem converting tkinter into flask library Im having dificulty that converting python file with tkinter library into web based app with flask library. Do flask library able to do this web infrastructure?[this is the infrastucture of this web](https://i.stack.imgur.com/JEXOi.jpg) And i got dificulties on merge the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: 12.16.1 Watercolor Grid (javascript) How do I fix this? please help I need to create a grid of NUM_ROWS rows by NUM_COLS columns, and in it store a count of how many times we have moved over each location. Each time you move over a location, update the color of that location on the grid using our helper function. M...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Downloading a file via Requests.get(url) raises socket.error: [Errno 10013] I need to download a file from a Python program using requests module. If run the following : self.proxy = {"http_proxy": "...", "https_proxy": "..."} request = requests.get( file_url, allow_redirects=True, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Difference between C++ remainder and NumPy/Python remainder In C++, the following code: #include <math.h> #include <iostream> int main() { std::cout << remainder(-177.14024960054252, 360) << std::endl; } Compiled with x86-64 GCC 12.2 (https://godbolt.org/z/43MzbE1ve) Outputs: -177.14 However in Python: np.rem...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: useEffect not fetching my data and causing mapping error useEffect keeps returning null data. Here's the code in my TypeScript app: import TracksListing from './TracksListing'; import axios, { AxiosResponse } from 'axios' import { useEffect, useState } from "react"; interface AlbumDetailsProps { id?: string } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: GB improved search loading animation disturbing users Improved search loading animation disturbing users.The loading screen in the new search experience contains patterns that may trigger elliptic seizures or block outs in some individuals
{ "language": "en", "url": "https://stackoverflow.com/questions/75613498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Custom Alert Dialog gives a lot of Resouce Compat error I am just creating simple custom alert dialog. But it gives me a lot of error related to Resouce Compat: Creation of alert dialog: class CustomLoadingDialog( activity: Activity ) { private val dialog: Dialog private val view: View private val t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Maintaining two git repos side by side Lets say I've one git repo named Patterns which is my main repo and usually me and my team push and update our code base here. Now I want to create a new repo named NewPatterns from this same repo(git clone Patterns) but It will be maintained separately and will have a separate...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I'm having a bit of trouble setting up tailwindcss postcss to convert my scss file I learnt about parcel today, and I decided to configure it as part of the project I'm working on. { "name": "ip-address-tracker-master", "version": "1.0.0", "description": "This is a solution to the [IP address tracker challenge on F...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't augment react ComponentType type I'm trying to augment the React ComponentType type for a compatibility layer I'm developing in my application, migrating from React 16 to 18. The problem is, my augmented ComponentType is not being read. The default ComponentType defined in React types is being used instead. If...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to handle related entities in an event sourced aggregate I'm adventuring myself in the world of ES and CQRS and I've been reading a lot about it. Unfortunately, most materials don't go beyond the basics and when you start trying to apply it to real-world examples you start stumbling into stuff not covered in the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get our SQL Linked Server to run multiple queries We have a linked server setup between two SQL servers (Server A and Server B). We have come across and issue recently when we run a query to modify a record on Server B from Server A. The query runs fine the first time but when we rerun the command for the n...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: tf.tensor_scatter_nd_add along channel dimension Suppose that I have a tensor, T, with the shape of [batch_size, height, width, channels], another tensor, U, with the shape of [batch_size, height, width, N], and an index array, I, with the shape of (N,). I would like to do something as follows: T[:, :, :, I] = T[:, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to display a quad parallel to a plane with ARCore I am working on an ARCore project based on the Google Hello_ar_Kotlin sample (https://github.com/google-ar/arcore-android-sdk/tree/master/samples/hello_ar_kotlin). I need to display a reticle on the center of the screen and parallel to the plane is collided with....
{ "language": "en", "url": "https://stackoverflow.com/questions/75613511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to compare two data sets using the diffdf package in R? I need to compare some pairs of huge data sets with each other based on the values in two columns as the key. Each pair of data is indeed an older version of data and the updated version. So there are some IDs that do not match. I used semi_join to subset t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: pass value to looker studio dyanmically from web app I have created a chart with custom query and columns used in where clauses are working with the parameters, I am able to change the value and the chart is reflecting as well, I am also able to do this through changing the URL as well, But I need to embed this fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I prevent a line from appearing on top of the legend? I'm plotting a 2 axes graph with matplotlib. The problem I struggle with is that when I plot the second line (pH), it appears on top of the previous legend. Is there any way to send the line to the background (as we do in Office Word). I would also like t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot see log from unit test in Android Studio I'm working on an Android app written in Kotlin. I would like to use Log.* to see the output of some very simple logic in a unit test, rendered as string. I'm using mockk as suggestested in this other question. I don't get any errors, the test works fine; however, not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Updating a list according to another list in Python I have lists J and CB. I am updating J based on elements in CB but I want to insert 0 whenever CB[i]=[]. I present the current and expected outputs. import numpy as np J=[[1, 2, 4, 6, 7, 9, 10]] CB=[[], [np.array([0.00351331]), np.array([0.0070412]), np.array([0...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to show gridlines while export in excel using crystal report in asp.net C# I am using crystal reports in VS 2022 and I want to export my data in excel format. Wanted to show data with gridlines but its not appearing. Tried this ExcelFormatOptions excelFormatOpts = new ExcelFormatOptions (); excelFormatOpts.ShowG...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Flutter device list not showing web server I am developing a flutter web app and when I try to run it on a mobile device it has some bugs so I want to debug it on emulator's browser but when I try to run my flutter web app I don't see web server in flutter device list I am finding a way to run flutter web on my IP ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get data to labelbox via cloud function I want to write a Google Cloud Function to retrieve data from a bucket and upload it to Labelbox. Here's the function code: import labelbox from labelbox import Client, Dataset import os import uuid import logging # Add your API key below LABELBOX_API_KEY = "my api key" clien...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Metric ga:Cost returns 0 with dimension ga:CurrencyCode I am trying to get data for metrics ga:Cost ,ga:transactionRevenue with dimension ga:currencyCode from https://analyticsreporting.googleapis.com/v4/reports:batchGet google analytics. When i include dimension(ga:currencyCode) in request body the value for metric...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I check the internal id of vertices and edges in the Java API in Galaxybase Database? I’m using a graph database called Galaxybase (v3.4.1). How can I check the internal id of vertices and edges in the Java API? I did not find a way to check the internal id. I can't find the English technical documentation i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to generate Foreign Key via JDBC Statement in Springboot/JPA WebApplication I just started working with the Vaadin Framework. I want to generate a Database with a foreign Key. The Problem is, that I get an error message every time I try to start the application. This ist the error that appear: `2023-03-02 10:...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Swift 5 crashes due to memory error at 400MB used memory I have a learning app where I chain multiple ViewControllers together using the function: let main = UIStoryboard(name: "Main", bundle: nil) weak var levelCompletedViewController = main.instantiateViewController(withIdentifier: "levelCompletedViewController") ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: use react to remove object in dynamic form I've created a dynamic form that adapts to my changes, allowing me to add, remove, and modify objects and input fields as needed. However, my remove function isn't functioning correctly. Although it deletes the appropriate element in the Value variable when I press the dele...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to import automatically a MySql db in a MongoDB keeping relationships? I am creating a CMS to manage a large amount of data coming from an e-commerce. This CMS should therefore perform some CRUD operations. I would need, already from the dashboard, to load a large amount of data that is also obtained from relati...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: is there a python way of listing all the properties I'm really new to python so I'm not 100% sure about the terminology. Tried googling but none of the answers i found work for my use case. I've made some code to list out all my emails import win32com.client import pandas as pd outlook = win32com.client.Dispatch('O...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Recreating a D365 Entity in Azure Synapse Serverless Pool I am trying to recreate a customer entity from D365 F&O in Azure Synapse Serverless pool using the data lake as data source. In order to recreate this entity, I need to join multiple views, the current runtime is between 20-50 seconds. I was wondering if anyo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Migration script MongoDB/NestJS I have clubs in my app which will have experience field in each document of my club collection. On base of that experience I would like to create new fields - level and expToNextLvl. Is it possible to write such script which will update level and expToNextLvl everytime when experience...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you use global variables correctly (python)? I'm writing a program in python to solve the travelling salesman problem, however I keep on getting an error with my global variables saying UnboundLocalError: local variable 'count' referenced before assignment import math import random currentShortest = math.in...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Which message brokers support one to one mapping between a key value and the consumer I am currently trying to choose a message queue in my backend system and for a use case I would need to do the following * *Producer services will publish messages that involve a field named foo *I want all messages with same fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create custom Postgres JSONB operator for type checking I'd like to create a custom JSONB operator for Postgres ?@ that's similar to the ? operator described below, but instead of returning whether the value exists, returns the type of the key like jsonb_typeof. How do I do that? jsonb ? text → boolean Does the text...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Studio XML text is not centered inside ConstraintLayout I have following chunk of XML code in Android Studio: <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="48dp" android:layout_height="48dp" android:layout_marginLeft="8dp"> <ImageButton android:id="@+id/btn...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why roll variable change its value after I'm using scanf in for loop? enter image description here I don't know why this "roll" variable change its value after loop operation takes place. Please help me out! My Code: #include <stdio.h> #include <string.h> #include <stdlib.h> int main() { char name[100]; in...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Swift app lifecycle responding to incoming calls I'm working on an AudioKit app, and have run into an issue with managing the app lifecycle. When I receive an incoming FaceTime call, I would like to be able to update my app state so it can recover properly when the call ends and my app is in the foreground again. Wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to break border bottom in input when exceed the max width how can I achieve this using only one input? I want to create an input that will accept an essay using the border bottom only, but I don't know the logic. Is this possible with single input? I'm using three input but it has a lot of problem. Additional b...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: boost Rtree of points, which spatial query method (covered_by, intersects and within) is more efficient to search points covered by a bouding box? I am a c++ beginner and am using the Rtree algorithm implemented in boost::geometry::index library boost::geometry::index library (bgi) . I want to do a spatial query to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Shortcuts for terminal in PyCharm Is it possible to create shortcuts for the terminal in PyCharm, so I do not have to type/run the commands myself? E.g. this is useful for commands, which are used often like pip install -r requirements.txt. As a reference, Termius does that for the terminal: I simply can press the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: @SectionedFetchRequest is not ordering correctly in SwiftUI I'm struggling with the @SectionedFetchRequest ordering system. I have a Word object with 2 properties: * *nameLanguageIdentifier which represents the language code like it, fr, de, en, ... *name which is the word like "boat" In my list, I want my words...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: EF Core auto increment id doesn't go above 1 I'm trying to save an entity with field images, an array of this: [Serializable] public class Image { [Key] public int Id { get; set; } [Required] public string Url { get; set; } [Required] public bool IsMain { get; set; } public System.DateTim...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: bayesforecast: "Error in sampler$call_sampler(args_list[[i]]) : Initialization failed." I'm working with an asymmetric GARCH model using this package. The variable y is a time series: getSymbols("AMZN",from="2008-08-01",to="2018-08-17") y<-AMZN%>%Ad()%>%dailyReturn(type='log') The model specified is the following:`...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adjust variance of zero value in R I am not sure if I will manage to ask right but I have a continuous time series data sets, that have a DAILY zero value variance and it is necessary to actually find a way managing it. Exaple: In the pictures I attached the data set and the data visualisation Data visualisationdata...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Primary Key in Synapse Serverless SQL Table How can I create a primary key to an Azure Synapse Serverless SQL Database table? I tried this: CREATE EXTERNAL TABLE [silver].[table] ( [MATNR] char(100) NOT NULL ) WITH ( LOCATION = 'file/tables/bronze_MARA', DATA_SOURCE = dsrc, FILE_FORMAT = formatparqu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: removeOnNewIntentListener not working in android In my fragment, I assign a new intent listener and add it to the activity using addOnNewIntentListener, but when going back from this fragment, and because in another fragment I have this kind of listener, when onNewIntent calls then this below fragment callback is ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: rails fields_for in nested form requiring ID from parent |f| object I'm creating parent and children simultaneously so how can the children get the ID of the parent before @parent.save to the database? Is the ID available? The children may be associated to the parent through a @parent.children.build(parent_id: @par...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to validate the data from postgres to mongodb Hi We have recently migrated the data from postgres to mongo db with some additional columns in mongo db. We have migrated around 150M records . Is there anyway I can validate the data ( not 150M but atleast some data) using spring boot.
{ "language": "en", "url": "https://stackoverflow.com/questions/75613567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to retrieve the sequence names of haplotypes made with packages 'haplotypes' and 'pegas'? For my current project I am making a few haplotype networks, using the packages 'pegas' en 'haplotypes'. The script runs smoothly, and gives a relatively clear figure. However, I want to know which samples/sequences R appoi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trying to bring div text with given format using flexbox or any other way I am facing problem while bringing text inside div in given format Current result is looks like this using text-align: right Please find the link of the code https://codesandbox.io/s/jovial-river-ntu3n5?file=/src/App.js:547-568 Please help m...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: jQuery is not clearing the input in production environment but works in local environment in ASP.NET MVC 4.8 I have a form in ASP.NET MVC 4.8 app. When user submit the page , user migrated to another page. Upon clicking on the back button from the browser user get back to same previous page. In this page there is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why on my website page doesn't want to move to the next page why on the LandingPage.js page I don't want to move to the next page and only the search bar changes and the page doesn't but when I refresh the page it moves to the DetailsPage.js page and also there is no error in the console and here is the picture i am...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to compare two lists having json in a single large list and map it using common column key in NiFi using jolt transform I have a list of json object having two arrays after merge content. Both the arrays are having one common column ID.I want to create a nested array based on that id column. JSON Array input: [ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ask user to enter value and make a graph with graphview in android studio kotlin I am trying to make an application where user can enter himself point coordinates (x, y for 4 different points) et then displayed them on a graph using Android GraphView Lib. However, once I have entered the values and push the button c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple INNER JOIN failing I have the following Query structure : Select distinct ls.name from logical_servers ls INNER JOIN (Select * from all_sql_instances) asi ON ls.name = asi.logical_server_name Where ls.state = 'READY' AND ls.customer_subscription_id = 'aad98660-0d8c-4...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to add dynamic thumbnail in each post on home page under specific category using wp_title hook? I want to display specific thumbnail for each post on specific category and so on. I am trying to add the dynamic images with wp_title hook. The image name is similar as the name of category. I am trying to go through...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Latitude/Longitude regexp issue I want to use regular expression for matching string representing latitude and longitude, in following form: N2°55'12.33''E31°22'43'' N02°55'12.33''E31°22'43'' S2°55'12.33''E31°22'43'' But for now I want to focus on the first part, that checks only the latitude. I want to match those...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Update a value for each document inside an array of a collection in MongoDB I have a MongoDB Collection with objects of type: { id: 1223 items: [{ length: 12.233333, }, { length: 4.2323232323232, }] } How can I update the length of each item by rounding to 2 decimals. A: You can use $round operator...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: pandas read_excel function prints one sheet_name strangely it is very strange that when I use the read_excel to the file I uploaded. It will print out the sheet_name of the second sheet name. But there is nothing in the second sheet. Anyone knows the reason? Thanks in advance!
{ "language": "en", "url": "https://stackoverflow.com/questions/75613584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to merge 2 associative arrays with foreach in systemverilog? I'm trying to merge 2 string type's associative arrays with foreach() https://stackoverflow.com/a/60496838/20066803 module test; bit [31:0] arrayA[string]; bit [31:0] arrayB[string]; bit [31:0] arrayC[string]; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: why is my data not returning properly from data store in kotlin? I am making an application and a token returns from the service and I store this token in the dat store. I'm sure I saved the token, but when I get the token, the yield returned should be the token, but something like this is returned. data.util.TokenM...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MacOS - Add a Server to the saved servers list with command line I'm trying to get a server into the "Favourite Servers" section. Favourite Servers The catch is: I want to do it with the terminal using "osascript" or "defaults write" I searched for a bit and found this command: osascript -e 'tell application "Finder...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get Percentile of column Based on the Percentile table I provide I am using on Pyspak on DataBricks. I have already get the percentile table based on the training sample. Now, I want to use a table to get the percentile of the testing dataset. For Example: I have Column "Val1" and I have created a percentile Table b...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WixSharp: Invalid characters in path error when adding ManagedAction to Project I am using WixSharp v1.9.2 to create an MSI file, and I am trying to add a ManagedAction to my Project object. However, when I execute the project.BuildMsi() instruction, I get the error message "Invalid characters in the path." I am cre...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does current_thread_info() function work in this example? There's a section about thread_info() structure in Robert Love's book which says that thread_info() structure is at the bottom of the process's stack and there's an example of how it could be counted: movl $ - 8192, %eax andl %esp, %eax This must convert...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: POST 400 (Bad Request) - react-s3 file upload I am trying to upload some files onto the S3 bucket using react-s3 file library but getting POST 400 (Bad Request) error in doing so. The following is the error message I am getting: Response {type: 'cors', url: '<my_url>', redirected: false, status: 400, ok: false, …} ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to reduce huge arguments list in Composable function in Jetpack Compose? I'm building quite complex app, and at some point I've noticed that my composable function is getting really huge, and I suspect it is not a good practice. Is there a pattern/solution I can implement and follow in the future to avoid these ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JDK and JRE issues about configure the JDK in windows (all 64bit version) I upgraded the Java version from 7 to 8 as shown below. Multiple versions were tried yet same errors are there Notes: * *The call studio (64bit) is based on the Eclipse 64 bit. So everything is similar *With jdk-7u80-windows-x64 everything...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Can I see my UI on my camera but not on my map? My trouble is that I want to do a fighting game and create my UI for the health bars. However, I just wanted to associate my UI with all the maps (I do not know if it is possible) Moreover, when I apply my UI in a scene, my UI is visible on the map but I only want the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: javax.servlet.ServletException: Class [org.springframework.web.servlet.DispatcherServlet] is not a servlet I am deploying a Spring 6.0.5 on Tomcat 8.5.81 with the following configuration (using web.xml and org.springframework.web.servlet.DispatcherServlet). My web.xml is configured as follows: <servlet> <ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: use the python matplotlib to draw scatter with band distribution enter image description here How to use python matplotlib to plor such beautiful 2-D scatter like the picture A,I try my best but only draw picture like B I wish I can figure out the band distribution images in picture A whether were made in photoshop ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Error when connect database transient failure in Visual Studio 2022 I am using VS2022 and I am trying to run a Linq query agaisnt the NPGSql database and I receive the next error: An exception has been raised that is likely due to a transient failure I tried to change my UnitOfWork code from: protected override voi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Execute VBA procedure from current workbook to other workbook I've tried this solution but something is still wrong and when reading my sub, i have a vba 438 error. Sub theTestSub(ByRef targetWorkbook As Workbook) MsgBox "Delightful joy." End Sub Sub OpenFileAndWorkOnIt() Dim targetWorkbook As Workbook ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best way to work with a remote windows computer? I have a personal computer on mac os, but I need windows to work. I used a virtual machine for a long time, but I want to get rid of it, and I would like to switch to mac on m2. Without thinking twice, I took a working computer on Windows 10 pro, set up rd...
{ "language": "en", "url": "https://stackoverflow.com/questions/75613628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }