79167627

Date: 2024-11-07 18:17:44
Score: 2.5
Natty:
Report link

On a Mac you might use python to "shell out" to pbcopy.

Can python send text to the Mac clipboard

Alternatively on a windows machine you might try the win32clipboard module.

How do I read text from the Windows clipboard in Python?

I suspect the linux solution is a google away, as these were.

Reasons:
  • Blacklisted phrase (1): How do I
  • Whitelisted phrase (-1): solution is
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: David Thornton

79167624

Date: 2024-11-07 18:16:44
Score: 4.5
Natty:
Report link

I'll give it a try (https://github.com/birdflyi/tst_import). The solution offered by onlynone is feasible and effective for me~

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

79167623

Date: 2024-11-07 18:16:44
Score: 3.5
Natty:
Report link

I was using a request scope and found these that solved the problem for me:

https://github.com/nestjs/nest/issues/13282#issuecomment-1977636225 https://github.com/nestjs/nest/issues/13282#issuecomment-1977643353

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

79167619

Date: 2024-11-07 18:14:43
Score: 2
Natty:
Report link

I think you can access that data inside the SharePoint page context. I got mine working in JS/React. Got the idea from here. Its in JS but you might be able to get it somehow in c# using the same concept.

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

79167617

Date: 2024-11-07 18:14:43
Score: 1
Natty:
Report link

I just cast the sender to a pictureBox and use the MouseEventArgs, note that the position of the mouse become the top left corner position of the pictureBox.

    private void pictureBox1_MouseMove(object sender, MouseEventArgs e)
    {
        if (e.Button == MouseButtons.Left)
        {
            var pictureBox = (PictureBox)sender;
            pictureBox.Location = new Point(pictureBox.Left + e.X, pictureBox.Top + e.Y);
        }
    }
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Pasa

79167615

Date: 2024-11-07 18:12:43
Score: 2.5
Natty:
Report link

Thank for your help. I have find the answer everywhere and now i get here. That was useful for me!!

Reasons:
  • Whitelisted phrase (-0.5): Thank for your help
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: MecZaWy

79167610

Date: 2024-11-07 18:10:40
Score: 6.5 🚩
Natty:
Report link

We are also having the same problem, all the Integer parameters that we set, when analysing on the dashboard, it shows as "(not set)". However, they do show on the "Events from the last 30 minutes". On that panel it shows the dropdown, and allows me to select the parameter that I want and it shows on the table below. After this, it seems that I lose the data.

Is anyone having this same issue?

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Me too answer (2.5): also having the same problem
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Piltsen

79167606

Date: 2024-11-07 18:10:40
Score: 0.5
Natty:
Report link

Well it is almost 2025 and I still can't do node --watch ./just-do-it.ts while I can do bun --watch ./just-do-it.ts

so my answer is use BunJs if you don't need to use NodeJs

bun --watch ./just-do-it.ts

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Michał Grzegorzewski

79167604

Date: 2024-11-07 18:09:40
Score: 0.5
Natty:
Report link

If you are using Vite, use import.meta.env instead, process.env is removed.

And make sure variables start with VITE_ in .env file.

here is example .end file:

VITE_API_BASE_URL = http://localhost:8080/api/v1

and here service will look like:

const API_BASE_URL = import.meta.env.VITE_API_BASE_URL;

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

79167587

Date: 2024-11-07 18:03:38
Score: 3
Natty:
Report link

Question 1: In addition to the steps provided in the link above, do I need to do anything else ?

If you enable Log Tracing, you will see tracing data generated in the <MI_HOME>/repository/logs/wso2-mi-open-telemetry.log file. Since you're running on a Kubernetes environment, could there be problems with your file mounts, if any?

If you are configuring an OTLP Endpoint, you'll have to provide the appropriate endpoint URL. Could you please show your configurations on how are you configuring the endpoint URL for Loki/Grafana?

Question 2: Other than exporting the runtime logs using fluentbit, are there any other recommended ways of sending the logs to the log store ?

Any log based analytics solution such as Filebeats + ELK or Fluentbit should be fine.

Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (2.5): Could you please show your
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Senthuran Ambalavanar

79167586

Date: 2024-11-07 18:02:38
Score: 2
Natty:
Report link

The error was pretty simple and dumb: there were soome triggers pointing to that other database and I did not know they were there, until I started checking table by table. I disabled them all and it worked, so always check those kind of things.

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

79167582

Date: 2024-11-07 18:01:38
Score: 3
Natty:
Report link

Here's a complete open-source Apache Log Parser & Data Normalization Solution. I released it this week. Python module imports Apache2 Access (LogFormats= vhost_combined, combined, common, extended) & Error logs into MySQL Schema of tables, views & functions designed to normalize data. Client & Server components capable of consolidating logs from multiple web servers & sites with complete Audit Trail & Error Logging! https://github.com/WillTheFarmer/ApacheLogs2MySQL

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

79167580

Date: 2024-11-07 18:00:37
Score: 0.5
Natty:
Report link

I found the reason,a developer added this to the mail config file

'to' => [
        'address' => env('MAIL_TO_ADDRESS', '[email protected]'),
        'name' => env('MAIL_TO_NAME', 'Name'),
    ]

Because in the beginning the website was not supposed to send emails to users, only one person would be notified. this was overwritten the Mail::to($user->email) Now everything works fine

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

79167575

Date: 2024-11-07 17:58:37
Score: 4
Natty:
Report link

you need to send the changes first

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

79167556

