Latest Questions

For loop through different excel files AND different worksheets (Matlab)

I try to loop not only through different excel sheets(~125), but also through different excel files (~12). I managed to write a code for the sheets, but now I

"Classification metrics can't handle a mix of continuous and binary targets" when trying to set a custom eval_metric using LGBMClassifier

My y going in and both y_train and y_eval are binary int, what am I doing wrong? I noticed the predictions going out are like this [0.,1.,0. ...] which is proba

How to enable WebGL in Headless Chrome >= 96 within selenium-docker project to run Chrome inside a docker container without XVFB

I'm using selenium-docker project to run chrome inside a docker container, without XVFB (START_XVFB=false). I want to use webgl support. With chrome v95 and low

Java multiplication (in the type PrintStream is not applicable for the arguments (String, int)) [closed]

Table of a any number getting this error - on System.out.println(number+" x "+i+" = ",+number*i); (in the type PrintStream is not applicable f

Pandas groupby feature question for output CSV

I have the following code df.groupby('AccountNumber')[['TotalStake','TotalPayout']].sum() which displays as I would like it to in pandas The issue is when I ou

Every time I train my CNN on matlab, is it remembering the old weights from the previous time I trained it? Or does it reset them?

So for example, I have trained a CNN on my data using a learning rate of 0.0003 and 10 epochs, with a minibatch size of 32. After training it, lets say I get an

Configure IoTEdge module to receive messages port 53000

I'm loosely following along this article to develop and debug modules for IoTEdge https://docs.microsoft.com/en-us/azure/iot-edge/how-to-visual-studio-develop-m

How am I able to access my file with IPFS, with no peers?

I'm new to ipfs, so I've been running some tests. What I did is, I created a simple text file and added to ipfs, I deleted my local file and I used ipfs cat and

Phaser 3 (Game framework): collider callback is called, but somethimes object still passes through other object, instead of colliding

I'm working on a small flappy-bird-like-game demo. Everthing seems fine, but I have a small problem/question. I setup a collider function, and the callback work

Python - if ... then with multiple wildcards

I use the following python snippet within my code to scan a given soup for keywords. It´s only possible that one of the word is inside the soup. Concernin

How can i customise mapview's map marker popup like the image below in kivy?

MapMarker Popup I am trying to customise a MapMarker Popup without using the regular 'source' property in kivy MapView class. I have tried creating the circle w

css @media print for landscape mode

I'm printing some images with a header/footer, and trying to distinguish between Portrait and Landscape using @media print queries. In my first version, I was o

Neo4j Create new Database from Query Result

Is there a way in Neo4j to create a new Database, that gets populated by some query data from another database? For Example, I have a Database that consists of

Toggle button doesn't with drawer navigation

My toggle button doesn't work, when I press him I see like it is pressed but there is not action. I can open my drawer layout, it changes when swipe, but there

.laz file not recognized by QGIS on Mac

I am trying to view a .laz file in QGIS 3.22. I dragged and dropped the .laz file into QGIS, but got the following error: LAS and LAZ files cannot be opened by

How can I add whole object as parameter in flutter post request?

"UserDtls":{ "DisplayName": "Picker", "UserName": "Picker", "Password": "", "EncryptPassword": "", "UserId": 5, "Rol

Alternative way to append a dataframe to itself N times and populate new column

Is there an alternative way to append a dataframe to itself N times where N is based on a list length, and the list contents are added as a new column to the da

Rotating an end point while having the direction

I have a point and a direction and I would like to know what that point would be if it was rotated by 45 degrees. For example, if I have Point A being (0, 0, 0)

I'm having a problem creating a linked list [duplicate]

#include<stdio.h> #include<stdlib.h> void insert_front(struct node* head, int block_number); void insert_rear(struct node* head,

Changing drop-down-list population into buttons instead

I've managed to populate an MVC Razor with drop-down-lists, but I cannot seem to figure out how to use buttons instead of a drop-down-list have buttons act the

ansible roles split tasks/main.yml in multiple files

I want to split my tasks/main.yml into different files in my Ansible role. With defaults/ and vars/, Ansible supports the creation of a main directory instead o

Unique comparable points at Java TreeSet

Having a very simple example of Java code: import java.util.*; class Point implements Comparable<Point>{ float x, y; Point(float x_, float y

Go to a precedent page in a php site

I'm creating a simple php program and I'm trying to find a way to be able to go from the page 2 back to the page 1 with a button. I tried by making a button in

Regex validation for a specific value with React Formik

First is, I want to validate the field that if the user type a character that is not existing in this (e.g.): /[ùûüÿ€’“&

How to see which commit was deployed to prod with AWS CodeDeploy

We're using AWS CodeDeploy for our deployment pipelines, reading from our bitbucket repository. I'm trying to find which commit number was last deployed to prod

QTimer format converting

I have this code: from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtCore import Qt, QTimer import sys class Ui_Timer15(object): def setupUi(self, Ti

I can't do that loop function

Here is my project, it' s drawing robot: I manage to do F and R functions. But my L function always malfunctions. Here is my code: def func(list1): numOfElemen

How can I load Google Tag Manager to a next.js app, AFTER the app is fully loaded?

I'm building a next.js application and would like to load Google Tag Manager (GTM) only AFTER the entire page is loaded. The goal behind this is to improve the

Flutter 3.0.0 bugs

after upgrading to the latest version 3.0.0 then some various bugs appear in some of my projects that run well before qr_code_scanner:compileRelaseKotlin Dupl

Can I mock one function exported from a typescript module that uses ES6 import style

I have been struggling with some specific ES6 importing-style and using with Jest mocking in typescript. It's very specific, so I wrote this example puzzle to