on-internet

Argument is not consteval in a 'if consteval' branch? [duplicate]

I am designing a class similar to an std::array. I have a constructor that receives an iterator and a size. My idea is fail if the size is bigger than N. N being a size_t class template parameter. My idea is to fail if the count parameter is bigger than N. In a consteval context at least, at runtime I can reduce the counter. Code: constexpr vector_stack_base(const_iterator source, size_type count) { if consteval { static_assert(N <= count); } else { if (count > N) { count = N; } } This codes fails in MSVC 2026, in C++23 in the static_assert, saying: "error C2131: expression did not evaluate to

Join the discussion →

Where to add the --enable-native-access=ALL-UNNAMED?

I was upgrading some code that helps changing an HTML project to an APK. All is working, but I keep getting the following warning: WARNING: A restricted method in java.lang.System has been called WARNING: java.lang.System::loadLibrary has been called by org.conscrypt.NativeLibraryUtil in an unnamed module (file:/home/user/.android/sdk/build-tools/37.0.0/lib/apksigner.jar) WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module WARNING: Restricted methods will be blocked in a future release unless native access is enabled The code has the following steps :

Join the discussion →

How to display a progress popup in ASP.NET when processing intense code

Can someone give me an example of how to use a ModalPopupExtender to display the progress of, for this example, processing reports to a single PDF in ASP.NET. The example I have posted initially prompts the user to export x PDFs. If yes is pressed, then a new ModalPopupExtender popup starts displaying the progress. This works solely on a timer. I don't want a timer just a loop to go through all the PDFs to export and show the progress. When I tried something similar the inital ModalPopupExtender.Hide() wouldn't close prior to the exporting and the ProgressModalPopupExtender.Show() wouldn't sho

Join the discussion →

Copilot Agent selection dropdown hidden under another dropdown in VS Code

There used to be this button that would trigger a dropdown where you could choose from Agent/Ask/Plan and other custom agents. However, when I am on the "Agent" agent mode, the button disappears and hides into the [+] button, making it two extra clicks away and easy to miss. How can I pin it back onto the chat panel itself? I have already tried looking into settings, but nothing weird changed since last time I remember it was there. Copilot Edits Agent Mode Dropdown Missing in VSCode Insiders didn't help either.

Join the discussion →

Baggage Measurements

My question is regarding personal item bag measurements . My bag measurement are height 42 cm width 32 cm and depth 16 cm ? Would that represent a problem for check in and security check ?

Join the discussion →

Python SQLModel FastAPI get unique values from database

I have this an API which should get all unique titles with limit of 5. @app.get( "/placeholder/{item_title}", response_model=list[ItemPublic] ) def suggest_item( *, session: Session = Depends(get_session), item_title: str ): item_interests = session.exec( select(Item) .distinct() .where(col(Item.title).ilike(f"%{item_title}%")) .limit(5) ).all() return item_interests I should actually be getting all unique titles that are stored in database based on what user types, however I can't make .distinct() work. I have tested this API and it returns duplicate titles. Where does my code go wrong?

Join the discussion →

Study of Nearly 27,000 Men Is The Largest Yet on Tight Underwear And Sperm Quality

submitted by Sunflier to science 139 points | 65 comments https://www.sciencealert.com/study-of-nearly-27000-men-is-the-largest-yet-on-tight-underwear-and-sperm-quality Compared with looser undergarments, for instance, tighter options were linked to 18 percent higher odds of producing less semen. Tight undies were also linked to 12 percent higher odds of having fewer motile sperm, 48 percent higher odds of having fewer normally shaped sperm, and 108 percent higher odds of having more sperm with DNA fragmentation or damage. In a secondary analysis, researchers also found that erectile dysfuncti

Join the discussion →

flutter run hangs at "Waiting for VM Service port to be available" on Pixel 6a with Android 17 (no hot reload or debugger)

After my Pixel 6a was updated from Android 16 to Android 17, flutter run builds, installs and launches the app normally and the UI works, but the terminal hangs forever. Hot reload, DevTools and breakpoints never connect. The same phone worked before the update. Output of flutter run -v (it stops here, no error): [ +183 ms] Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x20000000 cmp=com.example.myapp/.MainActivity (has extras) } [ +1 ms] Waiting for VM Service port to be available... Environment Pixel 6a, Android 17 stable (build CP3A.260905.009,

Join the discussion →

R8 strips WorkDatabase_Impl constructor: release crashes at launch, earlier release didn't [closed]

My Flutter app (AGP 9.4.1) crashes immediately on launch when installed from Google Play. Debug builds work. The crash occurs in a content provider, before Flutter or Dart code runs: java.lang.RuntimeException: Unable to get provider androidx.startup.InitializationProvider Caused by: java.lang.RuntimeException: Failed to create an instance of androidx.work.impl.WorkDatabase at androidx.work.WorkManagerInitializer... Cause I found I don't use the workmanager plugin. WorkManager 2.7.0, and with it Room 2.2.5, arrives transitively through google_mobile_ads (play-services-ads 25.5.0). In the Room

Join the discussion →

Flutter TextField loses keystrokes while typing when using Provider and setState

[Flutter] TextField Search Bar Keystroke Issue – Provider and TextEditingController Hi Flutter developers, I'm facing an issue with the search bar in my Flutter ERP application. I'm using Provider (ChangeNotifierProvider) for state management. While typing into the search field, I'm experiencing unexpected keyboard/input behaviour. I suspect widget rebuilds, Provider notifications, or TextEditingController management might be involved. 1. My implementation I'm using: Flutter and Dart Provider (ChangeNotifierProvider) TextEditingController API-based search Consumer for UI updates 2. Search Text

Join the discussion →

The Great God Pan by Arthur Machen

submitted by leraje to books 15 points | 0 comments https://thedevilslibrary.libsyn.com/episode-185-the-great-god-pan-by-arthur-machen In this bonus episode Ligeia and Leraje delve into this little known gem of 19th century horror literature which is both a very modern Gothic horror and also a critical look at Victorian society. I’d heard of Machen before but not this story and after reading it I’m bewildered about why its not talked about in the same discussions as Frankenstein or Dracula. Amazing little novella. As ever, no ads, no sponsors, no GenAI and we’re not on Spotify (by choice). You

Join the discussion →

Why is IntStream's overridden Iterator () method present in the source code but missing in Javadoc from Java 10 onwards?

java.util.stream.IntStream is documented in its original (Java 8) Javadocs to override the BaseStream.iterator() method with a version that returns PrimitiveIterator.OfInt. This override is also documented in the Java 9 Javadocs, but not in the Java 10 Javadocs and onward, through the present Java 27 Javadocs. Yet review of the source code for Java 10 through Java 27 shows that IntStream still contains this override, so why is it missing from the Javadocs? What specification / tooling / (bug ? ) change caused this?

Join the discussion →

Mini, spoiler free review of *The Butcher's Masquerade*, by Matt Dinniman

submitted by AFKBRBChocolate to books 20 points | 0 comments cross-posted from: lemmy.ca/post/73441710 Book five of the Dungeon Crawler Carl series. Carl and Donut get to the next level, get into more trouble, get additional skills and levels, and figure more things out. In this level, hunters from the “real world" alien races are there killing the crawlers. This one felt somewhat less superficial and a little more gritty than prior books, but still in keeping with the series. It continues to hold true that if you liked the prior books, you’ll probably like this one.

Join the discussion →

How can I deal with passengers asking me to lift their cabin baggage? What are tactics to avoid getting asked to (un)load others' carry-ons?

Like How can I deal with people asking to switch seats with me on a plane? - how can I deal with people asking to assist with their carry on luggage? Unfortunately in this case, I am relatively tall. On almost every flight, after I load and unload my carry-on luggage into overhead compartments, strangers nearby ask me to do the same. As I hurt myself doing this, I learned my lesson - don't heave and fetch other passengers' overhead baggage! Instead of answering directly, i always "circumlocute" like this - Have you asked the flight attendants? The flight attendants can happily assist you. But

Join the discussion →
Older stories