text
string
meta
dict
Q: GetX unhandled Exception: setState() or markNeedsBuild() called during build - When going to a screen I am using GetX. When I go from EventScreen to HomeScreen -> Everything works...then going back to EventScreen and back to HomeScreen(using Drawer menu from left)...the second time I go back to the HomeScreen this e...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unsupported operand type(s) for -: 'str' and 'int'. How exactly it works? I'm new to Python and I have a question about type casting. There is my code: a = 5 b = 3 print("a - b = %d" % a - b) The code abobe throws the following error: Unsupported operand type(s) for -: 'str' and 'int'. If I put parenthesis into my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Data retreived from Api returns undefined I'm trying to call The Movie DataBase Api to build a movie website with React using typescript and I'm also using axios. My project is separated into a services, pages and models folder. Services contains the Api; Pages contains the page where I want to display the Api conte...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Postgres alleviate update lock contention while maintaining nonce I have a balance table which is being updated each time a client request is registered. The balance account will be updated, and a corresponding transaction record inserted. A transaction record will keep a nonce field which increments sequentially....
{ "language": "en", "url": "https://stackoverflow.com/questions/75572784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Udev rule for external monitor connection not working I have setup a udev rule to automatically run a script when an external monitor is connected to the usb-c port of my laptop, but it doesn't seem to be doing anything and I have no idea why. Here's the udev rule (i've actually set up two, one for connecting and on...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Baixar todos os arquivos do site Estou tentando baixar os arquivos do site da fazendo tudo de uma vez, porém estou com dificuldades no código em python: from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support i...
{ "language": "pt", "url": "https://stackoverflow.com/questions/75572789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: What is the best practice for calling a REST API when a component is shown for the first time? Let's say I am implementing a simple ToDo list in React Native, where the list is stored remotely via a REST API. Let's say I have a GET /list endpoint to fetch the list of ToDo items. Now let's say I have a component, def...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to calculate the mean and std Fast Fourier Transform I have tried many things but I'm not able to find any post explain how to implemant fft with dataframe with a data set with 3 axis x,y,z I need to calculate the fft then extract the mean of the fft for the 3 axis Rate semple 2048 Frequency sample 400 HTZ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Importing file in react-ts I'm importing the file in another component but getting error Module not found: Error: Can't resolve './NavButton' in 'C:\Users\nidhi\Documents\my-projects\estate-website\src\components' here is my code import React, { useEffect, useState } from 'react'; import ListIcon from '@mui/icons-ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does react native know which platform to setup for? Please click here to see the error screenshot I am trying to setup environment for React Native (macOS, Android). I am getting the error in the above screenshot. Why is the React Native command installing CocoaPods? When I have to set it up only for Android. D...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: django rest framework serializer, create an object to encapsulate some model field I have a serializer which looks like this: class ListingSerializer(serializers.ModelSerializer): class Meta: model = Listing fields = '__all__' My Listing model have some field: name, price, description, etc.., st...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Field 'id' expected a number but got 'S' django view.py `@login_required(login_url="signin") def editproduct(request,pk): if request.user.is_superuser == 1: category = Category.objects.all() product = Product.objects.get(id=pk) data = { "categories":category, "prod...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Store NGRX : can't get value from store I am currently doing a basic NGRX store. I want a value in my Store (value called chipSelected: string), display that value in AA.component.ts and change it in BB.component.ts (through a button). So I want my value displayed in AA.Component.ts initialized with my state initial...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I need to mask url in reactjs to hide the id I have the following problem, I need to hide or mask the id that appears in the URL with another name, for example: http://localhost:3000/client/1 if the user changes the "1" to a "2" he can access the data of the ID "2", I was thinking of hiding the ID or just showing an...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to override the transition of drawer from antd? I have 2 drawers from antd - first calls the second, when I open the first everything is okay, but when I open the second - the first transitions 180px to the right * *transformX(180px) I've seen that this is an open issue on github - https://github.com/ant-desi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 'int' object has no attribute '__getitem__'. Problem in line 2 x = input() reverseuserinput = x[::-1] if x == reverseuserinput: print("true") else: print("false") My code works in VS but when I submit it on leetcode it doesnt work and comes up with the error: "'int' object has no attribute 'getitem'" It sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: i am getting a Cannot GET / error on heroku with express app const express = require('express') const app = express() const port = 3000 app.listen((process.env.PORT || 3000), function(){ console.log('listening on *:3000'); }); const bodyParser = require('body-parser'); const scrapers = require('./scrapers');...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Docker container , sbt not found I have a ubuntu server and thats my docker file: FROM openjdk:11 WORKDIR /testimaje COPY /play-samples-play-java-hello-world-tutorial . EXPOSE 9000 CMD sbt run When I want make container from this file I am getting /bin/sh: l sbt:not found A: There are several issues here: * *you...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't get window id inside connect_show or connect_realize with command In a gtk-rs application, I'm running a xdotool command to get the id of the application's window. I'm running the command in a connect_show closure (after the window has been shown): window.connect_show(clone!(@weak window => move |_| { // s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hiding my server's real URL from attackers in my app using the signing key? This is just an idea and I would like to ask will it work and what are the dangers (if any). So let's say I have an application with an API access to my server. I don't want anybody to use the API, except legitimate Google Play users who dow...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Elastic Cloud PHP Connection error: I did not find any HTTP library with HttpAsyncClient interface When connecting to Elastic Cloud Im constantly running into this weird error: Fatal error: Uncaught Elastic\Transport\Exception\NoAsyncClientException: I did not find any HTTP library with HttpAsyncClient interface. M...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Radzen DatePicker Font Size Radzen has a datepicker for Blazor that looks promising. The code below displays it on my webassembly blazor page, however, I do not know how to control the font size with the Radzen component. I have tried adding height to the div, tried adding font-size to the div as well as the Radze...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP won't let me use elements of an associated array inside the html written as a string which is assigned to another PHP variable I am storing information about merchants inside an associative array in the form of key value pairs but I need to format multiple elements of this array into a single html component. I a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: undefined behaviour when trying to print array elements #include<stdio.h> int main(){ char names[3][5]={{'a','b','c','d','\0'},{'e','f','g','h','\0'},{'k','l','m','n','\0'}}; char (*x)[5]; for(x=names;x<=x+2;x++){ printf("%s\n",*x); } } the goals of this code is to printf the strings in this 2d array, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenCV Camera calibration from a set of 3d and corresponding 2d points I am new to here and I get some troubles with calibration. I am going to synthesize frames in Unity3D as dataset(Like MultiviewX ) for further CNN trainning. For the first step, I need to calibrate the camera to get the intrinsics and extrinsics ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# - Is it possible to create a virtual pixel display in a console application? * *I am new to StackOverflow. Don't expect this question to be perfect. Is it possible to create a pixel screen in C# console application? What I want is to create 'n' by 'n' block in a console application, for example, 8 x 8, to simp...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Running app in the background using Flutter I am a Flutter developer of a medium level. I want to create an application like Spotify. But, the problem I am facing is how to make the app play music when I am using another application. I don't have any clue about making it work in the background. I will be so grateful...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Add known tables names to SQLmap Time-Based session I am analyzing a database that has 90 tables using the "Time-Based Comparison" technique. When I was listing the names of the tables, I was already at number 40 and my PC turned off without saving the progress in the session, when I started the process again, it st...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using a template class inside a non-template class (C++) Here is the problem. I have two C++ classes: the first one, call it TemplateClass, and a second one MyClass, defined in this way template <int A, int B> class TemplateClass { ... }; class MyClass { ... }; The idea is to use an instantiation of the first clas...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do i generate complex layout with react-grid-layout package I have been reading up the docs on the RGL package and i am still confused. i am trying to generate a unique layout from a design using the package any help on how to generate this layout using the RGL package? I tried changing the w, h, x, y values to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fetching data from influxDB using tag value returning null values From my script I am sending all my telemetry data to influx DB and fetching them from Grafana. I am trying filter the values using a variable which I am creating using tag values. But it is fetching 0 values but it is working for other. Please check b...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WinSCP Session.EnumerateRemoteFiles does not work with mask with time constraint I'm trying to get the files from the SFTP server. The goal is, to get files newer than 24 hours. This mask works. The count returns 9018. var filesCount1 = session.EnumerateRemoteFiles( serverPath, "*.xml", WinSCP.Enumeratio...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error while adding Firebase as a dependency to Swift Package Manager I am trying to create a Swift Package for use across projects and I got it up and running in a private repo, I can add it to my projects, but I am unable to get its dependencies to work. At the moment I am getting the following error: x-xcode-log: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Apache Beam Pipeline Unit Test execution is not similar that on GCP dataflow execution I have a Dataflow pipeline that works fine as expected without any issues, I have started writing test cases for the transformation. Below is one of the transformations I have where I take Table Row as input and constaruct a Strin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Github Actions, set shell via matrix variable I have a job in Github Actions that uses a matrix. I want to run some of the job steps on a custom shell that depends on a matrix variable. Specifically, the image has a foreign chroot so I can emulate any hardware architecture and run native binaries for it. The custom ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jupyter Notebook, missing toolbar with nbextensions I'm using Ubuntu 20.04 and working in a virtual environment set up with pipenv. (Python version is 3.8) I like Jupyter Notebook and decided to install the package nbextensions. Installation finished without errors, I can activate a particular extension via the com...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SwiftUI Scroll Text to First Range of Substring? In my SwiftUI (iOS 15) app I have a screen that displays a potentially lengthy string, allowing the user to scroll vertically: struct TextScrollView: View { var formattedText: AttributedString var searchTerm: String? var body: some View { ScrollVi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Issues filling an array in Java I am trying to fill an array with the unique values from another file. This file has about 20 integers total, 10 are unique and 10 are copies. The user inputs the size of the array and name of the file within the main. I think the trouble is coming from this while loop that is meant t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't print label inside a picture Although the form render as expected after Show(), when it's time to draw the image to the canvas the label seems to disappear when it's inside a picture whether it's a PictureBox or Label with a bg image. Upon further checking it looks like the picture is being drawn at front even...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Access docker container running on ubuntu server from windows machine I have runing docker container on a headless ubuntu server on one machine with this ports: 2188/tcp, 54773/tcp, 0.0.0.0:49163->1972/tcp, :::49163->1972/tcp, 0.0.0.0:49162->52773/tcp, :::49162->52773/tcp, 0.0.0.0:49161->53773/tcp, :::49161->53773/t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to fix error while running resid function on residual of msGARCH model in R? I was trying to use the resid function on residuals of msGARCH model but the following error was displayed while trying to ascertain skewness, kurtosis. Error: C stack usage 15928256 is too close to the limit. I can't understand how t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Generation of Heatmap using Python I want to generate a heatmap using python for my embedded system. I want something like the screenshot shown below. In the image, you can see a circle shaped small hubs. And based on the number, I want to generate heatmap. I tried using opencv library to generate a heatmap but was...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create link in Djano? I cannot link this page to another page, because here I use for loop to make a content. here my index.html {% extends 'main.html' %} {% block content %} <main> <section class="py-5 text-center container"> ... </section> <div class="album py-5 bg-light"> <div class="contain...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How do I access the div root body from the react? I have such a html project structure: <div id="root"> <div class="main-c container-fluid> </div> ... <div> My index.tsx: import './index.css'; const root = ReactDOM.createRoot( document.getElementById('root') as HTMLElement ); root.render( <React.Stri...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stuck with union I like to select 2 rows before and 2 rows after the selected row sorted by ID. ID:1 - 2 - 3 - 4 - 5 - 6 - 8 - 9 - 10 Suppose $skip is 6, this is what I like to achieve: 4 - 5 - 7 - 8 My code: (SELECT * FROM $table WHERE id < $skip ORDER BY id DESC LIMIT 2) union all (SELECT * FROM $table WHERE id ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Looking for efficient Open Source / CLI to perform PDF simple activities I'm looking for an efficient tool to run some basic PDF activities such as merging files , copy pages from on document to other. I have tried several utilities which supported under our project host machine ( Linux REDHAT7.9 ). Following are so...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: error CS1739: The best overload for 'All' does not have a parameter named 'g' i was trying to create quest system for m rpg game but the overload is showing error..i dont know how to fix it when i was trying to check if the quest was completed tor not sing oeverload it is showing an error can any body help in fixing...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Print several lines inside one column in the terminal (with a c program) I would like to format the output of the program according to column. When the text of a column is wider than the column, I would like it to be printed on several lines which would however stay in that column I get an output of the form: col1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Shading regions inside an mplfinance chart I am using matplotlib v 3.7.0, mplfinance version '0.12.9b7', and Python 3.10. I am trying to shade regions of a plot, and although my logic seems correct, the shaded areas are not being displayed on the plot. This is my code: import yfinance as yf import mplfinance as mpf ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Kafka Connect custom SMT arvo serialization exception I am writing my own SMT that do some cleansing on a specific fields. The code structure is straightforward, compiled and added to the plugin.path successfully. When I create a connector with the following configuration { "name": "sql-to-kafka", "config":...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calculate the probability of reaching each of the three nodes from each of the other two nodes I have just constructed an undirected graph in Python via the NetworkX library. I have selected three nodes and want to calculate the probability of reaching each of the three nodes from each of the other two selected nod...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: screenshots are not captured from the screen I say right away that I'm new to python. I made a simple code, I run it, but it doesn't work. I do not know what the problem is. Help please. import time import cv2 import mss import numpy def screen_record_efficiency(): # game window mon = {"top": 0, "left": 0...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to prepare data for siamese network and create image-pairs? I have some images. I want to image similarity estimation using a Siamese Network with a contrastive loss. So I prepare the data structure like this: │ ├── data/ │ ├── pairs1/ │ │ ├── image_01.jpg │ │ ├── image_02.jpg │ │ ├── ... │ │ └...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add custom information to CEL records for a call? With a CDR, is easy to add a custom field. [exit] exten = s,1,NoOp() same => n,Set(CDR(my_custom_field)=${SOME_VARIABLE}) same => n,Dial(PJSIP/phone1&DAHDI/17,30,tTkK) same => n,Hangup() All I have to do is add my_custom_field as a column to the cdr table and...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spark Streaming app gets stuck with Amazon Keyspace We are using spark Cassandra Connector (com.datastax.spark:spark-cassandra-connector_2.12:3.2.0) to connect with Amazon Keyspace. Observed very strange issue where streaming application gets stuck after processing certain amount of data across multiple micro-batche...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google Pay with Stripe doesnt work for Android App Followed the Stripe documentation: https://stripe.com/docs/google-pay?platform=android#native Step 1: <application> ... <meta-data android:name="com.google.android.gms.wallet.api.enabled" android:value="true" /> </application> Step 2: dependencies { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dynamic document "dir" attribue in Nuxt 3's i18n module I'm learning Nuxt and its i18n module and facing a bit of an issue, I have the following setup in the module configuration, and switching the locale via switchLocalePath doesn't change the layout lang or dir attributes Searching about this topic(in the context ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create and export a keyframe animation from SceneKit using transform matrices I am currently trying to write an array of simd_float4x4 matrices to a keyframe animation of a SceneKit Node, but it isn't working. After many attempts (once actually one rotation channel had keyframes, but I deleted that again in another ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to modify a Typescript type alias dynamically? I am working on an Angular library that will serve as an API client. The issue I'm running into is that some of the consuming applications are using an HttpInterceptor to automatically convert date strings into Javascript Date objects while others just us...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use openocd to debug stm32h745-disco board? I am using a dual core board stm32h745-disco, which contains cortex-m7 and cortex-m4. When I used openocd to set up the gdb server for the board, $ openocd -f tcl/board/stm32h745i-disco.cfg Info : The selected transport took over low-level target control. The result...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is callbackfn: and tagName 'li'? enter image description here I really don't know what's wrong or where the fault is. This is the code enter image description here listGift.forEach(callbackfn: (item, index) => { const itemGift = document.createElement (tagName: `li`); I'm trying to make an wheel of fortune...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to assign center property to NB Layout Component based on some condition in Angular? Based on condition i want to adjust layout of the page by removing 'center' attribute of Nb Layout component Example : for one case i want to keep center attribute and in other case i want to show with out center attribute in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding keywords to search bar in javascript I have been trying to make this easier for myself but it won't work, I have a search bar using javascript to search names but I'm having to duplicate javascript ill show you what I tried but it wouldn't work.... Basically all I want is to give my users the option to type k...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: component with vuejs3 and tiny-emiiter hello I have to create a vue js 3 component AddtoCart which uses tiny-emitter this component is linked to a second linked to the cart I would like that when I click on add to cart the cart notification is updated when I click but it does not only works if I refresh the page ......
{ "language": "en", "url": "https://stackoverflow.com/questions/75572901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deploy Strapi CMS web application to Netlify Deployed Netlify project Deploys from github.com/rustkas/netlify-strapi. After successful deploy I have got while screen and console errors: The script from “https://main--netlify-strapi.netlify.app/admin/main.260dc492.js” was loaded even though its MIME type (“text/html...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why isn't the 'except' being recognised? I'm trying to learn how to use try - except blocks but the last 'except' is being seen. I get this error: syntax error: expected 'except' or 'finally' block. That is the code: # Request the user to input 2 integers and an operator while True: try: num1 = int(inp...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to use HR2Day to fetch only the employee resource I'm trying to use the REST API from salesforce to get the resource employee HR2Day. However, I get all entities when I do a call. Also, I cannot make a specific call like /emplyees or on id. In the documentation it talks about that hr2day has rest API but in cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Catch React Warnings During Testing Let's consider this example from the React docs: const people = [ 'Creola Katherine Johnson: mathematician', 'Mario José Molina-Pasquel Henríquez: chemist', 'Mohammad Abdus Salam: physicist', 'Percy Lavon Julian: chemist', 'Subrahmanyan Chandrasekhar: astrophysicist' ]; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Upload file without waiting for it? I'm guessing this is more of a question around async and await, but part of my application I have to take an external link, and basically upload it to my own CDN as the links expire after a set time. The uploading of files, remote files to be specific is rather slow so I would lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot convert date type yyyy-MM-dd to LocalDateTime in Java I am getting a date input from the user which is of type yyyy-MM-dd (e.g: 2023-02-26). I am trying to convert it to LocalDateTime format so that I will get something like this format, 2023-02-26 22:03:05.034981 I have tried examples available online like b...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: startAfter does not work with a doc ref made with path I am making a React app with firebase as its backend. I need to retrieve some data from firestore, and to avoid getting all the data at once, I considered limiting the number of results and storing the last returned result from the query in localStorage, so tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unit tests, failed to load ApplicationContext after converting properties to yml Our main application is using Config Server for storing all of its configuration, but the tests were so far configured using a copy of that config as application.yml and overridden properties in application.properties plugged into the t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I retain cursor position in Keyup event in JQuery? I'm modifying the data in a datetime input in JQuery in the Keyup event. If the date is 10/11/2000, but it's supposed to be 10/12/2000, after highlight the 11, and entering 12 (typing the 1 first), the cursor enters the 1, then jumps to the end of the data ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: !SecureClientPipeDirect failed: System.Security.Authentication.AuthenticationException I'm writing a proxy on Fiddler Core for my test project, I can't figure out how to make a redirect. Plus, it's annoying that a new certificate is constantly being created. Can anyone suggest how to solve this? delegate void updat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't figure out how to correctly check if there is an appointment in between times with Carbon and Laravel This might be much simpler than i think it is, but i've scratched my head around it for a while now. Probably too long, and stuck with the same wrong solutions to get outside my own head. So i could use some h...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ModuleNotFoundError: No module named 'h5py' , even I installed h5py The cond list shows that h5py is already installed, I installed tensor flow and then installed it, I don't know what could be the reason for such problem. # packages in environment at C:\Users\Ibrah\.conda\envs\tf: # # Name Versi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to return a list of objects using a Django REST API post request? I am new to using REST API's and am trying to create an API where I can make a POST request containing keywords, which should then return a list of articles related to that keyword. The reason I can't use a GET request is because I am not GETting ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I use @Synchronized annotation in Kotlin Multiplatform commonMain code? Can @Synchronized annotation be used in common code (commonMain) code of Kotlin Multiplatform? The library only targets JVM and JS. Will it have any impact on a Kotlin/JS application that calls the commonMain code from this library? When I u...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there any npm sources to solve this problem? Every time i want to add a yarn for my web-app i get this problem and nothing install and this show to me i want to install the yarn and complete my project this is my problem enter image description here
{ "language": "en", "url": "https://stackoverflow.com/questions/75572934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Xamarin Forms push notification not showing up in Android notification bar I have a weird problem. I have a clean Xamarin Forms project using Plugin.FirebasePushNotification which is working flawless on iOS. The wierd problem is that it is working on Android as well, OnNotificationReceived is triggered when I send a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to split paragraphs/object in DOM with react How can i split the context for say if i have the following example? I want to only extract this sentence "Our client, a highly respected moving company is seeking a National Account Move Coordinator to join their team based remotely." <article> Our client, a highly r...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mongodb Timeseries / Golang - ['timestamp' must be present and contain a valid BSON UTC datetime value] I have the following example Go code that inserts data into MongoDB coming from a REST request (GIN), but it fails with: ['timestamp' must be present and contain a valid BSON UTC datetime value] code: func Create...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: terraform google monitoring alert policy filter a specific queue id I want to filter a specific cloud-task queue id but I cant figure it out this is my code: resource "google_monitoring_alert_policy" "cloud-tasks-slides-queue-is-too-large" { for_each = {for alert in local.metric_based_alerts: alert.displayname =...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Run shell script file inside docker file I have created a Dockerfile FROM alpine RUN apk update --no-cache && apk add --no-cache --upgrade bash && apk add curl COPY test-start.sh ./test-start.sh RUN chmod +x ./test-start.sh RUN sh ./test-start.sh And I have created the test-start.sh file #!/bin/bash code=$(curl htt...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: combining bootstrap breakpoints in class name Do i really have to declare my bootstrap classes as a combination of all screen sizes and column span for responsiveness? I am using <div class="col-md-4 col-sm-6 col-xs-12 col-lg-4 > A: No. You don't have to declare all the bootstrap classes. The smaller breakpoint wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to translate conditional string interpolation using NGX-translate I have a toggle button on my application that changes the label accordingly to its value, it will either display 'Enabled' or 'Disabled'. I'm using ngx-translate to handle translation on my application but I can't get this to work. How can I set t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Filtering rows by tag relationship, using group_concat and where Using Knex (and mysql db), I'm trying to filter records by tag id, e.g. api/locations?Tag=3,4. Requirements A - Filter results by tag id(s) B - Regardless of filter, always return concatenated array of ALL tags for the retrieved records Works: For unfi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to construct a SwiftUI view using async I've got a little swiftUI program that displays photos from a given day as stacks of photos for each year. Simplified code below. I read the photos into resultPhotos as a dictionary with each key the year, and each value a PHFetchResult. I then loop through each year in...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When cannot a local module (.ts file) be found when imported? I am writing my first node.js program (I wrote over the years some JS/TS frontend code, as well as Go, Python), and after some first basic tests I started to modularize my code (to group it in logical chunks). I have an exported getConfig() function in D:...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to download a song playlist through following description with yt-dlp? Since downloading a thumbnail from youtube music provides really bad quality, is it possible to download it in following manner: Download the link as bestvideo+bestaudio formatt and when the video is downloaded then extract frame n...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Synonimity of *;charset=X and content-encoding=X Aren't UTF-8/16/etc encodings and not charsets (the charset is UTF)? Also, in RFC 9110. Section 8.3.2. "In the fields defined by this document, charset names appear either in parameters (Content-Type), or, for Accept-Encoding, in the form of a plain token." Are they e...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I can't realise delegate pattern Beginner in SWIFT I have 2 ViewController and want to show in secondVC(some Label) what I wrote in firstVC(some textfield) I checked similar topics but found nothing, there is something similar with storyboard, but I don't know storyboard. my firstVC: protocol DataDelegate { fun...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Compare two arrays of json object in painless Trying to compare 2 arrays that contains json objects in painless (elastic) A: [{"key":"a1"},{"key":"a2"},{"key":"a3"},{"key":"a4"},{"key":"a5"}] B: [{"key":"a1"},{"key":"a3"},{"key":"a4"}] and receive on exit array that contains only unique values: C: [{"key":"a2"},{"k...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why shouldnt primitive data not assigned by reference in JS? Hi everyone this question may look ridiculous, but as we quite familiar with the fact that in JS, when we assign an object data type to a variable, that variable will only hold its reference, meaning change in an object will affect to all variables it ass...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Collators running in k8s keep restarting We have 2 collators running in GKE and they keep restarting every few hours the logs don't show any error before they are killed, does any one know what might be causing this? We have also have validators running the same runtime for a solo chain and these don't have any issu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Serve Video Files from gallery with http in Flutter I'm trying to play a local 360 video file with flutter_video_360. The package requires a URL. I can play the file from the cloud, but as the file is large and varies between 4K to 8K resolution, I want to first download the file locally and then replay it from a l...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C++: Understanding how memory layout works by printing out addresses? I am trying to understand how C/C++ programs allocate memory. I wanted to see how this works in action and so thought of printing out addresses of locally (stack) and dynamically (heap) allocated variables. The idea is to construct a logical image...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to using Spring Security without Web(Spring boot, spring mvc)? So, I want to use Spring Security for authorization in my application, I have users, groups and privileges for all. But, my application using just sockets, without web. So, I don't need to use Spring Boot or Spring MVC. Can I use Spring Se...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TLC passes property but the state is not existed I'm a new user of TLA+. The following code might be silly. It's a narrowed-down version of my private code. There are no lines assigning END to s on the following code but the Prop passes without error on TLC model check. ----------------------------- MODULE notExiste...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: get expires_at for current user I can with \Auth::id() get user_id or with Auth::user() can user class. How can get value oauth_access_tokens.expires_at for current user( for example Auth::user()->accessToken->expires_at). I search but can not find any solution for this. A: I found this method for get expires_at f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75572993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }