79575715

Date: 2025-04-15 17:22:42
Score: 3
Natty:
Report link

Use "cloudinary": "^1.41.3" above version of cloudinary and try to run npm i again, then the dependancy will installed correctly.

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

79575714

Date: 2025-04-15 17:22:42
Score: 1
Natty:
Report link

Thank you for your replies.

I tried creating a simple HTML file on my desktop:


<form method="post" action="http://127.0.0.1:8000/zip-folder/155">
<input type="submit">
</form>

This one downloads the file correctly, so it wouldn't be a token issue? By integrating this same code into my script, the file is generated but doesn't start the download.

I modified my script to better display the logs.

<?php
namespace App\Controller;

use Psr\Log\LoggerInterface; 

use App\Entity\Product; // Utilise ton entité Product ici
use Symfony\Component\HttpKernel\KernelInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\ResponseHeaderBag;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use ZipArchive;
use RecursiveIteratorIterator;
use RecursiveDirectoryIterator;
use FilesystemIterator;

class DownloadZipController extends AbstractController // N'oublie pas de déclarer ta classe héritant de AbstractController
{
    #[Route('/zip-folder/{id}', name: 'zip_folder', methods: ['POST'])]
    public function zipFolder(Product $entity, KernelInterface $kernel, LoggerInterface $logger): Response
    {
        $projectDir = $kernel->getProjectDir();
        $sourceDir = $projectDir . '/public/download/' . $entity->getId();
        $zipDir = $projectDir . '/var/zips/';

        // Vérification de l'existence du répertoire source
        if (!is_dir($sourceDir)) {
            throw new \Exception("Dossier source introuvable: " . $sourceDir);
        }

        // Création du répertoire de destination si nécessaire
        dump("Répertoire source : " . $sourceDir);
        $logger->info("Répertoire source : " . $sourceDir);
        if (!is_dir($zipDir)) {
            mkdir($zipDir, 0777, true); // Vérifie les permissions
        }

        // Création du nom de fichier zip
        $randomName = bin2hex(random_bytes(10)) . '.zip';
        $zipPath = $zipDir . $randomName;
        dump("Chemin du fichier ZIP : " . $zipPath);
        $logger->info("Chemin du fichier ZIP : " . $zipPath);

        // Création de l'archive zip
        $zip = new ZipArchive();
        if ($zip->open($zipPath, ZipArchive::CREATE) !== true) {
            throw new \Exception("Impossible d'ouvrir le fichier zip");
        }

        // Parcours des fichiers à zipper
        $files = new RecursiveIteratorIterator(
            new RecursiveDirectoryIterator($sourceDir, FilesystemIterator::SKIP_DOTS),
            RecursiveIteratorIterator::LEAVES_ONLY
        );

        foreach ($files as $file) {
            $filePath = $file->getRealPath();
            // Optionnellement, afficher les fichiers ajoutés
            dump("Ajout du fichier : " . $filePath); // Vérifie chaque fichier ajouté
            $relativePath = substr($filePath, strlen($sourceDir) + 1);
            $zip->addFile($filePath, $relativePath);
        }

        // Fermeture de l'archive
        $zip->close();

        // Vérifie si le zip a bien été créé
        dump("Zip créé avec succès : " . $zipPath);

        // Générer un nom de fichier aléatoire pour le téléchargement
        $downloadName = bin2hex(random_bytes(10)) . '.zip';  // Nom aléatoire pour le téléchargement
        dump("Nom du fichier pour le téléchargement : " . $downloadName);
        $logger->info("Nom du fichier pour le téléchargement : " . $downloadName);

        // Retourne le fichier zip pour le téléchargement
       // return $this->file($zipPath, $downloadName, ResponseHeaderBag::DISPOSITION_ATTACHMENT);
       try {
        $logger->info("Début du téléchargement du fichier : " . $zipPath);
        return $this->file($zipPath, $downloadName, ResponseHeaderBag::DISPOSITION_ATTACHMENT);
    } catch (\Exception $e) {
        $logger->error("Échec du téléchargement du fichier : " . $zipPath . ". Erreur : " . $e->getMessage());
        throw $e; // Relance l'exception pour que Symfony gère l'erreur
    }


    }
}

Here are the logs:

[2025-04-15T19:09:19.640675+02:00] request.INFO: Matched route "zip_folder". {"route":"zip_folder","route_parameters":{"_route":"zip_folder","_controller":"App\\Controller\\DownloadZipController::zipFolder","id":"155"},"request_uri":"http://127.0.0.1:8000/zip-folder/155","method":"POST"} []
[2025-04-15T19:09:19.648390+02:00] security.DEBUG: Checking for authenticator support. {"firewall_name":"main","authenticators":2} []
[2025-04-15T19:09:19.648430+02:00] security.DEBUG: Checking support on authenticator. {"firewall_name":"main","authenticator":"Symfony\\Component\\Security\\Http\\Authenticator\\Debug\\TraceableAuthenticator"} []
[2025-04-15T19:09:19.649218+02:00] security.DEBUG: Authenticator does not support the request. {"firewall_name":"main","authenticator":"Symfony\\Component\\Security\\Http\\Authenticator\\Debug\\TraceableAuthenticator"} []
[2025-04-15T19:09:19.649248+02:00] security.DEBUG: Checking support on authenticator. {"firewall_name":"main","authenticator":"Symfony\\Component\\Security\\Http\\Authenticator\\Debug\\TraceableAuthenticator"} []
[2025-04-15T19:09:19.649383+02:00] security.DEBUG: Authenticator does not support the request. {"firewall_name":"main","authenticator":"Symfony\\Component\\Security\\Http\\Authenticator\\Debug\\TraceableAuthenticator"} []
[2025-04-15T19:09:19.668764+02:00] doctrine.INFO: Connecting with parameters array{"use_savepoints":true,"driver":"pdo_mysql","idle_connection_ttl":600,"host":"127.0.0.1","port":3306,"user":"XXXX","password":null,"driverOptions":[],"defaultTableOptions":{"collation":"utf8mb4_unicode_ci"},"dbname":"XXXX","serverVersion":"10.4.32-MariaDB","charset":"utf8mb4"} {"params":{"use_savepoints":true,"driver":"pdo_mysql","idle_connection_ttl":600,"host":"127.0.0.1","port":3306,"user":"XXXX","password":null,"driverOptions":[],"defaultTableOptions":{"collation":"utf8mb4_unicode_ci"},"dbname":"XXXX","serverVersion":"10.4.32-MariaDB","charset":"utf8mb4"}} []
[2025-04-15T19:09:19.674579+02:00] doctrine.DEBUG: Executing statement: SELECT t0.id AS id_1, t0.name AS name_2, t0.slug AS slug_3, t0.priority AS priority_4, t0.masked AS masked_5 FROM category_shop t0 WHERE t0.masked = ? ORDER BY t0.priority ASC (parameters: array{"1":0}, types: array{"1":1}) {"sql":"SELECT t0.id AS id_1, t0.name AS name_2, t0.slug AS slug_3, t0.priority AS priority_4, t0.masked AS masked_5 FROM category_shop t0 WHERE t0.masked = ? ORDER BY t0.priority ASC","params":{"1":0},"types":{"1":1}} []
[2025-04-15T19:09:19.682093+02:00] doctrine.DEBUG: Executing statement: SELECT t0.id AS id_1, t0.title AS title_2, t0.slug AS slug_3, t0.content AS content_4, t0.online AS online_5, t0.subtitle AS subtitle_6, t0.price AS price_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.attachment AS attachment_10, t0.category_id AS category_id_11, t0.fk_designer_id AS fk_designer_id_12 FROM product t0 WHERE t0.id = ? (parameters: array{"1":"155"}, types: array{"1":1}) {"sql":"SELECT t0.id AS id_1, t0.title AS title_2, t0.slug AS slug_3, t0.content AS content_4, t0.online AS online_5, t0.subtitle AS subtitle_6, t0.price AS price_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.attachment AS attachment_10, t0.category_id AS category_id_11, t0.fk_designer_id AS fk_designer_id_12 FROM product t0 WHERE t0.id = ?","params":{"1":"155"},"types":{"1":1}} []
[2025-04-15T19:09:21.727992+02:00] app.INFO: Répertoire source : C:\xampp\htdocs\CultsV3/public/download/155 [] []
[2025-04-15T19:09:23.756200+02:00] app.INFO: Chemin du fichier ZIP : C:\xampp\htdocs\CultsV3/var/zips/922b28fc15001c3b5ca8.zip [] []
[2025-04-15T19:09:31.920133+02:00] app.INFO: Nom du fichier pour le téléchargement : 212cfb68d0739fc75668.zip [] []
[2025-04-15T19:09:31.920249+02:00] app.INFO: Début du téléchargement du fichier : C:\xampp\htdocs\CultsV3/var/zips/922b28fc15001c3b5ca8.zip [] []
[2025-04-15T19:09:31.943752+02:00] doctrine.INFO: Disconnecting [] []

