79483425

Date: 2025-03-04 10:51:44
Score: 4.5
Natty:
Report link

After allowing the performance counter, ncu correctly profiles my program.

If you have same problem, follow this page

  1. Open the NVIDIA Control Panel in your window 11
  2. Check "Enable Developer Settings"
  3. Under 'Developer' > 'Manage GPU Performance Counters', select 'Allow access to the GPU performance counter to all users'

Why do I have to set these settings in "Window", even if I profile CUDA programs in Ubuntu-18.04, WSL2?

Following this page, this page says:

Once a Windows NVIDIA GPU driver is installed on the system, CUDA becomes available within WSL 2. The CUDA driver installed on Windows host will be stubbed inside the WSL 2 as libcuda.so, therefore users must not install any NVIDIA GPU Linux driver within WSL 2.

I think this is the reason why I need to check the driver in Window. The point is I was not in the native linux, I was in the linux with the WSL

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): have same problem
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: kdh

79483421

Date: 2025-03-04 10:50:44
Score: 1
Natty:
Report link

I think you can also do MyMap::iterator::reference it .

auto f = [](MyMap::iterator::reference it) {std::cout << it.first + it.second << std::endl; };
std::for_each(mymap.begin(), mymap.end(), f);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Anand Rathi

79483408

Date: 2025-03-04 10:47:43
Score: 3
Natty:
Report link

The error Cannot read property 'back' of undefined probably means the camera facing attribute is not declared. First Check the states

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

79483407

Date: 2025-03-04 10:47:43
Score: 0.5
Natty:
Report link

The packagist requirements for laravel/homestead do state that this is not supported. There is some mention that this version of the package will not be updated, notably in this reddit thread.

There is, however, a fork of the package from the original creator - svpernova09/homestead - that does indeed support php 8.4. Relevant packagist specification.

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

79483394

Date: 2025-03-04 10:43:40
Score: 6 🚩
Natty:
Report link

Have you been able to resolve your issue ? I am having same problem I tried with javascript incetion but it did not work.

 ModelViewer(
              src: 'assets/model.glb', // Your model path
              id: 'myModelViewer',
              ar: true,
              cameraControls: true,
              onModelViewerCreated: (controller) {
                controller.runJavaScript("""
                  let points = [];
                  const modelViewer = document.querySelector("#myModelViewer");

                  modelViewer.addEventListener('scene-graph-ready', () => {
                    modelViewer.addEventListener("click", async (event) => {
                      const hit = await modelViewer.positionAndNormalFromPoint(event.clientX, event.clientY);
                      if (hit) {
                        points.push(hit.position);
                        if (points.length === 2) {
                          let dx = points[0].x - points[1].x;
                          let dy = points[0].y - points[1].y;
                          let dz = points[0].z - points[1].z;
                          let distance = Math.sqrt(dx * dx + dy * dy + dz * dz);
                          // Send the calculated distance to Flutter
                          window.flutter_inappwebview.callHandler('distanceCalculated', distance);
                          points = [];  // Reset after measuring
                        }
                      }
                    });
                  });
                """);
              },
            ),

Since onModelViewerCreated is not invoking

Reasons:
  • Blacklisted phrase (1.5): Have you been able to
  • Blacklisted phrase (1): did not work
  • RegEx Blacklisted phrase (1.5): resolve your issue ?
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I am having same problem
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Przemo

79483383

Date: 2025-03-04 10:37:39
Score: 0.5
Natty:
Report link

If running composer global require laravel/installer isn't updating the installer for you, you can be explicit about the major version by, for example, running :

composer global require "laravel/installer:^5.x" -W

to force composer to bump up to the latest version.

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

79483382

Date: 2025-03-04 10:36:38
Score: 0.5
Natty:
Report link

Resolved it myself

OnInitializedAsync() was trying to call an API that wasn't async. This resulted in the JSON object I returned was empty when it mattered.

Before:

app.MapGet("/api/blob", (IBlobService blobService) => blobService.GetStrings());
app.MapGet("/api/sql", (ISqlService repo) =>
{
    var sqlDiners =  repo.GetLastestDiners();
    return sqlDiners is not null
        ? Results.Ok(sqlDiners)
        : Results.NotFound("No customers found.");
});

After:

app.MapGet("/api/blob", async (IBlobService blobService) => await blobService.GetStrings());
app.MapGet("/api/sql", async (ISqlService repo) =>
{
    var sqlDiners =  await repo.GetLastestDiners();
    return sqlDiners is not null
        ? Results.Ok(sqlDiners)
        : Results.NotFound("No customers found.");
});
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mikkel Rohde Glerup

79483381

Date: 2025-03-04 10:36:38
Score: 2.5
Natty:
Report link

you may use variables --width33: round(33vw, 1px); width: calc((var(--width33) - 10px)/2); ...or whatever you want

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Андрей Павлов

79483374

Date: 2025-03-04 10:34:37
Score: 4
Natty:
Report link

Your questions are scattered among multiple topics, so I will be focusing on the one in the title; for other questions please research them first ("what is parallel computing vs. parallel processing?").

I'm focusing on the questions: "Is there any parallel computing involved in scipy.linalg.solve?" and "Does it necessarily need all the matrice elements at once?".

Question 1: "Is there any parallel computing involved in scipy.linalg.solve?"

SciPy's linalg.solve itself does not directly handle parallelization, but it relies on optimized libraries for linear algebra operations like LAPACK (Linear Algebra PACKage), which can make use of parallelization internally (i.e. when running on multi-core processors). Whenever the installed libraries are compiled with parallelism or not depends on your system, of course, so the answer would depend on your installation.

For example, PLASMA is optimized for multi-core processors, since it is it's key feature.

Question 2: "Does it necessarily need all the matrice elements at once?".

When you use scipy.linalg.solve, you are solving the system Ax=b for x, and this function requires the matrix A and vector b as inputs. You need the entire matrix, yes.

If you have a sparse matrix, you should use scipy.sparse.linalg.spsolve instead, but if you need to solve for x or calculate the full inverse, SciPy expects access to all the elements of the matrix A at the start.

Reasons:
  • Blacklisted phrase (1): Is there any
  • RegEx Blacklisted phrase (1.5): solve?
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Sobek Sage

79483360

Date: 2025-03-04 10:29:36
Score: 0.5
Natty:
Report link

Resilience4j v2.3.0 contains some fixes to address virtual-thread-pinning issue: https://github.com/resilience4j/resilience4j/commit/ab0b708cd29d3828fbc645a0242ef048cc20978d

I would definitely consider options to reconfigure Resilience4j internal thread pool to a pseudo-thread-pool that uses virtual threads.

Please note that as of now even latest Spring Cloud (2024.0.0) still references resilience4j-bom 2.2.0, so one needs to manually define dependency on version 2.3.0.

Reasons:
  • No code block (0.5):
Posted by: Krzysztof Tomaszewski

79483343

Date: 2025-03-04 10:23:35
Score: 5.5
Natty: 6.5
Report link

can shap values be generated using model built on pyspark or do we necessarily need to convert to pandas?

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

79483341

Date: 2025-03-04 10:22:34
Score: 1
Natty:
Report link

def do_GET(self):

with open('index.html', 'rb') as file:
    html = file.read()
self.do_HEAD()
self.wfile.write(html)

I now need to adapt the HTML-Python communication so that my HTML actually interacts with the GPIO. My main issues are:

