79145220

Date: 2024-10-31 15:03:52
Score: 2
Natty:
Report link

If you want to check for the number of CPU(s) on your machine:

lscpu | grep CPU
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: kiuzzaxk

79145206

Date: 2024-10-31 14:57:48
Score: 6 🚩
Natty: 5
Report link

I have the same problem and my environment is not broken, When I run conda info -json at the command line it returns 0. I tried the sledgehammer above to no avail. Anyone solve this. Is it better in latest release.

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: barry

79145201

Date: 2024-10-31 14:55:48
Score: 2.5
Natty:
Report link

I've faced this problem once! I set validate method with some conditions like follows:

//...
validate: values => {
const errors: IForm = { //form inputs like username: "" <- empty string
 }
//...

each time I wanted to submit the form, it didn't triggered! so the problem as can be seen above was so simple! the validation is the problem! why?

const errors: IForm | null {username: null} <- it must be null to work correctly
Reasons:
  • Blacklisted phrase (0.5): why?
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Hamed

79145197

Date: 2024-10-31 14:54:47
Score: 5
Natty: 4
Report link

Are you just flexing with your solid block of contributions? :) 100 days of code challenge? good work BTW

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

79145196

Date: 2024-10-31 14:54:47
Score: 0.5
Natty:
Report link

I highly recommend using Django sessions to secure your application.

when you log in, Django automatically inserts the session id and the CSRF token into the cookies, the session id is used by Django as authentication and the CSRF token allows you to prevent CSRF attacks.

I also recommend using the django-cors-headers library to authorize requests to your backend only from certain domains and using Django models/make queries with the placeholders to avoid SQL injection vulnerabilities

some time ago I was in the same situation as you and after a long search I decided to use this integrated Django system for several reasons:

  1. it's much easier to implement than a JWT token if you know enough about Django
  2. it is an alternative that offers an excellent level of security
  3. it's less challenging to make mistakes when writing code than implementing a system that uses the JWT token
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: kkk

79145175

Date: 2024-10-31 14:48:46
Score: 2
Natty:
Report link

i was able to fix that issue by putting the SENTRY_AUTH_TOKEN in the env of my computer.

on mac with : export SENTRY_AUTH_TOKEN=[variable_value]

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

79145169

Date: 2024-10-31 14:46:45
Score: 2.5
Natty:
Report link

if you are on windows just change your interpreter from Python/python3 and use the venv Python or venv Python3 by clicking on problems and and right clicking the problem and selecting a different interpreter

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

79145165

Date: 2024-10-31 14:45:45
Score: 5
Natty: 5
Report link

Out of curiosity, what happens if you move getchar() to the beginning of the loop, prior to the instructions?

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

79145160

Date: 2024-10-31 14:43:44
Score: 0.5
Natty:
Report link

My observation was initially rejected with the "unclear" mention.

I will try to be clearer in explaining my context:

I deliver an application through Docker to ensure cross-platform portability.

My development environment is Mac with an Intel processor.

The application code is identical regardless of the platform.

What can change from one platform to another is the hardware, the operating system, and the environment that runs the Docker containers.

Originally, the stack included in my Docker image was as follows: a) Centos 8 b) Python 3.9 c) Pandas 2.2.2 d) Numpy 1.26.4

When running this image on my Intel Mac, there were no execution problems.

When porting this image to a first Linux system with podman 1.6.4 (instead of docker), still no execution problems.

However, when porting this image to a second Linux system with podman 4.0.2, I encounter this error "TypeError: Cannot convert numpy.ndarray to numpy.ndarray".

I then completely modernized the image stack:

a) switched to Red Hat 8 b) adopted Python 3.12 c) adopted Pandas 2.2.3 d) Numpy 1.26.4

The problem is still present on this last platform (absent on Mac)

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

79145141

Date: 2024-10-31 14:36:42
Score: 0.5
Natty:
Report link

Resolved by adding WebMvcConfig code.

@Configuration

public class WebMvcConfig implements WebMvcConfigurer {
@Override
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
    configurer.defaultContentType(MediaType.APPLICATION_JSON, MediaType.TEXT_PLAIN)
              .mediaType("json", MediaType.APPLICATION_JSON)
              .mediaType("text", MediaType.TEXT_PLAIN)
              .parameterName("mediaType")
              .favorPathExtension(true);
}

@Override
public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
    converters.add(new StringHttpMessageConverter(StandardCharsets.UTF_8));
    converters.add(new MappingJackson2HttpMessageConverter());
}
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: kaidey

79145133

Date: 2024-10-31 14:35:42
Score: 3.5
Natty:
Report link

Solution :

It's seems that it's due to the AssetMapper which is installed by default when creating a new webapp project.

If you prefer to use webpack to manage your assets, follow the link below to the documentation to switch from AssetMapper to Webpack properly :

https://symfony.com/doc/current/frontend.html#switch-from-assetmapper

Reasons:
  • Blacklisted phrase (1): the link below
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mwiapfeo_142

79145120

Date: 2024-10-31 14:31:41
Score: 2.5
Natty:
Report link

Turns out I had made an incorrect assumption: that you needed to redeploy the api-gateway. This was incorrect.

That solution was simple: delete the previous config and deploy the new one. That's it.

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

79145117

Date: 2024-10-31 14:30:41
Score: 0.5
Natty:
Report link

I was getting ReplicaSetNoPrimary on every connection. I'm using MongoDb v7.0 on Atlas Free Tier, node.js v18.15, and had installed mongodb 6.10 driver with npm. Despite previous suggestions, what worked for me was downgrade mongodb driver with npm install [email protected]

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

79145116

Date: 2024-10-31 14:30:41
Score: 0.5
Natty:
Report link

