79707816

Date: 2025-07-20 07:35:47
Score: 1.5
Natty:
Report link

1000 records is very small amount of records.

At this scale Postgres might decide that sequential scan will be faster, because there is overhead to index scan.

Reasons:
  • Low length (1):
  • No code block (0.5):
Posted by: Bartosz Stasiak

79707815

Date: 2025-07-20 07:34:46
Score: 3.5
Natty:
Report link

Try your roulette algorithm on Sonabet – a great platform for testing casino strategies!

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

79707813

Date: 2025-07-20 07:30:45
Score: 3.5
Natty:
Report link

Thank you for your replies. You were right to ask me to do a basic, minimal setup from scratch.

My setup had once run using browsersync. The problems started when I deinstalled it and switched completely to Vite. From that time I had code that I now deleted:

config.yaml

router_http_port: "80"
router_https_port: "443"

vite.config.yaml


import ViteRestart from 'vite-plugin-restart';
import mkcert from 'vite-plugin-mkcert'

export default defineConfig(({ command, mode }) => {
    return {
        plugins: [
            mkcert(),
            ViteRestart({
                restart: [
                './src/**/*',
                ],
            })
        ],
    },
        server: {
            manifest: true,
            https: true,

package.json

{
    "devDependencies": {
        "vite-plugin-mkcert": "^1.17.8",
        "vite-plugin-restart": "^0.4.2"
    }
}

I am thankful for your advice as I had spent more than a day on this problem. I’ll stick to your advice in future and start with a trivial setup when getting stuck.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (3): thankful for your advice
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Moritz

79707812

Date: 2025-07-20 07:28:45
Score: 0.5
Natty:
Report link
VideoView myVideoView = findViewById(R.id.videoview);
String viewSource = "http://dev.hpac.dev-site.org/sites/default/files/videos/about/mobile.mp4";
Uri videoUri = Uri.parse(viewSource);

// Set the video URI
myVideoView.setVideoURI(videoUri);

// Add media controls
MediaController mediaController = new MediaController(this);
mediaController.setAnchorView(myVideoView);
myVideoView.setMediaController(mediaController);

// Start playback
myVideoView.requestFocus();
myVideoView.start();

With error handling:

VideoView myVideoView = findViewById(R.id.videoview);
String viewSource = "http://dev.hpac.dev-site.org/sites/default/files/videos/about/mobile.mp4";
Uri videoUri = Uri.parse(viewSource);

// Set the video URI
myVideoView.setVideoURI(videoUri);

// Add media controls
MediaController mediaController = new MediaController(this);
mediaController.setAnchorView(myVideoView);
myVideoView.setMediaController(mediaController);

// Error handling
myVideoView.setOnErrorListener((mp, what, extra) -> {
    Toast.makeText(this, "Error: This video cannot be played.", Toast.LENGTH_LONG).show();
    Log.e("VideoViewError", "Video playback error. Code: " + what + ", Extra: " + extra);
    return true; // true = we handled the error
});

// Optional: Completion listener
myVideoView.setOnCompletionListener(mp -> {
    Toast.makeText(this, "Video completed!", Toast.LENGTH_SHORT).show();
});

// Start playback
myVideoView.requestFocus();
myVideoView.start();
Reasons:
  • Blacklisted phrase (1): This video
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: CodingMaster24

79707807

Date: 2025-07-20 07:22:44
Score: 1
Natty:
Report link

I think what you're looking for is -

keyboardShouldPersistTaps="always"

This will not dismiss your keyboard and you'll be able to interact with the other buttons.

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

79707805

Date: 2025-07-20 07:20:43
Score: 0.5
Natty:
Report link

Using Brew I first uninstalled current cmake installation with: brew remove cmake

and then I installed using: brew install --cask cmake

This worked for me

Reasons:
  • Whitelisted phrase (-1): This worked for me
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: mandeep bhatia

79707798

Date: 2025-07-20 07:08:41
Score: 1.5
Natty:
Report link

Start by double-checking your CSS on the iframe and its parent containers for height and overflow properties. If that doesn't work, it's probably an interaction limitation with the Figma embed itself. While there are solutions for general iframe scrolling (like iframe-resizer), getting granular scroll events from within a Figma prototype embedded in an iframe seems to be a current limitation or requires a clever workaround that isn't immediately obvious from the documentation.You can also consider if there's a different way to display your Figma content if the scrolling is a critical feature and the iframe is proving to be a blocker.

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

79707791

Date: 2025-07-20 06:57:38
Score: 0.5
Natty:
Report link

You have an older unofficial version of docker installed. You need to remove it.

Follow the official instructions on how to Install Docker Engine on Ubuntu, section Uninstall old versions.

In short you need to run:

for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: AlexD

79707790

Date: 2025-07-20 06:56:37
Score: 2
Natty:
Report link

I finally solved the issue!

The problem was with how I defined the checkBalance function in Motoko. I had written:

public shared query func checkBalance(): async Nat {
  return currentValue;
};

While this looks fine, it caused the method to not appear in the Candid UI and failed in dfx canister call as well.

Fix: I read the documentation on Query functions and removed the return keyword and simply returned the value directly like this:

public shared query func checkBalance(): Nat {
  currentValue;
};

After making the fix, I also ran these commands to ensure a clean redeploy:

dfx stop
rm -rf .dfx
dfx start --clean
dfx deploy

Now everything works perfectly! The solution was so much more simple than I made it out to be. Hope this helps someone facing the same issue!

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same issue
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Priya Gurung

79707784

Date: 2025-07-20 06:44:35
Score: 2.5
Natty:
Report link

After reading this post, I realized that the solution was pretty simple. I needed to set credentials: 'include' in the login request in order for the cookie to actually be saved in the browser. Cookies seem to not be saved automatically when the Set-cookie header is present unless the fetch requests "asks" for them.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nathan Moore

79707777

Date: 2025-07-20 06:29:32
Score: 3
Natty:
Report link

below command saved my day:~

dnf install  https://rpms.remirepo.net/enterprise/remi-release-8.9.rpm 
Reasons:
  • Blacklisted phrase (2): saved my day
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Edward.H

79707771

Date: 2025-07-20 06:19:30
Score: 0.5
Natty:
Report link

You have disabled implicit framework references:

<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>

Set that to false.

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

79707769

Date: 2025-07-20 06:10:28
Score: 3.5
Natty:
Report link

sk9ibidi I think

but the gyatt could be big and massive or chicken snadwich

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

79707766

Date: 2025-07-20 06:07:28
Score: 3
Natty:
Report link

If you are using a mingW C compiler and in windows this happens because of the way in the printf interprets the long double as double.

you can fix this by using __mingw_printf() instead of printf() :)

For reference https://stackoverflow.com/a/14988103/25043047 .

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hari Haran

79707763

Date: 2025-07-20 06:03:27
Score: 2
Natty:
Report link

Use Harmonify. It's a new library meant for patching Python code is really easy to use, and can be installed via pip.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: fregf etgtg zie eggg

79707762

Date: 2025-07-20 06:03:27
Score: 2.5
Natty:
Report link

Your MyClass object is a structure containing the reference to the 2 event handlere, if you want that specific instance to be garbage collected you need to unsubscribe to both event handlers. If you require a manual process to ensure this, implement the IDispose interface and call that method, that then ensured that event handlers are all unsubscribed.

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

79707758

Date: 2025-07-20 06:00:26
Score: 1
Natty:
Report link

from fpdf import FPDF

from PIL import Image

# ছবি ও আউটপুট ফাইলের ঠিকানা

image_path = "LMC_20250720_113005_🔥 iPhone 14 Ultra Pixel.jpg"

output_pdf = "Najib_Kamal_CV.pdf"

# PDF ইনিশিয়ালাইজ

pdf = FPDF()

pdf.add_page()

pdf.set_auto_page_break(auto=True, margin=15)

# ফন্ট সেট করা

pdf.set_font("Arial", 'B', 16)

pdf.cell(0, 10, "জীবনবৃত্তান্ত (Curriculum Vitae)", ln=True, align='C')

pdf.ln(10)

# ছবি বসানো (ডান দিকে উপরে)

pdf.image(image_path, x=150, y=20, w=40)

pdf.ln(50)

# ব্যক্তিগত তথ্য

pdf.set_font("Arial", 'B', 12)

pdf.cell(0, 10, "ব্যক্তিগত তথ্য:", ln=True)

pdf.set_font("Arial", '', 12)

pdf.cell(0, 10, "নাম: নাজিব কামাল", ln=True)

pdf.cell(0, 10, "জন্ম তারিখ: ৭ নভেম্বর ২০০৩", ln=True)

pdf.cell(0, 10, "ঠিকানা: পার্বতপুর, দিনাজপুর", ln=True)

pdf.cell(0, 10, "মোবাইল: ০১৭৪৫১৫৮৪৮৫", ln=True)

pdf.cell(0, 10, "ইমেইল: [email protected]", ln=True)

# নিচের অংশেও এভাবে Objective, Education, Skills, etc. যুক্ত করতে পারো

# PDF সেভ করা

pdf.output(output_pdf)

print("✅ PDF তৈরি হয়েছে:", output_pdf)

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Najib Kamal Najib

79707755

Date: 2025-07-20 05:48:23
Score: 2.5
Natty:
Report link

I faced same issue.

Try closing resource.h file in visual studion and open .rc file by double click.

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

79707747

Date: 2025-07-20 05:34:21
Score: 5
Natty: 5
Report link

Please check this patch which solves the issue:
https://github.com/fran6w/openpyxl

Reasons:
  • Blacklisted phrase (1): Please check this
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Francis Wolinski

79707740

Date: 2025-07-20 05:15:16
Score: 3
Natty:
Report link

.${categoryNamee}{ display: flex; flex-direction: row-reverse; }

Removing flex-wrap: wrap; helped

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

79707739

Date: 2025-07-20 05:15:16
Score: 1
Natty:
Report link

It's because stackoverflow, like many sites, uses a widely accepted 960px page container width standard.

Within your full-width footer container, put a second, invisible container for the content, whose width is the same as the width of the main document body, e.g. 960px. Here is stackoverflow's body container:

#content {
    margin: 0 auto;
    width: 960px;
    min-height: 450px;
}

And here is the container for the footer content:

.footerwrap {
    margin: 0 auto;
    text-align: left;
    width: 960px;
}

Additionally, I don't think the footer 'sticks' to anything. It's simply at the end of the document, so it's rendered at the bottom of the page. I might be wrong as I haven't looked at stackoverflow's html source in that much detail, but anything else seems like overkill.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Akash Kumar

79707737

Date: 2025-07-20 05:14:15
Score: 5.5
Natty:
Report link

I faced this issue earlier, and I tried the following steps:

flutter clean // or fvm flutter clean

flutter pub get // or fvm flutter pub get

flutter run

But after running the app, I faced another issue where Flutter recommended updating the Kotlin version.

🔹 It seems like even after cleaning, Flutter still expects the latest Kotlin version in both settings.gradle and build.gradle.

What I’ve already done:

What I want to know:

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): I want to know
  • Blacklisted phrase (1): Is there any
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Maynul islam jibon

