79517049

Date: 2025-03-18 10:22:40
Score: 1.5
Natty:
Report link

Simple declarations will cause no issue. It's good practice as long as those declarations are not stateful object that need proper disposal.

Also because of a function like the build method might be called frequently, you should avoid expensive computations there.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Daniel Onadipe

79517042

Date: 2025-03-18 10:19:39
Score: 2
Natty:
Report link

What android API version you testing at? Outline class has method canClip() defining whether the outline can be used to clip a view. And it says As of API 33, all Outline shapes support clipping. Prior to API 33, only Outlines that could be represented as a rectangle, circle, or round rect supported clipping. So there is no way to clip view to path on pre-33 API without creating custom view

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: HukuToc2288

79517040

Date: 2025-03-18 10:19:39
Score: 2
Natty:
Report link

The default value of the scatter function of the Axes3D class (which gets called in this case) is 20. However 20 is also the default value if s is None in the Axes class (in normal mode). So when you set it to None in 3d mode, it will not get a default value and raises an error.

Axes3d:

 def scatter(self, xs, ys, zs=0, zdir='z', s=20, c=None, depthshade=True,
                *args, **kwargs)

Axes:

def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
                vmin=None, vmax=None, alpha=None, linewidths=None, *,
                edgecolors=None, plotnonfinite=False, **kwargs)

I'm not sure how I could provide a solution, since not using the parameter would use default behavior. What would you want to achieve by setting it to None?

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

79517018

Date: 2025-03-18 10:11:37
Score: 1.5
Natty:
Report link

It seems you're using CMake.

Check out the docs : Do you have

find_package(Qt6 REQUIRED COMPONENTS Widgets)
target_link_libraries(mytarget PRIVATE Qt6::Widgets)

in your CMakeLists.txt ?

If you have this but still can't compile, the issue might be with your PATH variable.

Try reinstalling and / or manually adding your dependencies to your PATH if not done automatically. This blog post might help you.

To check your paths, try to set the debug option in CMake :

set(CMAKE_FIND_DEBUG_MODE 1)
find_package(Qt6 COMPONENTS Core Gui Widgets REQUIRED)
set(CMAKE_FIND_DEBUG_MODE 0)
Reasons:
  • Blacklisted phrase (1): This blog
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Ashley

79517012

Date: 2025-03-18 10:09:37
Score: 1.5
Natty:
Report link

Pandas DataFrames have an itertuples method that returns a generator of named tuples. The named tuples have an _asdict() method. So you can get a generator of rows as dictionaries with:

row_generator = (row._asdict() for row in df.itertuples())

References:

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dr John A Stevenson

79517011

Date: 2025-03-18 10:08:36
Score: 1.5
Natty:
Report link
import { createRequire } from "module";
const require = createRequire(import.meta.url);

const jsonData = require("../file.json");
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: jibran khalil

79516987

Date: 2025-03-18 09:59:34
Score: 0.5
Natty:
Report link

I think it will be hard to get a good answer to this here, I would recommend posting this on the image.sc forum as it's more image-related.
It looks like phase correlation may give better results. If you want to stick with features you can also try skimage package SIFT() or ORB() that allow better parameterisation. In general for low contrast apply normalisation, for noise reduction apply Gaussian blur or scale down. The feature keypoint detection methods actually already include some of this functionality internally.

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

79516985

Date: 2025-03-18 09:59:34
Score: 2
Natty:
Report link

One way I think of it is simple:
Service A provides an API: /check_token, Service B adds an Interceptor to intercept all requests, and then calls Service A's API to verify and obtain permissions

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

79516972

Date: 2025-03-18 09:56:33
Score: 4
Natty:
Report link

Step1: Go Home - Front Page = > Edit

enter image description here

Step2: Select Rank Math SEO => Click on Edit Snippet

enter image description here

Step3: Delete %title% %sep%

Step4 Save is done

enter image description here

For more: https://hort51.com/

Or email to me by: [email protected]

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Frank Blanding

79516969

Date: 2025-03-18 09:54:33
Score: 0.5
Natty:
Report link

I'd recommend trying VIDEX (Virtual Index for MySQL), which you can find on GitHub at https://github.com/bytedance/videx. It's an open-source project that introduces hypothetical index support to MySQL, similar to PostgreSQL's HypoPG.

VIDEX works by introducing a new storage engine that intercepts optimizer requests for statistics such as table rows, ndv (number of distinct values), and cardinality. These requests are then redirected to a Python-based statistics service. Although VIDEX is still in the early stages as an open-source project, it has shown promising results in benchmarks like TPC-H and JOB. With the oracle NDV and cardinality provided, the VIDEX query plan achieves 100% identity with that of InnoDB.

Additionally, VIDEX offers interfaces for NDV and cardinality estimation. If you are comfortable with Python, you can extend or reimplement these algorithms as needed.

For ease of use, you can try out VIDEX using Docker or by compiling it from source. It can be deployed either as a plugin or as a separate instance to ensure it does not impact your production environment.

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

79516963

Date: 2025-03-18 09:52:32
Score: 3.5
Natty:
Report link

Things are moving on towards application/openapi+yaml and application/openapi+json.

See https://datatracker.ietf.org/doc/draft-ietf-httpapi-rest-api-mediatypes/

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

79516962

Date: 2025-03-18 09:52:32
Score: 1
Natty:
Report link

To the Inbox component, adding socketUrl does the job. I can now receive real-time notifications with this

<Inbox
  socketUrl="https://eu.ws.novu.co"
  backendUrl="https://eu.api.novu.co"
  applicationIdentifier="APP_ID"
  subscriberId="SUBSCRIBER_ID"
>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Sarmad

79516956

Date: 2025-03-18 09:50:31
Score: 1
Natty:
Report link

It may be related to how you initialise the Dash app. On my end, the plot displays correctly when I structure like this.

import dash
from dash import dcc, html

# Initialize Dash app
app = dash.Dash(__name__)

app.layout = html.Div(children=[
    html.H1("SCP Containment Class Distribution"),
    dcc.Graph(id="scp_chart", figure=fig)
])

if __name__ == "__main__":
    app.run(debug=True)

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: nrmzmh

79516954

Date: 2025-03-18 09:50:31
Score: 0.5
Natty:
Report link

The problem is that youre subscribing multiple times and not waiting for the subscription to be ready before fetching the data. To fix this, you only need to subscribe once in componentDidMount and check if the subscription is ready using ready(). Then, you can use Tracker.autorun() to reactively fetch and update the messages when they change.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: haakonsollund

79516952

Date: 2025-03-18 09:50:31
Score: 1
Natty:
Report link

For Ruby to handle MS Excel issue with UTF encoding for German characters I used this approach:

UTF8_BOM = "\uFEFF".freeze
def to_csv
  CSV.generate(headers: true) do |csv|
    csv << csv_headers
    csv << csv_data
  end.prepend(UTF8_BOM)
end
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yaroslav Yenkala

79516942

Date: 2025-03-18 09:46:30
Score: 3.5
Natty:
Report link

What was if we need to show multiple line curve. And is any same solution with TextRenderer method.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What was
  • Low reputation (1):
Posted by: Krutik Dobariya

79516930

Date: 2025-03-18 09:42:29
Score: 4.5
Natty:
Report link

The sync response returned availableThermostatModes as a string, which is deprecated according to this documentation. I also found this sync validator which helped me identify the problem.

Reasons:
  • Blacklisted phrase (1): this document
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mattijs Lootens

79516927

Date: 2025-03-18 09:42:29
Score: 4
Natty:
Report link

