text
string
meta
dict
Q: How to validate class String property is not empty in Kotlin? Given: class JWTToken(val token: String) { // ... var email: String = jwt.claims["email"]?.asString()?: throw Exception("null email") } The exception is thrown if wt.claims["email"] is null, but not if the is string empty. How can the check for...
{ "language": "en", "url": "https://stackoverflow.com/questions/75607979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ingress with IP address instead of host I'm self-hosting a few applications on my NAS, like tt-rss. I normally run them with docker-compose. To access an app like this when I'm not on my local network, I point a port of my home router to the port of my NAS where the app is running, and then I can just access the app...
{ "language": "en", "url": "https://stackoverflow.com/questions/75607980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to format the output of ffmpeg I am trying to use ffmpeg to get the list of audio input devices for my machine(windows 11). This is the command that I use to achieve this: ffmpeg -list_devices true -f dshow -i dummy -hide_banner This is the output: [dshow @ 00000282627590c0] "OBS Virtual Camera" (video) [dshow ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75607981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rollup "Unexpected token" error when using JSX with Babel and React preset I'm trying to bundle a React app using Rollup and Babel. I have configured Rollup with the @rollup/plugin-node-resolve, @rollup/plugin-commonjs, and @rollup/plugin-babel plugins. However, when I try to bundle the app, I get the following erro...
{ "language": "en", "url": "https://stackoverflow.com/questions/75607982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Telegram bot, forward message completely (without any changes) I know how to send or forward messages with telegram bot. But, when I send message something like this: Bot is not forwarding my message. What I want is, if I send any message - bot would forward it without even changing formats of texts in it, and keep...
{ "language": "en", "url": "https://stackoverflow.com/questions/75607985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .Net Maui Launcher URL for App Store/Google Play Reading about the launcher it gives the example of starting the Lyft app by doing something like: await Launcher.Default.OpenAsync("lyft://ridetype?id=lyft_line"); I can't find examples for doing something with the app store or google play store like: await Launcher....
{ "language": "en", "url": "https://stackoverflow.com/questions/75607986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Value can not be null when retrieving token key .net 7 jwt I am trying to implement JWT and I get a null exceptions error. var testing = new SymmetricSecurityKey(Encoding .UTF8.GetBytes(config["TokenKey"])); error message Exception has occurred: CLR/System.ArgumentNullException An exce...
{ "language": "en", "url": "https://stackoverflow.com/questions/75607987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: problem with wire:poll close modal window I have a problem, i am using wire:poll, when i open a modal window it closes I used laravel 10 with bootstrap and used wirepoll to refresh the view every 2 seconds, somehow it closes the modal window every 2 seconds too @include('livewire.modals') Modals blade: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75607990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to send a list of files in a payload to API by using Axios? Suppose I have a file selector in front end like <input type="file" />. To send a file to an API with Axios, we can do the following: axios.post(url, file_data, { headers: { 'Content-Type': 'multipart/form-data' } }) However, what if I ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/75607991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Azure Application Insights Pricing As part of an Enterprise Agreement, how can the data ingestion pricing (per GB) from one Application Insights instance be different from the data ingestion pricing of another Application Insights instance? Both Application Insights instances are deployed as classic-based instances ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75607993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How I switch to the subshell that opened by previous command on remote Linux VM when connected using paramiko on Python? Few details about my setup: * *Developing on Python *Using Paramiko to SSH connect to the Linux (ubuntu) VM Problem: When I ssh to the VM I am executing commands while part of the commands are...
{ "language": "en", "url": "https://stackoverflow.com/questions/75607994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python - image reshaping error after training a ResNet model and wanting to evaluate prediction I created a code that classifies brain MRI images into 4 classes of cancer varieties. I trained the model successfully and when I tried to create a conversion algo to convert testing images to evaluate them, I ran into a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75607995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Heroku Scheduler can not run docker I have a docker image that runs a one-off python script on startup. It works perfectly fine when I run it locally. Also when I deploy it to Heroku it works fine. When I create a scheduler job using Heroku Scheduler $ docker run registry.heroku.com/my-app/web python worker.py to ru...
{ "language": "en", "url": "https://stackoverflow.com/questions/75607996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can i make the right most menu icon follow the horizontal scrolling in the navigation bar? I am fairly new to reactjs and material-ui. The navigation bar is responsive it shrinks and expands if the screen changes but the problem is doesn't follow the horizontal scrolling. The menu button doesn't go to the rightm...
{ "language": "en", "url": "https://stackoverflow.com/questions/75607999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: remove specific object with key and value here is an example that works but I cannot use it for my case with entry(fields) as (values('{ "login": { "value": "fred", "meta": { "indexable": true } }, "password_hash": { "value": "88a3d1c7463d428f0c44fb22e2d9dc06732d1a4517abb57e2b8f734ce4ef20...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error "GetAuthenticationStateAsync was called before SetAuthenticationState" using AddSingleton on service dependent on AuthenticationStateProvider I have a service with a dependency on AuthenticationStateProvider. If I add my service using AddScoped, it works fine, if I add with AddSingleton, I will get an except...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to share one typeScript (.TC) data to other sibling typeScript (.TC) file by login I get the userdata from backend now I wanted to use these userdata in my profile component I am trying to share .tc file data from one sibling to other sibling.
{ "language": "en", "url": "https://stackoverflow.com/questions/75608004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Using a variable for dynamic path addition in flask I want to be able to link to a stylesheet associated with a database item in my HTML template. To link to a single file, I used <link rel= "stylesheet" href="{{url_for('static', filename='style/style.css')}}">. The path looks like static/database/{company_name}/sty...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Как работать с асинхронными функциями? При запросах в интерфейсах мы заправшиваем данные и иногда показываем спиннер, но если запрос выполняется быстро, то его показывать пользователю нету смысла — всё и так готово! Нужно реализовать подобную логику в асинхронной функции. На вход подается функция request, которая во...
{ "language": "ru", "url": "https://stackoverflow.com/questions/75608007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: How to make writing in openpyxl dynamic I have a script which cycles through rows 2 to 25 of column A and now I want to write something related to every user(column A information) and have it displayed on column B. this all via openpyxl import openpyxl wb_obj = openpyxl.load_workbook(path) sheet_obj = wb_obj.active...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I need help changing the background image of a segmented control somehow only red works I'm new to UIKit and I'm developing a shopping cart page for a project and almost everything went great with little trouble but once I got to working with the segmented control to style it I couldn't do almost anything because it...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to reset to initial state in ALL slices in redux store setup using Redux Toolkit in React.js Let's say I have two reducers imported from two slices authSlice and uiSlice import { configureStore, ThunkAction, Action } from "@reduxjs/toolkit" import authReducer from "./auth/authSlice" import uiReducer from "./ui/u...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android WebView takes ~10s to fire DOMContentLoaded I am developing an app that loads a website in a WebView, and I'd like to run some custom JS to hide certain elements from the page before showing. In order to make sure that the html is fully parsed and loaded before hiding elements, I am injecting the following J...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to encode Era in Extrinsic? I was looking at how the Era is encoded in an Extrinsic According to this link https://paritytech.github.io/substrate/master/sp_runtime/generic/enum.Era.html#impl-Encode-for-Era Era encodes as encode(&self) -> Vec<u8, Global> , which I understand is the SCALE encoding of a vector of U...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: All Nodes of Degree "N" that can be reached from Some Node I was looking at this question here: Maximum number of nodes which can be reached from each node in a graph using igraph Here, we are interested in finding out the maximum number of nodes that can be reached from any given node: ## Example graph library(igra...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to index a purrr map call within a for loop I am working with list columns. One column is the the data of interest, and another is a list of row indices for the the data. I would like to dynamically add and title new columns to the List column. Each new column should be a subset of the data sliced by the indi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MySQL Workbench Table Data Import Error Unhandled Exception: Could not determine delimiter I have a database in MySQL Workbench with several tables already, and I need to write a query that is normal in most respects save one. For this query, I am not going to be selecting my results based on field matching criteria...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can i map self-reference table via association table with extra parameters? So i have two tables which is: Person(id,age,firstname,lastname) and Knows(person_id,other_person_id,creationDate),to map those tables i created two classes which are representing Knows,Person entities and one embeddable class in Knows(i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What trait bound can be used to match all unsigned integer types in Rust? I want to define trait bound for a generic function over all unsigned integer types in rust. Function signature as below: fn process_unsigned<T: UnsignedInt>(param: T) -> T { if param meets condition { // process and return result ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: POST Request returns Error 500 because of meta in json When i send a POST request like this { "account_bank":"044", "account_number":"09182972BH", "RoutingNumber":"0000000002993", "SwiftCode": "ABJG190", "amount":"450.40", "email":"john_kross2@yopmail.com", "narration":"test USD transfer", "currency"...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OutOfMemoryError when trying to find the largest kth element in a large array I am trying to solve a task that asks me to find the largest kth element in an unsorted array of length n (n might be as large as 5,000,000; elements in the array are distinct). Due to the task limits, I cannot use any sorting method, Prio...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to split excel workbook into separate files in power automate I am getting a file from SharePoint so in that excel file there will be 3 worksheets i need to split those 3 worksheets into 3 separate csv files. I just want to know what is the connector that i should use for this. are any expression I need to write...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to apply the same cat.codes to 2 different dataframes? I have 2 dataframes X_train and X_test. These 2 dataframes have the same columns. There is 1 column called levels that needs to be changed from str to int. However, each dataframe's levels columns has different unique values: X_train has: ['Level 0', 'Level ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to access MAC addresses/ETH Layrer in pyshark? I am trying to find a way to access the MAC address of a packet, or at the very least how to access the ethernet layer(or if it is possible in the first place??). I know that pyshark has the ethernet layer, but have not found any documentation to tell me how access ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to test unstable_useBlocker with data router I have implemented unstable_useBlocker in some of my components the hook need to implement the newest version of routers with the data api. After that all my tests with the hooks failed because the useBlocker hook throw an error if you don't wrap the component with...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: batch file to use sed to replace/append strings which contain :: - how? I have a batch file which uses sed to replace multiple strings in each line of a text file (hosts) then, later, prepend ::[space] at the beginning of each line. Well, that's the goal... sed is used because every line must be kept, not just those...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to redirect output to ssh and stdout How to redirect echo to stdout and ssh? So something like this: echo "Hello" | ssh ...@... "cat >> Log/my.log" I want to see both Hello on the screen as well as in the ssh output. Is that possible? A: One possibility might be echo "Hello" | ssh user@host "tee -a Log/my.log" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Configure a Apache Kafka Mongo Source Connector Connector to Retrieve Specific List of Field I have a large payload coming from MongoDB were the size is larger than max.request.size. We need to filter the output using the pipelines. Lets take the below as a minimum example. { "_id": 1, "country": "Mexico"...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Return variable from loop in python i'm looping trough some csv files to get two specific column values from them to compare later on. I'm storing those values in an array but when i return it, i get only the values from the first csv file and not from all. def ls_values(): for lsFile in listdir(ls_input_...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Are traces sent from OpenCensus to OpenTelemetry recognizable I have OpenCensus implemented in my Go application and planning on sending SpanContext to a downstream service that uses OpenTelemetry. The SpanContext would include populated TraceID, SpanID, Tracestate and I'm planning to send the SpanContext in the Pub...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java Persistence JPA: Many to one relationship is not reflected in entity? I have the following 2 h2 tables and JPA entities: Trainer Client SQL: DROP TABLE IF EXISTS TRAINER; CREATE TABLE TRAINER ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(50) NOT NULL ); DROP TABLE IF EXISTS CLIENT; CREATE TABLE CLIENT (...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to structure ASP .Net Core 6 Application including Identity I'm new to ASP .Net core and I'm trying to structure my solution following the clean architecture pattern including Identity - Individual User Accounts. So far here is how it looks the structure of my solution: MyProject.sln -MyProject.UI.Web -MyProje...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Remove "Visual Studio 2022 Developer PowerShell" header in Visual Studio Terminal Whenever I open the terminal in Visual Studio, I get the following boilerplate header: ********************************************************************** ** Visual Studio 2022 Developer PowerShell v17.5.1 ** Copyright (c) 2022 Micr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: libavformat/libavcodec: Why am I getting a significantly shorter video than expected? The MVE below is a simple test program that should encode 6 s (360 frames) of video. When I import the exported video (output.mkv) into a video editor, I see that it is only a fraction of a second. Why is this? How do I fix it? MVE...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Google Sheet Query: how to calculate factored average? aritcle_id hit average_time 1 2 180 1 4 20 2 1 11 3 22 33 4 55 11 I want to calculate the average_time and total hit on each article. =QUERY(A:C,"SELECT A,SUM(B),AVG(C) GROUP BY A") wont't do the job, because when calculating average time yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use azure vault secret in yaml kubernetes registery? I am using a Yaml file to deploy my images in private azure. As I need to push my Yaml to my git repository, I don't want the Yaml file includes the image registry credentials. So I created a secret Azure vault and mapped it in a volume. But I can't find an...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: To use fgets and puts in C for string input and ouput I tried a C code to input 3 strings of max length '6' and print the string within the loop using fgets() and puts(). However, when I run the code, it only takes 2 string inputs instead of 3 string inputs. Could anyone please explain this? * *Code *Output
{ "language": "en", "url": "https://stackoverflow.com/questions/75608076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Jquery/Javascript clone replace ID dynamically I have this sample content which is cloned, having id's to be replaced. <div id="tabs-1"><div class="ui-widget"> <label for="tags">Wohnort: </label> <input class="tags" id="tags-1" name="tags[]" type="text"/> </div> <input type="hidden" class="hid_id" id="hid_i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: JS delete button on images in gallery I'm actually totally new in JS and have a blockage on my project. I actually have a modal that displays a gallery of images imported from an API and the problem is I have to add a delete button on each image to remove it from the gallery. After researches I have not even an idea...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Could Not Attach Running Process with GDB Debugger The following error occurred while attempting to use gdb to debug errors in Apache Age. The postgres server was started using pg_ctl and a connection to a database was established using psql. The running process ID (pid) of psql was found using the SELECT pg_backend...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Internal Error: EPERM: operation not permitted, open 'C:\Program Files\nodejs\pnpm' I'm using vscode and in the terminal and tried to say corepack enable but it threw me this error. not sure how to solve it Error: EPERM: operation not permitted, open 'C:\Program Files\nodejs\pnpm' there's no file called pnpm in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Log the name of the player that joins the mc server Im new to java and minecraft mods but i want to set up a server side mod where whenever someone joins the world it would trigger a webhook and send a msg to the discord. I am using MCreator and i just want to log the name of the person that joined here is my curren...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sort any shape polygon vertices and plot closed polygon with lines and markers in JavaScript Hi i have the following vertices: vertices = [[-22.259935,207.480453],[-24.259937,207.480453],[-23.197435,205.905624],[-23.197435,206.299332],[-23.197435,206.693039],[-23.197435,207.086746],[-23.322433,205.905624],[-23.32243...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to call localhost API from inside a Docker container? I have a localhost API - localhost:39214. I have to access this API from inside a Docker container and the container is running Node.js API inside it. I am getting the below error when the Docker container application is trying to access that URL: Connection...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get producer/consumer information from Azure Service Bus queue message? I have one service who is sending messages to the queue and another which receive the messages, but it seems that this services are duplicated. The services that I´m aware of are deployed in Kubernetes, but the others I don´t know where a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Issue with using Rundeck to run Ansible Playbook using winrm I am having issues using Rundeck to execute an ansible playbook that uses winrm over http to connect to the node. it seems as though Rundeck is trying to use SSH to connect to the Windows 10 host, as per the failed execution output: PLAY [Create Folder on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I don't understand how to work with the Lazy Models in AWS Amplify Datastore When working with data models, I have to use async and await which I'm a little unsure about. But I have a client. I look up the needed clientIDs, then retrieve the Client model from DataStore. useEffect(() => { const getData = asyn...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C++ - Increasing the size of a file in the system with memory-mapping Problem and expected result I'm trying to read in a file, and see if I can write that data into another non-empty file. In the end, I'd like to be able to be able to insert data into the file, but that's a different problem. Right now, I'm able to...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jolt transformation for grouping and counting array What is the Jolt Spec to count and index a list of files by directories? Input JSON: [ { "path": "/test/2007-07-02", "filename": "datafile_00001.parquet" }, { "path": "/test/2007-07-03", "filename": "datafile_00005.parquet" }, { "path"...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to format data purge email report I need to send an emailed monthly report which has the results of a data purge and in that report I need to have the 2 columns below. * *Table name *Number of records deleted Emailed report needs to look like: TableName | Deleted Records --------------------------- dbo.table...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stop inserting comments into function autocompletes Oracle Developer Tools in VS Code Here is an example of what happens: I'm typing say - SUM() If i accept the autocompletion it inserts: SUM(P_ /*[ DISTINCT | ALL ] EXPR*/) this infuriates me intensely because now I have to delete comments to maintain readability, m...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Blank react page on browser after coding for a while When I write my code in the vscode, automatically after sometime it turns to a complete blank page in the browser but there are no typing errors, even without writing any newline of code can anyone help? I haven't tried anything yet
{ "language": "en", "url": "https://stackoverflow.com/questions/75608107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Problem with MakeFile in C++ Visual Studio Code Hi I'm trying to create a Makefile for the first time but I have some problems...I run this in the terminal to compile my project "g++ -I/mingw64/include/ncurses -o filename filename.cpp -lncurses -L/mingw64/bin -static", What the make file should be? the error:make : ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Prisma with NodeJS I have two databases one is a postgresql going to be created using prisma running the commands npx prisma db pull npx prisma generate The second database is a SQL-SERVER that already exists and has data in it, How can I use prisma to query it? Is there any configuration that I need to do on prism...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Separate Login from parameterized test data How would I setup the following parameters to login 1 test user then complete 5 exams using parameterized data without logging out the user between each iteration as shown below. Maybe easier than I'm making it. but I can't seem to avoid logging out between iterations and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET Core exception processing the key element I have two machines running the same .NET 7 web project in development. The project is using .NET data protection and both machines have the same configurations in the project. I copied the key-files (xml) from one machine to the other so that they are the same. Howe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to locate which column a value came from I have used PortReturns["Highest_Returns"] = PortReturns.max(axis=1) to note which of the 10 stocks have the highest return within a given day. Now I am trying to identify which column the values within the Highest_Returns came from,with the column label inputted under th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use __arglist for C++ function in C# I import a C++ function in C#: jboolean (JNICALL *CallBooleanMethod) (JNIEnv *env, jobject obj, jmethodID methodID, ...); IntPtr CallBooleanMethod(IntPtr env, IntPtr obj, IntPtr meth, __arglist param); void Main() { CallBooleanMethod(someHandle, someHandle, someHandle, __arg...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Selecting table footer values with cheerio After scraping a page , I have selected the footer of a table using cheerio with: const $ = cheerio.load(data); const foot = $('#tblAcctBal > tfoot > tr'); o = $(foot).html(); console.log(o); results in the following html: tr> <th rowspan=\"1\" colspan=\"1\"></th> <th rows...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: zfs will not import or mount on boot (fedora) I just upgraded my system from Fedora 35 to Fedora 37. I rebuilt ZFS and I am able to import and mount my filesystems manually. However, no matter what I do, they do no mount at startup. I am not sure what else to try. I've done the following: Ensured that all ZFS rel...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: C program pointer returned missing first few hex digits I am new to C language and run into this issue. I have a custom heap and pm_malloc function. Inside the function before it return the pointer, the pointer shows as below. But it shows only last 8 hex digits after it returns in the main. void *pm_malloc(size_t s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: CSS in Vue components not working when compiled by laravel-mix in production mode I am trying to add vue-loading-overlay into a Laravel/VueJs based app. Everything works fine when compiled by laravel-mix in development mode, but once compiled in production mode, the display of overlay spinner is off. The following t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: check url in java by using regular expression I want to have an url string in java which have this format : https://XXXXXX . It must be started by https://xxxx where xxx is any string. Example correct : https://mysite.lovely.fr/ ==> OK http://mysite.lovely.fr/ ==> not ok https://mysite.lovely.fr/ : here at the end ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Python Spotify API - Authorization code expired https://developer.spotify.com/documentation/ios/guides/token-swap-and-refresh/ Hi, I'm trying to get a new access token for using the Spotify API by using the refresh_token option as explained in the "tokenRefreshURL" section in the above URL. The method that I'm usin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Toolbox in Visual Studio 2022 for Python form? I am learning python so need to know how I can get Toolbox tab in Visual Studio to create desktop app like it’s showing for Visual basic ? How I can develop desktop app in python in Visual studio 2022
{ "language": "en", "url": "https://stackoverflow.com/questions/75608130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: simulation nodes not distribute with the rule Below example try to put node from top to bottom but it overlapped each other now. test() function test() { var nodes = [ {"Name":"A","Count":10}, {"Name":"B","Count":8}, {"Name":"C","Count":6},...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: python pyloudnorm get RMS values (loudness metering) for PCM WAV Currently I am using this code: import sys import soundfile as sf import pyloudnorm as pyln f = open( "c:\\temp\\wav_analysis.txt", "w" ) data, rate = sf.read(sys.argv[1]) # load audio (with shape (samples, channels)) meter = pyln.Meter( rate ) # crea...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Serial port communication (APT protocol) with Thorlabs KDC101 controller not working I am trying to communicate with my Thorlabs KDC101 controller via a serial port connection using Qt on Linux and the Thorlabs APT communication protocol. I can open the COM port and also write the required bytes to this port, but th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tensorflow fit error: indices[42,6] = -1 is not in [0, 63], LSTM Im creating test and train data like that: X_train = sequence.pad_sequences(X_train, maxlen=max_review_length,padding='post',dtype='float32') X_test = sequence.pad_sequences(X_test, maxlen=max_review_length,padding='post',dtype='float32') My max eleme...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create table with the Multitimeframe Moving Avarage Value Need help, I want to create a moving avarage table indicator with multi time frame. i have attached view of script in image format. please help me to create the, enter image description here Ganesh tried to write the pine script but that is showing too...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where can i find how CArchive serialized MFC C++ The point is I am trying to extract this CTime what was compressed with CArchive into QDateTime using QDataStream. I know that it is not the same, but which is why I am trying to read the raw data out. I have no control over no using CTime CArchive, so ill have to rol...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Automatically applying coupon from a chrome extension How can I create a feature in my chrome extension to automatically apply a coupon found for a website into the form where the coupon is supposed to go without pre-programming this behaviour for each website? Similiar to the "honey" chrome extension. I don't even ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to pause tkinter script until a valid user input is accepted I'm creating a program that has a simple GUI and requires an entry to be a certain length and only be int values. If a valid input is placed such as '12345', I'd like it to be printed to the console. However, if an invalid input was entered I'd like fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding a legend to a ggplot with many variables I've seen a few posts answering this question but none of the answers seem to solve my issue. I am just trying to add a legend to this series of geom_point plots which indicates which colored points correlate to "BEAV-O1," "NORT-O1", etc. NormalizedPlot<- ggplot()+ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is the list printing incorrectly? Im working on a small mini program and im trying to figure out how to print it off as a list like a b c d e f f 1 2 3 4 5 6 6 :) :/ :* 8) :/ ;) ;) so forth and so on with open("alphanum.csv", "r") as infile: letters = list() numbers = list() symbol...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Python CSV to dataclass I want to load a CSV into a Dataclass in Python. The dataclass consists of strings and enums, and I want to parse it accordingly. I now that there is a python library that does it, but it does not allow to skip malformed rows, which unfortunately exist. I have created a method for this, that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How does admin password security work in pdfs? This may be a stupid question, but I couldn't find it out on my own. So when you password protect a pdf you can have a separate "admin" password. I understand that you can set it up so that the password is the decryption key, therefore it's impossible to read the conten...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Need to get data from one sheet to another in excel - vlookup brings wrong value I have an excel file having two sheets like below and I need to use lookup to bring a value from one sheet to another: Sheet1: Name Address A1 Address1 A2 Address2 A3 Address3 ... Sheet2: Code Name code1 A1 co...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calling Rust from R: Error "Expected a vector type." I'm trying to learn how to connect Rust and R (in addition to learning Rust itself) using the rextendr R package and the extendr Rust crate. I came across the error Expected a vector type. when I use : in the input of my R function. Below is an example with a simp...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using gtsummary() to create custom table for survey design objects I've been using gtsummary for to create custom tables for publications and reports, and it has been a great experience so far. However, I've recently hit a wall. I don't have a lot of experience using survey design objects with gtsummary and tbl-svys...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Amplify Hosting Build Error: `Could not initialize categories ... auth headless ... facebookAppIdUserPool, googleAppIdUserPool` I'm getting build errors when deploying the frontend application to my amplify web app. I've read the documentation on headless authentication here. My backend app successfully set up authe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add ListAddListener to RBlockingQueue in Redisson I am attempting to use ListAddListener to implement a reliable queue in Redisson. My problem is that I am unable to ender the onMessage method for the listener. I am able to use subscribeOnElements to poll from the queue but I am unable to add the polled data to a ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Draw a circle with a polygon geometry using the Mapbox Static API I have Geojson polygons resembling circles that I am trying to display within a static mapbox map. To do this, I use the Datasets API to first create a blank database and then issue a put request to a mapbox route that adds a feature to the database. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to redirect to another website and send the JWT as bearer token as well using JS I need to redirect to another website and send the JWT as a bearer token as well. Can I use XMLHttpRequest like this? const xhr = new XMLHttpRequest(); xhr.open('GET', redirectUrl); xhr.setRequestHeader('Authorization', `Bearer ${to...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python pyautogui position increment problem Trying to move the mouse to a pixel location on the screen then increment the x,y axis by 50 pixels 4 times and then repeat the same locations until Cntrl + C is hit. The issue incrementing the global variable by 50 each iteration inside the range function.
{ "language": "en", "url": "https://stackoverflow.com/questions/75608168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Typescript keyof type annotation I am learning Typescript and came across a bit of code that looks something like this (note that this is pulled from a larger project and I had to change some names so let me know if more info is required). export class SpecialProduct extends Product { public warehouseName: keyof ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: sed script interpretation: "0, /XXXX/! {0,/^XXXX/d}" Trying to interpret what the following script does: sed -i "0,/ACCOUNT/! {0,/^ACCOUNT/d}" file.txt My interpretation is that it is trying to delete header rows (the ones that have ACCOUNT as a headername) if found. But running it on test files seems to be leavin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Web scraping in Google Cloud Context: I have a use case where I need to scrape a web page every minute and then save it to a database. I've thought of using cloud scheduler, pub/sub, and cloud functions, but then, when saving to a Postgres VM database from cloud functions, I've discovered that the pricing is way too...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to convert unity filepath code that works on pc so that in works for android? I am calling a function which takes a screenshot within the game but this works only on pc since the filepath on android cant be accessed with the way i wrote the code What should i change ? public void TakeScreenshot() { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Spring Boot on Open Liberty - "IllegalArgumentException: Could not resolve placeholder" substituting "LOG_DIR" env var value in application.properties I have Spring Boot API that I run on Liberty or OpenLiberty server. In Liberty server.env file I have settings for logging like: log_dir=C:\mydir log_level=INFO Then ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75608178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }