All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
2 views

Error in my POD when importing GoogleMLKit/TextRecognition

Im getting the following error when trying to add MLKit. This is what I am trying to follow. https://developers.google.com/ml-kit/vision/text-recognition/ios This is what is in my pod file. pod '...
  • 2,732
0 votes
0 answers
2 views

asp dropdown selectedvalue = "" when populating with javascript

How do I use asp:dropdown in a webform with no options until they are populated by javascript via an api in the browser? I have successfully used jquery to populate the fields but once I submit the ...
  • 4,382
0 votes
0 answers
6 views

How is it possible to add two arrays without using a loop?

The following program (found here) uses a loop to add two arrays: #include <iostream> #include <math.h> // Kernel function to add the elements of two arrays __global__ void add(int n, ...
  • 16.7k
0 votes
0 answers
3 views

React Project returns White Page (Portfolio project)

I have built my first React project (Portfolio webpage) and when trying to upload it to Github pages it gives a blank page. You can check in the following link the git repository for this project: ...
0 votes
0 answers
5 views

How do You Lazy Load Muliple Components/Pages at Once in React-Router

I am wondering how I can load muliple components at once, In my case these components are pages and I want if the user vists one of these pages then all the components/pages would load:) Here is what ...
  • 11
0 votes
0 answers
3 views

Mongoose pre-update document middleware - changed field is not written to database

Mongoose version 5.13.15 I am trying to set the value of fields (updatedBy, createdBy) on a document whenever it is written (created/updated). As part of this endeavor, I have created the following ...
  • 1,916
0 votes
0 answers
5 views

Warning: Undefined variable $conexion in C:\xampp\htdocs\gestion-de-inventario\reportes.php on line 35 [duplicate]

cordial greetings to all I am new in programming, I still can not understand many things but I do my best, I have a connection error which I have not been able to solve to view the database in FPDF, I ...
0 votes
0 answers
3 views

Split the role creation from the assume_role_policy with terraform

Is it possible with Terraform to create a IAM role (with pipeline 1), then later with pipeline 2 to add assume_role_policy part? I know I can do it with the actual polices attached to the role, but is ...
  • 558
0 votes
0 answers
3 views

not sure if the syntax is correct at line 71 QTSpim Parser Syntax Error

.data prompt: .asciiz "Enter a string (up to 100 characters):\n" output: .asciiz "\nLetter Frequency Table\n" letters: .asciiz "abcdefghijklmnopqrstuvwxyz" table: .space ...
  • 1
0 votes
0 answers
4 views

Zod: Validate conditionally an `array of objects` with a key of object[i]

Considering the following body: { ....: ... type: ['url', 'email', 'other'] data: ['aaa', 'bbbbb', 'ccccc' ] ...: .... } I'd like to check/parse/validate with custom error message if: aaa is ...
  • 2,370
0 votes
0 answers
3 views

Laravel validation rule for multiple value

I have two table deliveries(id,name) and delivery_items(id,delivery_id,name,counter_num). Is it possible to set a validation rule that states that for the specified delivery_id must not be two of the ...
  • 191
0 votes
0 answers
3 views

GitHub Pages React Project shows a blank page (nothing inside <div id="root">)

After deploying my GitHub portfolio project (source repo) using: react-scripts build --entry ./src/index.jsx npx gh-pages -d build The final deployed page has nothing inside <div id="root&...
  • 113
0 votes
0 answers
4 views

In yaml are spaces accepted between a key and its colon?

For example, from a docker compose file services: cool: container_name: coolas image : repo/cool:latest restart : unless-stopped ports : ...
0 votes
0 answers
4 views

How to use Vue Router after App.vue Axios request finish?

So, I have my project, that I'm using Pinia + Casl, and everything works perfectly except when I try to reload my page. Of course, I have an entire structure that creates all over the Casl permissions ...
0 votes
0 answers
7 views

How to format a JSON array?

I'm trying to add Chat GPT to Minecraft's villagers through a web request sent by the Denizen plugin in the denizen script language. Accessing the completion API this code works. - definemap ...
0 votes
0 answers
3 views

Slow apache2 curl response - possibly DNS record-related, but unsure

My server slowed way down in the past few days. I am trying to correlate that to anything that recently changed. I have used top and a curl (see below) to troubleshoot. I get this output from top: ...
1 vote
0 answers
8 views