Its hard to say for sure without seeing the other DoFns here, but it looks to me like you're yielding unkeyed output from WaitUntilDevicesExist, and then calling a GroupByKey (or similar operation) in GroupMessagesByShardedKey. Instead of just yielding the message, should you be doing something like the following?

yield shard_id, message

I think Number of components does not match number of coders. is basically saying that the coders are expecting a key/value pair, and you're only passing them a value.

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

79145111

Date: 2024-10-31 14:28:40
Score: 0.5
Natty:
Report link

I was offsetting by 1 column too much. In addition, Sheets(1) does not refer to Sheet1 in excel, I have no specified the sheet name. The error is given when nothing can be found, I prevented this with a Try & Catch Error combo. Working code:

^+F1::
{
Try {

title := WinGetTitle("A") ; Works
UniqueRef := Trim(SubStr(title,1,InStr(title," (")-1)) ; Works

xl.Sheets("CURRENT").Range("A:A").Find(UniqueRef).Offset(0,10).Value := ComObjActive("Excel.Application").ActiveCell.Value ;WORKS!
} Catch Error {

    msgbox "Unable to locate reference.","Error."

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

79145108

Date: 2024-10-31 14:27:40
Score: 3
Natty:
Report link

As advised by Estus Flask, when I updated Typescript (to v. 5.6.3) the problem is solved.

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

79145107

Date: 2024-10-31 14:26:40
Score: 2.5
Natty:
Report link

Thank you David, sometimes the solution is right before your eyes:

just needed to install that:

npx @next/codemod@latest next-async-request-api .

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: stefdec

79145100

Date: 2024-10-31 14:24:39
Score: 1
Natty:
Report link

You can use NetSuite Analytics Warehouse which is Oracle Analytics Cloud specifically for NetSuite with managed Data Pipelines.

See more information on the Oracle Analytics Community website.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Benjamin Arnulf

79145099

Date: 2024-10-31 14:24:39
Score: 1.5
Natty:
Report link

Type in echo $profile to find the path to your .profile file equivalent on windows. Create the file if it does not exist.

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

79145096

Date: 2024-10-31 14:23:39
Score: 1.5
Natty:
Report link

In my case i used DynamoDB Connector. The tables were encrypted with customer managed encryption key. And queries returned the same error message.

So i just needed to extend the Connector Lambda permission with the kms:Decrypt to be able to query the tables

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

79145094

Date: 2024-10-31 14:23:39
Score: 2
Natty:
Report link

In my case it was finally the SQL Agent job that I had to change owner to SA.

SQLServer Error: 15404, Could not obtain information about Windows NT group/user 'SERVERNAME\Administrator', error code 0x54b. [SQLSTATE 42000] (ConnIsLoginSysAdmin)

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

79145090

Date: 2024-10-31 14:21:38
Score: 1.5
Natty:
Report link

This worked: ^(.+)\1$ replacing it by \1

Still don't get why ^(.+)(?=\1)$ doesn't work.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Gustavo

79145083

Date: 2024-10-31 14:18:37
Score: 2
Natty:
Report link

This was great, I have been researching for a while now, and I think this has helped. Have you ever come across binehealthcenter. com PD-5 Programme (just google it). It is a smashing one of a kind product for reversing Parkinson’s disease completely. Ive heard some decent things about it and my HWP got amazing success with it.

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

79145074

Date: 2024-10-31 14:15:36
Score: 3
Natty:
Report link

To add space below the ion-content tag, you can choose any margin-bottom value you prefer, such as margin-bottom: 100px;. I found this approach to be the simplest.

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

79145072

Date: 2024-10-31 14:14:36
Score: 2
Natty:
Report link

Using this version resolved the error ""cmdk": "1.0.0""

I also see that you are missing the "overrides"

my configuration: ""overrides": { "@types/react": "npm:[email protected]", "@types/react-dom": "npm:[email protected]", "react-is": "19.0.0-rc-65a56d0e-20241020" }"

https://ui.shadcn.com/docs/react -19

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jose Cueva Celis

79145071

Date: 2024-10-31 14:14:36
Score: 1
Natty:
Report link

I experienced this error for some time while trying to convert a pyspark dataframe to a pandas dataframe.

I am using pyspark version 3.5.3

This was my solution.

'''python #imports from pyspark.sql.functions import col import pandas as pd

pandas_df = pyspark_df.select('column_1', 'column_2', 'column_3___').filter(col("filter_column") == "some_value").limit(10000).collect()

NOTE: Mine has a filter since I had to filter the data

filtered_df = pd.DataFrame(df, columns=['column_1', 'column_2', 'column_3---']) '''

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

79145065

Date: 2024-10-31 14:12:35
Score: 1
Natty:
Report link

you can use the image plugin available for Oracle Analytics.

Please check the Oracle Analytics Community website to download it.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Benjamin Arnulf

79145060

Date: 2024-10-31 14:11:34
Score: 2.5
Natty:
Report link

Turns out I had changed my MUI AppBar to position "sticky", which for some reason caused the issue described. I changed it back to position "fixed" as the MUI mini drawer example showed and all is well now. I'm not savvy enough with the css to understand why.

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

79145057

Date: 2024-10-31 14:09:34
Score: 3
Natty:
Report link

if you are looking for encoding your php code so its hard to understand. You want to secure your code from unauthorized here the too that helped me. https://php-minify.com/php-obfuscator/

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

79145056

Date: 2024-10-31 14:09:34
Score: 1
Natty:
Report link

I have no doubt there is a better way but this seems to match your example:

Where-Object { $_ -match '^(?!.*user).*error.*' }

it will pass only the lines which do not match the word user anywhere but match the word error

https://regex101.com/r/9kFxBt/1

Reasons:
  • RegEx Blacklisted phrase (2): I have no doubt
  • Low length (0.5):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: sirtao

79145045

Date: 2024-10-31 14:07:33
Score: 2
Natty:
Report link

Yes, the problem you encoutred is due to deploying Doc Intelligence in unsupported Azure region.

It's specified in the Azure AI Document Intelligence documentation that the 2024-07-31-preview version is currently available only in the following Azure regions:

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

79145040

Date: 2024-10-31 14:06:33
Score: 3
Natty:
Report link

Je lance bash mais j'utilise le VS code mais quand je lance dans le terminal le code python manage.py runserver le resultant s'affiche cette message aucune chose qui peut ajouter

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

79145039

Date: 2024-10-31 14:06:33
Score: 1
Natty:
Report link

Browsing for an alternative to our current solution right now and stumbled across this question. It'll highlight as an error, but I promise it works if you put it at the end of your devcontainer.json:

  "runArgs": ["--env-file", "${localWorkspaceFolder}/.devcontainer/.env"]
}

I'll be back if I find something better/official

Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: dot-notdot

79145038

Date: 2024-10-31 14:06:33
Score: 4
Natty:
Report link

As far as i know, the common method is to store secrets, such as the secret to access the key vault, in environment variables and then accessing the env-vars through your code.

Is this helpfull?

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

79145036

Date: 2024-10-31 14:05:32
Score: 2
Natty:
Report link

Got it work now. The issue was that my token had a special characther "=" so I had to encode it before.

encoded_token=$(printf '%s' "$token" | jq -sRr @uri)

Thanks for your help!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-0.5): Thanks for your help
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: basel.9188

