79807219

Date: 2025-11-02 15:37:43
Score: 2
Natty:
Report link

From what i see, your loop is driven by the "5" cell, so when input < 5 you keep decrementing past 0 and it wraps to 255. Drive the loop with the input cell instead. Stop when input hits 0, then check what's left in the "5" cell.

Tiny Brainfuck core (cell0 = numeric 0–9, cell1 = 5):

<+++++        set cell1 = 5 (assumes youre on cell1; adjust moves as needed)
<             back to input (cell0)

[             while input > 0
  -           input--
  >-          five--
  <           back to input
]

>             now on five
[             if five > 0 => input < 5
  /* MENOR */
  [-]
]

<             back to input
>             go to five again
<[            if five == 0 => input >= 5
  /* MAIOR */
]>

If you're reading a digit, subtract 48 first to get 0–9, then try running this

Reasons:
  • Blacklisted phrase (2): fuck
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: cebemind

79807210

Date: 2025-11-02 15:28:41
Score: 2.5
Natty:
Report link

Andrus, the orientation thats internally handled might change from picture to picture, depending on the settings of the camera that has taken the image.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Thorsten Gudera

79807183

Date: 2025-11-02 14:28:29
Score: 3
Natty:
Report link

You can try HTML::Tiny — it’s lightweight, clean, and perfect for building static HTML without messy string concatenation. Also check out HTML::Element if you want a full DOM-style builder.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: BBC News

79807182

Date: 2025-11-02 14:27:28
Score: 0.5
Natty:
Report link

Harbor is generating HTTP URLs because it doesn’t know TLS ends at your load balancer. Fix: tell Harbor it’s behind HTTPS.

In your Helm values, add:

proxy:
  https:
    enabled: true
    proxyHeader: X-Forwarded-Proto

Then redeploy.

After that, pushes will use HTTPS instead of port 80 and work fine.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: gdoura mohamed

79807181

Date: 2025-11-02 14:24:27
Score: 1
Natty:
Report link
function myFunction(myObject, myArray) {
  const value = myArray.pop();
  const lastKey = myArray.pop();
  const innerObject = myArray.reduce((obj, key) => {
    if (!(obj[key] instanceof Object)) {
      obj[key] = {};
    }
    return obj[key];
  }, myObject);
  innerObject[lastKey] = value;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: SaujasByt

79807180

Date: 2025-11-02 14:22:26
Score: 3.5
Natty:
Report link
  1. Go to Code Runner extension page

  2. Click on settings icon you (you'll now be on different page)

  3. enter image description here

    Check the box for Run in Terminal

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user21801119

79807177

Date: 2025-11-02 14:20:26
Score: 3
Natty:
Report link

The answer from Benedict is working but there is a litte thing missing. In the LinearLayout you have so set the drawable background to the round background.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: little Indian

79807176

Date: 2025-11-02 14:19:25
Score: 2.5
Natty:
Report link

Personally, I believe that the only scenario where this would be acceptable is if there is a high probability that a certain function will not be used by the user.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Marce Puente

79807167

Date: 2025-11-02 14:13:24
Score: 5
Natty:
Report link

Thanks! I agree, and separating my code from the presentation is exactly what I am trying to do. I basically wrote my own template library, so now I am just trying to clean that code up a bit. After I posted I dug a little harder and found that you could use HTML::TreeBuilder/HTML::Element (push_content) to create HTML documents as well. But I took a look at CGI:HTML as you suggested and it suggested HTML::Tiny, and that looks exactly like what I am looking for. In my application in some places I also generate HTML and then use HTMLDOC to convert it to a PDF, so this will come in handy there as well.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (2): I am looking for
  • Blacklisted phrase (1): I am trying to
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: James B

79807155

Date: 2025-11-02 13:56:19
Score: 3
Natty:
Report link

The new version of gcc-16 (trunk) fixed this issue. The original example now works (though you need to export the new operator for this to work).

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: d7d1cd

79807154

Date: 2025-11-02 13:50:18
Score: 2
Natty:
Report link

As others have suggested, you should really look into OLE automation. It is the easiest way to work with MS Office files in your code.

Anyway, if you want to stick with OleDb and SQL, open an OdbcConnection and use an UPDATE statement. Here is a good starting point on how to do it:

Updating Excel Sheet Using OleDb

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Stefan Lober

79807150

Date: 2025-11-02 13:34:15
Score: 1
Natty:
Report link

No, at this time opinionated posts cannot be converted to traditional Q&A posts (or vice versa), @James . You'll need to delete and repost your question.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @James
  • Single line (0.5):
  • High reputation (-2):
Posted by: Thom A

79807148

Date: 2025-11-02 13:31:14
Score: 2
Natty:
Report link

--output-model-type pydantic_v2.BaseModel fixed it for me

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Ranjith Singhu Ganapathy

79807139

Date: 2025-11-02 13:07:09
Score: 1.5
Natty:
Report link
display(results)

is crashing GRPC, please use results.show() instead.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Frank

79807136

Date: 2025-11-02 12:57:07
Score: 1.5
Natty:
Report link

Because auto_route migrated to a new syntax.

@AutoRouterConfig()
class AppRouter extends RootStackRouter {
  AppRouter() : super(); 
  
@override
  List<AutoRoute> get routes {
    return ...
 }
}

Find the doc: https://pub.dev/packages/auto_route#setup-and-usage

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Phil

79807131

Date: 2025-11-02 12:44:04
Score: 2
Natty:
Report link

In my case there was VPC endpoint already created by another team member for SSM which I was not aware of. I simply added an inbound rule in Security Group attached to that VPC endpoint to allow 443 from Security group attached to EC2 instance.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Manish Jindal

79807129

Date: 2025-11-02 12:40:03
Score: 1
Natty:
Report link

In Next.JS what fixed it for me was adding the __experimental__naiveDimensions option. It is not listed in the docs as of now.

<ReactLenis root options={{ __experimental__naiveDimensions: true }} />
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Stratos Ileris

79807114

Date: 2025-11-02 12:14:58
Score: 3
Natty:
Report link

what relevance does orientation have to the question of removing color?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): what
  • High reputation (-2):
Posted by: Christoph Rackwitz

79807112

Date: 2025-11-02 12:12:57
Score: 1
Natty:
Report link

I appreciate your help 🙂 when applying your suggested changes to the Dockerfile, creating the dev container and running make build-serverI still see the following output:

go: downloading github.com/natefinch/atomic v1.0.1
go: downloading github.com/cli/browser v1.3.0
go: downloading github.com/cenkalti/backoff/v4 v4.3.0
go: downloading github.com/fsnotify/fsnotify v1.7.0
go: downloading golang.org/x/sync v0.16.0
go: downloading github.com/a-h/parse v0.0.0-20250122154542-74294addb73e
go: downloading golang.org/x/mod v0.26.0
go: downloading github.com/andybalholm/brotli v1.1.0
go: downloading golang.org/x/net v0.42.0
go: downloading github.com/mattn/go-colorable v0.1.13
go: downloading golang.org/x/tools v0.35.0
go: downloading golang.org/x/sys v0.34.0

That still looks to me as if Go would download the dependencies, no? 🤔

Reasons:
  • Blacklisted phrase (2): appreciate your help
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: mu88

79807111

Date: 2025-11-02 12:10:56
Score: 3.5
Natty:
Report link

you acces a methode of a class from other class you can not do this.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Razvan Trufin

79807104

Date: 2025-11-02 11:53:52
Score: 2
Natty:
Report link

Why not:

var select = document.getElementById(select_id);
select.scrollTop = select[select.selectedIndex].offsetTop;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): Why not
  • Low reputation (1):