Found a reasonable solution for my specific use case thanks to @dazwilkin - I can share a document or folder with a service account through its email in the same way I would share with a human. Other use cases might require domain wide delegation.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @dazwilkin
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Rainbow-Anthony Lilico

79516922

Date: 2025-03-18 09:41:28
Score: 2
Natty:
Report link

Tag handlers build the view. They don't render the view. Use a Renderer instead, usually in combination with an UI component. Or simply use a tag file (with JSTL), especially as you ultimately don't seem to want to use UI components.

See also:

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: BalusC

79516921

Date: 2025-03-18 09:41:28
Score: 0.5
Natty:
Report link

I have the same issue. I need to know if the new version of the app is published when I publish the app from the developer console. I have to do some automation. Unfortunately, there is no Official API to fetch the live app version for Android. I use Unity and I need to work in Unity Editor. AppUpdateManager from Android only works on Android Builds.

I solved this issue currently, but it might be changed in the future. It takes the latest version from the App Store and Play Store. You need to have Selenium.WebDriver NuGet Package for this to work. You can use this NuGet Package to install it. Also, you need to pass something like “com.company.project” to the methods below to work.

You have to download ChromeDriver for Windows. Extract the .zip file. Then copy and paste .exe into your project somewhere. In this way, you don’t have to use Selenium-Manager to automatically download the ChromeDriver. You would need to put Selenium-Manager in your Environment PATH and in your Unity Editor tools directory for it. Giving the ChromeDriver path much more convenient and easier.

private static void GetLatestVersionFromAppStore(string bundleId, Action<string> onCompleted)
{
    UnityWebRequest request = UnityWebRequest.Get($"https://itunes.apple.com/lookup?bundleId={bundleId}");
    
    request.SendWebRequest().completed += operation =>
    {
        if (request.result != UnityWebRequest.Result.Success)
        {
            onCompleted?.Invoke(string.Empty);
            return;
        }
        
        string json = request.downloadHandler.text;
        var parsedJson = JsonUtility.FromJson<AppStoreResponse>(json);
        onCompleted?.Invoke(parsedJson.results.Length > 0 ? parsedJson.results[0].version : string.Empty);
        request.Dispose();
    };
}

private static string GetLatestVersionFromPlayStore(string packageName)
{
    string url = $"https://play.google.com/store/apps/details?id={packageName}&hl=en";
    var options = new ChromeOptions();
    options.AddArgument("--headless");

    string[] guids = AssetDatabase.FindAssets("chromedriver t:DefaultAsset");

    string chromeDriverPath;
    if (guids.Length > 0)
        chromeDriverPath =
            AssetDatabase.GUIDToAssetPath(guids.Find(x => AssetDatabase.GUIDToAssetPath(x).Contains(".exe")));
    else
        chromeDriverPath = string.Empty;

    using (var driver = new ChromeDriver(chromeDriverPath, options))
    {
        driver.Navigate().GoToUrl(url);
        
        var button = driver.FindElement(By.XPath("//button[i[contains(@class, 'google-material-icons') and text()='arrow_forward']]"));
        button.Click();

        var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10));
        
        var isPageLoaded = wait.Until(drv =>
        {
            ReadOnlyCollection<IWebElement> webElements = drv.FindElements(By.ClassName("G1zzid"));
            
            bool areAllElementsDisplayed = webElements.All(element => element.Displayed);
            
            return areAllElementsDisplayed && (bool)((IJavaScriptExecutor)drv).ExecuteScript(
                "return document.readyState == 'complete'");
        });

        var upperElements = driver.FindElements(By.ClassName("q078ud"));
        var lowerElements = driver.FindElements(By.ClassName("reAt0"));
        
        Dictionary<string, string> elements = new Dictionary<string, string>();

        for (int i = 0; i < upperElements.Count; i++)
            elements[upperElements[i].Text] = lowerElements[i].Text;
        
        return elements.GetValueOrDefault("Version", string.Empty);
    }
}
Reasons:
  • Blacklisted phrase (1): I have to do
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): I have the same issue
  • Whitelisted phrase (-2): I solved
  • Whitelisted phrase (-1.5): You can use
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same issue
  • Low reputation (0.5):
Posted by: DeathPro

79516917

Date: 2025-03-18 09:39:28
Score: 3.5
Natty:
Report link

Right click on tab. Option near the foot of the context menu: "Copy into new window".

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

79516916

Date: 2025-03-18 09:39:28
Score: 3
Natty:
Report link

According to the answers here: Is it possible to seamlessly redirect websockets? You can do a redirect, but there is no guarantee that the client will follow it. I know that the thread is about nodejs implementation, but the specification of Websocket, that is mentioned is the same, no matter the server's language implementation.

Reasons:
  • Blacklisted phrase (1): Is it possible to
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Marian Vigenin

79516910

Date: 2025-03-18 09:36:27
Score: 2.5
Natty:
Report link

its work for me <p-datePicker formControlName="dateImputation" dateFormat="dd/mm/yy" [style]="{'width':'100%'}" [panelStyle]="{'height':'69%'}"appendTo="body">

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

79516900

Date: 2025-03-18 09:33:26
Score: 3
Natty:
Report link

I just realized that replace(...) is case sensitive and made it work with a ToLower(...) conversion

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Laviza Falak Naz

79516897

Date: 2025-03-18 09:32:26
Score: 2.5
Natty:
Report link

If your Power Automate Replace expression isn’t working, double-check the syntax and confirm you're using the correct input values. Try using simple static text to test the function first. rslhelper suggests ensuring there are no extra spaces or mismatched quotation marks in your expression.

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

79516890

Date: 2025-03-18 09:27:25
Score: 4.5
Natty:
Report link

As far as I know, the doc you use here seems a little old, which is talking about IE based taskpane. Could you let us know your environment details?
Ideally, after your configuration on shared runtime, and open the taskpane. You will find "attach debugger" here and find functions.js inside your add-in resource.
enter image description here

Reasons:
  • RegEx Blacklisted phrase (2.5): Could you let us know your
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: SiruiMSFT

79516888

Date: 2025-03-18 09:26:24
Score: 1.5
Natty:
Report link

Turns out it was really simple - just disable the App Sandbox in the .entitlements - you live & learn

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

79516881

Date: 2025-03-18 09:23:24
Score: 1.5
Natty:
Report link

There is a https://amber-lang.com/ that compiles to bash.

A modern, type-safe programming language that catches bugs and errors at compile time.

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

79516880

Date: 2025-03-18 09:22:24
Score: 2
Natty:
Report link

We start by fetching the list of paths from Excel. If you already have them in flow, good. if not, use this function to fetch the paths.

here's what my excel looks like:

enter image description here

fetch all rows:

enter image description here

Then, use 'Get content by Path' by sharepoint to fetch content for each file and push to your attachments array.

enter image description here

Add to array:

enter image description here

Then add the variable to the email:

enter image description here

Here's the final email:
enter image description here

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Laviza Falak Naz

79516876

Date: 2025-03-18 09:20:23
Score: 3
Natty:
Report link

There is a site called iSports API that also provides sports data and odds API. It's easy to implement and affordable. Perhaps you can try

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

79516873

Date: 2025-03-18 09:19:23
Score: 1.5
Natty:
Report link

In my case, the entity I was adding had properties that could not be serialized.

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

79516872

Date: 2025-03-18 09:19:23
Score: 2
Natty:
Report link

I was issuing /ping whereas /ping and /sping are reserved endpoints for api gateway, thus always anwsering with healthy...

