Newest Questions

Filter by
Sorted by
Tagged with
-1 votes
0 answers
38 views

How can I use a dynamic custom 404 template in Laravel?

I have made a blogging application in Laravel 8. The application supports themes. The active theme sis set in the settings table and the parent controller reads it from there: class FrontendController ...
-3 votes
0 answers
16 views

> "Solidity ERC20 `transferFrom` fails despite valid allowance — am I approving the wrong address?"

I'm writing a Solidity smart contract using Hardhat. I’m trying to move ERC20 tokens from a user to the contract through a custom spend() function — but it keeps reverting, even though I’ve already ...
0 votes
0 answers
15 views

Tree-sitter precedence issue, optional() not greedy?

I've create a toy language a few years ago, and wrote a parser for it using parser combinators. Now, I'm creating a Tree-sitter parser for it as well, so as to get syntax highlighting in Zed, and ...
0 votes
0 answers
31 views

Applying a function to two matrices column-by-column in octave/matlab

Short version: How do I vectorize two matrices A and B by column so that I can pass the 1st, 2nd, ..., ith column of A and the 1st, 2nd, ..., ith column of B to a function without a loop? I have two ...
0 votes
0 answers
14 views

How to use content property defined in PrimeNG Dynamic Dialog's DynamicDialogTemplates?

Using PrimeNG DynamicDialog, I'm trying to create a consistent header-content-footer layout for all the dialogs in my use case. When opening a custom dialog component, in the dialog configuration, ...
-2 votes
1 answer
48 views

Console.ReadLine in a Task causing side effects

I want to loop and ask user if he wants to continue. If no answer for a while, loop anyway. while (true) { Console.WriteLine("\nDo you want to continue? (Type 'no' or 'exit' to break, or wait ...
0 votes
2 answers
39 views

Run Cron Job Monthly Based on Iranian Calendar (Hijri Shamsi)

I need to run a PHP script every month using a cron job, based on the Iranian (Hijri Shamsi) calendar. I want the cron job to run on the first day of each Iranian month, at midnight. when I used the ...
-2 votes
0 answers
13 views

Why I get "No operating system was loaded" error in Hyper-V? [closed]

I downloaded the Win11 ISO file and enabled virtuilazition after enabled Hyper-V features after that I created a VM several times even sometimes with ChatGPT, sometimes with Youtube videos. But likely ...
0 votes
0 answers
28 views

Spring Boot: Redirecting URLs ending in slash to without slash

I want to redirect all routes like /api/user/home/ to /api/user/home. Here is the configuration file for gateway: spring: application: name: gateway cloud: gateway: routes: -...
1 vote
1 answer
27 views

Is it possible to force mysql server authentication using django.db.backends.mysql?

it's my first question on stack overflow because I can't find relevant information in Django documentation. Is it possible to force mysql server authentication with ssl using django.db.backends.mysql? ...
0 votes
0 answers
21 views

groovysh: multiple imports don't import

Can anyone explain to me why imports aren't getting imported when I copy/paste multiple import statements into groovysh (5.0.1)? groovy> import java.util.Locale > import org.apache.poi.ss....
0 votes
0 answers
41 views

CSS position disappears on mobile screen

I am making a page for my school, for writing down tasks, tests, etc. so we can remember them. I want to make it easy to use so I wanted to adapt it for mobile, however, I am having some problems on ...
-7 votes
0 answers
51 views

What is the use of the following java code? [duplicate]

public static void main(String[] args) What is the use String[] args? I saw this in every code. I don't know what is the use of it. I know string is for adding characters, but what is the use in main?
0 votes
0 answers
36 views

image textures not interacting with lights

I'm trying to learn animation and to get a better feel I'm using models and textures from an older game which i ported from SFM (game: Dawn of War). but now that i want to use them in a animation, ...
1 vote
0 answers
33 views

Implicit model binding fails when using {locale} prefix in routes

I'm working on a multilingual Laravel 12 app. All my routes are grouped under a {locale} prefix, like this: Route::prefix('{locale}') ->group(function () { Route::get('/activities/{...

15 30 50 per page
1
...
5 6
7
8 9
...
1612866