79126328

Date: 2024-10-25 15:26:13
Score: 2
Natty:
Report link

try:

Queue::connection('rabbitmq')->push(new App\Jobs\UpdateProductStock($orderData));
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Low reputation (0.5):
Posted by: Milad Elyasi

79126321

Date: 2024-10-25 15:24:13
Score: 1
Natty:
Report link

It is a bug in the current stable version of material3. It is already fixed in the current alpha version 1.4.0-alpha02, I think by this commit.

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

79126312

Date: 2024-10-25 15:22:13
Score: 3
Natty:
Report link

must add collect <option value="commercial" {{(collect(old('slug', $project->slug) == 'commercial'))) ? 'selected' : '' }}>Commercial

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

79126308

Date: 2024-10-25 15:20:12
Score: 1.5
Natty:
Report link

You use an old compiler (c++17 is required for building Tesseract).

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

79126301

Date: 2024-10-25 15:16:11
Score: 2
Natty:
Report link

From the MDN:

display: none turns off the display of an element so that it has no effect on layout (the document is rendered as though the element did not exist).

It means by setting display: none you are removing an element from the DOM which removes the value you have in it. You can consider using visivility: hidden to hide one of your forms, but in this case, other elements won't take the space of the <form>.

Relevant article: Visibility hidden vs display none – What is the difference in CSS ?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Anton

79126299

Date: 2024-10-25 15:16:09
Score: 7 🚩
Natty: 6
Report link

