Latest Questions

Distributed sequential windowed data in pytorch

At every epoch of my training, I need to split my dataset in n batches of t consecutive samples. For example, if my data is [1,2,3,4,5,6,7,8,9,10], n = 2 and t

openapi.yaml not generated successfully - Swagger Doc does not open for Windows machines

So I am working on a spring-mvc project, which suddenly started giving this issue when installed on Windows machines only. It's a thick client app. When trying

Scheduling a Cognos report based on Dates from a data warehouse table

We have a report already written for Student Services, but we need to schedule it for specific times in the term; these times are from the date table in our dat

Compiling AggregatorV2V3Interface leads to TypeError: Interfaces cannot inherit. interface

SOlidity course: Brownie Fund Me Lesson 6: https://github.com/PatrickAlphaC/brownie_fund_me Compiling AggregatorV2V3Interface leads to TypeError: Interfaces can

clang-format pointer syntax alignment with multiple declarations on one line

With a C++ input file such as: int *p1; int *p2, *p3; I can run clang-format using the Chromium style; which has a Left value for the PointerAlignment option.

aws_directory_service_directory in terraform leaves SG wide-open

I've built an AD directory with Terraform in AWS but SecurityHub recently pointed out that the SG it created has a bunch of ports wide open with 0.0.0.0/0. Than

Using Dart 2.17 Super Initializer for Widget key

Now that Dart 2.17 allows for the super initializer feature it seems that I can now replace my default boilerplate class WidgetName extends StatelessWidget {

Is it possible to integrate Git into iOS app?

I can't really find anything online so decided to ask here. Is there a way to have a fully running Git binary inside of the iOS app? To, basically, have same as

Regex to match anything after a delimiter

I have the following case: Time format and some description which is separated by a delimiter - (as like below) 00:00 - Hello element I was using the below rege

FFMPEG killed - not much information for troubleshooting

can't find out what might be causing this killed. Any tips? or what kind of logs might help to troubleshoot? It just says 'KILLED'. This FFMPEG is installed in

How do I write SQL query for average?

I have recently attended an interview on SQL. Below is the question: Write a query to retrieve city name, state name, city population and return the following c

Why vuetify <v-list> doesn't produce <li> tags

Wasn't this component supposed to render lists? It produces only divs instead of more semantic elements, couldn't it be considered a bad practice? Should I use

How to use class object instead of using JObject in .NET Core

I want to return C# class object instead of using JObject in here. Could someone can tell me how to use it. private async Task<JObject> GetReceiptById(str

How to split a readLine but dont split values inside apostrophes?

Example txt file ADD 'Cordless Screwdriver' 30 1 2 COST 'Multi Bit Ratcheting' FIND 'Thermostat' FIND 'Hand Truck' SELL 'Hammer' 1 QUANTITY 'Paint Can' FIRE 'Jo

Can someone help? I want to do image classification using CNN while taking pose estimated as input

I hope you're all doing well. I'm new here for help. Basically, I have hand poses and labeled data for the image. for example image class is labeled as: 1: Hol

Comparison between object detection algorithm speeds

I am writing my final degree project and I am having trouble to compare different algorithms in the state of the art. I am comparing ResNet, MobileNet SSD, YOLO

why im getting this error Elements in iteration expect to have 'v-bind:key' directives

my code works perfectly but i still didnt manage to find out why am i getting this error message i looked it up and it seems that im missing. And another proble

ERROR: (gcloud.app.deploy): The App Engine appspot and App Engine flexible environment service accounts must have permissions on the image

I have the following error when I try to build my app on GCP App Engine, my app environment is ideed a flexible one. But I don't know if my App Engine environme

certbot modifies the default nginx config

I am following a mini-tutorial to install letsencrypt certificates. OS is ubuntu 22.04. I had already installed nginx, and my own example.com config file to /et

How do I capture the time a tcp socket is moving from ESTABLISHED TO WAIT state

I have a Java WebSocket server that uses Netty to establish WebSocket connections. This is basically a chat application where a few agents will be interacting w

How to observe the local db changes using getx in flutter

I am facing issue while observing the last changes in local database but without using the fetch query. I want the list to be updated automatically on ui whenev

How can I Delete an Item from a Data Grid View and Reflect the Deletion in the MySql Database

UPDATE There has been quite a few changes in the code, but the problem still persists. I was able to delete from the customer table (and the entire row on the D

Access bitnami/kafka running in minikube from local machine

I am trying to access a bitnami/kafka cluster deployed using helm. I need to be able to send messages to kafka from my local machine and then have my pods proc

Cloudformation sub function for cloudwatch dashboard body

I'm running into issues using the !Sub intrinsic cloudformation function with AWS::Region pseudoparameter within the body of my cloudwatch dashboard (to ensure

It Is possibile to map typescript object to another based on interface/or type [duplicate]

If i have an object in typescript const x = {a:1, b:2} And an interfacce interface MyInterface { a: number } It possibile to do something li

Best way to convert a List<Object> to List<Object.Property>

Consider the following use case: I have List<Song> which holds an ArrayList. I want to translate the above on-the-fly to List<String> which may be a

Interface for DjangoFilterConnectionField

I have two classes class RegisteredUser(graphene.ObjectType): class Meta: interfaces = (BaseClient, ) name = graphene.String() group = graphen

How to recheck setup.cfg after editing it in 'pip install -e .` mode

pip install -e . is a great feature. It allows you to work on your package without having to uninstall-reinstall constantly. It seemingly doesn't, however, keep

how to use list comprehension to subset the dataframe with the valuecounts

make year honda 2011 honda 2011 honda n/a toyota 2011 toyota 2022 Im trying to get list of the make that has value counts more than 2 below is

what is the most fundamental difference between SPIR-V and LLVM-IR?

Spir-v and LLVM IR have the same granularity and can be converted to each other. May I ask why SPir-V is still so popular with LLVM IR? The fundamental differen