Attacking any other endpoint works good, segregating by certs and allowing/denying if a cert comes from trusted CA.

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

79516863

Date: 2025-03-18 09:14:20
Score: 6.5 🚩
Natty: 4.5
Report link

In my case, this happens when I'm using ${} for concatenating variables into strings multiple times in the code. I know that this thread was posted some time ago, but because I'm still encounter this problem, did you found a solution to this?

Reasons:
  • RegEx Blacklisted phrase (3): did you found a solution to this
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Alex M.

79516858

Date: 2025-03-18 09:11:19
Score: 3.5
Natty:
Report link

Could i ask if you found how to fix this issue because i am facing the same exact issue for a couple of days and i cant fix it. i even tried installing msp430 myself and tried to ask chat gpt for help but nothing works

Reasons:
  • Blacklisted phrase (1): but nothing work
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Hassan

79516845

Date: 2025-03-18 09:03:17
Score: 1
Natty:
Report link

Change your proxy format as

http://user:password@ip:port or username:password@ip:port

Or test if your proxy works well using this tool

https://hide.mn/en/proxy-checker/

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

79516841

Date: 2025-03-18 09:02:17
Score: 0.5
Natty:
Report link

Incorrect PHP Usage in Mustache: <?php echo {{adescription}}; ?> is not valid because Mustache does not interpret PHP

<div>
  <label class="col-sm-2" for="description">Article description:</label>
  <br>
  <textarea  name="description" rows="8" cols="45"> {{adescription}}</textarea>
</div> 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Anilkumar Kalyane

79516819

Date: 2025-03-18 08:50:14
Score: 2
Natty:
Report link

I have the same issue. I need to know if the new version of the app is published when I publish the app from the developer console. I have to do some automation. Unfortunately, there is no Official API to fetch the live app version for Android. I use Unity and I need to work in Unity Editor. AppUpdateManager from Android only works on Android Builds.

I solved this issue currently, but it might be changed in the future. It takes the latest version from the App Store and Play Store. I solved this in C# .Net Project. You need to have Newtonsoft.Json and Selenium.WebDriver NuGet package for this to work. Also, you need to pass something like "com.company.project" to the methods below to work.

using System.Collections.ObjectModel;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Support.UI;
using Newtonsoft.Json.Linq;

private static async Task<string> GetLatestVersionFromAppStore(string bundleId)
{
    using (HttpClient client = new HttpClient())
    {
        string url = $"https://itunes.apple.com/lookup?bundleId={bundleId}";
        string response = await client.GetStringAsync(url);
        JObject json = JObject.Parse(response);
        string version = json["results"]?[0]?["version"]?.ToString() ?? string.Empty;
        return version;
    }
}

private static string GetLatestVersionFromPlayStore(string packageName)
{
    string url = $"https://play.google.com/store/apps/details?id={packageName}&hl=en";
    var options = new ChromeOptions();
    options.AddArgument("--headless");
    using (var driver = new ChromeDriver(options))
    {
        driver.Navigate().GoToUrl(url);
        
        var button = driver.FindElement(By.XPath("//button[i[contains(@class, 'google-material-icons') and text()='arrow_forward']]"));
        button.Click();

        var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10));
        
        var isPageLoaded = wait.Until(drv =>
        {
            ReadOnlyCollection<IWebElement> webElements = drv.FindElements(By.ClassName("G1zzid"));
            
            bool areAllElementsDisplayed = webElements.All(element => element.Displayed);
            
            return areAllElementsDisplayed && (bool)((IJavaScriptExecutor)drv).ExecuteScript(
                "return document.readyState == 'complete'");
        });

        var upperElements = driver.FindElements(By.ClassName("q078ud"));
        var lowerElements = driver.FindElements(By.ClassName("reAt0"));
        
        Dictionary<string, string> elements = new Dictionary<string, string>();

        for (int i = 0; i < upperElements.Count; i++)
        {
            elements[upperElements[i].Text] = lowerElements[i].Text;
            
            //Console.WriteLine($"{upperElements[i].Text}: {lowerElements[i].Text}");
        }
        
        return elements.GetValueOrDefault("Version", string.Empty);
    }
}
Reasons:
  • Blacklisted phrase (1): I have to do
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): I have the same issue
  • Whitelisted phrase (-2): I solved
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same issue
  • Low reputation (0.5):
Posted by: DeathPro

79516817

Date: 2025-03-18 08:49:14
Score: 1
Natty:
Report link

You can set the highlight color to clear which will not show the yellow markers anymore, but still enable you to add your own marker.

dataSet.highlightColor = UIColor.clear
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: paprika

79516808

Date: 2025-03-18 08:45:12
Score: 5.5
Natty:
Report link

Im having the same error, already tried to install with use_framworks! as the official docs suggests 5 days trying to get it to work with no success. Generally I think the problem is that my project has some native modules that our team created.

Reasons:
  • RegEx Blacklisted phrase (1): Im having the same error
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): having the same error
  • Low reputation (1):
Posted by: Maor Shlomo

79516797

Date: 2025-03-18 08:40:10
Score: 0.5
Natty:
Report link

This is the solution i found.

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

79516796

Date: 2025-03-18 08:40:10
Score: 3.5
Natty:
Report link

Looks like this was a bug. Restarting the PC solves

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Peaky Prodigy

79516793

Date: 2025-03-18 08:40:10
Score: 4.5
Natty:
Report link

Switch to using ZCLI for creating ZenDesk apps rather than using an deprecated version of Ruby - https://developer.zendesk.com/documentation/apps/getting-started/using-zcli/

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dave Russell

79516781

Date: 2025-03-18 08:33:09
Score: 3
Natty:
Report link

I believe that library is no longer maintained, and therefore not compatible with newer versions of RN. I had to remove that library to get my build to work as well.

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

79516779

Date: 2025-03-18 08:32:08
Score: 11.5
Natty: 7.5
Report link

I am having the same problem. Any solutions?

Reasons:
  • Blacklisted phrase (1.5): Any solution
  • RegEx Blacklisted phrase (2): Any solutions?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: sofiene thabet

79516772

Date: 2025-03-18 08:30:07
Score: 0.5
Natty:
Report link

You can’t tell OpenAI’s API "only bill me for a subset of the response." You are billed for every token generated (including tokens you might not end up using). If you truly want only the function call/parsed data, without the extra “explanatory” text, you’ll need to have the model produce fewer tokens in the first place (e.g., by forcing a function call, or by instructing the model to respond with minimal or no text). Merely discarding extra text after the fact does not reduce token usage or cost.

You have two options:

Instruct model to return minimal output

Use function_call feature

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

79516760

Date: 2025-03-18 08:25:06
Score: 1
Natty:
Report link

I am running through the same issue. So, if any is facing the problem, the solution I found, inspired from alexis's one:

  1. In the android emulator, in the settings, switch the Send keyboard shortcuts to to Virtual device.
  2. And also, in the same settings screen, switch on Enforce keycode forwarding.
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nizar Ayed

79516754

Date: 2025-03-18 08:23:06
Score: 2.5
Natty:
Report link

There might be something wrong with your storage account name. Double check that to see if its valid.

Here is some reference: https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftstorage

Also, the storage account name must be globally unique, double check that too.

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

79516751

Date: 2025-03-18 08:22:06
Score: 2
Natty:
Report link

