StackOverflow.com

VN:F [1.9.22_1171]
Rating: 9.2/10 (11 votes cast)

Random snippets of all sorts of code, mixed with a selection of help and advice.

What dependency for Swagger/OpenApi to work in Kotlin and WebFlux Spring Boot application?

13 November 2025 @ 7:39 am

I tried a lot of different options, but I cannot find the right dependency that works with Kotlin ans WebFlux simulatneously. Which one should I use? Is it possible to have this setup?

Nginx cutting off Flask streaming responses (with Docker) even with buffering disabled

13 November 2025 @ 7:37 am

I have a Flask backend running inside Docker, and it streams AI responses using a generator. Locally it works perfectly, but after deploying with Nginx + Docker Compose, the streamed response gets cut off halfway. Nginx config: proxy_buffering off; proxy_cache off; proxy_read_timeout 300s; proxy_connect_timeout 300s; proxy_send_timeout 300s; proxy_http_version 1.1; proxy_set_header Connection ""; proxy_set_header X-Accel-Buffering no; default Flask endpoint: return Response( ai_sdk_stream_generator(), mimetype='text/plain', headers={'X-Accel-Buffering': 'no', 'Connection': 'keep-alive'} ) main Issue: Inside Docker, Nginx randomly stops sending chunks to the client. Flask continues printing chunks in logs, but the browser stops receiving them. No timeout logs or er

Do the Dart developers care about making the Dart SDK available in the recommended way? [closed]

13 November 2025 @ 7:18 am

The "Get the Dart SDK" page states: To install and update the Dart SDK from the stable channel, choose one of the following options: Use a package manager (Recommended). Next it says: Install using Chocolatey I tried it and nothing happened. New version (3.10) is not available. I have two questions. Do the Dart developers care about making the Dart SDK available in the recommended way? What does the word Recommended mean in English? (I am not an English speaker) https://dart.dev/get-dart enter image description here

No thumbnail for linkedin multiPhoto using the ugcPosts API

13 November 2025 @ 7:17 am

I tried the ugcPosts API and found that the response does not include data for urn:li:multiPhoto:10001868XXXXX — the thumbnails property is returned as null. May I know how to retrieve the multiPhoto data correctly. Thanks. LinkedIn API: Get posts: https://api.linkedin.com/v2/ugcPosts?q=authors&authors=List(urn%3Ali%3Aorganization%3A795XXXXX)&sortBy=LAST_MODIFIED&count=20 ... }, "media": [ { "thumbnails": [], "status": "READY", "media": "urn:li:multiPhoto:1000506XXXXXX" } ],

Is there a way to run file_get_contents() on a page after it's completely finished loading? [duplicate]

13 November 2025 @ 7:06 am

I have a script that scrapes a webpage using PHP's file_get_contents(). It's been working great for ages, but the site it scrapes has recently had an overhaul. Now instead of loading the full page, the page that file_get_contents() retrieves only consists of: <html> <head></head> <body></body> </html> However if I open the scrape-target page in a browser and inspect it in the dev console after the page has loaded, I can see all the HTML elements I'm expecting to see for the full page. I'm guessing the site now starts its page load with that super minimal HTML snippet above, and then uses javascript to actually populate the page. Is there a way to tell PHP to wait until the page is fully done loading before reading it into a string? (Or is there some other solution I'm missing here?)

MSVC 14.38.33130: Does std::atomic_ref::is_lock_freehave a bug? It returns truefor a 1024-byte struct

13 November 2025 @ 7:05 am

I am encountering suspicious behavior with std::atomic_ref::is_lock_free() in Microsoft Visual Studio's C++ compiler (MSVC version 14.38.33130). The method returns truefor a very large structure (1024 bytes), which strongly contradicts the expectation that such large types cannot be lock-free on x86-64 architecture. After examining the MSVC standard library source code, I believe I've identified a potential bug in the implementation of is_lock_free(). Minimal Reproducible Example (complie using C++ 20) #include <atomic> #include <thread> #include <iostream> int main() { union LargeStruct { char data[1024]; int value; void operator+(int value) { this->value += value; } }; LargeStruct largeStruct; memset(&largeStruct, 0, sizeof(largeStruct)); std::atomic_ref<LargeStruct> atomic_struct(largeStruct); std::atomic_ref<LargeStruct> atomic_struct2(larg

How to check if a user is on leave (from Dataverse) when assigned to a Planner task — even after task creation? [closed]

13 November 2025 @ 7:04 am

I have a setup involving Microsoft Planner, Power Automate, and a Canvas App: Users apply for leave via a Canvas App. The leave data is stored in Dataverse. Once a leave request is approved, a Planner task is created to mark that leave. Now, I want to handle this scenario: When a user is assigned to a task in Planner (either at creation or later), Power Automate should check if that user is on leave (based on the Dataverse table). If the user is on leave, an email notification should be sent to the manager to reassign that task. Current setup I’m using the Power Automate trigger: When a task is created (Planner) This works fine for checking

What is the difference between an integer array and a normal array? [closed]

13 November 2025 @ 7:01 am

What is the difference between an integer array and a normal array, if it is given as a parameter for a function? I'm using python btw.

UTM Virtual Machine hangs when windbg's break on access used with @esp

13 November 2025 @ 6:42 am

System Details (taken from details listed by UTM about the VM): - Windows 10 Home Edition Virtual Machine via UTM running on ARM MacBook Pro M4 - Emulates x86_64: Standard PC (Q35 + ICH9, 2009) (alias of pc-q35-9.1) (q35) - Memory: 8 GB (Probably this is allotted RAM) - Size: 43.71 GB (Probably this is used up space) Goal / Steps Taken: The source code is (eg1.c): #include <stdio.h> int main() { printf("Ujjain is the city of Gods"); return 0; } Compiled using 32 bit gcc to produce eg1.exe: gcc eg1.c -o eg1.exe Packed using upx packer: upx eg1.exe -o eg1_packed.exe I am trying to find the Original Entry Point (OEP) in the packed executable manually using windbg and the so called "ESP trick" described in these blogs: -

Should I generally use a LIMIT clause when testing my SQL queries to a database?

13 November 2025 @ 6:33 am

I am learning SQL from a class online. I wanted to ask if it's generally best to use LIMIT in my queries to make them run faster, or at least until I have them tested and pulling the right data. If yes, where should I put it in the order of things? Does it need to go at the very end, or does it depend on what kind of SQL software I'm using? Thanks a lot for your help!