79145033

Date: 2024-10-31 14:05:32
Score: 1.5
Natty:
Report link

Could you share a copy of your pom.xml? I tried running your code with the same setup, including @EnableCaching and spring-boot-starter-cache, and it worked as expected. Here’s the output I see:

Services annotated with @DataService:
Bean Name: barService, Class: BarService
Bean Name: fooService, Class: FooService

One thing you might want to try is using AopProxyUtils.ultimateTargetClass(bean) in your AnnotationProcessor.

This approach helps because AopProxyUtils.ultimateTargetClass(bean) retrieves the original class behind any proxies that Spring might create when caching is enabled.

When you use this method, you’ll get the actual class name, which ensures that any annotations on the original class are accessible, even when proxies are involved.

Here’s an example of how you might update the code:

IService bean = (IService) entry.getValue();
Class<?> targetClass = AopProxyUtils.ultimateTargetClass(bean);
System.out.println("Bean Name: " + beanName + ", Class: " + targetClass.getSimpleName());

Using targetClass like this should prevent NullPointerException issues caused by accessing annotations on a proxy class. Let me know if this helps!

Reasons:
  • Whitelisted phrase (-1): it worked
  • RegEx Blacklisted phrase (2.5): Could you share
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Olufemi Thompson

79145031

Date: 2024-10-31 14:05:32
Score: 0.5
Natty:
Report link

I think that the key might be about the non-const reference details and to bind an object of a different type.

Here’s a Template example:

template <typename Iterator>
void f(Iterator& p)
{
    ++p;
}

Live Demo

Hope this is helpful in resolving this issue.

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

79145025

Date: 2024-10-31 14:03:32
Score: 3
Natty:
Report link

Another option that worked for me was adding a GitHub account - the Copilot was automatically registered as well.

enter image description here

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 (1):
Posted by: avivc411

79145017

Date: 2024-10-31 13:59:31
Score: 2
Natty:
Report link

I seems Tornado is trying to get the entire response body before passing it on to the client.

have a look at @gen.coroutine or @web.asynchronous .

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

79145016

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

I found a workaround myself. I changed the access to the database from PostGreSQL driver to ODBC und rebuilt all queries to use the new access type. So I avoided the error messages.

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

79144998

Date: 2024-10-31 13:54:29
Score: 2
Natty:
Report link

Posting for those like me, where you project runs fine but some of the eclipse functionality does not work (ex ctrl+space to autocomplete) unless the red squiggle goes away.

Restart eclipse.

File -> Restart.

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

79144987

Date: 2024-10-31 13:52:29
Score: 2.5
Natty:
Report link

I used to do it in pycharm, it didn't work, but in vscode is ok. You can try vscode instead.

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

79144985

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

CAPL won't support using those #defines instead you can use dll using pragma what is the use case you are trying to do ?

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Ganesh Reddy

79144979

Date: 2024-10-31 13:50:28
Score: 1
Natty:
Report link

For me the issue was Sourcetree. It sets the following value in ~/.gitconfig

[safe]
    bareRepository = explicit

Removing those two lines of code fixed the issue for me.

As of 10/31/2024 it looks like there is a bug filed with Atlassian for this issue: https://jira.atlassian.com/browse/SRCTREE-8176

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

79144976

Date: 2024-10-31 13:49:27
Score: 5.5
Natty:
Report link

which version is the last one stand today 31.10.2024?

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

79144975

Date: 2024-10-31 13:49:27
Score: 1.5
Natty:
Report link

I've created my own version of this, which does not rely on external dependencies (like HtmlAgilityPack). This also removes the unsupported <see cref="..." /> but keeps the value inside of it. I don't know which is faster (and/or better) performance-wise though.