According to the information provided on OFA github(https://github.com/mit-han-lab/once-for-all/tree/master), you can use your own model, but you need to make sure that the way you construct your model conforms to the OFA reading method.

I would recommend modifying it through MobileNetV3(https://github.com/mit-han-lab/once-for-all/blob/master/ofa/imagenet_classification/networks/mobilenet_v3.py) in OFA github.

Please refer to it. Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: CNLiu

79516749

Date: 2025-03-18 08:21:05
Score: 2
Natty:
Report link

The term “library” in Python is a broad concept referring to a collection of reusable code that provides specific functionality. There is no hard rule that says a library must contain multiple modules. If your module (i.e., a single file) encapsulates useful functionality, it qualifies as a library. Many popular libraries available on PyPI are, in fact, single modules. They are designed to be easy to install and use, regardless of the number of files they contain.

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

79516747

Date: 2025-03-18 08:21:05
Score: 0.5
Natty:
Report link

We can fix this by keeping track of the operator for each rule.

const [ruleOperators, setRuleOperators] = useState({});

We can do that by using afterUpdateRuleOperator.queryBuilder

   $('#builder').on('afterUpdateRuleOperator.queryBuilder', (e, rule) => {
       setRuleOperators(prev => ({
          ...prev,
          [rule.id]: rule.operator,
       }));
    });

Then update the rule with previous operator immediately after changing the field using afterUpdateRuleFilter.queryBuilder

   $('#builder').on('afterUpdateRuleFilter.queryBuilder', (e, rule) => {
      const prevOp = ruleOperators[rule.id];

      if (prevOp) {
        rule.operator = prevOp;
        $('#builder').queryBuilder('trigger', 'afterUpdateRuleOperator', rule);
      }
    });
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Abhignya B

79516743

Date: 2025-03-18 08:19:05
Score: 2
Natty:
Report link

I hope you are trying this via Visual Studio and not UI. Visual Studio: create an extension of the form, add SalesTable to datasources with the correct relation. Add the SalesTable.Payment field in the form design and compile.

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

79516740

Date: 2025-03-18 08:17:04
Score: 2
Natty:
Report link

The error indicates that the installation failed because the file is currently in use, which prevents its removal. The "00LOCK" directory is created during package installation to lock files and ensure consistency. If another R session or RStudio window holds this lock, it can interfere with the process. Closing all other R sessions releases the lock, allowing the installation to complete successfully.

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

79516739

Date: 2025-03-18 08:16:04
Score: 1.5
Natty:
Report link

For just moves/synchronise folders/files without manage versioning like 'chezmoi' do by collaboration with git.
Look for 'rsync' it allow synchronize to both directions. I think it more appropriate application.
This is example how use it:
https://www.baeldung.com/linux/synchronize-linux-directories

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

79516737

Date: 2025-03-18 08:15:04
Score: 2
Natty:
Report link

I have the same issue. I need to know if the new version of the app is published when I publish the app from the developer console. I have to do some automation. Unfortunately, there is no Official API to fetch the live app version for Android. I use Unity and I need to work in Unity Editor. AppUpdateManager from Android only works on Android Builds.

I solved this issue currently, but it might be changed in the future. It takes the latest version from the App Store and Play Store. I solved this in C# .Net Project. You need to have Newtonsoft.Json and Selenium.WebDriver NuGet package for this to work. Also, you need to pass something like "com.company.project" to the methods below to work.

using System.Collections.ObjectModel;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Support.UI;
using Newtonsoft.Json.Linq;

private static async Task<string> GetLatestVersionFromAppStore(string bundleId)
{
    using (HttpClient client = new HttpClient())
    {
        string url = $"https://itunes.apple.com/lookup?bundleId={bundleId}";
        string response = await client.GetStringAsync(url);
        JObject json = JObject.Parse(response);
        string version = json["results"]?[0]?["version"]?.ToString() ?? string.Empty;
        return version;
    }
}

private static string GetLatestVersionFromPlayStore(string packageName)
{
    string url = $"https://play.google.com/store/apps/details?id={packageName}&hl=en";
    var options = new ChromeOptions();
    options.AddArgument("--headless");
    using (var driver = new ChromeDriver(options))
    {
        driver.Navigate().GoToUrl(url);
        
        var button = driver.FindElement(By.XPath("//button[i[contains(@class, 'google-material-icons') and text()='arrow_forward']]"));
        button.Click();

        var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10));
        
        var isPageLoaded = wait.Until(drv =>
        {
            ReadOnlyCollection<IWebElement> webElements = drv.FindElements(By.ClassName("G1zzid"));
            
            bool areAllElementsDisplayed = webElements.All(element => element.Displayed);
            
            return areAllElementsDisplayed && (bool)((IJavaScriptExecutor)drv).ExecuteScript(
                "return document.readyState == 'complete'");
        });

        var upperElements = driver.FindElements(By.ClassName("q078ud"));
        var lowerElements = driver.FindElements(By.ClassName("reAt0"));
        
        Dictionary<string, string> elements = new Dictionary<string, string>();

        for (int i = 0; i < upperElements.Count; i++)
        {
            elements[upperElements[i].Text] = lowerElements[i].Text;
            
            //Console.WriteLine($"{upperElements[i].Text}: {lowerElements[i].Text}");
        }
        
        return elements.GetValueOrDefault("Version", string.Empty);
    }
}
Reasons:
  • Blacklisted phrase (1): I have to do
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): I have the same issue
  • Whitelisted phrase (-2): I solved
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same issue
  • Low reputation (0.5):
Posted by: DeathPro

79516721

Date: 2025-03-18 08:07:00
Score: 6 🚩
Natty: 4.5
Report link

i am facing issues with loading my map and 2d pose estimate.

could you please elaborate on the steps you took (although it’s been some time)

Reasons:
  • Blacklisted phrase (1): i am facing issue
  • RegEx Blacklisted phrase (2.5): could you please elaborate
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Satish

79516713

Date: 2025-03-18 08:04:59
Score: 4
Natty:
Report link

i didnt getting that what i should do

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

79516711

Date: 2025-03-18 08:03:59
Score: 3
Natty:
Report link

I've combined several answers here to a solution that reads characters from

with timeout and runs on

https://github.com/majorkingleo/read_from_stdin/blob/main/src/read_from_stdin.cc

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

79516708

Date: 2025-03-18 08:02:56
Score: 12.5 🚩
Natty: 6
Report link

Hi did you get any solution for this ? i am facing the same issue in the color changing during export. I have to use moviepy due it operations not supported by ffmpeg.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (3): did you get any solution
  • RegEx Blacklisted phrase (2): any solution for this ?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): i am facing the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ananya Giliyal

79516696

Date: 2025-03-18 07:55:54
Score: 0.5
Natty:
Report link

You have to pass the token like ?pageToken=XXX

Here is the full example of pagination, that I have tested, check it out.

function call_clinic_api(){
    $nextPageToken = isset($_GET['pageToken']) ? $_GET['pageToken'] : '';

    if(!empty($nextPageToken)){
        $response= wp_remote_get("https://clinicaltrials.gov/api/v2/studies?pageToken={$nextPageToken}");
    }else{
        $response= wp_remote_get("https://clinicaltrials.gov/api/v2/studies");
    }

    if (is_wp_error($response)) {
        return 'Error fetching data.';
    }

 $result = json_decode(wp_remote_retrieve_body($response), true);
   return $result;
}