Posted by: gustl

79807103

Date: 2025-11-02 11:52:51
Score: 6.5
Natty:
Report link

@dale K I would like a concrete answer, correct. Did I start a discussion? Some new format in SO, can this be changed?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @dale
  • Self-answer (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
Posted by: James

79807099

Date: 2025-11-02 11:46:50
Score: 4
Natty:
Report link

MS requested a new deployment of the tasks
https://github.com/microsoft/azure-devops-extension-tasks/issues/1484

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: kumar8891

79807095

Date: 2025-11-02 11:41:48
Score: 1
Natty:
Report link

Sclang runs on a single thread. If you want to multithread, you can do the calculations using UGens and use SuperNova. Or you can fork entirely separate processes using .unixcmd. That could be another instance of sclang or it could be C++, python or whatever you like.

You can manage I/O with temp files, OSC messaging, or returning data using the action function for .unixcmd.

See https://scsynth.org/t/parallel-processing-in-sclang/12509/2 more more information.

Note that if you want to distribute your code, you can't rely on any particular interpreter being installed on their system - not everyone has python or even java. Compiled code is generally not cross platform. They will have sclang, but starting a new instance of the interpreter involves compiling the entire class library and has relatively high overhead.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: les_h

79807091

Date: 2025-11-02 11:34:47
Score: 1.5
Natty:
Report link

🤖 AhaChat AI Ecosystem is here!
💬 AI Response – Auto-reply to customers 24/7
🎯 AI Sales – Smart assistant that helps close more deals
🔍 AI Trigger – Understands message context & responds instantly
🎨 AI Image – Generate or analyze images with one command
🎤 AI Voice – Turn text into natural, human-like speech
📊 AI Funnel – Qualify & nurture your best leads automatically

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Đức Nguyễn Đình

79807088

Date: 2025-11-02 11:32:46
Score: 0.5
Natty:
Report link

Figured it out, it was related to the work sizes.

By setting the local_work_size to NULL I think it's iterating single process through the seed_ranges, if you set the global_work_size to 28 (number of cores) and the local_work_size to 1 then it will fully utilise the CPU.

I didn't change the work_dim though.

uint64_t global = num_seed_ranges; // 28 in my case
uint64_t local = 1;
error = clEnqueueNDRangeKernel(
    commands, //command queue
    ko_part_b, // kernel
    1, NULL, // work dimension stuff
    &global, // global work size (num of cores) 
    &local, // local work size (1)
    0, NULL, NULL // event queue stuff
);

Final Results:

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Richard Clubb

79807082

Date: 2025-11-02 11:21:44
Score: 1
Natty:
Report link

It is possible to use nested switch statements in JS. Buth they are generally not considered a best practice. They:

The better approach is to extract each case into separate private methods.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Archulan

79807080

Date: 2025-11-02 11:13:42
Score: 5
Natty: 5
Report link

if someone has same issue please refer below link
https://www.youtube.com/watch?v=so6MbkVJOSQ

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: poojath Dulashana

79807069

Date: 2025-11-02 10:49:37
Score: 4
Natty:
Report link

Is this what you want?

$number = 9;
$bin_no = decbin($number);
$bin_arr  = array_map('intval', str_split($bin_no));
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is this
  • Low reputation (1):
Posted by: user31800206

79807066

Date: 2025-11-02 10:42:35
Score: 4.5
Natty:
Report link

@Kevin But it might slow down the function only on the first call, since each module is only imported once per interpreter session.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @Kevin
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Eddi

79807060

Date: 2025-11-02 10:23:31
Score: 1
Natty:
Report link

Easy enough,

First, create a measure named "SUM Amount",
SUM Amount = SUM( 'DATATABLE'[Amount] )

then,

_Amount =
VAR __r =
    RANK(
        ALLSELECTED( 'DATATABLE'[State], 'DATATABLE'[Company] ),
        ORDERBY( [SUM Amount], DESC, 'DATATABLE'[Company], DESC ),
        PARTITIONBY( 'DATATABLE'[State] )
    )
RETURN
    IF( __r <= 3, [SUM Amount] )

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ThxAlot

79807057

Date: 2025-11-02 10:06:28
Score: 1.5
Natty:
Report link

Most likely your problem is in this line:const cmd = message.split(");since you are not dividing by a space, if you do so:const cmd = message.split(' ');then everything should work

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Lirihiwa

79807043

Date: 2025-11-02 09:37:21
Score: 4
Natty:
Report link

Turns out the code wasn't the problem, I just messed up the SQL Room dependencies.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: JazzAnt

79807041

Date: 2025-11-02 09:32:19
Score: 1
Natty:
Report link

A couple issues off the top of my head:

  1. When you call the function if the library is large it might slow down your algorithm. Whether it matters or not depends on the context and end user. This drawback could be a gain if the goal is to reduce initial script loading time.

  2. If the library isn't installed your code may only fail when the function is called, which could cause a delay in failure. It is often better to fail as soon as the script is loaded so you immediately know there is a problem.

  3. It's easier to read and debug code that adheres to formatting standards.

  4. Potential linter implications.

In the end the drawbacks depend on the context entirely. I think the more important thing to consider is what you can accomplish by doing this, which often is very little.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kevin

79807035

Date: 2025-11-02 09:18:16
Score: 2.5
Natty:
Report link

There is a domain specific language for your problem:
https://docs.askalot.io/guide/qml-syntax/
Questionnaire Markup Language (QML)

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: psaghelyi

79807034

Date: 2025-11-02 09:17:16
Score: 4
Natty: 4.5
Report link

You should try it with some math:
https://docs.askalot.io/theory/questionnaire-analysis/

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: psaghelyi

79807031

Date: 2025-11-02 09:12:14
Score: 3.5
Natty:
Report link

Have you tried QML (Questionnaire Markup Language)?
https://docs.askalot.io

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: psaghelyi

79807026

Date: 2025-11-02 09:07:13
Score: 1.5
Natty:
Report link

I think it is more a "default" to use import at the beggining off the code. I don't see problems to use in this way.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Eddi

79807020

Date: 2025-11-02 08:55:11
Score: 1
Natty:
Report link

In fact, all C compilers tend to somewhat ignore restrict.

restrict qualification is local to block/struct/function/file but is not transmitted to another function (assignation). With a call to an external function that the compiler does not know anything about restrict does nothing.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: xavier-gl71

79807018

Date: 2025-11-02 08:49:09
Score: 3
Natty:
Report link

I'm not asking anybody to run any of my code. I'm not here to train generative AI. I'm merely asking how to write the condition that I am asking about, hence why I described the context of it. It's a simple question about SQL queries.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: BeaverFever

79807014

Date: 2025-11-02 08:39:07
Score: 2.5
Natty:
Report link

PEP 8 explicitly recommends placing imports at the top of the file.

PEP8

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Bohdan

79807013

Date: 2025-11-02 08:36:07
Score: 3.5
Natty:
Report link

@Brian Berns The code is identical because I have defined (+) between a Var and a float, so I can write expressions like this

let x = Var.create 10.0
let y = 10.0
let z = x + y

where Var.create just creates a new Var

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Brian
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Timeless0007297

79807000

Date: 2025-11-02 08:03:00
Score: 0.5
Natty:
Report link

When you call cartRepository.deleteById(id):

  1. The Cart entity is deleted from the database.
  2. The CartItem entities are deleted (due to CascadeType.ALL and orphanRemoval = true on the Cart's items field).
  3. The User object, which is currently a managed entity in the transaction, still holds a reference to the deleted Cart object in its cart field.
  4. When the @Transactional method clearCart finishes, the persistence context performs a flush. Because the User entity has cascade = CascadeType.ALL and orphanRemoval = true on its cart field, and the User still thinks that Cart exists (it's not null in its field), Hibernate might try to manage/re-save the detached or deleted Cart entity, causing the cleanup delay.

You will need to fetch the Cart, get its associated User, clear the reference, and then delete the Cart

    @Transactional
    @Override
    public void clearCart(Long id) {
        Cart cart = cartRepository.findById(id)
            .orElseThrow(() -> new ResourceNotFoundException("Cart not found for ID: " + id));
        User user = cart.getUser();
        if (user != null) {
            user.setCart(null);
            userRepository.save(user);
        }
        cartItemRepository.deleteByCartId(id);
        cartRepository.delete(cart);  
    }

After this method, the transaction commits, and both entities are fully detached.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Transactional
  • Starts with a question (0.5): When you
  • Low reputation (0.5):
Posted by: Max

79806998

Date: 2025-11-02 07:52:57
Score: 0.5
Natty:
Report link

@John Bollinger

It is also very meaningful in the case of structures or arrays. In Windows, there is a type of programming called COM, and the well-known graphics API DirectX3D also uses COM. COM objects are generally called in this way.

typedef struct {
    void (*func1)();
    void (*func2)();
    void (*func3)();
    void (*func4)();
    void (*func5)();
} i_ibject_vtable;

typedef struct {
    i_ibject_vtable *vtable;
} i_object;

int object_create(i_object **);

int entry() {
    i_object *p_object;

    object_create(&p_object);
    
    p_object->vtable->func1();
    p_object->vtable->func2();
    p_object->vtable->func3();
    p_object->vtable->func4();
    p_object->vtable->func5();

    return 0;
}
        .file   "example.c"
# GNU C23 (Compiler-Explorer-Build-gcc--binutils-2.44) version 15.2.0 (x86_64-linux-gnu)
#       compiled by GNU C version 11.4.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.24-GMP

# GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
# options passed: -mtune=generic -march=x86-64 -g -g0 -Ofast -fno-asynchronous-unwind-tables
        .text
        .p2align 4
        .globl  entry
        .type   entry, @function
entry:
        subq    $24, %rsp       #,
# /app/example.c:18:     object_create(&p_object);
        leaq    8(%rsp), %rdi   #, tmp114
        call    object_create   #
# /app/example.c:20:     p_object->vtable->func1();
        movq    8(%rsp), %rax   # p_object, p_object
# /app/example.c:20:     p_object->vtable->func1();
        movq    (%rax), %rax    # p_object.0_1->vtable, p_object.0_1->vtable
# /app/example.c:20:     p_object->vtable->func1();
        call    *(%rax) # _2->func1
# /app/example.c:21:     p_object->vtable->func2();
        movq    8(%rsp), %rax   # p_object, p_object
# /app/example.c:21:     p_object->vtable->func2();
        movq    (%rax), %rax    # p_object.1_4->vtable, p_object.1_4->vtable
# /app/example.c:21:     p_object->vtable->func2();
        call    *8(%rax)        # _5->func2
# /app/example.c:22:     p_object->vtable->func3();
        movq    8(%rsp), %rax   # p_object, p_object
# /app/example.c:22:     p_object->vtable->func3();
        movq    (%rax), %rax    # p_object.2_7->vtable, p_object.2_7->vtable
# /app/example.c:22:     p_object->vtable->func3();
        call    *16(%rax)       # _8->func3
# /app/example.c:23:     p_object->vtable->func4();
        movq    8(%rsp), %rax   # p_object, p_object
# /app/example.c:23:     p_object->vtable->func4();
        movq    (%rax), %rax    # p_object.3_10->vtable, p_object.3_10->vtable
# /app/example.c:23:     p_object->vtable->func4();
        call    *24(%rax)       # _11->func4
# /app/example.c:24:     p_object->vtable->func5();
        movq    8(%rsp), %rax   # p_object, p_object
# /app/example.c:24:     p_object->vtable->func5();
        movq    (%rax), %rax    # p_object.4_13->vtable, p_object.4_13->vtable
# /app/example.c:24:     p_object->vtable->func5();
        call    *32(%rax)       # _14->func5
# /app/example.c:27: }
        xorl    %eax, %eax      #
        addq    $24, %rsp       #,
        ret     
        .size   entry, .-entry
        .ident  "GCC: (Compiler-Explorer-Build-gcc--binutils-2.44) 15.2.0"
        .section        .note.GNU-stack,"",@progbits

Manually saving these function pointers results in negative optimization

typedef struct {
    void (*func1)();
    void (*func2)();
    void (*func3)();
    void (*func4)();
    void (*func5)();
} i_ibject_vtable;

typedef struct {
    i_ibject_vtable *vtable;
} i_object;

int object_create(i_object **);

int entry() {
    i_object *p_object;

    object_create(&p_object);

    i_ibject_vtable vtable;
    __builtin_memcpy(&vtable, p_object->vtable, sizeof(vtable));

    vtable.func1();
    vtable.func2();
    vtable.func3();
    vtable.func4();
    vtable.func5();

    return 0;
}
        .file   "example.c"
# GNU C23 (Compiler-Explorer-Build-gcc--binutils-2.44) version 15.2.0 (x86_64-linux-gnu)
#       compiled by GNU C version 11.4.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.24-GMP

# GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
# options passed: -mtune=generic -march=x86-64 -g -g0 -Ofast -fno-asynchronous-unwind-tables
        .text
        .p2align 4
        .globl  entry
        .type   entry, @function
entry:
        subq    $72, %rsp       #,
# /app/example.c:18:     object_create(&p_object);
        leaq    8(%rsp), %rdi   #, tmp106
        call    object_create   #
# /app/example.c:21:     __builtin_memcpy(&vtable, p_object->vtable, sizeof(vtable));
        movq    8(%rsp), %rax   # p_object, p_object
# /app/example.c:21:     __builtin_memcpy(&vtable, p_object->vtable, sizeof(vtable));
        movq    (%rax), %rax    # p_object.0_1->vtable, p_object.0_1->vtable
        movdqu  (%rax), %xmm0       # MEM <char[1:40]> [(void *)_2], MEM <char[1:40]> [(void *)_2]
        movq    %xmm0, %rdx     # MEM <char[1:40]> [(void *)_2], tmp119
        movaps  %xmm0, 16(%rsp)     # MEM <char[1:40]> [(void *)_2], MEM <char[1:40]> [(void *)&vtable]
        movdqu  16(%rax), %xmm0     # MEM <char[1:40]> [(void *)_2], MEM <char[1:40]> [(void *)_2]
        movq    32(%rax), %rax  # MEM <char[1:40]> [(void *)_2], MEM <char[1:40]> [(void *)_2]
        movaps  %xmm0, 32(%rsp)     # MEM <char[1:40]> [(void *)_2], MEM <char[1:40]> [(void *)&vtable]
        movq    %rax, 48(%rsp)  # MEM <char[1:40]> [(void *)_2], MEM <char[1:40]> [(void *)&vtable]
# /app/example.c:23:     vtable.func1();
        call    *%rdx   # tmp119
# /app/example.c:24:     vtable.func2();
        call    *24(%rsp)       # vtable.func2
# /app/example.c:25:     vtable.func3();
        call    *32(%rsp)       # vtable.func3
# /app/example.c:26:     vtable.func4();
        call    *40(%rsp)       # vtable.func4
# /app/example.c:27:     vtable.func5();
        call    *48(%rsp)       # vtable.func5
# /app/example.c:30: }
        xorl    %eax, %eax      #
        addq    $72, %rsp       #,
        ret     
        .size   entry, .-entry
        .ident  "GCC: (Compiler-Explorer-Build-gcc--binutils-2.44) 15.2.0"
        .section        .note.GNU-stack,"",@progbits

I also can't do this for every object. Once the compiler knows that i_object_vtable will not be constantly changed, it is able to optimize it.

typedef struct {
    void (*func1)();
    void (*func2)();
    void (*func3)();
    void (*func4)();
    void (*func5)();
} i_ibject_vtable;

typedef struct {
    i_ibject_vtable *vtable;
} i_object;

__attribute__((malloc)) i_object *object_create();

int entry() {
    i_object *p_object;

    p_object = object_create();

    p_object->vtable->func1();
    p_object->vtable->func2();
    p_object->vtable->func3();
    p_object->vtable->func4();
    p_object->vtable->func5();

    // Saved the pointer into the register
    p_object->vtable->func1();
    p_object->vtable->func1();
    p_object->vtable->func1();

    return 0;
}
        .file   "example.c"
# GNU C23 (Compiler-Explorer-Build-gcc--binutils-2.44) version 15.2.0 (x86_64-linux-gnu)
#       compiled by GNU C version 11.4.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.24-GMP

# GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
# options passed: -mtune=generic -march=x86-64 -g -g0 -Ofast -fno-asynchronous-unwind-tables
        .text
        .p2align 4
        .globl  entry
        .type   entry, @function
entry:
        pushq   %rbx  #
# /app/example.c:18:     p_object = object_create();
        call    object_create   #
# /app/example.c:20:     p_object->vtable->func1();
        movq    (%rax), %rbx    # p_object_12->vtable, _1
# /app/example.c:20:     p_object->vtable->func1();
        call    *(%rbx) # _1->func1
# /app/example.c:21:     p_object->vtable->func2();
        call    *8(%rbx)        # _1->func2
# /app/example.c:22:     p_object->vtable->func3();
        call    *16(%rbx)       # _1->func3
# /app/example.c:23:     p_object->vtable->func4();
        call    *24(%rbx)       # _1->func4
# /app/example.c:24:     p_object->vtable->func5();
        call    *32(%rbx)       # _1->func5
# /app/example.c:27:     p_object->vtable->func1();
        call    *(%rbx) # _1->func1
# /app/example.c:28:     p_object->vtable->func1();
        call    *(%rbx) # _1->func1
# /app/example.c:29:     p_object->vtable->func1();
        call    *(%rbx) # _1->func1
# /app/example.c:32: }
        xorl    %eax, %eax      #
        popq    %rbx    #
        ret     
        .size   entry, .-entry
        .ident  "GCC: (Compiler-Explorer-Build-gcc--binutils-2.44) 15.2.0"
        .section        .note.GNU-stack,"",@progbits

Unfortunately, most APIs return error codes instead of pointers, making it impossible to use __attribute__.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @John
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Moi5t

79806994

Date: 2025-11-02 07:47:56
Score: 3.5
Natty:
Report link

For anyone else stumbling on this, the latest OpenSCAD development snapshot has added support for center=true in the import parameters, see here: https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/STL_Import_and_Export

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: agios

79806991

Date: 2025-11-02 07:42:55
Score: 2.5
Natty:
Report link

I am on 54.0.20, but no success. Still facing the error for iOS - "The 'expo-modules-autolinking' package has been found, but it seems to be incompatible with '@expo/prebuild-config'"

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sumit Singh

79806986

Date: 2025-11-02 07:25:52
Score: 0.5
Natty:
Report link

@ssd

In fact, all C compilers tend to somewhat ignore restrict. When do_another_thing and entry are compiled in the same source file, the compiler will perform its own analysis and then assume that xxx might be continuously modified.

int xxx_create(int *p_xxx);
int xxx_do_something(int xxx);

void do_another_thing(int* restrict xxx) {
    xxx_do_something(*xxx);
    xxx_do_something(*xxx);
    xxx_do_something(*xxx);
}

int entry() {
    int xxx;

    xxx_create(&xxx);
    
    do_another_thing(&xxx);
    
    return 0;
}
        .file   "example.c"
# GNU C23 (Compiler-Explorer-Build-gcc--binutils-2.44) version 15.2.0 (x86_64-linux-gnu)
#       compiled by GNU C version 11.4.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.24-GMP

# GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
# options passed: -mtune=generic -march=x86-64 -g -g0 -Ofast -fno-asynchronous-unwind-tables
        .text
        .p2align 4
        .globl  do_another_thing
        .type   do_another_thing, @function
do_another_thing:
        pushq   %rbx  #
# /app/example.c:4: void do_another_thing(int* restrict xxx) {
        movq    %rdi, %rbx      # xxx, xxx
# /app/example.c:5:     xxx_do_something(*xxx);
        movl    (%rdi), %edi    # *xxx_5(D), *xxx_5(D)
        call    xxx_do_something        #
# /app/example.c:6:     xxx_do_something(*xxx);
        movl    (%rbx), %edi    # *xxx_5(D), *xxx_5(D)
        call    xxx_do_something        #
# /app/example.c:7:     xxx_do_something(*xxx);
        movl    (%rbx), %edi    # *xxx_5(D), *xxx_5(D)
# /app/example.c:8: }
        popq    %rbx    #
# /app/example.c:7:     xxx_do_something(*xxx);
        jmp     xxx_do_something  #
        .size   do_another_thing, .-do_another_thing
        .p2align 4
        .globl  entry
        .type   entry, @function
entry:
        subq    $24, %rsp       #,
# /app/example.c:13:     xxx_create(&xxx);
        leaq    12(%rsp), %rdi  #, tmp102
        call    xxx_create      #
# /app/example.c:5:     xxx_do_something(*xxx);
        movl    12(%rsp), %edi  # xxx,
        call    xxx_do_something        #
# /app/example.c:6:     xxx_do_something(*xxx);
        movl    12(%rsp), %edi  # xxx,
        call    xxx_do_something        #
# /app/example.c:7:     xxx_do_something(*xxx);
        movl    12(%rsp), %edi  # xxx,
        call    xxx_do_something        #
# /app/example.c:18: }
        xorl    %eax, %eax      #
        addq    $24, %rsp       #,
        ret     
        .size   entry, .-entry
        .ident  "GCC: (Compiler-Explorer-Build-gcc--binutils-2.44) 15.2.0"
        .section        .note.GNU-stack,"",@progbits
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @ssd
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Moi5t

79806984

Date: 2025-11-02 07:18:50
Score: 0.5
Natty:
Report link

@Eric Postpischil

In fact, the compiler will not know.

int func1(int *);

int func2(int);

int entry() {

    int arr[10];

    {
        int _arr[10];

        func1(_arr);

        __builtin_memcpy(arr, _arr, sizeof(arr));
    }

    for (int i = 0; i < sizeof(arr) / sizeof(int); i++) {
        func2(arr[i]);
    }

    return 0;
}
        .file   "example.c"
# GNU C23 (Compiler-Explorer-Build-gcc--binutils-2.44) version 15.2.0 (x86_64-linux-gnu)
#       compiled by GNU C version 11.4.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.24-GMP

# GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
# options passed: -mtune=generic -march=x86-64 -g -g0 -Ofast -fno-asynchronous-unwind-tables
        .text
        .p2align 4
        .globl  entry
        .type   entry, @function
entry:
        pushq   %rbp  #
        pushq   %rbx  #
        subq    $104, %rsp      #,
# /app/example.c:12:         func1(_arr);
        leaq    48(%rsp), %rdi  #, tmp103
        movq    %rsp, %rbx      #, ivtmp.11
        leaq    40(%rsp), %rbp  #, _19
        call    func1   #
# /app/example.c:14:         __builtin_memcpy(arr, _arr, sizeof(arr));
        movdqa  48(%rsp), %xmm0     # MEM <unsigned char[40]> [(char * {ref-all})&_arr], MEM <unsigned char[40]> [(char * {ref-all})&_arr]
        movq    80(%rsp), %rax  # MEM <unsigned char[40]> [(char * {ref-all})&_arr], MEM <unsigned char[40]> [(char * {ref-all})&_arr]
        movaps  %xmm0, (%rsp)       # MEM <unsigned char[40]> [(char * {ref-all})&_arr], MEM <unsigned char[40]> [(char * {ref-all})&arr]
        movdqa  64(%rsp), %xmm0     # MEM <unsigned char[40]> [(char * {ref-all})&_arr], MEM <unsigned char[40]> [(char * {ref-all})&_arr]
        movq    %rax, 32(%rsp)  # MEM <unsigned char[40]> [(char * {ref-all})&_arr], MEM <unsigned char[40]> [(char * {ref-all})&arr]
        movaps  %xmm0, 16(%rsp)     # MEM <unsigned char[40]> [(char * {ref-all})&_arr], MEM <unsigned char[40]> [(char * {ref-all})&arr]
        .p2align 4
        .p2align 3
.L2:
# /app/example.c:18:         func2(arr[i]);
        movl    (%rbx), %edi    # MEM[(int *)_17], MEM[(int *)_17]
# /app/example.c:17:     for (int i = 0; i < sizeof(arr) / sizeof(int); i++) {
        addq    $4, %rbx        #, ivtmp.11
# /app/example.c:18:         func2(arr[i]);
        call    func2   #
# /app/example.c:17:     for (int i = 0; i < sizeof(arr) / sizeof(int); i++) {
        cmpq    %rbp, %rbx      # _19, ivtmp.11
        jne     .L2       #,
# /app/example.c:22: }
        addq    $104, %rsp      #,
        xorl    %eax, %eax      #
        popq    %rbx    #
        popq    %rbp    #
        ret     
        .size   entry, .-entry
        .ident  "GCC: (Compiler-Explorer-Build-gcc--binutils-2.44) 15.2.0"
        .section        .note.GNU-stack,"",@progbits

The compiler will still allocate space to save it.

The best optimization method is to dereference each time func2(arr[i]); is called.

The compiler does indeed have the ability to do it.

int func1(int *);

int func2(int);

__attribute__((malloc)) int *func3();

int entry() {

    int *arr = func3();

    for (int i = 0; i < 10; i++) {
        func2(arr[i]);
    }

    return 0;
}
        .file   "example.c"
# GNU C23 (Compiler-Explorer-Build-gcc--binutils-2.44) version 15.2.0 (x86_64-linux-gnu)
#       compiled by GNU C version 11.4.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.24-GMP

# GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
# options passed: -mtune=generic -march=x86-64 -g -g0 -Ofast -fno-asynchronous-unwind-tables
        .text
        .p2align 4
        .globl  entry
        .type   entry, @function
entry:
        pushq   %rbp  #
        pushq   %rbx  #
        subq    $8, %rsp        #,
# /app/example.c:9:     int *arr = func3();
        call    func3   #
        movq    %rax, %rbx      # ivtmp.10, ivtmp.10
        leaq    40(%rax), %rbp  #, _20
        .p2align 4
        .p2align 3
.L2:
# /app/example.c:12:         func2(arr[i]);
        movl    (%rbx), %edi    # MEM[(int *)_18], MEM[(int *)_18]
# /app/example.c:11:     for (int i = 0; i < 10; i++) {
        addq    $4, %rbx        #, ivtmp.10
# /app/example.c:12:         func2(arr[i]);
        call    func2   #
# /app/example.c:11:     for (int i = 0; i < 10; i++) {
        cmpq    %rbp, %rbx      # _20, ivtmp.10
        jne     .L2       #,
# /app/example.c:16: }
        addq    $8, %rsp        #,
        xorl    %eax, %eax      #
        popq    %rbx    #
        popq    %rbp    #
        ret     
        .size   entry, .-entry
        .ident  "GCC: (Compiler-Explorer-Build-gcc--binutils-2.44) 15.2.0"
        .section        .note.GNU-stack,"",@progbits
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Eric
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Moi5t

79806983

Date: 2025-11-02 07:17:50
Score: 1
Natty:
Report link

if you have this problem Error: You don't have permission to access that port.
your Windows closed all packet and you have to open this first :
net stop winnat

then :
net start winnat

after that :
python manage.py runserver

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Miladbasery

79806977

Date: 2025-11-02 07:08:48
Score: 1
Natty:
Report link

That is, we have to guess (assume) that the table contains columns (country,year,Life_Expectancy) and years 2000,2019 should be hardcoded.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: ValNik

79806973

Date: 2025-11-02 06:59:46
Score: 2
Natty:
Report link

I don't understand these"advice" things... Do you want a concrete answer? Or a discussion?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Dale K

79806969

Date: 2025-11-02 06:54:44
Score: 2
Natty:
Report link

That's wrong. A question should be clear and therefore sample data is required. But well, if you refuse help us help you, I also refuse to help. Fair enough.

Reasons:
  • RegEx Blacklisted phrase (1): help us
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Jonas Metzler

79806967

Date: 2025-11-02 06:51:43
Score: 3.5
Natty:
Report link

I'm just asking how to make a certain kind of conditional SQL statement. All the information needed to provide context is provided.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: BeaverFever

79806964

Date: 2025-11-02 06:48:43
Score: 0.5
Natty:
Report link

I was able to sort it out, my ng config was not the issue, it was the Github workflow file.

Event if a explicity specify a build command:

npm run build:qa

Apparently, internally, Azure SWA still builds the app internally using the default config (npm run build)

So I had to add this line in the deployment step:

skip_app_build: true

And also ensure that app_location points to the build output location and that ouput_location is empty.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Kyle

79806962

Date: 2025-11-02 06:47:42
Score: 3.5
Natty:
Report link

Please show both sample input data and expected result as markdown tables in your question.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please show
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Jonas Metzler

79806947

Date: 2025-11-02 05:47:31
Score: 5.5
Natty:
Report link

I tried restarting the kernel; it still doesn't work.

Reasons:
  • RegEx Blacklisted phrase (2): it still doesn't work
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: therickster

79806944

Date: 2025-11-02 05:42:30
Score: 3.5
Natty:
Report link

Only way I can figure out is to make a new scrollbar thumb yourself and make the previous scrollbar's width 0

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: 0bsolete

79806942

Date: 2025-11-02 05:33:28
Score: 1.5
Natty:
Report link

vite is not recognized, try to npm install vite --save dev in devdependies and then try first to build locally by using the command : npm run build

Case 2: check you build scripts it has to vite build to do so. If it not correct it.

Conclusion : If it is work in locally and probably work at deployment also.

Happy coding...

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Akshat Agarwal

79806941

Date: 2025-11-02 05:18:26
Score: 2
Natty:
Report link

The target (action) in a card game (of chance) is the one that has the best chance (odds) of succeeding. The target will vary with the type of "game"; as well as the properties required; e.g. range. One can be too generic (abstract) and lose all touch with the "game" itself.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Gerry Schmitz

79806934

Date: 2025-11-02 04:50:20
Score: 4.5
Natty:
Report link

It turns out that we will replace runtime creation with deep copying?

And then we will not control where the static data that is the creation template is, and where its copies with dynamic data obtained in the constructor are?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Parkhomovsky Oleksander

79806926

Date: 2025-11-02 03:47:08
Score: 3
Natty:
Report link

I actually ended up figuring this out. if you're in the same predicament use an event named "input" with bubbles true executed from the element that is troubling you. for other elements it might not be the same so use getEventListeners(yourElement) and find the listeners and their event names

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Arlo Schneider

79806924

Date: 2025-11-02 03:37:05
Score: 2.5
Natty:
Report link

Do you really want a discussion? Or do you want a concrete answer?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Dale K

79806923

Date: 2025-11-02 03:29:03
Score: 6 🚩
Natty: 6
Report link

Currently upgrades to spark 4.0.0 and scala 2.13 and pyrhon 3.12 is coming with spark but it is not able to write spark dataframe to snowflake stating ArrayStoreException (net.snowflake.spark.io.FileUploadResult) with spark jdbc 3.26.1 and spark_snowflake_3.1_2.1.3 jars

How can i resolve it ?

Reasons:
  • Blacklisted phrase (0.5): How can i
  • RegEx Blacklisted phrase (1.5): How can i resolve it ?
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Rohit Chawla

79806908

Date: 2025-11-02 02:11:49
Score: 1
Natty:
Report link

Maybe im too dumb, but for me it just tell you that function doesn't exist on that instance so,

memberTarget.timeout

This instance object...

Maybe, change the Target for client an see what happens.

ps: I just create my account to start readind this forum. k

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: gUe-x1

79806892

Date: 2025-11-02 00:49:33
Score: 1.5
Natty:
Report link

DO NOT GIVE THEM MONEY! BEWARE THIEVES/CRIMINALS!

I have lost tens of thousands of £ to these con artists. Facebook let them advertise as “Dragons Den made money with lexatrade LIES! LIES, LIES

AVOID THESE SCAMMERS, they take your money, pretend that they are making profits and encourage you to invest your life savings. Then when you request money back they don’t return anything and close down email addresses. I was conned. Thanks Jeff for helping me get back my lost money from those scumbags, you can get in touch with him for help via /ats/pp +1 5 05 .5.3 4 09 90 ail address jeffsilbert39 gm8l.com.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Michael Alley

79806885

Date: 2025-11-02 00:19:28
Score: 1
Natty:
Report link

@sirtao First select requires backtick so first argument should be moved to the first line. I also prefer style where command is on the first line and all args are indented the same level. So backticks are for consistency...

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @sirtao
  • Self-answer (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • High reputation (-2):
Posted by: gavenkoa

79806884

Date: 2025-11-02 00:19:28
Score: 5.5
Natty: 5.5
Report link

I would like the menu to switch to mobile mode at the breaking point of 1200px instead of 992px, based on the number of menu items it has. How could I achieve this?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Björn

79806876

Date: 2025-11-02 00:06:25
Score: 2
Natty:
Report link

This looks more like something for https://unix.stackexchange.com/

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: tevemadar

79806872

Date: 2025-11-01 23:57:23
Score: 1
Natty:
Report link

You can add

<script src="{{ url_for('static', filename='scripts/index.js') }}"></script>


to your html template file,
also be good to:
app = Flask(__name__, template_folder="templates", static_folder="static")

that is it :)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Камен Караиванов

79806870

Date: 2025-11-01 23:39:19
Score: 5.5
Natty:
Report link

I recently developed small library which validates and parses Telegram InitData https://github.com/sanvew/telegram-init-data

Reasons:
  • Probably link only (1):
  • Contains signature (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: sanvew

79806865

Date: 2025-11-01 23:23:16
Score: 1
Natty:
Report link

Will be home in an hpour will delete or convert to question.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Loki Astari

79806863

Date: 2025-11-01 23:18:15
Score: 2.5
Natty:
Report link

@quuxplusone : "Is there no way to post an answer for this question?" No, there is no spoon. You may not answer - you may only reply.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @quuxplusone
  • Single line (0.5):
  • Looks like a comment (1):
  • High reputation (-2):
Posted by: andrewJames

79806861

Date: 2025-11-01 23:11:13
Score: 0.5
Natty:
Report link

Maybe your problem, or example problem, is a bit too simplified for folks. It's a perfectly valid spreadsheet problem. Let's assume that I posted this problem:

Given the letter in the header row of each column, how do I calculate its column count, inversly weighted by its row count? Consider the first header, B. It appears 4 times in that column, but each of those need to be inversly weighted by the number of times they appear in the row. (1/2) + (1/3) + (1/3) + (1/4)

B A C C A B C B A A
B B C C C A
C C A A B
A B A B A B B
B B B C C
A B C A B
B A A B B
B B A C B B C
B B A A C

People would jump on this problem.

Your problem is very similar, but simplified in the fact that your rows all have the same person. and now we want the row count inversly weighted by the column count.

9/3 9/4 9/5 9/6 9/7 9/8 9/9 9/10 9/11 9/12
bob bob bob bob
bob bob bob bob bob
larry larry larry larry larry
bob bob bob bob bob
larry larry larry larry
chuck chuck chuck chuck
chuck chuck chuck chuck chuck
bob bob bob bob bob

Here's a formula that will accomplish this task:

=let(
hrsPerDay,9,
hourlyRate,20,
startTimes,A2:A9,
endTimes,B2:B9,
names,C2:C9,
map(startTimes,endTimes,names,
  lambda(start,end,name,
    hrsPerDay*hourlyRate*sum(map(sequence(end-start+1,1,start),
      lambda(t,1/sumproduct(names=name,startTimes<=t,endTimes>=t)))))))

Which gives us the final results.

start end name cost
9/3/25 9/6/25 bob $390
9/4/25 9/8/25 bob $360
9/4/25 9/8/25 larry $540
9/5/25 9/9/25 bob $360
9/5/25 9/8/25 larry $360
9/5/25 9/8/25 chuck $630
9/8/25 9/12/25 chuck $810
9/8/25 9/12/25 bob $690
Reasons:
  • Blacklisted phrase (1): how do I
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: bricks96

79806857

Date: 2025-11-01 22:57:05
Score: 0.5
Natty:
Report link

If you ever need it on an old version like python 3.12 for example.

pyenv uninstall 3.12.12 # uninstall the current version
sudo apt install tk-dev # It includes all dependencies needed
pyenv install 3.12.12   # Run install again to compile
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alvin Smith

79806856

Date: 2025-11-01 22:56:05
Score: 1.5
Natty:
Report link

If the CaS fails you need to retry the operation.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: xavier-gl71

79806854

Date: 2025-11-01 22:51:03
Score: 1
Natty:
Report link

I'm not an expert in bot with python, but I guess this is the solution.

Since your TIMER() function is an Async function, you have to use await( ) to get its actual result instead of the coroutine object.

Try:

timer-result = await TIMER() 
print(timer-result)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mohammad Othman

79806853

Date: 2025-11-01 22:51:03
Score: 3
Natty:
Report link

Why is it impossible? If there is no mutex / lock, then thread2 can update shared_var as thread1 is doing something else right?

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Why is it
  • High reputation (-1):
Posted by: Engineer999

79806840

Date: 2025-11-01 22:18:57
Score: 0.5
Natty:
Report link

I'll try to answer your question with another question.
If you drag the Capsule up 10 float, and then the View scales accordingly, and then the capsule lands underneath of your new finger position... What is the Value.translation.height?

0?
10?

Technically, it's right where it began, underneath of your finger. But it took a trip to get there, so...
I think this confusion is the source of the jitters.

If this were true, then adding the value.translation.height to the viewSize ( instead of setting it equal to ) would solve the issue. And it does.

struct CustomSplitView: View {
  
  @State private var height: CGFloat = 400
    
  var body: some View {
    
    VStack ( spacing: 0 ) {
      
      Color.blue
        .frame ( height: height )
      
      Capsule()
        .fill ( Color.secondary.opacity ( 0.5 ) )
        .frame ( width: 40, height: 6 )
        .frame ( height: 12 )
        .gesture ( DragGesture()
          .onChanged ( self.dragChanged )
        )
      
      Color.green
      
    }
  }
  private func dragChanged ( value: DragGesture.Value ) {
    self.height += value.translation.height <-- here _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
    self.height = self.height .clamp ( lower: 100 , upper: 600 )
  }
}

public extension Comparable {
  func clamp ( lower: Self , upper: Self ) -> Self {
    min ( max ( self , lower ) , upper )
  }
}
Reasons:
  • Blacklisted phrase (1): another question
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Tim

79806837

Date: 2025-11-01 22:05:54
Score: 0.5
Natty:
Report link

From uvicorn documentation:

Note
The --reload and --workers arguments are mutually exclusive. You cannot use both at the same time.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: mx0

79806820

Date: 2025-11-01 21:09:42
Score: 3
Natty:
Report link

I created a new project using .Net 9 and followed this guide: https://learn.microsoft.com/en-us/previous-versions/xamarin/xamarin-forms/data-cloud/data/entity-framework and it works perfectly.

It seems a little anti-climactic but I believe the issues resolved around not knowing .Net 8 Maui was unsupported and I may have had some hodgepodge code because I was trying to many different remedies.

Reasons:
  • Blacklisted phrase (1): this guide
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: USMC6072

79806819

Date: 2025-11-01 21:05:42
Score: 1
Natty:
Report link

I started working on this open source python library called Reduino it basically simplifies your workflow and transpiles the python code to an arduino c++.

Get Started with

pip install Reduino

Here is what a Led Blink example looks like in Reduino

from Reduino import target
from Reduino.Actuators import Led
from Reduino.Utils import sleep

target("COM4")

led = Led(7)

while True:
    led.toggle()
    sleep(3000)
Reasons:
  • Contains signature (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jackhammer

79806816

Date: 2025-11-01 20:42:36
Score: 1.5
Natty:
Report link

If you really want a binary that doesn't dynamically link any libraries on macOS, you can use the approach here: https://stackoverflow.com/a/79806805/1925631
Doesn't use the -static flag, but otool -L gives an empty list :)

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1.5): you can use
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: msand

79806814

Date: 2025-11-01 20:42:36
Score: 1
Natty:
Report link

Result Value. If C is in the collating sequence defined by the codes specified in ISO/IEC 646:1991 (International Reference Version), the result is the position of C in that sequence; it is nonnegative and less than or equal to 127. The value of the result is processor dependent if C is not in the ASCII collating sequence.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
Posted by: steve

79806802

Date: 2025-11-01 20:22:31
Score: 4
Natty: 4
Report link

for me the feature was disabled and i enabled it by clicking on "open in VS Code " button in this link

https://docs.github.com/en/copilot/how-tos/get-code-suggestions/get-ide-code-suggestions

Reasons:
  • Blacklisted phrase (1): this link
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Hossam

79806793

Date: 2025-11-01 20:05:27
Score: 0.5
Natty:
Report link

Using JSON parse and error detection functions by @sln,
Find/Replace is possible to pare down the objects to just two keys jobID and exec
keys and values.

For more information on how these recursive functions work and more practical
examples, see https://stackoverflow.com/a/79785886/15577665

Should be a complete and valid JSON string.

(?:(?=(?&V_Obj)){(?=(?:(?&V_KeyVal)(?&Sep_Obj))*?\s*("jobID"\s*:\s*(?&V_Value)))(?=(?:(?&V_KeyVal)(?&Sep_Obj))*?\s*("exec"\s*:\s*(?&V_Value)))(?:(?&V_KeyVal)(?&Sep_Obj))+})(?(DEFINE)(?<Sep_Ary>\s*(?:,(?!\s*[}\]])|(?=\])))(?<Sep_Obj>\s*(?:,(?!\s*[}\]])|(?=})))(?<Str>(?>"[^\\"]*(?:\\[\s\S][^\\"]*)*"))(?<Numb>(?>[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?|(?:[eE][+-]?\d+)))(?<V_KeyVal>(?>\s*(?&Str)\s*:\s*(?&V_Value)\s*))(?<V_Value>(?>(?&Numb)|(?>true|false|null)|(?&Str)|(?&V_Obj)|(?&V_Ary)))(?<V_Ary>\[(?>\s*(?&V_Value)(?&Sep_Ary))*\s*\])(?<V_Obj>{(?>(?&V_KeyVal)(?&Sep_Obj))*\s*}))

Replace: { $1, $2 }

https://regex101.com/r/QI0y4i/1

Output:

{
  "2597401": [
    { "jobID": "2597401", "exec": "ft.D.64" },
    { "jobID": "2597401", "exec": "cg.C.64" },
    { "jobID": "2597401", "exec": "mg.D.64" },
    { "jobID": "2597401", "exec": "lu.D.64" }
  ]
}

Rx Explained:

(?:
   (?= (?&V_Obj) )                     # Assertion :  Must be a Valid JSON Object
   {                                   # Open Obj
   
   (?=                                 # Lookahead: Find the 'jobID' key
      (?: (?&V_KeyVal) (?&Sep_Obj) )*?
      \s* 
      ( "jobID" \s* : \s* (?&V_Value) )   # (1), capture jobID and value
   )
   (?=                                 # Lookahead: Find the 'exec' key
      (?: (?&V_KeyVal) (?&Sep_Obj) )*?
      \s*                                 
      ( "exec" \s* : \s* (?&V_Value) )    # (2), capture exec and value
   )
   
   (?: (?&V_KeyVal) (?&Sep_Obj) )+     # Get the entire Object
   
   }                                   # Close Obj
)

# JSON functions - NoErDet
# ---------------------------------------------
(?(DEFINE)(?<Sep_Ary>\s*(?:,(?!\s*[}\]])|(?=\])))(?<Sep_Obj>\s*(?:,(?!\s*[}\]])|(?=})))(?<Str>(?>"[^\\"]*(?:\\[\s\S][^\\"]*)*"))(?<Numb>(?>[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?|(?:[eE][+-]?\d+)))(?<V_KeyVal>(?>\s*(?&Str)\s*:\s*(?&V_Value)\s*))(?<V_Value>(?>(?&Numb)|(?>true|false|null)|(?&Str)|(?&V_Obj)|(?&V_Ary)))(?<V_Ary>\[(?>\s*(?&V_Value)(?&Sep_Ary))*\s*\])(?<V_Obj>{(?>(?&V_KeyVal)(?&Sep_Obj))*\s*}))
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @sln
  • High reputation (-1):
Posted by: sln

79806781

Date: 2025-11-01 19:30:19
Score: 3.5
Natty:
Report link

just use reddit dawg💔

this site dead as hell

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: pooputt

79806758

Date: 2025-11-01 18:55:10
Score: 3.5
Natty:
Report link

Fixed with downgrading psutil module to version 5.8.0

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Artem

79806757

Date: 2025-11-01 18:52:09
Score: 2.5
Natty:
Report link

StackOverflow isn't really the place for architecture patterns and data structure discussions. There is multiple ways and any answer would probably at least to a huge part be opinion based ... Why have separate classes at all? Why can't the config itself already implement that interface?

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • High reputation (-2):
Posted by: derHugo

79806752

Date: 2025-11-01 18:44:07
Score: 2
Natty:
Report link

for key, value in testShelve.items():

 print(key, value)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dick Roman

79806742

Date: 2025-11-01 18:10:00
Score: 3
Natty:
Report link

You can deploy LLMs in Azure AI Foundry using either Azure OpenAI models such as GPT-4, GPT-4o or open-source models like Llama 3, Phi-3, Mistral etc.

Some steps below:

  1. Prerequisites

  2. Create a Hub

    • Go to https://ai.azure.comGet startedCreate a hub.

    • Choose a name, subscription, resource group, and region (e.g. East US).

    • Click Review + Create → Create.

  3. Create a Project

    • Inside the hub, click + New project → name it (e.g. llm-demo) → Create.
  4. Deploy a Model

    • Option A: Azure OpenAI model

      • Go to Models + endpoints → Azure OpenAI → + Deploy model.

      • Choose a model (e.g. gpt-4o-mini) and click Deploy.

    • Option B: Open-source model

      • Go to Model catalog, pick something like Llama 3 or Phi-3, click Deploy, choose compute, and wait for deployment.
  5. Test in Playground

    • Open Playground, select your model deployment, and run prompts interactively.

If you want, I could show you how to use your deployed models for downstream tasks???

Reasons:
  • Blacklisted phrase (1): ???
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Godfrey Inyama

79806741

Date: 2025-11-01 18:10:00
Score: 0.5
Natty:
Report link

Can you delete this, it is NOT advice, but a real question. So ask it as a regular SO question

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can you
  • High reputation (-2):
Posted by: Pepijn Kramer

79806735

Date: 2025-11-01 18:03:58
Score: 1
Natty:
Report link

When I first started working with Java, building a web application felt heavy. A lot of configuration, XML everywhere, and you had to manually set up servers. That all changed when I discovered Spring Boot.

If you're new to Spring or you want a clean starting point for backend development, this walks you through what Spring Boot is and how to build a simple REST API.


What is Spring Boot ?

Spring Boot is a framework that makes it easy to create Java applications with almost no configuration.

It handles the heavy lifting for you:

You just write your code, run the application, and Spring Boot takes care of the rest.


Why use Spring Boot ?

Here are the things that made me personally appreciate Spring Boot:

  1. it has an embedded server.

  2. auto configuration .

  3. very fast to get started .


Step 1: Create a Spring Boot Project

Go to : spring.io

Choose:

Download the project and open it in your IDE .

Spring Boot generates everything you need to start immediately.


Step 2: Create Your First REST API

Inside your project, create a new class:

HelloController.java

package com.example.demo.controllers;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @GetMapping("/hello")
    public String hello() {
        return "Hello World!";
    }
}