public static class XmlCleaner
{
    public static string RemoveUnsupportedCref(string xml)
    {
        //<see cref="P:abc" />
        //<see cref="T:abc" />
        //<see cref="F:abc" />
        //etc.
    
        //Filter only on valid xml input
        if (string.IsNullOrEmpty(xml) || xml.Contains('<') == false) { return xml; }
    
        //Explanation: creates three groups.
        //group 1: all text in front of '<see cref="<<randomAlphabeticCharacterGoesHere>>:'
        //group 2: all text after the match of '<see cref="<<randomAlphabeticCharacterGoesHere>>:' UNTIL there is a match with '" />'
        //group 3: all text after '" />'
        //Then, merges group1, group2 and group3 together. This effectively removes '<see cref="X: " />' but keeps the value in between the " and ".
        xml = Regex.Replace(xml, "(.*)<see cref=\"[A-Za-z]:(.*)\" \\/>(.*)", "$1$2$3");
    
        return xml;
    }
}

That is basically it. However, I have more things I want from Swagger (like enums as strings, external .xml files with comments in them from dependencies that I want to have included, etc), so there is some additional code. Perhaps some of you might find this helpful.

builder.Services.AddSwaggerGen(options =>
{
    options.SwaggerDoc(
        "MyAppAPIDocumentation",
        new OpenApiInfo() { Title = "MyApp API", Version = "1" });

    //Prevent schemas with the same type name (duplicates) from crashing Swagger
    options.CustomSchemaIds(type => type.ToString());

    //Will sort the schemas and their parameters alphabetically
    options.DocumentFilter<SwaggerHelper.DocumentSorter>();

    //Will show enums as strings
    options.SchemaFilter<SwaggerHelper.ShowEnumsAsStrings>();

    var dir = new DirectoryInfo(AppContext.BaseDirectory);
    foreach (var fi in dir.EnumerateFiles("*.xml"))
    {
        var doc = XDocument.Load(fi.FullName);
        
        //Removes unsupported <see cref=""/> statements
        var xml = SwaggerHelper.XmlCleaner.RemoveUnsupportedCref(doc.ToString());
        doc = XDocument.Parse(xml);
        
        options.IncludeXmlComments(() => new XPathDocument(doc.CreateReader()), true);
        //Adds associated Xml information to each enum
        options.SchemaFilter<SwaggerHelper.XmlCleaner.RemoveUnsupportedCref>(doc);
    }
}

//Adds support for converting strings to enums
builder.Services.AddControllers().AddJsonOptions(options =>
{
    options.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter());
});

The SwaggerHelper class is as follows:

public static class SwaggerHelper
{
    /*
     * FROM: https://stackoverflow.com/questions/61507662/sorting-the-schemas-portion-of-a-swagger-page-using-swashbuckle/62639027#62639027
     */
    /// <summary>
    /// Sorts the schemas and associated Xml documentation files.
    /// </summary>
    public class SortSchemas : IDocumentFilter
    {
        // Implements IDocumentFilter.Apply().
        public void Apply(OpenApiDocument swaggerDoc, DocumentFilterContext context)
        {
            if (swaggerDoc == null) { return; }

            //Re-order the schemas alphabetically
            swaggerDoc.Components.Schemas = swaggerDoc.Components.Schemas
                .OrderBy(kvp => kvp.Key, StringComparer.InvariantCulture)
                .ToDictionary(kvp => kvp.Key, kvp => kvp.Value);

            //Re-order the properties per schema alphabetically
            foreach (var schema in swaggerDoc.Components.Schemas)
            {
                schema.Value.Properties = schema.Value.Properties
                    .OrderBy(kvp => kvp.Key, StringComparer.InvariantCulture)
                    .ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
            }
        }
    }

    /*
     * FROM: https://stackoverflow.com/questions/36452468/swagger-ui-web-api-documentation-present-enums-as-strings/61906056#61906056
     */
    /// <summary>
    /// Shows enums as strings in the generated Swagger output.
    /// </summary>
    public class ShowEnumsAsStrings : ISchemaFilter
    {
        public void Apply(OpenApiSchema model, SchemaFilterContext context)
        {
            if (context.Type.IsEnum)
            {
                model.Enum.Clear();
                Enum.GetNames(context.Type)
                    .ToList()
                    .ForEach(n =>
                    {
                        model.Enum.Add(new OpenApiString(n));
                        model.Type = "string";
                        model.Format = null;
                    });
            }
        }
    }

    /*
     * FROM: https://stackoverflow.com/questions/53282170/swaggerui-not-display-enum-summary-description-c-sharp-net-core/69089035#69089035
     */
    /// <summary>
    /// Swagger schema filter to modify description of enum types so they
    /// show the Xml documentation attached to each member of the enum.
    /// </summary>
    public class AddXmlCommentsToEnums : ISchemaFilter
    {
        private readonly XDocument xmlComments;
        private readonly string assemblyName;

        /// <summary>
        /// Initialize schema filter.
        /// </summary>
        /// <param name="xmlComments">Document containing XML docs for enum members.</param>
        public AddXmlCommentsToEnums(XDocument xmlComments)
        {
            this.xmlComments = xmlComments;
            this.assemblyName = DetermineAssembly(xmlComments);
        }

        /// <summary>
        /// Pre-amble to use before the enum items
        /// </summary>
        public static string Prefix { get; set; } = "<p>Possible values:</p>";

        /// <summary>
        /// Format to use, 0 : value, 1: Name, 2: Description
        /// </summary>
        public static string Format { get; set; } = "<b>{0} - {1}</b>: {2}";

