79449300

Date: 2025-02-18 18:46:58
Score: 0.5
Natty:
Report link

I found the problem!

I wasn't acking the task when it finished

It wasn't something that gave an answer, so I did't get the result. I only checked that it was on rabbitmq like this:

async_result = available_tasks[task_name].apply_async(args=[data], kwargs=kwargs)
data = {'job_id': async_result.id, 'state': async_result.state}
code = 200
status = True
message = ''
return response(status, code, data, message)

But I shoulded use something like this:

async_result = available_tasks[task_name].apply_async(args=[data], kwargs=kwargs)
data = {'job_id': async_result.id, 'state': async_result.state, 'job_result': async_result.get()}
code = 200
status = True
message = ''
return response(status, code, data, message)

If I wouldn't use the get function rabbitmq would wait for the acknowledgement and disconect. That was the origin of the problem

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Miguel Robledo

79449293

Date: 2025-02-18 18:40:56
Score: 1
Natty:
Report link

It turns out that the issue was that the new file paths exceed Windows' maximum path length (256 characters):

> physical(my_ff_matrix_1)$filename %>% nchar()
[1] 262

Moving the ffarchive to a location such that physical(my_ff_matrix_1)$filename %>% nchar() was less than 256 solved the issue.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: E. Nygaard

79449286

Date: 2025-02-18 18:37:56
Score: 0.5
Natty:
Report link

You can use pagehide event. According to chrome, pageHide is more reliable than beforeunload. But again, like other events, this event is not reliably fired by browsers, especially on mobile.

For more information:

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: 404nnotfoundd

79449278

Date: 2025-02-18 18:35:55
Score: 1.5
Natty:
Report link

Make sure that your response variable is on the [0,1] scale, as expected by betar() since the Beta distribution exists only on that interval.

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

79449276

Date: 2025-02-18 18:34:55
Score: 2.5
Natty:
Report link

What person came along and down-voted this question?! I voted it up again. It's a common problem in Snakemake and it has a good answer - shadow rules:

https://snakemake.readthedocs.io/en/stable/snakefiles/rules.html#shadow-rules

Using shadow mode is not as mysterious as it may seem. It just does exactly what you are trying to do with subfolders but in a consistent and robust way. The "shadow" is just a temporary directory where the rule runs and makes whatever output, then Snakemake moves the output file back to the real working directory and deletes anything else. It's great for cleaning up temp files, and for resolving conflicts like you have.

If you ever tried Nextflow, that system basically runs every step as a shadow rule.

The short answer is, just add shadow: 'minimal' to your original rule (the simple version that did [*command to generate SolFix*]; mv SolFix {output.SolFix_ebv}) and then you should be golden. Let me know if you still have problems.

Reasons:
  • RegEx Blacklisted phrase (2): down-vote
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: Tim Booth

79449254

Date: 2025-02-18 18:24:52
Score: 2.5
Natty:
Report link

You need to call the callback function. You can find it in hcaptcha.render. An example of how to do this is available on the website https://multibot.in in the API documentation.

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

79449249

Date: 2025-02-18 18:23:52
Score: 3
Natty:
Report link

Many thanks for all the comments. I now have code which works 100% as envisaged:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Dislocation of Artificial Hip Joint</title>

<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
<!-- https://github.com/jquery/jquery/blob/main/LICENSE.txt -->

<script>

window.addEventListener('keydown', function (e) {

    // Process e object
    var key = e.which
    if (e.ctrlKey)  { key = "ctrl"+key;     }
    if (e.altKey)   { key = "alt"+key;      }
    if (e.shiftKey) { key = "shift"+key;    }

    // Ctrl+C
    if (key == "ctrl67") {
        // Preserve default
        return;
    }

    // Ctrl+F
    if (key == "ctrl70") {
        // Preserve default
        return;
    }

    // Space
    if (key == "32") {
        // Preserve default
        return;
    }

    // TAB
    if (key == "9") {
        // Preserve default
        return;
    }

    // Shift+TAB
    if (key == "shift9") {
        // Preserve default
        return;
    }

    // LeftArrow
    if (key == "37") {
        // Preserve default
        return;
    }

    // RightArrow
    if (key == "39") {
        // Preserve default
        return;
    }

    // Enter        - if radio button send space
    if (key == "13") {
        if($("input[type=radio]").is(':focus')){
            // Dissable default
            e.preventDefault();
            // Simulate Space
            let inputs = $('input');
            let index_input = inputs.index($('#' + e.target.id));
            inputs.eq(index_input).click();
        } else {
            // Preserve default
            return;
        }
    }

    // DownArrow    - if radio button send TAB
    if (key == "40") {
        if($("input[type=radio]").is(':focus')){
            // Dissable default
            e.preventDefault();
            // Simulate TAB to move to next radio group
            let inputs = $('input');
            let index_input = inputs.index($('#' + e.target.id));
            let next = inputs.eq(index_input + 2);
            next.focus();
        } else {
            // Preserve default
            return;
        }
    }

    // UpArrow      - if radio button send Shift+TAB
    if (key == "38") {
        if($("input[type=radio]").is(':focus')){
            // Dissable default
            e.preventDefault();
            // Simulate Shift+TAB to move to prev radio group
            let inputs = $('input');
            let index_input = inputs.index($('#' + e.target.id));
            let next = inputs.eq(index_input - 2);
            next.focus();
        } else {
            // Preserve default
            return;
        }
    }

    // Dissable fall-through and all remaining keyboard shortcuts
    e.preventDefault();
});

</script>
<style>
body {
margin: 20;
}
.Q {
margin: 10;
}
input[type='radio']{
    transform: scale(2);
    margin:10px;
    margin-bottom: 15px;
}
</style>

</head>
<body>
<h1>Hip Replacement Dislocation</h1>

<h2>Introduction</h2>

These questions will help you assess, document and treat patients with dislocations of their total hip replacements.<br>
<br>
Unfortunately patients with unstable hips may present several time in ED, before remedial surgery is undertaken.

<H2>Questions</h2>
<div id="Q0" class="Q" style="display:block">
    Does your patient have a total hip replacement or hip resurfacing?
    <br>
    Yes <input class="Y" name="Q0" id="Q0y" type="radio"  onchange="Q0();">
    No <input class="N" name="Q0" id="Q0n" type="radio"  onchange="Q0();">

    <script type="text/javascript">
        function Q0() {
            // Hide future questions
            $('.Q').slice(0+1).hide();
            // Clear future question responses
            $('.Y').slice(0+1).prop('checked', false);
            $('.N').slice(0+1).prop('checked', false);
            // Jump to selected question
            if ($('#Q0y').is(':checked')) {
                $("#Q1").css("display","block");
                $("#Q1y").trigger('focus');
            } else {
                $("#Q101").css("display","block");
            }
        }
    </script>
