S SearchRSS

Google CSE + RSS

SearchRSS

Aggregated news

Latest news
Newest questions tagged c++ - Stack Overflow

Is usage of std::atomic with type std::optional<int> thread safe?

In the below code, I have an atomic error state variable inside a library with some auxiliary functions to get, set and clear the error state. I want to know is the library written code thread safe? #include #include #

Newest questions tagged css - Stack Overflow

img outside of parent div

I seem to be having issues with making 's properly fitting into their parent divs. I've tried the max-width, height, display, and object-fit fixes, but it still doesn't work. I was wondering if it might just be the image

Newest questions tagged css - Stack Overflow

Trying to make an image fixed to the top of the page

I have an image that's supposed to go at the top of the page only because it's blocking links from being clicked and just generally doesn't look good. I've tried googling it but I can't find anything. I'm not good at cod

Newest questions tagged python - Stack Overflow

Is there a way to use lazy imports in backwards-compatible code?

I'm writing some code that I want to make use of lazy imports, which were introduced in Python 3.15. However, I want the code to run fine on Python < 3.15 too, albeit without lazy imports. Just running the following code

Newest questions tagged python - Stack Overflow

Storing items in classes in python game development [closed]

Is there a way to make multiple copies of a class without specifying the variable name? Like how scratch has a "make clone of self" block. What I want is for there to be multiple items, so I can say if apple in inventory

Newest questions tagged typescript - Stack Overflow

Why is the 2nd overload picked-up?

interface Type extends Function { new(...args: any[]): T; } interface AbstractType extends Function { prototype: T; } // works fine if the lone definition declare function inject(token: Type): T; // KO declare

Newest questions tagged javascript - Stack Overflow

Swapping unique values in mongoose without swapping all properties

I need to swap a value of a field with a unique constraint (order) between several (>2) documents in a MongoDB collection without having to swap the document content (see this answer). This is because I need to preserve

Newest questions tagged java - Stack Overflow

Logic to check if Long Value is less then Long.MIN_VALUE

Having an issue where I have a condition that, as a negative value long grows in size, it tests to see if it is less then Long.MIN_VALUE. It's for a method that converts a string of numbers into a long. Below is the cond

Newest questions tagged java - Stack Overflow

Job Assitance for landing job (Specially fresher ) [closed]

Which platform nowadays are the best for a 2023 grad having certification with full stack web development to land a good job ? In which sites one should apply ? What is the best way to approach to a company to get a good

Newest questions tagged css - Stack Overflow

Elements in nav bar overlapping on zoom

The elements in my navigation bar overlap when I zoom in. This is the appearance I want in all zoom levels: Desired appearance: Appearance on zoom over 100% on my computer: I have tried lots of different solutions but

Newest questions tagged css - Stack Overflow

How to center MathML's <math> in Firefox?

I'm struggling trying to center a MathML tag inside my website. First I tried using padding + translateX() but the result wasn't optimal depending on the screen size. After that, I thought about rendering as a FlexBox,