        /// <summary>
        /// Apply this schema filter.
        /// </summary>
        /// <param name="schema">Target schema object.</param>
        /// <param name="context">Schema filter context.</param>
        public void Apply(OpenApiSchema schema, SchemaFilterContext context)
        {
            var type = context.Type;

            // Only process enums and...
            if (!type.IsEnum)
            {
                return;
            }

            // ...only the comments defined in their origin assembly
            if (type.Assembly.GetName().Name != assemblyName)
            {
                return;
            }
            var sb = new StringBuilder(schema.Description);

            if (!string.IsNullOrEmpty(Prefix))
            {
                sb.AppendLine(Prefix);
            }

            sb.AppendLine("<ul>");

            // TODO: Handle flags better e.g. Hex formatting
            foreach (var name in Enum.GetValues(type))
            {
                // Allows for large enums
                var value = Convert.ToInt64(name);
                var fullName = $"F:{type.FullName}.{name}";

                var description = xmlComments.XPathEvaluate(
                    $"normalize-space(//member[@name = '{fullName}']/summary/text())"
                ) as string;

                sb.AppendLine(string.Format("<li>" + Format + "</li>", value, name, description));
            }

            sb.AppendLine("</ul>");

            schema.Description = sb.ToString();
        }

        private string DetermineAssembly(XDocument doc)
        {
            var name = ((IEnumerable)doc.XPathEvaluate("/doc/assembly")).Cast<XElement>().ToList().FirstOrDefault();

            return name?.Value;
        }
    }

    /// <summary>
    /// Cleans Xml documentation files.
    /// </summary>
    public static class XmlCleaner
    {
        public static string RemoveUnsupportedCref(string xml)
        {
            //<see cref="P:abc" />
            //<see cref="T:abc" />
            //<see cref="F:abc" />
            //etc.

            //Filter only on valid xml input
            if (string.IsNullOrEmpty(xml) || xml.Contains('<') == false) { return xml; }

            //Explanation: creates three groups.
            //group 1: all text in front of '<see cref="<<randomAlphabeticCharacterGoesHere>>:'
            //group 2: all text after the match of '<see cref="<<randomAlphabeticCharacterGoesHere>>:' UNTIL there is a match with '" />'
            //group 3: all text after '" />'
            //Then, merges group1, group2 and group3 together. This effectively removes '<see cref="X: " />' but keeps the value in between the " and ".
            xml = Regex.Replace(xml, "(.*)<see cref=\"[A-Za-z]:(.*)\" \\/>(.*)", "$1$2$3");

            return xml;
        }
    }
}
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Andre_IRIS

79144970

Date: 2024-10-31 13:48:27
Score: 0.5
Natty:
Report link

In my case, the problem was that webpack.config.js was missing this as the last line: module.exports = Encore.getWebpackConfig();

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: tomazahlin

79144968

Date: 2024-10-31 13:47:26
Score: 0.5
Natty:
Report link

First make sure you are using the right realm.

Then, enable the service account role for your client in the Keycloak client settings.

enter image description here

POST http://<KEYCLOAK_URL>/realms/<YOUR_REALM>/protocol/openid-connect/token?grant_type=client_credentials&client_id=<YOUR_CLIENT_ID>&client_secret=<CLIENT_SECRET>

You should not need the username and password.

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

79144967

Date: 2024-10-31 13:47:26
Score: 1
Natty:
Report link

CO-RE leans on BTF type information to work. What happens when you use BPF_CORE_READ is that the compiler generates 'CO-RE Relocations'. These relocations take a few forms, but the simplest is offsets for struct fields. At load time, we need to be able to answer the question "What is the byte offset of field X in struct Y". Finding the field name once we have the correct type is simple, but finding the correct type when it might have changed shape is the challenge.

So, to do this we take a type the user defines and say "find this". The actual algorithm does not actually care about the full type, just the name and fields needed for the relocation.

The rough algorithm is:

So, we essentially only care about the fields actually referenced in your code and the bits of the type considered when checking "compatibility". See the libbpf rules. So you do in fact not need the whole vmlinux, just the types you use, and your structures can contain just the fields you use. https://nakryiko.com/posts/bpf-core-reference-guide/#defining-own-co-re-relocatable-type-definitions

The reason for using a vmlinux.h is mostly simplicity. You have the full types, and do not have to copy and redefine types every time you want to use a new type/field. Also, so users do not have to understand all of this underlying complexity when they first start.

What's the good practice when working with co-re ?

In my opinion, manually defining the smallest types needed. The reason is that sometimes the kernel types change so significantly that you need to manually provide multiple versions of the type and use conditional logic to essentially query which type is valid on the current kernel. See https://nakryiko.com/posts/bpf-core-reference-guide/#handling-incompatible-field-and-type-changes for details. Defining your types manually makes this process easier.

The second reason is that when working with git, its nice to not have to track a vmlinux.h or ask users to re-generate locally.

I have tried to remove vmlinux.h but I have compilation errors: struct dentry is unknown... [...] What should I do to compile this file without vmlinux.h ?

You should only need to define the following

struct qstr {
    union {
        struct {
            u32 hash; 
            u32 len;
        };
        u64 hash_len;
    };
    const unsigned char *name;
};

struct dentry {
  struct qstr d_name;
} __attribute__((preserve_access_index));

Note: In the actual definitions a macro is used to order hash and len based on endianness, but left that out for brevity.

Reasons:
  • Blacklisted phrase (2): What should I do
  • RegEx Blacklisted phrase (1): I have compilation error
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: Dylan Reimerink

79144963

Date: 2024-10-31 13:46:26
Score: 1
Natty:
Report link

There is another way to run python code in VsCode windows and debug in WSL

In summary, you need a WSL instance , you need execute this instance, enter in this instance, and inside her execute "code ."

If you need further detail see oficical documentation in

https://code.visualstudio.com/docs/remote/wsl-tutorial

in other words you call vs code inside wsl and vscode run in windows machine,

Tested in windows 11

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

79144956

Date: 2024-10-31 13:45:25
Score: 0.5
Natty:
Report link

Angular Material's prebuilt themes, like indigo-pink.css, often override custom styles. These styles are encapsulated, meaning your styles don't always apply as expected.