function fetch_clinical_trials($atts) {
    if (is_admin()) {
        return '<p>Shortcode [external_data] preview.</p>';
    }

    $atts = shortcode_atts(['title' => 'Clinical Trials Data'], $atts, 'external_data');
    
    $response = call_clinic_api();
    
    $studies = $response['studies'] ?? [];
    $nextPageTokenData = $response['nextPageToken'] ?? '';
    

   
    


    $html = '<h2>' . esc_html($atts['title']) . '</h2>';
    $html .= '<table class="table-auto">
                <thead>
                <tr><th class="border px-3">NCT ID</th><th class="border px-3">Organization</th><th class="border px-3">Title</th><th class="border px-3">Status</th><th class="border px-3">Start Date</th><th class="border px-3">Completion Date</th><th class="border px-3">Sponsor</th></tr> </thead>' ;
                

    foreach ($studies as $study) {
        $html .= '<tboday>';
        $html .= '<tr>';
        $html .= '<td class="border px-3">' . esc_html($study['protocolSection']['identificationModule']['nctId'] ?? 'N/A') . '</td>';
        $html .= '<td class="border px-3">' . esc_html($study['protocolSection']['identificationModule']['organization']['fullName'] ?? 'N/A') . '</td>';
        $html .= '<td class="border px-3">' . esc_html($study['protocolSection']['identificationModule']['briefTitle'] ?? 'N/A') . '</td>';
        $html .= '<td class="border px-3">' . esc_html($study['protocolSection']['statusModule']['overallStatus'] ?? 'N/A') . '</td>';
        $html .= '<td class="border px-3">' . esc_html($study['protocolSection']['statusModule']['startDateStruct']['date'] ?? 'N/A') . '</td>';
        $html .= '<td class="border px-3">' . esc_html($study['protocolSection']['statusModule']['primaryCompletionDateStruct']['date'] ?? 'N/A') . '</td>';
        $html .= '<td class="border px-3">' . esc_html($study['protocolSection']['sponsorCollaboratorsModule']['leadSponsor']['name'] ?? 'N/A') . '</td>';
        $html .= '</tr>';
        $html .= '</tbody>';
    };

    
    $html .= '</table>';
    $html.= '<div class="flex justify-between w-full border">';
    $html.= "<a href='' class='inline-block w-full'>Previous Page</a>";
    $html.= "<a class='ml-5 inline-block w-full text-right' href='?pageToken=" . urlencode($nextPageTokenData) . "'>Next Page</a>";
    $html.= '<div>';
    
    return $html;
}
Reasons:
  • Blacklisted phrase (0.5): check it out
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Bisnu Kundu

79516693

Date: 2025-03-18 07:55:54
Score: 1
Natty:
Report link

Try downgrade httpx to 0.27.2 or upgrade openai>1.55.3, I fixed the problem by using former method.

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: flyflyflynonono

79516682

Date: 2025-03-18 07:52:54
Score: 2.5
Natty:
Report link

As you stated, 'all-servers' picks the response from the server that responds first. Use the 'no-negcache' option to drop negative responses. You'll eventually have the server with correct response responding first.

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

79516680

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

Is there a way to get the fields from the top level ?
In the case above, I need the ReceiverInfo's version into a field in a "ReceiverInfo" temp-table.
However, there never seems to be a record for the "main level"

This does not work :

DEFINE TEMP-TABLE ReceiverInfo   NO-UNDO
    FIELD id                    AS CHARACTER XML-NODE-TYPE "hidden"
    FIELD informatie            AS CHARACTER XML-NODE-TYPE "Text"
    FIELD attribuut             AS CHARACTER XML-NODE-TYPE "Attribute".

DEFINE TEMP-TABLE MessageDetails NO-UNDO
    FIELD parent-id AS CHARACTER XML-NODE-TYPE "hidden"
    FIELD id        AS INTEGER.

DEFINE TEMP-TABLE MessageTypeCode NO-UNDO
    FIELD Axmlns                AS CHARACTER XML-NODE-TYPE "Attribute"
    FIELD ElementValue          AS CHARACTER XML-NODE-TYPE "Text"
    FIELD MessageDetails_id     AS INTEGER   XML-NODE-TYPE "Hidden".

DEFINE DATASET dsReceiverInfo
     FOR ReceiverInfo, MessageDetails , MessageTypeCode
     /*DATA-RELATION relReceiver FOR receiverinfo, MessageDetails
        RELATION-FIELDS (id, parent-id) NESTED*/
     DATA-RELATION relMessageDetails FOR MessageDetails, MessageTypeCode
        RELATION-FIELDS (id, messagedetails_id) NESTED.

DATASET dsReceiverInfo:READ-XML("file", "C:\MichaelD\InAc\BH\src\testje.xml", "empty", ?, FALSE, ?, "IGNORE") NO-ERROR.

FOR EACH receiverinfo:
    DISPLAY receiverinfo WITH FRAME f1.
END.
FOR EACH MessageDetails, 
    EACH MessageTypeCode WHERE messagedetails.id = messagetypecode.messagedetails_id:
    DISP MessageTypeCode.ElementValue FORMAT "X(30)"
         MessageTypeCode.Axmlns      
         MessageTypeCode.MessageDetails_id
         MessageDetails.ID
        WITH FRAME f2 DOWN.
END.
Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): Is there a way
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): Is there a
  • Low reputation (1):
Posted by: Michael D

79516679

Date: 2025-03-18 07:50:53
Score: 4
Natty:
Report link

I used this Java library, I think you can try it
https://www.nayuki.io/page/qr-code-generator-library#java

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

79516678

Date: 2025-03-18 07:49:52
Score: 2
Natty:
Report link
<dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>htmlunit-driver</artifactId>
    <version>2.40.0</version>
</dependency> 
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: aniket patil

79516670

Date: 2025-03-18 07:46:52
Score: 0.5
Natty:
Report link

As explained by @Anton Savin, the two lambdas have different types. Similarily to this s/o question, if you'd still really want to use only one template parameter type, you can do so by resorting to std::function<> which was introduced in C++11. As I explained in another answer, it ensures your two function arguments have the same types:

#include <iostream>
#include <functional>

template <class A, class OP>
auto WhichOp2(A argument, OP firstOp, OP secondOp)->decltype(firstOp(argument)) {
    return firstOp(argument) + secondOp(argument);
}

int main()
{
    int d = WhichOp2(
        2, 
        std::function<int(int)>([](int i){return i * 2; }), 
        std::function<int(int)>([](int i){return i * 3; })
    );

    std::cout << "result : " << d << std::endl; 
}

DEMO here

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Anton
  • Low reputation (0.5):
Posted by: grybouilli

79516662

Date: 2025-03-18 07:42:51
Score: 2
Natty:
Report link

I have the same issue. I need to know if the new version of the app is published when I publish the app from the developer console. I have to do some automation. Unfortunately, there is no Official API to fetch the live app version for Android. I use Unity and I need to work in Unity Editor. AppUpdateManager from Android only works on Android Builds.

I solved this issue currently, but it might be changed in the future. It takes the latest version from the App Store and Play Store. I solved this in C# .Net Project. You need to have Newtonsoft.Json and Selenium.WebDriver NuGet package for this to work. Also, you need to pass something like "com.company.project" to the methods below to work.

using System.Collections.ObjectModel;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Support.UI;
using Newtonsoft.Json.Linq;

private static async Task<string> GetLatestVersionFromAppStore(string bundleId)
{
    using (HttpClient client = new HttpClient())
    {
        string url = $"https://itunes.apple.com/lookup?bundleId={bundleId}";
        string response = await client.GetStringAsync(url);
        JObject json = JObject.Parse(response);
        string version = json["results"]?[0]?["version"]?.ToString() ?? string.Empty;
        return version;
    }
}

