79431603

Date: 2025-02-12 00:17:43
Score: 1
Natty:
Report link

Looks like in addAllDifferent you are not allowed to add linear expressions, even though signature of the function allows it.

Source: https://github.com/google/or-tools/blob/6fc19304dfad3f5105da74c898a2aa0f8b450120/ortools/sat/cp_model_checker.cc#L279

So you have to introduce additional variables, mark them as equal to those expressions, and then use these for constraints :(

Posting the explicit code, even though you can simplify this by writing your own addAllDifferent

fun main() {
    Loader.loadNativeLibraries()

    val model = CpModel()

    val x = model.newIntVar(1, 100, "x")
    val y = model.newIntVar(1, 100, "y")
    val z = model.newIntVar(1, 100, "z")
    val a11_var = model.newIntVar(1, 100, "a11")
    val a12_var = model.newIntVar(1, 100, "a12")
    val a13_var = model.newIntVar(1, 100, "a13")
    val a21_var = model.newIntVar(1, 100, "a21")
    val a23_var = model.newIntVar(1, 100, "a23")
    val a31_var = model.newIntVar(1, 100, "a31")
    val a32_var = model.newIntVar(1, 100, "a32")
    val a33_var = model.newIntVar(1, 100, "a33")

    val a11 = LinearExpr.sum(arrayOf(x, y))
    val a12 = LinearExpr.weightedSum(arrayOf(x, y, z), longArrayOf(1, -1, -1))
    val a13 = LinearExpr.sum(arrayOf(x, z))
    val a21 = LinearExpr.weightedSum(arrayOf(x, y, z), longArrayOf(1, -1, 1))
    val a23 = LinearExpr.weightedSum(arrayOf(x, y, z), longArrayOf(1, 1, -1))
    val a31 = LinearExpr.weightedSum(arrayOf(x, z), longArrayOf(1, -1))
    val a32 = LinearExpr.sum(arrayOf(x, y, z))
    val a33 = LinearExpr.weightedSum(arrayOf(x, y), longArrayOf(1, -1))

    model.addEquality(a11_var, a11)
    model.addEquality(a12_var, a12)
    model.addEquality(a13_var, a13)
    model.addEquality(a21_var, a21)
    model.addEquality(a23_var, a23)
    model.addEquality(a31_var, a31)
    model.addEquality(a32_var, a32)
    model.addEquality(a33_var, a33)

    val allVars = arrayOf(
        a11_var, a12_var, a13_var,
        a21_var, x, a23_var,
        a31_var, a32_var, a33_var)

    model.addAllDifferent(allVars)

    model.minimize(a32)

    val solver = CpSolver()
    val status = solver.solve(model)

    if (status == CpSolverStatus.OPTIMAL) {
        val xVal = solver.value(x)
        val yVal = solver.value(y)
        val zVal = solver.value(z)
        println("(x, y, z)=($xVal, $yVal, $zVal)")

        val a11Val = solver.value(a11_var)
        val a12Val = solver.value(a12_var)
        val a13Val = solver.value(a13_var)
        val a21Val = solver.value(a21_var)
        val a23Val = solver.value(a23_var)
        val a31Val = solver.value(a31_var)
        val a32Val = solver.value(a32_var)
        val a33Val = solver.value(a33_var)
        println("$a11Val \t $a12Val \t $a13Val")
        println("$a21Val \t $xVal \t $a23Val")
        println("$a31Val \t $a32Val \t $a33Val")
    } else {
        println(status)
        println(solver.solutionInfo)
    }

}

Output

(x, y, z)=(5, 1, 3)
6    1   8
7    5   3
2    9   4
Reasons:
  • Blacklisted phrase (1): :(
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Anita

79431602

Date: 2025-02-12 00:16:43
Score: 2.5
Natty:
Report link

Format the cell as "Custom", choosing 0 from the drop down menu, then click beside the 0 in the Type field and add three zeros. Click ok.

You will now have a 4 digit number. If you enter 1 in this cell, 0001 will appear.

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

79431592

Date: 2025-02-12 00:05:41
Score: 1
Natty:
Report link

It's a little contrived, but what we do is to utilize the '@Library' line at the start of some pipelines to point to a known 'dead' commit. It should load as a valid library as long as it has a 'vars' folder in there (but can otherwise be empty).

This of course presumes that you have the ability to maintain a 'feature branch' in the offending library repo, which might be a bridge too far for the admins.

I will throw out there that my preferred approach would be to work with the company/admins to improve the library for all. Perhaps only a small subset of the utilities are truly 'global' for implicit load and the rest can be broken out to one or more explicit load libraries, for instance.

I'll also say here on the topic of long load times: I did stumble upon a newbie mistake I made here where I was trying to cram too many different types of things in one repo. This resulted in me utilizing the convenient 'library is in subfolder' option in the library's configuration to (I thought) ignore the rest of the folders in the repo containing the library. Turns out in fact this 'subfolder' library configuration ended up cloning the whole repository every time it was loaded :(.

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

79431588

Date: 2025-02-12 00:02:41
Score: 2.5
Natty:
Report link

cube /[follow]:/mouse] counter.per 10/fps/sqare100.fpr/50fpr.:set.hollow]>send.google/cm:launch/when/searched/: speed/;runner.com send info to/[jadedpossum66.gmail.com}//tab'.comthrough/tabenter link description here

Reasons:
  • Blacklisted phrase (0.5): enter link description here
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Abel Hendrix

79431587

Date: 2025-02-12 00:02:40
Score: 4.5
Natty: 4
Report link

How to make top level into another window

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: Usain Bolt

79431583

Date: 2025-02-11 23:58:39
Score: 2.5
Natty:
Report link

instalei o poetry sem problemas e agora qualquer comando que eu dou ele aparece essa mensagem

Could not parse version constraint: poetry

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: diário da duda

79431579

Date: 2025-02-11 23:53:38
Score: 3.5
Natty:
Report link

For those who have a similar problem that I have;

I recently added a new column (Col_A) to a table and then a new index using the new column and a previously existing column ( indx=Col_A,Col_B).

I started to get "No more data to read from socket error" when I try to select a third column directly or via group function while using values corresponding with the new index:

select Col_C from [table] where Col_A= [value1] and Col_B=[value2]

select distinct Col_C from [table] where Col_A= [value1] and Col_B=[value2]

select count(*) from [table] where Col_A= [value1] and Col_B=[value2] and Col_C =[value3]

All these variations caused the aforementioned error and forces me to reconnect my editor to the oracle db.

it was fixed when I added Col_C into the index or created a new index which includes Col_A,Col_B and Col_C.

So this is not a definitive solution but an example that indicates a problem with index creation/update process of the oracle db and the effects it might have on constructing select sentences. This might provide your DB Admin a more precise starting point in solving the issue.

I hope this might be of help to someone who is having a similar problem as I am. Cheers.

Reasons:
  • Blacklisted phrase (1): Cheers
  • Long answer (-1):
  • No code block (0.5):
  • Me too answer (2.5): have a similar problem
  • Me too answer (0): having a similar problem
  • Low reputation (0.5):
Posted by: AntiqTech

79431577

Date: 2025-02-11 23:53:38
Score: 2.5
Natty:
Report link

This happened to me one time when I had to migrate to a new server my Django project, and forgot to collect the "static" files.

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

79431567

Date: 2025-02-11 23:46:37
Score: 3
Natty:
Report link

Solved by registering these services in both Client's and Server's Program.cs.

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

79431558

Date: 2025-02-11 23:41:36
Score: 2
Natty:
Report link

I have recently implemented this feature by following the steps outlined below.

Please ensure that the following permissions are enabled in your B2C application.

1- User-PasswordProfile.ReadWrite.All

2- UserAuthenticationMethod.ReadWrite.All

Generate a token by making a request to the endpoint provided below in order to interact with the Graph API. Graph API Token Endpoint

Call the endpoint provided below to update the user data. Password Reset Endpoint with headers

The request body should include the new password in the "Password" field. Password Reset Endpoints with body

For additional guidance, please refer to the resources provided below.

https://learn.microsoft.com/en-us/graph/api/user-update?view=graph-rest-1.0&tabs=http

https://learn.microsoft.com/en-us/graph/api/resources/passwordprofile?view=graph-rest-1.0

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Muhammad Zeeshan

79431548

Date: 2025-02-11 23:30:34
Score: 2
Natty:
Report link

Check: https://pgmooncake.com/

is an OSS postgres extension that implements native columnstore in postgres, targeting advanced analytics, with performance on par with specialized databases like clickhouse.

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

79431541

Date: 2025-02-11 23:23:33
Score: 1
Natty:
Report link

May be late but an answer, for anyone else that end up here.

The value is in microseconds and the year y shifted -369 years.

Your original value -> 13258124587568466
-> 2390-02-18 12:23:07.568466
-> 2021-02-18 12:23:07.568466 <- ¿your actual datetime?

    timestamp_microseconds = 13383785473626492
    timestamp_seconds = timestamp_microseconds / 1_000_000
    var date = new Date(0);
    date.setUTCSeconds(timestamp_seconds);
    console.log(date.toString());

    // 369 - yr gap 
    date_delta_years = 369
    date.setFullYear(date.getFullYear()-date_delta_years)
    console.log(date.toString());

    // 2394-02-11 22:11:13.626492
    // 2025-02-11 22:11:13.626492 <- When I created the cookie log to check.

    // Your original value -> 13258124587568466
    // 2390-02-18 12:23:07.568466
    // 2021-02-18 12:23:07.568466 <- Probably your actual datetime.

Reasons:
  • Blacklisted phrase (1): ¿
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user29605080

79431522

Date: 2025-02-11 23:09:30
Score: 1.5
Natty:
Report link

Is it possible? Yes. However, putting aside the fact that copying a binary poses a security risk, you should not be storing anything inside the /tmp/ folder. As the name suggests, it is a temporary folder and is not persistent storage. It gets cleared on a reboot

So, the potential workarounds are:

  1. Containerize the function app. You can create a custom container and deploy your function inside that, giving you full control over the runtime environment

  2. Continue to copy the binary to /tmp/

  3. Use a premium or dedicated plan instead of consumption plan. The filesystem for these plans are writable and persistent.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is it
  • Low reputation (0.5):
Posted by: Monkey D Luffy

79431517

Date: 2025-02-11 23:04:29
Score: 2
Natty:
Report link

I fixed the problem by removing the volume app_dist!

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sun Water

79431514

Date: 2025-02-11 23:02:29
Score: 0.5
Natty:
Report link

Updated @Alon's answer to handle nested modals:

from typing import Any, Type, Optional
from enum import Enum

from pydantic import BaseModel, Field, create_model


def json_schema_to_base_model(schema: dict[str, Any]) -> Type[BaseModel]:
    type_mapping: dict[str, type] = {
        "string": str,
        "integer": int,
        "number": float,
        "boolean": bool,
        "array": list,
        "object": dict,
    }

    properties = schema.get("properties", {})
    required_fields = schema.get("required", [])
    model_fields = {}

    def process_field(field_name: str, field_props: dict[str, Any]) -> tuple:
        """Recursively processes a field and returns its type and Field instance."""
        json_type = field_props.get("type", "string")
        enum_values = field_props.get("enum")

        # Handle Enums
        if enum_values:
            enum_name: str = f"{field_name.capitalize()}Enum"
            field_type = Enum(enum_name, {v: v for v in enum_values})
        # Handle Nested Objects
        elif json_type == "object" and "properties" in field_props:
            field_type = json_schema_to_base_model(
                field_props
            )  # Recursively create submodel
        # Handle Arrays with Nested Objects
        elif json_type == "array" and "items" in field_props:
            item_props = field_props["items"]
            if item_props.get("type") == "object":
                item_type: type[BaseModel] = json_schema_to_base_model(item_props)
            else:
                item_type: type = type_mapping.get(item_props.get("type"), Any)
            field_type = list[item_type]
        else:
            field_type = type_mapping.get(json_type, Any)

        # Handle default values and optionality
        default_value = field_props.get("default", ...)
        nullable = field_props.get("nullable", False)
        description = field_props.get("title", "")

        if nullable:
            field_type = Optional[field_type]

        if field_name not in required_fields:
            default_value = field_props.get("default", None)

        return field_type, Field(default_value, description=description)

    # Process each field
    for field_name, field_props in properties.items():
        model_fields[field_name] = process_field(field_name, field_props)

    return create_model(schema.get("title", "DynamicModel"), **model_fields)

Example Schema

schema = {
    "title": "User",
    "type": "object",
    "properties": {
        "name": {"type": "string"},
        "age": {"type": "integer"},
        "is_active": {"type": "boolean"},
        "address": {
            "type": "object",
            "properties": {
                "street": {"type": "string"},
                "city": {"type": "string"},
                "zipcode": {"type": "integer"},
            },
        },
        "roles": {
            "type": "array",
            "items": {
                "type": "string",
                "enum": ["admin", "user", "guest"]
            }
        }
    },
    "required": ["name", "age"]
}

Generate the Pydantic model

DynamicModel = json_schema_to_base_model(schema)

Example usage

print(DynamicModel.schema_json(indent=2))
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Alon's
  • Low reputation (1):
Posted by: Corey McCrea

79431502

Date: 2025-02-11 22:53:27
Score: 1
Natty:
Report link

Yes! You can use the API function (in Python) gmsh.model.getClosestPoint(dim, tag, coord)

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

79431497

Date: 2025-02-11 22:51:26
Score: 11
Natty: 8.5
Report link

What if I want 2.3913 -> 2.5

4.6667 -> 5.0

2.11 -> 2.5

0.01 - > 0.5

Can someone help me?

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Can someone help me
  • RegEx Blacklisted phrase (1): I want
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Starts with a question (0.5): What if I
  • Low reputation (1):
Posted by: Bala

79431491

Date: 2025-02-11 22:48:25
Score: 0.5
Natty:
Report link

The accepted answer helps the OP in a specific case.
To answer a question defined in title and tags, that is to find a last modified date of a file by its URI using JavaScript, we can use an example from MDN:

function getHeaderTime() {
  console.log(this.getResponseHeader("Last-Modified")); // A valid GMTString date or null
}

const req = new XMLHttpRequest();
req.open(
  "HEAD", // use HEAD when you only need the headers
  "your-page.html",
);
req.onload = getHeaderTime;
req.send();

https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest#get_last_modified_date

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

79431479

Date: 2025-02-11 22:40:24
Score: 1
Natty:
Report link

https://learn.microsoft.com/en-us/visualstudio/ide/how-to-save-and-open-files-with-encoding?view=vs-2022#set-the-default-encoding

Starting in Visual Studio 2022 version 17.13 Preview 1, you can set the default encoding for saving files.

To set the default, choose Tools > Options > Environment, Documents. Next, select Save files with the following encoding, and then select the encoding you want as the default.

visual studio options window - showing save files with a specific encoding setting

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

79431472

Date: 2025-02-11 22:35:23
Score: 3.5
Natty:
Report link

This is resolved. Apparently this is a Microsoft limitation where the SQL Server certificate is not trusted with On-Premises Data Gateways: https://learn.microsoft.com/en-us/power-query/connectors/sql-server#limitations

I added my server to the "SqlTrustedServers" configuration in the Gateway config file and it resolved my issue. Gateway Config

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

79431468

Date: 2025-02-11 22:31:23
Score: 1
Natty:
Report link

I was stuck in this situation and found the following solution ..

  1. In git terminal change the case of the file locally using the 'mv' command

    mv MYfileNAME.abc MyFileName.abc

  2. Commit the change but don't push

    git commit -m "Changed case of file MyFileName.abc"

  3. Pull again

    git pull

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

79431461

Date: 2025-02-11 22:27:22
Score: 3.5
Natty:
Report link

I think FireDucks is worth giving a consideration for large datasets. Please take a look at this blog.

Reasons:
  • Blacklisted phrase (1): this blog
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Gloryson

79431446

Date: 2025-02-11 22:15:20
Score: 1
Natty:
Report link

For anyone else wondering, here is the Tools > References library you need to add to use WinHTTP in VBA.

Microsoft WinHTTP Services, version 5.1 
C:\Windows\system32\winhttpcom.dll
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jedi-X

79431442

Date: 2025-02-11 22:12:19
Score: 1.5
Natty:
Report link

After making sure that I have correct roles for my account, instead of gcloud auth login, I needed to do:

gcloud auth application-default login
Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Melih

79431436

Date: 2025-02-11 22:10:18
Score: 1.5
Natty:
Report link

After making sure that I have correct roles for my account, instead of gcloud auth login, I needed to do:

gcloud auth application-default login
Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Melih

79431427

Date: 2025-02-11 22:05:17
Score: 3.5
Natty:
Report link

Trigger the event emitter in AfterViewInit().

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

79431419

Date: 2025-02-11 22:00:16
Score: 2
Natty:
Report link

Thanks to Gerry Schmitz I was able to load content outside of the dialog's content area using scaling.

double size = 1.05;

ScaleTransform adjustsize = new ScaleTransform
{
    ScaleX = size,
    ScaleY = size,
};

scrollViewer.RenderTransform = adjustsize;
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Stack Overflow User

79431417

Date: 2025-02-11 21:59:16
Score: 1.5
Natty:
Report link

I had a similar problem when using ShadowJar. What fixed it for me was adding the code below to my build.gradle

shadowJar {
        mergeServiceFiles()
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Roberto Morais Jr.

79431413

Date: 2025-02-11 21:57:15
Score: 0.5
Natty:
Report link

As of February 2025, using Python 3.13.2, I have a python implementation of a combination subset of C# and Java's StringBuilder classes in a GitHub repo that implements some but not all of those language's StringBuilder APIs.

Study the main program and/or the README to see how it works.

The class uses an underlying python list[str].

Reasons:
  • No code block (0.5):
Posted by: IntelligenceGuidedByExperience

79431396

Date: 2025-02-11 21:49:14
Score: 1
Natty:
Report link

I found this on the internet (Yes, I know it's Java but I think it's the same concept that can be applied with C# too):

"Integers are numbers that have no fractional part. In Java, integers are represented in a 32-bit space. Furthermore, they are represented in 2's complement binary form, which means that one bit of these 32 is a sign bit. So, there are 231-1 possible values. So, there is no integer greater than the number 231-1 in Java."

Link: doc Java (Sorry I found a link in Italian)

So according to this concept, when you try to multiply by -1, the result should be 2147483648, but this value cannot be represented because it exceeds the maximum allowed value, consequently it is ignored leaving the usual result.

Finally I found for C# Math.negateExact();

it is practically like Java:

Link: doc Microsoft

I hope I helped you.

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

79431390

Date: 2025-02-11 21:46:13
Score: 1.5
Natty:
Report link

No, it is not possible for the time being to use a custom domain. The only alternative is to use a url shortening service, such as Bitly or Rebrandly, which allow custom domains, then you can embed the original Google Form URL.

User will see the custom-domain url and then be redirected to the original Google url upon clicking.

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

79431389

Date: 2025-02-11 21:46:13
Score: 1
Natty:
Report link

The answer is:

def filter_sort_explicit(df, c, l):
    """
    a function that filters a [df] on [c]olumn by explicitly specificying the order of the values (in that column) in a [list]
    """
    return df.filter(pl.col(c).is_in(l)).sort(pl.col(c).cast(pl.Enum(l)))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: likethevegetable

79431374

Date: 2025-02-11 21:40:12
Score: 1
Natty:
Report link

Please make sure the element is visible.

In Facebook\WebDriver the 'see' command actually checks visibility.

You may want to scroll to the element first.

$I->scrollTo($yourElementSelector);

Upside to the PhpBrowser is that it is quick.

On the other hand the Facebook webdriver support JavaScript.

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

79431373

Date: 2025-02-11 21:40:12
Score: 1
Natty:
Report link

You may have to make multiple requests to textract to get the entire result. The response from textract may have a NextToken entry. You have to use your original job_id and the NextToken to get the next set of results. And you need to keep repeating that until there is no NextToken.

Have a look at the getJobResults function here:

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

79431372

Date: 2025-02-11 21:39:11
Score: 0.5
Natty:
Report link
this might the answer:

    WITH json_data AS (
    SELECT PARSE_JSON('{
        "docId": 123,
        "version": 1,
        "docName": "Test doc",
        "attributtes": [
            {"key": "eff_date", "value": ["22-09-2024", "12-08-2022"]},
            {"key": "renew_flag", "value": ["Y"]}
        ],
        "created_by": "CCVVGG"
    }') AS data
)
SELECT 
    data:docId::INT AS docId,
    data:version::INT AS version,
    data:docName::STRING AS docName,
    data:created_by::STRING AS created_by,
    eff_dates.value::STRING AS eff_date,  -- Flatten eff_date values
    renew_flag.value::STRING AS renew_flag
FROM json_data,
LATERAL FLATTEN(input => data:attributtes) attr
LEFT JOIN LATERAL FLATTEN(input => attr.value:value) eff_dates ON attr.value:key::STRING = 'eff_date'
LEFT JOIN LATERAL FLATTEN(input => attr.value:value) renew_flag ON attr.value:key::STRING = 'renew_flag'
WHERE attr.value:key::STRING IN ('eff_date', 'renew_flag');
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Roshan Sharma

79431371

Date: 2025-02-11 21:39:11
Score: 1
Natty:
Report link

This is latest recommended approach from GCP docs here: https://cloud.google.com/run/docs/authenticating/public#terraform

resource "google_cloud_run_service_iam_binding" "default" {
  location = google_cloud_run_v2_service.default.location
  service  = google_cloud_run_v2_service.default.name
  role     = "roles/run.invoker"
  members = [
    "allUsers"
  ]
}
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: stefan2718

79431361

Date: 2025-02-11 21:32:09
Score: 4
Natty: 5
Report link

Thank you! Just what I was looking for in trying to create a hierarchy check

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

79431352

Date: 2025-02-11 21:30:08
Score: 2.5
Natty:
Report link

In my case I had the x-amazon-apigateway-integration object sitting outside the method object. This doesn't break the OpenAPI spec but does break the CDK deployment. Simple typo.... a few days lost.

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

79431348

Date: 2025-02-11 21:28:07
Score: 4
Natty: 6.5
Report link

!curl -fsSL https://ollama.com/install.sh | sh works for me, thanks!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Whitelisted phrase (-1): works for me
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user616701

79431346

Date: 2025-02-11 21:27:06
Score: 5.5
Natty:
Report link

I have the same issue and got fixed after install XQuartz from https://www.xquartz.org. After installation, restart your Mac. And then

install.packages("tcltk")

install.packages("plot3D")

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

79431345

Date: 2025-02-11 21:27:06
Score: 1
Natty:
Report link

There is a prosibility to let the system throw an exception in this case:

checked(int.MinValue * -1)

will throw the exception
instead of:

unchecked(int.MinValue * -1)

will give the result of -2147483648 and no exception.
See also the link to learn.microsoft given in the answer of Rand-Random

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

79431342

Date: 2025-02-11 21:26:06
Score: 1
Natty:
Report link

By default the url that gitlab generates is on http protocol you need to change that to https and it should work.

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

79431340

Date: 2025-02-11 21:24:06
Score: 0.5
Natty:
Report link

This may not be the solution for everyone but the answer comes down to how cross compilation and linking works. What I am attempting to do here is create a static binary, there are two commands that can be used:

RUSTFLAGS="-Ctarget-feature=-crt-static" - dynamic linking of the c runtime.

RUSTFLAGS="-Ctarget-feature=+crt-static" - fully static compilation of C runtime.

There is also a separate issue here, the use of openssl-dev - this requires glibc to compile by default, you need to set this up to be compiled statically. I haven't got to the bottom of this yet but the three solutions I have found (2 work, 1 I haven't tried yet).

  1. Copy all certs and openssl object files to the scratch container - works.
  2. Compile and use static file in openssl OS distro - not tried.
  3. Use Cargo vendored openssl implementation

I am planning on writing a medium article where I added all my problems and findings, just think it might help others when I post this.

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

79431334

Date: 2025-02-11 21:21:04
Score: 5
Natty:
Report link

check out this website

enter link description here

Reasons:
  • Blacklisted phrase (0.5): enter link description here
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ifiokabasi Emmanuel

79431331

Date: 2025-02-11 21:20:04
Score: 1
Natty:
Report link

I had exactly the same error when trying to install cocoapods using the official instructions.
Trying to install ruby via brew wasn't much use either. What worked for me was brew install cocoapods

Reasons:
  • Blacklisted phrase (0.5): exactly the same error
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: IanF

79431323

Date: 2025-02-11 21:16:03
Score: 2.5
Natty:
Report link

I think this has to do with children margin and padding, make sure to specify margins and paddings, there is a great extension to show you borders so that you can see which one is pushing others or transforming them, the tool name : CSS outline you can fine i in google extensions.

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

79431312

Date: 2025-02-11 21:09:02
Score: 1.5
Natty:
Report link

With plm 2.6-5, both (balanced and unbalanced data) work on my end.

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

79431302

Date: 2025-02-11 21:07:01
Score: 0.5
Natty:
Report link

The implementation that Spring builds upon doesn't expose receiving pings to user code and just automatically responds with a pong when receiving a ping.
It's the same as this question for JSR 356: Receiving pings with Java EE Websocket API

However... looking at this Chrome bug, it seems that browsers don't necessarily send ping requests.
So you could send pings from the server, implement something equivalent in JS or just rely on the client reconnecting when the connection drops.

There's some discussion here: Sending websocket ping/pong frame from browser

Reasons:
  • No code block (0.5):
Posted by: scrhartley

79431301

Date: 2025-02-11 21:07:01
Score: 2.5
Natty:
Report link

Update - Mongoose Performance Issue and Fix

After upgrading Mongoose from version 6.12.9 to 8.10.0, queries executed inside AWS Lambda using the Serverless Framework became four times slower. However, the same queries remained fast when executed outside the framework (e.g., locally, in a manually deployed Lambda, or using the native MongoDB driver).

Extensive debugging revealed that the issue was not caused by Mongoose itself but rather by how it was bundled inside the Lambda function when using esbuild. Moving Mongoose to an AWS Lambda Layer restored optimal query performance. The fix was to explicitly exclude mongoose and mongodb in the esbuild configuration (exclude: ["mongoose", "mongodb"]). This ensured that the Lambda function used the version from the Lambda Layer instead of bundling its own copy, which resolved the performance issue.

Possible Cause

My theory is that this might be due to dynamic imports within the Mongoose module, which were affected by esbuild's tree shaking when packaging the Lambda function. Could this be the case? If so, is there a way to overcome this so Mongoose doese not need to be moved to an AWS Lambda Layer?

Alternative Solutions Tried

Upgrading esbuild and serverless-esbuild and including mongoose and mongodb in the esbuild bundle did not resolve the issue:

"esbuild": "^0.24.2"

"serverless-esbuild": "^1.54.6"

So far now, if anyone is facing this issue, simply move Mongoose to an AWS Lambda Layer.

I will continue to update if Mongoose replies with a fix.

Reasons:
  • Blacklisted phrase (1): is there a way
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: totomers

79431300

Date: 2025-02-11 21:06:01
Score: 2
Natty:
Report link

You can use "injectedJavaScript" prop available which would allow you to run block of javascript to manipulate website.

https://github.com/react-native-webview/react-native-webview/blob/master/docs/Guide.md#communicating-between-js-and-native

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

79431295

Date: 2025-02-11 21:04:00
Score: 11.5
Natty: 8.5
Report link

@adam Were you able to find a solution for this?

Reasons:
  • RegEx Blacklisted phrase (1): Were you able to find a solution
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @adam
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Normall

79431289

Date: 2025-02-11 20:54:58
Score: 2
Natty:
Report link

My use of quoting quotes was causing the issue. If I change

test='"x"'

to instead be

test='x'

Then the argument accepts the variable.

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

79431288

Date: 2025-02-11 20:54:58
Score: 1.5
Natty:
Report link

Is SELECT ... INTO #temptable the only fast operation in SQL Server?

No.

Is there a way to make the UPDATE as fast as SELECT INTO?

No.

Reasons:
  • Blacklisted phrase (1): Is there a way
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: T N

79431277

Date: 2025-02-11 20:48:56
Score: 3.5
Natty:
Report link

Thats it u need add Databricks as application exemple

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

79431273

Date: 2025-02-11 20:47:56
Score: 1.5
Natty:
Report link

I had a similar issue and was able to resolve it by checking the network configuration in Docker-Compose. Make sure Neo4j is running in the correct network and accessible from other containers.

A useful approach is to set NEO4J_URI as bolt://neo4j:7687 if “neo4j” is the service name in your docker-compose.yml. Also, checking the container logs (docker logs ) can provide more insights into potential errors.

I documented a similar case here: https://ollama.com/IBLAG/Certification

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

79431269

Date: 2025-02-11 20:45:55
Score: 3
Natty:
Report link

For those of you having the same issue with "node:fs", here is a next.config.(m)js that works :

const nextConfig = {
  // Your config
  webpack: (config, { nextRuntime }) => {
    if (nextRuntime !== "nodejs") {
      const { IgnorePlugin } = require("webpack");
      const ignoreNode = new IgnorePlugin({ resourceRegExp: /node:.*/ });
      config.plugins.push(ignoreNode);
    }
    return config;
  },
};

module.exports = nextConfig;
Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): having the same issue
  • Low reputation (1):
Posted by: Thomas Heniart

79431263

Date: 2025-02-11 20:43:54
Score: 5
Natty:
Report link

On Similar note, in a mat-container if we have a menu and on click anywhere inside the menu the menu closes. how to address such menu's?

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

79431259

Date: 2025-02-11 20:43:54
Score: 1
Natty:
Report link
Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Lalit Patel

79431258

Date: 2025-02-11 20:41:53
Score: 1
Natty:
Report link

Also, the writers of all these ARM documents are experts, so they occasionally don't take the time to define and explain the most simple basic things. It's part of the human condition that once you become an expert at something, you forget what it was like to be a novice, so you can't remember that novices need to know the "novice" things first. Expert teachers think differently; they remember what it was/is like to "not know," so they explain things from the ground up.

I ran into the same problem reading the "ARM® Cortex®-R Series Version: 1.0 Programmer’s Guide." It's crazy, but yeah, they don't explain these terms either in that document.

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

79431249

Date: 2025-02-11 20:36:52
Score: 1.5
Natty:
Report link

each service should have its own dockerfile. This could be contributing to or responsible for the problem. The command "npm start" never runs because that CMD directive is overwritten by the final CMD directive, so it never runs. So although it all builds successfully, both containers in this configuration are running your dotnet application and the angular service has port 4200 exposed but nothing is running on that port in that container.

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

79431248

Date: 2025-02-11 20:36:52
Score: 1
Natty:
Report link

You can also add your ajax action name in the filter "wcml_multi_currency_ajax_actions".

add_filter('wcml_multi_currency_ajax_actions', function($actions) {
    $actions[] = 'get_wc_products';
     return $actions;
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Iván Cuella

79431246

Date: 2025-02-11 20:33:52
Score: 2.5
Natty:
Report link

When you kill the app, Xcode will disconnect from your app and stop catching logs, performances data and anything. Even you reopen the app from your phone or simulator that won’t reconnect to Xcode. The only way to reconnect to your Xcode is rebuild and run the app again(cmd + r). But the lifecycle also restarts.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: Tyler

79431245

Date: 2025-02-11 20:32:51
Score: 2
Natty:
Report link

So I reached out to PayPal and they are performing maintenance on their servers. No concerns from them about it being an old system, no suggestions that I should upgrade. So completely on their end and the upgrades should take a few weeks then back to normal. Also provided an alternate IP to access that would not have a problem. (and it works perfectly)

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

79431235

Date: 2025-02-11 20:30:51
Score: 0.5
Natty:
Report link
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Lalit Patel

79431228

Date: 2025-02-11 20:28:49
Score: 4
Natty: 4
Report link

Check here : https://cloud.google.com/docs/authentication/set-up-adc-local-dev-environment it resolved my local issue.

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

79431226

Date: 2025-02-11 20:27:48
Score: 1
Natty:
Report link

I found out the issue was adding the big block of middleware to the bootstrap/app.php file. I think a lot of them are just added by default now. I did have to added my own middleware like this though and everything worked like usual again

        $middleware->api(append: [
            'consumer-login' => \App\Http\Middleware\CanFrontendLogin::class,
            'admin-login' => \App\Http\Middleware\CanAdminLogin::class
        ]);
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: jordan dolan

79431217

Date: 2025-02-11 20:17:46
Score: 2.5
Natty:
Report link

Normally when an app with vite goes blank, it means there's an error on the client side,look for the console on the browser! i can't see any errors on your snippets, it might be inside other components!

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

79431210

Date: 2025-02-11 20:14:46
Score: 1
Natty:
Report link

Deleting the config file

.spyder-py3

From the system and restarting Spyder worked for me. I did try restarting kernel but again it kept looping around with IOStream.flush timeout error again.

if its mac this file should be in ~/Users/user/.config/.spyder-py3 or just as ~/Users/user/.spyder-py3

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

79431209

Date: 2025-02-11 20:13:45
Score: 2
Natty:
Report link

I added rabbitmq.conf file with these configs:

max_message_size = 536870912
frame_max = 536870912

and it can now accept larger messages.

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

79431207

Date: 2025-02-11 20:11:45
Score: 3
Natty:
Report link

You can download all changesets from planet.osm.org. The file https://planet.openstreetmap.org/planet/changesets-latest.osm.bz2 is updated once a week, then you can filter the changeset using the osmium-tool, e.g. https://github.com/osmcode/osmium-tool/blob/master/man/osmium-changeset-filter.md

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Timothy Dalton

79431206

Date: 2025-02-11 20:11:45
Score: 3
Natty:
Report link

just reply the first template message you sent. Then you're able to send other message types.

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

79431202

Date: 2025-02-11 20:09:44
Score: 4.5
Natty:
Report link

@s-mabdurrazak I followed this approach, but since i'm using officer to create a docx, it seems it's not working as expected. I ended up with an htm filem I ignore the reasons

Reasons:
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @s-mabdurrazak
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Mikael

79431200

Date: 2025-02-11 20:08:43
Score: 4.5
Natty: 4
Report link

I had this problem too, did you manage to find out more details about it?

Public Sub save_book()
    ' fasctinating.. cannot use .protect methods when
    ' using thisworkbook.save
    Application.SendKeys "^s", True
    DoEvents
End Sub

The above code will press keyboard short-cut CTRL+S. DoEvents allows the operating system to recognise the save before moving to the next part of your VBA code.

Not sure if excel allows you to change keyboard short-cuts though!

Reasons:
  • RegEx Blacklisted phrase (3): did you manage to find out
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Nathan Bachetti

79431193

Date: 2025-02-11 20:07:43
Score: 3
Natty:
Report link

What helped me the most debugging this was to enable git tracing

in cmd line set GIT_TRACE=1

in powershell or pwsh $env:GIT-TRACE=1

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Starts with a question (0.5): What help
  • Low reputation (1):
Posted by: TheBigBear

79431186

Date: 2025-02-11 20:05:42
Score: 1
Natty:
Report link

quote from https://learn.microsoft.com/en-us/ef/core/performance/advanced-performance-topics?tabs=with-di%2Cexpression-api-with-constant

When EF receives a LINQ query tree for execution, it must first "compile" that tree, e.g. produce SQL from it. Because this task is a heavy process, EF caches queries by the query tree shape, so that queries with the same structure reuse internally-cached compilation outputs. This caching ensures that executing the same LINQ query multiple times is very fast, even if parameter values differ.

So, in short, yes.

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

79431184

Date: 2025-02-11 20:04:42
Score: 1
Natty:
Report link

I was able to fix this by correcting the file extension on my favicon link. I had favicon.svg in /static, but my app.html still had

<link rel="icon" href="/%sveltekit.assets%/favicon.png" />
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dave Nash

79431175

Date: 2025-02-11 19:56:40
Score: 2
Natty:
Report link

recoil.js - Uncaught TypeError: Cannot destructure property 'ReactCurrentDispatcher' of 'import_react.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' as it is undefined. at CountRenderer (App.jsx:857:17) CountRenderer @ App.jsx:857

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

79431172

Date: 2025-02-11 19:54:40
Score: 2
Natty:
Report link

curl --location ${OAUTH_URL} ${CURL_EXTRA_PARAMS}

Please test with echo $CURL_EXTRA_PARAMS in the script to see what the contents of the var are

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

79431169

Date: 2025-02-11 19:53:39
Score: 2
Natty:
Report link

Use this command to download chrome in your terminal

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

after the file is downloaded double click on the downloaded package it will be redirect you to app center of your Ubuntu install it. it will be saved in user/bin

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Prajna S Shetty

79431162

Date: 2025-02-11 19:48:39
Score: 3.5
Natty:
Report link

A warm up solution like below can be used to warmup the gRPC Services.

https://github.com/ExpediaGroup/mittens

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

79431148

Date: 2025-02-11 19:38:36
Score: 0.5
Natty:
Report link

I had to do something insane to find a work around. We were initializing the kendo drop down list in asp/razor and not with javascript/jquery. I couldn't find an equivalent for:

valuePrimitive: true

So, i instead converted all null values in the result set for the field in question to spaces and that worked:

var result = _dbContext.EsFleetAuto.Where(es => es.FkSurveyId == SurveyId).OrderBy(x => x.LicensePlate);

foreach (var item in result)
{
    if (string.IsNullOrEmpty(item.AutoType))
        item.AutoType = "";
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Brian

79431147

Date: 2025-02-11 19:37:36
Score: 1.5
Natty:
Report link

I was able to install the n-2 version using the below command:

python3 -m pip install PyMSSQL

Below is the complete output

Collecting PyMSSQL Using cached pymssql-2.3.2.tar.gz (184 kB) Installing build dependencies ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ttjt4n72/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=54.0' 'setuptools_scm[toml]>=5.0' 'wheel>=0.36.2' 'Cython>=3.0.10' tomli cwd: None Complete output (12 lines): Traceback (most recent call last): File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.6/site-packages/pip/main.py", line 27, in "ignore", category=DeprecationWarning, module=".*packaging\.version" File "/usr/lib64/python3.6/warnings.py", line 131, in filterwarnings import re File "/usr/lib64/python3.6/re.py", line 142, in class RegexFlag(enum.IntFlag): AttributeError: module 'enum' has no attribute 'IntFlag'

WARNING: Discarding https://files.pythonhosted.org/packages/81/c8/2ce5b171581c2e4d5d9726aaa805eb01febc7ed70a3bf686e1e0f5501b07/pymssql-2.3.2.tar.gz#sha256=18089641b687be1ebd0f64f0d1ff977478a397ffa1af372bdf10dbec29cf6d2e (from https://pypi.org/simple/pymssql/). Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ttjt4n72/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=54.0' 'setuptools_scm[toml]>=5.0' 'wheel>=0.36.2' 'Cython>=3.0.10' tomli Check the logs for full command output. Downloading pymssql-2.3.1.tar.gz (186 kB) |████████████████████████████████| 186 kB 9.2 MB/s Installing build dependencies ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-hve9gham/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=54.0' 'setuptools_scm[toml]>=5.0' 'wheel>=0.36.2' 'Cython>=3.0.10' tomli cwd: None Complete output (12 lines): Traceback (most recent call last): File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.6/site-packages/pip/main.py", line 27, in "ignore", category=DeprecationWarning, module=".*packaging\.version" File "/usr/lib64/python3.6/warnings.py", line 131, in filterwarnings import re File "/usr/lib64/python3.6/re.py", line 142, in class RegexFlag(enum.IntFlag): AttributeError: module 'enum' has no attribute 'IntFlag'

WARNING: Discarding https://files.pythonhosted.org/packages/30/66/f98a16e1db6592b9ab7fa85a3cb5542b4304178b6ad67928e69927590493/pymssql-2.3.1.tar.gz#sha256=ddee15c4c193e14c92fe2cd720ca9be1dba1e0f4178240380b8f5f6f00da04c6 (from https://pypi.org/simple/pymssql/). Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-hve9gham/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=54.0' 'setuptools_scm[toml]>=5.0' 'wheel>=0.36.2' 'Cython>=3.0.10' tomli Check the logs for full command output. Downloading pymssql-2.3.0-cp36-cp36m-manylinux_2_28_x86_64.whl (4.5 MB) |████████████████████████████████| 4.5 MB 90.3 MB/s Installing collected packages: PyMSSQL Successfully installed PyMSSQL-2.3.0

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Filler text (0.5): ████████████████████████████████
  • Filler text (0): ████████████████████████████████
  • Low reputation (1):
Posted by: Arun

79431138

Date: 2025-02-11 19:32:35
Score: 2
Natty:
Report link

Try the following minimal example:

struct Spot {
    int x, y;
};

int main() {
    Spot{0, 1} == Spot{2, 3};
}

This doesn't compile, as you can test for yourself.

<source>(56): error C2676: binary '==': 'Spot' does not define this operator or a conversion to a type acceptable to the predefined operator

In this case, the error message is way clearer. The compiler doesn't know, how to compare to objects of type Spot and how should it, you never defined how that would work.

You can help yourself with a defined operator==() like the following:

bool operator==(const Spot& lhs, const Spot& rhs) {
    return lhs.x == rhs.x && lhs.y == rhs.y;
}
Reasons:
  • Blacklisted phrase (1): how should i
  • Whitelisted phrase (-1): Try the following
  • RegEx Blacklisted phrase (3): You can help
  • Long answer (-0.5):
  • Has code block (-0.5):
Posted by: Joel

79431127

Date: 2025-02-11 19:26:34
Score: 3
Natty:
Report link

for whomever has wamp v3.3 or above you can now configure your v-host from the icoon menu under "virtual host". It will prompt you to the server where you can put the domain name and folder. menu from the icon

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

79431126

Date: 2025-02-11 19:26:34
Score: 4
Natty:
Report link

Just a bonehead change by Shopify that has been reverted:

https://community.shopify.dev/t/webhook-headers-case-change/8021

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

79431124

Date: 2025-02-11 19:25:33
Score: 4
Natty:
Report link

I used Video DownloadHelper. Click the 3 dots on the download button, and click "Copy URL".

screenshot

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

79431120

Date: 2025-02-11 19:24:32
Score: 2.5
Natty:
Report link

The problem is that im using /pages/_app.jsx, getServerSideProps cannot be used with _app.jsx

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

79431119

Date: 2025-02-11 19:24:32
Score: 0.5
Natty:
Report link

Just solved it. Used another int.

random_number:
mov ah, 2Ch    
int 21h        

mov al, dl     
xor ah, ah     
mov cx, 10     
div cl         

mov dh, ah     
ret

Now when returning to generate_enemies:

generate_enemies:
mov ah, 0x13
mov al, 0x01
mov bh, 0
mov bl, 0x07
mov cx, 1
mov bp, enemy_pixel

mov dl, 79
int 0x10
ret

DH is already setted up with AH that matches its size.

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

79431109

Date: 2025-02-11 19:19:32
Score: 1
Natty:
Report link

Ok so I found out what I was doing wrong, there were two main things that I was doing wrong. The first thing is that when I got the directory uri with Intent.ACTION_OPEN_DOCUMENT_TREE I didn't get persistable uri permission, which I now do using Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION and contentResolver.takePersistableUriPermission(uri, takeFlags) the other part that I was doing wrong was the method of getting the outputStream as I needed to use a contentResolver for it val out = contentResolver.openOutputStream(newFile.uri) with these changes everything works as I intended!

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

79431108

Date: 2025-02-11 19:19:32
Score: 0.5
Natty:
Report link

Like mentioned in the comments by @JNevill , your query is mostly correct, you just need to use the data in the select like so and set the correct index in where clause

f.value:data::STRING

Sample query

SELECT
  party_id,
  f.value:data::STRING AS phone_number_new,
  -- f.value::STRING as phone_number
FROM
  main_parties,
  LATERAL FLATTEN(input => party_phones) f
WHERE
  f.index = 1;

Returns

enter image description here

or a filter with f.value:phoneType = 0 also works

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • User mentioned (1): @JNevill
  • High reputation (-1):
Posted by: samhita

79431107

Date: 2025-02-11 19:18:31
Score: 1
Natty:
Report link

I was able to get the joystick to work for me, you must change the device descriptor to match your desired usage.

For a gamepad/joystick, change subclass to 0, protocol to 1, report length to 5 and device descriptor for 5 buttons max, joystick axis x, joystick axis y, and the hat switch. \x05\x01\x09\x02\xa1\x01\x85\x01\x09\x01\xa1\x00\x05\x09\x19\x01\x29\x05\x15\x00\x25\x01\x95\x05\x75\x01\x81\x02\x95\x01\x75\x03\x81\x01\x05\x01\x09\x30\x09\x31\x16\x00\xf8\x26\xff\x07\x75\x0c\x95\x02\x81\x06\x09\x38\x15\x81\x25\x7f\x75\x08\x95\x01\x81\x06\xc0\xc0

For a mouse and keyboard, refer to github repository https://github.com/thewh1teagle/zero-hid/blob/main/usb_gadget/init_usb_gadget

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

79431100

Date: 2025-02-11 19:15:31
Score: 2
Natty:
Report link

Solved multiple ports for angular with the server side dotnet cli using the --urls like this..

dotnet run --urls="https://localhost:7203;http://localhost:5001;"

The order matters.

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

79431097

Date: 2025-02-11 19:14:31
Score: 0.5
Natty:
Report link

Had similar issue with adding php_lua.dll to xampp.

I downloaded the dlls from here: https://pecl.php.net/package/lua/2.0.7/windows

For XAMPP I needed following version: 8.2 Thread Safe (TS) x64

What helped was copying the additional .dll which was in the archive - liblua.dll into the apache/bin folder.

After that it loaded successfully the extension.

Hope it helps someone :)

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): Hope it helps
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: slawkens

79431091

Date: 2025-02-11 19:12:30
Score: 8
Natty: 7.5
Report link

I am currently experiencing the same problem, have you found a solution?

Reasons:
  • RegEx Blacklisted phrase (2.5): have you found a solution
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: TLinvest

79431090

Date: 2025-02-11 19:12:29
Score: 2
Natty:
Report link

Appears that my issue here was with how pry outputs the result of this concatenation. If I run the same code in an irb console, concatenation works as expected.

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

79431083

Date: 2025-02-11 19:06:28
Score: 3
Natty:
Report link

It can't be from anything like old files because I'm running a totally fresh windows 11 I'm just going to move on from firefox now

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

79431079

Date: 2025-02-11 19:05:28
Score: 1
Natty:
Report link

Thanks for your great post! Really helped me!

Still good for early 2025 :p

A few words on iOS:

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Adrien p

79431073

Date: 2025-02-11 19:03:27
Score: 1
Natty:
Report link

You write:

I try to use MAWK where the match() built-in function doesn't have a third value for variable

gawk does support a third argument to match - an array in which to store the matched text and all captured groups. That is probably what you're looking for. It's documented here.

mawk apparently doesn't support this. Can you simply switch to gawk (e.g., sudo apt install gawk)? This allowed me to run an old script of mine that relied on the captured groups.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jason Eisner

79431070

Date: 2025-02-11 19:02:27
Score: 0.5
Natty:
Report link

For me it worked when I renamed my main.py file to lambda_function.pyinside the root folder of output code directory.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Zain ul Abideen

79431054

Date: 2025-02-11 18:57:26
Score: 1
Natty:
Report link

Irshad's solution worked for me for the first time, after I quit docker desktop and restarted it again, it didn't work and I got stuck again at Kubernetes is starting message.

Personally I changed the cluster settings and used Kind instead of Kubeadm and it work

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