79707725

Date: 2025-07-20 04:42:09
Score: 1
Natty:
Report link

Binary search and binary search tree (BST) are two different concepts, though they sound similar. Binary search is an algorithm used to find an element in a sorted array or list. It works by repeatedly dividing the search range in half — comparing the middle element with the target, and then deciding whether to search in the left or right half.

On the other hand, a binary search tree is a data structure, specifically a type of binary tree where each node has at most two children. The left child of a node contains values smaller than the node, and the right child contains values greater.

While both use the "binary" idea of halving or branching into two parts, binary search is an algorithm, and a binary search tree is a structure that stores data in a way that supports binary-search-like operations. Binary search applies to sorted linear structures like arrays, whereas a BST organizes data hierarchically using nodes. So, they are related by concept but are not the same.

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

79707724

Date: 2025-07-20 04:37:08
Score: 0.5
Natty:
Report link

You're right to be cautious. Microsoft 365 does require the device to connect to the internet about every 30 days to keep the license active. If it doesn't, Office apps go into reduced functionality mode (basically read-only).

Unfortunately, Microsoft doesn’t expose the actual license validation date or the number of days remaining in any way that's accessible via VBA or even PowerShell. It's all managed internally by the Click-to-Run service, and there’s no registry key or public API that provides a countdown.