private static string GetLatestVersionFromPlayStore(string packageName)
{
    string url = $"https://play.google.com/store/apps/details?id={packageName}&hl=en";
    var options = new ChromeOptions();
    options.AddArgument("--headless");
    using (var driver = new ChromeDriver(options))
    {
        driver.Navigate().GoToUrl(url);
        
        var button = driver.FindElement(By.XPath("//button[i[contains(@class, 'google-material-icons') and text()='arrow_forward']]"));
        button.Click();

        var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10));
        
        var isPageLoaded = wait.Until(drv =>
        {
            ReadOnlyCollection<IWebElement> webElements = drv.FindElements(By.ClassName("G1zzid"));
            
            bool areAllElementsDisplayed = webElements.All(element => element.Displayed);
            
            return areAllElementsDisplayed && (bool)((IJavaScriptExecutor)drv).ExecuteScript(
                "return document.readyState == 'complete'");
        });

        var upperElements = driver.FindElements(By.ClassName("q078ud"));
        var lowerElements = driver.FindElements(By.ClassName("reAt0"));
        
        Dictionary<string, string> elements = new Dictionary<string, string>();

        for (int i = 0; i < upperElements.Count; i++)
        {
            elements[upperElements[i].Text] = lowerElements[i].Text;
            
            //Console.WriteLine($"{upperElements[i].Text}: {lowerElements[i].Text}");
        }
        
        return elements.GetValueOrDefault("Version", string.Empty);
    }
}
Reasons:
  • Blacklisted phrase (1): I have to do
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): I have the same issue
  • Whitelisted phrase (-2): I solved
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same issue
  • Low reputation (0.5):
Posted by: DeathPro

79516651

Date: 2025-03-18 07:38:50
Score: 2.5
Natty:
Report link

It looks like the issue might be with the noise scheduler or latent processing. Make sure your scheduler settings match the default in diffusers, and check if the UNet’s predicted noise aligns with the official pipeline. If the results are still off, compare the shape and scale of your latents.

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

79516646

Date: 2025-03-18 07:36:49
Score: 1
Natty:
Report link

on error use function

this simple function that replace xlink:href value

<svg>
  <image xlink:href="path/to/image.jpg" onerror="this.setAttribute('xlink:href','path/to/alternate.png')" />
</svg>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user3093172

79516645

Date: 2025-03-18 07:35:49
Score: 3.5
Natty:
Report link

Igor's Answer helpd me. I had to clear our the overrides in the sources tab by clicking the icon int he attached pic

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: skr chr

79516637

Date: 2025-03-18 07:31:48
Score: 2
Natty:
Report link

WebElement helpText = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("/html/body/div[5]/div"))); JavascriptExecutor js = (JavascriptExecutor) driver; js.executeScript("arguments[0].remove();", helpText);

sometime it works, try once

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

79516635

Date: 2025-03-18 07:30:48
Score: 1
Natty:
Report link

File > Preferences > Keyboard Shortcuts > enter "save" to search, then find your keybinding for "File: save without formatting"

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

79516633

Date: 2025-03-18 07:30:48
Score: 3.5
Natty:
Report link

@Morrison Chang. Thank you for your answer which solved my problem.

I read the link you mentioned and I reached the GitHub android-hid-client. It says that Only specific root methods are supposed, because he needed to patch Selinux policy..

So I have to use Magisk to patch boot.img, which make it possible to start USB gadget tool properly.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • No code block (0.5):
  • User mentioned (1): @Morrison
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: ayuumu nyasu

79516631

Date: 2025-03-18 07:29:47
Score: 1.5
Natty:
Report link

Add this line:

import android.os.Bundle;

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

79516629

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

add following dependency in pom.xml

<dependency>
    <groupId>jakarta.persistence</groupId>
    <artifactId>jakarta.persistence-api</artifactId>
    <version>3.1.0</version>
</dependency>

you just import it
import jakarta.persistence.***;

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vijay Verma

79516625

Date: 2025-03-18 07:27:47
Score: 0.5
Natty:
Report link

By default the classic text lable will work perfectly fit as per you requirment. I believe the one which you are using in a modern control, which give you a default scroll.

Classic Text Label - No scroll with showing the maximum text it can display. Classic Text Label - No scroll with showing the maximum text it can display.

vs

Modern Text - With default scroll bar for same length of text Modern Text - With default scroll bar for same length of text

NOTE: I have set the auto height property as false for both of them.

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: Sumit

79516596

Date: 2025-03-18 07:12:44
Score: 2
Natty:
Report link

I have the same issue. I need to know if the new version of the app is published when I publish the app from the developer console. I have to do some automation. Unfortunately, there is no Official API to fetch the live app version for Android. I use Unity and I need to work in Unity Editor. AppUpdateManager from Android only works on Android Builds.

I solved this issue currently, but it might be changed in the future. It takes the latest version from the App Store and Play Store. I solved this in C# .Net Project. You need to have Newtonsoft.Json and Selenium.WebDriver NuGet package for this to work. Also, you need to pass something like "com.company.project" to the methods below to work.

using System.Collections.ObjectModel;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Support.UI;
using Newtonsoft.Json.Linq;

private static async Task<string> GetLatestVersionFromAppStore(string bundleId)
{
    using (HttpClient client = new HttpClient())
    {
        string url = $"https://itunes.apple.com/lookup?bundleId={bundleId}";
        string response = await client.GetStringAsync(url);
        JObject json = JObject.Parse(response);
        string version = json["results"]?[0]?["version"]?.ToString() ?? string.Empty;
        return version;
    }
}

private static string GetLatestVersionFromPlayStore(string packageName)
{
    string url = $"https://play.google.com/store/apps/details?id={packageName}&hl=en";
    var options = new ChromeOptions();
    options.AddArgument("--headless");
    using (var driver = new ChromeDriver(options))
    {
        driver.Navigate().GoToUrl(url);
        
        var button = driver.FindElement(By.XPath("//button[i[contains(@class, 'google-material-icons') and text()='arrow_forward']]"));
        button.Click();

        var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10));
        
        var isPageLoaded = wait.Until(drv =>
        {
            ReadOnlyCollection<IWebElement> webElements = drv.FindElements(By.ClassName("G1zzid"));
            
            bool areAllElementsDisplayed = webElements.All(element => element.Displayed);
            
            return areAllElementsDisplayed && (bool)((IJavaScriptExecutor)drv).ExecuteScript(
                "return document.readyState == 'complete'");
        });

        var upperElements = driver.FindElements(By.ClassName("q078ud"));
        var lowerElements = driver.FindElements(By.ClassName("reAt0"));
        
        Dictionary<string, string> elements = new Dictionary<string, string>();

        for (int i = 0; i < upperElements.Count; i++)
        {
            elements[upperElements[i].Text] = lowerElements[i].Text;
            
            //Console.WriteLine($"{upperElements[i].Text}: {lowerElements[i].Text}");
        }
        
        return elements.GetValueOrDefault("Version", string.Empty);
    }
}
Reasons:
  • Blacklisted phrase (1): I have to do
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): I have the same issue
  • Whitelisted phrase (-2): I solved
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same issue
  • Low reputation (0.5):
Posted by: DeathPro

79516583

Date: 2025-03-18 07:09:43
Score: 3.5
Natty:
Report link

BTW, since I think no one gave official gnu bash document that explains the meaning of ':', here it is: https://www.gnu.org/software/bash/manual/bash.html#Bourne-Shell-Builtins

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

79516565

