Newest Questions
24,178,324 questions
0
votes
0
answers
2
views
plot function over two variable ranges
I'm trying to draw a contour plot over a function. Here's the code I have so far:
# Negative log-likelihood of mu (assumes unknown mu, known sd)
X <- rnorm(100, 0, 1)
NeglogLikNorm2 <- function(...
0
votes
0
answers
9
views
Why does a floating-point multiplication compile more efficiently when I put it in an inline function?
I am using com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706 AKA arm-none-eabi-gcc (GNU Tools for STM32 13.3.rel1.20240926-1715) 13.3.1 20240614 to ...
Advice
0
votes
0
replies
3
views
register dependencies versus out of order execution
Consider the register based sequence loop:
a = x + b
b = y + c
c = z + d
d = w
On a typical modern processor, will "b =" have to wait until "a" is updated and no longer needs b? ...
0
votes
0
answers
6
views
Bluetooth scanner returns no results
I'm developing an app to connect to a Bluetooth device. I'm having trouble with the Bluetooth scanner part of the app.
package com.example.taillights.services
import android.bluetooth.BluetoothManager
...
0
votes
0
answers
8
views
Config in routes of Laravel (php ^8.2)
I'm trying to use some custom config of routes (config/routes.php) in the actual routes/web.php which seems to work, but it breaks somethings like php artisan serve or when I try to run php artisan ...
1
vote
0
answers
11
views
compute Sparce Matrix Standard Deviation python
I generated the following PCA plot with Python which I'm not really familiar with.
However, there is one things I don't like that is I'm not plotting the explained variance by PC1 and PC2. ...
-3
votes
1
answer
37
views
How to copy the response from GitHub Copilot in VS Code?
I'm using GitHub Copilot in VS Code, but how do I copy the full response while keeping the Markdown formatting? I don't see a copy button like in Cursor.
-1
votes
0
answers
27
views
how to draw a time series graph with proper lables and texts in it [closed]
I wanted to make it specific to some language like java, python, c++, etc. But later I decided to keep it generic.
Actually, I am working on a task to create a UI that properly displays the data as a ...
-1
votes
1
answer
19
views
deployment error Vercel Error occurred prerendering page Error: @supabase/ssr: Your project's URL and API key are required to create a Supabase clien
enter image description here
I have issues with publishing my project can somebody help me
the framework i work with is
next.js
react
supabase free version
i linked my database correct with in my ...
1
vote
0
answers
26
views
STM32 basic I2C bare metal setup and transmit issue
For educational purposes, I try to get familiar with how to write a simple bare-metal program for an STM32G474VET6 MCU for basic I2C transmit functionality (I2C3, 100 kHz). Practice target is an IO ...
0
votes
0
answers
10
views
Sanity IO error when trying to visit /studio on localhost
I just setup Sanity within my project, everything is default and I've added the env variables: NEXT_PUBLIC_SANITY_PROJECT_ID and NEXT_PUBLIC_SANITY_DATASET, which I made sure they correspond to the ...
0
votes
0
answers
8
views
Apache, mixing http and https virtual hosts
I am hosting 6 websites. One is for my personal use, and access is intended to be https. So a self-signed cert is just the ticket. I created the cert, and that virtual host works on https.
However, ...
0
votes
0
answers
17
views
Tkinter frame changes with buttons
I am a beginner with Tkinter, and I can't figure out how to change frames in my RPG game. In the code I sent, I am trying to close the welcome_frame and open it. By the way, I couldn't find how to ...
0
votes
0
answers
19
views
Don't get publish() to work in paho.mqtt.client.on_connect thread
I'm struggling to get publish to work in the on_connect thread. The publish called in the main is reaching the broker, but not the ones in the on_connect function.
When running the code below, only &...
0
votes
0
answers
13
views
In Godot, how can I use different culling distances for 2 different layers with a single camera?
I am building a 3D game. I need to keep the near culling distance on my camera relatively high to avoid z-fighting for distant objects. However, I also want a weather system and other 3D particles ...