</div>

<div id="Q1" class="Q" style="display:none">
    Do x-rays show the ball outside the socket?<br>
    NB. After some years of wear the ball is allowed to be eccentric in the socket.<br>
    Yes <input class="Y" name="Q1" id="Q1y" type="radio"  onchange="Q1();">
    No <input class="N" name="Q1" id="Q1n" type="radio"  onchange="Q1();">

    <script type="text/javascript">
        function Q1() {
            $('.Q').slice(1+1).hide();
            $('.Y').slice(1+1).prop('checked', false);
            $('.N').slice(1+1).prop('checked', false);
            if ($('#Q1y').is(':checked')) {
                $("#Q2").css("display","block");
                $("#Q2y").trigger('focus');
            } else {
                $("#Q102").css("display","block");
            }
        }
    </script>
</div>

<div id="Q2" class="Q" style="display:none">
    Is there an open wound, loss of innervation or loss of blood supply!
    <br>
    Yes <input class="Y" name="Q2" id="Q2y" type="radio"  onchange="Q2();">
    No <input class="N" name="Q2" id="Q2n" type="radio"  onchange="Q2();">

    <script type="text/javascript">
        function Q2() {
            $('.Q').slice(2+1).hide();
            $('.Y').slice(2+1).prop('checked', false);
            $('.N').slice(2+1).prop('checked', false);
            if ($('#Q2y').is(':checked')) {
                $("#Q103").css("display","block");
            } else {
                $("#Q3").css("display","block");
                $("#Q3y").trigger('focus');
            }
        }
    </script>
</div>

<div id="Q3" class="Q" style="display:none">
    Typically the whole leg is rotated with a hip dislocation.<br>
    Which way is the leg rotated - toes pointing?
    <br>
    Inward <input class="Y" name="Q3" id="Q3y" type="radio"  onchange="Q3();">
    Outward <input class="N" name="Q3" id="Q3n" type="radio"  onchange="Q3();">

    <script type="text/javascript">
        function Q3() {
            $('.Q').slice(3+1).hide();
            $('.Y').slice(3+1).prop('checked', false);
            $('.N').slice(3+1).prop('checked', false);
            if ($('#Q3y').is(':checked')) {
                $("#Q4").css("display","block");
            } else {
                $("#Q5").css("display","block");
            }
        }
    </script>
</div>

<div id="Q4" class="Q" style="display:none">
    <h2>Advice</h2>

    This is a posterior dislocation of the artificial hip.<br>
    <br>
    Please document your findings:<br>
    <ul>
        <li>Radiologically proven dislocation</li>
        <li>Posterior direction</li>
        <li>Number of previous dislocations</li>
        <li>No fractures or complex implants</li>
        <li>No loss of innervation</li>
        <li>No loss of blood supply</li>
    </ul>

    Assuming a suitable patient with no other injuries, this should be reduced by the ED staff in line with locally agreed procedure:
    <ul>
        <li><a href=https://www.youtube.com/watch?v=yGU2zqHt-BQ target="_blank">YouTube (81 seconds)</a></li>
    </ul>

    For a very unstable hip, splinting the knee will inhibit hip flexion, and may reduce the risk of recurrent posterior dislocation.
</div>

<div id="Q5" class="Q" style="display:none">
    <h2>Advice</h2>

    This is an anterior dislocation of the artificial hip.<br>
    <br>
    Please document your findings:<br>
    <ul>
        <li>Radiologically proven dislocation</li>
        <li>Anterior direction</li>
        <li>Number of previous dislocations</li>
        <li>No fractures or complex implants</li>
        <li>No loss of innervation</li>
        <li>No loss of blood supply</li>
    </ul>

    Assuming a suitable patient with no other injuries, this should be reduced by the ED staff in line with locally agreed procedure:
    <ul>
        <li><a href=https://www.youtube.com/watch?v=oiKQxgbrOcA target="_blank">YouTube (89 seconds)</a></li>
    </ul>

    Splinting the knee, will not reduce the risk of recurrent anterior dislocation.
</div>

<div id="Q101" class="Q" style="display:none">
    <h2>End of help</h2>
    These questions are only valid for dislocation of total hip replacements.<br>
    <br>
    Dislocation of a native hip or a hemiarthroplasty, have their own pages.
</div>

<div id="Q102" class="Q" style="display:none">
    <h2>End of help</h2>
    If the ball is inside to socket, then the hip is not dislocated.
    <br>
    <br>
    Look at the x-rays carefully for other causes of sudden hip pain and leg shortening:
    <ul>
        <li>Periprosthetic fracture of the femur</li>
        <li>Periprosthetic fracture of the acetabulum</li>
        <li>Fracture of the stem</li>
        <li>Dissassembly of the liner in uncemented cups</li>
    </ul>
    If you can't make a diagnosis, call the orthopaedic team for help.
</div>

<div id="Q103" class="Q" style="display:none">
    <h2>End of help</h2>
    Complicated artificial hip dislocations are uncommon - you will need help.
    <br>
    <br>
    Before calling the orthopaedic team:
    <ul>
        <li>For open wounds, please immediately give intravenous broad spectrum antibiotics and tetanus cover</li>
        <li>For patients with loss of innervation, please document MRC power grading and map loss of sensation</li>
        <li>For patients with loss of blood supply, please check with doppler for pulses</li>
    </ul>
    Now call the orthopaedic team for help.
</div>

<script>
    $("#Q0y").focus();
</script>

</body>
</html>

Using this template I can generate unlimited pages with easily accessible Y/N decision trees.

Kind Regards Gavin Holt

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): Regards
  • Blacklisted phrase (1): youtube.com
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Gavin

79449247

Date: 2025-02-18 18:22:52
Score: 2.5
Natty:
Report link

I've had similar issue like this, but in my case, what I had to do was to go to mongoDB atlas network access settings and to make sure my IP address is whitelisted, that is, allowed.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Obinna Obi-Akwari

79449245

Date: 2025-02-18 18:22:52
Score: 3.5
Natty:
Report link

Quick update if anyone facing the same problem in 2025 with MAMP7.

I had the same issue, now the mysql folder is located at: /Applications/MAMP/Library/bin/mysql80/bin

If you use other mysql version then i guess just change .../mysql80/... - to your version.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): facing the same problem
  • Low reputation (1):
Posted by: Attila Balog

79449242

Date: 2025-02-18 18:20:51
Score: 3.5
Natty:
Report link

See https://github.com/php/php-src/issues/17856.

The Visual Studio version used to build PHP shouldn't matter.

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

79449236

