All Questions
23,923,624
questions
0
votes
0
answers
2
views
Getting bytes output with ffmpeg and subprocess
I'm downloading some images from a website and making a video out of it. I don't want to save the video to a file and then read it so I can send it through a POST request. I'm looking to unify this ...
0
votes
0
answers
5
views
Running Android App in Visual Studio Code with Emulator
I am developing a React Native application which is integrated with Android. It is easier for me to be developing just using Visual Studio Code for React Native and Java in the same place. Currently, ...
0
votes
0
answers
5
views
Cannot read properties of null but the variable is defined [React]
I'm trying to implement my first full stack project according to the next YouTube tutorial:
https://www.youtube.com/watch?v=5Y5QKfxTErU
Based on MERN technology.
Implementing that step by step.
Until ...
0
votes
0
answers
3
views
TIdMessage.SaveToStream does not save properly
While trying to transfer an Imap TIdMessage from a Thread to the MainThread, I discovered that saving it to Stream and then loading it back does not work.
Log('Msg.MessageParts.Count='+Msg....
0
votes
0
answers
4
views
Unable to extract tweet public metrics using tweepy
client = tweepy.Client(bearer_token=bearer_token)
response = client.get_users_tweets(id=userID, tweet_fields='public_metrics')
The above runs successfully but i got the below response without the ...
0
votes
0
answers
3
views
angularjs $http document load into an iFrame
I have read through two dozen references trying to get $http.get to pull a document from my server and load it into an iFrame. The call to the document works and its all stored in data - and I can ...
0
votes
0
answers
5
views
Using BEM for large set design
I'm interested in how to solve the problem of names for classes. For example I have 30+ options for the first section (hero). They have different structure and different blocks inside.
On the one hand ...
0
votes
0
answers
10
views
Pygame won't run in MacOS when the init is done inside a class
So, I have an A Star class which works fine in Windows, but in MacOS it is giving me a lot of trouble. If I straight up run the code, it shows me the Pygame window after the loop has finished, but if ...
0
votes
0
answers
5
views
missing org.springframework.boot.web.servlet.server.ServletWebServerFactory
i was running the program and i received this error
im new to spring
i used tomcat 8-5.8
i'm using an eclipse maven project with simple project checked
2023-09-22 15:11:02.621 INFO 12936 --- [ ...
0
votes
0
answers
12
views
Is there a convention which fields are reserved for implementation in python?
I read the documentation of threading.Thread that mentions:
There are two ways to specify the activity: by passing a callable object to the constructor, or by overriding the run() method in a ...
0
votes
0
answers
3
views
Connecting to MQ from Java using SSL fails with error MQJE001: Completion Code '2', Reason '2397'
A Java program connects to the MQ Server using SSL and puts a message to MQ. It was working last week, and now it is not working. Following is the error stack trace on the client side:
com.ibm.mq....
-1
votes
0
answers
15
views
Can you explain Python and & or statements [duplicate]
I'm no expert at programming, but playing and experimenting.
Can anybody explain why these outputs are what they are?
>>> ans = "London"
>>> ans != ("London" or &...
-1
votes
0
answers
6
views
The argument type 'List<dynamic>' can't be assigned to the parameter type 'List<Widget>?'
class HomeScreen extends StatelessWidget {
const HomeScreen({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Builder(
builder: (context) {
return BlocConsumer<...
0
votes
0
answers
4
views
Sync Git activity with Remote respository (Github)
Is there a way to sync all the activity (Commits, with their description and changes) from the Local repository to the remote repository?
The problem is that I was working on my local git without ...
-3
votes
1
answer
16
views
([Error] ISO C++ forbids comparison between pointer and integer)
I am new to C++ and to programming in general. I am trying to make this small code but when I want to use the if function I get this error.
I have no idea what it could be. I tried several conventions ...
0
votes
0
answers
9
views
InputSelect not updating value in CRUD operations
I am working on a blazor webassembly project which has a form. When performing edit operation the values loads up correctly in all fields including dropdown i.e InputSelect. But when changed the value ...
0
votes
0
answers
5
views
What's the functionaliy of the clusterIp created by ingress controller?
after deploying nginx ingress controller there are two services in the nginx namespace
NAME TYPE CLUSTER-IP EXTERNAL-IP
ingress-nginx-controller ...
0
votes
0
answers
5
views
String .unresolved reference. None of the following candidates is applicable because of receiver type mismatch
I was solving a string conversion problem. At the compilation stage, the code throws an error: "unresolved reference. None of the following candidates is applicable because of receiver type ...
0
votes
0
answers
10
views
put of __declspec not declare in the scoop in VScode C++
I'm beginner in c++, I'm trying to run this simple code using __declspec inside a class for get & put properties but the VScode does not recognize the get&put properties within __declspec as ...
0
votes
0
answers
6
views
Download a text file without displaying save file popup in an electron app
In my electron app, I am taking user input in a text field and trying to download that text as a csv file on button click. The below JS function is working fine but it displays a popup along with the ...
0
votes
0
answers
4
views
I'm starting docker file and have such exception: org.springframework.beans.factory.BeanDefinitionStoreException
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.example.foodcollector.DailyTaskListApplication]: Error processing ...
0
votes
0
answers
8
views
error C2660: 'PyDict_GetItem': function does not take 1 arguments see declaration of 'PyDict_GetItem' ninja: build stopped: subcommand failed
I am running into an issue when trying to build pytorch-1.12.1 from source. I have search the web for a solution but cannot find one. I am not familiar with C++ so this stuff can become quite ...
0
votes
0
answers
5
views
AVR Assembly code for UART, sending two characters over Serial?
I am just trying to send a character from my ATMEGA32A to Serial. Here is the code but its not working. I am unsure why because I think I am doing everything right. Can anybody help me fix?
(BAUD Rate:...
0
votes
0
answers
7
views
How can I add color mode aware styling to <SfTextBox>-es? No javascript, please
I am using Tailwind CSS and Syncfusion in my hosted Blazor WebAssembly app. I want to change the background color of input fields based on the color mode (light mode/dark mode), and I want the color ...
0
votes
0
answers
4
views
Jetpack Compose Preview Render Issues with IntelliJ Not Showing the Problems
I am doing Android Native programming with Jetpack Compose, using the latest version of IntelliJ.
When trying to do a Preview of my Composable, after some recent changes, I am getting an error in the ...
0
votes
0
answers
10
views
Python PIL error 'L' format requires 0 <= number <= 4294967295
I create a numpy array of int, then I transform it as a PIL Image of type uint32, and then I try to save it. See simple mock code below:
import numpy
resLabels = numpy.ndarray(shape=(38000, 38000), ...
1
vote
1
answer
12
views
How would I use CUPS to get the printers in my network in C++?
CUPS seems to now be requiring a http_t* http; variable in cupsGetDests(&dests); method and right now I don't know what to do since I haven't found any reference online yet.
I already did some ...
-2
votes
0
answers
11
views
Why am I getting wrong option prices back for same-day requests, next day requests do return the correct price
I have been building an algo that will check my fills against the bid and ask price of a certain contract at the time that I receive an alert and at the time the order was submitted by the algo.
...
0
votes
0
answers
5
views
How do I set a session token for a client in aws-sdk for Go version 2
I have an aws_session_token in my ~/.aws/credentials file. I read it like this using the aws-sdk for Go version 2:
cfg, err := config.LoadDefaultConfig(context.TODO(), config.WithRegion("us-west-...
0
votes
0
answers
5
views
Modifying cypher query with additional properties and labels
So I have a system whereby I will be handed in cypher queries to do specific operations (e.g. create a new node) as part of a pipeline.
The question I have, is that I would like to add additional ...
0
votes
0
answers
7
views
scatter plot interaction coefficients in R
I have the following regression:
model <- lm(y ~ x1 + x2 + categorical + categorical*x1)
I would like to make a scatter plot where the points are the intercept and slope for the different ...
0
votes
1
answer
5
views
How can I navigate and manipulate list views in VS Code using the keyboard?
I want to use the keyboard only to navigate inside and manipulate list views in VS Code, such as
the Explorer View's subviews, like Open Editors, Folders, Outline, and Timeline
the Source Control ...
0
votes
0
answers
3
views
Inserting a Navigable, Numbered Table of Contents on a Specific Page in RMarkdown with a Reference Docx
I am working with Rmarkdown and trying to generate a Table of Contents (TOC) that appears on a specific page of my document. I'm using a reference .docx file to style the headings and subheadings, and ...
0
votes
0
answers
4
views
text/plain not present in mail msg from microsoft account
The same message was sent from a microsoft 365 to my microsoft 365 and
to my gmail. However, mutt sees them differently: in the first case
I 1 <no description> [text/html, quoted, ...
0
votes
0
answers
2
views
How can you resolve a "resource already exists" error in Cloudformation without deleting the stack?
During a deploy I got:
❌ geoms (geoms-justincollum) failed: Error: The stack named geoms-justincollum
failed to deploy: UPDATE_ROLLBACK_COMPLETE: Resource handler returned message:
"Resource ...
-1
votes
0
answers
7
views
Disable WooCommerce checkout if customer is outside the US
I sell both tangible and virtual products in my WooCommerce store and am having a hard time figuring out what to do when someone from outside the US tries to order a tangible product. I've looked ...
0
votes
0
answers
10
views
Compile multiple Java files in sublime text
I am trying to execute a whole (mini) project in sublime text, however, I can't on sublime text because of the imports...
I am on Windows 11,
Here is the picture of the directories:
Directories
Here ...
0
votes
0
answers
2
views
Component name is not unique, java.lang.IllegalArgumentException in Jira Scriptrunner for the line issueLinkManager.createIssueLink
I am writing code to create a new linked issue and I am having the following error thrown
void createFeature(Issue issue, Collection<ProjectComponent> componentList){
def issueLinkManager = ...
0
votes
0
answers
3
views
bluetoothctl creating gatt server - cant write more than one byte
I've added a service and charecteristic with bluetoothctl (bluez v5.64). I have some issues:
I can only write one byte. attempting write "0x11 0x22" results in
"Unable to write local ...
1
vote
2
answers
15
views
How to pipe the result of wget to tar
I'm trying to create a command that would download the latest .gz file and install on my container in Dockerfile. I came up with this but I can't seem to get it working.
curl -s https://api.github.com/...
0
votes
0
answers
7
views
How can I capture new relic logs from a background python process I launch in an ECS container
Here is the startup shell script for the container:
#!/bin/bash
# Set environment variables for newrelic
if [ -z "${ENVIRONMENT}" ]; then
export NEW_RELIC_APP_NAME="tf-ai-service-...
0
votes
0
answers
7
views
How do I include slashes as sort key elements in the Linux "sort" command?
I am trying to sort a file which has some lines beginning with the slash ("/") character at the beginning of the field, using the "sort" command. However, the command appears to ...
0
votes
0
answers
5
views
StencilJS build failed after version upgrade
I have an issue with build stencil app after version upgrade.
I had @stencil/core version - 2.17
After yarn add @stencil/core@3 it builds and works correctly without any changes.
I want to upgrade ...
0
votes
0
answers
4
views
Is there a standard Backus-Naur form for checking that lists contain consistent token types?
I'm using PLY to parse DNET files. Part of the grammar suggested by the DNET specification is (in my words):
<value> -> NUMBER | STRING | ID
<values> -> <value> | <values&...
0
votes
1
answer
26
views
How to handle a function return type conditioned by the parameters
I have the following function for changing object key casing:
export enum CasingPattern {
SNAKE,
CAMEL,
}
export const toSnakeCase = (camelCased: string) => {
const replaced = camelCased....
0
votes
0
answers
3
views
iframes for Google Maps Imbed API only working in "place" mode
When I generate iframes, even when using the Google iframe generator, the code only works when using the "place" mode. If I try other modes I get API permission error - "...not ...
0
votes
0
answers
4
views
Why Pinescript doesn't recognise DEMA?
I have pinescript indicator code. there is a problem about DEMA bu I couldn't solve it. Could you help me?
//@version=5
indicator("Trading Strategy", overlay=true)
// MACD Dema line between -...
0
votes
0
answers
6
views
Recovery of old SVNrepository
I am trying to recover the source code for an old
project. What I have is an untarred SVN directory that looks like the following:
README.txt dav/ format locks/
conf/ db/ ...
0
votes
0
answers
5
views
Azure mysql - migration from onpromise to the cloud
I am trying to migrate my onpromise MySQL to Azure MySQL. I have a dump file of around 7 GB, and it takes about 3 hours to finish the import process(I have changed the database parameters). This is ...
0
votes
0
answers
6
views
CVS export has rows Grouped by certain column headers, how do I flatten it to fill in all the blank cells?
Exports currently look like this. I can Not change the export to do anything differently. current view
I would like to know how to make that first image, look like this second image from inside Google ...