To effectively style Angular Material components like the mat-slide-toggle, you need to use Angular’s theme system or deep CSS selectors. Start by defining a custom theme where you specify the colors for primary elements. This will ensure consistency and prevent other styles from overriding your custom colors. Additionally, using the ::ng-deep selector can help you apply styles within Angular Material’s encapsulated components, allowing your custom background colors to take effect directly on the toggle button’s thumb and bar.

If you'd prefer inline styles, another approach is to set CSS variables globally and then refer to these variables in your component styles.

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

79144945

Date: 2024-10-31 13:42:24
Score: 3
Natty:
Report link

So it appears that the issue was not with the SQL. Instead, it was with the Java POJO that I had created as an @Entity. I was using @OneToOne for the foreign key reference and even though all the names were the same it was saying it could not find the column. Changing the @OneToOne to just an @Column fixed the error. The database still holds the key relationship. Everything I read stated what I had should work but it did not. At least I am able to move forward.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @Entity
  • User mentioned (0): @OneToOne
  • User mentioned (0): @OneToOne
  • User mentioned (0): @Column
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Patrick Aquilone

79144940

Date: 2024-10-31 13:40:24
Score: 3
Natty:
Report link

Okay so it doesn't Delphi doesn't appreciate it when you declare types in the main program file. Dogshit product

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

79144938

Date: 2024-10-31 13:40:24
Score: 0.5
Natty:
Report link

If you do:

PYBIND11_MAKE_OPAQUE(std::set<std::string>)

Pass by reference will work.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Tom McLean

79144934

Date: 2024-10-31 13:38:23
Score: 1.5
Natty:
Report link

I've been informed that:

CharacterSet is set as follows:

If the project adds a _UNICODE preprocessor definition, the CharacterSet is Unicode. If the project adds a _SBCS preprocessor definition, the CharacterSet is NotSet. Otherwise, the CharacterSet is MultiByte.

so

target_compile_definitions(example PRIVATE _SBCS)

should do the job.

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

79144920

Date: 2024-10-31 13:33:22
Score: 0.5
Natty:
Report link

All operations like Google Drive access work by talking to a dbus service.

Instead of a cron job use a systemd timer running as your user. This way it can access your session.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: TingPing

79144880

Date: 2024-10-31 13:21:18
Score: 0.5
Natty:
Report link

With a virtual environment this combination is working for me in an ipython notebook, here's the toml snippet I'm using with pdm.

    "plotly==5.24.1",
    "kaleido==0.2.1",
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: mapping dom

79144874

Date: 2024-10-31 13:19:17
Score: 3.5
Natty:
Report link

It's not supported by IDEA at present. I've created a feature request for this: https://youtrack.jetbrains.com/issue/IDEA-361893/Introduce-local-variable-should-suggest-for-Function-expression

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

79144873

Date: 2024-10-31 13:19:17
Score: 2.5
Natty:
Report link

In my case problem was on AWS config side Metadata server wasn't accessible from container

This ticket helps me Using IMDS (v2) with token inside docker on EC2 or ECS

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

79144872

Date: 2024-10-31 13:19:17
Score: 0.5
Natty:
Report link

You should try use CallStyle.forScreeningCall instead of CallStyle.forIncommingCall

Creates a CallStyle for a call that is being screened. This notification will have a hang up and an answer action, will allow a single custom action, and will have a default content text for a call that is being screened.

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

79144869

Date: 2024-10-31 13:17:17
Score: 0.5
Natty:
Report link
public static String getAuthToken(){
        def http = new HTTPBuilder(url + "some/url")   
        http.request (POST) { multipartRequest ->
            MultipartEntityBuilder multipartRequestEntity = new MultipartEntityBuilder()
            String key = 
            multipartRequestEntity.addPart('Username', new StringBody(user))
            multipartRequestEntity.addPart('Password', new StringBody(password))

            multipartRequest.entity = multipartRequestEntity.build()

            response.success = { resp, data ->
                return data['token']
            }
            response.failure = { resp, data ->
                return data
            }
        }
    }

U can perform form filling by using MultipartRequestEntityBuilder

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

79144861

Date: 2024-10-31 13:14:16
Score: 1
Natty:
Report link

My Project was using 2 different versions of System.Memory.

In my case System.Diagnostics.DiagnosticSource 4.0.5.0 was Referencing System.Memory 4.0.1.1

I upgraded System.Diagnostics.DiagnosticSource nuget package to 8.0.0.1 and this action upgraded System.Memory to 4.0.1.2

Now my project has same version i.e 4.5.5 of System.Memory in my project

After upgrading worked well.

enter image description here

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

79144860

Date: 2024-10-31 13:14:16
Score: 1.5
Natty:
Report link

{ "error": { "message": "An unknown error has occurred.", "type": "OAuthException", "code": 1, "fbtrace_id": "randomcode here" } } Solutions: visit: https://developers.facebook.com/tools/explorer

User or Page Options or dropdown of "User or Page"

then Select your page then copy token if not expired donot generate new remember just copy token and use will fix issue if not fixed then new working token will be given in 3 to 4 hours if same issue again came

issue because came you was not using page token but default it gave you id token of facebook which not needed so when you selected page from "User or Page" you will see changed token and use this one use and follow this payload

