Questions tagged [signals]
A signal is a notification to a process that an event occurred. Signals are sometimes described as software interrupts. Signals are analogous to hardware interrupts in that they interrupt the normal flow of execution of a program; in most cases, it is not possible to predict exactly when a signal will arrive. They are defined in the C standards and extended in POSIX, but many other programming languages/systems provide access to them as well.
signals
7,519
questions
0
votes
0
answers
14
views
Tracking signal changes with effect() in web components made with Lit
I'm building an audio streaming web app, with the use of some web-components created with Lit and signals (through the library preact-signals) for global state management.
Here is how it works :
In a ...
-1
votes
0
answers
10
views
Using a self build module in the file of diffrent folder
I am starting work on a project of a pretrained and preprocessed model. Problem is that the shared pretrained and preprocessed files are in different folders while the self made modules are being used ...
0
votes
0
answers
18
views
Loading Data dependend on signal property whenever the signalproperty changes in a Signal Store
I am using a signal store in my application to manage the state related to projects and sites. Here is my current implementation:
interface State {
selectedProject: Project | null,
selectedSite: ...
0
votes
0
answers
23
views
PySide6 detect if mouse pressed outside of widget [duplicate]
I have a GUI that needs a combo box that contains check boxes. From what I understand there are not any built in methods to create a QComboBox with checkboxes instead of buttons. Therefore, I'm ...
1
vote
2
answers
30
views
Make Docker a proper UNIX citizen
I'm trying to write a wrapper over Docker to propagate signals and standard output in a sensible way. First, Docker doesn't handle SIGPIPE nicely:
$ docker run --rm ubuntu yes | head
y
y
y
y
y
y
y
y
y
...
1
vote
1
answer
46
views
Angular Signals inside effect()
In a component, I am accessing item_id as input parameter.
Where can I call toSignal() or .subscribe() to service method, if it is not allowed inside constructor / ngOnInit() effect()?
item_id = ...
-1
votes
0
answers
13
views
I want to make pine script right and I want help from you [closed]
I have no experience in writing codes. I am trying to combine several indicators by overlaying their scripts into one common one, but it constantly gives me an error. Find out if it is even possible ...
1
vote
1
answer
39
views
Are Angular signals removed from the browser memory after the component is destroyed?
I am using the new Angular feature named signals like this:
arr: WritableSignal<string[]> = signal([]);
I want to know if this signal is destroyed from browser memory after the component is ...
0
votes
0
answers
18
views
windows python app ignore signal handler and close immediately on any signal
I have two simple python3.11.6 scripts.
One is just printing PID and waiting for signal
Second one is trying to send some signal. For example SIGINT into first script.
First script should just print ...
0
votes
0
answers
23
views
Problem adding SVG elements dynamically and rendering them using React Signals
I am trying to dynamically add SVG elements to my screen using React Signals. I now have a situation in which I do not get any errors anymore, but the dynamically added SVG elements do not render. I ...
0
votes
0
answers
44
views
C++ main thread polling and blocking, termination on signal
I have a main thread which should do some work every N seconds (20 in this case) and wait/block/suspend in-between. However, at the same time, I want the application to stop correctly on a SIGTERM/...
1
vote
0
answers
35
views
Correct way to graceful shutdown infinite async task running parallel and FastAPI
Following code is working correctly.
I am interested is this correct way to graceful shutdown FastAPI and infinite async task that is running in parallel.
import os
import asyncio
import signal
from ...
1
vote
1
answer
28
views
How to do some restriction with signals in angular?
i am new to signals and i am having some difficulties with understanding basics.
public currentPage: WritableSignal<number> = signal(1);
public totalPages: Signal<number> = computed(() ...
0
votes
1
answer
34
views
SignalIntegrity cannot import name 'math' from 'numpy'
I can not launch the SignalIntegrityApp GUI application
I carefully followed the instructions in the website:https://github.com/Nubis-Communications/SignalIntegrity/wiki/Installation
However, when I ...
0
votes
0
answers
19
views
Angular Signalstore - Can the Glitch Free Effect be bad?
currently we are thinking to switch from the classic NgRx to the Signalstore.
It is lightweight, powerful and customizable.
Currently there is one think that holds us back:
The "glitch-free-...