Newest Questions
24,163,906 questions
0
votes
0
answers
7
views
Async interface, sync-only implementation: Which of `Task.FromResult` or async-over-sync is the lesser evil?
I have this interface to access files from various providers:
interface IFileProvider
{
Task<bool> FileExistsAsync(string filePath);
...
}
Some of its implementations use network ...
1
vote
0
answers
6
views
Angular unit test - update a signal value for a specific test without affecting others
I have a signal that's been injected from a service and I want to test a scenario when the value has a specific property set.
Here's how the spec is defined:
describe('MyComponent', () => {
let ...
Advice
0
votes
0
replies
9
views
Can I create a layer in Keras that de-scales my output?
I am working on a keras regression network that takes about 60 input variables and outputs 35 variables. For both the input and output, about half of the variables are in the range of +/- 10, while ...
Tooling
0
votes
0
replies
7
views
Python treemap with first level as color and legend rather than labels
I would like to try and create treemaps in Python that look similar to these ones :
enter image description here
enter image description here
What I like about those is that the colors allow to easily ...
Advice
0
votes
2
replies
18
views
25 Covered Boxes With 4 Toys
Python or R programming to solve a problem: Imagine there are 25 covered boxes lined up 5x5. We can call the first row as A and the 5th row as E. Hence the middle box is C3, bottom right box is E5, ...
0
votes
0
answers
11
views
IFERROR+INDEX+MATCH Required Strings 5 OR 6 Digits Now
I have an IFERROR+INDEX+MATCH formula to return a child action number based on the parent action number. The parent can have multiple child actions, but I just need one. They're written as a string ...
Tooling
0
votes
0
replies
6
views
Can I Use Swift 5 SDKs in Swift6 Codebase Smoothly?
I want to migrate to swift 6 from swift 5. My app has multiple SDKs which are using Swift 5. My question is that will it cause any issue in terms of app build or performance?
I have read that Swift 6 ...
0
votes
0
answers
17
views
Latest supported Flutter version for MacOS 12 Monterey
I've had Flutter installed on my mac since at least 2023 (version 3.13.8) and haven't been using it in a long time now. I tried upgrading (newest available 3.41.6) but it got me this error:
Building ...
0
votes
0
answers
14
views
Radix ui dropdown open scrolling page blocking
I’m using Radix UI Dropdown Menu in my React app, and I’m facing an issue where opening the dropdown blocks page scrolling (body scroll gets locked).
When the dropdown opens, I cannot scroll the page, ...
0
votes
0
answers
14
views
How to hide / show a GPUI window
So I'm trying to make an app using zed's GPUI that can hide and show based on a field in the struct.
However, I can only cx.remove_window's but never actually spawn back the window..
Even using ...
0
votes
0
answers
6
views
AcceleratorError: CUDA error: device-side assert triggered
I am using Qwen2 7b and I loaded it like this
model, tokenizer = FastLanguageModel.from_pretrained(
model_name=MODEL_DIR,
max_seq_length=MAX_SEQ_LEN,
dtype=torch.float16,
load_in_4bit=True,
...
Advice
1
vote
0
replies
22
views
Google Play Billing Policy – Redirecting Users to Website for Dynamic Course Pricing (Flutter App)
I’m developing a Flutter-based educational app that offers paid courses for exam preparation. The pricing for these courses is dynamic (varies per course), which doesn’t align well with Google Play’s ...
-3
votes
0
answers
34
views
Spring Boot practies for pre-junior [closed]
I am developing a Spring Boot application that tracks updates on StackOverflow questions using the StackExchange API v2.3. I am using the new Spring HttpServiceProxyFactory with @HttpExchange to ...
0
votes
0
answers
23
views
How can I connect the smooth curve edges of this Shape in SwiftUI?
I have this Wavy Stamp Shape
struct WavyPostageStampShape: Shape {
var amplitude: CGFloat = 8
var wavesX: Int = 6
var wavesY: Int = 10
var phase: CGFloat = 0
var step: CGFloat = 2
...
0
votes
0
answers
34
views
Spring boot 4, jackson and list serialization
I migrated from spring boot 3 to spring boot 4 and I have an issue with the JSON created by Jackson.
The response is like this:
public class MyResponse {
private List<MyData> data;
...