All Questions
24,122,898
questions
0
votes
0
answers
2
views
When I use electron js and canvas in node js, I get a rebuild module error
Canvas and Electron JS work without errors when they are separate from each other. When I use them in the same project, I get the error below.
App threw an error during load
Error: The module '\\?\C:\...
0
votes
0
answers
2
views
Apache atlas UI not showing up
I am trying to install apache atlas from source. I have cloned the repo from https://github.com/apache/atlas and built the source and then packaged it using mvn clean -DskipTests package -Pdist.
I ...
0
votes
0
answers
3
views
Python Dash App is Not Rendering in Browser
I tried to run the following example code from https://dash.plotly.com/tutorial but it just gives me a blank browser tab which seems to infinitely load:
from dash import Dash, html
app = Dash(...
0
votes
0
answers
2
views
How to create under the label in Textformfield, not a border, in Flutter
I want to create a Textformfield. But the label shows under the Textformfield, not the border. And Textformfield corner is rounded and the validation error is below the Textformfield.
How to achieve ...
0
votes
0
answers
8
views
How to check for matches where fields are different?
I have 2 Excel spreadsheets and need to try to find matches based on product name but one file has something like Tylenol for example (only the product name) but the other file has Tylenol 100mg 100s. ...
0
votes
0
answers
4
views
How to automatically create a new parent form record when when data is first entered into a child form
I need a parent form [FrmSubGrantsAgreements] to automatically create a new record when information entered first into the child form [FrmSubGAFndngSrcPrtnrs].
I tried to add code that would force the ...
0
votes
0
answers
3
views
Mount Azure file share on Azure container app
I have an Azure file share and i want to use it as a mount for my Neo4j database that is running inside an Azure container app. Everytime i create a provision of the container it fails with error &...
0
votes
0
answers
2
views
How to have automatic loading of changes with "sam local start-api" using libraries, without first running "sam build"?
I have bootstrapped an SAM application as follows:
sam init --app-template hello-world-powertools-python --name sam-app --package-type Zip --runtime python3.12 --no-tracing
I have created a virtual ...
0
votes
0
answers
3
views
How can the ingress controller receive traffic from a certain port in loadbalancer to a specific path
I have a local k3d cluster, and there is a mapping port in loadbalancer (8081:80 and 8082:80). I have such an ingres controller:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nginx-...
0
votes
0
answers
3
views
How do i work with a potentially nullable field in prisma ORM and MongoDB that references the id of another model?
model Product{
id String @id @default(auto()) @map("_id") @db.ObjectId
name String
subcategoryId String @db.ObjectId
subcategory Subcategory? @relation(fields: [subcategoryId],...
0
votes
0
answers
3
views
Error Handling for Computed Column Primary Key in Entity Framework
I'm working on an ASP.NET Web API application where I have a controller method responsible for accepting JSON data and invoking a repository method to create a new customer entity. The customer entity ...
0
votes
0
answers
5
views
flutter web: how to obfuscate/minify the js code (in addition to the dart code)
I have a flutter web app which has some code in dart and some other code in javascript. When I build the release variant of the web app, the dart code seems to be obfuscated/minified. But the ...
-1
votes
0
answers
6
views
I think i have been locked out of Auotdesk, what can i do?
I have integrated viewer into a webapp, and everythign was going fine, but i think i hit the data management api too many times trying to figure it out, and now i get these errors when trying to use ...
0
votes
0
answers
5
views
How to protect client secret in REST API call in Oracle Autonomous Database
I have a Unity3d based mobile game where I send REST API's to an Oracle Autonomous JSON database.
I realise that hard coding client secret in the client code is not good and I have been researching ...
0
votes
0
answers
3
views
Issue of Unprocessed URLs Remaining When Processing URLs from RabbitMQ Message Queue
I put the URLs to be processed into a RabbitMQ message queue, and then use a multi-threaded web crawler library for crawling and collecting data. In this process, I encountered a problem.
My code that ...
0
votes
0
answers
4
views
What settings are best for elasticsearch query to find full word and half word
I can't figure it out what should I set in query. For example, I search 'something sea'. I expect results like 'something sea', 'something tea', also 'something seaside', but last one is never in ...
-1
votes
0
answers
14
views
How to display a script into a React component
I want to display a widget form, from a reservation booking site into my application. I found how to load a script in my React Component and managed to make it work on the site. The only problem is ...
1
vote
1
answer
6
views
Want to retrieve a Foreign Key value instead of the whole object with django-rest-framework serializers
I'm using the Django rest framework to create an API. I have the following models:
models.py
class Faculty(models.Model):
name = models.CharField(max_length=25, unique=False, null=False, blank=...
0
votes
0
answers
5
views
Pull request between two repos that do not have a fork connection, but are related
Basically, I have forked a GitHub repo, repo B, which is an old version of repo A with some new additions. Except, the author cloned repo A and made the new additions locally, then uploaded the repo ...
0
votes
0
answers
5
views
multipart/form-data not setting in MultipartEncoder (python)
I am trying to upload a file to a server and it only accepts the file in multipart/form-data format so when i try to send it by encoding like:
m = MultipartEncoder(
fields={'...
0
votes
0
answers
5
views
I am trying to calculate the cpu percentage a certain process take but the values are very differnt than that of the task manger
i use psutil to calclate the cpu but i got weired results here is my code
import os
import numpy as np
import tensorflow as tf
from PIL import Image
import matplotlib
matplotlib.use('TkAgg') # Use ...
0
votes
0
answers
6
views
OIDC Error after adding Microsoft.IdentityModel.JsonWebTokens
I am using multiple Authentications in my .net 8 webapi (Cookie, OIDC, JWT). When I am adding only the reference to Microsoft.IdentityModel.JsonWebTokens im getting the error below.
Error
Cannot ...
0
votes
0
answers
4
views
With ANSI SQL, how can I join data to my table that isn't available for everyone without losing results?
I have a main table, Table 1, that includes columns for student ID and some other info. There is also Table 2 which includes columns for student ID, survey question, and response. Essentially, I want ...
0
votes
0
answers
3
views
Is there a way to obtain author counts by importing a text bibliography into R?
A colleague of mine is creating a bibliography on a particular topic and is interesting in figuring out the relative contributions of each researcher to the field (in terms of paper number). Currently ...
0
votes
0
answers
5
views
phpspreadsheet printing: choose paper slot
If I use the following code from phpspreadsheet documentation:
$spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load('template.xlsx');
$worksheet = $spreadsheet->getActiveSheet();
$worksheet->...
0
votes
0
answers
4
views
Problem with login logic and json web token use in react app
I'm trying to use jsonwebtokens and jwtdecode in my login logic for a portfolio project im working on as a newer coder and i cant figure out whats wrong. I used console logs to find out that its ...
0
votes
0
answers
4
views
Can't get logs from Laravel in Docker with Nginx Unit
I have simple project on Laravel, which is hosted on ECS using Nginx Unit baked in Docker. The only logs I get are from nginx unit:
2024/03/28 14:41:10 [notice] 55#55 module: php 8.2.16 "/usr/...
0
votes
0
answers
9
views
in R regex use optional charater behind a capture group
I'm trying to extract a string from a longer string. The capture group may be followed by an underscore or by nothing. Here's an example:
id <- "begin_station1"
id <- "...
0
votes
0
answers
5
views
How to get sorted data from mat-table of all pages?
I'm looking for a method to extract sorted data and save it under sortedData from dataSource of mat-table in order to save it to CSV file. There are filters and pagination applied to dataSource ...
0
votes
0
answers
6
views
database does not connect if i use require once in another PHP page
i have to use every time database connection in each page of php to make it work. Require once is not working in cpanel.
i tried required once and__DIR__ 'dbconnection.php' but not successful. I have ...
0
votes
0
answers
11
views
C++ VSCode how to link miniz
I tried what';s written in their docs:
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg integrate install
./vcpkg install miniz
And then in my cpp
#include "...
0
votes
0
answers
3
views
How do I display Supabase AuthApiError from server-side in client -side
I am working on a SvelteKit application with a Supabase back-end. I just finished on input validation, and now I am trying to display errors for invalid credentials. I am struggling find a way to do ...
0
votes
0
answers
12
views
Add a .xlsx extension to a variable in Python
I have some Python code that pulls data from a pdf file and converts it into excel. It then grabs specific data from that excel file and saves it to a new excel file. I want to name the final excel ...
1
vote
1
answer
14
views
Signal-based utility keeping track of multiple async operations performed with observables
I need a Signal-based utility to keep track of the status of multiple async operations performed with observables (e.g. HTTP calls). So I can use those signals also in Components using the OnPush ...
0
votes
0
answers
6
views
Rails 7.1 resolve conflicting Zeitwerk Inflection rules
I have a Rails 7.1 app and multiple (Rails Engine) Gems with conflicting inflection rules.
There is Gem1::Api::Gem1Controller under app/controllers/gem1/api/gem1_controller.rb
and Gem2::API::...
0
votes
0
answers
4
views
How to configure weekly incremental AWS Appflows to overwrite former files
I have an AWS Appflow to transfer files from a SharePoint to a S3 bucket, configured to run weekly and only make an incremental transfer of changed files.
I did not found a way to make Appflow ...
0
votes
0
answers
5
views
Google Maps Flutter - Update Markers on data change or movement
I am not sure if this is possible to do or not but I am trying to figure out how to update markers on camera movement, device movement which i am using the centerLongitude and centerLongitude for or ...
0
votes
0
answers
9
views
All tests are being considered "timed out" but my mutation score is 100%
I'm trying to run mutation testing with Stryker on my project which uses JEST to run unit testing.
I didn't get any errors, but all the tests are getting the “timeout” status, however, my mutation ...
-1
votes
0
answers
15
views
What is the cost of Java's native methods?
Recently, when I was reading some article (do not ask me to remember it's title), I found out that improving performance with Java's native methods is not such a good idea, as switching state of ...
0
votes
0
answers
5
views
Ubuntu:24.04 Container generating excessive logs
I am building a workflow that uses containers and Cloud Batch.
My current container is created from a Docker file:
FROM ubuntu:latest
ENV CONTAINER_NAME="python3"
RUN apt-get update &&...
0
votes
0
answers
5
views
Convert the class to logical of multiple variables in the workspace
I have some logical values being read in as characters from some data:
library(tidyverse)
switch_1 <- "TRUE"
switch_2 <- "FALSE"
switch_49 <- "FALSE"
switch_50 &...
0
votes
0
answers
5
views
Change MapView padding (to avoid being hidden under a bottom sheet)
I'm showing a bottom sheet on top of MapView. I want to push the map center, and apply bottom padding to MapView according to bottom sheet height. Any thoughts on how to do that?
0
votes
0
answers
7
views
How to import cases into Oracle Argus without encountering trigger errors?
Recently, I received a new requirement to import case data into Oracle's Argus system, but I can't proceed at all (unless I disable triggers). The main table for cases is CASE_MASTER, but when I ...
1
vote
0
answers
15
views
Passing optional arguments from makefile to shell script
I have a makefile as follows
do-something:
sh ./Scripts/do-something.sh "$(name)"
and running it as follows:
make do-something name=Foo
calls the script as expected.
sh ./Scripts/do-...
2
votes
0
answers
18
views
Why does MSVC never return struct in RAX for member-functions?
I've stumbled across an oddity in MSVCs codegen, regarding structures that are used as return-values. Consider the following code (live demo here):
struct Result
{
uint64_t value;
};
Result ...
0
votes
1
answer
15
views
Read only a specific line from a json file
I have a large json file containing +8 million lines. Due to memory restriction i'm trying to find how to only read a specific line from the file without load the whole file into memory.
What i'm ...
0
votes
0
answers
6
views
MySQL Workbench not showing Apply and Revert buttons while creating a table
I'm trying to create a table using MySQL workbench, but the Apply and revert buttons are not showing. I also can't type in a name for the table.
0
votes
0
answers
6
views
Usage of merge in linux sort utility
I have a question about sort utility in Linux. Why does it use merge? There are sorting algorithms like Radix or Counting which have O(n) complexity(in any, worst and better scenarios) then Merge ...
0
votes
0
answers
5
views
Service in Docker Compose not connecting to Redis container in docker, Failed to connect to any host resolved for DNS name
So I currently have a service for an eccomerce project which uses redis and jedis to connect. It is working when ran using source code but when it is dockerized it pops up the following error:
redis....
-1
votes
0
answers
9
views
Can I create recaptcha keys good for any domain?
I'm creating a set of keys for our apps up on Azure where we have 2 domains (production and dev slots). But we also need keys for all the developers when they run on their system.
Is there a way to ...