Indeed, it may be easier to go through a link.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: FloW76

79575711

Date: 2025-04-15 17:20:42
Score: 0.5
Natty:
Report link

This way is working perfectly fine for me:

<%= f.input :unit_name, 
   collection: @units.map { |u| [u, u] },
   as: :select,
   input_html: { class: 'select2' },
   prompt: 'prompt'
%>

'input_html: { class: 'select2' }' Line is making the select2 work

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

79575710

Date: 2025-04-15 17:17:41
Score: 2
Natty:
Report link

Just noting that our new survey platform, surveydown, is designed to create surveys using plain text in a Quarto doc that render into a shiny app. I think it could solve what you're looking for here.

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

79575704

Date: 2025-04-15 17:15:40
Score: 1
Natty:
Report link

While Dev tools is open,

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

79575702

Date: 2025-04-15 17:14:40
Score: 2
Natty:
Report link

My original question was posted 11 days ago. Since it did not get a definitive answer, I posted a reformulated version (with some additions about where the error occurs and the corresponding message) on another forum. I thought it would be of interest for the readers of my original question to also post the reformulated version here (it feels a bit awkward now). Anyway, I got an answer. Here it is:

https://forum.qt.io/post/824619

Thanks everyone for your time.

@AhmedAEK: I had made an attempt using multiprocessing before trying the approach above using QApplication deletion that I thought would be a simpler option. It was half-working. Now that I know this simpler approach cannot work, I will go back to the multiprocessing version. Thanks for your suggestion which encourages me to do so.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @AhmedAEK
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: eric d.

79575700

Date: 2025-04-15 17:13:40
Score: 1.5
Natty:
Report link
import yfinance as yf
data = yf.download("MNQ=F", interval="1m", start="2025-04-01", end="2025-04-08")
print(data)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: yohans shegaw

79575696

Date: 2025-04-15 17:13:40
Score: 2.5
Natty:
Report link

I'm adding here that our new platform, surveydown, is something to check out and could easily implement a simple survey like this as a shiny app.

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

79575695

Date: 2025-04-15 17:13:40
Score: 0.5
Natty:
Report link

This site is pretty helpful. You can upload an entire csv file of latitudes & longitudes, and it will process the elevation data to an output file.

https://toolbox.nextgis.com/t/deminpoints

For the elevation dataset, you can choose between the following: GMTED2010 resolution- 7.5 sec (about 250 meters), GEBCO resolution - 15 sec (about 500 meters), ALOS World 3D - 30 meters.

I just used it to generate elevation data for lat/long coordinates for ≈ 42,500 US zip codes. It took a bit longer than expected, but they have an option to notify by email when the process finishes so you don't have to sit around waiting for it.

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

79575694

Date: 2025-04-15 17:12:39
Score: 0.5
Natty:
Report link

Consider using include-cleaner in clang-tidy with cmake: https://clangd.llvm.org/design/include-cleaner

set_target_properties(${library_name} PROPERTIES CXX_CLANG_TIDY
                            "${CLANG_TIDY};--header-filter=.*<whatever you want to filter for>.*")

Note that you might need to include a .clangd file in your project.

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

79575691

Date: 2025-04-15 17:12:39
Score: 1
Natty:
Report link

You were already on the right track and found the detailed configuration file but missed the global one. ;-)

.ansible-lint does what you asked for: Exclude rules (tags) for all files.

There are other options of potential interest to you, like excluding specific paths from linting.

See the chapter Ansible-lint configuration in the docs.

Here's an example for skipping a few rules for all files:

# .ansible-lint
skip_list:  # or 'warn_list' to print warnings
  - experimental  # all rules tagged as experimental
  - var-spacing
  - unnamed-task

HTH, Uwe

Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Uwe

79575689

Date: 2025-04-15 17:10:38
Score: 6.5 🚩
Natty: 5
Report link

I watched this video and was solve.

https://youtu.be/9R9rBZgeRmA

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Blacklisted phrase (1): this video
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hidro

79575686

Date: 2025-04-15 17:09:37
Score: 4
Natty:
Report link

