79304871

Date: 2024-12-24 06:20:14
Score: 1
Natty:
Report link

It turns out I needed to first install Java. Here is the final snippet that worked:

- name: gcr.io/cloud-builders/npm
  entrypoint: bash
  dir: edcloud/cloud-function/${_PROJECT_NAME}
  args:
    - -c
    - |
      apt-get update && apt-get install -y openjdk-11-jdk
      npm install -g firebase-tools
      npm install
      firebase emulators:exec --project $PROJECT_ID 'npm test'
Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Shamil Jamion

79304867

Date: 2024-12-24 06:17:14
Score: 0.5
Natty:
Report link

A better solution is that you can use the boost-udp library instead of QUdpsocket. Try it out.

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

79304861

Date: 2024-12-24 06:13:13
Score: 0.5
Natty:
Report link

The issue seems to be with the segment you are passing. In the MUI documentation, segment paths are typically written without a leading forward slash (/).

Try using:

segment: 'dashboard/review-files'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vinayak Vohra

79304857

Date: 2024-12-24 06:09:12
Score: 1
Natty:
Report link

Similar to @Cataurus !! bind handler with picker !!

private async void Button_Click_Choose_Left_Folder(object sender, RoutedEventArgs e)
{
var folderPicker = new FolderPicker();

// 获取当前窗口的句柄(在 WinUI 或桌面应用中)
IntPtr hwnd = System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle;

// 将文件夹选择器与窗口句柄关联
WinRT.Interop.InitializeWithWindow.Initialize(folderPicker, hwnd);

folderPicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
...

var folder = await folderPicker.PickSingleFolderAsync();
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Cataurus
  • Low reputation (1):
Posted by: Shengjie Lu

79304855

Date: 2024-12-24 06:08:12
Score: 0.5
Natty:
Report link

Using a timer to run an executable file at a specific time

Lee, Cheul Woo

Usually, you use the Windows Task Scheduler to run an executable file at a specific time or when a specific event occurs. This article introduces a code that uses a timer in a program to run an executable file at a specific time.

The static function below is called when a timer event occurs. The parameter settingTime is a specific time, the parameter now is the current time, the parameter period is the timer cycle, and the parameter processPath is an executable file.

private static void CheckTime(TimeOnly settingTime, TimeOnly now, TimeSpan period, string processPath)
{
    if (now < settingTime)
    {
        var diff = settingTime - now;

        if (diff > period)
        {
        }
        else
        {
            // To-Do.
            System.Diagnostics.Process.Start(processPath!);
        }
    }
}

The To-Do section of the code above makes a specific executable file run. You can put the tasks you want to do in this section.

Reasons:
  • Blacklisted phrase (1): This article
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ch. W. Lee

79304853

Date: 2024-12-24 06:06:11
Score: 1.5
Natty:
Report link

VS Code's integrated terminal populates environment variables on startup by sourcing the shell configuration files relevant to the terminal's shell type (e.g., Bash, Zsh, PowerShell). When you open the terminal, it executes the startup files like .bashrc or .zshrc (on Unix-based systems) or $PROFILE (on Windows for PowerShell). These files define environment variables, including custom paths, user-specific variables, or system-wide configurations. VS Code also provides the ability to customize environment variables specifically for the integrated terminal through settings in settings.json or by using the terminal.integrated.env.* settings to ensure a tailored environment that can differ from the system's global environment.

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

79304852

Date: 2024-12-24 06:06:11
Score: 1.5
Natty:
Report link

I have tried with: "vite": "^6.0.5" and vite@latest.

but even setting base:'' sets always a slash(/) before the folder/filename like so:

<link rel="stylesheet" crossorigin="" href="/assets/main-DKYW8OEW.css">

what i want is:

<link rel="stylesheet" crossorigin="" href="assets/main-DKYW8OEW.css">
Reasons:
  • RegEx Blacklisted phrase (1): i want
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Lukas Hillebrand

79304843

Date: 2024-12-24 06:03:11
Score: 2.5
Natty:
Report link

Requirement to know data types before compilation is too restrictive in my opinion. Our C++ SDK discovers custom data types at runtime: https://onewayautomation.com/opcua-sdk

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

79304830

Date: 2024-12-24 05:44:03
Score: 4
Natty:
Report link

So this fix is to make the class injectable by annotating it with @Injectable(), put it at the top of the class

Reasons:
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @Injectable
  • Single line (0.5):
  • Low reputation (1):
Posted by: kratosgado

79304826

Date: 2024-12-24 05:41:02
Score: 1.5
Natty:
Report link

I had the same issue. There were multiple "libiomp5md.dll" files inside the environment, one in the root of the environment folder and another in lib\site-packages\torch\lib. I deleted the libiomp5md.dll in the root folder, and it started working fine.

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

79304824

Date: 2024-12-24 05:40:02
Score: 3
Natty:
Report link

if you hover over the hot reload icon with your mouse it's gonna show you the active shortcut for it and to change it you can go to setting > keymap > main menu > Run/Debug

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

79304818

Date: 2024-12-24 05:35:01
Score: 3.5
Natty:
Report link

In my case, I have some breakpoints in DOM Breakpoints, you need to remove them to void enter debug mode, you can see below image

enter image description here

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

79304808

Date: 2024-12-24 05:30:00
Score: 1
Natty:
Report link

@APB Reports provides a good answer. I also come across this issue, you have to adjust the padding of your view and the width of your marks (more so than normal).

Here is my example: Bullet Chart - Vega-Lite

Bullet Chart - Deneb

You can also achieve responsive behaviours in PowerBI's Deneb by multiplying marks or other elements by the container height and width:

Config:

{
"padding": {
    "left": 20,
    "right": 20,
    "top": 20,
    "bottom": 20
  }
}
"dx": {"expr": "width * - 0.01"},
"dy": {"expr": "height * 0.01"}
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @APB
  • Low reputation (0.5):
Posted by: PBI Queryous

79304797

Date: 2024-12-24 05:25:59
Score: 1.5
Natty:
Report link

Via next.config.js

Set the header no-cache on the path that you want.

module.exports = {
  headers: () => [
    {
      source: '/:path*',
      headers: [
        {
          key: 'cache-control',
          value: 'no-cache',
        },
      ],
    },
  ],
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Rahul M Navneeth

79304791

Date: 2024-12-24 05:22:59
Score: 0.5
Natty:
Report link

Further to @SeaSky what worked for me:

sudo dnf install python3.11 -y
sudo dnf install python3.11-pip -y

sudo dnf groupinstall "Development Tools"
sudo dnf install mysql-community-devel gcc python3.11-devel

pip install mysqlclient
Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @SeaSky
  • Low reputation (0.5):
Posted by: CodeMonk

79304761

Date: 2024-12-24 05:05:56
Score: 1
Natty:
Report link

The answer given by @fuyushimoya is very poor quality and does not work the way you intended. If you actually wanted to sync them, you would have to ensure the value gets updated on input in either textarea.

<html>

<head>
  <title>Live Text Sync</title>
  <meta charset="utf-8" />
</head>

<body>
  <textarea id="a"></textarea>
  <textarea id="b"></textarea>
  <script>
    var a = document.getElementById("a");
    var b = document.getElementById("b");
    a.oninput = function(e) {
      b.value = a.value;
    }
    b.oninput = function(e) {
      a.value = b.value;
    }
  </script>
</body>

</html>
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @fuyushimoya
  • Low reputation (1):
Posted by: April Hall

79304759

Date: 2024-12-24 05:03:55
Score: 1
Natty:
Report link

Use -exclude-secrets flag: aztfexport has an option to exclude secrets from the exported Terraform configuration. By default, it includes all the data in the exported files. To automatically exclude secrets, use the -exclude-secrets flag when running the tool.

Example command:

aztfexport -subscriptionId -exclude-secrets -outputDirectory ./output

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

79304758

Date: 2024-12-24 05:02:55
Score: 2.5
Natty:
Report link

But if we have to update the key value secret from library variable group to Key vault is that possible ? As we did this without masking value in library variable group. As we some requirement which required those value present to run data factory first

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

79304757

Date: 2024-12-24 05:01:54
Score: 5
Natty:
Report link

If you are connecting via an office network. It is possible the DNS resolution is being blocked. Try using the standard uri connection string without srv from mongodb atlas website.

How to get standard URI connection string (without srv) on mongodb website with current update?

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

79304755

Date: 2024-12-24 04:58:53
Score: 1.5
Natty:
Report link

How to Make RocketChat Talk to Your Ticket System: A Practical Guide Good news - you can connect these systems using webhooks, and while it requires some setup, it's quite manageable. Here's how:

Set Up RocketChat Webhook: Configure RocketChat to notify your ticket system when something important happens - think of it as setting up a digital messenger between the two systems. Choose Your Integration Method: You need something to translate between RocketChat and your ticket system. You've got options:

n8n: An open-source tool that connects different systems like digital building blocks Node-RED: Similar, but with a more user-friendly interface Custom Script: For those who prefer total control over their integration

Security Setup:

Add authentication tokens to your webhook Secure your API connections Because keeping your system secure is just common sense!

Implementation Steps:

Deploy your chosen solution on your local network Configure the webhook to send relevant chat data Set up the connection to your ticket system's API Test thoroughly before going live

Why This Approach Works:

Keeps your data within your network Gives you complete control over the process Saves money (since you're using open-source tools)

The end result? Two systems working together smoothly and efficiently. No external services required, just a straightforward, secure integration that gets the job done. Remember to test everything thoroughly before rolling it out - better safe than sorry when it comes to system integrations!

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: Yaaqov Baidani

79304753

Date: 2024-12-24 04:54:52
Score: 3.5
Natty:
Report link

There is an example of CRUD operations using NextJS and Couchbase in this repository, it should help you get started.

https://github.com/couchbase-examples/nextjs-capella-quickstart

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

79304752

Date: 2024-12-24 04:54:52
Score: 1.5
Natty:
Report link

IM-COOL-BOOY-FM 📻✨

🔰 SL Android Official ™

👨‍💻 Developed by IM COOL BOOY

Welcome to IM-COOL-BOOY-FM a powerful Python-based radio station player.This tool is designed to allow users to easily search for, play, switch, and stop radio stations from around the world.Powered by the Radio Browser API and VLC Media Player, it provides a seamless and enjoyable listening experience with a modern,colorful CLI interface.👨‍💻

📦 Installation Instructions:⬇️⬇️⬇️

⬇️⬇️To get started with IM-COOL-BOOY-FM, follow these steps:⬇️⬇️

1️⃣ pkg install vlc

📦 Install the package via pip:⬇️⬇️

2️⃣ pip install IM-COOL-BOOY-FM

🚀 Quick Start:⬇️⬇️⬇️

Explore and enjoy worldwide radio stations with simple commands ⬇️

⬇️⬇️ Run the program to get started

1️⃣ IM-COOL-BOOY-FM

Once installed, you can access the tool's help and start using it with the following command:⬇️⬇️⬇️

3️⃣ IM-COOL-BOOY-FM -h

🔰🔰🔰🔰🔰🔰🔰🔰🔰🔰🔰🔰🔰🔰🔰

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Filler text (0.5): 🔰🔰🔰🔰🔰🔰🔰🔰🔰🔰🔰🔰🔰🔰🔰
  • Low reputation (1):
Posted by: සෆ්ඝ්හ් හ්හ්හ්ජ්හ්හ්

79304743

Date: 2024-12-24 04:49:51
Score: 1.5
Natty:
Report link

We chaged the IP tables at Host machine which effected the docker networking so simply restart the docker service resolved my problem.

Reasons:
  • Whitelisted phrase (-1.5): resolved my problem
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: novice_coder99

79304733

Date: 2024-12-24 04:37:49
Score: 1
Natty:
Report link

Just use the contentShape(_:_:eoFill:) initializer, making sure to specify a ContentShapeKinds of .contextMenuPreview:

.contentShape(.contextMenuPreview, RoundedRectangle(cornerRadius: 10))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Andrei G.

79304722

Date: 2024-12-24 04:28:47
Score: 2
Natty:
Report link

Create new ssh key using ssh keygen and Personal access token. This will solve the error and give you access.

Ssh key authentication in Azure Devops -

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Jayanth Kumar T

79304711

Date: 2024-12-24 04:22:46
Score: 1.5
Natty:
Report link

As the project manager for SCons I don't recommend this. It's not supported usage.

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

79304709

Date: 2024-12-24 04:18:45
Score: 1
Natty:
Report link

Your app has been rejected by the Google team for two reasons:

Login Credentials: You must provide active and working credentials for the Google team to log into your app. If you've already provided credentials, ensure they are correct.

App Crashing: The application crashes upon launch. This crash might be due to a version mismatch between the submitted app and the previous one. Check Firebase Crashlytics for crash details if Firebase is implemented. Otherwise, review the Google Pre-launch report in the Play Console.

Additionally, keep in mind that both app bundles are being reviewed. If you want only one bundle reviewed, roll out the desired bundle to 100% of users across all selected countries for Internal, Beta, and Production testing.

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

79304705

Date: 2024-12-24 04:13:44
Score: 2.5
Natty:
Report link

Lets assume for a minute that the URL is correct (because that is a ridiculous blame) and that the https: address is correct (because, are you imagining that I am an idiot?) The problem is the SSH key and how do I check and correct whatever is wrong.

  1. The machine I am working FROM (maybe Windows, maybe Ubuntu) have different user names and different ssh key locations and different ssh keys.
  2. The issue is with Forge trying to redeploy a site hosted by Digital Ocean and it gives 3 possible solutions to the failure.
  3. None of the 'possible failures' means diddly squat to me since it doesn't saw WHAT is wrong with the keys. "[email protected]: Permission denied (public key). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists." 4.I can read the repo, I can access it on github. I have a valid login. WHAT THE h IS THE PROBLEM!!!!!!!
Reasons:
  • Blacklisted phrase (1): how do I
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Alan Wilson

79304694

Date: 2024-12-24 04:03:42
Score: 1.5
Natty:
Report link

Port 8080 needs to be opened on the tomcat host machine.

In this instance the host machine was a macbook.

echo "pass in proto tcp from any to any port 8080" | sudo pfctl -ef -

This line was ran in the terminal to open the port on the machine and connection was then allowed.

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

79304691

Date: 2024-12-24 04:01:42
Score: 2
Natty:
Report link

Use <scope>system</scope> in jar <dependecy></dependency>,

please reference (https://stackoverflow.com/a/28958317/4573839).

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: yu yang Jian

79304690

Date: 2024-12-24 04:00:42
Score: 0.5
Natty:
Report link
2025/Python/FlaskIntro 
[09:20]❯ python3 -m venv .venv

2025/Python/FlaskIntro 
[09:20]❯ . .venv/bin/activate.fish 

2025/Python/FlaskIntro [🐍 v3.13.1(.venv)]
[09:21]❯ pip install Flask
Collecting Flask
  Downloading flask-3.1.0-py3-none-any.whl.metadata (2.7 kB)

I tried all the files in venv/bin folder and the above command worked.

Cause of the problem: I was using fish shell.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Sudhakar Krishnan

79304687

Date: 2024-12-24 03:56:41
Score: 2.5
Natty:
Report link

If you are using dokesh's lightbox then the anchor link needs to have data-title="My caption". That data-title in the anchor link triggers the elimination of display:none or display:hidden in the code and the caption will then show.

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

79304686

Date: 2024-12-24 03:55:41
Score: 0.5
Natty:
Report link
=> in design view remove any crystal report viewer control if placed and put below code

                <div id="divPDFView" runat="server" >
                </div>

=> Dont forget to create folder "PDFExports" in root 

=> Just call below function to show report. (Replace values with your values where '?' is placed and report should be in folder named "Reports" )

   private void ShowReport()
   {
            ReportDocument rd = new ReportDocument();

            rd.Load(Path.Combine(Server.MapPath("~/Reports"), "?ReportName.rpt"));

            //@@: Record Selection formula
            //rd.RecordSelectionFormula = "???";

            rd.SetDatabaseLogon(?UserId, ?Password, ?DbServer, "");

            //@@: Parameters
            //rd.SetParameterValue("cpf_1", "");  //String
            //rd.SetParameterValue("cpf_2", Convert.toInt32("1"));  //Int

            //@@: Parameters to Subreport
            //rd.SetParameterValue("cpf_????", "", rd.Subreports[0].Name);

            //@@: Set Title
            //rd.SummaryInfo.ReportTitle = "Report as on " + DateTime.Today.Day + "-" + DateTime.Today.Month + "-" + DateTime.Today.Year;

            //I use it for unique file names.. you can avoid it..
            Guid g = Guid.NewGuid();
            string strFileName = "?zReportName_" + DateTime.Now.ToString("yyyyMMdd-HHmmss") + "_" + Session["userId"].ToString() + "_" + g.ToString() + ".pdf";
            rd.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Path.Combine(Server.MapPath("~/PDFExports"), strFileName));

            divPDFView.InnerHtml = "<object data=\"PDFExports/" + strFileName + "\" type=\"application/pdf\" width=\"1230\" height=\"880\">  alt : <a href=\"PDFExports\\a.pdf\">PDF File</a> </object>";

            rd.Dispose();
            rd.Close();
      }
Reasons:
  • Blacklisted phrase (1): ???
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ashif Pathan

79304685

Date: 2024-12-24 03:55:41
Score: 3
Natty:
Report link

I think Elysiajs doesn't have a plugin that serves folders, but you can see an example of making a bun file server in this repository or use the http-server from nodejs

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

79304684

Date: 2024-12-24 03:53:41
Score: 2
Natty:
Report link

Extracting data from low-resolution or scanned graphs can be tricky, but there are tools to help. For example, free plot digitizer (SplineCloud.com) is an excellent option for extracting data points, including those from graphs with logarithmic scales. It's easy to use and supports various graph types, making the process much simpler.

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

79304679

Date: 2024-12-24 03:43:39
Score: 1
Natty:
Report link

To add custom toolbar on SALV, you need to do these following steps:

  1. SE41, Program name: SALV_DEMO_TABLE_FUNCTIONS, status name: SALV_STANDARD.
  2. Copy that Toolbar into your own custom toolbar.
  3. Define a method to Implement added_function event from class cl_Salv_events.
  4. The added_function has an import parameter to check your sy-ucomm value.

You can check the steps more detail here: adding custom toolbar on SALV.

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

79304676

Date: 2024-12-24 03:42:39
Score: 0.5
Natty:
Report link

I encountered the same issue and managed to proceed by using a thread pool.

For example:

celery -A app worker --loglevel=info --pool threads

This approach is suitable for debugging purposes. You might need to dig deeper on the tasks being executed by the workers

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

79304663

Date: 2024-12-24 03:24:36
Score: 1.5
Natty:
Report link

This is a UI bug which may occur if you:

  1. overrided high DPI scaling behavior by selecting the system(Enhanced) option in eclipse.exe high DPI setting and
  2. selected eclipse light or dark theme

solutions:

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

79304656

Date: 2024-12-24 03:21:35
Score: 1
Natty:
Report link

If you have a fix, here's information about contributing to pandas. If you don't want to contribute, the best way would be to validate input in application code to avoid breaking functionality and maintaining the patch long-term.

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

79304653

Date: 2024-12-24 03:20:35
Score: 3
Natty:
Report link

Thanks to M.Deinum, I learned that: In case of an error, it redirects to /error. I made a few modifications and it worked.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Frank

79304650

Date: 2024-12-24 03:19:34
Score: 2.5
Natty:
Report link

We recommend avoiding _catalog endpoint if possible for AR or GCR. Usually you can get better much results querying the specific info you need using the AR api (https://cloud.google.com/artifact-registry/docs/reference/rest)

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

79304628

Date: 2024-12-24 02:57:31
Score: 1.5
Natty:
Report link

In my environment, the deployment is in Kubernetes and this issue happens when there are multiple replicas and the error is repeatable with more than one replicas. So, for admin console I created a separate deployment with one replica and there is no such error. I had to resort to this fix as this is disruptive in production environment. For token request, I have multiple replicas as there are more traffic.

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

79304624

Date: 2024-12-24 02:55:30
Score: 3
Natty:
Report link

You must review and agree with the new agreement from Apple by the role Account Holder of the Organization.

Link: https://developer.apple.com/account

Review Agreement

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

79304618

Date: 2024-12-24 02:50:29
Score: 10
Natty: 8.5
Report link

Thank you for this post I am thinking about the same however mainly notifications need to be posted to Admin or Dashboard whatever you call it. Did you manage to solve it ?

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (3): Did you manage to solve it
  • RegEx Blacklisted phrase (1.5): solve it ?
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: gekko

79304614

Date: 2024-12-24 02:41:27
Score: 2
Natty:
Report link

There are also other simple ways to confirm usb2.0 or usb3.0 port:

  1. Check usb port logo of computer. usb2.0 & 3.0 have differ usb logo.
  2. Download or upload a fixed size file. After transaction completed, statistical information would be showed including data size, speed and time. usb2.0 and 3.0 have different speed limit.

For example:

C:\Users\jason95>adb root & adb remount

adbd is already running as root remount succeeded

C:\Users\jason95>adb pull /data/test.img

/data/test.img: 1 file pulled, 0 skipped. 323.9 MB/s (1073741824 bytes in 3.161s)

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

79304612

Date: 2024-12-24 02:38:27
Score: 0.5
Natty:
Report link

In my case, I downgraded clang from version 16 to 14.

Here's the steps for my environment (adapt as necessary):

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

79304607

Date: 2024-12-24 02:27:25
Score: 5.5
Natty: 5
Report link

Is the googleIdTokenCredential.id fixed for the same account, or can it alternate between numbers and email addresses?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Is the
  • Low reputation (1):
Posted by: hewei chen

79304583

Date: 2024-12-24 02:03:18
Score: 8 🚩
Natty: 4
Report link

Did you find a solution at last?

Reasons:
  • RegEx Blacklisted phrase (3): Did you find a solution
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you find a solution
  • Low reputation (1):
Posted by: user28912446

79304580

Date: 2024-12-24 01:56:16
Score: 10 🚩
Natty: 5.5
Report link

I have the same issue. May I ask, do you run a web server application?

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Blacklisted phrase (1): May I ask
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rovic Dimacali

79304574

Date: 2024-12-24 01:49:14
Score: 4
Natty:
Report link

'image' => 'required_if:old_image,!=,null'

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: hbakouane

79304566

Date: 2024-12-24 01:43:12
Score: 2.5
Natty:
Report link

If clicking on an edit icon is not suppose to open the edit page, what should it do instead?

If the problem is that it does not send you to the correct edit page, you should use the pk argument in the edit_category in the views.py to select the right one. You may need to modify the edit_category.html before rendering it for each request.

P.S. I know I not suppose to ask for clarification here, but I CAN NOT WRITE COMMENTS UNTIL 50 REPUTATION!

Reasons:
  • RegEx Blacklisted phrase (1.5): 50 REPUTATION
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Lubomyr Pryt

79304561

Date: 2024-12-24 01:37:12
Score: 3
Natty:
Report link

Thanks @zer00ne and @Alohci for your comments, both overflow-y: scroll and scrollbar-gutter: stable work for my use case.

Obligatory caniuse for the latter.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @zer00ne
  • User mentioned (0): @Alohci
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: maxcutlyp

79304552

Date: 2024-12-24 01:22:09
Score: 3.5
Natty:
Report link

I was told if I use Google services or Google Play store apps in Vancouver, BC I'd be beaten to death or have my head smashed in

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

79304545

Date: 2024-12-24 01:13:07
Score: 0.5
Natty:
Report link

The original poster might not see this, but hopefully anyone with the same question does.

I directly referenced the alias and it worked. My query was:

SELECT SUM(amt) AS to_assets FROM ... WERE ...;

My string that I input into the control source for the text box was 'to_assets', not '=to_assets', not '=[query_name]![to_assets]'

Reasons:
  • Whitelisted phrase (-1): it worked
  • No code block (0.5):
  • Low reputation (1):
Posted by: John McVickar

79304542

Date: 2024-12-24 01:08:06
Score: 1.5
Natty:
Report link

you just need to add a condition inside your forEach loop that checks if the row is hidden before processing it. The sheet.isRowHiddenByUser(rowIndex) method returns true if the row is hidden by the user. Modify your loop like this:

Add a check for sheet.isRowHiddenByUser(index + 2) (since your data starts at row 2) before updating the event. If the row is hidden, skip the update for that row.

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

79304539

Date: 2024-12-24 01:05:05
Score: 0.5
Natty:
Report link

As mentioned above, in order for my service under test to be correctly wired up to be Proxied, it needs to be annotated in the test as @Autowired.

And, in order to make my service @Autowired while still being able to mock a failure, I needed to change my dependencies from being @Autowired to using @SpyBean.

In addition, @MybatisTest is itself @Transactional, so that masks whether the rollback in my application code is actually working. So, I have fallen back to using @SpringBootTest.

@SpringBootTest
@AutoConfigureTestDatabase(replace = AutoConfigureTestDatabase.Replace.NONE)
public class ThingServiceIntegrationTest extends AbstractPostgresJupiterTest {
    // NOTE: AbstractPostgresJupiterTest sets up a PostgreSQLContainer and initializes datasource properties

    @SpyBean
    private ThingMapper mapper;

    @SpyBean
    private ThingDao dao;

    @Autowired
    private ThingService service;


    @Test
    @Description("Should rollback on error")
    public void rollbackOnError() {
        final List<ThingRequest> createRequests = Stream.of(1, 3)
                .map(i -> generateThingRequest())
                .toList();
        final ThingRequest badRequest = createRequests.getLast().withName("Bad Request");
        final List<ThingRequest> all =
                Stream.concat(createRequests.stream(), Stream.of(badRequest)).toList();

        doThrow(new MyBadRequestException("bad")).when(dao)
                .createThing(argThat(thing -> thing.id().equals(badCreate.id())));

        assertThrows(MyBadRequestException.class, () -> thingService.createUpdateThings(all));

        // should rollback all inserts
        createRequests.forEach(req -> {
            assertTrue(dao.getByName(req.name()).isEmpty()); 
        });
    }
}

Finally, one other tweak I had to do was due to MyService having an @Autowired constructor (vs autowired fields). This seemed to cause problems for the @SpyBeans. The fix for this was to mark the constructor parameters as @Lazy.

With all these changes, I was able to use @Transactional instead of the transaction manager approach.

@Service
public class ThingService {
    private final ThingDao thingDao;

    @Autowired
    public ThingService(@Lazy final ThingDao dao) {
        this.thingDao = dao;
        this.txManager = txManager;
    }

    @Transactional(rollbackFor = Throwable.class)
    public void createOrUpdate(final List<ThingRequest> requests) {
        requests.forEach(c -> thingDao.createThing(ThingModel.fromCreateRequest(c)));
    }

    public void createUpdateThings(final List<ThingRequest> requests) throws ControllerBadRequestException {
        try {
            createOrUpdate(requests);
        } catch (final Throwable t) {
            logger.error("A database exception occurred during createUpdateThings", t);
            throw new MyBadRequestException(t);
        }
    }
}

Hope this is helpful for someone else.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sydney

79304534

Date: 2024-12-24 01:01:04
Score: 1
Natty:
Report link

For now my TLDR is to use Platform.io instead of the Arduino plugin.

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

79304528

Date: 2024-12-24 00:52:03
Score: 1
Natty:
Report link

You can define the mask with your 2 conditions and then use .loc:

x, y = 1, 5
mask = df["col1"].isin(["val2", "val3"]) & df.index.isin(range(x, y+1))
df.loc[mask, "col1"] = "val4"
display(df)

res

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

79304505

Date: 2024-12-24 00:14:56
Score: 0.5
Natty:
Report link

Is there a way to somehow configure twilio account, or use some parameters/verbs in twiML to use specific edge location for websocket connection?

No, the Media Stream feature of Twilio’s Programmable Voice does not support Edge Locations.

As of this writing, the only features listed within Programmable Voice that do support Edge Locations are the REST API, Sending SIP & Receiving SIP.

Reasons:
  • Blacklisted phrase (1): Is there a way
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is there a
  • High reputation (-2):
Posted by: esqew

79304504

Date: 2024-12-24 00:14:56
Score: 1
Natty:
Report link

I was doing similar things using a data conversion and I got similar error messages. I want to report what I think is a bug in ssis. I was reading a .csv file to a data conversion and then assigning it into a decimal(18.8) ms sql column. All fields in the .csv were enclosed in double quote ("). The double quotes were removed before assignment to the database. The Data Conversion step assigned the problem column to a dt_numeric 18, 8 value. This wasn't easy to find in 180k row input file but a row with "0" in the numeric column was causing the problem. If I removed the row with the "0" it worked. If I changed the row to 0.0 it worked. If I changed the row to "1" it worked. That to me that is a bug in ssis. I can replicate this problem any time with a vs 2019 built ssis package in our environment.

Reasons:
  • Whitelisted phrase (-1): it worked
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: renaissanceMan

79304459

Date: 2024-12-23 23:30:47
Score: 4.5
Natty:
Report link

It's related to the multiple gpu-training, and my answer for a similar post is below

https://stackoverflow.com/a/79302000/17988964

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: djmoon13

79304455

Date: 2024-12-23 23:25:46
Score: 0.5
Natty:
Report link

If your terminal have automation permissions, you just need to reset cache:

sudo rm -Rf node_modules
sudo rm -Rf .expo
// If you prebuild your app
sudo rm -Rf ios
sudo rm -Rf android

npm install or yarn

Then, npx expo start -c or if you prebuilded your app, npx expo prebuild.

It should be working!

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

79304453

Date: 2024-12-23 23:21:45
Score: 0.5
Natty:
Report link

If fromData method is static method you should use like this

 $secure3Dv2Notification = Secure3Dv2Notification::fromData($_POST);

If fromData is non-static method you should use

 $secure3Dv2Notification = (new Secure3Dv2Notification())->fromData($_POST);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Gev99

79304447

Date: 2024-12-23 23:18:44
Score: 3.5
Natty:
Report link

I know the reply is about 14 years late, but, I manually edited the line of code where my bitmap is defined at and changed it to RCDATA.

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

79304444

Date: 2024-12-23 23:16:43
Score: 5.5
Natty:
Report link

This is not Java but looks like JavaScript. Why does it have Java tag?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sikerim AMK

79304441

Date: 2024-12-23 23:15:43
Score: 0.5
Natty:
Report link

I don't think there is an "official" way. As I see it you have two ways you can do this, either by re-drawing the canvas content or by moving and scaling the canvas as a whole using CSS transform. The latter is vastly more performant.

I made a demo comparing drag and zoom using Fabric.js versus using CSS transform: https://codepen.io/Fjonan/pen/azoWXWJ


Since you requested it I will go into detail on how to do it using Fabric.js native functions although I recommend looking into CSS transform.


Setup something like this:

<canvas id=canvas>
</canvas>

This code handles dragging:

const canvas = new fabric.Canvas("canvas",{
  allowTouchScrolling: false,
  defaultCursor: 'grab',
  selection: false,
  // …
})
let lastPosX, 
    lastPosY

canvas.on("mouse:down", dragCanvasStart)
canvas.on("mouse:move", dragCanvas)

/**
 * Save reference point from which the interaction started
 */
function dragCanvasStart(event) {
  const evt = event.e || event // fabricJS event or regular event
    
  // save thew position you started dragging from
  lastPosX = evt.clientX
  lastPosY = evt.clientY
}

/**
 * Start Dragging the Canvas using Fabric JS Events
 */
function dragCanvas(event) {    
  const evt = event.e || event // fabricJS event or regular event

  if (1 !== evt.buttons) { // left mouse button is pressed
    return
  }
    
  redrawCanvas(evt)
}

/**
 * Update canvas by updating viewport transform triggering a re-render
 * this is very expensive and slow when done to a lot of elements
 */
function redrawCanvas(event) {
  const vpt = canvas.viewportTransform

  let offsetX = vpt[4] + event.clientX - (lastPosX || 0)
  let offsetY = vpt[5] + event.clientY - (lastPosY || 0)

  vpt[4] = offsetX
  vpt[5] = offsetY

  lastPosX = event.clientX
  lastPosY = event.clientY

  canvas.setViewportTransform(vpt)
}

And this code will handle zoom:

canvas.on('mouse:wheel', zoomCanvasMouseWheel)

/**
 * Zoom canvas when user used mouse wheel
 */
function zoomCanvasMouseWheel(event) {
  const delta = event.e.deltaY
  let zoom = canvas.getZoom()

  zoom *= 0.999 ** delta
  const point = {x: event.e.offsetX, y: event.e.offsetY}
    
  zoomCanvas(zoom, point)
}

/**
 * Zoom the canvas content using fabric JS
 */
function zoomCanvas(zoom, aroundPoint) {
  canvas.zoomToPoint(aroundPoint, zoom)
  canvas.renderAll()
}

Now for touch events we have to attach our own event listeners since Fabric.js does not (yet) support touch events as part of their handled listeners.

Fabric.js will create its own wrapper element canvas-container which I access here using canvas.wrapperEl.

let pinchCenter,
    initialDistance

canvas.wrapperEl.addEventListener('touchstart', (event) => {
  dragCanvasStart(event.targetTouches[0])
  pinchCanvasStart(event)
})
    
canvas.wrapperEl.addEventListener('touchmove', (event) => {      
  dragCanvas(event.targetTouches[0])
  pinchCanvas(event)
})

/**
 * Save the distance between the touch points when starting the pinch
 */
function pinchCanvasStart(event) {
  if (event.touches.length !== 2) {
    return
  }
    
  initialDistance = getPinchDistance(event.touches[0], event.touches[1])
}

/**
 * Start pinch-zooming the canvas
 */
function pinchCanvas(event) {
  if (event.touches.length !== 2) {
    return
  }

  setPinchCenter(event.touches[0], event.touches[1])

  const currentDistance = getPinchDistance(event.touches[0], event.touches[1])
  let scale = (currentDistance / initialDistance).toFixed(2)
  scale = 1 + (scale - 1) / 20 // slows down scale from pinch

  zoomCanvas(scale * canvas.getZoom(), pinchCenter)
}

/**
 * Putting touch point coordinates into an object
 */
function getPinchCoordinates(touch1, touch2) {
  return {
    x1: touch1.clientX,
    y1: touch1.clientY,
    x2: touch2.clientX,
    y2: touch2.clientY,
  }
}

/**
 * Returns the distance between two touch points
 */
function getPinchDistance(touch1, touch2) {
  const coord = getPinchCoordinates(touch1, touch2)
  return Math.sqrt(Math.pow(coord.x2 - coord.x1, 2) + Math.pow(coord.y2 - coord.y1, 2))
}
  
/**
 * Pinch center around wich the canvas will be scaled/zoomed
 * takes into account the translation of the container element
 */
function setPinchCenter(touch1, touch2) {    
  const coord = getPinchCoordinates(touch1, touch2)

  const currentX = (coord.x1 + coord.x2) / 2
  const currentY = (coord.y1 + coord.y2) / 2
    
  pinchCenter = {
    x: currentX,
    y: currentY,
  }    
}

Again, this is a very expensive way to handle zoom and drag since it forces Fabric.js to re-render the content on every frame. Even when limiting the event calls using throttle you will not get smooth performance especially on mobile devices.

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

79304436

Date: 2024-12-23 23:10:42
Score: 2
Natty:
Report link

When you are trying to connect your Modules/User/Routes/api.php make sure you are using require instance of require_once

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When you are
  • Low reputation (0.5):
Posted by: Gev99

79304419

Date: 2024-12-23 23:01:41
Score: 2
Natty:
Report link

The annotation processing errors have been eliminated. In the POM, I changed <springdoc.version>1.6.0</springdoc.version> to <springdoc.version>1.8.0</springdoc.version>. One of my coworkers found this fix. I'm not sure where he came up with it, so I can't point to a source. I'm receiving many new errors, but at least these ones are fixed. Thanks to everyone who responded.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bugalley

79304412

Date: 2024-12-23 22:57:40
Score: 2.5
Natty:
Report link

consegui resolver o problema de autenticação do clerk com: Configure > Attack protection > Bot sign-up protection desativando essa opção fiz isso com base no que o usuario Jaime Nguyen fez!

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

79304411

Date: 2024-12-23 22:55:40
Score: 0.5
Natty:
Report link

You can choose the location of each text as you wish using the example below:

texts

 = []
for idx in range(0, len(x),2):
    if idx in list(range(16, 24)):
        pos_x, pos_y = x[idx] - 0.35, y[idx] + 0.01
    else:
        pos_x, pos_y = x[idx] + 0.25, y[idx] + 0.01
    texts.append(
        ax.annotate(
            idx,
            xy=(pos_x, pos_y),
            fontsize=10,
            zorder=100,
        )
    )

plot

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

79304409

Date: 2024-12-23 22:54:39
Score: 2.5
Natty:
Report link

Ran into the same issue in my project using gradle and "io.awspring.cloud:spring-cloud-aws-messaging:2.3.3", debugged for about 3 days and the key was to add "implementation("io.awspring.cloud:spring-cloud-aws-autoconfigure")".

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

79304349

Date: 2024-12-23 22:07:30
Score: 1.5
Natty:
Report link

Depends one what you want to do you can use Singleton, static classes or make a new instance of the other classes in your new class like list initialization and etc

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

79304348

Date: 2024-12-23 22:05:29
Score: 0.5
Natty:
Report link

You have to use socket object in it. also could refer to https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/

const client = createClient({
    username: 'default', // use your Redis user. More info 
    password: 'secret', // use your password here
    socket: {
        host: 'my-redis.cloud.redislabs.com',
        port: 6379,
        tls: true,
        key: readFileSync('./redis_user_private.key'),
        cert: readFileSync('./redis_user.crt'),
        ca: [readFileSync('./redis_ca.pem')]
    }
});

client.on('error', (err) => console.log('Redis Client Error', err));

await client.connect();

await client.set('foo', 'bar');
const value = await client.get('foo');
console.log(value) // returns 'bar'

await client.disconnect();

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

79304341

Date: 2024-12-23 22:02:28
Score: 2.5
Natty:
Report link

I ran into a similar issue, if not the same one. First, tag your image with a specific version. I.e. 'my_iamge:1.0'. Next, you may need to add an explicit 'imagePullPolicy: IfNotPresent' directly under the image reference for the container. Kubernetes will automatically change the pull policy to 'Always' if the tag is ':latest'. After I did that, Kubernetes running as part of Docker Desktop recognized the image I built in the docker image cache.

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: k8s newbie 2024

79304329

Date: 2024-12-23 21:57:27
Score: 3.5
Natty:
Report link

You need to enable the hold-trigger-on-release setting. If you look up Urob's homerow mods, he goes into depth about the setup you're looking for.

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

79304325

Date: 2024-12-23 21:54:26
Score: 1
Natty:
Report link

There may be a couple of issues causing the infinite execution that causes the hanging issue:

I suggest you try these approaches:

// Option 1: Use async/await
execute JavaScript text starting from next line and ending with [END]
    var tenantName = "Ford CSP";
    await testRigor.execute('map tenant name "' + tenantName + '" to vinDecoder domain');
[END]

// Option 2: Use a callback
execute JavaScript text starting from next line and ending with [END]
    var tenantName = "Ford CSP";
    testRigor.execute('map tenant name "' + tenantName + '" to vinDecoder domain', function(result) {
        // Handle the result here
        console.log('Rule execution completed');
    });
[END]

Do you mind sharing what’s inside the reusable rule you’re trying to execute?

And are you seeing any specific error massages in the logs?

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

79304311

Date: 2024-12-23 21:48:25
Score: 3
Natty:
Report link

You do need to create extension pglogical first on both node. This step shall be done during parameter setup.

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

79304309

Date: 2024-12-23 21:47:25
Score: 2.5
Natty:
Report link

having similar errors:

Invalid `prisma.b2bTransaction.findUnique()` invocation:
The table `public.B2bTransaction` does not exist in the current database.

    if (!decryptedData.txnId) {
      return { success: false, message: "Transaction ID not found", paymentToken: null };
    }

    // fetch transaction data
    const transaction = await db.b2bTransaction.findUnique({
      where: {
        id: decryptedData.txnId,
        //webhookId: webhookId!
      },
      select: {
        id: true,
        senderUserId: true,
        receiverUserId: true,
        senderBankName: true,
        amount: true,
        status: true,
        webhookStatus: true,
      },
    });

Using Hono with prisma don't know where the error is forming its only happening in production in local everything working fine. Tried methods here but to no avail :/

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): having similar error
  • Low reputation (1):
Posted by: jethiya007

79304308

Date: 2024-12-23 21:47:25
Score: 1.5
Natty:
Report link

Use -a switch to get state set in another process.

OPTIONS -a, --as-is leave the line direction unchanged, not forced to input

https://manpages.debian.org/experimental/gpiod/gpioget.1.en.html

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

79304306

Date: 2024-12-23 21:47:25
Score: 1
Natty:
Report link

MediaPackage VOD does support CDN Authorization, see the CreatePackagingGroup API:

{
  "authorization": {
    "cdnIdentifierSecret": "string",
    "secretsRoleArn": "string"
  }
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jared Stewart

79304301

Date: 2024-12-23 21:43:24
Score: 3.5
Natty:
Report link

As of 2023 MediaPackage supports the Apple LL-HLS standard. Here's a guide to set it up:

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

79304298

Date: 2024-12-23 21:41:23
Score: 4
Natty:
Report link

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooldomain.html#cfn-cognito-userpooldomain-managedloginversion

this doc could be helpful, its under managed login version number

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

79304294

Date: 2024-12-23 21:38:22
Score: 2
Natty:
Report link

I'm new around here so don't take this code seriously but this seem to fix the problem. The animation works just find here and I'm sure you can figure out the rest.

KV = '''

MDScreen:

MDBoxLayout:

    Widget:

        size_hint_x: None
        width: nav_rail.width

    MDScreen:

        Button:

            id: button
            text: str(self.width)
            size_hint: (1, 0.1)
            pos_hint: {"center_x": .5, "center_y": .5}
            on_release: nav_drawer.set_state("toggle")

        MDNavigationDrawer:
            id: nav_drawer
            radius: 0, dp(16), dp(16), 0

MDNavigationRail:
    id: nav_rail
    md_bg_color: (0,0,0,1)
'''
Reasons:
  • RegEx Blacklisted phrase (1.5): I'm new
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28910981

79304281

Date: 2024-12-23 21:32:20
Score: 1.5
Natty:
Report link

Executing npm install react-scripts@latest worked for me on MacOS.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user28910938

79304274

Date: 2024-12-23 21:28:19
Score: 3
Natty:
Report link

How about importing the csv with utf8 (with bom) encoding?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): How
  • High reputation (-2):
Posted by: js2010

79304267

Date: 2024-12-23 21:25:18
Score: 1
Natty:
Report link

try the following:

WITH RankedEmployees AS ( SELECT departmentId, name, salary, DENSE_RANK() OVER (PARTITION BY departmentId ORDER BY salary DESC) AS salary_rank ) SELECT departmentId, name, salary FROM RankedEmployees WHERE salary_rank = 1;

Reasons:
  • Whitelisted phrase (-1): try the following
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mark Locke

79304258

Date: 2024-12-23 21:22:18
Score: 0.5
Natty:
Report link

Thanks to esqew for informing me that PyDictionary probably no longer works. I found another library that does work; here is the new code:

# Import Libraries
from tkinter import *
from gtts import gTTS
from freedictionaryapi.clients.sync_client import DictionaryApiClient
import random

# Create Functions
def chooserandom(list: list):
    return list[random.randrange(0, len(list))]
def getdefinitions(word: str):
    with DictionaryApiClient() as client:
        parser = client.fetch_parser(word)
    return parser.meanings

# Create Variables
words: list[str] = "".join(list(open("word-lists\\mainlist.txt", "r"))).split("\n")

# Main Loop
word: str = chooserandom(words)
definition = getdefinitions(word)
print(word) # amber
print(definition) # [Meaning(part_of_speech='noun', definitions=[Definition(definition='Ambergris, the waxy product of the sperm whale.', example=None, synonyms=[]), Definition(definition='A hard, generally yellow to brown translucent fossil resin, used for jewellery. One variety, blue amber, appears blue rather than yellow under direct sunlight.', example=None, synonyms=[]), Definition(definition='A yellow-orange colour.', example=None, synonyms=[]), Definition(definition='The intermediate light in a set of three traffic lights, which when illuminated indicates that drivers should stop short of the intersection if it is safe to do so.', example=None, synonyms=[]), Definition(definition='The stop codon (nucleotide triplet) "UAG", or a mutant which has this stop codon at a premature place in its DNA sequence.', example='an amber codon, an amber mutation, an amber suppressor', synonyms=[])]), Meaning(part_of_speech='verb', definitions=[Definition(definition='To perfume or flavour with ambergris.', example='ambered wine, an ambered room', synonyms=[]), Definition(definition='To preserve in amber.', example='an ambered fly', synonyms=[]), Definition(definition='To cause to take on the yellow colour of amber.', example=None, synonyms=[]), Definition(definition='To take on the yellow colour of amber.', example=None, synonyms=[])]), Meaning(part_of_speech='adjective', definitions=[Definition(definition='Of a brownish yellow colour, like that of most amber.', example=None, synonyms=[])])]

Just make sure you have run both commands (Windows):

pip install python-freeDictionaryAPI
pip install httpx

Thanks for the help!

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

79304257

Date: 2024-12-23 21:22:18
Score: 1
Natty:
Report link

After searching through the API client code it looks like it uses the "BCP 47" standard format: https://en.wikipedia.org/wiki/IETF_language_tag

So for English, you would do en-US

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

79304251

Date: 2024-12-23 21:19:17
Score: 1.5
Natty:
Report link

Somebody solved it? I'm trying send request from postman and soapui. Both of them are failed.

My postman curl:

    curl --location 'https://uslugaterytws1test.stat.gov.pl/TerytWs1.svc' \
--header 'Content-Type: text/xml' \
--header 'Authorization: Basic VGVzdFB1YmxpY3pueToxMjM0YWJjZA==' \
--data '<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ter="http://terytws1.stat.gov.pl/">
   <soapenv:Header/>
   <soapenv:Body>
      <ter:CzyZalogowany/>
   </soapenv:Body>
</soapenv:Envelope>'

My response:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:a="http://www.w3.org/2005/08/addressing">
    <s:Header>
        <a:Action s:mustUnderstand="1">http://www.w3.org/2005/08/addressing/soap/fault</a:Action>
    </s:Header>
    <s:Body>
        <s:Fault>
            <faultcode xmlns:a="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">a:InvalidSecurity</faultcode>
            <faultstring xml:lang="en-US">An error occurred when verifying security for the message.</faultstring>
        </s:Fault>
    </s:Body>
</s:Envelope>
Reasons:
  • RegEx Blacklisted phrase (1.5): solved it?
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: snoocky

79304242

Date: 2024-12-23 21:14:16
Score: 1
Natty:
Report link

You can have full control over the position of data labels with x and y API options: https://api.highcharts.com/highcharts/series.column.data.dataLabels.x

Sample code setting:

series: [{
    data: [{
        y: 5,
        dataLabels: {
            x: 10,
            y: -10
        }
    }, {
        y: 7,
        dataLabels: {
            x: -10,
            y: 20
        }
    }, {
        y: 3,
        dataLabels: {
            x: 15,
            y: 5
        }
    }]
}],

See the full demo: https://jsfiddle.net/BlackLabel/gn8tvuhq/

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Andrzej Bułeczka

79304238

Date: 2024-12-23 21:14:16
Score: 2
Natty:
Report link

The 2nd version of your CMakeLists.txt file works fine with FLTK 1.4.1: I tested it successfully with CMake 3.29 after reducing cmake_minimum_required(VERSION 3.29) to 3.29.

How exactly did you install FLTK in C:/fltk? The correct way to do it with VS (I'm using VS 2019) is to right-click on the "INSTALL" target in the project explorer and select "build". Yes, this looks weird, but this is what CMake + VS need. After that I found all the libs in C:/fltk/lib as you wrote.

There should also be 5 files (*.cmake) in C:/fltk/CMake/. Do these files also exist? If not you didn't install FLTK correctly. Go back and do it as I described. If you did, continue...

Now the next step is to build your project with CMake. I assume that you have your main.cpp file and CMakeLists.txt in the same folder. Open CMake and select the source folder (where these files live) and the binary folder (e.g. the folder build inside the source folder). Then click on "Configure". If you did this you should have seen an error message. Note for the future: please post error messages if you ask questions (use copy/paste). What I see is an error message and some instructions:

Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19045.
CMake Error at CMakeLists.txt:7 (find_package):
  Could not find a package configuration file provided by "FLTK"
  (requested version 1.4) with any of the following names:

    FLTKConfig.cmake
    fltk-config.cmake

  Add the installation prefix of "FLTK" to CMAKE_PREFIX_PATH or set
  "FLTK_DIR" to a directory containing one of the above files.  If "FLTK"
  provides a separate development package or SDK, be sure it has been
  installed.


Configuring incomplete, errors occurred!

The first file FLTKConfig.cmake is one of the 5 files in C:/fltk/CMake/. As the instructions say: you have two choices. You need to define one of two CMake variables by clicking on the '+' button ("Add Entry"):

  1. add FLTK_DIR with value C:/fltk/CMake/ or
  2. add CMAKE_PREFIX_PATH with value C:/fltk.

I did the latter and VS found FLTK and built the project successfully. Finally I modified your main.cpp so it shows the window and waits until the window is closed:

#include <FL/Fl.H>    // note: typo fixed
#include <FL/Fl_Box.H>
#include <FL/Fl_Window.H>
int main() {
    Fl_Window win(100, 100, "ciao");
    win.show();
    return Fl::run();
}

That's it. Let us know if this works, or post what you did and related error messages.

PS: there are other ways to specify the required variables but that would be OT here.

Reasons:
  • RegEx Blacklisted phrase (2.5): please post
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Albrecht Schlosser

79304219

Date: 2024-12-23 21:09:15
Score: 0.5
Natty:
Report link

I had the same scenario, Localstack with Testcontainers, the difference being using Kotlin with Gradle instead of Java with Maven. Everything was running smoothly on local but having the exact same issue on Github Actions.

2024-12-23T01:50:37.096Z  WARN 2117 --- [    Test worker] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2024-12-23T01:50:37.580Z  INFO 2117 --- [    Test worker] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 1 endpoint beneath base path '/actuator'
2024-12-23T01:50:37.655Z  WARN 2117 --- [    Test worker] o.s.w.c.s.GenericWebApplicationContext   : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'io.awspring.cloud.messaging.internalEndpointRegistryBeanName'

I had to, firstly, add some properties to show more logs, as it was just giving me that line.

testLogging {
    showStandardStreams = true
    exceptionFormat = TestExceptionFormat.FULL
}

After that, the reason for exception started to show :

Caused by: software.amazon.awssdk.core.exception.SdkClientException: Unable to load credentials from any of the providers in the chain AwsCredentialsProviderChain(credentialsProviders=[SystemPropertyCredentialsProvider(), EnvironmentVariableCredentialsProvider(), WebIdentityTokenCredentialsProvider(), ProfileCredentialsProvider(profileName=default, profileFile=ProfileFile(sections=[])), ContainerCredentialsProvider(), InstanceProfileCredentialsProvider()]) : [SystemPropertyCredentialsProvider(): Unable to load credentials from system settings. Access key must be specified either via environment variable (AWS_ACCESS_KEY_ID) or system property (aws.accessKeyId)., EnvironmentVariableCredentialsProvider(): Unable to load credentials from system settings. Access key must be specified either via environment variable (AWS_ACCESS_KEY_ID) or system property (aws.accessKeyId)., WebIdentityTokenCredentialsProvider(): Either the environment variable AWS_WEB_IDENTITY_TOKEN_FILE or the javaproperty aws.webIdentityTokenFile must be set., ProfileCredentialsProvider(profileName=default, profileFile=ProfileFile(sections=[])): Profile file contained no credentials for profile 'default': ProfileFile(sections=[]), ContainerCredentialsProvider(): Cannot fetch credentials from container - neither AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI environment variables are set., InstanceProfileCredentialsProvider(): Failed to load credentials from IMDS.]

The error pointed to AWS credentials issue, but the test was working locally with no problem. I tested a bunch of things, made sure that both region and credentials (access key and secret key) were present on application start but in the end, the only thing that worked was adding on the test resources application.properties the following lines (which are the actual localstack credentials):

spring.cloud.aws.region.static=us-east-1
spring.cloud.aws.credentials.access-key=test
spring.cloud.aws.credentials.secret-key=test

Not sure if this could be also your problem, but give it a try.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): having the exact same issue
  • Low reputation (0.5):
Posted by: Felipe S Thiago

79304214

Date: 2024-12-23 21:07:13
Score: 6 🚩
Natty: 4.5
Report link

Thank you for this. I am also having the Exact same problem and it did solve by just using ElementwiseProblem due to higher number of variables.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am also having the Exact same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: salar sikandar

79304199

Date: 2024-12-23 21:02:12
Score: 3.5
Natty:
Report link

I think you should respond to the repost answer.

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

79304185

Date: 2024-12-23 20:54:11
Score: 0.5
Natty:
Report link

What's wrong?

Looking at your package.json, you're using Express version 4, but you have the @types/express for Express 5. These won't match up.

       "express": "^4.21.2",
        "@types/express": "^5.0.0",

How to fix it?

In your devDependencies, change this line:

"@types/express": "^5.0.0",

to this

"@types/express": "^4.17.21",

and then reinstall your packages (npm install or yarn install).


How did this happen?

Express v5 is in next, so when you do npm install express, you get v4, but DefinitelyTyped (where the @types/* come from) has v5 published as latest, so when you do npm install @types/express, you get v5. That means on fresh projects, you'll have to be specific until either Express5 gets fully released or DefinitelyTyped updates their npm tags.

Reasons:
  • RegEx Blacklisted phrase (1.5): How to fix it?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What's
  • High reputation (-1):
Posted by: Dan Crews

79304178

Date: 2024-12-23 20:48:10
Score: 3
Natty:
Report link

As suggested by Nick ODell this isn’t a mb error but warnings. The model is loaded and in order to see the output the print statement is needed!

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

79304165

Date: 2024-12-23 20:39:08
Score: 1
Natty:
Report link

If you're moving from Cloud Run's convenient setup to AWS, I'd recommend AWS App Runner. It's the closest match - scales to zero and handles concurrent requests like Cloud Run does.

If you need to stick with ECS, you could use a Lambda as a "manager" that keeps your ECS task alive for a time window (say 30 mins) after the first request. This way multiple DAG calls can reuse the same task instead of spawning new ones. When the window expires with no activity, let it shut down naturally. This gives you the on-demand behavior you want without the overhead of constant task creation.

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

79304162

Date: 2024-12-23 20:38:08
Score: 1
Natty:
Report link

Upon inspecting the 'x' button on the website-- the class name is "index_closeIcon__oBwY4", not "Icon__oBwY4". So, if you use the correct class name in the last line of code, it will work correctly:

driver.find_element(By.CLASS_NAME,  "index_closeIcon__oBwY4").click()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: MaddyWayne

79304149

Date: 2024-12-23 20:33:06
Score: 5
Natty: 4
Report link

I wrote a blog post on how to fix this without installing extra package: https://monyasau.netlify.app/blog/how-to-fix-the-invalid-date-error-in-safari-and-ios

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

79304145

Date: 2024-12-23 20:32:06
Score: 1
Natty:
Report link

For working with Jupyter Notebooks and needing a tool that understands your data structure, there are several options you can consider:

  1. Google Colab Copilot: This is an AI-powered tool integrated with Google Colab, which is like Jupyter Notebooks. It can help write code and understand your data structure.

  2. MutableAI: This tool streamlines the coding process and transforms prototypes into production-quality code.

  3. BrettlyCD/text-to-sql: This GitHub project allows you to write and run SQL queries based on natural language questions. It uses open-source LLM models through HuggingFace.(If you use HuggingFace.)

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