Date: 2025-03-18 07:07:43
Score: 1.5
Natty:
Report link

https://clinicaltrials.gov/data-api/api According to the documentation, you simply need to pass the token as a query parameter:

https://clinicaltrials.gov/api/v2/studies?pageToken=XXXXXXXXX
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: jblairy

79516544

Date: 2025-03-18 07:05:42
Score: 0.5
Natty:
Report link

There is a typo in your code. A > is missing between cols="45” and <?php, as the content of the text area must be between the opening and closing tag

Also your label is not valid. Threre's a missing class=" before col-sm-2

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

79516528

Date: 2025-03-18 07:01:42
Score: 3.5
Natty:
Report link

آپ لینکس منٹ، Zscaler، اور VPN کے بارے میں جاننا چاہتے ہیں؟

کیا آپ Zscaler کو لینکس منٹ پر مشورہ کرنے یا VPN کنفیگریشن کے بارے میں بتا رہے ہیں؟ 😊

4o

Reasons:
  • No code block (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: Brycen Aliyus

79516527

Date: 2025-03-18 07:00:41
Score: 10
Natty: 7.5
Report link

were you able to find a solution?

Reasons:
  • RegEx Blacklisted phrase (1): were you able to find a solution
  • RegEx Blacklisted phrase (3): were you able
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: posCmd

79516525

Date: 2025-03-18 06:59:41
Score: 0.5
Natty:
Report link

Well all the above options did not work for me. However the following worked for me.

Identified Issue

I realized that my docker Disk image location was point to the local disk C drive. This happened to have little storage allocated to docker storage.

Solution

I updated the Disk image location from using the local disk C drive to using local disk D. This change upgraded my docker disk storage from the default 1.49 GB to 1006.85 GB.

enter image description here

Note the 1006.85 GB varies based on the storage you're point it to.

Please make sure to restart your docker desktop

Reasons:
  • Blacklisted phrase (1): did not work
  • Whitelisted phrase (-1): worked for me
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Umar Kayondo

79516524

Date: 2025-03-18 06:59:41
Score: 1
Natty:
Report link

What worked for me:
- The problematic files were under "Unversioned" changelist (in IntelliJ)
- Instead of deleting the files, I created a new change list and moved those files to that one.
- Was able to check-out the required branch after this

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • No code block (0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: Melvin

79516522

Date: 2025-03-18 06:57:41
Score: 1.5
Natty:
Report link

The timeouts have different causes. In one instance the timeout is a TCP connection timeout. In another instance the connection succeeded but the service timed out while supposedly producing a response. For the latter case, the API is measuring the time between successful reads, so that the total request time can still be arbitrarily large.

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

79516520

Date: 2025-03-18 06:56:40
Score: 3
Natty:
Report link

You could write an array of queries, Iterate over that array and execute each one using EXECUTE IMMEDIATE command. Here's a sample.

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

79516518

Date: 2025-03-18 06:55:40
Score: 1
Natty:
Report link

Thank you for this topic, it helped me, I'll just correct that to set choice by a value use:

document.querySelector('.choices__item[data-value="3"]').dispatchEvent(new Event('mousedown'));

(In my scenario I am using dropdown with "Show value" = On)

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Matej Podstrelenec

79516511

Date: 2025-03-18 06:51:39
Score: 1
Natty:
Report link

Keep in mind, the syntax changes from _ to : in Yocto 3.4 Hornister version (see docs and changelog):

PREFERRED_VERSION_openssl:forcevariable = "1.1.%"

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

79516485

Date: 2025-03-18 06:36:37
Score: 2.5
Natty:
Report link

As of January 2025, Gmail doesn't support accessing the mailbox via IMAP with username and password: https://support.google.com/mail/answer/7126229

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Jakub Vrána

79516483

Date: 2025-03-18 06:35:36
Score: 3
Natty:
Report link

Yes 👍 to be a good 👍 to be able 😀 U 😁 to be able to do this is an important factor 😜 to the bola in the bola in this case you make a

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

79516479

Date: 2025-03-18 06:34:36
Score: 3.5
Natty:
Report link

You need to enter the App Store ID on firebase project setting

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

79516466

Date: 2025-03-18 06:29:34
Score: 2
Natty:
Report link
  1. Install Qt Visual Studio Tools from extensions in Visual Studio. Mentioned

  2. Restart VS.

  3. Add Qt version to Qt Visual Studio Tools.

  4. In VS Solution Explorer, right-click your project and select "Qt", then select "Convert to Qt/MSBuild project."

  5. Select "Yes" in the popup to convert the selected project.

Additional information.

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

79516455

Date: 2025-03-18 06:24:33
Score: 2.5
Natty:
Report link

Change Project Port: Go to Project > Properties > Web > Project URL and try using a different port number.

It will solve your issue.

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

79516454

Date: 2025-03-18 06:23:33
Score: 0.5
Natty:
Report link

As dear @JeffFritz's (Microsoft MVP) quote :

  1. The name of ConnectionString have to be same with the name that is specified in AppHost

  2. In ConnectionString name of Host have to be same with the name that is specified for container name (Postgres)

Now that works for both .Net Aspire and Docker

"ConnectionStrings": {
"MyDatabase":"Host=Postgres;Port=5432;Database=MyDatabase;Username=postgres;Password=postgrespassword;"
}
var postgres = builder
    .AddPostgres("Postgres", port: 5432)
    .AddDatabase("MyDatabase");
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @JeffFritz's
  • Self-answer (0.5):
Posted by: Arash.Zandi

79516450

Date: 2025-03-18 06:22:33
Score: 0.5
Natty:
Report link

The idea is in the link below: https://www.mongodb.com/community/forums/t/mongo-v6-0-0-immediately-exits-with-featurecompatibilityversion-error/181080/4?u=mohammed_khateeb_kamran

Quoting it here:

If you want to save your data, you can fix this, by downloading the compressed archive of 7.0.x and extract it. From this extracted folder you can run ./bin/mongod --dbpath <current database path>. Connect to this instance with mongosh and run db.adminCommand( { setFeatureCompatibilityVersion: "7.0" } ). This will change the FCV for you. You can then exit mongosh and then shutdown the mongod instance and finally start your version 8.0.0 server. You will want to change the FCV here as well to be 7.0.

Reasons:
  • Blacklisted phrase (1): the link below
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: khateeb

79516444

Date: 2025-03-18 06:18:32
Score: 0.5
Natty:
Report link

The first query:

SELECT ProductID 
FROM Products 
WHERE ProductActive = 3 
    OR (ProductChecked = 2 AND ProductActive NOT IN(2, 10))
LIMIT 0, 100

Would not be able to take advantage of index, unless ProductActive_ProductChecked is an composite index in the exact order.

Why?

Because, OR query over an individual index could only filter one of the two clauses. For the second clause, you need to scan the db again and take a "UNION" since its an OR clause. MySQL cannot use two indexes at the same time (in most of the cases).


Now why are the queries performing differently?

Let's term any clause on ProductActive column as "A" and a clause on ProductChecked as "B"

The first query can be represented as => SELECT <> FROM <> WHERE A U (A ∩ B). Note that in this query, there's an intersection with B. Which can be done by finding relevant rows for A in index, then filtering them on the basis of B . Then do a union with A which is again, available from index. Operating term here being there's UNION with same column and INTERSECTION with different column. Hence, one can scan index for A and that would work. [No table scan required.]

Now why the second query does not perform?

The query can be represented by => SELECT <> FROM <> WHERE (A U B) ∩ A . Note that there's a UNION with B. Which has to be done by first figuring out relevant rows for A then scanning the table to figure out rows for B and then merging them. Post that take an intersection with A. Operating term here being there's UNION with DIFFERENT column and INTERSECTION with same column. Hence, one cannot just scan index for A and had to do a table scan.

Soln:

Try doing SQL Performance UNION vs OR optimisation.


Reasons:
  • Blacklisted phrase (0.5): Why?
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Shah Kushal

79516441

Date: 2025-03-18 06:17:32
Score: 1
Natty:
Report link

The Root Cause: File Descriptor Exhaustion

The 502 Bad Gateway errors you're experiencing with your FastAPI application under load are most likely caused by file descriptor exhaustion. This is a common issue when running Uvicorn (or other ASGI servers) behind a reverse proxy like Nginx.

I've created a complete proof-of-concept that demonstrates this issue in great detail and confirms that file descriptor exhaustion directly causes 502 errors.

What are File Descriptors?

File descriptors (FDs) are numeric identifiers for open files, sockets, and other I/O resources. Each connection to your application uses at least one file descriptor, and there's a limit to how many a process can have open simultaneously.

When your application runs out of available file descriptors:

  1. It can't accept new connections
  2. It may fail to open new files or sockets
  3. The reverse proxy (Nginx) can't establish a connection to your application
  4. Nginx returns a 502 Bad Gateway error to the client

How I Verified This Is the Cause

I created a test environment with:

The results clearly show that once file descriptor usage approaches the limit, Nginx starts returning 502 Bad Gateway errors.

Here's the relevant output from my test:

[  1] ✅ OK (0.01s) - FDs: 12/50 (24%), Leaked: 3
[  2] ✅ OK (0.01s) - FDs: 16/50 (32%), Leaked: 6
...
[ 13] ✅ OK (0.01s) - FDs: 49/50 (98%), Leaked: 39
[ 14] ✅ OK (0.01s) - App error: HTTPConnectionPool(host='localhost', por...
[ 15] ⛔ 502 BAD GATEWAY (0.12s) - FDs: 49/50 (98%), Leaked: 41
...

As you can see, once file descriptors approach 100% of the limit, 502 errors start occurring.

Common Scenarios That Lead to File Descriptor Exhaustion

  1. Resource leaks: Not properly closing files, connections, or sockets
  2. High concurrent load: Too many simultaneous connections
  3. Low system limits: Default file descriptor limits are too low
  4. Long-lived connections: WebSockets or other long-running connections
  5. Database connection pools: Improperly configured pools that open too many connections

How to Fix the Issue

1. Increase File Descriptor Limits

In production environments, increase the file descriptor limits:

For systemd services:

# /etc/systemd/system/your-service.service
[Service]
LimitNOFILE=65535

For Docker containers:

# docker-compose.yml
services:
  app:
    ulimits:
      nofile:
        soft: 65535
        hard: 65535

For Linux systems:

# /etc/security/limits.conf
your_user soft nofile 65535
your_user hard nofile 65535

2. Implement Protective Middleware

Add middleware to monitor file descriptor usage and return controlled responses when approaching limits:

import resource
from fastapi import Request, Response
from starlette.middleware.base import BaseHTTPMiddleware

class ResourceMonitorMiddleware(BaseHTTPMiddleware):
    async def dispatch(self, request: Request, call_next):
        # Get current FD count and limits
        soft_limit, _ = resource.getrlimit(resource.RLIMIT_NOFILE)
        fd_count = len(os.listdir('/proc/self/fd')) - 1  # Subtract 1 for the listing itself
        
        # If approaching limit, return 503
        if fd_count > soft_limit * 0.95:
            return Response(
                content="Service temporarily unavailable due to high load",
                status_code=503
            )
        
        # Otherwise process normally
        return await call_next(request)

# Add to your FastAPI app
app.add_middleware(ResourceMonitorMiddleware)

3. Fix Resource Leaks

Make sure you're properly closing all resources:

# Bad - resource leak
def bad_function():
    f = open("file.txt", "r")
    data = f.read()
    return data  # File is never closed!

# Good - using context manager
def good_function():
    with open("file.txt", "r") as f:
        data = f.read()
    return data  # File is automatically closed

4. Configure Connection Pooling

Properly configure connection pools for databases and external services:

from sqlalchemy import create_engine
from databases import Database

# Configure pool size appropriately
DATABASE_URL = "postgresql://user:password@localhost/dbname"
engine = create_engine(DATABASE_URL, pool_size=5, max_overflow=10)
database = Database(DATABASE_URL)

5. Set Appropriate Timeouts

Configure timeouts in both Uvicorn and Nginx:

Uvicorn:

uvicorn app:app --timeout-keep-alive 5

Nginx:

http {
    # Lower the keepalive timeout
    keepalive_timeout 65;
    
    # Set shorter timeouts for the upstream
    upstream app_server {
        server app:8000;
        keepalive 20;
    }
    
    location / {
        proxy_connect_timeout 5s;
        proxy_read_timeout 10s;
        proxy_send_timeout 10s;
    }
}

How to Monitor File Descriptor Usage

In Production

Add monitoring for file descriptor usage:

import psutil
import logging

def log_fd_usage():
    process = psutil.Process()
    fd_count = process.num_fds()
    limits = resource.getrlimit(resource.RLIMIT_NOFILE)
    
    logging.info(f"FD usage: {fd_count}/{limits[0]} ({fd_count/limits[0]:.1%})")
    
    if fd_count > limits[0] * 0.8:
        logging.warning("High file descriptor usage detected!")

For Debugging

To check file descriptor usage:

# For a specific PID
lsof -p <pid> | wc -l

# Check limits
ulimit -n

Conclusion

502 Bad Gateway errors in FastAPI/Uvicorn applications are commonly caused by file descriptor exhaustion. By monitoring FD usage, increasing system limits, and implementing protective middleware, you can prevent these errors and maintain a stable application even under high load.

The key to resolving this issue is proper resource management and monitoring, ensuring that your application can gracefully handle load without exhausting system resources.


Code for the complete proof-of-concept is available in this repository, including a FastAPI application, Nginx configuration, and test scripts to demonstrate and resolve the issue.

Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: iron-hope-shop

79516428

Date: 2025-03-18 06:10:30
Score: 0.5
Natty:
Report link

As commented by @DazWilkin, your issue could be resolved if you leverage the instructions to use ADC for local development. Using your user credentials (Google Account) or impersonating a Service Account will create a key (on Linux in ${HOME}/.config/gcloud/application_default_credentials.json) that you can (volume) mount into the container, then reference using the environment variable GOOGLE_APPLICATION_CREDENTIALS. You need only have gcloud installed on the host not the container.

Posting the answer as community wiki for the benefit of the community that might encounter this use case in the future. Feel free to edit this answer for additional information.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @DazWilkin
  • Low reputation (0.5):
Posted by: Dhiraj Singh

79516423

Date: 2025-03-18 06:07:30
Score: 4.5
Natty:
Report link

Application to support virtual, hybrid, and decentralized clinical trials

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

79516419

Date: 2025-03-18 06:03:29
Score: 2
Natty:
Report link

Alternatively you would call the ActivitySource.CreateActivity(), then change the parent, and finally start this activity.

Once the activity is started, its' parent cannot be changed. Older versions of System.Diagnostics.DiagnosticSource didn't follow this rule all the times though.

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

79516417

Date: 2025-03-18 06:01:28
Score: 3.5
Natty:
Report link

It happened with me when I was accidently forcefully closing the application by myself.

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