I suck at Python (big time) My buttons are SVGs that were previously used to trigger JS functions using the onmousedown and onmouseup events (but JS doesn't work so...) I need to GPIO to be equal to 1 when the button is pressed and 0 when released Have I mentioned that I suck at Python? Jokes aside, here's a sample of my HTML:

`
  1. Heading

=======

`

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Idris idris abdullahi

79483340

Date: 2025-03-04 10:22:34
Score: 0.5
Natty:
Report link

The issue with your grid toggle button not working properly is primarily caused by theblit parameter.

The Fix:

ani = FuncAnimation(fig, animate, frames=100, interval=50, blit=False)

And make sure your toggle function forces a complete redraw:

def grid_lines(event):
    global grid_visible
    grid_visible = not grid_visible
    
    if grid_visible:
        ax.grid(True, color='white')
    else:
        ax.grid(False)
    
    # Force immediate redraw
    fig.canvas.draw()

Why This Works:

  1. The main issue is that with blit=True, Matplotlib only redraws the what are returned from the animation function for optimization. Grid lines aren't included in these, so they don't update.

  2. Setting blit=False forces a complete redraw of the figure with each animation frame.

  3. Using fig.canvas.draw() instead of fig.canvas.draw_idle() forces a redraw when the button is clicked. enter image description here

enter image description here

Reasons:
  • Blacklisted phrase (0.5): not working properly
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
Posted by: EuanG

79483339

Date: 2025-03-04 10:22:34
Score: 1.5
Natty:
Report link
<TextInput 
  multiline={true} 
  keyboardType="default" 
  textContentType="none"
/>`

Check multiline and textContentType

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

79483338

Date: 2025-03-04 10:22:34
Score: 1
Natty:
Report link

Similar to prabhakaran's answer, in my case the problem was that I had created a form which had a LOT of logic in it (probably a symptom of bad design but there you go). To tame that complexity i had moved related sections of the code out into their own partial class files e.g. I had:

etc

Somehow Visual Studio generated .resx files for each of the partial class files as well as the primary file e.g. I had

etc

All of these partial class files all related to the same class 'MyForm', so all these .resx files all related to that same class, hence the message "The item was specified more than once in the "Resources" parameter."

All i had to do was delete all the extra .resx files leaving just 'MyForm.resx' and the problem was resolved.

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

79483333

Date: 2025-03-04 10:20:34
Score: 3.5
Natty:
Report link

OK got it! Console in AppService told me the truth. The NuGet package Serilog.Sinks.AzureApp was missing. Works like a charm now with appsettings. Thanks for your support!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Uwe Becker

79483293

Date: 2025-03-04 10:08:31
Score: 3.5
Natty:
Report link

Good work brotha Nevermind bad work brotha

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

79483288

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

For Angular material >18, the below code works fine.

:host ::ng-deep .mat-mdc-form-field .mdc-line-ripple {
    display: none !important;
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Arash

79483287

Date: 2025-03-04 10:03:30
Score: 1
Natty:
Report link

for anyone using appRouter (next.js 13+), use window.history.replaceState instead.

from the docs:

Next.js allows you to use the native window.history.pushState and window.history.replaceState methods to update the browser's history stack without reloading the page.

window.history.replaceState({}, '', `/products?sort=xxx`)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: gigigimay

79483286

Date: 2025-03-04 10:03:30
Score: 0.5
Natty:
Report link
/**
 * 
 * @param {Element} utubeAnchorElt -utube imposing as DOM elt;
 * @param {string} scriptUtubeId - your script id
 * @param {string} videoHeight -desired height of utube;
 * @param {string} videoWidth -desired width of utube;
 * @param {string} videoId - output <video id="videoId">
 */
async function youTubeIframeManagaer(
    utubeAnchorElt,
    scriptUtubeId,
    videoHeight,
    videoWidth,
    videoId
) {
    var utubeScriptTag = document.getElementById(`${scriptUtubeId}`);
    utubeScriptTag.src = "https://www.youtube.com/iframe_api";
    utubeScriptTag.defer = true;
    utubeAnchorElt.appendChild(utubeScriptTag);

    var player;

    function onYouTubeIframeAPIReady() {
        player = new YT.Player(`${utubeAnchorElt.id}`, {
            height: `${videoHeight}`,
            width: `${videoWidth}`,
            videoId: `${videoId}`,
            playerVars: {
                'playsinline': 1
            },
            events: {
                'onReady': onPlayerReady,
                'onStateChange': onPlayerStateChange
            }
        });
    }
    // 4. The API will call this function when the video player is ready.
    function onPlayerReady(event) {
        event.target.playVideo();
    }
    var done = false;
    function onPlayerStateChange(event) {
        if (event.data == YT.PlayerState.PLAYING && !done) {
            setTimeout(stopVideo, 6000);
            done = true;
        }
    }
    function stopVideo() {
        player.stopVideo();
    }
}
Reasons:
  • Blacklisted phrase (1): youtube.com
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: KolivaDev

79483277

Date: 2025-03-04 09:58:29
Score: 0.5
Natty:
Report link

As mentioned by @cardamom, linux command lscpu returns a lot of interesting information. Note that their is an option (-J, --json) to get the output in the JSON format. This make it much easier to parse in python.

import json
import subprocess

cpu_info = json.loads(subprocess.check_output("lscpu -J", shell=True))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Remi Cuingnet

79483272

Date: 2025-03-04 09:55:28
Score: 3.5
Natty:
Report link

The Template Literal Editor extension works for both VSCode and Open-VSX at the moment.

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

79483270

Date: 2025-03-04 09:53:28
Score: 0.5
Natty:
Report link

I have taken some times to understand that, but :

simply rename config.sample.inc.php to config.inc.php.

If needed, ensure that the configuration inside the new config.inc.php is equivalent to the configuration of the former config.inc.php in the previous version.

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

79483268

Date: 2025-03-04 09:52:27
Score: 3
Natty:
Report link

You probably already found the problem here, but the column "Latitude" should be named "x" and the column "Longitude" "y".

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

79483263

Date: 2025-03-04 09:50:27
Score: 0.5
Natty:
Report link

I looked at the correct answer and it explains the case very well.

For those who are looking for short answers, simply use the following:

// Not the best performance but it kills the reference
$new = unserialize(serialize($original));

Instead of using $new = clone $original; in the question code.

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

79483261

Date: 2025-03-04 09:50:27
Score: 0.5
Natty:
Report link

Got the same issue.

Did you try to tweak the preferences?

Preferences → Editors → SQL Editor → Code Completion → "Insert table name (or alias) with column names" = Disabled (N/A)

As per my own feedback, I didn't see any change after disabling it. It looks like the v.24.3.5 has a different behaviour.

Reasons:
  • Whitelisted phrase (-2): Did you try
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Ch0

79483254

Date: 2025-03-04 09:47:26
Score: 0.5
Natty:
Report link
<script>
  // 2. This code loads the IFrame Player API code asynchronously.
  var tag = document.createElement('script');

  tag.src = "https://www.youtube.com/iframe_api";
  var firstScriptTag = document.getElementsByTagName('script')[0];
  firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

  // 3. This function creates an <iframe> (and YouTube player)
  //    after the API code downloads.
  var player;
  function onYouTubeIframeAPIReady() {
    player = new YT.Player('player', {
      height: '390',
      width: '640',
      videoId: 'M7lc1UVf-VE',
      playerVars: {
        'playsinline': 1
      },
      events: {
        'onReady': onPlayerReady,
        'onStateChange': onPlayerStateChange
      }
    });
  }

  // 4. The API will call this function when the video player is ready.
  function onPlayerReady(event) {
    event.target.playVideo();
  }

  // 5. The API calls this function when the player's state changes.
  //    The function indicates that when playing a video (state=1),
  //    the player should play for six seconds and then stop.
  var done = false;
  function onPlayerStateChange(event) {
    if (event.data == YT.PlayerState.PLAYING && !done) {
      setTimeout(stopVideo, 6000);
      done = true;
    }
  }
  function stopVideo() {
    player.stopVideo();
  }
</script>
Reasons:
  • Blacklisted phrase (1): youtube.com
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: KolivaDev

79483252

Date: 2025-03-04 09:46:26
Score: 2
Natty:
Report link

It shows you're successfully logging into the Garmin API in Rails. But could not receive any data. This could be due to missing API permissions. Or it might be an incorrect request formats, or expired tokens.

If you're facing issues with your Garmin device and searching with "Should I Sell My Garmin Watch instead?", platforms like Musicmagpie, Recyclepro make it easy to Sell Garmin Watch models for the best price.

However, if you'd prefer troubleshooting the issue, feel free to discuss your API error logs. I am available all the time.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Sam White

79483248

Date: 2025-03-04 09:44:26
Score: 1.5
Natty:
Report link

You still have a 10px margin at this spot.

#header{margin-right: 10px; margin-left: 10px; font-size: xx-large;}

So

 #header{font-size: xx-large;}

That should solve your problem.

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

79483244

Date: 2025-03-04 09:43:26
Score: 3
Natty:
Report link

For those using Azure SQL, regular expression functions are now available as a preview.

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

79483239

Date: 2025-03-04 09:40:25
Score: 1.5
Natty:
Report link

If your aim is to use it like a cache there are several options:

  1. Service with a singleton lifetime containing that ConcurrentDictionary. It would mean that your controller uses the same service instance on every request.
  2. Making your ConcurrentDictionary a static field.
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Jaroslav

79483233

Date: 2025-03-04 09:39:25
Score: 1
Natty:
Report link

Resident evil 4

10101

  1. Package name: jjp.co.capcom.android.googleplay.Evil5 Launch Activity: jjp.co.capcom.android.googleplay.Evil5.Bio4PreActivity Signature SHA-1: test signature App path: /data/app/~~mbBki89q_Jg87m2R8cWetw==/jjp.co.capcom.android.googleplay.Evil5-rHBDenysWfBKL8GwSy_ZYA==/base.apk App's data path: /data/user/0/jjp.co.capcom.android.googleplay.Evil5/ Version: 1.01.01 ~ www.androidoyun.club Build: 10000 minSDK: 8 TargetSDK: 8 User ID: 10332 Installed from: Package installer Install date: 2025-03-04 14:55

APK size: 77.388 Mb Dalvik-cache size: 0.020 Mb

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

79483229

Date: 2025-03-04 09:38:25
Score: 2.5
Natty:
Report link

The issue is likely due to the type of release you are using. Play Integrity won't function with Debug or Internal App Sharing, only with a valid Google Play release. Once your app is published on Google Play, reCaptcha will no longer be used, and your user will receive the message immediately.

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

79483226

Date: 2025-03-04 09:37:24
Score: 2
Natty:
Report link

I tried this by creating a separate globals.d.ts file with the declaration in it, and it worked.

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

79483223

Date: 2025-03-04 09:36:24
Score: 1
Natty:
Report link

With Xpath you can add order if you need a certain element with the same attributes. In this case, of course as a pseudocode it would be like this:

"//form[0]/button"

This will only select the button in the first <form> element

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

79483209

Date: 2025-03-04 09:31:23
Score: 1
Natty:
Report link

Updated way to find the textField from searchBar and hide the “x” symbol rather than “cancel” button :

your_SearchBar.searchTextField.clearButtonMode = UITextFieldViewModeNever;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vikas Saini

79483206

Date: 2025-03-04 09:29:22
Score: 1.5
Natty:
Report link

This works for me:

  1. Pin VS Code
  2. Unpin VS Code
  3. Pin VS Code
  4. Unpin VS Code

And now it works!

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: 128ticks

79483204

Date: 2025-03-04 09:27:22
Score: 3
Natty:
Report link

For those looking for innovative space-saving solutions, we optimized our UX and SEO at InvisFurniture. Implementing structured data really helped with visibility!

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

79483203

Date: 2025-03-04 09:26:22
Score: 1.5
Natty:
Report link

I do it in a simple way.

'DIRS': ['templates']

Then I create a templates folder in root directory or in any app directory. It works perfectly fine.

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

79483196

Date: 2025-03-04 09:24:21
Score: 5
Natty: 5
Report link

same error for me, on RN 0.76.7

Reasons:
  • RegEx Blacklisted phrase (1): same error
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: jules

79483195

Date: 2025-03-04 09:23:20
Score: 1.5
Natty:
Report link

Remove the @Component or @Service annotation frome here:

public class JwtRequestFilter extends OncePerRequestFilter {

    private final MyUserDetailsService userDetailsService;

    private final JwtUtil jwtUtil;

    public JwtRequestFilter(MyUserDetailsService userDetailsService, JwtUtil jwtUtil) {
        this.userDetailsService = userDetailsService;
        this.jwtUtil = jwtUtil;
    }

In your SecurityConfig:

@Configuration
@EnableWebSecurity
public class SecurityConfig {

    private final MyUserDetailsService myUserDetailsService;
    private final JwtUtil jwtUtil;

    @Autowired
    public SecurityConfig(MyUserDetailsService myUserDetailsService, JwtUtil jwtUtil) {
        this.myUserDetailsService = myUserDetailsService;
        this.jwtUtil = jwtUtil;
    }

@Bean
    public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
        JwtRequestFilter jwtRequestFilter = new JwtRequestFilter(myUserDetailsService, jwtUtil);
    

... remaining code
}

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Component
  • User mentioned (0): @Service
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Aucta Dev

79483188

Date: 2025-03-04 09:19:19
Score: 2.5
Natty:
Report link

Have you checked if your custom backend is properly set up for production? Sometimes CORS issues or incorrect API URLs can cause problems when deploying. Also, ensure that your app has all the necessary permissions, especially for network access

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: SonTL

79483186

Date: 2025-03-04 09:19:19
Score: 1
Natty:
Report link

Use assets/applepay.json as your paymentConfigurationAsset for Apple Pay. You can save the file path to a variable the reference it in the paymentConfigurationAsset field. Do the same for google pay . Here is is referenced in the docs you linked https://github.com/google-pay/flutter-plugin/blob/main/pay/example/lib/payment_configurations.dart

ApplePayButton(
              paymentConfigurationAsset:PaymentConfiguration.fromJsonString(
 applepayJsonReferenceToAssets)
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Yonko Kilasi

79483184

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

Pure dart dtls implementation: https://github.com/KellyKinyama/dartls/tree/master/lib/src/dtls/examples/server You can it currently support 3 ciphers and dtls servers. You can use use it implement dtls servers, dtls clients.Kindly check the example folder to see the use cases

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Kelly Kinyama

79483175

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

I would suggest in whatever environment/language you are in to just write a quick test where you spawn a bunch of threads writing and reading from the global, and see what happens.

Sorry no one actually answered your question, and just assumed your case would never happen.

I actually ran into this case recently, when trying to diagnose the impact of a bug in the wild (eg I can obviously fix it in a later release, but understanding the impact of the bug here was also very critical!)

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

79483169

Date: 2025-03-04 09:11:18
Score: 3
Natty:
Report link

REGEXP_INSTR is now available as a preview in Azure SQL and SQL Database in Microsoft Fabric

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

79483165

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

I tried tried convolve2d (https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.convolve2d.html). But the results as obtained from the original method in the question. @nils-werner The code was not possible to add in the comments section so I added here.

import numpy as np
from scipy.signal import convolve2d

def kernel_convolution_V3(matrix, kernel):
    if not isinstance(matrix, np.ndarray):
        matrix = np.array(matrix)
    n, m = matrix.shape

    if not isinstance(kernel, np.ndarray):
        kernel = np.array(kernel)
    k = kernel.shape

    assert n >= k[0] and m >= k[1], 'Kernel can\'t be bigger than matrix in terms of shape.'

    stride = (1, 1)
    dilation = (1, 1)
    
    h_out = np.floor((n - (k[0] - 1) - 1) / stride[0] + 1).astype(int)
    w_out = np.floor((m - (k[1] - 1) - 1) / stride[1] + 1).astype(int)
    assert h_out > 0 and w_out > 0, 'Can\'t apply input parameters, one of resulting output dimension is non-positive.'

    # Flip the kernel for convolution
    flipped_kernel = np.flip(kernel)
    
    # Perform the convolution
    convolved = convolve2d(matrix, flipped_kernel, mode='valid')
    
    # Calculate the Euclidean distance
    matrix_out = np.sqrt(convolved)

    return matrix_out[:h_out, :w_out]
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @nils-werner
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Aleph

79483150

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

I have it working with "google_maps_cluster_manager-3.1.0", but I needed to hide Cluster and ClusterManager in both the plugin code and my own.

import 'package:google_maps_flutter/google_maps_flutter.dart' hide Cluster;

import 'package:google_maps_flutter_platform_interface/google_maps_flutter_platform_interface.dart' hide Cluster;
Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dennis Hilmar

79483134

Date: 2025-03-04 09:00:15
Score: 0.5
Natty:
Report link

@Lawrence Cherone answer is the case when you have installed node|electron|bun|deno|whatever. But if you want to know the ABI version before you install anything, then here is an abi_version_registry.json which provides more details about it. At the time of writing this answer, the list looks like following:

    {
  "NODE_MODULE_VERSION": [
    { "modules": 135,"runtime": "electron", "variant": "electron",             "versions": "36" },
    { "modules": 134,"runtime": "node",     "variant": "v8_13.0",              "versions": "24.0.0-pre" },
    { "modules": 133,"runtime": "electron", "variant": "electron",             "versions": "35" },
    { "modules": 132,"runtime": "electron", "variant": "electron",             "versions": "34" },
    { "modules": 131,"runtime": "node",     "variant": "v8_12.9",              "versions": "23.0.0" },
    { "modules": 130,"runtime": "electron", "variant": "electron",             "versions": "33" },
    { "modules": 129,"runtime": "node",     "variant": "v8_12.8",              "versions": "23.0.0-pre" },
    { "modules": 128,"runtime": "electron", "variant": "electron",             "versions": "32" },
    { "modules": 127,"runtime": "node",     "variant": "v8_12.4",              "versions": "22.0.0" },
    { "modules": 126,"runtime": "node",     "variant": "v8_12.3",              "versions": "22.0.0-pre" },
    { "modules": 125,"runtime": "electron", "variant": "electron",             "versions": "31" },
    { "modules": 124,"runtime": "node",     "variant": "v8_12.2",              "versions": "22.0.0-pre" },
    { "modules": 123,"runtime": "electron", "variant": "electron",             "versions": "30" },
    { "modules": 122,"runtime": "node",     "variant": "v8_11.9",              "versions": "22.0.0-pre" },
    { "modules": 121,"runtime": "electron", "variant": "electron",             "versions": "29" },
    { "modules": 120,"runtime": "node",     "variant": "v8_11.8",              "versions": "21.0.0" },
    { "modules": 119,"runtime": "electron", "variant": "electron",             "versions": "28" },
    { "modules": 118,"runtime": "electron", "variant": "electron",             "versions": "27" },
    { "modules": 117,"runtime": "electron", "variant": "electron",             "versions": "26" },
    { "modules": 116,"runtime": "electron", "variant": "electron",             "versions": "25" },
    { "modules": 115,"runtime": "node",     "variant": "v8_11.3",              "versions": "20.0.0" },
    { "modules": 114,"runtime": "electron", "variant": "electron",             "versions": "24" },
    { "modules": 113,"runtime": "electron", "variant": "electron",             "versions": "23" },
    { "modules": 112,"runtime": "node",     "variant": "v8_10.9",              "versions": "20.0.0-pre" },
    { "modules": 111,"runtime": "node",     "variant": "v8_10.7",              "versions": "19.0.0" },
    { "modules": 110,"runtime": "electron", "variant": "electron",             "versions": "22" },
    { "modules": 109,"runtime": "electron", "variant": "electron",             "versions": "21" },
    { "modules": 108,"runtime": "node",     "variant": "v8_10.1",              "versions": "18.0.0" },
    { "modules": 107,"runtime": "electron", "variant": "electron",             "versions": "20" },
    { "modules": 106,"runtime": "electron", "variant": "electron",             "versions": "19" },
    { "modules": 105,"runtime": "node",     "variant": "v8_9.8",               "versions": "18.0.0-pre" },
    { "modules": 104,"runtime": "node",     "variant": "v8_9.7",               "versions": "18.0.0-pre" },
    { "modules": 103,"runtime": "electron", "variant": "electron",             "versions": "18" },
    { "modules": 102,"runtime": "node",     "variant": "v8_9.5",               "versions": "17.0.0" },
    { "modules": 101,"runtime": "electron", "variant": "electron",             "versions": "17" },
    { "modules": 100,"runtime": "node",     "variant": "v8_9.4",               "versions": "17.0.0-pre" },
    { "modules": 99, "runtime": "electron", "variant": "electron",             "versions": "16" },
    { "modules": 98, "runtime": "electron", "variant": "electron",             "versions": "15" },
    { "modules": 97, "runtime": "electron", "variant": "electron",             "versions": "14" },
    { "modules": 96, "runtime": "node",     "variant": "v8_9.3",               "versions": "17.0.0-pre" },
    { "modules": 95, "runtime": "node",     "variant": "v8_9.2",               "versions": "17.0.0-pre" },
    { "modules": 94, "runtime": "node",     "variant": "v8_9.1",               "versions": "17.0.0-pre" },
    { "modules": 93, "runtime": "node",     "variant": "v8_9.0",               "versions": "16.0.0" },
    { "modules": 92, "runtime": "node",     "variant": "v8_8.9",               "versions": "16.0.0-pre" },
    { "modules": 91, "runtime": "node",     "variant": "v8_8.8",               "versions": "16.0.0-pre" },
    { "modules": 90, "runtime": "node",     "variant": "v8_8.7",               "versions": "16.0.0-pre" },
    { "modules": 89, "runtime": "electron", "variant": "electron",             "versions": "13" },
    { "modules": 88, "runtime": "node",     "variant": "v8_8.6",               "versions": "15.0.0" },
    { "modules": 87, "runtime": "electron", "variant": "electron",             "versions": "12" },
    { "modules": 86, "runtime": "node",     "variant": "v8_8.4",               "versions": "15.0.0-pre" },
    { "modules": 85, "runtime": "electron", "variant": "electron",             "versions": "11" },
    { "modules": 84, "runtime": "node",     "variant": "v8_8.3",               "versions": "15.0.0-pre" },
    { "modules": 83, "runtime": "node",     "variant": "v8_8.1",               "versions": "14.0.0" },
    { "modules": 82, "runtime": "electron", "variant": "electron",             "versions": "10" },
    { "modules": 81, "runtime": "node",     "variant": "v8_7.9",               "versions": "14.0.0-pre" },
    { "modules": 80, "runtime": "electron", "variant": "electron",             "versions": "9" },
    { "modules": 79, "runtime": "node",     "variant": "v8_7.8",               "versions": "13" },
    { "modules": 78, "runtime": "node",     "variant": "v8_7.7",               "versions": "13.0.0-pre" },
    { "modules": 77, "runtime": "node",     "variant": "v8_7.6",               "versions": "13.0.0-pre" },
    { "modules": 76, "runtime": "electron", "variant": "electron",             "versions": "8" },
    { "modules": 75, "runtime": "electron", "variant": "electron",             "versions": "7" },
    { "modules": 74, "runtime": "node",     "variant": "v8_7.5",               "versions": "13.0.0-pre" },
    { "modules": 73, "runtime": "electron", "variant": "electron",             "versions": "6" },
    { "modules": 72, "runtime": "node",     "variant": "node",                 "versions": "12" },
    { "modules": 71, "runtime": "node",     "variant": "v8_7.3",               "versions": "12.0.0-pre" },
    { "modules": 70, "runtime": "electron", "variant": "electron",             "versions": "5" },
    { "modules": 69, "runtime": "electron", "variant": "electron",             "versions": "^4.0.4" },
    { "modules": 68, "runtime": "node",     "variant": "v8_7.1",               "versions": "12.0.0-pre" },
    { "modules": 67, "runtime": "node",     "variant": "node",                 "versions": "11" },
    { "modules": 66, "runtime": "node",     "variant": "v8_6.9",               "versions": "11.0.0-pre" },
    { "modules": 65, "runtime": "node",     "variant": "v8_6.8",               "versions": "11.0.0-pre" },
    { "modules": 65, "runtime": "node",     "variant": "debian-openssl_1.1.1", "versions": "10" },
    { "modules": 64, "runtime": "node",     "variant": "node",                 "versions": "10" },
    { "modules": 64, "runtime": "electron", "variant": "electron",             "versions": ">=3 <4.0.4" },
    { "modules": 63, "runtime": "node",     "variant": "v8_6.6",               "versions": "10.0.0-pre" },
    { "modules": 62, "runtime": "node",     "variant": "v8_6.5",               "versions": "10.0.0-pre" },
    { "modules": 61, "runtime": "node",     "variant": "v8_6.4",               "versions": "10.0.0-pre" },
    { "modules": 60, "runtime": "node",     "variant": "v8_6.3",               "versions": "10.0.0-pre" },
    { "modules": 59, "runtime": "node",     "variant": "node",                 "versions": "9" },
    { "modules": 59, "runtime": "nw.js",    "variant": "nw.js",                "versions": "~0.26.5" },
    { "modules": 58, "runtime": "node",     "variant": "v8_6.1",               "versions": "9.0.0-pre" },
    { "modules": 58, "runtime": "node",     "variant": "debian-openssl_1.1.1", "versions": "8" },
    { "modules": 57, "runtime": "node",     "variant": "node",                 "versions": "8" },
    { "modules": 57, "runtime": "electron", "variant": "electron",             "versions": ">=1.8 <3" },
    { "modules": 57, "runtime": "nw.js",    "variant": "nw.js",                "versions": ">=0.23 <0.26.5" },
    { "modules": 56, "runtime": "node",     "variant": "v8_5.9",               "versions": "8.0.0-pre" },
    { "modules": 55, "runtime": "node",     "variant": "v8_5.8",               "versions": "8.0.0-pre" },
    { "modules": 54, "runtime": "node",     "variant": "v8_5.7",               "versions": "8.0.0-pre" },
    { "modules": 54, "runtime": "electron", "variant": "electron",             "versions": "1.7" },
    { "modules": 53, "runtime": "node",     "variant": "v8_5.6",               "versions": "8.0.0-pre" },
    { "modules": 53, "runtime": "electron", "variant": "electron",             "versions": "1.6" },
    { "modules": 52, "runtime": "node",     "variant": "v8_5.5",               "versions": "8.0.0-pre" },
    { "modules": 51, "runtime": "node",     "variant": "node",                 "versions": "7" },
    { "modules": 51, "runtime": "electron", "variant": "electron",             "versions": "1.5" },
    { "modules": 51, "runtime": "nw.js",    "variant": "nw.js",                "versions": ">=0.18.3 <0.24" },
    { "modules": 50, "runtime": "electron", "variant": "electron",             "versions": "1.4" },
    { "modules": 49, "runtime": "electron", "variant": "electron",             "versions": "1.3" },
    { "modules": 48, "runtime": "node",     "variant": "node",                 "versions": "6" },
    { "modules": 48, "runtime": "electron", "variant": "electron",             "versions": ">1.1 <1.3" },
    { "modules": 48, "runtime": "nw.js",    "variant": "nw.js",                "versions": "6" },
    { "modules": 47, "runtime": "node",     "variant": "node",                 "versions": "5" },
    { "modules": 47, "runtime": "electron", "variant": "electron",             "versions": "0.36" },
    { "modules": 47, "runtime": "nw.js",    "variant": "nw.js",                "versions": "0.13" },
    { "modules": 46, "runtime": "node",     "variant": "node",                 "versions": "4" },
    { "modules": 46, "runtime": "electron", "variant": "electron",             "versions": ">=0.33 <0.36" },
    { "modules": 45, "runtime": "node",     "variant": "io.js",                "versions": "3" },
    { "modules": 45, "runtime": "electron", "variant": "electron",             "versions": ">=0.31 <0.33" },
    { "modules": 44, "runtime": "node",     "variant": "io.js",                "versions": "2" },
    { "modules": 44, "runtime": "electron", "variant": "electron",             "versions": "0.30" },
    { "modules": 43, "runtime": "node",     "variant": "io.js",                "versions": ">=1.1 <2" },
    { "modules": 42, "runtime": "node",     "variant": "io.js",                "versions": "1.0" },
    { "modules": 14, "runtime": "node",     "variant": "node",                 "versions": ">=0.11.11 <0.13" },
    { "modules": 13, "runtime": "node",     "variant": "node",                 "versions": ">=0.11.8 <0.11.11" },
    { "modules": 12, "runtime": "node",     "variant": "node",                 "versions": ">=0.11.0 <0.11.8" },
    { "modules": 11, "runtime": "node",     "variant": "node",                 "versions": ">=0.9.9 <0.11" },
    { "modules": 10, "runtime": "node",     "variant": "node",                 "versions": ">=0.9.1 <0.9.9" },
    { "modules": 1,  "runtime": "node",     "variant": "node",                 "versions": ">=0.2.0 <0.9.8" }
  ]
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Starts with a question (0.5): is the
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Michał Grzegorzewski

79483131

Date: 2025-03-04 09:00:15
Score: 1
Natty:
Report link

i think you can use AJAX request from ExtJS to retrieve an authentication token or session. Then set the token in the session and load the iframe without passing sensitive data in the URL.

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

79483113

Date: 2025-03-04 08:55:14
Score: 9.5 🚩
Natty: 6
Report link

Is the problem solved? If the app is in the background, I want to start the Intent(Settings.ACTION_MANAGE_ALL_SIM_PROFILES_SETTINGS) in the action button of the notification. It cannot send the broadcast and start the Activity at the same time. Is there any way to solve this?

Reasons:
  • Blacklisted phrase (1): Is there any
  • RegEx Blacklisted phrase (1.5): solved?
  • RegEx Blacklisted phrase (1.5): solve this?
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is the
  • Low reputation (1):
Posted by: Ericer

79483111

Date: 2025-03-04 08:54:13
Score: 2
Natty:
Report link

So, go to your visual studio folder, grab the msvsmon.exe (plus files), copy it over and happy debugging ;)

(for example "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\Remote Debugger\x64*"

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

79483105

Date: 2025-03-04 08:50:12
Score: 4
Natty:
Report link

try this package : google_navigation_flutter 0.5.1

Reasons:
  • Whitelisted phrase (-1): try this
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: LiChen Lee

79483101

Date: 2025-03-04 08:49:12
Score: 3
Natty:
Report link

Did you tried with WebView's onDraw() method?

val bitmap = Bitmap.createBitmap(webView.width, webView.height, Bitmap.Config.ARGB_8888) val canvas = Canvas(bitmap) webView.draw(canvas)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Did you
  • Low reputation (0.5):
Posted by: Krishna

79483083

Date: 2025-03-04 08:42:11
Score: 0.5
Natty:
Report link

I am having the same file problem with my App. The app directory is not showing up in the Files app - Location On My iPhone. There should be a folder with my App name listed. I am running iOS 18.3.1 on iPhone 15. I have restarted the iPhone and it did not fix the issue. I have also tried running it on the iPhone 16 simulator with the same negative results. I have added the three keys as suggested.

<key>LSSupportsOpeningDocumentsInPlace</key>
<true/>
<key>UIFileSharingEnabled</key>
<true/>
<key>UISupportsDocumentBrowser</key>
<true/>

` I can write files to Apps Document directory. Any other ideas why the App file directory is not visible? An alternative solution, it should be possible to write the files directly to iCloud? I will keep testing.

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

79483079

Date: 2025-03-04 08:41:10
Score: 4.5
Natty:
Report link

I got the same issue i was using js to open custom link to open the app since we rely on messenger to send our link to users to claim something in the app it was working a month ago but not anymore i did everything even setup meta tags as mentioned in facebook docs but nothing seem to work i had made an arrow pointing to the right bottom of the screen to open the safari which will open the app like i want please if any one has a solution just let us know thank you !!

Reasons:
  • Blacklisted phrase (0.5): thank you
  • RegEx Blacklisted phrase (1): i want
  • RegEx Blacklisted phrase (1): I got the same issue i was using js to open custom link to open the app since we rely on messenger to send our link to users to claim something in the app it was working a month ago but not anymore i did everything even setup meta tags as mentioned in facebook docs but nothing seem to work i had made an arrow pointing to the right bottom of the screen to open the safari which will open the app like i want please
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Anoir

79483078

Date: 2025-03-04 08:41:10
Score: 2
Natty:
Report link

In our case, the certificate simply had expired. I created a new one through Xcode (Xcode > Settings > Accounts) and added it to our provisioning profile at https://developer.apple.com/account/resources/profiles/review/, which solved the issue.

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

79483077

Date: 2025-03-04 08:41:09
Score: 5
Natty: 4.5
Report link

I encountered this same problem. I searched everywhere until I discovered that Linux enviroment is case sensitive.

I changed {% include "partials/partial_add_Initiative.html" %} to {% include "partials/partial_add_initiative.html" %}. Just because of capital letter "I" in initiative, it did not work until I changed it to small letter "i". Windows allows the different letters. Or is there anywhere in the setting one can escape the case sensitivity? I will check.

Reasons:
  • Blacklisted phrase (1): did not work
  • Blacklisted phrase (1): is there any
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Bioscom

79483071

Date: 2025-03-04 08:38:09
Score: 2.5
Natty:
Report link

Search event is non-standard and there's no more compatibility for Safari event search compatibility.

You can use the input event to fix this.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: André Gálvez

79483066

Date: 2025-03-04 08:35:08
Score: 1
Natty:
Report link
 request = self.context.get("request")
 http_param = request.GET.get("param",None)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: Colateral

79483065

Date: 2025-03-04 08:35:08
Score: 2.5
Natty:
Report link

A Markdown viewer is very useful for formatting Markdown files as it renders them into neatly laid out text. It enables content creators to visually inspect how their writing would look like without converting it to HTML or other formats. This is especially useful for quick edits. Simple and efficient!

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

79483056

Date: 2025-03-04 08:28:07
Score: 1
Natty:
Report link

I would recommend becoming familiar with go mod tidy. The help text from go itself is more informative than my transcription would be:

$ go help mod tidy
usage: go mod tidy [-e] [-v] [-x] [-diff] [-go=version] [-compat=version]

Tidy makes sure go.mod matches the source code in the module.
It adds any missing modules necessary to build the current module's
packages and dependencies, and it removes unused modules that
don't provide any relevant packages. It also adds any missing entries
to go.sum and removes any unnecessary ones.
...

SRC: https://go.dev/src/cmd/go/internal/modcmd/tidy.go
(archive.org mirror)

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Erich Kramer

79483047

Date: 2025-03-04 08:26:06
Score: 1.5
Natty:
Report link

asking for clarification

Yes.

I haven't tried it, but this might help ... Since with this prop not set, Quarkus uses "old" plain gRPC server, with this set to "false", it uses Vert.x based gRPC server -- running on existing HTTP server.

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

79483045

Date: 2025-03-04 08:25:06
Score: 0.5
Natty:
Report link

Just use a hack with columns.

col1, _ = st.columns([.2, .8])
with col1:
    st.pyplot(fig)

It will set the with of the figure to 20% of the total with of the streamlit page.

If you need to center the figure:

col1, col2, _ = st.columns([.4, .2, .4])
with col2:
    st.pyplot(fig)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: SergeyR

79483036

Date: 2025-03-04 08:20:05
Score: 3
Natty:
Report link

Based on @nneonneo's comment, I reformat my D disk as NTFS instead of FAT. and it just work perfectly.

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

79483035

Date: 2025-03-04 08:20:05
Score: 1
Natty:
Report link
  1. Delete all the recordings inside the folder.
  2. Right click the folder, give read access to tomcat and click yes for applying it recursively or you can do this via command line (the one you did above).
  3. The owner must be root, group tomcat must have read access. Make sure you have placed the history recording storage plugin in /etc/guacamole/extensions (Download link).
  4. Configure a new connection with the name under screen recording as ${HISTORY_PATH}/${HISTORY_UUID}, enable "Automatically create path" and save.
  5. Restart guacd(/etc/init.d/guacd restart) and tomcat(systemctl restart tomcat), check again.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Learner

79483034

Date: 2025-03-04 08:19:05
Score: 3
Natty:
Report link

My resolution is Sign out the account in VSCode. Do a Git Push and it will ask you to log in the GitHub, either using browser or a PAT. Log in and it works.

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

79483027

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

enter image description here

У меня была такая ситуация: что lbl_style подсвечивался желтым цветом вместо красного. Нужно просто установить настройки по умолчанию:

Settings > Editor > Inspections > Python

Profile > ... > Restore Defaults

И моя проблема ушла.

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (0.5):
  • No code block (0.5):
  • No latin characters (1):
  • Low reputation (1):
Posted by: Stepan Belopolsky

79483017

Date: 2025-03-04 08:14:03
Score: 2.5
Natty:
Report link

I faced the same problem. The problem was with the my java version mismatch. I developed my code in java version 8 and after that compile that by JDK remote 17 and it could not be run. set all java versions in the same version and then run.

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

79483016

Date: 2025-03-04 08:13:02
Score: 9 🚩
Natty: 6.5
Report link

Have you solved this problem? I have the same problem now.

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (1.5): solved this problem?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Enchanter

79483015

Date: 2025-03-04 08:12:02
Score: 0.5
Natty:
Report link

You can keep the original form of input, textarea and select elements but direct browser to render them with dark mode assets.

Option element rendered in iOS Safari in dark mode iOS Safari

Option element rendered in Mac Safari in dark mode Mac Safari

Safari automatically renders those elements with dark mode assets; if your site reports to browser that it supports dark mode. To report support; set color-scheme property on :root. Such as:

:root {
    color-scheme: dark;
}

If your site supports both modes:

:root {
    color-scheme: light dark;
}

This works for both Mac and iOS version of Safari in version 18.

MDN: color-scheme

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

79483001

Date: 2025-03-04 08:06:01
Score: 2
Natty:
Report link

Flutter Web on Apache - "Unexpected token '<'" Error Solution

This error usually occurs when Apache does not properly serve .js files or incorrectly redirects requests, causing the browser to receive an HTML file (often a 404 error page or index.html) instead of the expected JavaScript file. Follow these steps to resolve the issue.

1. Check if the File Exists on the Server

First, make sure the flutter_bootstrap.js file actually exists by running:

ls -l /var/www/html/flweb/flutter_bootstrap.js

If the file is missing, you may not have copied the build files correctly. After running flutter build web, move all contents from the build/web/ directory to /var/www/html/flweb/:

cp -r build/web/* /var/www/html/flweb/

Then, check again to ensure the files are present on the server.

2. Ensure Apache Serves the Correct MIME Types

Apache needs to correctly serve .js, .wasm, .json, and other required file types. Edit your Apache configuration file (/etc/httpd/conf/httpd.conf or /etc/httpd/conf.d/flweb.conf) and add the following lines:

<Directory "/var/www/html/flweb">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

# Required MIME types for Flutter Web
AddType application/wasm .wasm
AddType application/javascript .js
AddType application/json .json
AddType text/css .css
AddType application/octet-stream .blob

Then restart Apache:

sudo systemctl restart httpd

This ensures Apache serves the necessary file types properly.

3. Enable URL Rewriting for Flutter Web Routing Flutter Web relies on URL rewriting for proper navigation. If you're getting errors when refreshing the page, ensure that Apache redirects all requests to index.html. Create or edit /var/www/html/flweb/.htaccess:

nano /var/www/html/flweb/.htaccess

Add the following content and save the file:

RewriteEngine On
# Redirect all requests to index.html unless the file exists
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ /index.html [L]

Then restart Apache again:

sudo systemctl restart httpd

4. Check File Permissions and Ownership

sudo chown -R apache:apache /var/www/html/flweb
sudo chmod -R 755 /var/www/html/flweb

This allows Apache to read and serve the files correctly.

5. Check if the Browser is Receiving the Correct File

Sometimes, the browser may be loading an HTML error page instead of the expected JavaScript file. Test the response type using:

curl -I http://your-server-ip/flweb/flutter_bootstrap.js

You should see:

Content-Type: application/javascript

If it returns Content-Type: text/html, Apache is incorrectly serving the .js file. Double-check the MIME type settings in Step 2.

6. Clear Browser Cache and Reload

After restarting Apache, clear your browser cache to ensure it's not loading old files. In Google Chrome:

  1. Open Developer Tools (F12 or Ctrl + Shift + I).
  2. Go to the "Network" tab.
  3. Enable "Disable cache".
  4. Force reload the page with "Ctrl + Shift + R".

If you still get the same error, check the "Network" tab in Developer Tools to see which files are failing to load.

Conclusion Once you've completed these steps, try accessing http://your-server-ip/flweb/ and test if your Flutter Web app works correctly. If you’re still having issues:

If the issue persists, let me know which step you got stuck on, and we’ll troubleshoot it together!

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): get the same error
  • Low reputation (1):
Posted by: Eda Özdemir

79482991

Date: 2025-03-04 07:57:59
Score: 1.5
Natty:
Report link

My way:

declare let process: Omit<NodeJS.Process, 'env'> & {
  env: {
    NODE_ENV: 'development' | 'production';
    // Your variables goes here
  };
};
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Super Hero

79482989

Date: 2025-03-04 07:57:58
Score: 11 🚩
Natty: 4.5
Report link

I’m actually facing the same issue as well. Have you found any updates on it? Let me know!

Reasons:
  • Blacklisted phrase (1): any updates on
  • RegEx Blacklisted phrase (2.5): Have you found any updates on it
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): facing the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Parag Yelonde

79482986

Date: 2025-03-04 07:55:58
Score: 2
Natty:
Report link

Most implementations record the entire size of the allocated block (size including the header, padding). This info is used internally for operations like free, etc. However, this can vary by your C library implementation, so go look it up.

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

79482976

Date: 2025-03-04 07:52:57
Score: 1.5
Natty:
Report link

The correct format for date type in informix is:

2022-11-21 -> (YEAR-MONTH-DAY) -> (YYYY-MM-DD)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mi2830

79482970

Date: 2025-03-04 07:50:56
Score: 2
Natty:
Report link

to serialize wrapped unmanaged types, use Unsafe.AsPointer() for conversion and handle memory allocation manually. Consider using StructLayout for precise control.

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

79482965

Date: 2025-03-04 07:47:56
Score: 1.5
Natty:
Report link

Look at Flex Web Service API: https://www.interactivebrokers.com/campus/ibkr-api-page/flex-web-service/#api-usage

You need to generate a token once a year, but after that you can get the reports programatically.

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

79482959

Date: 2025-03-04 07:43:55
Score: 5
Natty:
Report link

edtthffffddgddgdgdddfd csfsgfd dsg

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: hhh

79482952

Date: 2025-03-04 07:38:53
Score: 7 🚩
Natty: 5.5
Report link

I used your code for the drawing and I wondered if it was possible to draw a complete circle not filled

I tried several times but I can't find can you help me?

This text was translated into English by translate because I am French

PS: I can have your contact I want to become a mathematician but I don't know what study to do

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): can you help me
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: TechnoScript

79482940

Date: 2025-03-04 07:35:52
Score: 1.5
Natty:
Report link

import { createApp } from "vue";

Getting this error :

ERROR in ./src/bootstrap.js 1:0 Module parse failed: 'import' and 'export' may appear only with 'sourceType: module' (1:0) File was processed with these loaders:

import { createApp } from "vue"; @ ./src/index.js 1:0-21

webpack 5.98.0 compiled with 1 error in 49 ms

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

79482925

Date: 2025-03-04 07:30:50
Score: 4.5
Natty:
Report link

After adding 127.0.0.1 in Firebase Console → Authentication → Settings → Authorized Domains, if your code is still not working or showing the same error (INVALID_APP_CREDENTIAL), try using 127.0.0.1 as the URL instead of localhost.

Reasons:
  • Blacklisted phrase (2): still not working
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Shivam Parvat

79482918

Date: 2025-03-04 07:28:50
Score: 1.5
Natty:
Report link

I recently came across this nice one-liner alternative:

import itertools

key_seq = map(jax.random.key, itertools.count())
key = next(key_seq)

which uses the infinite iterator count.

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

79482913

Date: 2025-03-04 07:25:49
Score: 6.5 🚩
Natty: 5.5
Report link

John that is so cool thanks for sharing!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (2): thanks for sharing
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: guest poster 8911

79482901

Date: 2025-03-04 07:21:48
Score: 3
Natty:
Report link

You can try downgrading the dart extension version in your editor. This resolved the issue for me.

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

79482893

Date: 2025-03-04 07:18:47
Score: 4
Natty:
Report link

Fixed by delete video_trimmer dependency in pubspec.yaml

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

79482884

Date: 2025-03-04 07:11:45
Score: 3.5
Natty:
Report link

Fixed it by updating the vendor folder of W3 total cache with the latest version of aws-sdk-php.

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

79482883

Date: 2025-03-04 07:11:45
Score: 1.5
Natty:
Report link

Friend, I had a similar problem when trying to establish a connection between an Azure Function and a Key Vault using a private endpoint. I was trying to add a secret from the app settings, and after many attempts, I came across this surprise: https://learn.microsoft.com/en-us/azure/azure-functions/flex-consumption-plan#considerations

"Key Vault references in app settings don't work when Key Vault is network access restricted, even if the function app has Virtual Network integration. The current workaround is to directly reference the Key Vault in code and read the required secrets."

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hans Leonardo Quiroz Marroquin

79482875

Date: 2025-03-04 07:08:44
Score: 0.5
Natty:
Report link

You could add

allow_failure: true

on each stage and if one of your test failed, come back check and run them again or even set condition if more than 10 test failed, block the deployment.

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

79482864

Date: 2025-03-04 07:04:43
Score: 4
Natty:
Report link

Additional Scopes should remove "openid"

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

79482855

Date: 2025-03-04 06:58:42
Score: 2.5
Natty:
Report link

If you encounter issues like this in your Vs code terminal

**Write in terminal **

Set-ExecutionPolicy -Scope CurrentUser RemoteSigned

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

79482852

Date: 2025-03-04 06:56:42
Score: 1
Natty:
Report link

Yesterday I also had faced the same issue where entire half-day i was trying multiple ways to solve the issue by cleaning the vscode server file from the wsl and then reinstalling it and then taking the backup of the wsl env for the backup so that it can be used to reinstall with those same earlier setup.

But then came to that the issue seems to with the distribution (where in my case it was CanonicalGroupLimited... for Ubuntu) being corrupted or some issue with the wsl environment.

SO I had to reinstall the whole wsl setup by taking the distro's backup first and then referring to its history and then reinstalling each and every setup or config accordingly

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

79482849

Date: 2025-03-04 06:55:41
Score: 1
Natty:
Report link

onChange: This is a prop on the input element. It listens for changes (such as typing or pasting into the field) and calls a function when the change occurs.

(e) => setName(e.target.value): This is an arrow function that is executed every time the input changes.

e: This is the event object that is passed to the function. It contains information about the event that occurred, including the target element (the input field in this case).

e.target: This refers to the input element itself—the element that triggered the event.

e.target.value: This is the current value of the input field. As the user types, this value will change, and we need to capture it to update our state.

setName(): This is the state updater function (typically created by useState). It updates the name state with the new value that was typed into the input field.

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

79482848

Date: 2025-03-04 06:54:41
Score: 0.5
Natty:
Report link

I used the sourcePixmap member function of QGraphicsEffect to inspect the source pixmap that was drawn, and displayed it in an additional window. To prevent the background color of the previous window from interfering with the observation, I set the background color of this window to green.

At the same time, I added a QLabel to the original window to display the text "Hello World." Since the window background had turned black, I set the text color to white. Here is the screenshot of the running program:

However, when I resized the window, a rendering error occurred, and green appeared (I didn't set the background color of all windows to green):

Even though I used setAutoFillBackground(true), there was still a hint of green around the window edges:

Therefore, I believe this is a bug in Qt.

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

79482842

Date: 2025-03-04 06:51:40
Score: 1
Natty:
Report link

If you are using Windows,

you can modify webui-user.bat and add "set COMMANDLINE_ARGS=--api",

send a post request url:{webui_uri}/sdapi/v1/txt2img,

the body content can refer to this URL https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/3734,

the response can be taken from the key "images",

there will be a picture, hope it can help you

Reasons:
  • Whitelisted phrase (-1): hope it can help
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Nick

79482839

Date: 2025-03-04 06:49:40
Score: 0.5
Natty:
Report link

If you're building a custom keyboard with Cherry Green switches and RGB backlighting and are looking for keycaps or switches that minimize light bleed, there are a few key options to consider.

South-Facing RGB Keycaps – These are ideal for minimizing light bleed while ensuring that your RGB lighting is vibrant and clear. South-facing keycaps are designed to fit Cherry MX switches like your Cherry Green, and they direct the light in a way that reduces light spillover.

PBT Double-shot Keycaps – PBT keycaps are highly recommended for their durability and resistance to wear. The double-shot design means the legends (key markings) are not prone to fading, and they also help reduce light bleeding compared to thinner ABS keycaps.

Translucent Keycaps – If you're aiming for brighter and more diffused RGB effects, translucent or semi-transparent keycaps may allow for better light diffusion, although they could increase light bleed depending on the quality of the material.

For the best options, you can explore a variety of keycaps and accessories specifically tailored for RGB backlit keyboards on ShopGalactica. They offer a selection of keycaps and switches designed to optimize your lighting effects and minimize issues like light bleed.

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

79482836

Date: 2025-03-04 06:47:40
Score: 2
Natty:
Report link

install php-cgi for Mac and Linux os

example for ubuntu:

sudo apt install php-cgi
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bexruz Fatullayev

79482834

Date: 2025-03-04 06:46:40
Score: 0.5
Natty:
Report link

You could just go low-tech and repeat it in an inline comment either above the it, or after the semi-colon.

If the stuff you want to fold can be matched with regex, you may be interested in Is it possible to collapse custom regions in the middle of lines?, but I don't know if it will work given that you already have a folding provider.

As a curiosity (yes, I read the part of the question about the impracticality of writing an extension when another extension already contributes a folding provider), you might be interested in How to write VS Code extension that folds specific regions and renders an inline summary of the folded region?.

Reasons:
  • Blacklisted phrase (1): Is it possible to
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: starball

79482833

Date: 2025-03-04 06:46:40
Score: 1
Natty:
Report link

While the style hook approach works, more elegant solution is disabling seFont from the RichEdit's StyleElements property.

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user29880284

79482831

Date: 2025-03-04 06:46:40
Score: 1
Natty:
Report link
using var httpClient = new HttpClient();
using var fileContent = new ByteArrayContent(fileBytes);
fileContent.Headers.ContentType = new MediaTypeHeaderValue("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); //format for exel
var uploadResponse = await httpClient.PostAsync(uploadUrl, fileContent);

this code before calling api.Files.CompleteUploadExternal helped, I don't know why))

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