I have the same problem (on sql server 2019, one publisher/distributor and one subsriber what i can do ? Its transaction a Replication

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Low length (1):
  • 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: user252985

79126298

Date: 2024-10-25 15:16:09
Score: 0.5
Natty:
Report link
=IFERROR(LEFT(A1,AGGREGATE(15,2,SEARCH({"-in";"-fw"},A1),1)-1),A1)

Result

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

79126289

Date: 2024-10-25 15:13:08
Score: 3.5
Natty:
Report link

And which would be the way to do the same in windows? I am interested in using spyder as my IDLE

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: A random CFD Engineer

79126285

Date: 2024-10-25 15:11:07
Score: 4.5
Natty:
Report link

I also have the same problem, I'm using the React Native 0.76.0 version and react-native-safe-area-context version is 4.11.1

I removed the react-native-safe-area-context package and it works now.

It's related to the react-native-safe-area-context package. I hope they will fix it.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I also have the same problem
  • Low reputation (1):
Posted by: Emre Kara

79126276

Date: 2024-10-25 15:09:07
Score: 1.5
Natty:
Report link
def usr_abs(n):
        if n>=0:
                return n
        else:

                return-n
x=int(input("enter a number:") 
Print(ust_abs(x)) 
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nathiya Balu

79126274

Date: 2024-10-25 15:09:07
Score: 1
Natty:
Report link

https://github.com/NOAA-EMC/NCEPLIBS-w3nco/blob/265d27c1b6e102f1e5d0eaba1f6dcac1e1e40506/.github/workflows/main.yml#L4-L5 needs to have a name attribute as well.

Reasons:
  • Probably link only (1):
  • Low length (2):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Jesse Glick

79126250

Date: 2024-10-25 15:03:05
Score: 3
Natty:
Report link

My list=[5,2,3,4,1] My list. Sort() Print(My list) My list. Sort(reverse=true)

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

79126249

Date: 2024-10-25 15:03:05
Score: 0.5
Natty:
Report link

mat-select does not yet support density.

Here are the components that do provide density Sass mixins:

See https://m2.material.io/develop/web/supporting/density

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

79126244

Date: 2024-10-25 15:02:05
Score: 1
Natty:
Report link

Just convert the {title} to a string literal and that will do it. You can't use {title} in metatags that way because it renders it as an object before converting it to a string.

<title>{`${title}`}</title>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rey

79126237

Date: 2024-10-25 15:01:02
Score: 6.5 🚩
Natty:
Report link

Global environment is available in Bruno from version 1.33.0 onwards. Check this video tutorial: https://youtu.be/M8nV3cn6jxo Also check this PR:https://github.com/usebruno/bruno/pull/3222

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

79126236

Date: 2024-10-25 15:01:02
Score: 1
Natty:
Report link

I would try to search for the string scripts.build=tsc in the codebase. From your 3rd line: somewhere - when running the command - it assumes the string is a name of npm package. Which obviously it is not, and probably it is an error in the command-line, like one space more, copy-pasted invisible character or similar.

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

79126233

Date: 2024-10-25 15:00:02
Score: 0.5
Natty:
Report link

The issue was from the creation of ViewModel inside the view. I've tried a lot of things (set to null the ItemSource of items, use Binding, remove binding, just an empty view with an empty VM, change cache mode, and lot of others things)

And the issue was here. This is a way used in the community toolkit to do the instance of VM for a view :

public ListDetailsPage()
{
    ViewModel = App.GetService<ListDetailsViewModel>();
    InitializeComponent();
}

If you create the VM like this :

public ListDetailsPage()
{
    ViewModel = new ListDetailsViewModel();
    InitializeComponent();
}

The GC work properly and the view was released when the tab is removed from the TabView. I can't explain why (For the DI the VM is declared as usual). After a lot of test with dotMemory this is the day and night, with "new VM()" everythings work like a charm, with DI for the VM, each loaded view is never released by the GC.

I'm crazy, no doubt, but the result is just evident.

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

79126224

Date: 2024-10-25 14:59:01
Score: 11.5
Natty: 7
Report link

I am trying to run the code posted by @HedgeHog and it's not working for me...I think I am having an issue with the server as I got 500 all the time

Any ideas?

Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): I am trying to
  • Blacklisted phrase (1): Any ideas
  • RegEx Blacklisted phrase (3): not working for me
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • User mentioned (1): @HedgeHog
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Famu8

79126223

Date: 2024-10-25 14:59:01
Score: 2
Natty:
Report link

Files\RedHat\java-1.8.0-openjdk-1.8.0.402-1\jre\lib\security\cacerts

You should find this string and escape it using quotes (the space in Program Files breaks the command)

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

79126221

Date: 2024-10-25 14:58:01
Score: 2
Natty:
Report link

The clearTimeout(timeoutID) works because timeoutID is declared outside the updateMessage function, so it keeps its value across multiple calls of updateMessage. When clearTimeout(timeoutID) runs, it stops the previous timeout (if there was one), then a new setTimeout is started and assigned to timeoutID. This way, each time you press the button, it resets the timer by clearing the old timeout and starting a fresh 2-second countdown.

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

79126220

Date: 2024-10-25 14:58:01
Score: 2
Natty:
Report link

b = 10 While b >= 0

  b = b - 2

  Print (b)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Fatema Khanom

79126219

Date: 2024-10-25 14:57:00
Score: 2.5
Natty:
Report link

Your question isn't entirely clear. I’m guessing you want to transfer information between two different web applications. You can accomplish this by writing code with the Selenium library.

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

79126190

Date: 2024-10-25 14:48:58
Score: 1.5
Natty:
Report link

here is where the good old subquery works, and is very simple

UPDATE UserAssesment set AssessmentDate = (select top 1 comp.AssessmentDate from vw_CompletedAssessments comp where ua.NatId = comp.NatId and ua.FamilyName = comp.ClientLastName and ua.GivenName = comp.ClientFirstName order by comp.date desc ) WHERE ua.HasCompletedAssessment <> 0

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

79126189

Date: 2024-10-25 14:48:58
Score: 2.5
Natty:
Report link

this is could be due to multiple same node files in package.json

also I had an issue with masked-view-community as mentioned above

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

79126184

Date: 2024-10-25 14:47:58
Score: 1.5
Natty:
Report link

TeamRow.Fields doesn't have any data. I think what you are trying to do is:

team.TeamId = row.TeamId;

Of course this is the right way if MyRow is TeamRow.

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

79126180

Date: 2024-10-25 14:46:58
Score: 3
Natty:
Report link

I was using a bad approach, being that the Discovery Service (eureka server) automatically maps the requests to each service. That means that, except in some specific cases, a controller to manage requests is not needed.

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

79126174

Date: 2024-10-25 14:45:58
Score: 1
Natty:
Report link
//    Using projection with this code, solved the issue.

Document projectFields = new Document();
 projectFields.append("_id", 1);
 projectFields.append("result.detections.reference.control", 1);
 
 AggregationOperation projectOperation = context -> new Document("$project", projectFields);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: sorab

79126172

Date: 2024-10-25 14:44:57
Score: 2
Natty:
Report link

Aedes has this feature and it is great because supports + and # https://github.com/moscajs/aedes/blob/HEAD/docs/Aedes.md#aedessubscribe-topic-deliverfunc-callback Im veryy missing something like this in npm mqtt package.

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

79126167

Date: 2024-10-25 14:43:57
Score: 1
Natty:
Report link

After many attempts, I made it work using the customLivenessProbe parameter and specifying it in the values block like below.
I tried it before and it failed but I think that was due to a misconfiguration in the customReadinessProbe block.
Thanks to @Marko E for the help !

resource "helm_release" "rabbitmq" {

  count         = var.deploy_map.eema ? 1 : 0
  repository    = var.repository
  description   = var.description
  lint          = var.lint
  verify        = var.verify
  name = var.name
  version = var.version
  chart = var.chart
  namespace = var.namespace
  create_namespace = var.create_namespace
   
  set {
    name  = "service.type"
    value = var.service_type
  }

  set {
    name = "readinessProbe.enabled"
    value = false
  }

  values = [
    <<EOF
service:
  annotations:
    service.beta.kubernetes.io/azure-load-balancer-internal: "true"
    service.beta.kubernetes.io/azure-load-balancer-internal-subnet: "my-subnet"
customLivenessProbe: 
  exec:
    command:
      - bin/sh
      - '-ec'
      - rabbitmq-diagnostics -q ping
  initialDelaySeconds: 120
  timeoutSeconds: 20
  periodSeconds: 30
  successThreshold: 1
  failureThreshold: 6
EOF
  ]
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Marko
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: FidelCasto

79126166

Date: 2024-10-25 14:43:57
Score: 3.5
Natty:
Report link

Answer provided by @Alan Birtles in the comments is correct. The file name should be .clang-format with a - instead of .clangformat

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @Alan
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: whatupo9

79126159

Date: 2024-10-25 14:42:57
Score: 1
Natty:
Report link

I was facing this error as well. While I couldn't solve it, the process explorer told me that clang-tidy.exe was accessing the file at the same time it was being saved.

I end up pressing Ctrl+S until the saving is done.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
Posted by: Roland Sarrazin

79126154

Date: 2024-10-25 14:40:56
Score: 1
Natty:
Report link

Yes you are correct, it is not the best of solutions. While your initial approach works, it can become inefficient as the array grows larger.

MongoDB's array performance decreases when modifying large arrays, thus updating individual notes within an array can be cumbersome.

A more efficient and scalable solution would be create separate collections for the users and notes, and then create a relationship between the users and the notes collection using a reference to the user (i.e., username or user ID). This allows MongoDB to efficiently index and query notes, making operations like adding, deleting, or updating specific notes much easier and faster.

Hope this answers your question

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

79126153

Date: 2024-10-25 14:40:56
Score: 2
Natty:
Report link

i have tried all the above answer, but not work, Just write watchman on your app path

that's all, your app will surely work

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Adewale Muritala Akinyemi

79126150

Date: 2024-10-25 14:39:56
Score: 3
Natty:
Report link

MySQL is not open source. It is Open Source if Open Source means started by few braves, taken over by corporations!

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

79126143

Date: 2024-10-25 14:36:55
Score: 0.5
Natty:
Report link

The issue was that the result was a JSON array, but httpGet method expects a JSON object, and it does not receive, it silently fails

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

79126136

Date: 2024-10-25 14:35:55
Score: 2.5
Natty:
Report link

After trying the article Deploy a single sign-on (SSO) Office Add-in to Microsoft Azure App Service yeoman office generator - SSO sample worked for me when deployed in Azure App Service.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Mokarom

79126135

Date: 2024-10-25 14:35:55
Score: 8
Natty: 7
Report link

can you tell me how to find out 'Authorization' => 'Bearer ' . $token,

Reasons:
  • Blacklisted phrase (1.5): tell me how to
  • RegEx Blacklisted phrase (2.5): can you tell me how
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): can you
  • Low reputation (1):
Posted by: Piyush Dhanotiya

79126130

Date: 2024-10-25 14:33:54
Score: 1.5
Natty:
Report link

I found the issue.

I misinterpreted the docs and assumed that if you changed the ports in de docker-compose, you changed the ports on the container. This turns out to not be the case. So while my host forwarded its 8085 port to RabbitMQ's 5672, the container itself still had 5672 as its port.

Changing the port mapping to 5672:5672 fixed the issue.

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

79126126

Date: 2024-10-25 14:33:54
Score: 2
Natty:
Report link

Try to search on geek for geek, I am not good with matrix and math, since I'm only in 11th grade, but I was able to find a documentation that I believe that it could help you link to help you Hope you can finish you're work !! goodluck

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

79126123

Date: 2024-10-25 14:32:54
Score: 1.5
Natty:
Report link

@Eljay's code is correct. You could also create a helper function to combines multiple characters into a uint64_t magic file number.

#include <cstdint>
#include <iostream>

constexpr uint64_t make_magic(const char* str) {
    return (static_cast<uint64_t>(str[0]) << 56) |
           (static_cast<uint64_t>(str[1]) << 48) |
           (static_cast<uint64_t>(str[2]) << 40) |
           (static_cast<uint64_t>(str[3]) << 32) |
           (static_cast<uint64_t>(str[4]) << 24) |
           (static_cast<uint64_t>(str[5]) << 16) |
           (static_cast<uint64_t>(str[6]) << 8)  |
           (static_cast<uint64_t>(str[7]));
}

int main() {
    constexpr uint64_t magic = make_magic("Magic123");
    std::cout << std::hex << magic << '\n';
    return 0;
}

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Eljay's
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Shelton Liu

79126111

Date: 2024-10-25 14:29:53
Score: 2.5
Natty:
Report link

If the output is meant for a terminal, it is also possible to change the terminal setting by inserting an ANSI escape code.

So you basically surround the text you want to change with the escape sequence for the strikethrough ("\033[9m") or any text style that is covered by the escape sequences. The "0m" code at the end is to reset the terminal style:

text_strike = "strikethrough"
text_nostrike = "no strikethrough"
print(f"{text_nostrike} \033[9m{text_strike}\033[0m {text_nostrike}")

List of escape codes: https://gist.github.com/ConnerWill/d4b6c776b509add763e17f9f113fd25b

I got the idea from the answer to this question where it is used to change color: How to show diff of two string sequences in colors?

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Folkert Roscam Abbing

79126093

Date: 2024-10-25 14:25:52
Score: 1.5
Natty:
Report link

So first of all I used this implementation for the conversion: https://gist.github.com/jesusgoku/533ba67ea218608c5a74a6d341d75189. But the reason it didn't work is that AWS needs to propagate the user across their systems (according to ChatGPT). So I've added delay (around 10s) before sending the email. await new Promise((resolve) => setTimeout(resolve, 10000))

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

79126090

Date: 2024-10-25 14:23:52
Score: 1
Natty:
Report link

There is no need to use FormWizard. You could split up your UpdateForms into several ones, each with a restricted set of fields to edit on the form.

There is a fields variable available in the models.UpdateView class to define which fields should be visible on the UpdateForm.

Then connect your navbar to the several UpdateViews and you are done.

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

79126086

Date: 2024-10-25 14:22:51
Score: 5.5
Natty:
Report link

I have the same concern, did you ever figure this out?

Some formatting tools break statements into multiple lines and suddenly coverage is lost so this is concerning (especially if changing the formatting tools is not an option).

Reasons:
  • RegEx Blacklisted phrase (3): did you ever figure this out
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: ACarGuy

79126074

Date: 2024-10-25 14:19:50
Score: 0.5
Natty:
Report link

I know this question is a billion years old, but I ran into a very similar problem recently. I just spent a week reworking a bunch of Flutter widgets and published the custom_adaptive_scaffold package with the results. Hint: use CustomNavigationRail with CustomNavigationDestination and CustomNavigationRailThemeData.

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

79126072

Date: 2024-10-25 14:18:49
Score: 1
Natty:
Report link

To control the quantity of Memory for a namespace, you should use resource quota, you can read this article about resource quota . It's will present you the sxquotas open-source project that help you create and adjust a resource quotas according to the current consumption. This tool allow you to do, for example :

echo "---create a initial resource quota"
sxquotas create myquota stack-minimal
echo "---Adjust and add the double of capacity"
sxquotas adjust myquota 200%

In this example, if your application consume a request.memory to 1Gi, the resource quotas will allow a maximum of 2Gi for request.memory. Same for all resources defined in the myquota resource quota.

Reasons:
  • Blacklisted phrase (1): this article
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: startx

79126070

Date: 2024-10-25 14:17:49
Score: 0.5
Natty:
Report link

Found the answer! I removed the set-payload component and added a body to the http:request component:

<http:request config-ref="HTTP_Request_configuration" method="POST" path="/oauth2/v2.0/token">
    <http:body><![CDATA[#[output application/x-www-form-urlencoded --- {'client_id':'${outlook.client.id}','client_secret':'${outlook.client.secret}','grant_type': 'client_credentials','scope':'https://outlook.office365.com/.default'}]]]></http:body>
</http:request>
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Norman Lynch

79126068

Date: 2024-10-25 14:17:47
Score: 11 🚩
Natty: 4.5
Report link

did you resolve that ? because i got a similar issue in my code: i have 2 microservices laravel: in the 1st one i send to the queue a variable like this:

        Queue::connection('rabbitmq')->push('App\Jobs\UpdateProductStock', $orderData);

and in the job that will recieve this it shows : local.ERROR: Unresolvable dependency resolving [Parameter #0 [ $orderData ]] in class App\Jobs\UpdateProductStock {"exception":"[object] in the reciever job i have :

namespace App\Jobs;

use App\Models\Product;
use Illuminate\Bus\Queueable;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Queue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Support\Facades\Queue;
use VladimirYuldashev\LaravelQueueRabbitMQ\Queue\Connectors\RabbitMQConnector;

class UpdateProductStock implements ShouldQueue
{


    /**
     * Create a new job instance.
     */
    public $orderData;

    public function __construct($orderData)
    {
        $this->orderData = $orderData;
    }

    /**
     * Execute the job.
     */
    public function handle()
    {
        Log::info("Test job executed successfully.");

so i understand that the variable sent by the 1st service was not recieved to the 2nd one. any help please ?

Reasons:
  • Blacklisted phrase (1): any help
  • Blacklisted phrase (2): any help please
  • RegEx Blacklisted phrase (3): did you resolve that
  • RegEx Blacklisted phrase (1.5): resolve that ?
  • RegEx Blacklisted phrase (1.5): help please
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): did you
  • Low reputation (1):
Posted by: Abdessalem Ben Chika

79126046

Date: 2024-10-25 14:10:45
Score: 5.5
Natty:
Report link

I have the same issue you can check :

https://www.keycloak.org/server/features#:~:text=Multi%2Dsite%20support-,Preview%20features,-Preview%20features%20are

I just restart my keycloak environnement and add KC_FEATURES=token-exchange to enabled the feature.

(I use chart helm to deploy)

containers:
 - name: my_container_name    
   image: "quay.io/keycloak/keycloak:{{ .Values.KC_version }}"
      command:
        - /opt/keycloak/bin/kc.sh
        - start
      env:
        ....
        - name: KC_FEATURES
          value: token-exchange
Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Probably link only (1):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same issue
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: TsOkw

79126035

Date: 2024-10-25 14:07:44
Score: 2.5
Natty:
Report link

This is a doubt about the answer posted

I have created an clientconnectionfactory and using it inside receivingchanneladapter i am getting an error that the tcpoutboundgateway can not be used again, as it was already used for client initiated messages,

I also have same requirement that the client initiated and sent and received and handled, but any unsolicited messages from server also needs to be received on client side and sent a reply for them.

Reasons:
  • RegEx Blacklisted phrase (1): i am getting an error
  • No code block (0.5):
  • Low reputation (1):
Posted by: Eternalsouls

79126034

Date: 2024-10-25 14:06:44
Score: 2
Natty:
Report link

I got the same issue, and as Brett said, the solution for me was to use the Certificate. It seems like an issue from SharePoint. It is not normal that it refuses to authorize with client secret.

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

79126032

Date: 2024-10-25 14:05:43
Score: 3.5
Natty:
Report link

Update for single Item, UpdateRange for a collection

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

79126031

Date: 2024-10-25 14:05:43
Score: 0.5
Natty:
Report link

I am not really sure if this is what you mean because the description is kind of vague, but I quickly made this:

enter image description here

button {
  background-color: #6A0DAD; 
  color: white;
  border: 2px solid white;
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 20px;
  cursor: pointer;
  text-align: center;


  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5), 0 0 10px white inset; 
  
  background-clip: padding-box;

  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

button:hover {
  background-color: #7E0DEB;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6), 0 0 10px white inset;
}
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Salt

79126029

Date: 2024-10-25 14:05:43
Score: 3
Natty:
Report link

Yes, signing is hard. I've been using the PHP library at https://github.com/jlevers/selling-partner-api which adds a helper function to do that for you.

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

79126025

Date: 2024-10-25 14:04:43
Score: 1.5
Natty:
Report link

thank you for suggestions. I found the answer myself The point is to really use FORMAT() funciton, but the percentage needs to be divided by 100, before formating.

format(@fiteenPercentage / 100, 'P2')

If divided, the outcome is

26-50: (343474) 3,37 %

If not the outcome is

26-50: (343474) 337,00 %

which means the function needs to work with number between 0 and 1

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jakub Sluka

79126021

Date: 2024-10-25 14:03:43
Score: 3.5
Natty:
Report link

Select all the text which you want to make in single line and Press Ctrl+J

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

79126016

Date: 2024-10-25 14:02:43
Score: 2
Natty:
Report link

encoutered same problem today, tried completely new project and still get the same error. My env:

System:
  OS: Linux 6.8 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
  CPU: (12) x64 AMD Ryzen 5 7535HS with Radeon Graphics
  Memory: 3.22 GB / 14.87 GB
  Shell:
    version: 5.2.21
    path: /bin/bash
Binaries:
  Node:
    version: 20.18.0
    path: ~/.nvm/versions/node/v20.18.0/bin/node
  Yarn: Not Found
  npm:
    version: 10.8.2
    path: ~/.nvm/versions/node/v20.18.0/bin/npm
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
IDEs:
  Android Studio: Not Found
Languages:
  Java:
    version: 17.0.12
    path: /usr/lib/jvm/java-17-openjdk-amd64/bin/javac
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.0-alpha.2
    wanted: 15.0.0-alpha.2
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.0
    wanted: ^0.76.0
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: false
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): get the same error
  • Low reputation (1):
Posted by: Nguyễn Quốc Anh Tuấn

79126013

Date: 2024-10-25 14:00:42
Score: 2
Natty:
Report link

you install the winrt?

pip install winrt

Check if the virtual enviroment is correct and active!

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

79126008

Date: 2024-10-25 13:58:42
Score: 0.5
Natty:
Report link

In React, storing sensitive information (like an API token) directly in .env files and then using it in frontend code can indeed lead to exposure, as you've noticed. Even if you reference the token using process.env.RESTUSERTOKEN, it will be accessible in the client-side code if it's bundled with your app by Webpack.

The best approach is to use a backend to handle API requests. Instead of exposing the token in the frontend, create an endpoint in your backend server to make API requests. Your React app can then call this backend endpoint without directly exposing the token.

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

79125997

Date: 2024-10-25 13:56:41
Score: 1
Natty:
Report link

Just adding a code to ensure the order also matches

#random tree

oldTree <- ape::read.tree(text = "(t2, (t5, (t4, (t6, (t3, t1)))));") plot(oldTree)

df <- cbind(old.name=oldTree$tip.label, new_name = c(rbind("tip_2", "tip_5", "tip_4","tip_6", "tip_3", "tip_1"))) %>% as.data.frame()

#Get the position of elements -- matching tip labels with the label of the dataframe

pos_id <-match(oldTree$tip.label, df$old.name) pos_id #element position newTree <- oldTree

newTree$tip.label <- df$new_name[pos_id] #here sorting by pos_id par(mfrow=c(1,2))

plot(oldTree) plot(newTree)

Alternatively look up rename_taxa in the tree_io package the code is the same for that. https://guangchuangyu.github.io/2018/04/rename-phylogeny-tip-labels-in-treeio/

But I find the syntax of the ggtree, and treeio a little troublesome.

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

79125995

Date: 2024-10-25 13:56:41
Score: 0.5
Natty:
Report link

When you call mypolygon == point, numpy performs element wise comparison maintaining dimensions of the coordinates:

np.where() returns array with indices by dimension, where the values in point occur in mypolygon (at same columns). It is "3-dimensionnal" because it found 3 occurences:

for what you are trying to achieve, you could use:

print(np.all(mypolygon == point, axis=1))
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: mosfet

79125992

Date: 2024-10-25 13:55:41
Score: 1
Natty:
Report link

In PostgreSQL, the exporting transaction must stay open to keep the snapshot valid when it's imported into another transaction. This is because the snapshot "freezes" a view of which transactions were committed at that specific moment. PostgreSQL needs the exporting transaction to remain active to keep that view stable and prevent any inconsistencies. If the exporting transaction were to close, PostgreSQL might clean up the transaction IDs it used, which would make the snapshot unusable or unreliable. When the exporting transaction is closed, other transactions are free to modify the data, and this can change what the snapshot would show, leading to data drift and inconsistencies. Keeping the transaction open acts like a steady "anchor" that prevents any unexpected changes in what data the importing transaction sees. So, PostgreSQL requires the exporting transaction to stay open to maintain a stable, reliable view of data across transactions.

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

79125991

Date: 2024-10-25 13:55:41
Score: 1
Natty:
Report link

There is a solution in your Youtrack link: the option is called "Always show tool window header icons in the new UI", it's in Advanced settings.

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

79125990

Date: 2024-10-25 13:55:39
Score: 6 🚩
Natty: 5
Report link

Do we have any news on this topic ?

In fact adding an event listener to the cube container is not a solution since the container have more than one element.

For example, how can I capture the click event at the faces of the cube ? If I add an event listener to the cube container, the event will be trigger every time that the users clicks on the 'N', 'W'....

enter image description here

Reasons:
  • Blacklisted phrase (0.5): how can I
  • Blacklisted phrase (1): enter image description here
  • RegEx Blacklisted phrase (2.5): Do we have any
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Igor Barcelos

79125989

Date: 2024-10-25 13:55:39
Score: 2.5
Natty:
Report link
  1. In the custom record, open the field to attach this record to the parent record
  2. Go to Validation and Defaulting tab and check Mandatory field.
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sanju S pillai

79125988

Date: 2024-10-25 13:53:38
Score: 2.5
Natty:
Report link

I had a similar issue. Searched everywhere and could not find any duplicate references or anything. Cleaned/Rebuilt the solution and then closed and reopened the project. Problem solved.

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

79125977

Date: 2024-10-25 13:52:38
Score: 4
Natty:
Report link

I just started to have the same issue recently. I did not open ASP .NET project for a while, and now I can't build it. It's full of razor (RZxxxx) and non-found references (CSxxxx) errors. I think that the actual root cause might be the Windows update from 10 to 11. Trying right now to restore my VS. Any ideas what else I can try? Already tried everything suggested above.

Reasons:
  • Blacklisted phrase (1): Any ideas
  • No code block (0.5):
  • Me too answer (2.5): have the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Ksice

79125975

Date: 2024-10-25 13:51:37
Score: 2
Natty:
Report link

For people encountering this issue with a React Native app on Windows:

The new environment variables setup instructions no longer require a JAVA_HOME variable. It originally pointed to the Android Studio jre.

If you follow the instructions from @noman-baig AND remove the JAVA_HOME entry in your environment variables the issue should be fixed.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @noman-baig
  • Low reputation (0.5):
Posted by: Jarred

79125965

Date: 2024-10-25 13:49:37
Score: 1.5
Natty:
Report link

If you're looking for the latest compatible version of Android Studio for Windows 7, Android Studio 2024.1.2 should work without issues. I ran into trouble with Android Studio 2024.2.1, but downgrading to 2024.1.2 solved it. This version is compatible with Java JDK 18.0.1 and JRE 10.0.2.

You can download it from the archive here: Android Studio 2024.1.2 - Archived Version. Just scroll to the bottom of the page for the Windows download link.

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

79125960

Date: 2024-10-25 13:47:36
Score: 2.5
Natty:
Report link

An example in the documentation helped to create correct format - wavefront query language reference.

application=/(${app|pipe})/

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: kn9

79125959

Date: 2024-10-25 13:47:36
Score: 2.5
Natty:
Report link

The problem ended up being terminology. All 3 of the code samples refer to a subscription key not an api key. Since there is no api key on the main Azure settings page for a web search, I used the subscription id. After I found and used one of the api keys on the Manage keys page things are now working fine.

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

79125957

Date: 2024-10-25 13:47:36
Score: 0.5
Natty:
Report link

Livewire renders the HTML on the server side. Initially, when the page loads, the CKEditor isn't displayed. However, when you open the modal, Livewire re-renders the Blade template, but the JavaScript isn't re-initialized.

This explains why removing the if statement resolves the issue: the initial server-side rendering triggers the JavaScript, and subsequent re-renders don't interfere with it.

To fix this, consider using Alpine.js to initialize your CKEditor instead of relying on your current JavaScript solution. Livewire will recognize the Alpine component within the newly rendered HTML and re-initialize Alpine.js accordingly.

FYI, i re wrote this answer using AI since english is not my main language

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

79125952

Date: 2024-10-25 13:45:36
Score: 2
Natty:
Report link

Please use Composer remove command to uninstall the module.

And Please check .gitignore file. If you can't see the changes in git status then that directory exists in .gitignore file.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Pragna J Dhokiya

79125948

Date: 2024-10-25 13:44:35
Score: 3.5
Natty:
Report link

Many thanks for your answer.

I will try next week.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: ERV

79125944

Date: 2024-10-25 13:43:35
Score: 3
Natty:
Report link

After the first step it's showing cd: no such file or directory: wxwidgets-3.2.6 what to do.

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

79125936

Date: 2024-10-25 13:41:34
Score: 0.5
Natty:
Report link

Following @MRocklin response, I tested with Dask version 2024.9.1. Logging in distributed workers can be set up using WorkerPlugin. This approach ensures that logging is configured for each worker at startup. Here’s an example:

from distributed import WorkerPlugin
import logging

class MyWorkerPlugin(WorkerPlugin):
    def setup(self, worker):
        # Configure logging on each worker
        logging.basicConfig(level=logging.INFO)

# Initialize your Dask client...

worker_plugin = MyWorkerPlugin()
client.register_plugin(worker_plugin)

# Make some computation...

Explanation

In this example:

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

79125935

Date: 2024-10-25 13:40:33
Score: 2
Natty:
Report link

"Record" is a key word in Python referring to a tuple list... "x" doesn't appear to be defined. So the For Loop should read: For record in results:

Then retrieve the "values" for each record

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

79125933

Date: 2024-10-25 13:40:33
Score: 1.5
Natty:
Report link

You can try removing the @EventListener from the initialization function and replacing it with a @PostConstruct

@PostConstruct
public void init() {
    startup();
}

This way, you can change the functioning of the initialization function without changing the functioning of the ManagementService

@BeforeEach
public void preventConnection() {
    Mockito.doNothing().when(temp).print();
}
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @EventListener
  • User mentioned (0): @PostConstructThis
  • Low reputation (1):
Posted by: Luan Nadaletti

79125930

Date: 2024-10-25 13:40:33
Score: 2
Natty:
Report link

"No", is the answer, as far as I have been able to find out. You have to look up the schema name and paste a string together.

I have filed this feature request with Microsoft: https://feedback.azure.com/d365community/idea/53456c98-d392-ef11-95f6-000d3ae2b698

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Ed Avis

79125924

Date: 2024-10-25 13:38:31
Score: 8.5 🚩
Natty: 6
Report link

do we have solution for this please? thanks

Reasons:
  • Blacklisted phrase (0.5): thanks
  • RegEx Blacklisted phrase (2.5): do we have solution
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dark Prash

79125912

Date: 2024-10-25 13:33:29
Score: 0.5
Natty:
Report link

I was having the same error. What worked for me was adding the '?' at the begining of the SAS token. You can try to modify the parameters line like this:

containerSasToken=?${{ secrets.CONTAINER_SAS_TOKEN }}

Let me know if it worked!

Reasons:
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Flávio Teixeira

79125907

Date: 2024-10-25 13:33:29
Score: 1
Natty:
Report link

For the future visitors of this question:

You have created a virtual environment, but you have not activated it yet! So, first, run pipenv shell to activate the environment; Then, run pipenv install scrapy-djangoitem.

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

79125906

Date: 2024-10-25 13:32:29
Score: 4
Natty: 4.5
Report link

Checkout this package. Hope this package will help you https://www.npmjs.com/package/@maniac-tech/react-native-expo-read-sms

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

79125901

Date: 2024-10-25 13:31:28
Score: 5
Natty:
Report link

I have same issue, I can't import OrbitControls to Potree Error: Failed to resolve module specifier "three". Relative references must start with either "/", "./", or "../".

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have same issue
  • Low reputation (1):
Posted by: Son Huynh

79125898

Date: 2024-10-25 13:31:28
Score: 3
Natty:
Report link

you may use moviepy instead of opencv, but the speed of processing may be not as fast as opencv

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

79125894

Date: 2024-10-25 13:30:28
Score: 0.5
Natty:
Report link

I'm working with a Laravel application that uses an HTML editor where users can upload images. These images are embedded as Base64 strings in the HTML content. I want to convert these Base64 image tags to image paths stored on the server (specifically using Amazon S3). Below is a custom code snippet I implemented to achieve this.

preg_match_all('/<img[^>]+src="data:image\/[^;]+;base64,[^"]+"[^>]*>/i', $data['html'], $matches);

foreach ($matches[0] as $imgTag) {
    preg_match('/src="(data:image\/[^;]+;base64,[^"]+)"/', $imgTag, $srcMatch);

    if (isset($srcMatch[1])) {
        // Use a different variable name to avoid overwriting $data
        list(, $base64Data) = explode(',', $srcMatch[1]);
        $imageData = base64_decode($base64Data);

        // Create a temporary file to store the image
        $tempFilePath = tempnam(sys_get_temp_dir(), 'upload') . '.jpg';
        file_put_contents($tempFilePath, $imageData);

        // Upload the image to S3 or local
        $filePath = $this->uploadOne(new UploadedFile($tempFilePath, 'image.jpg'), 'images', null, 's3'); // Specify your S3 disk
        
        // Get the URL of the uploaded image
        $s3Url = Storage::disk('s3')->url($filePath);
        
        // Replace the Base64 src with the S3 URL in the HTML
        $data['html'] = str_replace($srcMatch[0], 'src="' . $s3Url . '"', $data['html']);
        
        // Delete the temporary file
        unlink($tempFilePath);
    }
}
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Umair Khan

79125866

Date: 2024-10-25 13:20:25
Score: 2.5
Natty:
Report link

you can create a later init variable before the call of onCreate fucntion and then assign the value to the variable after calling overrive onCreate fucntion , this enable you to use the fucntion glbally in the app and then migrate the viewmodel outide the main activity , in a seperate file

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

79125860

Date: 2024-10-25 13:19:25
Score: 1.5
Natty:
Report link

Instagram as per 2024 guidelines has introduced new requirements for the username, more can be seen in its official docs. If you are using it client side, and you want your regex to be compatible with both IOS and Android, you may use the following regex:

/^(?![0-9]+$)a-zA-Z0-9_{0,28}$/

To break it down:

  1. ^(?![0-9]+$): Ensures the username is not entirely numeric (iOS supports negative lookaheads at the start).
  2. [a-zA-Z0-9_]: Ensures the username starts with a letter, number, or underscore.
  3. (?:[a-zA-Z0-9_]*(?:.[a-zA-Z0-9_]+)?){0,28}$: Allows dots to appear but only when they are not consecutive. Restricts total length to 30 characters.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Enxhi Tabaku

79125856

Date: 2024-10-25 13:17:25
Score: 2
Natty:
Report link

The solution in my case was simple. Setting JAVA_TOOL_OPTIONS to -XX:MaxDirectMemorySize=200M resolved the issue. Default with the buildpacks was 10M, which was not sufficient.

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

79125844

Date: 2024-10-25 13:15:24
Score: 2.5
Natty:
Report link

You can register nil sink which discards all klog logs.

// Passing a nil sink will create a Logger which discards all log lines.
klog.SetLogger(logr.New(nil))
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Loa

79125842

Date: 2024-10-25 13:15:24
Score: 2.5
Natty:
Report link

do u have installed git? If not, download at this link: https://git-scm.com/downloads If your operating system, u need to install the same of the system-icon (linux, macOS or Windows)

When u download the exec, do double-click on archive, and press next untill it's installed.

When it happens, open your archive > right-click > gith-bash here. (remember, u need to have a repositore in github)

get the link of the repositore, then write these commands on git-bash here: git init git add . (. is to select the whole archive) git branch -M main git commit -m "details what u did on the archive" git remote add origin (put ur copied link repositore) git push -u origin main

when u do other commit at the same repositore do this: git add . git commit -m "details what u did on the archive" git push

Reasons:
  • Blacklisted phrase (1): this link
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Rafael da Silva Macharete

79125833

Date: 2024-10-25 13:12:24
Score: 3.5
Natty:
Report link

In case someone is in need in the future the problem was with with the azure Web App.

I had App Service authentication enabled. I found it by change on this github bug where a dev mentioned about "Easy auth": https://github.com/AzureAD/microsoft-identity-web/issues/2880

Didn't find this documented anywhere so leaving here for reference.

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

79125826

Date: 2024-10-25 13:09:21
Score: 6.5 🚩
Natty: 5
Report link

=LEFT(WELDS!A2,SEARCH("-FW",WELDS!A2)-1)

I have this formula right now but I want to add "-IN" where the fw is so that way if the data in a2 does not have fw but in it still works.

is there a way to do this for the same cell?

Reasons:
  • Blacklisted phrase (1): is there a way
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user27985493

79125823

Date: 2024-10-25 13:09:20
Score: 4
Natty:
Report link

You need to go on the right panel, then select + Add Input. You'll have then the possibility to add utility scripts by selecting Utility scripts:

enter image description here

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

79125820

Date: 2024-10-25 13:08:20
Score: 3.5
Natty:
Report link

In case someone facing the same error I can recommend to compare the schemas of you tables. My issue was difference between STRING - VARCHAR(), and TIMESTAMP_LTZ(3) - TIMESTAMP(3). After fixing the types my join work perfectly.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same error
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Niko

79125815

Date: 2024-10-25 13:07:19
Score: 1.5
Natty:
Report link

I found a really nice PS module that helps way better than convertto-json and convertfrom-json. Install Convertto-AdvancedJSON which also has ConvertFrom-AdvancedJSON. I use the -Depth 20 operator, the integer being how far the nesting layers go down into the json data. The beauty with this module is I can manipulate the data as a I loop thru it and I can POST against the API by using the $var | Convertto-AdvancedJSON | out-file -filepath ".\Body.JSON" and it converts it back to the correct JSON syntax, where the convertto-JSON leaves nested properties with a leading @ symbol which doesn't meet the syntax.

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

79125809

Date: 2024-10-25 13:07:19
Score: 1.5
Natty:
Report link

Are you using the same token to call the 3 endpoints? If you retrieve the issues successfully, it means the token you are using is a 3-legged token.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Carol Gitonga

79125802

Date: 2024-10-25 13:04:19
Score: 1
Natty:
Report link

When you use the lazy load strategy, you are basically telling it to load on demand or when requested (link). By default, the relations that are lazy loaded are @OneToMany and @ManyToMany while for associations @OneToOne and @ManyToOne are used the strategy eager. It makes sense, if you have a huge collection is very inefficient to load all the elements of the collection. In the case of @OneToOne or @ManyToOne you just have one entity/object related.

About your question, it looks that Hibernate although you explicitly use the lazy load strategy, because of the behaviour of the annotation NaturalId in branchId and costumerCode may decide to load the entity costumer as eager.

We can designate a field as a natural identifier simply by annotating it with @NaturalId. This allows us to seamlessly query the associated column using Hibernate’s API.

You indicate that the otherCostumer field uses the lazy load strategy perfectly. In that case, it seems that the use of the NaturalId with the annotation JoinColumns is the cause of the problem.

Note:

Basically, it's adding the where clause (where (c1_0.branch_id,c1_0.customer_code) in((?,?)))

In general, because you mentioned it for the n + 1 query problem I would use JPA Entity Graph. It allow us to define a network of components and attributes to load into a query.

In my opinion, I Would not use the lazy load strategy for the @OneToMany. If you don't want to return the field (customer) use the DTO pattern and only return the fields you need. Otherwise, you have the option mentioned above as well.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @OneToMany
  • User mentioned (0): @ManyToMany
  • User mentioned (0): @OneToOne
  • User mentioned (0): @ManyToOne
  • User mentioned (0): @OneToOne
  • User mentioned (0): @ManyToOne
  • User mentioned (0): @NaturalId
  • User mentioned (0): @OneToMany
  • Starts with a question (0.5): When you use the
  • Low reputation (1):
Posted by: Jos3lu

79125799

Date: 2024-10-25 13:04:19
Score: 2.5
Natty:
Report link

I've found the easiest way is to use the 'CAST' function. Say my select reads: SELECT AMTDUE FROM INVOICES; and that return a left aligned string of values. Changing the statement to SELECT CAST(AMTDUE AS DECIMAL(10,2)) AS AmtDue FROM INVOICES; and run it, now I have a right justified column of numbers.

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

79125795

Date: 2024-10-25 13:03:18
Score: 0.5
Natty:
Report link

You did minor mistake,

$('.circle-chart').css('background: conic-gradient(green 0% 60%, grey 60% 100%)')

should be (Check below how we need to apply property value)

$('.circle-chart').css('background', 'conic-gradient(green 0% 10%, grey 30% 100%)')
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jignesh Dalvadi