That’s it.

How it works:


Step 3: Run the Application

You can run the project in two ways:

1 - Using your IDE

Simply run the main() method inside DemoApplication.java.

2 - Using Maven

Open your terminal and run:

mvn spring-boot:run

The app starts on port 8080 by default.

Now open:

http://localhost:8080/hello

You should see:

Hello World!

Step 4: Update Application Properties

Spring Boot uses application.properties or application.yml to configure your app.

For example, to change the port:

server.port=2025

Or using YAML:

server:
  port: 2025

Restart the app, and it will now run on:

http://localhost:2025


What’s next?

If you're starting your Spring journey, here are the next topics you should take a look at:

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): When I
  • Low reputation (1):
Posted by: Ayoub

79806733

Date: 2025-11-01 17:58:57
Score: 2
Natty:
Report link

You can try flutter_prunekit — it’s a Dart/Flutter analyzer that finds unused classes and methods.
I built and maintain it for exactly this kind of use case.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: mfv

79806732

Date: 2025-11-01 17:58:57
Score: 2
Natty:
Report link

You can try flutter_prunekit — it’s a Dart/Flutter analyzer that finds unused classes and methods.
I built and maintain it for exactly this kind of use case.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: mfv

79806722

Date: 2025-11-01 17:37:52
Score: 3.5
Natty:
Report link