Polars conversion error going from Python to Rust with pyo3

Related to the solution proposed in this other question. This code creates a polars dataframe of python dictionaries. In Python land, everything is fine. The code fails when we extract to Rust land. ...
  • 751
0 votes
0 answers
4 views

virtualenv without distutils

I'm copying a virtual environment created with virtualenv venv in a ubuntu wsl to another distro. After activating the venv in the new system, the command pip3 --version returns the following error: ...
0 votes
0 answers
3 views

Boost::beast async websocket doing read and write operations

I want a WebSocket client that's capable of reading and writing asynchronosuly. Reading is working A-OK thanks to other StackOverflow user. The idea behind reading is there's a thread that's always ...
  • 287
0 votes
0 answers
4 views

How to count array elements in subquery using ARRAY_AGG in Postgresql?

The initial query finds the languages applied for each feature_id and makes the result into an array. I want to count the number of languages in each area, per feature_id, per version (new and old). ...
0 votes
0 answers
8 views

How does the server confirm that a request from the client is being made by a certain user?

I'm developing a web game in JavaScript which communicates with a Node.js server that saves user data to a database, such as user levels, etc. I want to use Google Sign In as a convenient way for ...
  • 33
0 votes
0 answers
10 views

So i have a huge json file and i want to create a smaller version of it where one of the values is based on 2 of the values from the main file

i have huge json file with array of objects i want to go throug that array and find a specific object then i want to return value based on 1 of its values. heres is myfunction so far async function ...
0 votes
0 answers
5 views

MS Graph API does not follow ApplicationAccessPolicy when using sendMail

I created script that would send mail as someone from our organization using MS Graph sendMail. And Everything works great. However, we only want the email to have access to certain emails so we ...
  • 970
0 votes
0 answers
4 views

RuntimeError: There is no current event loop in thread 'Thread-7 (process_request_thread)' When I use python flask.what can I do?

# 导入模块 import asyncio from pyppeteer import launch from flask import Flask, request, Response # 异步线程thread bug维修 # from asgiref.wsgi import WsgiToAsgi # from hypercorn.config import Config # from ...
0 votes
0 answers
6 views

Remove palindromic rows based on two columns