Date: 2025-02-18 18:14:50
Score: 1
Natty:
Report link

Per Polars Support:

First, you need way more iterations than just 100 for such a small timewindow. With 10,000 iterations I get the following:

avg polars run: 0.0005123567976988852 avg pandas run: 0.00012923809615895151 But we can rewrite the polars query to be more efficient:

df_filtered = (
    df.lazy()
      .with_columns(abs_diff = (pl.col.column_0 - target_value).abs())
      .filter(pl.col.abs_diff == pl.col.abs_diff.min())
      .collect()
)

Then we get:

avg polars run: 0.00018435594723559915 Ultimately Polars isn't optimized for doing many tiny tiny horizontally wide datasets though.

Unfortunately, I didn't experience much of a performance boost when I tried the version above. It does seem the speeds are very machine dependent. I will continue with pandas for this specific use case. Thanks all for looking.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Raymond Han

79449234

Date: 2025-02-18 18:13:50
Score: 1
Natty:
Report link

The problem is with the "git server" plugin, there is a bug that causes the HTTP(S) not work https://issues.jenkins.io/browse/JENKINS-72606?jql=resolution%20is%20EMPTY%20and%20component%3D17613

To use the scriptler plugin, you must enable SSH in Jenkins itself (running SSH on the server will not work because it does not tie directly into Jenkins). After you have enabled SSH you will need to generate an RSA public key on your workstation. Then in Jenkins click on your userid in the upper right corner and select "Account". The on the left side click on "Security", scroll down and paste the contents of the "id_rsa.pub" file from you local machine into the SSH Public Keys box then save. Now to clone the scriptler repo use the synax: git clone ssh://@:/scritper.git

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

79449227

Date: 2025-02-18 18:10:49
Score: 1
Natty:
Report link

Thanks to user Mohkoma for sharing this solution, it helped me a lot to implement transitions in my project with Inertia. I just wanted to make a small improvement: if you wrap the only around the main content, instead of spanning the entire page, the animation will affect only the content and not the header or footer. Here is an example of how I implemented it:

<template>
    <AppHeader />
    <main class="max-w-7xl">
        <Transition name="fade" mode="out-in" appear>
            <div :key="$page.url">
                <slot />
            </div>
        </Transition>
    </main>
    <AppFooter />
</template>
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): helped me a lot
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Erik Jhordy

79449223

Date: 2025-02-18 18:07:49
Score: 1.5
Natty:
Report link

An alternative could be a regex pattern, but this is as brittle as any solution that assumes URL structures will never change. Relying on URLs for the id is probably not the most solid approach. Surely the JSON stream holds the actual ids somewhere, at least indirectly in the linked objects?

Explanation of the matching pattern /\/(\d+)\/?$/ used in the example below:

  1. \/ matches a forward slash, escaped with a backslash.
  2. (\d+) gets one + more digits
  3. \/? gets optional /, escaping it.
  4. $ matches end of string
  5. The first and last / are JS regex delimiters, so not functional parts o the patten

Most of this is touched upon in the Regular expressions at MDN. Also see String.prototype.match() for this method.

const url = 'https://jsonplaceholder.typicode.com/todos/101/';
const idInUrlPattern = /\/(\d+)\/?$/;
//? handles a null case, [1] returns the matching group
const getIdFromUrl = url => url.match(idInUrlPattern)?.[1];
console.log(getIdFromUrl(url));

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: MiB

79449221

Date: 2025-02-18 18:07:49
Score: 0.5
Natty:
Report link

adding isolate() in this line :

selected <- ifelse(input$inSelect %in% x, input$inSelect, tail(x, 1))

so it looks like this:

selected <- ifelse(isolate(input$inSelect) %in% x, isolate(input$inSelect), tail(x, 1))

appears to solve the problem

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

79449219

Date: 2025-02-18 18:05:48
Score: 5
Natty: 4.5
Report link

For me it turned out to be an exclamation mark (!) in a

element. Rookie error. Anyway, thanks to @atazmin for the suggestion to comment out different sections in the root layout component.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): to comment
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @atazmin
  • Single line (0.5):
  • Low reputation (1):
Posted by: thetada

79449217

Date: 2025-02-18 18:04:47
Score: 1.5
Natty:
Report link

One thing that works for me is to check out another branch, especially if it's very different from the current one. After that, just go back to the branch you were working on.

I don't know why, but sometimes I need to repeat this process a few times to solve it.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): works for me
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Cezar Oliveira

79449210

Date: 2025-02-18 18:02:47
Score: 0.5
Natty:
Report link

I wasted my whole day struggling with this problem, I am pretty sure my solution will work almost everywhere! SOLUTION: Just update your node version...

Reasons:
  • Whitelisted phrase (-2): SOLUTION:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Umar Zaib

79449206

Date: 2025-02-18 18:01:47
Score: 1
Natty:
Report link

I ran into the same issue and managed to fix it by doing the following:

  1. Click on the Project Name Go into the Build Settings

  2. Find Build Options: Look for the Build Options section—it’s usually where you tweak things related to how your project gets built.

  3. Change the Setting: There should be an option you can toggle, like switching it from Yes to No

  4. Rebuild the Project: Save your changes and rebuild the project to see if it works.

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

79449182

Date: 2025-02-18 17:52:44
Score: 5
Natty: 6
Report link

This article resolved the issue for me:

https://learn.microsoft.com/en-us/dotnet/maui/migration/secure-storage?view=net-maui-9.0

Reasons:
  • Blacklisted phrase (1): This article
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Ron

79449178

Date: 2025-02-18 17:50:44
Score: 1.5
Natty:
Report link

Java's ExecutorService provides a powerful way to manage threads efficiently. You can create a separate thread for each device, enabling them to start acquisition and transmit data in parallel.

Implementation Strategy: Create a Runnable or Callable task for each device. Use a FixedThreadPool or CachedThreadPool to manage threads. Start data acquisition for all devices simultaneously. Collect and process the data as soon as each device finishes transmitting.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Gaurav Mishra

79449174

Date: 2025-02-18 17:49:43
Score: 2.5
Natty:
Report link

After trying three variations on the second approach that wasn't working, I was looking at this tutorial and discovered that by setting:

scene = mi.load_file("my_scene.xml", integrator=prb_projective')

instead of

scene = mi.load_file("my_scene.xml", integrator=prb')

my optimizer was again able to find a gradient with respect to the size of the light (in the case that worked for me, I was editing a latent variable that was used to control a scale matrix that positioned the vertices of the area light).

Although this works, there are a couple things that should be noted:

  1. It's much slower to use a projective integrator
  2. It's extremely unclear how Mitsuba was able to figure out how to adjust the size of the light in the first case when using the non-projective prb integrator, but why it wasn't able to in the second case until I switched to the prb_projective integrator.

Any thoughts on this would be greatly appreciated.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): this tutorial
  • Blacklisted phrase (1.5): Any thoughts
  • Whitelisted phrase (-1): worked for me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Anson Savage

79449166

Date: 2025-02-18 17:48:43
Score: 0.5
Natty:
Report link

Install the following nuget package.

xRetry.SpecFlow

Once installed , at the feature level add following tag

@retry(2,5000)
Feature: <Feature Name>

2 -- number of times to retry 5000 -- time in ms between each retry.

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

79449158

Date: 2025-02-18 17:44:42
Score: 1
Natty:
Report link

I'm new to go-app and this library is very fascinating but here's what I understand about the Render() and OnClick() methods.

Render() is called on the server side, so you can execute code to write a new file on the server itself. While the OnClick() is executed on the client side and no longer has access to the server to create a new file.

Reasons:
  • RegEx Blacklisted phrase (1.5): I'm new
  • Has code block (-0.5):
Posted by: ginad

79449156

Date: 2025-02-18 17:43:41
Score: 4.5
Natty: 5
Report link

https://repost.aws/knowledge-center/backup-assign-resources. The conditions in list of tags is OR'ed

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

79449155

Date: 2025-02-18 17:43:41
Score: 1.5
Natty:
Report link

To come up with a greedy algorithm quickly (or slowly) is easy. The difficult part is proof of correctness. My strategy is to prove by contradiction so that requires me to quickly think of a counter-example. The proofs explained in the CLRS book for some of the algorithms could be a good start. Proofs by induction are also good but to come up with them might get difficult. Bottom line is that greedy algorithms need to be protected by proofs.

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

79449150

Date: 2025-02-18 17:40:41
Score: 0.5
Natty:
Report link

SIMD and VLIW are two distinct parallel computing architectures. Here is the details:

SIMD (Single Instruction Multiple Data): SIMD performs the same operation on multiple data points simultaneously. It's highly efficient for tasks that involve large datasets. Commonly used in graphics processing units (GPUs) and multimedia applications to accelerate tasks like image processing and matrix multiplication. e.g.: Vector operations where the same arithmetic operation is applied to a set of numbers in parallel.

VLIW (Very Long Instruction Word): VLIW allows multiple independent operations to be encoded in a single long instruction word. The compiler decides which operations can be executed in parallel. Used in digital signal processors (DSPs) and some general-purpose processors to improve instruction-level parallelism. e.g. : A VLIW processor might execute multiple arithmetic and memory operations in a single clock cycle by encoding them into one long instruction.

They are two distinct approaches to parallel computing, each with its strengths and weaknesses, and are not subsets of each other.

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

79449148

Date: 2025-02-18 17:39:40
Score: 3
Natty:
Report link

Though it seems like it wouldn't, this actually works in Arabic locales that use Eastern-Arabic numbers.

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

79449139

Date: 2025-02-18 17:34:39
Score: 14.5
Natty: 7.5
Report link

@saurabh060 did you find the solution? I am facing the same issue. Please help.

Reasons:
  • RegEx Blacklisted phrase (3): Please help
  • RegEx Blacklisted phrase (3): did you find the solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same issue
  • Contains question mark (0.5):
  • User mentioned (1): @saurabh060
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Vidhi Jain

79449127

Date: 2025-02-18 17:31:38
Score: 2
Natty:
Report link

I was able to get this working by padding out the keyboard inset. Now the layout resizes above the keyboard:

      ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
        val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
        val ime = insets.getInsets(WindowInsetsCompat.Type.ime())
        v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom + ime.bottom)
        insets
    }

This solution looks reasonable, but I'd appreciate any alternative solutions or additional advice as I'm new to android development. My initial impression from reading various docs was that I wouldn't need to do this manual padding adjustment with android:windowSoftInputMode="adjustResize" set.

Reasons:
  • RegEx Blacklisted phrase (1.5): I'm new
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: lrouleau

79449124

Date: 2025-02-18 17:28:37
Score: 3.5
Natty:
Report link

The problem has same answer as the non-ndk pure-java version of the problem. That is, too low targetSdkVersion. setting targetSdkVersion>=24 fixed the problem.

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

79449123

Date: 2025-02-18 17:28:37
Score: 2
Natty:
Report link

It turned out to be easier to cut out the time management system and rewrite everything from scratch. It was pointless to waste time on something that was written crookedly. Now I set the time and day of the week in the config for restarting specific types of dungeons and it works exactly in this hour. Viste several years ago suggested this fix, but it was rejected. And they continue to suffer to spite everyone :)

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Bogir_rus

79449120

Date: 2025-02-18 17:26:37
Score: 1.5
Natty:
Report link

In my case, Clearing Metro Bundler cache and restarting the app worked. Using the below command,

expo start -c

And I was already in the LAN mode

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

79449114

Date: 2025-02-18 17:24:36
Score: 2.5
Natty:
Report link

Looks like "/" is not enaugh, cause "/" means to use 'hidden' "/index.html" (or what default resourse path). I've got the same problem and it works, when I permit only both "/" AND "/index.html".

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

79449085

Date: 2025-02-18 17:12:34
Score: 1
Natty:
Report link

This works as expected with newer version of Rails (v6.1 and later).

some = I18n.t("something.something_else", default: nil) returns nil as expected

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

79449084

Date: 2025-02-18 17:12:34
Score: 2.5
Natty:
Report link

We have a build server with only the build tools, not IDE/UI. Where is the JavaSdkDirectory value set? There is not a registry setting on our build machine, presumably because there is no IDE/UI.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Rich Morey

79449079

Date: 2025-02-18 17:10:33
Score: 1
Natty:
Report link

I found this answer really useful, I would just like to add that, whilst not necessary, adding a "SET" command seems to remove potential errors being flagged in a Synapse notebook, magic SQL cell.

%%sql
SET myapp.myVar;
SELECT * FROM myTable WHERE myVal = '${myapp.myVar}'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Paul Mattey

79449077

Date: 2025-02-18 17:10:32
Score: 9 🚩
Natty:
Report link

I tried the same example https://github.com/tdlib/td/blob/master/example/cpp/td_example.cpp but below lambda section didn't work in my building at all.

if (o->get_id() == td_api::error::ID) {
      return;
    }

    auto chat = td::move_tl_object_as<td_api::chat>(o);
    offset_order_ = chat->order_;
    offset_chat_id_ = chat->id_;
    update_chats_ = true;

Had you the same problem? How did you fix it?