What happens to values above 128?

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): What
  • High reputation (-2):
Posted by: Vladimir F Героям слава

79806718

Date: 2025-11-01 17:26:49
Score: 3
Natty:
Report link

i still got the same problem. my page has got 2 language. and woocommerce settings in cart and check out is Turkish. But when i choose other language "DE", it opens still TR language. i did not find the where the problem is.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: bahadir

79806717

Date: 2025-11-01 17:25:49
Score: 2.5
Natty:
Report link

With Mingw compiler

Source code. // me.c

#include <stdio.h>

Int main (){

printf("Hello Bull");

return 0;

}

With windows power shell or command line

Give in

gcc me.c-S

Output will be me.s

Open me.s with texteditor..

You will see the assembly code thier.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user31797247

79806712

Date: 2025-11-01 17:17:47
Score: 0.5
Natty:
Report link

Huh. Is there no way to post an answer for this question? All I see are these comment-replies. I'd answer if I could find the button.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Quuxplusone

79806705

Date: 2025-11-01 17:09:45
Score: 1
Natty:
Report link

Isn't that what move semantics is supposed to do, leave the source in a valid but indeterminate state? Meaning the object can be reused, but the data inside it can't.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Isn't that
  • High reputation (-2):
Posted by: Some programmer dude

79806701

Date: 2025-11-01 17:04:44
Score: 1.5
Natty:
Report link

How is this an advice question? This looks like standard Q&A.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How is this an
  • High reputation (-2):
Posted by: President James K. Polk