I have the following data frame: Data_Frame <- data.frame ( A = c("a", "c", "b", "e", "g", "d", "f", "h"), B = c(&...
  • 415
0 votes
0 answers
4 views

FFmpeg : Reuse value of a filter parameter for another one

I have this command which draws a text ('First line Second line') on two different lines. Each text has a box drawn around it but they are not the same dimension as the size of the texts differs. As I ...
-1 votes
0 answers
6 views

The body might complete normally, causing 'null' to be returned, but the return type, 'Function'

The body might complete normally, causing 'null' to be returned, but the return type, 'Function', is a potentially non-nullable type. no found anything for this problem
0 votes
0 answers
4 views

Add as many text fields as I want and send it to mongodb

Under normal circumstances, I can write the data in the 2 text fields that I created at the beginning and send it to the db, but when I add a button next to the throw to Mongodb button (the button's ...
-3 votes
0 answers
9 views

How can I see a real-time "image" of a remote system screen in C? [closed]

How would I be able to see the screen of a remote system in real time without using screenshots linked together. I want it to happen like this. All of this using C. When you download this executable ...
0 votes
0 answers
7 views

getting schema_name from schema_id on a remote server (MSSQL)

I have to run various queries over multiple databases and collect the results as a result set, so an sp_MSforeach approach won't work. I'm actually collecting data about the databases, schemas, and ...
0 votes
0 answers
3 views

Why Shiny app layout changed when including Rmarkdown file?

I was playing around with a Shiny app that has multiple tabs using tabsetPanel and tabPanel. Everthing was fine until including a Rmarkdown file into one of the tabs. The whole app was reduced in size ...
  • 25.4k
0 votes
0 answers
6 views

Spring Boot JPA Unique Constraint as ID

I'm using Spring Boot JPA. I have two entities. CommunityProfile and Award. These share a many to many relationship, mapped by the award_community_profile table. In this table there is three columns: ...
  • 119
0 votes
0 answers
7 views

How to load a partial model with saved weights in pytorch

I have trained a model on some images in Pytorch. After training I saved the weights of the model. The code for my model is as follows: My custom model based on ImageClassificationBase class -> ...
-1 votes
0 answers
12 views

How VS2022 C# debugger shows values for uninitialized variables

The image below shows a C3 piece of code while debugging. Current execution line is 678 2 variables cur_support_areas and cur_resistance_areas are defined below on lines 684, 685 How the debugger ...
  • 654
-1 votes
0 answers
5 views

Execute a batch script and assign the value to a variable

I have a batch script file; it returns the current datetime stamp. I want to execute it and assign the value to a variable in another batch script. SET currentdt=dt.bat
  • 21
0 votes
0 answers
3 views

Using a for loop with table.insert

I have a large number of names and stats that I want to put into a table. I have the variables laid out in format below: enemyname1 = "Evil Frog" enemyhealth1 = 10 I was hoping there would ...
0 votes
0 answers
4 views

How does forth interact with assembler?

I'm just starting to get into both forth and assembler. In forth, if I create a word as follows: : push5 5 ; I have created a word that simply puts 5 on the stack. If I ask to see the created ...
  • 2,066
0 votes
0 answers
7 views

How do I check an input checkbox when it's container or next element after it is clicked using javascript?

I created a couple of checkboxes and radios with a custom checkmark. I attached the label to the checkbox ID and removed the original input element. The checkbox can only be checked by clicking the ...
  • 21
0 votes
0 answers
8 views

Using JavaScript to have a text line cycle between various text

The idea is to have the subheader under the header cycle between text endlessly on page load. Example: HEADER SUBHEADER 1 wait one second HEADER SUBHEADER 2 wait one second HEADER SUBHEADER 3 etc. ...
0 votes
0 answers
6 views

VSCode Output font size

I can change the editor font size, and I can change the terminal font size. But I wonder if there is a way of changing the output font size? I've tried to look at settings(UI) but couldn't find. I ...
  • 31
1 vote
0 answers
10 views

Why does a nested class with an implicitly-defined default constructor not satisfy std::default_initializable?

In the following code, only Bar3 fails. What is the reason behind this static assertion failure? #include <concepts> struct Bar1 { Bar1() = default; bool val = false; }; static_assert(std::...
  • 588
0 votes
0 answers
5 views

Triggering to start kinect recording

Can a trigger or interrupt signal be handled using the usb ports? What I am trying to understand, is if a "message" from any other stream or client or an interrupt from keyboard can act as a ...
0 votes
0 answers
4 views

PHP MongoDB socketTimeoutMS working on windows but not on linux

I have a php stats page that runs some mongodb queries and calculates and displays the results for monitoring. As the database has grown in size, some queries are taking longer than the default mongo ...
0 votes
0 answers
6 views

How do you map two kinds of data in google sheets?

I want to create a repository of images and use a unique number to access each one. Is this possible in google sheets? Thinking of just using a database?
0 votes
0 answers
5 views

Toast Not Showing Up Flutter

I have the following code that creates an age input field in a screen in flutter. When the user tries to go to the next screen without typing something in, I want to display a toast to the user. I am ...
  • 25
-3 votes
0 answers
25 views

how to convert to int which is the best method [duplicate]

In C# are the two following statements the same? int lhs = Convert.ToInt32(lhsOperand.Text); int rhs = int.Parse(rhsOperand.Text); They both seem to work, if they are the same which is best if any? ...
0 votes
0 answers
5 views

Vite building react projects with same identifiers

I have 2 react projects, both using Vite, Typescript and React 18. Each of these projects are being utilized as a widget on a single page. Each run perfectly fine if only one of them is on the page. ...
0 votes
0 answers
4 views

is there any way to sort firebase arrays by id?

I'm adding a new drag and drop feature to my app and I'm trying to find a decent way to implement it. The issue is that I'm dealing with a big array of data, which makes it impractical to send the ...
1 vote
0 answers
9 views

how to safely restart postgresql container in kubernetes?

I have a small hobby website I want to release on my server. I chose to use kubernetes for that, as I partly use it at work as well, so I'd like to get familiar. I bought hetzner debian server and ...
  • 2,282
0 votes
0 answers
6 views

Sending recurring reminders through text message at user-defined times in ASP.NET Core 7 and Angular 14

I've been stuck on a problem for a couple of days and I think I'm getting in my own head a little bit regarding a solution so I figured getting another view might be helpful for me I've created a .NET ...
  • 1

15 30 50 per page
1
2 3 4 5
472128