The following code worked, the original issue was raised long back , do we have any alternate solution than resetting security flags?

       // Send the request with body if present
       BOOL sendResult = false;
       bool retry = false;
       do
       {
           retry = false;

           sendResult = WinHttpSendRequest(
               hRequestRaw,
               WINHTTP_NO_ADDITIONAL_HEADERS,
               0,
               (bodyVector.empty() ? NULL : static_cast<LPVOID>(bodyVector.data())),
               (bodyVector.empty() ? 0 : static_cast<DWORD>(bodyVector.size())),
               (bodyVector.empty() ? 0 : static_cast<DWORD>(bodyVector.size())),
               NULL
           );
           // no retry on success, possible retry on failure
           if (sendResult == FALSE)
           {
               DWORD sendError = GetLastError();

               // (1) If you want to allow SSL certificate errors and continue
               // with the connection, you must allow and initial failure and then
               // reset the security flags. From: "HOWTO: Handle Invalid Certificate
               // Authority Error with WinInet"
               // http://support.microsoft.com/default.aspx?scid=kb;EN-US;182888
               if (sendError == ERROR_WINHTTP_SECURE_FAILURE)
               {
                   DWORD dwFlags =
                       SECURITY_FLAG_IGNORE_UNKNOWN_CA |
                       SECURITY_FLAG_IGNORE_CERT_WRONG_USAGE |
                       SECURITY_FLAG_IGNORE_CERT_CN_INVALID |
                       SECURITY_FLAG_IGNORE_CERT_DATE_INVALID;

                   if (WinHttpSetOption(
                       hRequestRaw,
                       WINHTTP_OPTION_SECURITY_FLAGS,
                       &dwFlags,
                       sizeof(dwFlags)))
                   {
                       retry = true;
                   }
               }
               // (2) Negotiate authorization handshakes may return this error
               // and require multiple attempts
               // http://msdn.microsoft.com/en-us/library/windows/desktop/aa383144%28v=vs.85%29.aspx
               else if (sendError == ERROR_WINHTTP_RESEND_REQUEST)
               {
                   retry = true;
               }
           }
       } while (retry);
Reasons:
  • RegEx Blacklisted phrase (2.5): do we have any
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Vipul P

79575678

Date: 2025-04-15 17:07:35
Score: 6.5
Natty:
Report link

I have followed all the steps you have mentioned but , Still I am getting the same error.All this occurs while updating my system.

Reasons:
  • RegEx Blacklisted phrase (1): I am getting the same error
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am getting the same error
  • Single line (0.5):
  • Low reputation (1):
Posted by: Niki Mehta

79575677

Date: 2025-04-15 17:07:34
Score: 1.5
Natty:
Report link

I notice some anomalies in your double and single quotation use:
n+2 quotation marks are required to render n quotation marks in compile.(""" => ") and ("""" =>"").

Counting characters after removing the asterisks:
There is an extra single quote at position 52 between n1 and n2
There is a rendered double quote pair at position 61 and again at position 116 where there is only a double quote single in the hardcode line.

Overall I would not read the contents of all parameters in the hardcode line as a single string block. That will give you a missing parameters error.
Rather code each parameter as an equivalent string to the hardcode version. Commas separating parameters should be outside of the string block. That would at least give you a baseline comparison between the two versions.

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

79575672

Date: 2025-04-15 17:02:33
Score: 3.5
Natty:
Report link

Dose anyone have some update on that issue, Im in the same situation :/

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

79575669

Date: 2025-04-15 17:00:31
Score: 7 🚩
Natty: 5.5
Report link

Is there a way to extract the boundaries of the confidence or prediction intervals at a certain x value, eg. x = 3 ?

Reasons:
  • Blacklisted phrase (1): Is there a way
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is there a
  • Low reputation (1):
Posted by: Dan

79575658

Date: 2025-04-15 16:56:30
Score: 1.5
Natty:
Report link

split address into components, or parse address, break down address

javascript api : https://github.com/hassansin/parse-address

perl api https://metacpan.org/release/TIMB/Geo-StreetAddress-US-1.04/view/US.pm

article : https://www.smarty.com/articles/address-parsing

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

79575653

Date: 2025-04-15 16:51:28
Score: 3
Natty:
Report link

The best solution I think is to use a future to fetch all events when the app resumes.

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

79575650

Date: 2025-04-15 16:47:27
Score: 2.5
Natty:
Report link

Is TagUI developed by AI Singapore?
Here's example code and output.

for n from 1 to 10
    if n % 2 equals to 0
        echo `n`
tagui for_loops.tag -nobrowser
START - automation started
2
4
6
8
10
FINISH - automation finished

I read the following manual page about for loops.
[TagUI] https://tagui.readthedocs.io/en/latest/main_concepts.html#for-loops

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: user28644649

79575630

Date: 2025-04-15 16:35:24
Score: 1.5
Natty:
Report link

How do you want the data to look? you can create a formatted table with tabulate. I did something similar with WLC output recently but exported it to mongodb as its based on json files, much easier to pull the data and use with what ever you want.

I would use tabulate very simple to use

https://pypi.org/project/tabulate/

header = ["User", "WLANID", "UserType"]
wlcdata = [
        ["user1", "2","Guest"],
        ["user2", "3","Guest"]       
        ]


mytable =tabulate(wlcdata, header, tablefmt="pretty")
print(mytable)
Reasons:
  • Blacklisted phrase (1): How do you
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How do you
Posted by: onxx

79575628

Date: 2025-04-15 16:35:24
Score: 0.5
Natty:
Report link

Just to throw another option out there, this is pretty straightforward with index(match()) also.

Presuming you have the data like this (and adjust as necessary if you don't, including across different sheets):

3 tables of data, achievement group 1 in columns A/B/C, achievement group 2 in columns E/F/G, results in columns I/J/K.  Each group is ordered as Branch/Achievement/Points

Your max points column (k) would be:

=IF(MAX(INDEX($C$2:$C$4,MATCH(I2,$A$2:$A$4,0)),INDEX($G$2:$G$4,MATCH(I2,$E$2:$E$4,0)))=INDEX($C$2:$C$4,MATCH(I2,$A$2:$A$4,0)),INDEX($C$2:$C$4,MATCH(I2,$A$2:$A$4,0)),INDEX($G$2:$G$4,MATCH(I2,$E$2:$E$4,0)))

Your max achievements column (j) would be:

=IF(MAX(INDEX($C$2:$C$4,MATCH(I2,$A$2:$A$4,0)),INDEX($G$2:$G$4,MATCH(I2,$E$2:$E$4,0)))=INDEX($C$2:$C$4,MATCH(I2,$A$2:$A$4,0)),INDEX($B$2:$B$4,MATCH(I2,$A$2:$A$4,0)),INDEX($F$2:$F$4,MATCH(I2,$E$2:$E$4,0)))

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

79575615

Date: 2025-04-15 16:28:21
Score: 0.5
Natty:
Report link

I'm not really sure what the root cause of this is but I've had a similar problem that is resolved by using this bit of code instead of ensureDeferred

def as_deferred(f):
    return Deferred.fromFuture(asyncio.ensure_future(f))

I found this to be the best guidance about mixing twisted and asyncio
https://meejah.ca/blog/python3-twisted-and-asyncio

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Kevin R.

79575609

Date: 2025-04-15 16:23:19
Score: 1.5
Natty:
Report link

I would at a minimum make sure you can change the value by both dragging and tapping and test it out with VoiceOver and Talkback to make sure the standard slider controls are working. Compare yours with a standard HTML slider people will be used to using. W3C has some examples of custom slider implementations that work ok with VoiceOver, though the value isn’t read if I double tap, hold, and drag to change the value, so there’s some room for improvement there. You could probably fix that with an aria live region that dynamically updates the value when it’s changed. I would also try it out with voice control software, here are the instructions for sliders in Windows built in voice control.

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

79575606

Date: 2025-04-15 16:19:18
Score: 0.5
Natty:
Report link

You can use VS 'Find and Replace' feature. Just press Ctrl + Shft + H and it opens up the screen. Here you can replace values within all contents of a directory and exclude certain files as well.

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

79575601

Date: 2025-04-15 16:15:17
Score: 3.5
Natty:
Report link

you need 6 rotation angles:

X to T, Y, Z

Y to T, Z

Z to T

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

79575596

Date: 2025-04-15 16:10:15
Score: 2
Natty:
Report link

Shortest:

[i['name'] for i in list].index('Tom')
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: dschoni

79575594

Date: 2025-04-15 16:08:15
Score: 3.5
Natty:
Report link

I know I'm late to the party here, but I've successfully used the following article to implement query-driven HTML email from Snowflake - https://community.snowflake.com/s/article/How-to-include-query-results-in-Snowflake-email-alert-notifications.

And @nickw... without a link to the documentation, I can't verify your statement at time of posting, but I'm able to send text/html MIME type emails from SYSTEM$SEND_EMAIL. The MIME type is the last argument expected in the Function Call - https://docs.snowflake.com/en/sql-reference/stored-procedures/system_send_email.

Regards, Johnny

Reasons:
  • Blacklisted phrase (1): Regards
  • No code block (0.5):
  • User mentioned (1): @nickw
  • Low reputation (1):
Posted by: Johnny Stevens

79575593

Date: 2025-04-15 16:08:15
Score: 0.5
Natty:
Report link

When deploying Mem0 on AWS Lambda, you need to adjust the storage directory because Lambda only allows writing to the /tmp directory. By default, Mem0 tries to write to a directory in the user's home path, which isn’t writable in Lambda.

Set the MEM0_DIR environment variable to a writable path in /tmp.

MEM0_DIR=/tmp/.mem0

If you're not using environment variables, modify the storage path directly in your code.

Change this:

home_dir = os.path.expanduser("~")
mem0_dir = os.environ.get("MEM0_DIR") or os.path.join(home_dir, ".mem0")

To this:

mem0_dir = os.environ.get("MEM0_DIR", "/tmp/.mem0")

Refer the doc for more info: https://docs.mem0.ai/faqs#how-do-i-configure-mem0-for-aws-lambda

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Dev Khant

79575578

Date: 2025-04-15 16:01:13
Score: 1.5
Natty:
Report link

This doesn't work , you get an error when trying to add *.domain.com . Off course asuid.* is not possible (I don't even know why MS propose this), and with juste asid.domaine.com as TXT I got an error saying domain allready exist ... but not

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

79575576

Date: 2025-04-15 16:00:13
Score: 2
Natty:
Report link

Copy/paste the explicit giant code at: https://code.jquery.com/jquery-latest.min.js

Alternatively copy/paste for the version you need: https://code.jquery.com/jquery-3.1.1.min.js

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

79575574

Date: 2025-04-15 15:59:12
Score: 4
Natty:
Report link

As addition to @ahmet-alp-balkan's answer, here is where the Aligner is located in the current UI of Metrics Explorer.

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @ahmet-alp-balkan's
  • Single line (0.5):
Posted by: Sayyor Y

79575573

Date: 2025-04-15 15:59:12
Score: 3
Natty:
Report link

Financial Data API provides comprehensive financial data, including company profiles, financial statements, revenue, employee data https://financialdata.net/documentation

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

79575570

Date: 2025-04-15 15:57:11
Score: 2.5
Natty:
Report link

I recommend explanation in here

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

79575569

Date: 2025-04-15 15:57:11
Score: 3.5
Natty:
Report link

run flutter clean command once

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

79575560

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

I've considered two approaches using TagUI.

  1. Click to download URL.
https://example.site
wait 5
click [xpath or DOM]
wait 60 

2. Directory access to download URL.

https://example.site/download-url
wait 60
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user28644649

79575559

Date: 2025-04-15 15:48:07
Score: 10.5 🚩
Natty: 6
Report link

I tried using saveState=false but still getting the same error, any other suggestions?

Reasons:
  • RegEx Blacklisted phrase (2): any other suggestions?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): getting the same error
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Priyen