That said, you can work around it by using VBA to log the last time the machine was online. On workbook open, check for an internet connection. If it's online, write the current date to a local text file or a hidden worksheet. Each time the workbook opens, compare today's date to that last online date. If you're getting close to 30 days, display a warning message.

You can probably find example scripts online that do this, or write a simple one yourself. It’s not too complex.

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

79707702

Date: 2025-07-20 04:02:01
Score: 2
Natty:
Report link

To answer my own question, mock uses the rpm from the target OS to build the package.

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

79707700

Date: 2025-07-20 04:00:00
Score: 0.5
Natty:
Report link

The issue with the checkBalance function not appearing in the Candid UI or responding to CLI calls is likely due to its incorrect declaration using async in a shared query function, which isn't necessary and can cause it to be excluded from the generated interface. To fix this, change the method signature to public shared query func checkBalance(): Nat (removing async), then stop the DFX server, delete the .dfx folder, and restart everything cleanly using dfx stop, rm -rf .dfx, dfx start --clean, and dfx deploy. After redeploying, the method should appear in the Candid UI and respond properly to dfx canister call commands.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: DEEPAK NANDA

79707686

Date: 2025-07-20 03:16:52
Score: 2
Natty:
Report link

With the new constraints imposed in the edited question, the answer is "there is no implementation possible."

Please accept this answer so I can claim the meaningless 50 points.

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

79707681

Date: 2025-07-20 03:07:51
Score: 2.5
Natty:
Report link

sudo ln -s /usr/bin/nodejs /usr/bin/node

This will make the system recognize the node command by linking it to nodejs.

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

79707677

Date: 2025-07-20 03:01:50
Score: 1.5
Natty:
Report link

Above answer is right. Please mark above answer as USEFUL.

I am just adding screenshot for better Visualisations

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Nilesh Kumar

79707671

Date: 2025-07-20 02:36:45
Score: 2
Natty:
Report link

Having the same issue with Python 3.12 and Python 3.13 on Windows 11 x64.

In my case, as it turns out, it's because I have the following in my PYTHONPATH:

C:\Program Files\QGIS 3.28.2\apps\qgis\python
C:\Program Files\QGIS 3.28.2\apps\Python39\Lib\site-packages

Removing this, and there is no need to do anything special with upgrading pip or choosing specific numpy version.

Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): Having the same issue
Posted by: Methodox Charles Zhang

79707666

Date: 2025-07-20 02:28:43
Score: 3.5
Natty:
Report link

fake solutions

nothing is working, time wastage

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

79707652

Date: 2025-07-20 01:46:34
Score: 7
Natty: 4
Report link

Did anyone find a solution to this in windows using python/anaconda?

i'm getting:

(deepfacelive) C:\DeepFaceLive-master>python main.py run "DeepFaceLive"--- user data-dir "C:\DeepFaceLive-master"

usage: main.py run [-h] {DeepFaceLive} ...

main.py run: error: argument {DeepFaceLive}: invalid choice: 'DeepFaceLive---\u200auser' (choose from 'DeepFaceLive')

I don't understand where it is getting

"u200auser"

?

Reasons:
  • RegEx Blacklisted phrase (3): Did anyone find a solution to this
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Did anyone find a solution to this in
  • Low reputation (1):
Posted by: kittrax

79707644

Date: 2025-07-20 01:19:24
Score: 7
Natty:
Report link

did u find a solution i just did the same exsact thing. Anything helpd!

Reasons:
  • RegEx Blacklisted phrase (3): did u find a solution
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did
  • Low reputation (1):
Posted by: daniel ntumba

79707635

Date: 2025-07-20 00:45:16
Score: 3.5
Natty:
Report link

Please double check your .vscode\launch.json.

Check this reference.

https://learn.microsoft.com/pt-br/microsoft-edge/visual-studio-code/microsoft-edge-devtools-extension/launch-json

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Weber K.

79707619

Date: 2025-07-19 23:34:04
Score: 3.5
Natty:
Report link

Had the same problem. Looked in the Event Viewer and it suggested installing .net5 using this link:

https://aka.ms/dotnet-core-applaunch?framework=Microsoft.WindowsDesktop.App&framework_version=5.0.0&arch=x64&rid=win-x64&os=win10

Executed the exe at this link and it worked.

Reasons:
  • Blacklisted phrase (1): this link
  • Whitelisted phrase (-1): it worked
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: davy K

79707614

Date: 2025-07-19 23:26:02
Score: 1.5
Natty:
Report link

If you can't find the IDL using anchor idl fetch <PROGRAM_ID> or by visiting https://solscan.io/account/<PROGRAM_ID> I suggest using tools for IDL reverse engineering like Solvitor or idlGuesser: https://solvitor.xyz/public_idl/<PROGRAM_ID>

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

79707608

Date: 2025-07-19 22:55:55
Score: 2.5
Natty:
Report link

You mentioned “I was imagining using one, database-wide, unit of work class”.

I have just begun to design a Unit of Work pattern and had the same concern.

I had been considering one approach which might solve the concern quoted above, but I’m not yet sure of it and I’ve yet to try it. Basically, it utilises the CQRS pattern. Here it is..

Similar to CQRS pattern, where each use-case has a unique pair of Command class and Command’s handler class, how about if we create different UnitOfWork classes for each use-case. This, each use case will now have 3 things, command, its handler and a UoW class.

In CQRS, usually, the handler contains (is dependent) only on the repositories required by it. In my proposal, the repositories needed by that handler may be moved to its UoW class. In the handler, UoW will be injected instead of the repositories.

In this way,

It has all Pros of CQRS. UoW is more granular, which is the selling point of CQRS, more maintainable for changing logic with evolving business logic etc.

Anyone buying?

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Zelinskey

79707602

Date: 2025-07-19 22:34:51
Score: 2
Natty:
Report link

spring.session.store-type=jdbc

spring.session.jdbc.table-name=SPRING_SESSION

spring.session.jdbc.schema=classpath:org/springframework/session/jdbc/schema-postgresql.sql

spring.session.jdbc.initialize-schema=always

spring.session.timeout.seconds=900

spring.session.jdbc.cleanup-interval=3600

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

79707588

Date: 2025-07-19 21:57:44
Score: 0.5
Natty:
Report link