body raw json {"recipient":{"id":"id_of_which_u_want_send_message"},"messaging_type":"RESPONSE","message":{"text":"Hello, World!"},

Headers Content-Type application/json

Parameter link use this https://graph.facebook.com/v13.0/messenger id of u gave token/messages?access_token=ur_token_here

Assuming u using postman

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

79144859

Date: 2024-10-31 13:14:14
Score: 6 🚩
Natty: 5.5
Report link

This is also good for Windows?

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

79144828

Date: 2024-10-31 13:03:11
Score: 1
Natty:
Report link

For PHP >= 8

$priority = match (intdiv($count, 20)) {
    0, 1 => 'low',
    2 => 'medium',
    3 => 'high',
    default=>'none'
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alexander Shestakov

79144825

Date: 2024-10-31 13:03:11
Score: 1.5
Natty:
Report link

You can do

@Lock(LockMode.PESSIMISTIC_WRITE)
Optional<MyStuff> findForUpdateByFooAndBar(Foo foo, Bar bar);

As per https://docs.spring.io/spring-data/commons/reference/repositories/query-methods-details.html#repositories.query-methods.query-creation, (almost) anything between find and By is meant for descriptive purposes.

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

79144823

Date: 2024-10-31 13:02:11
Score: 2.5
Natty:
Report link
  let isDark = useTheme().palette.mode === "dark";
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: chafroud tarek

79144820

Date: 2024-10-31 13:01:10
Score: 3.5
Natty:
Report link

assigning my user a ccsid supported by QSH did the trick. After changing CCSID of my user to 37, execution of these IWS command line scripts now completed successfully.

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

79144817

Date: 2024-10-31 13:00:10
Score: 1.5
Natty:
Report link

You don't need to use this line in your Validation and Link models:

id = models.BigAutoField(primary_key=True)

remove this line !

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

79144813

Date: 2024-10-31 12:58:10
Score: 2.5
Natty:
Report link

TLS over TLS is OK in theory and, some specially designed protocol has already taken TLS over TLS into reality. TLS algorithm does not care about what you really want to encrypt, or, it sees any data stream equally and handles them in the same way, so it works.

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

79144809

Date: 2024-10-31 12:57:09
Score: 3
Natty:
Report link

Try adding #include <CGAL/boost/graph/graph_traits_Delaunay_triangulation_2.h>.

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

79144806

Date: 2024-10-31 12:55:08
Score: 2
Natty:
Report link

I found the solution, the env file was not correctly with the correct IP address.

Reasons:
  • Whitelisted phrase (-2): I found the solution
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Augusto Faggion

79144798

Date: 2024-10-31 12:52:07
Score: 3
Natty:
Report link

Please try it yourself and let me know if you have any questions. https://wirebox.app/b/xgddk

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

79144795

Date: 2024-10-31 12:51:07
Score: 2.5
Natty:
Report link

The problem comes from Intelij. In cmd the test is working fine. In order to overcome this issue, do the followings steps:

In test resources create the directory mockito-extensions and in that directory the file org.mockito.plugins.MockMaker. The complete path should look like this: src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker.

In the file, add the following line mock-maker-inline

enter image description here

Note: both dependencies are needed enter image description here

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

79144791

Date: 2024-10-31 12:50:07
Score: 9
Natty: 7.5
Report link

Did you get the solution to this problem?

Reasons:
  • RegEx Blacklisted phrase (3): Did you get the solution to this problem
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Narayan chowdhari

79144785

Date: 2024-10-31 12:48:06
Score: 3
Natty:
Report link

You can just use 'Split'. Goto Windows -> Split

enter image description here

When you are done you may use 'Remove Split'

enter image description here

This can also be achieved by control at the top right corner of you content area.

enter image description here

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

79144776

Date: 2024-10-31 12:44:04
Score: 0.5
Natty:
Report link

At the end of the day it turns out that I've been misled by the error. It turns out that the library I was trying to run doesn't work on an emulator, but it works on a proper device. Importing an .aar library from a local directory as described in original post works fine.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Miha Markic

79144774

Date: 2024-10-31 12:43:04
Score: 1
Natty:
Report link

based on nextjs15 docs, you can do this:

export default async function Page({
  params,
}: {
  params: Promise<{ slug: string }>
}) {
  const slug = (await params).slug
  return <div>My Post: {slug}</div>
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Amin Azad

79144764

Date: 2024-10-31 12:40:03
Score: 1
Natty:
Report link

I'm seeking help: WebLogic 12.2.1.4 won't start, and there is an error below. It worked with Java 1.8.0, but the tools (forms.fmx) didn't work, so I deleted everything and recreated it with Oracle_SSN_DLM_10240807.exe, Forms 12.2.1.19, and WebLogic 12.2.1.4 with Java 1.8.0_202. How can I find the error and which version of Java is compatible?

    at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:457)
    at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:452)
    at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:549)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:551)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:269)
    at oracle.jdbc.driver.T4CTTIoauthenticate.doOSESSKEY(T4CTTIoauthenticate.java:522)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:692)
    at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:924)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:58)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:760)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:575)
    at java.sql.DriverManager.getConnection(DriverManager.java:664)
    at java.sql.DriverManager.getConnection(DriverManager.java:208)
    at oracle.security.jps.internal.policystore.util.JpsDataManagerUtil.getDBConnection(JpsDataManagerUtil.java:405)
    ... 44 more

<okt 31, 2024 11:43:40,336 AM CET> <okt 31, 2024 11:43:40,337 AM CET> <okt 31, 2024 11:43:40,339 AM CET> Stopping Derby server... Derby server stopped.Vujic

vujic serbia, Novi Sad [email protected]

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Whitelisted phrase (-1): It worked
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: vujic

79144763

Date: 2024-10-31 12:40:03
Score: 5
Natty:
Report link

I tried to set data_security_mode but I still get the same error:

REQUEST: SingleClusterComputeMode(xxxxxxxxxxx) is not Shared or Single User Cluster. 
(requestId=xxxxxxxxx)

Cluster settings

Testing settings

Reasons:
  • RegEx Blacklisted phrase (1): I still get the same error
  • Low length (1):
  • Has code block (-0.5):
  • Me too answer (2.5): get the same error
  • Low reputation (1):
Posted by: Zivadin Milenkovic

79144756