79575553

Date: 2025-04-15 15:45:06
Score: 1
Natty:
Report link

I got rid of the issue by assigning the index to another variable inside the local function function then using that local variable instead of the original index.

const i = index
setDisplayText((prevText) => prevText + text[i]);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Joseph

79575549

Date: 2025-04-15 15:39:04
Score: 1.5
Natty:
Report link

I just found out that setting UseLayoutRounding="True" on the parent window fixes the problem. However, the other controls now look very sharp-edged. Unfortunately, setting it on the WebView2CompositionControl itself doesn't have any effect.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Michael Trapp

79575547

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

You could (1) use a [cloud function on firebase](https://firebase.google.com/docs/functions) to update the data instead, using the server time directly. Or (2) use the [TrustedTime API](https://android-developers.googleblog.com/2025/02/trustedtime-api-introducing-reliable-approach-to-time-keeping-for-apps.html).

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

79575544

Date: 2025-04-15 15:35:01
Score: 5.5
Natty: 4.5
Report link

I too want to use the COPY command to copy the content of csv file in the linux box in some location to the Postgres database , to some table. But my database user does not have the superuser privilege. In such case is there any alternative process to use the copy command ?

Reasons:
  • Blacklisted phrase (1): is there any
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Saroj Mahanta

79575540

Date: 2025-04-15 15:33:01
Score: 0.5
Natty:
Report link

The issue was that I wasn’t await-ing the async method in Main. Since DoSomethingAsync() returns a Task, and I didn’t await it, the program just moved on and printed "Done" without waiting for the async part to finish.

Here’s the fixed version:

static async Task Main(string[] args)
{
    await DoSomethingAsync();
    Console.WriteLine("Done");
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: raity vojdani

79575535

Date: 2025-04-15 15:32:00
Score: 4
Natty: 5
Report link

Thank you for the answer. Helped me understand.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Liel Almog

79575532

Date: 2025-04-15 15:28:59
Score: 2
Natty:
Report link

The only reason I see those disabled links heavily used in some sites is for SEO. The webmaster wants to hide the link from the visitor of the webpage, but a robot will see it and give link-juice to the linked page. In other words a webcompany having many customers can hide backlinks in unsuspected pages of different clients to a webpage they want to push.

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

79575530

Date: 2025-04-15 15:27:59
Score: 3
Natty:
Report link

"Several similar but not identical files appear" - these are amendments, you need to take the latest

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

79575528

Date: 2025-04-15 15:26:58
Score: 1
Natty:
Report link

The simplest way is to apply dropna over the dimensions separately (which will remove the nan coordinates)

era_land.dropna(dim='long',how='all').dropna(dim='lat',how='all')
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nirmal Alex

79575519

Date: 2025-04-15 15:23:57
Score: 1.5
Natty:
Report link

lorsque j'essaie de visualiser mon site pour voir des quelques revisions je vois ceci: Warning: include(../config.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\GenieHub\login.php on line 2

Warning: include(): Failed opening '../config.php' for inclusion (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\GenieHub\login.php on line 2

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

79575517

Date: 2025-04-15 15:22:57
Score: 4.5
Natty: 5.5
Report link

Bonjour,
j'ai exactement le même problème aujourd'hui.
Le problème n'a t'il jamais été résolu ?

Merci par avance

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Promesses

79575512

Date: 2025-04-15 15:20:56
Score: 2
Natty:
Report link

pod repo remove trunk && pod cache clean --all && pod update

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

79575510

Date: 2025-04-15 15:20:56
Score: 1
Natty:
Report link
      /**
     * @OA\PathItem(path="/api/v1")
     *
     * @OA\Info(
     *      version="0.0.0",
     *      title="kashtnegar API"
     *  )
     */

put this in rute of your Controller
for me is Http/controllers/controller.php
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: shekoufeh_jafari

79575509

Date: 2025-04-15 15:19:55
Score: 2
Natty:
Report link

Adding this config line into my code after spark session fixed the issue:

spark.conf.set('spark.sql.legacy.timeParserPolicy', 'LEGACY')
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: toto

79575506

Date: 2025-04-15 15:15:53
Score: 8
Natty:
Report link

I have the same problem where I have to apply the same function to multiple dataframe (sp_list). Here the problem seems not solved. Can you please help me with that?

I should apply this function bg <- sample_background( data = sp, x = "x", y = "y", n = 100, method = "biased", rlayer = regions, maskval = 1, rbias = sampbias, sp_name = sp )

I tried with

allsp <-list.files(pattern = "\\.csv$", full.names = TRUE)
sp_list <- vector("list", length(allsp)) |> setNames(basename(allsp))

my_function <- function(sp_plist)
  sample_background(
    data = sp_list,
    x = "x",
    y = "y",
    n = 100,
    method = "biased",
    rlayer = regions,
    maskval = 1,
    rbias = sampbias,
    sp_name = sp_list
  )
bg <- lapply(sp_list,my_function)
Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (3): Can you please help me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Valentina Todisco

79575502

Date: 2025-04-15 15:14:52
Score: 4.5
Natty:
Report link

After a few days, i found a solution, which is a open-source package: https://github.com/EqualExperts/dbt-unit-testing/tree/v0.4.20/?tab=readme-ov-file

Work like a charm, but just basically. I need to test more cases to verify the possibility

Reasons:
  • Blacklisted phrase (0.5): I need
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: mhtuan

79575498

Date: 2025-04-15 15:12:51
Score: 14.5
Natty: 7
Report link

Hello man i know its been 3 years , but did you get it working? I have the same problem , at first I used fastcgi server and it didnt work, and then i tried using iis as reverse- proxy but i cant seem to get it working. If you know anything please tell me. Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (2.5): please tell me
  • RegEx Blacklisted phrase (3): did you get it
  • RegEx Blacklisted phrase (2): working?
  • Low length (0.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: Aqif Montana

79575495

Date: 2025-04-15 15:11:50
Score: 0.5
Natty:
Report link

So I can't comment to add to Terry's answer, but .Q.ts runs -34!, which means it's only going to time the aj lambda of this:

q)0N!.z.P;r:.Q.ts[{aj0[`sym`time;enlist `sym`time!(`MSFT;0D09:30:00);x]};enlist select from trade where date=.z.D-1];0N!.z.P;

Terry has answered about the memory mapping vs read/copy and I would agree with him there.

For your specific example of a single timestamp search have you tried using asof instead of aj?

Both aj and asof use binary search under covers, with aj having a number of utility enhancements for applying either fill or join depending on which version of aj you are using.

Binary search is covered in the documentation. The top two links from the search bar for me are:

https://code.kx.com/q/basics/by-topic/#search which list topics that explore searching in arrays in general.

https://code.kx.com/q/ref/bin/ which is specifically about bin which is the function which does the hard work in asof and aj

Reasons:
  • Whitelisted phrase (-1): have you tried
  • RegEx Blacklisted phrase (1): can't comment
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: James Neill

79575490

Date: 2025-04-15 15:09:50
Score: 1.5
Natty:
Report link

I recommend using Homebrew.
For example: brew install llama.cpp
I was able to install it easily.
Please try it!

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

79575489

Date: 2025-04-15 15:09:50
Score: 1.5
Natty:
Report link

Don't allocate DMA buffers in user space. Only use kernel-allocated, DMA-safe memory for PCIe DMA. User space can access the data after the transfer, but not as the primary buffer.

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

79575485

Date: 2025-04-15 15:07:49
Score: 3
Natty:
Report link

Good question. I can't get sections to collapse either. I see lots of videos where they collapse, but their code doesn't work in April, 2025.

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

79575478

Date: 2025-04-15 15:02:47
Score: 1
Natty:
Report link

I had the same problem while working on my React project. To resolve, I had to update the React version to ^18 and worked.

That happens because MUI is prepared to work with 18+ versions

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Samilly Nunes

79575476

Date: 2025-04-15 15:00:46
Score: 4
Natty: 6
Report link

Thank you!!! Im a new vscode user, this helped!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sayanta Mukherjee

79575468

Date: 2025-04-15 14:57:45
Score: 2.5
Natty:
Report link

Converting text to numbers with multiple columns arrives all the time when you work in statistics. It is annoying that Libreoffice has not yet treated the problem, known after so many years.

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

79575465

Date: 2025-04-15 14:56:45
Score: 2.5
Natty:
Report link

You can use plugin named: ProjectTree Color Highlighter (https://plugins.jetbrains.com/plugin/13951-projecttree-color-highlighter)

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: StonedCodingTom

79575464

Date: 2025-04-15 14:55:44
Score: 2
Natty:
Report link

looks like you're referring to Ranking Signal Boost capability with Cortex Search.
I.E. you have an additional column "number of hits" and want that to influence which results Cortex Search returns.

At this time I believe that capability is in Private Preview, so if you or your company have a connection to an account representative with Snowflake you can speak to them to try and enable it.

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

79575455

Date: 2025-04-15 14:48:43
Score: 1
Natty:
Report link

You can compare the id fields : loadingExperience.id and originLoadingExperience.id are the same if there is not enough data.

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

79575454

Date: 2025-04-15 14:48:43
Score: 2.5
Natty:
Report link

on your package.json add "scripts": { "generate": "prisma generate", "seed": "npm run generate && ts-node prisma/seed.ts" }

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

79575451

Date: 2025-04-15 14:48:43
Score: 0.5
Natty:
Report link

The OP's own answer turned out to be such a useful little script that I thought I'd share a few teeks I made for myself, after stealing it! :)

    REM Written by Michael Hutter / February 2024
    REM Optional variables & English translations added by @RussBroom / April 2025
    REM Usage: DetectFileChange.bat C:\FileToMonitor.txt C:\Temp\CopyOfMonitoredFile.txt
    REM https://stackoverflow.com/questions/77986309/how-to-detect-a-file-change-using-windows-batch
::
:: 
TITLE %~nx0
@echo off
CLS
:: 
    :: **************************************** USER SETTINGS ****************************************
        :: Set these variables to pre-define file to monitor, or leave empty to use CMD line.
    set "OriginalFile="
    set "CopyFile="
    :: **************************************** USER SETTINGS ****************************************
:: 
    If Not "%OriginalFile%"=="" If Not "%CopyFile%"=="" goto :START
::  
    if "%1"=="" goto Syntax
    if "%2"=="" goto Syntax
    if not exist "%1" goto Syntax
::  
    set "OriginalFile=%1"
    set "CopyFile=%2"
    ::  
    :START
    rem Check if the copy exists
    if not exist "%CopyFile%" (
        echo Copy of file does not exist. Create a new copy...
        copy "%OriginalFile%" "%CopyFile%"
    )
:: 
    :Restart
    rem Reading out the timestamps
    for %%A in ("%OriginalFile%") do set "originalTimeStamp=%%~tA"
    for %%B in ("%CopyFile%") do set "copyTimeStamp=%%~tB"
:: 
    rem Compare the timestamps
    if "%originalTimeStamp%" neq "%copyTimeStamp%" (
        echo The file has been changed!
        call :TheFileWasChanged %OriginalFile% %CopyFile% "%originalTimeStamp%" "%copyTimeStamp%" TempAlertFile
        copy /Y "%OriginalFile%" "%CopyFile%"
        del %TempAlertFile%
    ) else (
        echo The file has not been changed. %originalTimeStamp% even %copyTimeStamp%
    )
    rem Uncomment the following two lines if you want to run this file in a loop
    REM timeout /t 30 > nul
    REM goto Restart
    echo End
    exit /b
:: 
:: 
    :Syntax
    echo. & echo    Detect file changes (by file timestamp)
    echo    Syntax:
    echo        %0 ^<FileToMonitor^> ^<CopyOfMonitoredFile^>
    echo        %0 C:\FileToMonitor.txt C:\Temp\CopyOfMonitoredFile.txt
    echo. & echo    Or edit theis script to define set variables in User Settings
    echo. & echo. & echo. & Pause
    exit /b
:: 
:: 
    :TheFileWasChanged
    setlocal enableDelayedExpansion
    set sChangeAlertFile=C:\Temp\ChangeAlert.txt
    set sFileNameNow=%1
    set sFileNameBefore=%2
    set sTimestampNow=%3
    set sTimestampBefore=%4
    echo The file !sFileNameNow! has changed: (!sTimestampBefore! to !sTimestampNow!) > !sChangeAlertFile!
    echo. >> !sChangeAlertFile!
    echo New Content: >> !sChangeAlertFile!
    echo ============ >> !sChangeAlertFile!
    type !sFileNameNow! >> !sChangeAlertFile!
    for %%a in (1 2) do echo. >> !sChangeAlertFile!
    echo Old Content: >> !sChangeAlertFile!
    echo ============ >> !sChangeAlertFile!
    type !sFileNameBefore! >> !sChangeAlertFile!
    start notepad !sChangeAlertFile!
    Timeout /t 2 > nul
    (endlocal & set %5=%sChangeAlertFile%)
    goto :eof
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: RussBroom

79575444

Date: 2025-04-15 14:44:41
Score: 1.5
Natty:
Report link

Just explicitly specify the type.

switch_window: 'pyqtSignal' = QtCore.pyqtSignal()

All other methods are a crutch!

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

79575443

Date: 2025-04-15 14:44:41
Score: 1.5
Natty:
Report link

I created a usable example to show that you might use @Order to match the paths.

A SecurityFilterChain with a smaller @Order number is matched before a SecurityFilterChain with a larger @Order number.

Following this pattern and matching the paths, I allowed "Admin", "Editor" and "User" to access certain paths respectively, and denied as necessary.

The config file was here.

    @Bean
    @Order(400)
    public SecurityFilterChain securityFilterChainUser(HttpSecurity http) throws Exception{
        
        String[] matchedPaths = { 
            "/user", 
            "/user/**"
        };
        
        http
            .csrf(csrf -> csrf.disable())
            .securityMatcher(
                matchedPaths
            )
            .authorizeHttpRequests(request -> 
                request
                    .requestMatchers(matchedPaths)
                    .hasAnyRole("ADMIN", "EDITOR", "USER")
                    .anyRequest()
                    .authenticated()
            )

            .sessionManagement(session -> session
                .sessionConcurrency((concurrency) -> concurrency
                                .maximumSessions(1)
                                .maxSessionsPreventsLogin(true)
                        )
            )
            .logout(logout -> logout.logoutUrl("/logout"));
            
        return http.build();
    }


    @Bean
    @Order(500)
    public SecurityFilterChain securityFilterChainUserDeny(HttpSecurity http) throws Exception{
        
        String[] matchedPaths = { 
            "/user", 
            "/user/**"
        };
        
        http
            .csrf(csrf -> csrf.disable())
            .securityMatcher(
                matchedPaths
            )
            .authorizeHttpRequests(request -> 
                request
                    .requestMatchers(matchedPaths)
                    .denyAll()
            )

            .sessionManagement(session -> session
                .sessionConcurrency((concurrency) -> concurrency
                                .maximumSessions(1)
                                .maxSessionsPreventsLogin(true)
                        )
            )
            .logout(logout -> logout.logoutUrl("/logout"));
            
        return http.build();
    }

    @Bean
    @Order(600)
    public SecurityFilterChain securityFilterChainEditor(HttpSecurity http) throws Exception{
        
        String[] matchedPaths = { 
            "/editor", 
            "/editor/**"
        };
        
        http
            .csrf(csrf -> csrf.disable())
            .securityMatcher(
                matchedPaths
            )
            .authorizeHttpRequests(request -> 
                request
                    .requestMatchers(matchedPaths)
                    .hasAnyRole("ADMIN", "EDITOR")
                    .anyRequest()
                    .authenticated()
            )

            .sessionManagement(session -> session
                .sessionConcurrency((concurrency) -> concurrency
                                .maximumSessions(1)
                                .maxSessionsPreventsLogin(true)
                        )
            )
            .logout(logout -> logout.logoutUrl("/logout"));
            
        return http.build();
    }

In my example, I used Microsoft SQL Server.

I ran the SQL statement before starting my example application.

CREATE DATABASE springboothasrole COLLATE Latin1_General_100_CS_AI_WS_SC_UTF8;

The PowerShell script to start was here.

$env:processAppDebugging="true";
$env:processAppDataSourceDriverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver";
$env:processAppDatabasePlatform="org.hibernate.dialect.SQLServer2012Dialect";
$env:processAppDataSourceUrl="jdbc:sqlserver://localhost;databaseName=springboothasrole;encrypt=false;trustServerCertificate=false;"
$env:processAppDataSourceUsername="sa";
$env:processAppDataSourcePassword="Your_Password";
./mvnw spring-boot:run;

I opened the browser and tested different paths, e.g.

http://127.0.0.1:8080
http://127.0.0.1:8080/admin
http://127.0.0.1:8080/editor
http://127.0.0.1:8080/user

The permissions were what I expected according to hasAnyRole in the example. Please see if this helps.

Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Order
  • User mentioned (0): @Order
  • Low reputation (1):
Posted by: Hdvlp

79575436

Date: 2025-04-15 14:42:40
Score: 4
Natty:
Report link

Alright, i was wrong. I found issue on github where people discuss this.

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

79575433

Date: 2025-04-15 14:38:38
Score: 4.5
Natty: 6
Report link

LEBRON JAMES IS MY GOOOOOOOAAAAAT

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

79575429

Date: 2025-04-15 14:37:38
Score: 1.5
Natty:
Report link

You might use this:

data:text/html,<script>location.href ="https://www.google.com";alert("hello world")</script>

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

79575428

Date: 2025-04-15 14:35:37
Score: 16.5
Natty: 7.5
Report link

Thanks a lot!! you made my day! (a lot of days.. )

If you can help me again, and you remember the project: I'm encountering a lot of issue managing more than one "service" on the same application. Because in the XSD there are same namespace, same class name but with different content.. (eg PK1 vs VT1). Did you find the same issues? How did you solve it? PK1 vs VT1

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): How did you solve it
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Did you find the
  • RegEx Blacklisted phrase (3): did you solve it
  • RegEx Blacklisted phrase (1.5): solve it?
  • RegEx Blacklisted phrase (3): you can help me
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Ivn9

79575425

Date: 2025-04-15 14:35:37
Score: 1
Natty:
Report link

Seems like the error is from the some_bq_view's definition, which likely has a faulty FOR SYSTEM_TIME AS OF clause. Correct or remove the time travel within the view's SQL and recreate it to fix your MERGE query.

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

79575423

Date: 2025-04-15 14:34:36
Score: 4
Natty: 4
Report link

дело в том, что порт 3001 предназначен для настройки конфигурации. Тебе нужно назначить новый порт для приема текстовых команд с помощью утилиты ClarityConfig.

Твой код рабочий, и он мне очень сильно помог, спасибо!

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

79575413

Date: 2025-04-15 14:32:36
Score: 2.5
Natty:
Report link

Bro I’m working on this rn for my college project. To my understanding the ESP32 does not allow clock stretching which is what the IC needs. You should ask the forums on TI for help that’s what I use.

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

79575406

Date: 2025-04-15 14:30:35
Score: 0.5
Natty:
Report link

I encountered the same problem today. After some investigation I found out that C# and C# Dev Kit extensions are not the ones to blame (they haven't been updated for months already), but it is the .NET Install Tool extension - that is automatically installed by C# or C# Dev Kit.

.NET Install Tool got updated yesterday and that broke the debugging of my app. No wonder once you take a look at its description:
This extension installs and manages different versions of the .NET SDK and Runtime.

Once I downgraded the .NET Install Tool I could debug again.

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

79575398

Date: 2025-04-15 14:28:34
Score: 2
Natty:
Report link

VS Code 1.99 no longer supports this OS, and for the last year has been popping up a warning about connecting to an unsupported OS.

If you can't downgrade to VS Code 1.98, you can follow Microsoft's instructions here to create a sysroot on your remote server containing glibc 2.28, which VS Code can use (in an unsupported mode).

If you did downgrade and it's still not working, try removing your ~/.vscode-server directory, to force it to redeploy the older server.

Reasons:
  • Blacklisted phrase (2): still not working
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: jursetto

79575387

Date: 2025-04-15 14:24:32
Score: 4
Natty:
Report link

can also used for wordpress site just add this meta tag in the head section.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): can also use
  • Low reputation (1):
Posted by: anees malik

79575385

Date: 2025-04-15 14:24:32
Score: 1
Natty:
Report link

This can be solved by adding a reverse proxy to your package.json in your react app:

"proxy": "http://localhost:8080"

This bypasses CORS issues because the request will be originating from http://localhost:8080.

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

79575380

Date: 2025-04-15 14:22:31
Score: 1.5
Natty:
Report link
TextFormField(
       showCursor: true,
      cursorColor: Colors..white,
)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Lucky Amos

79575366

Date: 2025-04-15 14:16:30
Score: 3.5
Natty:
Report link

We have the same problem in that we have a air-gapped network but want to install a .CRX.

SpiceWorks published directions for a powershell script to remotely install the .crx by temporarily enabling developer mode and installing it. Their directions are for Chrome, but should apply to Chromium based Edge as well with proper changes to which .exe is used.

https://community.spiceworks.com/t/how-to-install-a-chrome-extension-using-a-powershell-script/1014339

Reasons:
  • No code block (0.5):
  • Me too answer (2.5): have the same problem
  • Low reputation (0.5):
Posted by: Herb F

79575362

Date: 2025-04-15 14:14:29
Score: 4.5
Natty: 5.5
Report link

https://financialdata.net/documentation - stock prices, dividends, sector, industry, and more

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

79575343

Date: 2025-04-15 14:08:27
Score: 1
Natty:
Report link

I had the same problem while working on my React project. To resolve, I had to update the React version to ^18 and worked.

That happens because MUI is prepared to work with 18+ versions

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Samilly Nunes

79575341

Date: 2025-04-15 14:06:26
Score: 2
Natty:
Report link

Enable Show live issues (in Xcode settings - general) solved for me on Xcode 16.1

Looks like @saafo's answer is not valid anymore. Need to edit it.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @saafo's
  • Low reputation (0.5):
Posted by: Vin

79575340

Date: 2025-04-15 14:06:26
Score: 0.5
Natty:
Report link

This is a known issue and as of April 2025 we are working on it. Mysql 8.4 introduced a new password strategy called "caching_sha2_password". Cloud Run uses the Cloud SQL Auth Proxy to the Cloud SQL database. There is a bug in the Auth Proxy (and other connectors too) that breaks the caching_sha2_password protocol. The login starts working again after you log in with Cloud SQL Studio because the authentication is cached in Cloud SQL instance for a period of time.

We are tracking the bug here and actively working on a fix. See Cloud SQL Proxy #2317

At the moment, your best work-around is to downgrade to Mysql 8.0.

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

79575330

Date: 2025-04-15 13:56:24
Score: 0.5
Natty:
Report link

The query you constructed will give you a result set containing DirectBillMoneyRcvd entities. Any dot path references you invoke to get child data items (like policyperiod, account, distitems, etc) will be separate queries. The Gosu query api doesn't produce "merged" joins in result sets. Although there are ways to reference data in the joined entities (see product docs) that won't help you in this instance.

Without seeing the toDTO... code it's hard to say if there's any further improvement to be made - that is, are you referencing dot paths multiple times or are you referencing them once into a variable (among other best practices). That optimization is where you should focus your attention. Get rid of the non-required joins and try to optimize your toDTO code.

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

79575327

Date: 2025-04-15 13:55:24
Score: 1.5
Natty:
Report link

We use this approach for step conditions:

condition: eq(${{ parameters.runBuild }}, true)

This works for us, its a slight tweak in your approach.

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

79575325

Date: 2025-04-15 13:54:23
Score: 1
Natty:
Report link

1/ Compare like with like

2/ use unit_scale to avoiding having to count every value on screen

3/ use chunksize to reduce map vs imap differences (credit @Richard Sheridan)

print("Running normaly...")
    t0 = time.time()
    with Pool(processes=cpu_count()) as pool:
        results = list(pool.imap(partial(dummy_task, size=size), steps, chunksize=size))
print("Running with tqdm...")
    t2 = time.time()
    with Pool(processes=cpu_count()) as pool:
        results = list(tqdm(pool.imap(partial(dummy_task, size=size), steps, chunksize=size), total=len(steps), unit_scale=True))

Running normaly...

Time taken: 2.151 seconds

Running with tqdm...

100%|███████████████████████████████████████████████████████████| 500k/500k [00:02<00:00, 237kit/s]

Time taken: 2.192 seconds

Pool Process with TQDM is 1.019 times slower.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Richard
  • Filler text (0.5): ███████████████████████████████████████████████████████████
  • Low reputation (0.5):
Posted by: Paul Smith

79575324

Date: 2025-04-15 13:54:23
Score: 1.5
Natty:
Report link

Okay, I found a hint in the documentation that suggests setting a larger aggregation time, which I interpret as the window size for aggregation compared to the evaluation frequency. It doesn't explicitly mention clock skew, and my alerts don't actually fit the listed cases, but I take it as a "yes, it can happen."

I'm still open to accepting your answer if you find more information. Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: DataBach

79575320

Date: 2025-04-15 13:51:22
Score: 1
Natty:
Report link

If you use Slack in the browser (not their desktop app), you can create a browser extension which calls these APIs using the xoxc token.

I have done exactly that, to make a browser extension which automatically removes old conversations from Slack's channel sections: github.com/Zwyx/chrome-slack-sections-cleaner

(Note: using Slack in the browser as a desktop app is easy: simply open your browser's menu and click "Install app" or "Create shortcut". I have always used Slack this way.)

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

79575317

Date: 2025-04-15 13:49:22
Score: 2.5
Natty:
Report link
configurationBuilder.Properties<Enum>().HaveConversion<string>();
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: IngBond

79575316

Date: 2025-04-15 13:49:22
Score: 2
Natty:
Report link

In the google cloud, with permissions below, I grant access for Firebase account key creation.

  1. Firebase Admin SDK Administrator Service Agent

  2. Firebase App Distribution Admin SDK Service Agent

  3. Service Account Token Creator

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

79575315

Date: 2025-04-15 13:49:22
Score: 2
Natty:
Report link

Prettier will always break lines(as long as the arguments are long or multiline),and there's no simple configuration to disable this behavior. Try to accept its defaults rules. Prettier is a good tools in frontend world.

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

79575311

Date: 2025-04-15 13:47:21
Score: 2
Natty:
Report link

I totally get the challenge. Many teams are in the same boat after App Center's sunset. If you're looking for an alternative to distribute non-prod builds to testers, you might want to check out Zappli (https://www.zappli.app/). They're on a beta right now, but you can ask for an early access to try it. It works fine for me so far.

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

79575310

Date: 2025-04-15 13:46:21
Score: 1
Natty:
Report link

Use [embedFullWidthRows]="true" when defining ag-grid. Refer here.

Eg:

<ag-grid-angular
    style="width: 100%; height: 100%;"
    [columnDefs]="columnDefs"
    [defaultColDef]="defaultColDef"
    [masterDetail]="true"
    [embedFullWidthRows]="true"
    [detailCellRendererParams]="detailCellRendererParams"
    [rowData]="rowData"
    (firstDataRendered)="onFirstDataRendered($event)"
    (gridReady)="onGridReady($event)"
/> 
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: radz

79575306

Date: 2025-04-15 13:44:20
Score: 3.5
Natty:
Report link

enter image description here

A working screenshot from 2025.

Point is to use module instead of script.

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: LNseyJt2X-24UJ4r7KTL

79575302

Date: 2025-04-15 13:43:20
Score: 3
Natty:
Report link

Can you give us more details about your problem?

And please add a screenshot to show exactly what you mean.

I don't know if I understand your question or not, but if you mean how to change the flutter logo (default one) to your logo:

You can use 'image' parameter with the path of your image in the rectangular way as you want as explained in the documentation Flutter Native Splash Package

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • RegEx Blacklisted phrase (2.5): Can you give us
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can you give
  • Low reputation (0.5):
Posted by: Tarek Alabd

79575299

Date: 2025-04-15 13:42:19
Score: 3
Natty:
Report link

Assuming you are looking for a type of checklist for pentesting GCP infrastructures:

  1. A more generic one is The Penetration Testing Execution Standard.

  2. Cloud Security Alliance has a Pentesting Playbook (needs login to download).

  3. Here is also a GCP focused guide from HackTricks.

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

79575297

Date: 2025-04-15 13:41:18
Score: 11 🚩
Natty: 6
Report link

Did you resolve this ? If yes, please tell me how.

Reasons:
  • RegEx Blacklisted phrase (2.5): please tell me how
  • RegEx Blacklisted phrase (3): Did you resolve this
  • RegEx Blacklisted phrase (1.5): resolve this ?
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Rishi

79575277

Date: 2025-04-15 13:35:16
Score: 1
Natty:
Report link

it so effing annoying..

if i edit line.. it shows up in the github commit as diff.. it sh*ts all over my commits.


THE Fix.

why the heck they changed this. IDK!!

enter image description here


dont forget to disable Adaptive Formatting

enter image description here

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