All Questions
24,113,413
questions
0
votes
0
answers
4
views
How should I replace the numpy array in this code?
I have a program that creates a linear gradient but uses numpy arrays. This cannot be used because the numpy library takes up too much space on the microcontroller. Is there a way to replace the numpy....
0
votes
0
answers
3
views
How to simulate Visual Assist feature "Move to Previous Scope" and "Move to Next Scope" in VSCode?
There is a feature in the Visual Assist extension for MS Visual Studio, called "Move to Next Scope" (and "Move to Previous Scope") that I use regularly to navigate our company's ...
0
votes
0
answers
4
views
Form to send parameters and close
I need to pass the form fields to the action url and then close or a success message appears and I don't know what I can do in the script.
<form id="myForm" action="https://exemple....
0
votes
0
answers
4
views
MAUI: Can I skip building for android or IOS when I'm building either platform?
Basically the title says all.
Maui has single project format for IOS and Android. When I'm debugging on iOS, I don't want MSBuild to build android as well and vice-versa. it gets slow.
Other than ...
0
votes
0
answers
5
views
Sticking a button on the bottom right
Picture of app
I'm making this project for my bootcamp, I'm struggling with moving this + button to the bottom right of this container, my project has this container to "simulate" a phone ...
0
votes
0
answers
5
views
Class A declares Class B as a friend, but Class B has Class A as a member
So I've got a bit of a chicken-and-egg situation where:
class MyWindow;
class MyPanel : public wxPanel
{
public:
MyPanel(wxWindow* parent, wxWindowID id = wxID_ANY, const wxSize& size = ...
0
votes
0
answers
6
views
How to load a .css file after each path/page/url?
I'm working on project React.js based.
I'm not a expert on Rect.js. They gave me a job to modify a open-source project made of React.js
So, I see the way of writting css is by javascript api instead ...
0
votes
0
answers
4
views
Sonarqube Stuck In Process (BulkIndexer) Indexing Elasticsearch. Sonar version 9.9.0-community
Make sure to tell us:
What version are you upgrading from? -> 9.3.0-community to 9.9.0-community
System information (Operating system, Java version, Database provider/version)
I'm not sure, but I ...
0
votes
0
answers
5
views
CachedImage not rendering since Expo 50 Upgrade
I upgraded my Expo SDK to 50 from 49 and for some reason my CachedImage's aren't showing. Everything was working as expected before, now only the shape of the image shows. If I change it to a normal ...
0
votes
0
answers
4
views
How do I call the CudaTemplateMatching.Match in EMGU CV C#?
The function description is here: https://www.emgu.com/wiki/files/3.1.0/document/html/b08fc093-5357-6083-0922-8d1b75334b77.htm but it offers no examples, and when I try to call it it does not work
...
0
votes
0
answers
4
views
Disable Continuous Integration on Pipeline using the Azure DevOps REST API
I'm using the pipeline REST endpoint documented here to create my pipelines and associate them with a YAML file. On some of my pipelines I want to have continuous integration disabled. On the DevOps ...
0
votes
0
answers
6
views
Action on swipe to left. Jetpack Compose, Android
I'm new to Android Development and working right now on my first "real project" (just trying to copy iPhone calculator). The question is how do I implement deletion on swipe to left side of ...
0
votes
0
answers
9
views
FormData is Empty Objectin NextJS 14 when try to console [duplicate]
I am new to NextJs Trying to update user record with image but when before loop all form data values show but after loop when try to console the fromData{} blank object. below is the code
I try to ...
-1
votes
0
answers
4
views
OPL Constraint to pyomo ConstraintList constraint for concrete model
Could someone help me convert these OPL constraints into equivalent Pyomo ConstraintList constraints for a concrete model:
ct_b:
sum(i in items)cost[i]["s3"] <= 0.4*sum(i in items, j ...
-1
votes
0
answers
9
views
validation loss and training loss is not increasing in pytorch
validation loss and training loss is not increasing. I try to imply l2 regularization in form of weight decay as 0.05 but I have removed and tried maybe that could be the reason.
class CustomDataset(...
0
votes
0
answers
3
views
Ably revoking a token individually and by group
I'd like to be able to revoke my tokens in groups and also revoke them individually. Is there a way to assign multiple revocation strings, or target both channel and clientId for the same token so ...
0
votes
0
answers
7
views
Left join in Django with three models
I am new to Django and I don't know how to do joins. I have the following models and their corresponding tables:
class ModelA(models.Model):
id = models.AutoField(primary_key=True)
name = ...
-1
votes
0
answers
13
views
I can't understand what's going wrong with my code in python. (I tried to combine the 'turtle' and 'keyboard' libraries) [duplicate]
I'm a beginner in programming and have encountered an issue with my code. I even tried to use AI, but it's code didn't work at all. Here is my code:
from keyboard import is_pressed as isp
import ...
0
votes
0
answers
5
views
What instrumenting module name should I use with Opentelemetry tracer provider?
The documentation suggests:
instrumenting_module_name (str) –
The uniquely identifiable name for instrumentation scope, such as instrumentation library, package, module or class name. __name__ may ...
-1
votes
1
answer
14
views
How do you disable sticky scroll in VS Code?
I accidentally enabled sticky scroll somehow, and now when I scroll the lines of code at the top stay there, which is not desirable.
0
votes
0
answers
10
views
Convert String representing class to Dynamic in C#
I have a Textbox, and will contaiing Class Definition.
It will be like this:
How to convert string inside textbox to dynamic Object?
What library is exist?
I am trying to find this but just finding ...
0
votes
0
answers
5
views
Where is the error in the else position in Flutter?
At first, I was told that PrettyQrView was wrong, so I changed PrettyQrView(qrCode: qrData) to PrettyQrView.data(data: qrData), and this error disappeared, but the error in else is still the same. I ...
0
votes
0
answers
9
views
DateTimeFormatter returns different formatted numbers for LocalDate.now()
I'm trying to convert the returned date from a calendar into a string value, but it has an unwanted number. I've made a text that views the selected date value for today, and it's successfully printed ...
0
votes
0
answers
3
views
TypeError: object NoneType can't be used in 'await' expression when closing connection
I am on MacOS running 8.0.28 (MySQL Community Server - GPL) with Python 3.9.12. I have a straight forward script to test aiomysql:
import asyncio
import aiomysql
async def test_db_connection():
...
-1
votes
0
answers
12
views
Spyder won't recognize the file path for the CSV to utilize pandas so I can learn pandas. Tried several fixes to no avail
I'm working through a course that teaches people how to use Python for data. This unit is on pandas. I can't get started because there is an issue with this line in the code.
DATA_DIR="C:\Users\...
0
votes
0
answers
5
views
Style scoped vue
I have 2 components in Vue. In the main component I apply a class called ‘elDiv’ that has yellow background color. The secondary component uses a class also called ‘elDiv’ that has blue background ...
0
votes
0
answers
3
views
Turning Specific Tabs in a google sheet into PDFs and saving them in a folder
``I am having trouble pasting in format and the values into the temporary sheet. The cells that are being copied over to the temporary sheet are formulaic. All I need are the fixed values. Below is ...
-1
votes
0
answers
11
views
BIOS interrupts for the X86 architecture [closed]
I am developing a game for the firmware that requires the use of Assembly language. Although I have experience with Assembly, I have not used BIOS interrupts before. Are there any challenges I should ...
0
votes
0
answers
6
views
Swagger UI not working with spring security and jwt when application deployed to docker
So I have spring security configured to my springboot 3 application. Also The application uses JWT token to authenticate the end points. Everything is working fine on local machine. But once I create ...
0
votes
0
answers
5
views
How to make composite foreign key for sqlite database in drizzle schema?
Below are the schema I want to implement (if that makes sense)
CREATE TABLE parent_table (
parent_id1 INTEGER,
parent_id2 INTEGER,
data TEXT,
PRIMARY KEY (parent_id1, parent_id2)
);
...
0
votes
0
answers
6
views
Vue fails when change from views after implements swiper js
I have a project with vue3 after implementing swiperjs 11 in my project and customize some properties, my routing is failing, showing me this
Errors in console, first in my component, and when I ...
-1
votes
0
answers
5
views
AWS Elastic Beanstalk generated domain http to https
I have a Laravel code hosted in Elastic Beanstalk and i'm a student just trying AWS and i'm making a Laravel API. The server is Apache and the problem is i need to get and post with axios in react and ...
0
votes
0
answers
8
views
How can i get depth testing to work in OpenGL using Python and Pygame (without GLUT)?
I am trying to work with OpenGL in Python. I haven't managed to get depth testing to work.
I haven't managed to install GLUT, so i just used Pygame to create the window and it works.
Just activating ...
0
votes
0
answers
8
views
Implementation on HTTP Only/Secure cookie in Angular
Im trying to set http only cookie in Angular17:
import { CookieService } from 'ngx-cookie-service';
async login(formObject: any) {
try {
const res = await axios.post(`${this.url}`, ...
1
vote
0
answers
20
views
Why does bit shifting with a large amount work in C?
I am a beginner in C and mess with its quirks. Why does this code even work?
#include <stdio.h>
int main() {
unsigned char i = 126;
i = (i << 1000000000000000000000000000000000) % ...
0
votes
0
answers
7
views
How to decrypt a segment from a streamming having the "key ID" and the "key"?
I downloaded the segments manually from the Chrome DevTools.
keyId: bbd230ea4874420ea798872d6ea2019a
key: 52ee68eaddf6b390589450214e48a661
I've tried with the command below and the result is a 0kbs ...
0
votes
0
answers
12
views
Using UPDATE ... SET arr[idx] = ... to aggregate rows into arrays
I currently have a database schema like the following table:
CREATE TABLE Measures(
expId SERIAL,
iteration INT NOT NULL,
value float4 NOT NULL,
PRIMARY KEY(expId, iteration)
);
So, a ...
0
votes
0
answers
11
views
How to create a bottom shadow effect that is stronger on the edges
I am wondering if it is possible to create such a shadow effect in pure CSS?
0
votes
0
answers
13
views
Best way to store 3-part version number in SQL
I have version numbers that consist of 3 parts: major.minor.patch and I want to find the best way to store them in SQL so that it would be both efficient and possible to query based on the 3 ...
0
votes
0
answers
7
views
Docker Laravel Container Throwing [pid X] AH00052: child pid XXXX exit signal Segmentation fault (11) when PHPStorm XDebug Listening is Turned On
I have a strange situation happening on my M3 Macbook Pro that is preventing me from debugging a particular Docker container.
This worked without hitches on my previous M2 Macbook Pro.
My workflow is ...
-3
votes
0
answers
16
views
namespace and assembly get confused in a using statement?
Mbsa is an MVC project and MBSAnalysisMVCWebApp.dll is a MVC Web Application project. I switch the namespaces for testing in MBSAnalysisMVCWebApp.
Here is where i change the namespace :
project ...
0
votes
0
answers
8
views
Inductive relations: Explicit proof that inverse relation is refl
In PLFA they define the inverse relation:
inv-z≤n : ∀ {m : ℕ}
→ m ≤ zero
----------------------
→ m ≡ zero
And then assert that:
inv-z≤n z≤n = refl
My question is,...
0
votes
0
answers
12
views
Get last level from JSON Schema in python
I have the following spark dataframe (schema):
root
|-- name: string (nullable = true)
|-- age: integer (nullable = true)
|-- phone: struct (nullable = true)
| |-- home: string (nullable = true)...
0
votes
0
answers
6
views
Processing data of multiple dropdownmenus in discord.py?
So the problem is pretty simple. If i choose one option of the dropdownmenus, it get processed immediatly. enter image description here
In my case i want it to wait until i press the confirmbutton so ...
0
votes
0
answers
8
views
JsonPath, how to get the records' ids with the minimal value of an attribute?
I have the following json data:
{"data": [{"ticket": "249 [DH-249]", "id": 249, "priority": 3, "title": "kUYWr7gWGH", "queue&...
1
vote
0
answers
7
views
Adding a predefined cell style in ClosedXml
Excel comes with a number of predefined cell styles such as Ice Blue and Heading 3.
Is there a way to assign these cell styles to a range of cells?
0
votes
0
answers
15
views
C# How to find all the indexes in a list where a property equals a value
I'm running into memory issues because I have a collection that continues to grow. What I need to do is only keep about 15 items of each occurence in a list, so my idea is to find all the occurences ...
0
votes
0
answers
9
views
tkinter gui for loading any CSV and displaying columns in gui ( apply filters, sort , hide/unhide)
I have semi functional working-script.
I have a "restore original" button that is supposed to unhide all-columns by using the original dataframe and displaying that in treeview. This ...
0
votes
1
answer
7
views
How to run IJulia using the PythonCall CondaPkg Python installation rather than PyCall.jl/Conda.jl
It seems that PythonCall.jl and CondaPkg.jl are becoming increasingly useful packages. In particular CondaPkg provides tools for the management of Python's virtual environments via CondaPkg.toml which ...
0
votes
0
answers
5
views
Why does my QItemDelegate not correctly allow checkboxs to be checked or unchecked in my QTableWidget?
I am trying to use a QItemDelegate to make clickable check boxes in one column in my QTableWidget. However, they are not working. I edited the code from another SO question (can not find it to link) ...