Date: 2024-10-31 12:38:02
Score: 3.5
Natty:
Report link

The guide in LangChain - Parent-Document Retriever Deepdive with Custom PgVector Store (https://www.youtube.com/watch?v=wxRQe3hhFwU) describes a custom class based on BaseStorage that may also solve the problem with persistent docstore using pgVector instead of file storage

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: PAVEL REDKIN

79144755

Date: 2024-10-31 12:38:02
Score: 4
Natty: 4
Report link

Браузер использует кэш для загрузки старой версии swagger. Ctrl + Shift + R(Windows) - обновление страницы с очисткой кэша

Reasons:
  • Low length (1):
  • No code block (0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: user26954969

79144745

Date: 2024-10-31 12:35:00
Score: 5
Natty: 5
Report link

Cannot activate the 'Test Explorer UI' extension because it depends on the 'Test Adapter Converter' extension, which is not loaded. Would you like to reload the window to load the extension?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Cannot
  • Low reputation (1):
Posted by: MUHAMMAD SYAFIK 411221144

79144740

Date: 2024-10-31 12:33:00
Score: 3
Natty:
Report link

use onHighlightChange to trigger a custom function whenever an option is highlighted

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

79144726

Date: 2024-10-31 12:28:58
Score: 5
Natty:
Report link

You should use "Blanck()" not null enter image description here

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

79144723

Date: 2024-10-31 12:26:58
Score: 3
Natty:
Report link

Here was a middleware matcher missconfiguration

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

79144722

Date: 2024-10-31 12:26:57
Score: 4
Natty: 4.5
Report link

any update? i encounter the same problem in chinese fts with sqlite

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: 唐子玄

79144718

Date: 2024-10-31 12:26:57
Score: 4
Natty: 4
Report link

Apache Spark has changed to spark.catalog.cacheTable("someTable")

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

79144701

Date: 2024-10-31 12:23:56
Score: 3
Natty:
Report link

You could try ShellRoute, above this all routes that need access to the bloc. As far as i have tried, it works, but the redirect method can´t access it.

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

79144695

Date: 2024-10-31 12:21:55
Score: 3
Natty:
Report link

You are trying to call .then() on a function.  .then() can only be called on a promise: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then

Make sure then your login function returns a promise. (It now returns nothing if the try succeeds.)

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

79144678

Date: 2024-10-31 12:16:54
Score: 0.5
Natty:
Report link

Add {useNativeDriver: false} after ending square bracket then it will work.

        onScroll={Animated.event(  [
          {
            nativeEvent: {
              contentOffset: {
                x: scrollX,
              },
            },
          },
        ],{useNativeDriver: false}  )
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Hakan

79144671

Date: 2024-10-31 12:15:54
Score: 2.5
Natty:
Report link

In a command-line context, PHP sessions don't exist as they do in a web environment. Sessions are designed to manage multiple user sessions through HTTP requests, maintaining a unique state for each user.

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

79144658

Date: 2024-10-31 12:13:54
Score: 2.5
Natty:
Report link

I found the source of the problem. If anyone faces similar issues, I suggest seeing the source of the code ('sources' tab in your console) that is creating the problem and seeing what extension or library is injecting the code. In my case, it was actually Microsoft Editor Extension. I turned it off, and the warning was gone!

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

79144655

Date: 2024-10-31 12:12:53
Score: 3
Natty:
Report link

Sorry to use answers, but I can't comment so...

But have you tried uninstalling cairo and the others that are stopping you?

pip(3) uninstall cairo

And then afterward simply reinstall them?

Reasons:
  • Whitelisted phrase (-1): have you tried
  • RegEx Blacklisted phrase (1): can't comment
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Explants

79144652

Date: 2024-10-31 12:10:53
Score: 3.5
Natty:
Report link

In my case i had to restart the server after writing callbackURL inside my .env file

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

79144648

Date: 2024-10-31 12:10:53
Score: 1.5
Natty:
Report link

If you cannot or don't want to configure Keycloak you can also implement a customOidcUserService which allows you to fetch authority information from a protected resource before the custom authorities for the user get mapped. See https://docs.spring.io/spring-security/reference/servlet/oauth2/login/advanced.html#oauth2login-advanced-map-authorities-oauth2userservice

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

79144633

Date: 2024-10-31 12:06:52
Score: 2
Natty:
Report link

Thanks @Joan for help. Problem was that in Tomcat configuration enter image description here

I put path which was not accessible by application. After change to other path file was created and I don't see Access denied error

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Joan
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Michu93

79144631

Date: 2024-10-31 12:06:52
Score: 1
Natty:
Report link

Posting this as an answer as I don't have enough rep to comment.

I use a User-Agent Custom Header with a secret string (something like User-Agent:MySecretAgentString). Your Unity Client could add this header to all outgoing API calls, and your Server could filter out those that don't have it.

That being said, as @derHugo pointed out, outgoing packets could still be intercepted and the User-Agent string could be read. I only use the User-Agent to broadly understand where calls are coming from, and respond with platform-appropriate data if necessary. A sturdier solution would be using some sort of authentication token that validates the Client itself.

Reasons:
  • Blacklisted phrase (1): to comment
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Marco Vincenzi

79144610

Date: 2024-10-31 11:58:49
Score: 1.5
Natty:
Report link

You can get them using the AppStoreConnect APIs here: https://developer.apple.com/documentation/appstoreconnectapi/list_all_customer_reviews_for_an_app

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

79144595

Date: 2024-10-31 11:53:48
Score: 2.5
Natty:
Report link

I use this, just for your reference

=SUBSTITUTE(SUBSTITUTE(A1,".",","),",",".",LEN(A1)-LEN(SUBSTITUTE(A1,".",""))+1)

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