To solve this, I added .modelContainer(for: DrinkModel.self)` to the <AppName>App.swift App Struct like so:

import SwiftUI

@main
struct DrinkLess_watchOS_Watch_AppApp: App {
    var body: some Scene {
        WindowGroup {
            ContentView()
        }.modelContainer(for: DrinkModel.self)
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: TestinginProd

79707578

Date: 2025-07-19 21:28:38
Score: 1
Natty:
Report link

You need not do this in double precision: single precision is enough! The trouble is what you're using the precision for, and by trying to represent cosines near 1 rather than near 0 you're throwing away all the precision available to you. Navigators in days of yore—with much less precision than modern IEEE 754 binary32 single precision!—had the same problem, and what did they do?

Let's write this as a formula without all the unit conversions—you have latitudes 𝜑₁ and 𝜑₂ and longitudes 𝜆₁ and 𝜆₂ and you want the great-circle angle 𝜃, which you've decided to approach with the relation (probably derived from converting the spherical law of cosines naively to a longitude/latitude coordinate system):

cos 𝜃 = sin 𝜑₁ sin 𝜑₂ + cos 𝜑₁ cos 𝜑₂ cos(𝜆₂ − 𝜆₁).

The crux of the problem is that you're trying to find an angle whose cosine is very close to 1, and you're doing it by computing that cosine. In your example, sin 𝜑₁ sin 𝜑₂ + cos 𝜑₁ cos 𝜑₂ cos(𝜆₂ − 𝜆₁) comes out to roughly 0.999999937 = 1 − 6.3×10⁻⁸, but the single-precision floating-point numbers in [½, 1] can only discern increments of about 6×10⁻⁸, so you've essentially wasted all your precision on those leading nines. Navigators in days of yore didn't even have eight digits (for example, the 1913 tables of E.R. Hedrick and the 1800 tables of Josef de Mendoza y Ríos provide only around five digits), so how did they do it?

You probably grew up on the three trig functions sine, cosine, and tangent if you're much less than a century old, but there are others like haversine (hav 𝜃 = ½ (1 − cos 𝜃)) and exsecant (exsec 𝜃 = sec 𝜃 − 1 = 1/cos 𝜃 − 1)—invented not to torture students in school, but because they made calculations feasible with limited precision! The trick is not to compute the cosine 1 − 𝛿 for very small 𝛿, but instead compute the versine 𝛿, or the haversine ½𝛿, so you can use the full precision available to you to represent it.

The venerable haversine formula relates the latitudes 𝜑₁ and 𝜑₂ and longitudes 𝜆₁ and 𝜆₂ to the great-circle angle 𝜃 by:

hav 𝜃 = hav(𝜑₂ − 𝜑₁) + cos 𝜑₁ cos 𝜑₂ hav(𝜆₂ − 𝜆₁).

This is better for nearby angles because for small angle differences, haversine preserves most of the precision of the input to return a result near 0, while cosine throws it away to return a result near 1.

Of course, the Android math library might be missing a haversine function (pity!), but you can recover it from the trigonometric identity:

hav 𝜃 = ½ (1 − cos 𝜃) = sin²(𝜃/2).

You can always divide by two exactly in floating-point arithmetic (unless it underflows), and squaring won't amplify the error much, so the formula sin²(𝜃/2) will work reliably, and you can recover the inverse archav 𝑥 = 2 arcsin(√𝑥), using functions that probably are in the Android math library. And this identity—together with coordinate transformation between longitude/latitude and spherical triangle angles—is how you can derive the haversine formula from (e.g.) the spherical law of cosines, as the Wikipedia article shows.

Once you use the haversine formula, even if you compute everything in single precision, you get within about 30cm of the exact result in your example, or <0.014% relative error—which is smaller than the error of about 60cm arising from using a spherical approximation to the oblate spheroid of Earth!

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Contains signature (1):
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Josef de Mendoza y Ríos

79707577

Date: 2025-07-19 21:26:37
Score: 3.5
Natty:
Report link

Select/option elements In Chrome don't "drop down" if they are inside a draggable element on as explained in: No possibility to select text inside <input> when parent is draggable

Some workarounds are suggested in the link.

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

79707574

Date: 2025-07-19 21:22:36
Score: 1.5
Natty:
Report link

I swear to go VBA just likes to screw with me.

refStr = "=" & colName & "[" & colHdr & "]"

This works fine and I have no idea why it wasn't working before. It's like VBA doesn't update to reflect your changes or something.

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

79707555

Date: 2025-07-19 20:44:29
Score: 0.5
Natty:
Report link

It turns out that I missed the null checking in the Case class.

private static void OnPropChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
    if (d is Case _case && _case.SwitchCase != null && _case.SwitchValue != null)
    {
        _case.Content = _case.SwitchCase.ToString() == _case.SwitchValue.ToString() ? _case.SwitchContent : null;
    }
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Richard Harrison

79707552

Date: 2025-07-19 20:31:27
Score: 1
Natty:
Report link

Looks like you aren't awaiting the pool.end(). This could mean your test runner may exit before pool.end() resolves which could potentially be leaving open sockets.

afterAll(async () => {

  await pool.end();

});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Aansh Kotian

79707545

Date: 2025-07-19 20:21:25
Score: 4
Natty: 4
Report link

एक लकड़हारा था, जो रोज़ पेड़ काटता। एक दिन पेड़ गिरा नहीं...
पहले वार, दूसरा, तीसरा... दस… बीस… पचास…
लेकिन वो नहीं रुका।

100वें वार पर — पेड़ गिर गया!
लोग बोले — "एक ही वार में गिरा दिया!"
पर उसे पता था…
ताक़त उस एक वार में नहीं, उन 99 हार ना मानने वाले वारों में थी।


Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: Prakash Vala

79707535

Date: 2025-07-19 19:47:18
Score: 1
Natty:
Report link

This is currently a feature missing from rocket_ws. There is an open ticket regarding it.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Daniel Walker

79707523

Date: 2025-07-19 19:33:15
Score: 2
Natty:
Report link

Yes, I had the same issue, then i came across this github issue, to simplify the build the Proj4 projection were removed and only the EPSG:4326 and EPSG:3857 projections are supported.

Here is the link of the github issue

http://github.com/mapnik/mapnik-support/issues/17

Reasons:
  • Blacklisted phrase (1): Here is the link
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sparsh Sahu

79707518

Date: 2025-07-19 19:22:13
Score: 1
Natty:
Report link

I tried all the suggestions from that short-lived AI answer and the only thing that ended up working for me was installing Python 3.11 using MacPorts, setting up a Venv and reinstalling all dependencies, now the code works like a charm again.

Wish I knew why my old installation broke when I didn't change any of the code files, but I suspect it has something to do with the packages I installed yesterday when toying around with Flask.

Taught me to use a Venv for different projects.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Sora.

79707513

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

open vscode settings, search for 'exclude', first option will be Files: exclude

or in user settings json file:

    "files.exclude": {
        "**/*.d.ts": true,
    }
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Lex

79707509

Date: 2025-07-19 19:07:08
Score: 6.5
Natty: 5.5
Report link

Did you make any more progress on this?

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: h3xtor

79707500

Date: 2025-07-19 18:57:06
Score: 1.5
Natty:
Report link

After a bit of research, I found this construction:

my ($a, @b, $c);
:($a is copy, @b, $c) := \(42, <a b c>, 42);
$a = 1;
say [$a, @b, $c]; # OUTPUTS: [1 (a b c) 42]

While this is still technically binding, it works the way I wanted — I can reassign $a afterwards.

Unfortunately, this only works without any declarators. If we write my :($a is copy, @b, $c) := \(42, <a b c>, 42);, it throws a Cannot assign to a readonly variable or a value exception when attempting to reassign $a.

Reasons:
  • Blacklisted phrase (1): :(
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: fingolfin

79707494

Date: 2025-07-19 18:49:04
Score: 3.5
Natty:
Report link

Don't run the form while still encountering errors. It seems like it will just display the last stable version.

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

79707484

Date: 2025-07-19 18:40:02
Score: 2.5
Natty:
Report link

template<typename T>

struct Loop {

template<typename U>

struct X{

using type =typename Loop<X>::type;

};

using type = typename X<T>::type;

};

int main()

{

Loop<int>::type;

}

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

79707478

Date: 2025-07-19 18:27:59
Score: 0.5
Natty:
Report link

so we are at expo sdk 51 and not planning to upgrade any sooner.

 [
        "expo-build-properties",
        {
          "android": {
            "compileSdkVersion": 34,
            "targetSdkVersion": 35,
            "buildToolsVersion": "35.0.0",
          }
        }
      ],

will this work for us?

tried the above mentioned answer, but got build error so just making compileSdkVersion:'34' ll work? we are on free eas plan it already takes a long time to start build and i do make direct eas build (no prebuild etc)

{
  "expo": {
    ...
    "plugins": [
      [
        "expo-build-properties",
        {
          "android": {
            "compileSdkVersion": 35,
            "targetSdkVersion": 35,
            "buildToolsVersion": "35.0.0"
          },
        }
      ]
    ]
  }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Md Adnan Sami

79707476

Date: 2025-07-19 18:25:59
Score: 1.5
Natty:
Report link

So apparently, I messed the math up, instead of

(img_tk.width() / int(2) + 1)

I need to add the 2, not width/2, meaning I add to add brackets like this:

(img_tk.width() / (int(2) + 1))
Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Aadvik

79707473

Date: 2025-07-19 18:19:57
Score: 1
Natty:
Report link

Answering as a comment.

I have a .NET 8 API with VueJs frontend using <SpaRoot> setup.

Firstly, check if you're using the SpaRoot in the csproj of the server or not.

The SpaRoot should be pointing to your front end UI folder and there should be an execute command near that SpaRoot element.

You don't need a multi-app start config. When you run the server on its own it should boot up and display "waiting for SPA".

Then VS will run your launch command, think it's default to npm run dev. Where you'll see a console population and build and run the server-host for your UI on a port.

Your page is displaying at your API port and will redirect to the port your UI is at.

If you get debug port errors, could be a config issue or port mismatch in launch settings json and/or your front-end thing.config.json AND csproj Spa settings.

If all else fails, check port availability incase somthing is using it. It happens sometimes.

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

79707470

Date: 2025-07-19 18:12:56
Score: 1
Natty:
Report link

Aha! I found the problem. The actual problem was not the units, it was the range() function. I forgot that range() actually didn't include the final number. To solve it, I replaced

range(1, int(2)+1)

with

range(1, int(2)+2)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Aadvik

79707468

Date: 2025-07-19 18:11:55
Score: 4
Natty:
Report link

The RS232 pins can be easily accessed for both reading and writing. See the following example.

enter image description here

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

79707460

Date: 2025-07-19 17:52:51
Score: 0.5
Natty:
Report link

@override

Widget build(BuildContext context) {

return Scaffold(

body: Container(

  decoration: BoxDecoration(

    gradient: LinearGradient(

      colors: \[Colors.blue.shade300, Colors.blue.shade900\],

      begin: Alignment.topCenter,

      end: Alignment.bottomCenter,

    ),

  ),

  child: Center(

    child: Padding(

      padding: const EdgeInsets.all(24.0),

      child: Column(

        mainAxisAlignment: MainAxisAlignment.center,

        children: \[

          Text(

            'Versículo do Dia',

            style: TextStyle(

              fontSize: 28,

              color: Colors.white,

              fontWeight: FontWeight.bold,

            ),

          ),

          SizedBox(height: 40),

          Container(

            padding: EdgeInsets.all(20),

            decoration: BoxDecoration(

              color: Colors.white.withOpacity(0.9),

              borderRadius: BorderRadius.circular(20),

            ),

            child: Text(

              versiculoAtual,

              style: TextStyle(

                fontSize: 20,

                fontStyle: FontStyle.italic,

                color: Colors.black87,

              ),

              textAlign: TextAlign.center,

            ),

          ),

          SizedBox(height: 30),

          ElevatedButton.icon(

            onPressed: gerarVersiculo,

            icon: Icon(Icons.refresh),

            label: Text('Novo Versículo'),

            style: ElevatedButton.styleFrom(

              backgroundColor: Colors.white,

              foregroundColor: Colors.blueAccent,

            ),

          ),

        \],

      ),

    ),

  ),

),

);

}

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @override
  • Low reputation (1):
Posted by: Isaque santana da silva Santan

79707453

Date: 2025-07-19 17:45:50
Score: 1
Natty:
Report link

Another thing that i want to suggest.
as you are using "fish" shell..

so try this one time.. see if it's went well or not

"code-runner.executorMap": {
   "python": "source .venv/bin/activate.fish && python"
}
Reasons:
  • Whitelisted phrase (-1): try this
  • RegEx Blacklisted phrase (1): i want
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Abhinandan M.

79707452

Date: 2025-07-19 17:42:50
Score: 1
Natty:
Report link

You don’t need to retrain your entire model to adapt it to each user’s gesture style. A common approach is to collect a few samples of the user’s swipe gestures (e.g., 10–20 during a calibration step) and use these to fine-tune the detection threshold or train a small classifier on top of your pre-trained model’s embeddings.

For example:

  1. Use your current model as a feature extractor.

  2. Capture user-specific gesture data and adjust the decision threshold based on the model’s confidence scores.

  3. If you need better accuracy, train a lightweight classifier (like logistic regression or SVM) on-device using the captured embeddings.

Frameworks like TensorFlow Lite or Core ML allow on-device personalization, so you can adapt without redeploying the entire model. If on-device retraining isn’t possible, you can collect user data (with consent) and periodically fine-tune the model server-side.

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

79707437

Date: 2025-07-19 17:27:46
Score: 1
Natty:
Report link
from collections import deque
def reverse_lines(filename):
  try:
    with open(filename,'r') as f:
      lines = deque()
      for line in f:
        lines.append(line)
      while lines:
        yield lines.pop()
  except FileNotFoundError:
    print("File not found")

for line in reverse_lines(r'/content/example.txt'):
  print(line)
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user31090286

79707435

Date: 2025-07-19 17:23:45
Score: 4.5
Natty: 5
Report link

The following blog post is on chunk parallel download of files using Python and curl:

https://remotalks.blogspot.com/2025/07/download-large-files-in-chunks_19.html

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Guest

79707426

Date: 2025-07-19 17:15:43
Score: 1
Natty:
Report link

i think this does not work now as text.legnth i am getting 0

import { YoutubeTranscript } from "youtube-transcript";

var transcript_obj = await YoutubeTranscript.fetchTranscript("_cY5ZD9yh2I");

const text = transcript_obj.map((t) => t.text).join(" ");
console.log(text);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Harshit Agrawal

79707415

Date: 2025-07-19 17:00:40
Score: 2
Natty:
Report link

a. const should be let
b. greeting === undefined
c. "${this.greeting} ${this.name}" should be `${this.greeting} ${this.name}`

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

79707409

Date: 2025-07-19 16:49:37
Score: 0.5
Natty:
Report link

domain="[('id', 'in', duplicate_ids)]"

duplicates = self.env['hr.applicant'].with_context(active_test=False).search(domain)

Ensure the widget context does not override active_test=False implicitly. Currently, your field looks like this<field name="selected_duplicate_id" widget="many2one" options="{'no_create': True, 'no_open': True}" context="{'active_test': False, 'hr_force_show_archived': True, 'search_default_duplicates': True}" domain="[('id', 'in', duplicate_ids)]" class="oe_inline w-100"/>

You are very close — your backend logic is correct. The final fix likely lies in ensuring the context is properly passed into name_search() from the form, and confirming that duplicate_ids truly includes inactive records at runtime.

Would you like help checking your _get_similar_applicants_domain() method too? Sometimes the filter (‘active’, ‘in’, [True, False]) might be missing there.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: hema kukalakuntla

79707390

Date: 2025-07-19 16:19:31
Score: 1
Natty:
Report link

The Yeray's solution above is good enough for a bar chart but not suitable for a line chart where working series (lines) might have zero value.

In that case, when using OnAfterDraw, the working line series are hidden by the customdrawn horizontal line.

In my case I actually needed a solution for a line chart. For this, the best solution seems to be to use the OnBeforeDrawSeries event instead. The remaining code is the same.

If anyone uses the TaChart component in Lazarus instead of TeeChart in Delphi, the approach there is similar. But because OnBeforeDrawSeries event is missing in TaChart, OnAfterCustomDrawBackWall appears to be the best to do the job.

Another possible solution which I've found myself in the meantime is to use a dummy zero line series.

Another solutions specific for TaChart might be available in the Lazarus forum where I asked the same question:
TAChart how to make different width and/or color only for a specific grid line

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

79707389

Date: 2025-07-19 16:19:31
Score: 0.5
Natty:
Report link

Good day.
(Sorry, my eng not very good)

According to the GitHub issue(#395 and #272), this problem can be solved using this method

Solution:

Change param in Default Settings (JSON)


"code-runner.executorMap": { ... "python": "$pythonPath -u $fullFileName" ... }

You can set a static path to your Python from the virtual environment. And on the next run, the logic will be as in the screenshot below. (This way you won't encounter the error)

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Blacklisted phrase (1): Good day
  • Whitelisted phrase (-2): Solution:
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sindik

79707371

Date: 2025-07-19 15:58:26
Score: 0.5
Natty:
Report link

Could not build wheels for ____ which use PEP 517 and cannot be installed directly

Don’t worry — it usually just means pip is having trouble building the package. A simple way to fix it is to force pip to install from source instead of using a wheel. Just run:

pip install <package-name> --no-binary :all:

This tells pip:

pip install setuptools wheel build

That’s it. This method is totally normal, especially for packages with native code or special build steps.


If this helped you, please upvote — it might help someone else too! 👍

Reasons:
  • Blacklisted phrase (0.5): upvote
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rishabh Chauhan

79707360

Date: 2025-07-19 15:44:22
Score: 4.5
Natty: 5
Report link

The following blog post is on chunk parallel download of files using Python and curl:

https://remotalks.blogspot.com/2025/07/download-large-files-in-chunks_19.html

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Guest

79707358

Date: 2025-07-19 15:41:21
Score: 1.5
Natty:
Report link

You need to add this to your manifest.json file

"web_accessible_resources": [
    {
      "resources": ["page.html"],
      "matches": ["http://YourUrl/*"]
    }
  ],
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: mohanad alaa

79707355

Date: 2025-07-19 15:34:20
Score: 2
Natty:
Report link
I am wondering is this can be used to implement environmental separation inside the same datatabase, like:

dev.customers
qas.customers
prd.customers

If a user logos on the QAS environment, I would just run:
ALTER USER [yourUser] WITH DEFAULT_SCHEMA = qas;

and then the user will run the app using a test dataset. 

Is this a good idea or am I utterly mistaken ?
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: VictorEspina

79707350

Date: 2025-07-19 15:13:15
Score: 2.5
Natty:
Report link

Okay I am stupid and I got screwed up by pointer arithmetic because buffer is int16_t changed it to void*, worked flawlessly

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: God I Am Clown

79707343

Date: 2025-07-19 15:07:14
Score: 4.5
Natty:
Report link

I have the same issue.. Actually it is not working at all.
Strange thing is I was using https://github.com/StefH/McpDotNet.Extensions.SemanticKernel

await _kernel.Plugins.AddMcpFunctionsFromSseServerAsync("McpServer", new Uri(url), httpClient: _httpClient);

And that worked fine. I wanted to switch to the native SK code but now it does not work anymore.

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same issue
  • Low reputation (1):
Posted by: Michel Schep

79707335

Date: 2025-07-19 14:51:10
Score: 3
Natty:
Report link

This should cover what you want to know. Was introduced in 8.1 first class callable syntax.

https://www.php.net/manual/en/functions.first_class_callable_syntax.php

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

79707332

Date: 2025-07-19 14:47:09
Score: 7.5
Natty: 5
Report link

Having the same issue. Have you had a luck solving this?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): Having the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Jiri Formacek

79707331

Date: 2025-07-19 14:47:09
Score: 3
Natty:
Report link

In my case, I just need to update my version from 18 to 20 and then simply restart and run from basic to npm run dev.

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

79707323

Date: 2025-07-19 14:40:07
Score: 2.5
Natty:
Report link

Make sure to use the same exact casing on the mode name when you use --mode. I ran vite with --mode "Development" when instead my file is .env.development

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

79707322

Date: 2025-07-19 14:39:07
Score: 2
Natty:
Report link

If your Fedora VM freezes during startup, it could be due to over-allocating resources 10 GB RAM and 2×6 CPUs might be pushing your host too hard, even with 32 GB total. Check for host system bottlenecks like CPU or disk I/O, and make sure VMware tools and Fedora packages are up to date. Also, look into guest OS logs for any driver or service hiccups. Try reducing VM specs or booting from a fresh ISO to rule out corruption.

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

79707321

Date: 2025-07-19 14:37:06
Score: 7.5
Natty: 7
Report link

This code does't work on MacOS 15.5, xcode 16.6

I tried many methods, but none of them worked properly.

I don't know how BetterTouchTool is implemented. Does anyone know?

Thanks,

Regards!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): Regards
  • RegEx Blacklisted phrase (2): Does anyone know
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Nolar Wills

79707314

Date: 2025-07-19 14:24:03
Score: 3
Natty:
Report link

If you are running a script file (ex: rush.scpt or rush.app) using Automator.App, all those solutions will return as name: "Automator.app"! Not the name of the script file itself, ex: "rush.scpt" or "rush.app" or "rush.workflow"...

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

79707309

Date: 2025-07-19 14:16:01
Score: 1.5
Natty:
Report link

In my case, when Resource Not Found appeared in the browser, the problem was the path to the build folder, in the quarkus.quinoa.build-dir property, it previously had the value dist/, so I put dist/angular and it worked. (I use version 19 of Angular)

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Eduardo Hilário

79707299

Date: 2025-07-19 14:03:59
Score: 4
Natty:
Report link

but it removes the reveal brush effect

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

79707283

Date: 2025-07-19 13:38:53
Score: 1
Natty:
Report link

I usually delete DAG from Airflow UI itself. You can open your DAG and top right side you will see delete option to remove your DAG from UI. It won't actually delete from your DAG folder.
Also you might see DAG in UI list event after deletion because Airflow runs the refresh cycle periodically after which it will removed from the UI list

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

79707278

Date: 2025-07-19 13:29:50
Score: 1.5
Natty:
Report link

Yes, this is definitely possible, but there are a few tricky parts to get right.
To fix this, you can run the child process and listen to its output on a separate thread. Then, send those outputs through a channel and print them in your main thread before you call readline() again. Here's a working example using Python as the child REPL:

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Harsha Sinha

79707276

Date: 2025-07-19 13:26:50
Score: 0.5
Natty:
Report link

The answer by @Chip Jarred did not work for me on macOS 15.5 Sequoia. None of the Dock windows have a "Fullscreen Backdrop" kCGWindowName.

What worked for me was the simple check for multiple Dock windows that have a negative (around MIN_INT64) value as kCGWindowLayer. If there are more than one of those Dock windows, the app is running in fullscreen:

func isFullScreen() -> Bool {
    guard let windows = CGWindowListCopyWindowInfo(.optionOnScreenOnly, kCGNullWindowID) else {
        return false
    }

    var dockCount = 0
    for window in windows as NSArray
    {
        guard let winInfo = window as? NSDictionary else { continue }
        if winInfo["kCGWindowOwnerName"] as? String == "Dock"
        {
            let windowLayer = winInfo["kCGWindowLayer"]
            if let layerValue = windowLayer as? Int64, layerValue < 0 {
                dockCount += 1
                if dockCount > 1 {
                    return true
                }
            }
        }
    }
    
    return false
}
Reasons:
  • Blacklisted phrase (1): did not work
  • Whitelisted phrase (-1): worked for me
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Chip
  • Low reputation (1):
Posted by: oli0060

79707259

Date: 2025-07-19 13:09:45
Score: 1
Natty:
Report link

I saw this error when running Kafka in ubuntu app inside Windows OS and trying to connect my application from Windows to connect running Kafka server. it was failing to connect.

When running my application from Ubuntu app inside Windows OS and trying to connect Kafka server, it connects successfully and the error was gone

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Yahia El-Tayeb

79707257

Date: 2025-07-19 13:04:44
Score: 1
Natty:
Report link

I saw this error when running Kafka in ubuntu app inside Windows OS and trying to connect my application from Windows to connect running Kafka server. it was failing to connect.

When running my application from Ubuntu app inside Windows OS and trying to connect Kafka server, it connects successfully and the error was gone

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Yahia El-Tayeb

79707255

Date: 2025-07-19 12:58:42
Score: 1.5
Natty:
Report link

WARNING: This is a development server. Do not use it in a production setting. Use a production WSGI or ASGI server instead.

For more information on production servers see: https://docs.djangoproject.com/en/5.2/howto/deployment/

[19/Jul/2025 17:46:18] "GET / HTTP/1.1" 200 12068

[19/Jul/2025 18:15:04] "GET / HTTP/1.1" 200 12068

Not Found: /favicon.ico

[19/Jul/2025 18:15:06] "GET /favicon.ico HTTP/1.1" 404 2216

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hari Krishnan

79707253

Date: 2025-07-19 12:54:42
Score: 0.5
Natty:
Report link

You can use aiogram-dialog, brilliant library to manage all this underneath menu logic.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: a0s

79707251

Date: 2025-07-19 12:53:41
Score: 2
Natty:
Report link

I found the following link on how to use threading with the Pika library on GitHub.

https://github.com/pika/pika/blob/main/examples/basic_consumer_threaded.py

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Muhammad Faizan Fareed

79707249

Date: 2025-07-19 12:52:41
Score: 1
Natty:
Report link

This can happen when you have enabled a proxy in Insomnia.

Insomnia Proxy settings

It would be nice if Insomnia have an indicator in the interface, showing that a proxy is being used.

Something so small thing, can save a lot of frustration :-)

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

79707248

Date: 2025-07-19 12:50:41
Score: 1
Natty:
Report link

It’s possible they started using Azure Load Balancer internally as part of an architectural change. This might be for scaling ingestion endpoints, handling control plane traffic, or improving internal traffic routing. Unfortunately, there doesn’t seem to be any official documentation or announcements about this.

If you’re trying to dig deeper, a few things that might help:

  1. Activity Logs: Check the Azure Activity Logs in the resource group to see if any backend resources are being provisioned or associated with the cluster.

  2. Network Watcher: If enabled, use it to inspect traffic flows and confirm what’s going through the Load Balancer.

If it’s driving up costs, and you're not explicitly using a load balancer in your design, it’s definitely worth raising with support to see if there's an optimization or config workaround.

Would be great to hear what you find out.

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

79707245

Date: 2025-07-19 12:48:40
Score: 1.5
Natty:
Report link

I am in the same situation. I need to limit the consumption speed of my Kafka consumer as the external financial API I am calling from the consumer has a rate limit setting. Plus the rate limit in my case can be different per data type.

Based on this thread, I am thinking to implement the following pattern:

  1. set max.poll.records to one (1). I think I don't need to tune other Kafka parameter.

  2. Create a counter in a distributed cache (e g. Hazelcast) where I save the timestamp of the 1st message that I have been received and the counter of the received msg from that time. I need to save it in a distributed cache as I use microservice architecture and I can have multiple Kafka consumer groups attached to the same topic.

  3. Let's say external API can handle 3 request per a second.

  4. Kafka consumers consume quickly that 3 messages and then the counter state in hazelcast shows 3.

  5. After receiving the 3rd message, the Kafka consumer pauses itself before starts processing the received message. At the same time with the pause I start a sprint timer with waiting for 1 second as this is the rate limit definition. Timer schedule can depend on the data type and can be read runtime from the spring property file

  6. Then when the timer fires after 1 second, it resumes the Kafka consumer.

I think this process can work. Concurrency of Kafka consumers+ different rate limit per data type can complicate the data that I need to keep in the distributed cache, but not super hard to manage it properly.

I think this way I can limit the speed of the calls of the external API. Plus if the rate limit is 3 request per one second then the 1st three data will be served quickly and then consumer(s) will wait 1 second, then continue to listen for the next data from Kafka.

I am not implemented this yet, but I will to do it soon.

I think it can work. Any thoughts are appreciated.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1.5): Any thoughts
  • Blacklisted phrase (2): I am in the same situation
  • Long answer (-1):
  • Has code block (-0.5):
  • High reputation (-2):
Posted by: zappee

79707242

Date: 2025-07-19 12:44:39
Score: 0.5
Natty:
Report link

I actually had the same issue a while back when I was trying to switch from my old Gmail account to a new one. I wanted everything to move with labels intact, and doing it manually via forwarding or IMAP was just super messy and time-consuming.

If you're wondering how to download old emails from Gmail and move them over with all the original labels, I'd recommend using a tool like Email Backup Wizard. It lets you download all your old emails locally and then import them into another Gmail account. The best part? It preserves labels during the transfer, which was a game-changer for me.

Hope this helps! Let me know if you need a quick step-by-step I still have the process noted down somewhere. 😊

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Clair Dunphy

79707240

Date: 2025-07-19 12:42:39
Score: 1.5
Natty:
Report link

application ()

A high-level function.

Automatically starts the Compose event loop.

You define your UI (e.g., Window {}) inside the block.

The app exits automatically when all windows are closed.

Ideal for simple apps.

awaitApplication ()

A suspend function — gives more control over the app lifecycle.

You need to manually call exitApplication() to terminate the app.

Useful when you need to suspend main(), perform async setup, or manage multiple windows manually.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Porendla Manoj

79707237

Date: 2025-07-19 12:37:38
Score: 2
Natty:
Report link

in Js exist standard method for local dates. toLocaleDateString().
for persian Jalali calendar is like
yourDate.toLocaleDateString("fa-ir");

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

79707235

Date: 2025-07-19 12:30:37
Score: 1.5
Natty:
Report link

A sudden jump in Flutter app bundle size from 19.4MB to 139MB usually means new dependencies or assets were added, or build settings changed. Check for large assets, added packages, or debug vs. release build differences. Running flutter build apk --release --split-per-abi can help reduce size by generating separate APKs per architecture. Visit Base Bridge

https://basebridge.org

Reasons:
  • Contains signature (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Base Bridge

79707231

Date: 2025-07-19 12:25:35
Score: 0.5
Natty:
Report link

I was able to do this for buttons with a FlowRow parent with

FlowRow (
    horizontalArrangement = Arrangement.spacedBy((-1).dp),
) {
    // Buttons here
}

For my 1.dp borders, this works excellently and is about as simple as I believed this task would be.

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

79707230

Date: 2025-07-19 12:25:35
Score: 1
Natty:
Report link

Got errors "failed to open stream: No such file or directory" and "The file or directory is not a reparse point. (code: 4390)" for file, file_get_contents, scandir, etc.. Long story short, the script and the file to be read were both in the same Dropbox directory.

I didn't try to 'solve' the problem, maybe this could be made to work in the Dropbox framework. I just moved the project out of DropBox, now it works as expected.

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