976 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
167
views
Why does my queued job in Laravel 10 not execute after dispatch?
I have a fresh Laravel 10 app and I'm trying to test queues.
I created a job with php artisan make:job TestJob.
routes/web.php
Route::get('/test-job', function () {
\App\Jobs\TestJob::dispatch();
...
19
votes
7
answers
3k
views
How to reduce repetition in a large amount of if-else statements when reading from a buffer
I'm trying to read a package from a buffer, decode it, and then return a package that might contain a requested info or call a specific function depending on the package I received. I'd like to know ...
2
votes
5
answers
206
views
implement multiple dispatch (like in julia, numba, etc) in C
Preamble
So i've noticed that a lot of functional / jitted languages (eg julia, numba jit for python) have virtual methods attached to "functions" rather than classes, and those "...
0
votes
0
answers
24
views
Centralized Configuration and Dispatching Management
I have 20+ applications (Rust, Python, Node.js, ...) running on a single server. Some of them are cronjobs, some are Docker containers and some run in screens.
I'm going to use an uptime monitoring ...
1
vote
1
answer
59
views
S3 Dispatch Issue: Custom as.factor Method Not registered for Custom Class
I am creating a custom S3 class, to_from_fiscal, that extends the "Date" class in order to create fiscal years that display in a format commonly used in the UK. My goal is to implement a ...
0
votes
0
answers
78
views
Implementing traits for dyn traits
I'm having issues in getting Rust to compile with this particular situation I simplified to this example.
struct LeafNode {
data: f64,
}
struct ContainerNode {
data: f64,
previous: Rc<...
0
votes
0
answers
30
views
Multiple dispatch based on object attribute types in python with multimethod
I'm a Python noob having a tough time trying to implement multiple dispatch (based on object attributes types) using multimethod.
To be more precise, as long as I use functions this works lovely
from ...
0
votes
1
answer
154
views
kamailio send message instead of call busy
I want to set up my kamailio SIP server to answer calls and playback a message instead of replying to INVITE requestes with BUSY.
I setup an asterisk server that plays back the message to all incoming ...
0
votes
0
answers
191
views
Dispatch Auto-Start Service on Android TV problems with Accessibility
I am trying to enable auto-srtart on my android tv with dispatch, but the problem is that my android TV, for some reason, does not have an accessibility setting. What should I do?
I tried ADB from my ...
2
votes
1
answer
405
views
Maui's MainThread class lacks DispatchDelayed method. How do the equivalent?
For many Maui apps, class Mainthread has convenient methods to run code on the main UI thread, from code that may be running in a background thread.
IMPORTANT: See caveats.
However, MainThread lacks ...
0
votes
1
answer
119
views
Job is added to queue but is not run by Laravel
I need to run the job through the queue. So this is where I call dispatch:
try {
importProductsFromPlatform::dispatch($api, $options);
// dispatch(new ...
2
votes
2
answers
3k
views
Capture of variable with non-sendable type NSImage in a '@Sendable closure'
I'm new to swift concurrency, I noticed that my code freezes UI when trying to initialize NSImage, so I decided to do it on the global thread like this:
func chooseImage() {
Task { @MainActor in
...
1
vote
1
answer
139
views
Example of virtual function method call that does not exist at compile time?
The wikipedia article on virtual functions states the following:
Virtual functions allow a program to call methods that don't necessarily even exist at the moment the code is compiled.
Unfortunately ...
0
votes
1
answer
2k
views
Dispatch event from child component to parent component Livewire v3
I am using Laravel Blade with Livewire version 3.
I have a file where a show all my record, for this example all my clubs:
<div class="container mx-auto px-4 py-5 dark:text-white">
...
0
votes
0
answers
62
views
Vuetify v2 icon color updated only after hover
on a vue.js v2.vuetify project
I change the value of a settings variable with a value retrieved by remote database using a dispatch procedure.
this variable controls (changes color) an icon in the ...