Date: 2024-11-07 17:48:34
Score: 3
Natty:
Report link

I updated the value to "-Xms512m" in "idea64.exe.vmoptions" file placed at the location C:\Users\username\AppData\Roaming\JetBrains\IdeaIC2024.2 and it worked. This resource was helpful https://www.jetbrains.com/help/idea/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#config-directory

Reasons:
  • Whitelisted phrase (-1): it worked
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: rish_sri

79167554

Date: 2024-11-07 17:48:34
Score: 1
Natty:
Report link

The problem is that main() does not wait for other tasks to finish, so we need to tell it to wait for them. For example using asyncio.gather():

import asyncio
from binance.client import AsyncClient

async def get_data(client):
  res = await client.get_klines(symbol='BTCUSDT', interval='15m', limit=99)
  print(res)

async def main():
  client = await AsyncClient.create()
  await asyncio.gather(
    get_data(client=client)
  )

asyncio.run(main())
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ramesses III

79167551

Date: 2024-11-07 17:47:34
Score: 5
Natty:
Report link

i too face similar issue when i was including react-ho-toast in nextjs project. i run this command and added to my package.json successfully.

npm i react-hot-toast --force

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): face similar issue
  • Low reputation (1):
Posted by: shaik ashfaq

79167547

Date: 2024-11-07 17:46:33
Score: 1
Natty:
Report link

That's the correct way:

firebase apphosting:backends:delete --project PROJECT_ID BACKEND_ID --location us-central1
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mdeotti

79167545

Date: 2024-11-07 17:45:33
Score: 0.5
Natty:
Report link

If your project begins with the word 'playwright' then playwright.ps1 will not be installed when you ran 'dotnet build'. Don't ask me why... I had the same problem and could see playwright.ps1 was not appearing in the directory after building, so I renamed my project on a hunch and then I could see the playwright.ps1 file being installed after building

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

79167532

Date: 2024-11-07 17:40:32
Score: 1
Natty:
Report link

Lets assume you have moduleOne and moduleTwo and if you want to use moduleTwo resources in moduleOne add following (sample) code in moduleOne gradle

    dependencies {
    compile project(':moduleTwo')
   }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: SaGu312

79167525

Date: 2024-11-07 17:37:30
Score: 1.5
Natty:
Report link

itemCount: dataSnapshot.data.docs.lenght,

correct your spelling from lenght to length.

hope it helped.

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

79167524

Date: 2024-11-07 17:37:30
Score: 1
Natty:
Report link

To fix the 404 error with NextAuth, just add an AUTH_SECRET in your Environment Variables Generate it with:

openssl rand -base64 32

Then add it in ( Environment Variables in Vercel Dashboard)

AUTH_SECRET=your_generated_secret_key

Redeploy it and the issue should be resolved

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

79167523

Date: 2024-11-07 17:37:30
Score: 0.5
Natty:
Report link

I needed both cordova-plugin-inappbrowser to be installed

cordova plugin add cordova-plugin-inappbrowser

and use window.cordova.InAppBrowser.open instead of window.open

window.cordova.InAppBrowser.open(url, "_system");
Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: tanner burton

79167510

Date: 2024-11-07 17:33:30
Score: 1
Natty:
Report link

I had a similar issue. In my case, I just had a situation where I wanted to initialize a variable of the template parameter type, not as a default return. I could not get any of the above methods to work. I used a variation on @jfMR's suggestion. (Posting as a separate answer for formatting). In my case, I also wanted to support both primitive types and object types.

I used a second template parameter to provide a callable struct producing the default value I need. Full sample:

#include <stdio.h>
#include <string>
#include <iostream>

struct DefaultInt
{
    int operator () () const { return 42; }
};
struct DefaultChar
{
    char operator () () const { return 'z'; }
};
struct DefaultString
{
    std::string operator () () const { return std::string("waldo"); }
};

template<class TP, class TPDefaultValue> class DemoWrapper
{
public:
    DemoWrapper()
    {
        TPDefaultValue valueFactory;
        _wrap = valueFactory();
    }
    DemoWrapper(TP wrap) : _wrap(wrap)
    {}

    void Print() { std::cout << _wrap << std::endl; }

private:
    TP _wrap;
};

int main(int argc, const char *argv[])
{
    std::string demoString("Thanks for all the fish");
    const int demoInt = 13;
    DemoWrapper<int, DefaultInt> dw1(demoInt);
    DemoWrapper<int, DefaultInt> dw2;
    DemoWrapper<std::string, DefaultString> dw3(demoString);
    DemoWrapper<std::string, DefaultString> dw4;
    
    dw1.Print();
    dw2.Print();
    dw3.Print();
    dw4.Print();
}

Output:

13
42
Thanks for all the fish
waldo
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @jfMR's
  • Low reputation (0.5):
Posted by: Henri Hein

79167504

Date: 2024-11-07 17:31:29
Score: 3
Natty:
Report link

Here's a complete open-source solution. I released it this week. Python module imports Apache2 Access (LogFormats=vhost_combined,combined,common,extended) & Error logs into MySQL Schema of tables, views & functions designed to normalize data. Client & Server components capable of consolidating logs from multiple web servers & sites with complete Audit Trail & Error Logging! https://github.com/WillTheFarmer/ApacheLogs2MySQL

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

79167494

Date: 2024-11-07 17:28:28
Score: 1
Natty:
Report link

The problem I had with this error was that my computer had outdated ruby, which was updated with a ruby ​​version manager (rbenv) with the following command:

rbenv install 3.2.0 rbenv global 3.2.0

Once ruby ​​was updated to the most recent version, my computer still had the problem and the problem was that it had an older version, this was because of the permissions that rbenv did not have and the PC continued using the old version, for this I applied the command

sudo chown -R $(whoami) ~/.rbenv

and reinstalled again

gem install ffi

gem install cocoapods

With this all the problems were solved.

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

79167492

Date: 2024-11-07 17:27:28
Score: 0.5
Natty:
Report link

solution for jenkins on linux (and/or docker)

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

79167480

Date: 2024-11-07 17:24:27
Score: 1
Natty:
Report link

I ended up finding a way to make it work by making a frankencode using some lines from someone who had another problem related to SelectNamesDialog.Display. I am fully aware that the resulting code is very ugly. If someone is kind enough to help me make it pretty, or to explain to me the logical difference between what i originally did ad this code, i would be thrilled.

Private Sub ListeAdresse_Click()

 Dim EmailAddress As String
 Dim myAddrEntry As AddressEntry
 Dim exchUser As Outlook.ExchangeUser
 Dim oDialog As SelectNamesDialog
 Set oDialog = Application.Session.GetSelectNamesDialog
 
 With oDialog
 .InitialAddressList = Application.Session.GetGlobalAddressList
 .ShowOnlyInitialAddressList = True

        If .Display Then

          AliasName = oDialog.Recipients.Item(1).Name

            Set myAddrEntry = Application.Session.GetGlobalAddressList.AddressEntries(AliasName)
            Set exchUser = myAddrEntry.GetExchangeUser

            If Not exchUser Is Nothing Then
               EmailAddress = exchUser.PrimarySmtpAddress

            End If
            CourrielSup.Caption = EmailAddress
   End If
    End With
Set olApp = Nothing
Set oDialog = Nothing
Set oGAL = Nothing
Set myAddrEntry = Nothing
Set exchUser = Nothing

End Sub
Reasons:
  • Blacklisted phrase (1): help me
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Yeti

79167476

Date: 2024-11-07 17:23:27
Score: 1
Natty:
Report link

Is there a way to obtain a docstring with the list of builtin methods available for an object using 'help'? or '?'?

Yes, dir() is good for that, e.g.:

>>> dir('')   
['__add__', '__class__', '__contains__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getnewargs__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__mod__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__rmod__', '__rmul__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'capitalize', 'casefold', 'center', 'count', 'encode', 'endswith', 'expandtabs', 'find', 'format', 'format_map', 'index', 'isalnum', 'isalpha', 'isascii', 'isdecimal', 'isdigit', 'isidentifier', 'islower', 'isnumeric', 'isprintable', 'isspace', 'istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'maketrans', 'partition', 'removeprefix', 'removesuffix', 'replace', 'rfind', 'rindex', 'rjust', 'rpartition', 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill']

Is there a way to get help on methods without creating an object for that?

You can kind of do that with help (''.split).

Reasons:
  • Blacklisted phrase (1): Is there a way
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is there a
  • Low reputation (0.5):
Posted by: stafusa

79167475

Date: 2024-11-07 17:22:26
Score: 1.5
Natty:
Report link

This may help you:
Copy and remove the code files that couldn't be resolved and the code files that cause the unresolved reference errors from the project, then paste them again into the project. Didn't help? Try copying the contents of the files, remove the files, create new ones, and then paste the file contents in. Yes, it could be easy as that!

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Mohamed Noordin

79167473

Date: 2024-11-07 17:22:26
Score: 3
Natty:
Report link

Your QRegularExpression regex("\"([^\]*)\"") is currently matching any character except .

Change to QRegularExpression regex("\"([^\"]*)\"");

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

79167464

Date: 2024-11-07 17:20:26
Score: 3.5
Natty:
Report link

If the cameras you are using are spinnaker cameras, you have to use the PySpin camera API to get images off the device.

Check out this link to get this API installed. No module named 'PySpin'

Reasons:
  • Blacklisted phrase (1): this link
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Alif Aziz

79167455

Date: 2024-11-07 17:17:25
Score: 0.5
Natty:
Report link

Perhaps you could set up control logic that determines with measure is used?

bmiCovariate <- "bmi"

if(bmiCovariate == "bmi"){
  
  tv <- tmerge(data1=tv, data2=visitWise, id=personId, 
               bmiMeasure=tdc(visitDay, bmi))
  
} else {   
  
  tv <- tmerge(data1=tv, data2=visitWise, id=personId, 
               bmiMeasure=tdc(visitDay, modifiedBmi))
  
}

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: xilliam

79167440

Date: 2024-11-07 17:14:24
Score: 2.5
Natty:
Report link

What about a simple greedy search? For every segment A -> B -> C in the shortest path, check if there is some A -> X -> C (or A -> X -> B -> C if you want to be thorough) that increases the value of the secondary weight. In each iteration, find every such variation, and then pick the one with the biggest 'secondary weight / primary weight' ratio. It iterates until the path either exceeds the X% constraint or until it reaches some arbitrary iteration limit. It would be O(n^3) I think, but if performance isn't a significant problem, it would find a reasonably good solution.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: Jack Medders

79167439

Date: 2024-11-07 17:13:24
Score: 2
Natty:
Report link

that is an emulator`s problem, I had the same problem, try adding this line to android/src/main/AndroidManifest.xml at the second line of the file

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

79167426

Date: 2024-11-07 17:09:22
Score: 1
Natty:
Report link

By default, browsers do not print backgrounds to save ink.

Your element only has a background (no border, no content...) so it is totally not showing on the print preview (but still takes space).

If you really want to print them (for example if you are saving the page as a PDF), you must check the "Print backgrounds" option in the print dialog.

"Print backgrounds" option

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

79167424

Date: 2024-11-07 17:09:22
Score: 1
Natty:
Report link

For accessing the environment variable in a readable way, I'd make a shell function of it:

getenv() { 
    awk 'BEGIN {print ENVIRON[ARGV[1]]}' "$1";
}

You can then use it as

$ getenv agent1.ip
192.168.100.137
$ myvar=$(getenv agent1.ip)
$ echo "$myvar"
192.168.100.137

Differences with the accepted answer are:

There is also another question about Exporting a variable with dot (.) in it.
Short answer: you can't, but you needn't, except for calling another executable. In that case use env.

Reasons:
  • Blacklisted phrase (1): another question
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Filip B.

79167421

Date: 2024-11-07 17:08:22
Score: 1.5
Natty:
Report link

We can have a workaround for this. 1.To iterate, use ForAll function in PowerApps. 2.Get the data table entries into a collection 2.1 Have an invisible gallery who's item property is set to your datatable 2.2 Have a button and set it's OnSelect property as ClearCollect(yourcolname,gallery.allitems) 2.3 Now you have your collection 2.4 Use ForAll(yourcolname,Patch(destinationtable,Defaults(destinationtable),{columntoupdate:yourcolfieldname.value}))

Hope this solves!

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

79167417

Date: 2024-11-07 17:08:22
Score: 1
Natty:
Report link

You can add LwIP or your favorite RTOS as a library to your project by cloning the Github repository, instead of generating all code with Cube MX. After, you can generate configuration files within multiple test CubeMX projects located at different disk paths: for AzureRTOS and LwIP and after move only configuration files into your project folder possibly adjusting them.

By default, LwIP is not specific only for FreeRTOS, so you have to edit the generated configuration file to replace Freertos functions to ThreadX, etc

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Тимур Хасаншин

79167413

Date: 2024-11-07 17:07:21
Score: 3.5
Natty:
Report link

You must use the option:

*-r, --no-auto-refresh

Do not automatically refresh bundles*

of feature:install

This prevents dependencies from being refreshed.

Regards

Reasons:
  • Blacklisted phrase (1): Regards
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Cesar Garcia

79167412

Date: 2024-11-07 17:07:21
Score: 3.5
Natty:
Report link

Not sure how to adjust this in PowerShell, but for the scheduled task, you need to choose "Run whether user is logged on or not", which will ask for credentials.

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: Lord Helmet

79167409

Date: 2024-11-07 17:06:21
Score: 1
Natty:
Report link

I have faced a similar error message. What has fixed it for me was to add hidden imports.

With the following hidden imports that problem went away:

pyinstaller --hidden-import=pydantic --hidden-import=pydantic-core --hidden-import=pydantic.deprecated.decorator app.py
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Christian Wunderlich

79167403

Date: 2024-11-07 17:05:20
Score: 3.5
Natty:
Report link

Yes, you can do this. Grafana recently published a thorough blog post that describes how to combine multiple data sources and do the join transformations here

https://grafana.com/blog/2024/11/07/how-to-work-with-multiple-data-sources-in-grafana-dashboards-best-practices-to-get-started/

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

79167399

Date: 2024-11-07 17:02:20
Score: 1
Natty:
Report link

That's a generic error message and you didn't give too much detail in your post but the most reasonable assumption I can make is that the service you are trying to connect to is simply expecting something different from what you are giving them. They probably have a very specific format they are expecting and you are probably not giving them it. What they expect depends on what you are connecting to and how you are doing so.

I think you should verify that you are connecting the correct way and then try and figure out what they are expecting to receive. I can't really help beyond that but that seems like the problem. It can be hard to find out exactly what they want from you but they probably are expecting a very specific format that you are not using.

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

79167388

Date: 2024-11-07 16:59:19
Score: 3
Natty:
Report link

I don't know your usecase but I've tested this implementation and it is not intuitive at all. I would advise you to build an input similar to venmo or cashapp.

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

79167377

Date: 2024-11-07 16:57:18
Score: 2.5
Natty:
Report link

Check my AZD plugin - it is based on the GitHub and Gitlab JetBrains’ plugins ‏

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

79167362

Date: 2024-11-07 16:53:17
Score: 4
Natty: 4
Report link

I am running Ubuntu 22.04.5 LTS (GNU/Linux 5.15.153.1-microsoft-standard-WSL2 x86_64) and your Gdk.Cursor.new_from_name() suggestion totally fixed the problem!

Is this a WSL2 specific thing or something that should be incorporated into the meld baseline?

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

79167359

Date: 2024-11-07 16:51:16
Score: 4.5
Natty: 6
Report link

if i write this

it makes the dropmenu on my pc but it stops doing in in my mobile or tablet..and when i leave it empty its the oposite....what should i write to have the dropdown menu scrollable in every version??

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

79167357

Date: 2024-11-07 16:51:16
Score: 0.5
Natty:
Report link

In my case, I initially missed transferring the .htaccess file while migrating my WordPress project. After realizing this, I uploaded the .htaccess file, and after a short while, everything started working properly.

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

79167354

Date: 2024-11-07 16:50:15
Score: 1
Natty:
Report link

Previous answer is excellent; let's just make it a bit simpler:

value_of_key1=value1
value_of_key2=value2
value_of_key3=value3
key="key2"
# here comes the looked-up value
eval echo \$value_of_$key # output is "value2"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: PETER G LAZAR

79167342

Date: 2024-11-07 16:47:15
Score: 0.5
Natty:
Report link

You have to distinguish between the CAN 2.0 layer and the CanOpen protocol stack. The CAN 2.0 communication layer has a multi master topology, but CanOpen ist a strict master slave protocol in which only one master can be in the network.

If you only want to exchange PDOs, you don't actually need a CanOpen protocol stack, you need the Cob-Ids of the supported PDOS and the format of the 8 data bytes. With these information you can exchange the appropriate CAN 2.0 messages

However, if you want to configure a CanOpen device (slave), you need a CanOpen master. A Can-Slave software package cannot be easily converted into a CanOpen Master. It has a completely different mirror-image structure.

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

79167333

Date: 2024-11-07 16:45:14
Score: 0.5
Natty:
Report link

Based on @ggorlen suggestion and a bunch of retry i finally get it to work. This is the base code that generates a red dot at where your mouse is. It will continue to follow your mouse where ever you take it and after 300 msec the red dot fade away, thus leaving a trail.

await page.evaluate(
        """
            // First we create the styles
            const style = document.createElement('style');
            style.innerHTML = `
                .cursor-trail {
                    position: fixed;
                    width: 10px;  /* Size */
                    height: 10px;
                    background-color: red;  /* Color */
                    border-radius: 50%;
                    pointer-events: none;
                    z-index: 10000;
                    opacity: 0.5;
                    transition: opacity 0.3s, transform 0.3s;
                }
            `;
            document.head.appendChild(style);

            // Then we append an event listener for the trail
            document.addEventListener('mousemove', (event) => {
                const trailDot = document.createElement('div');
                trailDot.classList.add('cursor-trail');
                document.body.appendChild(trailDot);

                trailDot.style.left = `${event.clientX}px`;
                trailDot.style.top = `${event.clientY}px`;

                // after 300ms we fade out and remove the trail dot
                setTimeout(() => {
                    trailDot.style.opacity = '0';
                    setTimeout(() => trailDot.remove(), 300);
                }, 50);
            });
        """
    )

Then if you mix it with a function like this, playwright moves your cursor randomly and the red dot follows it ->

async def move_cursor_randomly(page: Page, duration: int = 10):
    """
    Moves the cursor randomly within the viewport for the specified duration.
    A cursor trail is drawn at each new cursor position.
    """
    viewport_size = page.viewport_size
    width = viewport_size["width"]
    height = viewport_size["height"]

    await page.evaluate(
        """
            // First we create the styles
            const style = document.createElement('style');
            style.innerHTML = `
                .cursor-trail {
                    position: fixed;
                    width: 10px;  /* Size */
                    height: 10px;
                    background-color: red;  /* Color */
                    border-radius: 50%;
                    pointer-events: none;
                    z-index: 10000;
                    opacity: 0.5;
                    transition: opacity 0.3s, transform 0.3s;
                }
            `;
            document.head.appendChild(style);

            // Then we append an event listener for the trail
            document.addEventListener('mousemove', (event) => {
                const trailDot = document.createElement('div');
                trailDot.classList.add('cursor-trail');
                document.body.appendChild(trailDot);

                trailDot.style.left = `${event.clientX}px`;
                trailDot.style.top = `${event.clientY}px`;

                // after 300ms we fade out and remove the trail dot
                setTimeout(() => {
                    trailDot.style.opacity = '0';
                    setTimeout(() => trailDot.remove(), 300);
                }, 50);
            });
        """
    )

    end_time = asyncio.get_event_loop().time() + duration
    while asyncio.get_event_loop().time() < end_time:
        x = min(random.randint(0, width), width)
        y = min(random.randint(0, height), height)

        await page.mouse.move(x, y, steps=random.randint(10, 30))
        await asyncio.sleep(random.uniform(1, 3))
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @ggorlen
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Aniket

79167329

Date: 2024-11-07 16:43:14
Score: 3
Natty:
Report link

if you are trying to create an image. I would suggest using GIMP (free) or Adobe Photoshop (subscription based). I think that would be a much easier answer to your issue.

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

79167302

Date: 2024-11-07 16:32:11
Score: 3
Natty:
Report link

When i had that error: org.hibernate.type.SerializationException: could not deserialize I was accidently use wrong import for 'Timestamp' field instead of java.sql.Timestamp it was 'java.security.Timestamp' I have not noticed that at the beginning

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): When i
  • Low reputation (1):
Posted by: irina

79167295

Date: 2024-11-07 16:28:09
Score: 3.5
Natty:
Report link

Any slide from slide master needs at least one layout before it can be applied to a slide. Go to view -> slide master -> insert slide.

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

79167290

Date: 2024-11-07 16:26:09
Score: 1.5
Natty:
Report link

The way NGINX handles the TCP connection for load balancing and connection reuse may be the cause of the behavior you are observing, where there are active connections between the NGINX Ingress controller and destination pod even in the absence of client requests.

It should be noted that NGINX contains a keepalive directive that specifies how many connections should be maintained open in the connection pool. As a result, you may see some connections are left open even when no client requests are coming in. Refer to this for more information on this.

Also you can configure the NGINX ingress controller to have a shorter keep-alive timeout to close idle connections faster. In simple words **you can modify the NGINX configurations by setting a lower keep_alive timeout for TCP connections.**For more information on this keepalive connections refer to this blog by Timo Stark.

Reasons:
  • Blacklisted phrase (1): this blog
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Imran Premnawaz

79167282

Date: 2024-11-07 16:23:08
Score: 3.5
Natty:
Report link

Still working on this project. I'm still learning and want to understand the clips_array function:

combined = clips_array([[clips[i] for i in range(j, j + 3)] for j in range(0, len(clips), 3)])

How can i change the amount of clips on the axis?

Reasons:
  • Blacklisted phrase (0.5): How can i
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Wessiez

79167260

Date: 2024-11-07 16:16:06
Score: 2
Natty:
Report link

I was able to fix this issue by running the following code in a cell in Jupyter Lab notebook itself.

pip install openpyxl --upgrade
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Katelyn McCarthy

79167254

Date: 2024-11-07 16:13:06
Score: 0.5
Natty:
Report link

One line to get an array of selected texts or values

var array_of_texts = $('#Your_multiple_select option:selected').toArray().map(item => item.text);

Output: ["text1", "text2"]

var array_of_values = $('#SelectQButton option:selected').toArray().map(item => item.value);

Output: ["value1", "value2"]

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

79167252

Date: 2024-11-07 16:13:06
Score: 3
Natty:
Report link

enter image description here

Based off the other answers, I disabled the Beautify extension and it worked.

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

79167251

Date: 2024-11-07 16:13:06
Score: 1
Natty:
Report link

another simple way without the use of macros

std::string stringize(double d, unsigned int p=3 )
{
    std::stringstream ss;
    ss << std::setprecision(p) << d;
    return ss.str();
}

double default_value = 2.5;    
value(&config.my_double)->default_value(default_value, stringize(default_value));
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vincent P LaBella

79167248

Date: 2024-11-07 16:12:05
Score: 2.5
Natty:
Report link

Solutions from @gairfowl:

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

79167247

Date: 2024-11-07 16:12:05
Score: 0.5
Natty:
Report link

I tested this method using an imported module and it worked:

// file: newFunction.ts
export function newFunction() {}

//file: deprecatedFunction.ts
import type { newFunction } from "./newFunction"

/** @deprecated use {@link newFunction} */
function deprecatedFunction() {}

Source: https://github.com/microsoft/TypeScript/issues/47718#issuecomment-2185274842

There's also multiple ways to link it in the discussion.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Leandro Haruki

79167226

Date: 2024-11-07 16:04:03
Score: 1.5
Natty:
Report link

Ok, forget it, FORGET IT!!!!

I just found an error message on the console that didn't caught my eyes until now: No provider for HttpClient.

With that it was easy to find the solution under No provider for HttpClient.

Now it is not redirected anymore. My bad, sorry.

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

79167221

Date: 2024-11-07 16:02:02
Score: 2
Natty:
Report link

you need to run amplify init in the project root.

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

79167219

Date: 2024-11-07 16:02:02
Score: 0.5
Natty:
Report link

You may try:

=map(B2:B,lambda(Σ,if(Σ="",,sumifs(Sheet1!F:F,Sheet1!A:A,A2,Sheet1!B:B,Σ))))

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • High reputation (-2):
Posted by: rockinfreakshow

79167214

Date: 2024-11-07 15:59:02
Score: 1.5
Natty:
Report link

You can avoid this problem with something like

if (Window.getWindows().isEmpty()){ updateMessage("Doing work"); }

it's probably not the best answer but it work :)

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

79167213

Date: 2024-11-07 15:59:02
Score: 3
Natty:
Report link

Resolved above by posting authWellKnownEndPointUrls with same url as authority. Actually it doesn't matter what authority contains but what matters is what authWellKnownEndPointUrls contain although docs say they use authority only.

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

79167206

Date: 2024-11-07 15:55:00
Score: 1.5
Natty:
Report link

The reply by @MartinSmith was on the right track. The schema (and optionally database) should have been passed to the object_id function.

object_id(TABLE_SCHEMA+'.'+TABLE_NAME)

grabs the correct results.

The original, which only uses the TABLE_NAME string, always returns the table in the user's default schema - which in this case did not include a table by that name, while the schema being processed did.

To get info on a table in another database, the catalog can be added as well:

object_id(TABLE_CATALOG+','+TABLE_SCHEMA+'.'+TABLE_NAME)

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @MartinSmith
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Paul H

79167202

Date: 2024-11-07 15:53:59
Score: 2.5
Natty:
Report link

I just did it the dirty way: Search for my output DLL in the solution directory in Windows Explorer - all projects that have it in their bin/debug are dependent.

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

79167193

Date: 2024-11-07 15:50:56
Score: 7.5 🚩
Natty: 4.5
Report link

Did you find the solution? It happened the same to me after updating EKS to version 1.31

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

79167190

Date: 2024-11-07 15:49:56
Score: 5
Natty: 5
Report link

es correcto, te lo transforma a tu formato local. un día perdí, y solo coloque esta: "Tu variable".Text = DateTime.Today.ToString("yyyy-MM-dd") y listos. Gracias

Reasons:
  • Blacklisted phrase (2): Gracias
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Segundo Bernal

79167185

Date: 2024-11-07 15:48:55
Score: 2.5
Natty:
Report link

origin represents the default remote repository, typically the one you cloned from, while “upstream” refers to an additional remote repository that you may want to track or contribute changes to

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

79167167

Date: 2024-11-07 15:42:54
Score: 0.5
Natty:
Report link

Basically, any relationship A to B with an eOpposite with Containment=true could be seen as two SQL tables A and B, where B has a foreign key constraint to A with 'on delete cascade', so in classical UML words compositions.

Some more details on the EMF semantics:

EMF models are basically tree models with additional edges that transfer them into graphs. Container and containment manage the model's backbone which is the underlying tree structure: each of your types except for the root and externally defined types needs to be (transitively) contained.

You start by defining types directly under root and can then define more types that rely on those. Often, you allow a type A to contain a list of Bs and each B maintains its parent connection as a 1..1 connection. This is a normal tree connection (many children but exactly one parent). It is also possible to define a 1 to 1 containment connection to a child - and probably even other connections.

But each existing element in your later model has exactly one route to the model's root that follows the containments upwards in the backbone tree. Other relationships that define no containments will not add new elements to your model but just define (helpful) connections between existing elements.

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

79167157

Date: 2024-11-07 15:39:53
Score: 0.5
Natty:
Report link

The following solution changes all sorts of colors in SwiftUI's List without changing the global appearance() of the UITableView. You can change the cell background as well as the List background.

import SwiftUI

struct ContentView: View {
    var listItems: [String] = ["A", "B", "C"]
    
    var body: some View {
        List {
            ForEach(listItems, id: \.self) { item in
                Text(item)
            }
            .listRowBackground(Color.purple) // Applying the list cell background color
        }
        .scrollContentBackground(.hidden) // Hides the standard system background of the List
        .background(Color.teal) // Applying list background color
    }
}

Output: Demo

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

79167156

Date: 2024-11-07 15:38:52
Score: 2.5
Natty:
Report link

You can find the link for the Bonjour SDK for Windows at developer.apple.com/bonjour/

Note that the information in the other answer is outdated. The Bonjour SDK is no longer accessible from developer.apple.com/opensource/

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

79167137

Date: 2024-11-07 15:34:51
Score: 2.5
Natty:
Report link

I had a similar problem with colspan alignment. After quite a bit of trial and error I found that it was an issue with the td cell having a css class specifying 'display: inline-block;'. Once I removed that all my table columns aligned correctly.

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

79167136

Date: 2024-11-07 15:33:49
Score: 7.5 🚩
Natty: 4.5
Report link

I'm actually experiencing the same issue. I am 100% sure that atomic operations inside transaction emits flows. Did you find a solution?? :(( @Transaction annotation, as well with empty @Query("") dont solve the problem...

Reasons:
  • Blacklisted phrase (1): :(
  • RegEx Blacklisted phrase (3): Did you find a solution
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Transaction
  • User mentioned (0): @Query
  • Low reputation (1):
Posted by: tomapplause

79167132

Date: 2024-11-07 15:33:48
Score: 0.5
Natty:
Report link

In the next angular (v19), we'll be able to use the following alternative:

@let user = user$ | async;

source

Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Stefano Borzì

79167128

Date: 2024-11-07 15:31:45
Score: 6.5 🚩
Natty:
Report link

I am facing an issue with 'signInWithRedirect'. I had an old website and signInWithRedirect was working fine. However, after the authentication process, it shows that the user is not signed in if I try to fetch the user using 'onAuthStateChanged'.

I checked my firebaseConfig and everything is okay. localhost is also added in Authorized domains. I also checked this "https://firebase.google.com/docs/auth/web/redirect-best-practices?hl=en&authuser=0&_gl=1dzwk51_gaMTU2NjQzMDEzOC4xNzI5MDU1MDIw_ga_CW55HF8NVT*MTczMDk5MDcwNy44NS4xLjE3MzA5OTI0MTEuNjAuMC4w#web" and everything seems okay.

As I am running my web app on localhost, I am using option 1 in above mentioned link, I do not know anything about 'continue_uri'. Anybody can help me? I am stuck in this for days. Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (1.5): I am stuck
  • RegEx Blacklisted phrase (3): Anybody can help me
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
Posted by: WasimSafdar

79167118

Date: 2024-11-07 15:29:44
Score: 2
Natty:
Report link

Thanks for the answer, it solves my problem :

<mat-select hideSingleSelectionIndicator>...</mat-select>
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Quentin Duverger

79167114

Date: 2024-11-07 15:28:44
Score: 1
Natty:
Report link

e.ConfigureConsumeTopology = false

Documentation

Reasons:
  • Probably link only (1):
  • Low length (2):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • High reputation (-2):
Posted by: Chris Patterson

79167112

Date: 2024-11-07 15:28:44
Score: 4.5
Natty: 4
Report link

@CharlieOliver Because if you include your sensitive data in App.Config, your database may be hacked by hackers. If you put these codes in your source code, your database is secured.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @CharlieOliver
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Mohammad Genius

79167111

Date: 2024-11-07 15:28:43
Score: 0.5
Natty:
Report link

Still no sucess, when i include the if part (as per below) nothing works.

rsyslogd -N1

rsyslogd: version 8.2102.0-5.el8, config validation run (level 1), master config /etc/rsyslog.conf rsyslogd: error during parsing file /etc/rsyslog.d/tomcat.conf, on or before line 9: syntax error on token 'regex' [v8.2102.0-5.el8 try https://www.rsyslog.com/e/2207 ]

  module(load="imfile" PollingInterval="1") #needs to be done just once
#File 1
input(type="imfile"
File="/tomcat/logs/catalina.out"
Tag="catalina"
Severity="info"
Facility="local1")

if $msg regex "(?sm)org\.apache\.jasper\.JasperException:.* java\.lang\.NullPointerException[\r\n]{1,2}(\s+(?:at )?[^\s]+[\r\n]{1,2}){1,}" then {
    action(type="omfwd" target="192.168.0.1" port="514" protocol="udp" facility="local1" severity="err")
}

local1.* @192.168.0.1:514
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: John Paul Attard

79167102

Date: 2024-11-07 15:27:43
Score: 4
Natty: 4.5
Report link

https://laracasts.com/discuss/channels/laravel/error-cors-policy-no-access-control-allow-origin-with-laravel-11

found a solution here, worked for a similar issue

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

79167094

Date: 2024-11-07 15:23:42
Score: 1.5
Natty:
Report link

The solutions ended up being that I could pass an object of ThreadPoolTaskExecuter to the JmsListenerContainerFactory with the following parameter settings:

executor.setCorePoolSize(1);
executor.setMaxPoolSize(1);
executor.setQueueCapacity(100);
executor.initialize();

This has the desired behaviour.

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

79167088

Date: 2024-11-07 15:22:41
Score: 1.5
Natty:
Report link

In My case issue was solved by following this link - https://github.com/fluttercommunity/plus_plugins/issues/3299 (malwinder-s's answer). Pasting it here -

id "com.android.application" version "8.7.0" apply false
in plugins block In android/settings.gradle

Also set in gradle-wrapper.properties:

   distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip

In my case the com.android.application was 7.3.0. Changed it to 8.7.0.

Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): this link
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alias

79167087

Date: 2024-11-07 15:22:41
Score: 1.5
Natty:
Report link

I found a better solution using overflow: hidden;:

div {
    /*Schedule to social media.*/
    grid-area: c;
    padding: 30px 20px;
    overflow: hidden;
    img {
        height: 62%;
        margin-top: 10px;
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Peter

79167086

Date: 2024-11-07 15:22:41
Score: 1.5
Natty:
Report link

This fixed it for me:

const options = { groupHeightMode: "fixed" };
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: sybb

79167078

Date: 2024-11-07 15:19:41
Score: 1.5
Natty:
Report link

This one for php:

if ($handle = opendir('./')) { while (false !== ($entry = readdir($handle))) { if ($entry != "." && $entry != ".." && strtolower(substr($entry, strrpos($entry, '.') + 1)) == 'pdf') {

$str = $str.' '.$entry; }}}

exec( '"C:\Program Files\gs\gs9.53.3\bin\gswin64.exe" -dNOPAUSE -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -sOUTPUTFILE=combine.pdf -dBATCH '.$str.'');

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

79167057

Date: 2024-11-07 15:13:39
Score: 2
Natty:
Report link

Try , USE_TZ = True

If we use , USE_TZ = False , django will not apply timezones. Here , you use USE_TZ = False and set timezone as 'Asia/Tehran'

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Amina K M

79167049

Date: 2024-11-07 15:11:39
Score: 2.5
Natty:
Report link

when you want exactly to show the Alert , i think you need to change the way you wanna do it , just save what exception you have and when the user open again the app show the Alert or a Fragment to show The LAST CRASH details , it better .

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): when you
  • Low reputation (0.5):
Posted by: B.man

79167047

Date: 2024-11-07 15:11:39
Score: 2.5
Natty:
Report link

I think the reason for Time objects being defined this way is that the result of timeA - timeB depends on the date, as we could hit a daylight saving boundary.

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

79167044

Date: 2024-11-07 15:11:39
Score: 3
Natty:
Report link

I've had this happen to me in the past and it was due to an incompatibility between the CUDA driver and Keras. Make sure the versions you are using are compatible.

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

79167041

Date: 2024-11-07 15:11:39
Score: 2
Natty:
Report link

Any of the SearchCriteria classes are basically just giant wrappers for the Query API. The idea behind the criteria class is to allow the information to be stored within the class that you select on the UI. So if you have a Jurisdiction drop down you would store that in a variable within the class so when you performSearch() that information is readily available for your query.

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

79167032

Date: 2024-11-07 15:09:38
Score: 2.5
Natty:
Report link

Spark only works with Java 8, 11 and 17 at the time writing this answer. Consider downgrading from Java 23 that you are using now to one of the versions specified.

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

79167027

Date: 2024-11-07 15:07:35
Score: 8 🚩
Natty:
Report link

I am facing the same error to implement new tests using Node 20 and the latest Mocha version.

It was working in other Node version? Which one?

Reasons:
  • RegEx Blacklisted phrase (1): I am facing the same error
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same error
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: luisk

79167010

Date: 2024-11-07 15:03:34
Score: 0.5
Natty:
Report link

I fixed this problem by changing line separator for the file from CR to LF in the bottom list of the IDE (PHPStorm).

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Mattias Inokuchi

79167008

Date: 2024-11-07 15:03:34
Score: 1
Natty:
Report link

In case you may want a one liner.

SELECT TABLE_NAME
,STRING_AGG(CONVERT(NVARCHAR(max), COLUMN_NAME), ',') As THE_COLUMNS
FROM INFORMATION_SCHEMA.COLUMNS
GROUP BY TABLE_NAME
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mike Casas

79167001

Date: 2024-11-07 15:01:34
Score: 3
Natty:
Report link

Confirmed by Apple as a known bug; see https://github.com/swiftlang/swift/issues/63877. @RobNapier got in ahead of me on this one!

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @RobNapier
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: matt