Reasons:
  • Blacklisted phrase (1): How did you fix
  • RegEx Blacklisted phrase (3): did you fix it
  • RegEx Blacklisted phrase (1.5): fix it?
  • Probably link only (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Katya Orlova

79449072

Date: 2025-02-18 17:09:32
Score: 2.5
Natty:
Report link

apt install libapache2-mod-php8.2 si tienes una version de php 8.2 esa liberia tienes que instalar

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

79449070

Date: 2025-02-18 17:09:31
Score: 7.5 🚩
Natty: 5.5
Report link

I'm using version 7.4.5.

As for the colors example, I think I understand what is written here in the answer (and in the documentation), but I can't figure out how to do it...

Let's suppose we have a simple "Car" entity with an "id" field and a "color" field. I want to show in the form a combo loaded with some colors added programmatically (red, yellow and so on..)

My question is: "where" should I write the getView().addValidValue() statements? Directly in the entity class "Car"?

Thanks in advance.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Thanks in advance
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Lorenzo Morini

79449062

Date: 2025-02-18 17:05:30
Score: 7 🚩
Natty: 4
Report link

I came across your LHA Decompressor code a week or two back and have integrated it into my application - it's been quite useful and very much appreciated. What I've found however, is that with some archives, looking at the moment like LHZ ones, during the initial "MakeEntryMap" stage where the code is reading the header, it iterates through all the entries without issue, but continues on even though there's none left and then throws an exception - I've only just started to take a look at it and see if I can figure out how to sort it, but I was wondering if you'd come across this issue? This doesn't happen with all the archives that I have, but with quite a few. It's LH5 encoded, with an extended header (1). If you have any insight, I'd be grateful for any advice - I'm not great with compression code!

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (2): was wondering
  • RegEx Blacklisted phrase (2): I'd be grateful
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Joe 90

79449061

Date: 2025-02-18 17:05:30
Score: 1
Natty:
Report link
This is all the ways to mark a serialized field before renaming depending on its type [SerializeField, FormerlySerializedAs("TAG")]:

where TAG's are:
<[property name]>k__BackingField
_[camel-cased property name]
_[property name]
m_[camel-cased property name]
m_[property name]
[property name]_
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mark

79449053

Date: 2025-02-18 17:00:28
Score: 4.5
Natty: 5.5
Report link

hey so help me my compass is just not connecting it just tries and stops after 30 seconds

Reasons:
  • Blacklisted phrase (1): help me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Aditya Raj

79449052

Date: 2025-02-18 16:59:27
Score: 11.5 🚩
Natty: 6.5
Report link

Did you manage to make the adjustment?. I have the same application, but I have not managed to make it work, I also need it to ask only for the mail on the initial screen.

Can you help me?

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Did you manage to
  • RegEx Blacklisted phrase (3): Can you help me
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: user29698890

79449050

Date: 2025-02-18 16:59:27
Score: 1.5
Natty:
Report link

If you are loading the posts and pagination via ajax, then your pagination links need have listeners attached to them that make ajax calls of their own. Right now, it appears you are loading normal pagination links, and that's not how your page is designed to work.

Three steps:

  1. Add a 'paged' variable to the data object in your ajax call so that this information is passed to your php function.
  2. Adjust your php function so that it outputs custom pagination links
  3. Add new javascript that listens for clicks on these links and makes your ajax call with the paged variable set appropriately

EDIT: On second thought, you don't need step two as you can probably attach your event and gather the page information from the links as they are.

Reasons:
  • Blacklisted phrase (1): these links
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Chad Phillips

79449048

Date: 2025-02-18 16:58:27
Score: 3
Natty:
Report link

Press F12 (developer tools) to see error. In our case, it was lack of permission to execute the Apex class associated with the controller. Worked fine in Preview...but not after publish.

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

79449047

Date: 2025-02-18 16:58:26
Score: 5.5
Natty:
Report link

Installing lib32z1 library fixed my problem. Thanks @Anon Coward.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @Anon
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Smruti Dash

79449045

Date: 2025-02-18 16:57:26
Score: 1
Natty:
Report link

Hi i also experience issues regarding this. I have a empty starter scene and i am loading an addressable (scene) additively. I set all the texture resolutions to 64px for Android (1024px works normally flawlessly if I just load it directly additively via script without using addressables). I am running the build with the default interaction toolkit setup, unity 6000.0.38f1 with Addressable (2.2.2) and building it for the quest 3 (yes 64 bit build). In one build it seems to work flawlessly in another build the app crashes when loading the addressable scene with out of memory.

Really, I don't know what the problem is with it. Same behavior with Unity 2022.3.x

Profiler about quest 3 run before crashing down

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

79449043

Date: 2025-02-18 16:56:26
Score: 3
Natty:
Report link

Currently its not possible only systemImageName is supported: https://forums.developer.apple.com/forums/thread/758159?answerId=795059022#795059022

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

79449042

Date: 2025-02-18 16:56:26
Score: 1
Natty:
Report link

I put a Timer event with an interval of 500ms on the form - it seems to work OK for me. It simply updated an unbound text control.

Private Sub Form_Timer()

txtLocalTime.Value = Time()

End Sub

I suppose if you're going to use the Form Timer event to do something else, then it could be an issue, but, I believe in keeping things simple :-)

Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: HeckingtonSkies

79449040

Date: 2025-02-18 16:54:25
Score: 1
Natty:
Report link

You should SQL_C_CHAR to fetch the value as a string and then convert it to a long long (64-bit interger) with strtoll.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: Alon Alush

79449039

Date: 2025-02-18 16:54:25
Score: 8.5
Natty: 7.5
Report link

coming in 2025, i need the same thing, did you find a solution for that? Without using powershell?

Reasons:
  • Blacklisted phrase (0.5): i need
  • RegEx Blacklisted phrase (3): did you find a solution
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Vic

79449037

Date: 2025-02-18 16:54:25
Score: 2.5
Natty:
Report link

Is there a reason you are using old version of python CV and NP? I'm on the following versions and have no problems when I copy your snippet here:

OpenCV: 4.10.0
NumPy: 2.1.0
Python: 3.12.5

If you can update you probably should. Is there large functional difference is the major versions that would stop you from updating? If there are, maybe post the relevant code. There should be a way to adjust it to work with the new versions.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is there a
  • Low reputation (1):
Posted by: Dylan Barton

79449029

Date: 2025-02-18 16:51:24
Score: 1.5
Natty:
Report link

I followed these steps to update node from 20.15.1 to 22.14.0:

 nvm install 22.14.0

 nvm use 22.14.0

 nvm alias default 22.14.0
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kaviya

79449027

Date: 2025-02-18 16:50:24
Score: 1.5
Natty:
Report link

After a few days of work, I was able to fully mimic the behavior of TF 1.x in my PyTorch model. I have created a new CustomGRUCell where the order of the Hadamard product for the calculation of the new candidate tensor is changed. See the note in the PyTorch docs for clarification: https://pytorch.org/docs/stable/generated/torch.nn.GRU.html

This CustomGRUCell has been implemented in a multi-layer GRU (which allows for multiple layers with different hidden sizes, another feature PyTorch does not have), and this was then used with the weights copied from the original TensorFlow model.

For anyone interested in the solution, see the full code on my GitHub: https://github.com/robin-poelmans/CDDD_torch/tree/main

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

79449024

Date: 2025-02-18 16:49:24
Score: 3
Natty:
Report link

Using Filter Put "!MESA" in filter, it'll filter the MESA logs.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jaiveer Singh

79449023

Date: 2025-02-18 16:48:23
Score: 2.5
Natty:
Report link

source /path/to/your/venv/bin/activate # Linux/macOS venv\Scripts\activate # Windows (PowerShell)

pip install python-nmap

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

79449019

Date: 2025-02-18 16:47:23
Score: 3.5
Natty:
Report link

I have the same issue currently. My hottest of hotfixes overrode the default serialization of the Link object with this serializer.

public class LinkDecodingSerializer extends JsonSerializer<Link> {

  @Override
  public void serialize(Link value, JsonGenerator gen, SerializerProvider serializers) throws IOException {
    /*
     *  {
     *    "relationName": {
     *      "href":  "http://localhost:69420/@cool@/api"
     *    }
     *  }
     */
    gen.writeStartObject();
    gen.writeStringField("href", UriUtils.decode(value.getHref(), StandardCharsets.UTF_8));
    gen.writeEndObject();
  }
}

Unfortunately I then discovered that that there is an internal HalLink wrapper of the Link class which made the end result look like

    
      "link": {
        "relationName": {
          "href":  "http://localhost:69420/@cool@/api"
        }
      }

This was also a problem so I had to add a HalLink serializer implementation which worked with reflection because HalLink is hidden internal class. I am currently looking for a more intelligent solution

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same issue
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Камен Христов

79449015

Date: 2025-02-18 16:45:23
Score: 2
Natty:
Report link

In my case this error was caused by extra symbols before QT += core gui widgets. So, the first step should be checking if that line compiles OK.

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

79449004

Date: 2025-02-18 16:42:22
Score: 1
Natty:
Report link

I found a solution using a script at startup of android studio.

From Settings > Startup Tasks > Add new configuration > Shell script > Choose for Execute: Script text > Script text: "flutter emulators --launch Pixel_6_Pro_API_34" > click apply or ok .

This works for me, it will force the emulator to launch on android studio startup.

You can surly change Pixel_6_Pro_API_34 to the device ID that u are using.

Reasons:
  • Whitelisted phrase (-1): works for me
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Nader

79449000

Date: 2025-02-18 16:39:21
Score: 0.5
Natty:
Report link

I filed a bug report with the svelte team: https://github.com/sveltejs/svelte/issues/15325

The response was that this behavior is by design. Props "belong" to the parent component, and are passed as getters, which means they can be revoked at any time. I don't understand why this is necessary, but I'll take for granted it is.

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

79448998

Date: 2025-02-18 16:39:21
Score: 1
Natty:
Report link

I don't find any issue in your workflow. can you just split git push origin main --tags as git push origin main and git push origin $VERSION and try once?

I presume both of your workflows are in main branch already.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Dayananda D R

79448993

Date: 2025-02-18 16:38:21
Score: 1
Natty:
Report link

In your example .com/services/botox and .com/services/injectables/botox seem to be the same content page, right?

Have you regenerated the permalinks correctly (via /wp-admin/options-permalink.php) ?

Beware of duplicate content, which could be detrimental to your SEO!
Use meta rel="canonical" to avoid this problem.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: HEXALIX

79448987

Date: 2025-02-18 16:36:21
Score: 0.5
Natty:
Report link

Here is my take on it:

function formatTime($seconds){
    $result=[];
    $lbl=['d','h','m','s'];
foreach([86400,3600,60,1] as $i=>$dr){
    $next=floor($seconds/$dr);
    $seconds%=$dr;
    if($next>0)$result[]="$next$lbl[$i]";
}
    return implode(' ',$result);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ziarek

79448980

Date: 2025-02-18 16:35:19
Score: 7 🚩
Natty:
Report link

Did you find a solution to the problem? I am reading "1.817133" with "uint" when I should be reading 109.

Reasons:
  • RegEx Blacklisted phrase (3): Did you find a solution to the problem
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you find a solution to the
  • Low reputation (1):
Posted by: Bahadir Suzen

79448971

Date: 2025-02-18 16:29:18
Score: 2.5
Natty:
Report link

I ran Powershell as an admin, and use

Get-NetAdapterBinding -AllBindings -ComponentID ZS_ZAPPRD | Disable-NetAdapterBinding

it works (!!!!)

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

79448968

Date: 2025-02-18 16:27:16
Score: 6.5 🚩
Natty:
Report link

também apresenta a mesma mensagem {"error_type": "OAuthException", "code": 400, "error_message": "Invalid platform app"}

alguém consegue auxiliar para solução?

Reasons:
  • Blacklisted phrase (2): solução
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: lucas rossini

79448961

Date: 2025-02-18 16:25:16
Score: 1
Natty:
Report link

I was still get prompted to enter my credentials even when connecting via SSH as @torek suggests in the accepted answer.

Then found out that when I created my SSH key I entered a password thinking I needed it for Gitlab authentication. Turns out this password was only to use the SSH key and would cause me to be asked for it on every pull, fetch, push etc.

What I did was delete the ssh key, remove it from Gitlab and create a new one following the steps in the official docs. This time, when creating the ssh key and being asked for a passphrase, I'd just press Enter to not use one.

And voilà, I stopped getting asked for a password all the time.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @torek
  • Low reputation (0.5):
Posted by: Sergi Mascaró

79448956

Date: 2025-02-18 16:24:15
Score: 4.5
Natty: 4
Report link

OSS Trino, and vendors such as Starburst, usually leverage CPU utilization as the determining fractor to scale up/down instead of memory. This article talks a bit about this approach; https://medium.com/bestsecret-tech/maximize-performance-the-bestsecret-to-scaling-trino-clusters-with-keda-c209efe4a081

Reasons:
  • Blacklisted phrase (1): This article
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Lester Martin

79448946

Date: 2025-02-18 16:20:14
Score: 1
Natty:
Report link

Yes, using Timer() in Android can cause performance issues, and it is not ideal for UI updates. Here’s why and how to properly handle it.


Why Using Timer() Can Be a Problem in Android?


What is the Best Alternative?


Best Solutions for Your Use Case (Updating a ProgressBar)

1️⃣ Using Handler.postDelayed() (Recommended)

Java:

Handler handler = new Handler();
int progress = 0;

Runnable runnable = new Runnable() {
    @Override
    public void run() {
        if (progress <= 100) {
            progressBar.setProgress(progress);
            progress += 5;
            handler.postDelayed(this, 500);
        }
    }
};
handler.post(runnable);

Kotlin:

val handler = Handler(Looper.getMainLooper()) 
var progress = 0

val runnable = object : Runnable {
    override fun run() {
        if (progress <= 100) {
            progressBar.progress = progress
            progress += 5
            handler.postDelayed(this, 500)
        }
    }
}

handler.post(runnable)

2️⃣ Using CountDownTimer (Best for a Timed Progress Bar)

Java

new CountDownTimer(10000, 500) { // Total 10 sec, tick every 500ms
    public void onTick(long millisUntilFinished) {
        int progress = (int) ((10000 - millisUntilFinished) / 100);
        progressBar.setProgress(progress);
    }

    public void onFinish() {
        progressBar.setProgress(100);
    }
}.start();

Kotlin

object : CountDownTimer(10000, 500) {
    override fun onTick(millisUntilFinished: Long) {
        val progress = ((10000 - millisUntilFinished) / 100).toInt()
        progressBar.progress = progress
    }

    override fun onFinish() {
        progressBar.progress = 100
    }
}.start()

3️⃣ Using ScheduledExecutorService (Better than Timer)

Java:

ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
scheduler.scheduleAtFixedRate(new Runnable() {
    @Override
    public void run() {
        runOnUiThread(() -> {
            if (progress <= 100) {
                progressBar.setProgress(progress);
                progress += 5;
            }
        });
    }
}, 0, 500, TimeUnit.MILLISECONDS);

Kotlin:

val scheduler = Executors.newScheduledThreadPool(1)
var progress = 0

scheduler.scheduleAtFixedRate({
    runOnUiThread {
        if (progress <= 100) {
            progressBar.progress = progress
            progress += 5
        }
    }
}, 0, 500, TimeUnit.MILLISECONDS)

4️⃣ Using Coroutine & delay() (Recommended for Modern Kotlin)

import kotlinx.coroutines.*

var progress = 0

fun startProgressBar() {
    GlobalScope.launch(Dispatchers.Main) {
        while (progress <= 100) {
            progressBar.progress = progress
            progress += 5
            delay(500L)
        }
    }
}

Conclusion

❌ Timer() is not ideal because it runs on a background thread, making UI updates problematic.

✅ Instead, use:

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Jay Dedaniya

79448943

Date: 2025-02-18 16:19:14
Score: 2
Natty:
Report link

Simply run asdf update.

That fix the problem.

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

79448942

Date: 2025-02-18 16:19:14
Score: 3
Natty:
Report link

It seems you are looking for ngx_http_proxy_connect_module.

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Danila Vershinin

79448940

Date: 2025-02-18 16:18:14
Score: 1.5
Natty:
Report link

Reason: This usually happens because the BottomSheet itself is intercepting touch events instead of letting the RecyclerView handle them. So when you try to scroll, the BottomSheet tries to expand or collapse instead of allowing the RecyclerView to scroll properly.

How to Fix It?

Solution 1: Make sure your BottomSheet’s peek height is set properly, so the RecyclerView gets enough space to scroll:

app:behavior_peekHeight="300dp"

Solution 2: Since the BottomSheet can intercept scrolling events, you should enable nested scrolling on your RecyclerView in your Java/Kotlin code:

recyclerView.setNestedScrollingEnabled(true);

This ensures the RecyclerView can scroll inside the BottomSheet without conflicts.

Reasons:
  • RegEx Blacklisted phrase (1.5): How to Fix It?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Umair Bashir

79448939

Date: 2025-02-18 16:18:13
Score: 5.5
Natty:
Report link

I'm facing same problem.

Can't believe NestJS doesnt have a built-in validator for this.

Checking against database is a very basic stuff. I ended with a solution similar to yours, however, I'm stuck with PUT requests.

When you apply a IsUnique validation in a PUT request, you must 'ignore' the affected row from database check.

For example: The user with id 'some-id' does a PUT to users/some-id With data:

{
  name: 'some-edited-name', // modified data
  email: '[email protected]', // didn't modify email
}

Here the validator will fails because it's detecting '[email protected]' already exists in database. In this case, validator should ignore the id with 'some-id' value. But I don't know how to achieve it :(

I would like to have something like this:

export class UpdateExerciseTypeDto {
  /* identity data */
  @ApiProperty()
  @IsNotEmpty()
  @IsString()
  @IsUnique(ExerciseType, { ignore: 'id' }) // something like this
  name: string;
}
Reasons:
  • Blacklisted phrase (1): :(
  • Blacklisted phrase (1): how to achieve
  • RegEx Blacklisted phrase (1.5): I'm stuck
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I'm facing same problem
  • Low reputation (0.5):
Posted by: Zalo

79448927

Date: 2025-02-18 16:14:11
Score: 0.5
Natty:
Report link

No need to unzip the files, use zgrep instead of grep. This can even grep a mixture of zipped and non-zipped files. Note that you may have to escape some special characters, e.g:

zgrep  '\(too\|to\) slow' *.log.gz *.log     # finds "too slow" and "to slow"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: karsten

79448925

Date: 2025-02-18 16:14:11
Score: 1.5
Natty:
Report link

You should use the DragMode option into QGraphicsView:

graphicsView.setDragMode(QGraphicsView.DragMode.ScrollHandDrag)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: LLefevre

79448868

Date: 2025-02-18 16:10:10
Score: 2
Natty:
Report link

Function: When you use a regular function to access or compute a value, you have to call it explicitly with parentheses eg: (user.fullName()).

Getter: When you use a getter, you don't need to call it as a function, and you access it just like a regular property eg: (user.fullName).

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

79448861

Date: 2025-02-18 16:06:10
Score: 1.5
Natty:
Report link

You can also use the following library written in C++ language

Geodesic Distance 2D/3D

It's very old, so I forked the repo and updated the installation files and procedures.

You'll find an example that I created myself with an artificially generated sphere; test_3d_2.py

By the way, I'd be happy to get feedback on my method if anyone sees any improvements to be made.

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

79448855

Date: 2025-02-18 16:04:09
Score: 0.5
Natty:
Report link

I finally found the code :

var a = [145, 234, 23, 56, 134, 123, 78, 124, 234, 23, 56, 98, 34, 111];

var pattern = [234, 23, 56];

//Loop the array in reverse order :
for(var i = a.length - 1; i >= 0; i--)
{   
    if(a.slice(i, i + pattern.length).toString() === pattern.toString())
    {
        console.log("Last index found : "+i);
        
        break;
    }
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: totoaussi

79448853

Date: 2025-02-18 16:04:09
Score: 8
Natty: 7.5
Report link

Could you please let me know why you are looking for this feature? or Elaborate on how this would be helpful to you so that I can help you according to that?

Reasons:
  • RegEx Blacklisted phrase (2.5): Could you please let me know
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user29698206

79448852

Date: 2025-02-18 16:04:08
Score: 4
Natty: 4
Report link

looking for this too i cant find an example

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

79448847

Date: 2025-02-18 16:03:08
Score: 1
Natty:
Report link

In my case, original answer with upgrading cheerio did not help. What did help though was to upgrade docusaurus-search-local to latest version (0.48.5 as of writing this, original non-functional version was 0.40.0).

package.json:

    "@easyops-cn/docusaurus-search-local": "^0.48.5",
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mixi

79448840

Date: 2025-02-18 16:00:07
Score: 1.5
Natty:
Report link

You can now do this using directly pyarrow :

import pyarrow.parquet as pq
 
# global file informations (number of columns, rows, groups,...)
metadata = pq.read_metadata(my_file_path)
print(metadata)
 
# detail of indexes and columns names and types
schema = pq.read_schema(my_file_path)
print(schema)

More information at https://arrow.apache.org/docs/python/parquet.html#inspecting-the-parquet-file-metadata

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

79448839

Date: 2025-02-18 16:00:07
Score: 2.5
Natty:
Report link

You can monitor real time message rates on topics/consumer groups using https://github.com/sivann/kafkatop, it's a TUI.

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

79448837

Date: 2025-02-18 15:59:07
Score: 1.5
Natty:
Report link

I was also stuck with the same error but in my case the issue was:

While uploading the project Project.exe file was getting auto removed from the hosting root folder. In Web.Config file .exe was referenced. We uploaded .exe file again in the root and problem fixed.

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

79448832

Date: 2025-02-18 15:56:06
Score: 3
Natty:
Report link

You can change this in the Windows Terminal settings. In the 'Advanced profile settings' there is an option called 'Never close automatically'.

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

79448830

Date: 2025-02-18 15:56:06
Score: 2
Natty:
Report link

Try sending data such that the component rendering the list is filling up the space. Either reduce your list component container size or increase data coming through (use mock). You have to make sure the data coming on first call is filling the container. You can try sending too much data in the first call to see if on scroll the onEndReached is called or not.

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

79448824

Date: 2025-02-18 15:53:05
Score: 3.5
Natty:
Report link

I did a quick search and found https://github.com/soxtoby/SlackNet .

Perhaps this can meet your needs.

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

79448823

Date: 2025-02-18 15:53:05
Score: 3.5
Natty:
Report link

If you are curious, take a look at https://thriae.io/db/transpile to convert ORACLE dialect online to PostgreSQL.

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

79448821

Date: 2025-02-18 15:52:05
Score: 1
Natty:
Report link

Autotools, CMake, and SCons are popular build automation tools used in software development. Here are the key use cases of each:

Autotools: Best for projects requiring high portability across Unix-like systems; complex to set up and maintain.

CMake: User-friendly, supports cross-platform builds, generates native build scripts.

SCons: Highly flexible with Python scripting; slower for large projects.

Each tool has its strengths and is chosen based on the specific needs of the project and the development environment.

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

79448820

Date: 2025-02-18 15:52:05
Score: 1
Natty:
Report link

A 'div' is a block element, and a 'span' is an inline element, so you can't place a 'div' inside a 'span'.

Block elements cannot be placed inside inline elements because inline elements are meant to contain only text or other inline elements, not larger block elements. This rule helps maintain a clear webpage structure, improves accessibility, and ensures consistent display across all browsers.

Here are official sources explaining why inline elements cannot contain block elements:

Block-level content Inline-level content

These sources cover the differences between block and inline elements and why inline elements should only contain text or other inline elements.

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

79448816

Date: 2025-02-18 15:51:05
Score: 3
Natty:
Report link

a collegue pointed me to a solution.

@ClientHeaderParam(name = "X-Http-Method-Override", value="GET")

Using @POST and this annotation is possible to execute GET call with body.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @POST
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: dsestini

79448799

Date: 2025-02-18 15:45:03
Score: 2
Natty:
Report link

I had this issue and fixed it by uploading the azure-pipelines.yml file to the main branch - I could then select it. Initially I just had the yml file in my releases branch.

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

79448795

Date: 2025-02-18 15:42:02
Score: 3.5
Natty:
Report link

same here, updated gradle plugin from 2.0.4 to 2.2.0 resolved the issue

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

79448781

Date: 2025-02-18 15:35:00
Score: 3
Natty:
Report link

I am interested in developing an Orthodontic planning Software, like the one you have created if it is ok for you we can have a conversation.

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

79448779

Date: 2025-02-18 15:34:00
Score: 2.5
Natty:
Report link

Clip-path is limited to simple shapes and polygons, I'm not sure that I get what you mean by "chaotic strips" but it sounds like you could achieve this by using svg's stroke-dasharray/stroke-dashoffset. Maybe try using svg mask instead of clip-path.

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

79448772

Date: 2025-02-18 15:30:59
Score: 1.5
Natty:
Report link

Would another possibility be to subclass TopLevel? It would take on the added responsibility of keeping track of open Toplevels. It could have a class attribute list of open windows, which the user would have to update on return from the constructor. Or can the constructor add 'self' to the list, before the constructor returns? Additionally,perhaps there could be hooks to handle close box requests and keyboard close requests( e.g.: on Mac -'Command-w') so that the list could be updated when the user wants close the window.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: dday52

79448765

Date: 2025-02-18 15:28:59
Score: 2.5
Natty:
Report link

Thanks! This worked for me as well.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): This worked for me
  • Whitelisted phrase (-1): worked for me
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: BBB

79448755

Date: 2025-02-18 15:23:57
Score: 3.5
Natty:
Report link

Can't get into my Facebook account I no longer have the number that's on my Facebook I don't have it anymore

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can't
  • Low reputation (1):
Posted by: Chris Boyd

79448752

Date: 2025-02-18 15:22:57
Score: 0.5
Natty:
Report link

It doesn't matter what the dimensions are. Simply do a recursive flattening should work:

def flatten(lst):
    flat_list = []
    for item in lst:
        if isinstance(item, list):
            flat_list.extend(flatten(item))
        else:
            flat_list.append(item)
    return flat_list
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: PkDrew