Newest Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
3 views

How to determine that the terminal has a background image (not just color)?

How can I query my terminal for whether or not it has a background image? Is there some standard OSC sequence for this? I just want a yes / no answer from the terminal, I don't care about the image ...
0 votes
0 answers
10 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 ...
0 votes
0 answers
9 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
9 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
11 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
6 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, ...
-1 votes
0 answers
21 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
0 answers
14 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
12 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
15 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
17 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
18 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
14 views

Make NSCountedSet Codable

Is it possible to conform NSCountedSet to Codable? I started with: extension NSCountedSet: Codable { } But got a bunch of errors: After I click on apply, more errors show up, and eventually, I ...
0 votes
0 answers
28 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 ...
-5 votes
0 answers
30 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.

15 30 50 per page
1
2 3 4 5
...
1612863