Latest Questions

C# Cannot implicitly convert type 'string' to 'int'

I get Error when try to set value for (a.Hinta ) to (HintaTextB.Text) in third code block. public bool saveAutoIntoDatabase(Auto newAuto) { bool

Why does clock() returns -1 in C

I'm trying to implement an error handler using the clock() function from the "time.h" library. The code runs inside an embeeded system (Colibri IMX7 - M4 Proces

On batch size, epochs, and learning rate of DistributedDataParallel

I have read these threads [1] [2] [3] [4], and this article. I think I got how batch size and epochs works with DDP, but I am not sure about the learning rate.

Batch conversion of xlsx files to txt in Python

I am trying to convert files with the extension xlxs to txt files. All items have the same name and are marked with a number. The problem is that there are no n

Is it possible to force Compile-Only with CMake?

I've got a very huge project (~180 libs, ~1Mio LOC, CMake but exclusively developed with VS2017 + permissive, ~30 third-parties) that needs to get ported to Lin

What is the difference between using AsyncOperation and not using AsyncOperation to show progress in UnityWebRequest?

I wrote a script that simply downloads a text file using UnityWebRequest. (I set the text size to 50 MB to see meaningful progress.) private IEnumerator GetRequ

Optimizing FMA sequences on different arm64 micro-architectures

In order to optimize a heavily used inner loop (3x3xN tensor convolution in winograd domain), I had some good results by using the maximum amount of neon regist

AdMob: Ads not working with my package name

I have a problem implementing AdMob with my Android app, ads are not showing for my package name, I changed the name and everything works fine, I restored the p

React build suddenly fails inside Docker image

This error is only happening inside a Docker image build: TypeScript error in /app/src/index.tsx(12,10): 'Provider' cannot be used as a JSX component. Its ins

Pydantic child discrimination from parent field

I am trying to create a limited set of Pydantic models from a boto3 response (specifically CodeDeploy's get_deployment). Where I'm having trouble is this:

I'm trying to exclude elements from an Array, but I'm doing somthing wrong

I'm trying to create this script: https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/seek-and-destroy

Fixing memory leak in tensorflow2 during loading the model

I am new to tensorflow-2 and I am experiencing a memory leak in my object detection application. I was able to track the section which causes the issue. class T

How to output sql date row to time elapsed

I have table with row id, name, created_at and I want to output the created_at row as timestamp time ago in php

Dataframe with scipy minimize function

Im trying to minimize sum square function that works with a dataframe. The df is as follows: ds = pd.DataFrame({'t': [*np.linspace(0,300,7)], 'Ca': [0.05, 0.038

Making a Naruto Game in Python

i have been stuck in this problem for a while now, am trying to make a game where the user is given only 100 number to create a well defined shinobi ( got the n

Conditionally render component views based on browser screen size

I have three different components representing different views for screen sizes. I want to render one of them based on the browser view width. I've managed to g

How to automate the creation of Table data on Jmeter when using aggregate report?

Table dataI want to obtain the Table Data created by the aggregate report used in Jmeter 5.3 but i cannot find the way. I don't know if i can can do it using a

Freeing the Memory of a list that contain lists

I have an assignment where i have to create a radix sort method using linked lists. First i create a sequence/list of random numbers then perform radix sort on

Add RBAC role on a Azure blob storage container with Bicep

I'm deploying an azure datalake gen 2 storage account with bicep. I want to assign roles (groups) on a containers with bicep (see code below). But I keep gettin

Simple select records from two tables

I have 2 tables (table_A has one column products_id & table_B has products_id & state) My query needs to select, all products_id from table_A join with

Telegram bot. Private messages to group members

There is a public telegram chat. I want to make it so that when a user joins a chat group, the bot will send that user a private message. I checked the technica

Pip install from archive

I am trying to install Dtale in jupyter notebook. Due to the firewall restrictions, I cannot install it online. I tried to download the archive file dtale-2.2.0

Share source code between Elastic Beanstalk environments

I'm trying to share source code in two EB environments and modules/components seem a perfect way to do this. Modules allow for multiple env configurations in on

How to find encryption/encoding of a text

The text I have is from some malware and while trying to analyze it I found this text. It runs some powershell command. But It is encoded. Seems like base64 but

How do I check if a message DOES NOT start with the prefix?

Title mostly says it all, how do I check if a message doesn't start with the prefix so I can send a message alerting the user they didn't use the prefix?

How can I create a Qt project without a UI/Designer file?

I'd like my project to be written programmatically instead of using Qt Designer. EDIT: I'm just asking for a template :P

Week date range

There is a table objects, which stores data on real estate objects. Me need to use a query to calculate a new field that will display the date range from Monday

How to write Java that calls a package function? Making a slight change to working Java code

With the help provided in the response to my previous question: Invalid Index trying to call a simple Oracle PROCEDURE from Java I was able to call an Oracle pa

How do you move data from one cell in one row of a web grid to another cell in another row that is empty using jQuery?

I am kind of lost when it comes to jQuery sometimes, though I know there is a way! How do you update or move three cells data to another row based on the rows i

Simple function for a customised label

I'm trying to write a most basic function that will set the parameters of a label. First I set the position where I want to put a label: var xCircularPos = UISc