79730077

Date: 2025-08-08 17:34:15
Score: 2.5
Natty:
Report link

plugin pretty-shell is causing this. the easiest solution is to disable the plugin

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Michał Kawiecki

79730055

Date: 2025-08-08 17:18:11
Score: 2.5
Natty:
Report link

Good news.

Now with g++ released today (aug 8, 2025) version 15.2, gtkmm 4.0 header units compile without errors!

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

79730048

Date: 2025-08-08 17:08:09
Score: 1.5
Natty:
Report link

Thanks M.Adel, For me, uninstalling the driver from "Mice and other pointing devices" --> "HID Compliant Mouse" and repairing the mouse worked.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: karthikeayan

79730042

Date: 2025-08-08 17:04:08
Score: 2.5
Natty:
Report link

⚽Birmingham City vs Ipswich Town Live Full Match Today 2025 (0-0)

🕒 1:00 AM

Johor Darul Ta'zim Selangor Football Club live score (and video online live stream) starts on 8 Aug 2025 at 1:00 UTC time in Piala Sumbangsih, Malaysia.

Johor Darul T vs Selangor FC live stream here on ScoreBat when an official broadcast is available. We will provide only official live stream ...

Johor Darul Ta'zim vs. Selangor Malaysian Super League game on ESPN (IN), including live score, highlights and updated stats.

#Birmingham #BirminghamCity #BirminghamCitylive #StAndrewSStadiumEngland2025

@everyone

https://rosidmalhdlive.blogspot.com/2025/08/birmingham-city-vs-ipswich-town-live.html

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • User mentioned (1): @everyone
  • Low reputation (1):
Posted by: sfsf

79730036

Date: 2025-08-08 16:55:05
Score: 6
Natty:
Report link

To fix this modify `persistence.xml` :

<property name="hibernate.cdi.extensions" value="true" />

Can someone explain me why it works ?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can someone explain me
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: grigouille

79730033

Date: 2025-08-08 16:47:03
Score: 1
Natty:
Report link

Hope this helps someone

If you're deploying form VS Code, you're function has to be running AND you have to have sent a request through it before it will register on the portal during deployment. Proper annotations all that aside if this is not done it will not find your method - No HTTP triggers found

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Cecil Addison

79730032

Date: 2025-08-08 16:47:03
Score: 1
Natty:
Report link

A minor safety option which is what I did in similar circumstances:

Move the offending and dangerously names item ~ to a new name foodir:

mv \~ foo

then check it's what it should be : ls foo should not list your home folder

Then remove :

rm -r foo

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

79730031

Date: 2025-08-08 16:46:03
Score: 1
Natty:
Report link
@bot.command(pass_context=True)
@commands.has_role("Moderator")
async def unban2(ctx):
    mesg = ctx.message.content[8:]
    banned = client.get_user_info(mesg)
    await bot.unban(ctx.message.server, banned)
    await bot.say("Unbanned!")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: shahjalal chowdhury

79730017

Date: 2025-08-08 16:29:59
Score: 1
Natty:
Report link
GridView.builder(
controller: _scrollController,
cacheExtent: 200,

Use cacheExtent so that Flutter keeps the loaded images in memory and not discard them while they are not in view.

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

79730013

Date: 2025-08-08 16:25:58
Score: 0.5
Natty:
Report link
#include "numpy/arrayobject.h"
#include "numpy/ndarraytypes.h"

// obj is your PyArrayObject*
PyArray_Descr* descr = PyArray_DESCR((PyArrayObject*)obj);

// Make sure it's a datetime or timedelta type
if (descr->type_num == NPY_DATETIME || descr->type_num == NPY_TIMEDELTA) {
    PyArray_DatetimeMetaData* meta = (PyArray_DatetimeMetaData*)descr->c_metadata;

    if (meta != NULL) {
        NPY_DATETIMEUNIT unit = meta->base;

        // Now unit is an enum value like NPY_FR_D, NPY_FR_M, etc.
        // You can switch on `unit` or print it
    }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: bob

79730007

Date: 2025-08-08 16:17:56
Score: 1
Natty:
Report link

After trying every suggestion I could find (Safari, clearing cache, different networks, different Macs), the only thing that worked was this method:

Steps:
1. On your iPhone:
• Turn off Wi-Fi.
• Use your cellular data only.
2. Install a free VPN that offers a USA (New York) server and turn it on.
3. Open Safari:
• Close all tabs.
• Go to Apple Developer.
4. Log out of your Apple Developer account.
• When it asks “Trust this browser?”, click Trust before logging out.
5. Log back in.
6. Navigate to Certificates, Identifiers & Profiles → Keys.
7. Revoke old APNs keys
(Note: any apps using these keys will need to be updated with the new one).
8. Create a new key:
• Name it something like 2025ApnYourName.
• Select Apple Push Notifications service (APNs).
• Configure for Sandbox & Production.
9. Register and immediately click Download.
• This time the .p8 file downloaded successfully. 🎉

Why this works:
It seems to be related to Apple’s server location checks and caching. Forcing a different IP (VPN to USA) over cellular, plus a fresh login, triggers the download to work.

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

79730001

Date: 2025-08-08 16:09:54
Score: 3
Natty:
Report link

You can split the file contents on semicolons safely (for most typical SQL dumps) and execute each statement separately.

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

79729994

Date: 2025-08-08 16:02:52
Score: 1
Natty:
Report link

# Convert the black & white image to 2D-style PNG by applying a slight threshold to enhance the sketch look

# Convert to numpy array for processing

bw_array = np.array(bw_image)

# Apply a binary threshold to simulate a 2D sketch effect

threshold = 100

bw_2d_array = (bw_array > threshold) * 255 # Convert to binary: 0 or 255

# Convert back to PIL image

bw_2d_image = Image.fromarray(bw_2d_array.astype(np.uint8))

# Save as PNG

bw_2d_png_path = "/mnt/data/black_white_2d_sketch.png"

bw_2d_image.save(bw_2d_png_path)

bw_2d_png_path

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

79729989

Date: 2025-08-08 15:58:51
Score: 1
Natty:
Report link

Span creation for metrics and monitoring and thread locals are common case of wanting an unnamed resource, where instead the Java compiler could create a name behind the scenes on which it would call the close for the AutoCloseable.

try(createSpan()) {
 // actions in the monitored span
} // span is complete

The _ usage is a little better, but still unnecessarily verbose.

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

79729984

Date: 2025-08-08 15:54:45
Score: 7.5
Natty:
Report link

Slove it Bro , i have the same issue

Reasons:
  • Blacklisted phrase (1): i have the same issue
  • Low length (2):
  • No code block (0.5):
  • Me too answer (2.5): i have the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Daro it

79729982

Date: 2025-08-08 15:54:45
Score: 1
Natty:
Report link

Depending on your system, connections can be a significant issue with MARS, where sql's connection limit can get hit and the pooler restarts, which will cause some failed logins. It's very frustrating to troubleshoot from the DBA end as you can watch low traffic from sys.dm_exec_requests/sys.dm_exec_sql_text, but get high counts from sys.dm_exec_connections, where when joined to sys.dm_exec_sessions it looks like your web service account has thousands of connections for minimal sql because MARS will create a connection for each statement in the batch, but the above DMVs only show the specific query running. SP_who2 won't show all the logins mapped either. It's REALLY annoying.

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

79729971

Date: 2025-08-08 15:45:42
Score: 5.5
Natty: 5.5
Report link

el que me funcionó fue el de excluir el subsystem, y tengo JBoss 7.0.9.

Reasons:
  • Blacklisted phrase (2): tengo
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: LE AR

79729969

Date: 2025-08-08 15:44:39
Score: 7.5
Natty: 5.5
Report link

Is there any official bug reported?

Reasons:
  • Blacklisted phrase (1): Is there any
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Is there any of
  • Low reputation (1):
Posted by: Xiong Wang

79729968

Date: 2025-08-08 15:44:39
Score: 1.5
Natty:
Report link

Right click on your project > click properties at the bottom > click Libraries on the left side > click Add Jar or Add External Jar > Locate the Jar file and load it > click OK. Now you have added the related Jar file into your class path and the ClassNotFoundException should disappear. If still issue is unresolved, you need to open the Jar file with JD-GUI and check if the class you are looking for is present or not. If yes it should resolve the error, if not, then you should upgrade or downgrade the jar depending upon the situation.

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

79729967

Date: 2025-08-08 15:43:39
Score: 2
Natty:
Report link

For PowerShell

$tags = @{"tag1"="xxx";"tag2"="2025-08-08";"tag3"="[email protected]";"tag4"="xxx";"tag5"="xxx";"tag6"="xxx"; "tag7"="xx"}

New-AzResourceGroup -Name $resourceGroupName -Location $location -Tag $tags

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

79729965

Date: 2025-08-08 15:43:39
Score: 2
Natty:
Report link

Can u give a try using below two options

spark.read.schema(schema).option("mode", "DROPMALFORMED").json("my_path")

spark.read.schema(schema).option("mode", "FAIFAST").json("my_path")

Reasons:
  • RegEx Blacklisted phrase (2.5): Can u give
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): Can u give a
  • High reputation (-1):
Posted by: vikrant rana

79729952

Date: 2025-08-08 15:23:33
Score: 1
Natty:
Report link

Using the top syntax, I get a different error:


error: Failed to parse: `pyproject.toml`
  Caused by: TOML parse error at line 9, column 15
  |
9 | docs = {sphinx}
  |               ^
trailing commas are not supported in inline tables, expected nothing

and getting this error for the bottom syntax:

error: Project `testproject` has malformed dependency groups
  Caused by: Failed to find group `docs` specified in `[tool.uv.dependency-groups]`
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: NameGoesHere

79729950

Date: 2025-08-08 15:22:33
Score: 1.5
Natty:
Report link

Nice question — this kind of task comes up a lot when handling image uploads or API payloads.

I've used a similar approach before: save the Bitmap to a MemoryStream, then convert the bytes to Base64. Using `ImageFormat.Png` usually preserves quality better than JPEG for transparency.

Hope someone posts a clean snippet here!

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

79729942

Date: 2025-08-08 15:17:31
Score: 3
Natty:
Report link
header 1 header 2
cell 1 cell 2
cell 3 cell 4
Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: MD Rasel khan

79729930

Date: 2025-08-08 15:05:27
Score: 0.5
Natty:
Report link

I made a program that checks how high you can make a pyramid from a number of bricks. Hope it helps :

blocks = int(input("Enter the number of blocks: "))

height = int(0)

layer = int(0)

while(blocks > layer):
    layer += 1
    blocks = blocks - layer
    height += 1
print(height)
Reasons:
  • Whitelisted phrase (-1): Hope it helps
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: David

79729897

Date: 2025-08-08 14:40:20
Score: 1
Natty:
Report link

You can set up a Local Group Policy to only apply to a specific user account (or to Administrators vs Non-Administrators) as so:

  1. Open mmc.exe
  2. Click "File" -> "Add/Remove Snap-in..."
  3. Select "Group Policy Object Editor, then click "Add >"
  4. When 'Welcome to the Group Policy Wizard' appears, click "Browse"
  5. Select the "Users" tab and select a user.

Browse for a Group Policy Object dialog with  Users selected

Therefore no need for PowerShell here :)

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

79729894

Date: 2025-08-08 14:37:20
Score: 3
Natty:
Report link

To your main question:

I try to utilize Azure Resource Graph to get all records from Public DNS zones...Does anybody have an idea which table to query to get the records?

This is not possible through Resource Graph. Public DNS records aren't stored there.

I have a bash script that does this by looping through subscriptions:

az account list --query "[].id" -o tsv | while read sub; do
  az network dns zone list --subscription "$sub" --query "[].{rg:resourceGroup, zone:name}" -o tsv | \
  while read rg zone; do

    for type in A AAAA CNAME MX NS PTR SRV TXT; do
      case "$type" in
        CNAME)
          az network dns record-set CNAME list \
            --subscription "$sub" -g "$rg" -z "$zone" \
            --query "[].{sub: '$sub', rg: '$rg', zone: '$zone', type: 'CNAME', name: name, records: CNAMERecord.cname}" \
            -o tsv
          ;;
        A)
          az network dns record-set A list \
            --subscription "$sub" -g "$rg" -z "$zone" -o json | \
          jq -r --arg sub "$sub" --arg zone "$zone" --arg rg $rg '
            .[] | .ARecords[]?.ipv4Address as $ip
            | [$sub, $rg, $zone, "A", .name, $ip] | @tsv
          '
          ;;
        TXT)
          az network dns record-set TXT list \
            --subscription "$sub" -g "$rg" -z "$zone" -o json | \
          jq -r --arg sub "$sub" --arg zone "$zone" --arg rg $rg '
            .[] | .TXTRecords[]?.value[] as $txt
            | [$sub, $rg, $zone, "TXT", .name, $txt] | @tsv
          '
          ;;
        NS)
          az network dns record-set NS list \
            --subscription "$sub" -g "$rg" -z "$zone" -o json | \
          jq -r --arg sub "$sub" --arg zone "$zone" --arg rg $rg '
            .[] | .NSRecords[]?.nsdname as $nsd
            | [$sub, $rg, $zone, "NS", .name, $nsd] | @tsv
          '
          ;;
        AAAA)
          az network dns record-set AAAA list \
            --subscription "$sub" -g "$rg" -z "$zone" -o json | \
          jq -r --arg sub "$sub" --arg zone "$zone" --arg rg $rg '
            .[] | .AAAARecords[]?.ipv6Address as $ip6
            | [$sub, $rg, $zone, "AAAA", .name, $ip6] | @tsv
          '
          ;;
        MX)
          az network dns record-set MX list \
            --subscription "$sub" -g "$rg" -z "$zone" -o json | \
          jq -r --arg sub "$sub" --arg zone "$zone" --arg rg $rg '
            .[] | .MXRecords[]? as $mx
            | [$sub, $rg, $zone, "MX", .name, "\($mx.preference) \($mx.exchange)"] | @tsv
          '
          ;;
        PTR)
          az network dns record-set PTR list \
            --subscription "$sub" -g "$rg" -z "$zone" -o json | \
          jq -r --arg sub "$sub" --arg zone "$zone" --arg rg $rg '
            .[] | .PTRRecords[]?.ptrdname as $ptr
            | [$sub, $rg, $zone, "PTR", .name, $ptr] | @tsv
          '
          ;;
        SRV)
          az network dns record-set SRV list \
            --subscription "$sub" -g "$rg" -z "$zone" -o json | \
          jq -r --arg sub "$sub" --arg zone "$zone" --arg rg $rg '
            .[] | .SRVRecords[]? as $srv
            | [$sub, $rg, $zone, "SRV", .name, "\($srv.priority) \($srv.weight) \($srv.port) \($srv.target)"] | @tsv
          ' 
          ;;
        *)
          echo "Skipping unknown record type: $type" >&2
          ;;
      esac
    done

  done
done
Reasons:
  • RegEx Blacklisted phrase (3): Does anybody have an idea
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Kevin Stevens

79729877

Date: 2025-08-08 14:21:16
Score: 2
Natty:
Report link

Your idea of a "magnetic scan" on an LLM is a powerful way to describe a field of study called interpretability. This field aims to open up the "black box" of LLMs and understand their internal workings. While we don't use MRI machines, researchers use various techniques to see which "areas" of the model are most active in response to different inputs.

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

79729876

Date: 2025-08-08 14:21:16
Score: 2
Natty:
Report link

If you use free LAB Fit Curve Fitting Software ( www.labfit.net ) to fit a function to your dataset, in dialog box "Results" you find: 1) average values of the parameters, 2) the corresponding uncertainties, 3) the covariance matrix. LAB Fit has an error propagation option (first order approximation). Using this option, you inform 1) the expression to determine the propagated error, 2) the average values, 3) the uncertainties, 4) the covariance matrix. See an complete example at: https://www.labfit.net/fitting.htm . If you insttall LAB Fit, see several videos clicking "Help" and choosing "Show Features (ppsx)". A general idea is available in https://www.youtube.com/@WiltonPereira-d9z

Wilton

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Wilton Pereira da Silva

79729857

Date: 2025-08-08 14:10:13
Score: 1
Natty:
Report link

Fun fact: the month field is zero-based in the Date object. So to get the first of January, you need to do this:

var date = new Date(2000, 0, 1)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: John Henry Doe

79729854

Date: 2025-08-08 14:09:12
Score: 4
Natty:
Report link

The page contains tabularized parameters which would help in deciding on your choice. The XSSFWorkbook and SXSSFWorkbook behaviour in memory.

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

79729853

Date: 2025-08-08 14:08:12
Score: 1
Natty:
Report link

This issue only occurs with a specific few releases in version 17.10, it ended up being a known bug that was fixed in later versions and is no longer in issue for recent builds. The solution if you encounter it is to upgrade VS.

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

79729835

Date: 2025-08-08 13:49:06
Score: 1
Natty:
Report link

Instead of adding "input_shape" to your first layer ...
add Input(shape) as your first layer

classifer.add(keras.Input(shape=(11,)))

Then your layers

classifer.add(Dense(6, activation = 'relu'))

More about the sequential model here: https://keras.io/guides/sequential_model/

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

79729820

Date: 2025-08-08 13:35:02
Score: 4
Natty: 5
Report link

Just commenting to let you know I just ran into this issue and I am extremely annoyed about it. WTF is this, I just want an API key. To create a Power Up I also need to host some html page somehwere for an iframe?! I need to host a webhook to get an API key?!

Iframe connector URL (Required for Power-Up)

who thought this was a good idea?!

Reasons:
  • Blacklisted phrase (0.5): I need
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Henri

79729819

Date: 2025-08-08 13:34:01
Score: 1
Natty:
Report link

Your ProxyPass /static/ ! must come before the ProxyPass / rule so Apache serves static files itself instead of forwarding them to Gunicorn. Also, make sure your Alias /static/ points to the correct static files directory and that Apache has permission to read them. The MIME error happens because Gunicorn returns an HTML 404 page instead of the CSS file when static requests get proxied to it.

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

79729814

Date: 2025-08-08 13:30:00
Score: 1
Natty:
Report link

If same error is happening in all directory, which mean yarn is picking

"packageManager": "[email protected]"

from home package.json

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

79729809

Date: 2025-08-08 13:26:59
Score: 2
Natty:
Report link

Spring Boot @RequestBody with Multipart (file + JSON) returns 403

I’m making a small Spring Boot test project where I want to update a user’s profile data (name, email, and image).

If I send the request in Postman using form-data with only a file, everything works fine.
But as soon as I uncomment the @RequestBody line and try to send both JSON and file in the same request, I get a 403 Forbidden error.

My controller method:

@PatchMapping("/{id}")
@Operation(summary = "Update user")
public ResponseEntity<User> updateUser(
        @PathVariable Long id,
        @RequestPart("file") MultipartFile file
//      @RequestBody UserDtoRequest userDtoRequest
) {
    System.out.println(id);
    System.out.println(file);
//  System.out.println(userDtoRequest);

    return null;
}

My DTO:

@Data
@AllArgsConstructor
public class UserDtoRequest {
    @Nullable
    @Length(min = 3, max = 20)
    private String username;

    @Nullable
    @Email(message = "Email is not valid")
    private String email;
}

I can only accept data from UserDtoRequest if I use raw JSON in Postman, but then I cannot attach the image.

Question:
How can I send both a file and JSON object in the same request without getting a 403 error?


Solution

@RequestBody expects the entire request body to be JSON, which conflicts with multipart/form-data used for file uploads.
The correct way is to use @RequestPart for both the JSON object and the file.

Updated Controller:

@PatchMapping(value = "/{id}", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
public ResponseEntity<User> updateUser(
        @PathVariable Long id,
        @RequestPart(value = "file", required = false) MultipartFile file,
        @RequestPart(value = "user", required = false) UserDtoRequest userDtoRequest
) {
    System.out.println("ID: " + id);
    System.out.println("File: " + file);
    System.out.println("User DTO: " + userDtoRequest);

    // TODO: Save file, update user, etc.

    return ResponseEntity.ok().build();
}

How to send the request in Postman:

  1. Method: PATCH

  2. URL: http://localhost:8080/users/{id}

  3. Go to Body → form-data and add:

    • Key: file → Type: File → choose an image from your computer.

    • Key: user → Type: Text → paste JSON string:

{"username":"John","email":"[email protected]"}

  1. Postman will automatically set the Content-Type to multipart/form-data.

Why this works:


Tip: If Spring can’t parse the JSON in user automatically, add:

objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);

or ensure that the user field in Postman is exactly valid JSON.

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: WordPressNaimur

79729803

Date: 2025-08-08 13:20:58
Score: 0.5
Natty:
Report link

2025:

same problem here.

my findings:

with pyarrow.set_memory_pool(pyarrow.jemalloc_memory_pool()) and pyarrow.jemalloc_set_decay_ms(0) the memory will be released eventually if you have enough memory to prevent OOM kill before the full gc triggered.

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

79729801

Date: 2025-08-08 13:19:58
Score: 1
Natty:
Report link

Exactly same issue I'm facing with Drools 8 or Drools 10.1.0. [Drools 10.1.0]

Everything works fine in Intellij. If deploy it to Linux (RHEL 7.0) getting NPE.

Caused by: java.lang.NullPointerException: Cannot invoke "org.kie.api.KieServices.newKieFileSystem()" because "this.ks" is null
        at org.kie.internal.utils.KieHelper.<init>(KieHelper.java:52)

Added META-INF as below:

enter image description here

kie.conf content:

# KIE configuration file for Drools
# Example: Specify the KieServices implementation
org.kie.api.KieServices = org.drools.compiler.kie.builder.impl.KieServicesImpl
org.kie.internal.builder.KnowledgeBuilderFactoryService = org.drools.compiler.builder.impl.KnowledgeBuilderFactoryServiceImpl

Simple Code:

public static StatelessKieSession buildStatelessKieSession(List<String> drlFiles) {
    KieHelper kieHelper = new KieHelper();
    for(String drlFile : drlFiles){
        kieHelper.addContent(drlFile, ResourceType.DRL);
    }
    return kieHelper.build().newStatelessKieSession();
}
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: nagaraj gond

79729794

Date: 2025-08-08 13:14:56
Score: 1.5
Natty:
Report link

Go to node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandlerOrchestrator.kt

at line 193 change awaitingHandlers.reversed() to awaitingHandlers.asReversed()

https://github.com/software-mansion/react-native-gesture-handler/issues/3621

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

79729776

Date: 2025-08-08 12:58:51
Score: 1
Natty:
Report link

Some websites I've tried did not work eyllanesc solution. You can try to add these params at the very start of your PyQt app:

os.environ['QTWEBENGINE_CHROMIUM_FLAGS'] = '--ignore-ssl-errors --ignore-certificate-errors --allow-running-insecure-content --disable-web-security --no-sandbox'
os.environ['QTWEBENGINE_DISABLE_SANDBOX'] = '1'
Reasons:
  • Blacklisted phrase (1): did not work
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Khaled ElMorshedy

79729772

Date: 2025-08-08 12:52:50
Score: 2
Natty:
Report link

The points of a square can only be one of two lengths. A side or a diagonal. Just given any set of 4 points we don't know which pair are diagonally opposite or which are adjacent

Without loss of generality you only need to check 4 distances:
║A,B║;
║A,C║;
║A,D║;

And one other ║B,C║; ║C,D║; or ║C,D║.

As what @Floris said, using square distances is easiest.

Of the three distances two will be equal (this distance will be the side length (squared)), the third must be a diagonal and thus 2 * side^2.

To pick the last pair, you need to pick the point which is diagonally opposite p1 and one of the other two points (B or C). This distance must be equal to the side length.

This does not, as @Kos pointed out, solve for the situation of a bow-tie shape. Yet if this is a consideration then the ordering of the vertices matters, then you can treat the input as a list of ordered points, and then you can setup the function arguments so that A and C are diagonally opposite, and so are B and D.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @Floris
  • User mentioned (0): @Kos
  • Low reputation (1):
Posted by: INsanE Alchemist

79729769

Date: 2025-08-08 12:48:49
Score: 2
Natty:
Report link

You will need EXT:crawler 12.0.9 or later ( unreleased as of the time of writing ) due to this bug:
https://github.com/tomasnorre/crawler/issues/1140

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

79729754

Date: 2025-08-08 12:34:46
Score: 2.5
Natty:
Report link

The problem was that I installed Visual Studio Code from the Flatpak store. Downloading the .deb file from the VSCode website and installing it and manually downloading the zip file of the Flutter SDK fixed the problem.

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

79729753

Date: 2025-08-08 12:33:46
Score: 0.5
Natty:
Report link

This is a bug of Flutter/Chrome. It seems to be caused by Google stopping to automatically use the cross platform Software Renderer SwiftShader if needed. A hoped for fix has not been able to mitigate this yet.

Possible Workaround:

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

79729748

Date: 2025-08-08 12:28:44
Score: 1
Natty:
Report link

The size of the parameter set in the two representations
of either 5 (2 center coordinates, 2 radii, 1 alignment angle)
or 6 (quadratic form $Ax^2+Bxy+Cy^2+Dx+Ey+F=0$) is
due to the fact that the algebraic equation/form is invariant
to the space of solutions (x,y) if it is divided through any
of the 6 (nonzero coefficients): $x^2+(B/A)*x*y+(C/A)*y^2+(D/A)*x +(E/A)*y+F/A=0$.
So the quadratic form has effectively only 5 independent parameters.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: R. J. Mathar

79729744

Date: 2025-08-08 12:23:43
Score: 2.5
Natty:
Report link

I faced this same issue as I had added incorrect credentials.
So Check your Database URL or environment variables.

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

79729730

Date: 2025-08-08 12:00:38
Score: 1.5
Natty:
Report link

No — you can’t directly create a foreign key constraint on an expression like DATE(created_date) in standard SQL (including MySQL, PostgreSQL, SQL Server, Oracle, etc.).

Foreign key constraints must be defined between actual columns, not computed expressions. Both columns must also match in data type and precision.

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

79729726

Date: 2025-08-08 11:55:36
Score: 1
Natty:
Report link

IIS will restart the site if it detects the web.config file has changed (by default).

So assuming you can programmatically read and then save that file (you don't even need to make any change), IIS will handle the rest.

This works not just in Blazor (.net core) but also .NET framework (MVC and webforms) and even classic ASP, if you really, really need to.

Probably not the "correct" way, but it is simple and works and given that this has worked for 20+ years, all the way back to classic ASP, it seems pretty robust.

I have put this in old web forms apps for years, used it many times (normally to clear caches) and never had any issue, such as mangling the web.config.

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

79729714

Date: 2025-08-08 11:47:34
Score: 1
Natty:
Report link

Try adding this setting as well:

SOCIALACCOUNT_EMAIL_AUTHENTICATION_AUTO_CONNECT = True

It goes at the same level as SOCIALACCOUNT_PROVIDERS

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

79729710

Date: 2025-08-08 11:45:33
Score: 0.5
Natty:
Report link

if you want to install something before your main package, that also happens to run silently, then I would suggest creating your own wrapper that does that - it's actually the only solution I can think of.

A possible solution could be creating a wrapper MSI that launches .NET runtime first, then your main package - this way, you ensure that .NET is always installed before the main package.

Make sure that the wrapper MSI is not Windows Installer authored (i.e. it does not register in Control Panel) so you don't end up having duplicate entries.

Another solution could be to use some tools that already do this out of the box.

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

79729699

Date: 2025-08-08 11:33:29
Score: 1
Natty:
Report link

That's a mypy bug. I have fixed that in #19422 a few days ago, your original snippet works on mypy master (will likely be released in 1.18.0).

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

79729694

Date: 2025-08-08 11:29:28
Score: 0.5
Natty:
Report link

Make sure you don't have the following key in your Info.plist

<key>NSUserTrackingUsageDescription</key>
<string>...</string>

Then run flutter clean & flutter pub get
rm -rf ios/Pods ios/Podfile.lock pubspec.lock to delete the current Pods and run the app again to generate them again

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

79729691

Date: 2025-08-08 11:26:27
Score: 3
Natty:
Report link

Explore a variety of fun and expressive kaomojis by visiting this website: https://www.aimojitok.com/kaomoji. Perfect for adding personality to your messages!

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

79729689

Date: 2025-08-08 11:25:26
Score: 0.5
Natty:
Report link

Wrap your trailingIcon widget with a SizedBox()

SizedBox(
              height: 50,
              width: 50,
              child: Transform.translate(
                offset: const Offset(13, -13),
                child: const Icon(Icons.arrow_drop_down, size: 40),
              ),
            ),
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Andreas Hadjimamas

79729678

Date: 2025-08-08 11:10:23
Score: 0.5
Natty:
Report link
SHOW TABLE schema_name.table_name

Worked for me .Kindly use it ! No need of any aws util packages if you just want the ddl!

Reasons:
  • Whitelisted phrase (-1): Worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Arish krishnan

79729670

Date: 2025-08-08 10:58:20
Score: 1.5
Natty:
Report link
Where id between 3 and 4 

Would also be a possibility.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bending Rodriguez

79729666

Date: 2025-08-08 10:53:18
Score: 3
Natty:
Report link
className={`myClass ${index && "active"}`}
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: Mahesha N

79729661

Date: 2025-08-08 10:50:17
Score: 3
Natty:
Report link

is ServerAliveInterval could help me if my ssh connection to the server is also very unstable and I need just to restart my server in anyway, to make it alive again, even when ssh connection will connect for milliseconds.
Do I need set maximum ServerAliveInterval and some big number of ServerAliveCountMax ?
Thanks for the answer

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: user5838778

79729647

Date: 2025-08-08 10:38:14
Score: 0.5
Natty:
Report link

You're observing different execution orders because of how JavaScript's event loop handles **macrotasks** and **microtasks**.

Event Loop Basics

- `setTimeout(..., 0)` is a **macrotask** (added to the macrotask queue).

- `.then()` from a `fetch` is a **microtask** (added to the microtask queue).

- Microtasks are **always executed before** the next macrotask, after the current execution stack is empty.

---

In Browser

When you use `setTimeout(..., 0)` and `fetch(...)`, here’s what happens:

1. Synchronous code runs first.

2. Microtasks (like `.then()` from `fetch`) are processed.

3. Then macrotasks (like `setTimeout`) are processed.

That’s why in most browsers:

console.log(“A”);        // sync

fetch(…).then(…)     // microtask

setTimeout(…, 0)       // macrotask

console.log(“B”);        // sync

---

Why `1ms` setTimeout changes order:

Changing to `setTimeout(..., 1)` gives the event loop more time, so the fetch may resolve before the timeout happens — but it's **not guaranteed**. It's a race condition depending on network timing and browser internals.

---

In Node.js

Node uses a slightly different event loop model. The key difference is:

- `setTimeout` goes into the **Timers phase**

- `fetch` is not native to Node and uses the **microtask queue** after a Promise resolves

So in Node, `setTimeout(..., 0)` often logs before `.then()` due to **phase timing differences**.

---

Summary

- Microtasks (`Promise.then`, `fetch`) run **before** macrotasks (`setTimeout`).

- Timing differences in browsers vs. Node.js are due to **event loop phase priorities**.

- `setTimeout(..., 0)` does **not mean immediate execution**, just “as soon as possible after current tasks.”

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

79729646

Date: 2025-08-08 10:37:14
Score: 1
Natty:
Report link

Use setText :

MimeMessage m;
m.setText(body, "UTF-8", "html");

If you look at the source code, in the end you'll get :

m.setContent(body, "text/html; charset=UTF-8");
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: grigouille

79729637

Date: 2025-08-08 10:31:12
Score: 1
Natty:
Report link

I had this issue because of timeouts not properly set ON BOTH my backend function and my frontend caller.

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

79729635

Date: 2025-08-08 10:31:12
Score: 1.5
Natty:
Report link

We can create EqualityComparer object with the helper method like this now:
var set = new HashSet<MyClass>(comparer: EqualityComparer<MyClass>.Create((a, b) => a.Id == b.Id));

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

79729633

Date: 2025-08-08 10:26:11
Score: 1
Natty:
Report link

Nowdays, in Reqnroll, you can use External Data Plugin to acomplish just that! It supports various file formats, including JSON and the file structure you have present should work just fine :)

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

79729619

Date: 2025-08-08 10:11:07
Score: 2
Natty:
Report link

Finally figured out how to drag and drop files from a web app into desktop software—super smooth! If you need a feature like this built, dev technosys can do it. You can also hire software developers from them for custom integration.

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

79729615

Date: 2025-08-08 10:03:04
Score: 6.5
Natty: 6
Report link

Got anyone a solution for this?

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

79729612

Date: 2025-08-08 09:59:02
Score: 3
Natty:
Report link

According to https://github.com/vercel/next.js/issues/57005#issuecomment-1779807828 the error has been fixed in nodejs 21.1.0. So, instead of downgrading, an upgrade may be also a solution.

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

79729607

Date: 2025-08-08 09:53:01
Score: 1.5
Natty:
Report link

Instead of loading the entire 10GB dataset into a single NumPy array and then passing it around, you can create a generator to process the data in a stream. A generator is a special type of Python function that returns an iterator, which yields items one by one instead of all at once. This allows you to process the data as it's read from the file, effectively keeping only one slice of it in memory at any given time.

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

79729605

Date: 2025-08-08 09:52:00
Score: 0.5
Natty:
Report link

For venv you have to do it with

deadsnakes

For Ubuntu default repository all python versions and latest ones are not there so get the packages from repository and then install any version using apt
sudo apt install python3.xx
And then while setting up the virtual environment use that Python -
python3.xx -m venv .venv

Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: atmaram

79729596

Date: 2025-08-08 09:47:59
Score: 0.5
Natty:
Report link

You can adjust the gradient with the code below

const LinearGradient(
  colors: [Colors.blue, Colors.black, Colors.black],
  stops: [0.0, 0.5, 1.0], // Adjust stops to control the gradient spread
  begin: Alignment.centerLeft, // Start from left
  end: Alignment.centerRight, // End at right
),
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: AFAQ AWAN

79729593

Date: 2025-08-08 09:44:59
Score: 1.5
Natty:
Report link

What you can do as suggested by @usr1234567 is to compile a short code that includes _Float16.

Here's a minimal working code :

cmake_minimum_required(VERSION 3.12)

project(MyProject C)

include(CheckSourceCompiles)

check_source_compiles(C "
    #define __STDC_WANT_IEC_60559_TYPES_EXT__
    #include <float.h>
    int main() {
        _Float16 x = 1.0f16;
        return 0;
    }
" HAVE_FLOAT16)

if(HAVE_FLOAT16)
    message(STATUS "_Float16 is supported by the compiler.")
else()
    message(WARNING "_Float16 is not supported by the compiler.")
endif()

I've found __STDC_WANT_IEC_60559_TYPES_EXT__ here : https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @usr1234567
  • Starts with a question (0.5): What you can
  • Low reputation (1):
Posted by: Danielc-n

79729591

Date: 2025-08-08 09:40:58
Score: 8.5
Natty: 7.5
Report link

Using VideoCapture the start of the usb camera lasts 1 minute. And the same with OpenCVFrameGrabber. Does anybody know how to make it start inmediatly?

Reasons:
  • Blacklisted phrase (1): anybody know
  • RegEx Blacklisted phrase (2): Does anybody know
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Raquel

79729581

Date: 2025-08-08 09:27:55
Score: 0.5
Natty:
Report link

I had the same issue with httpClient, however, changing http version to HTTP version 1.1 helped.

.version(HttpClient.Version.HTTP_1_1)
Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yakov Shmidt

79729580

Date: 2025-08-08 09:26:54
Score: 2.5
Natty:
Report link

For anyone still getting such error:

Github Desktop lets you choose which shell to use for the git operations.
Try setting a different shell one via:

File -> Option -> Integrations -> Shell

Thanks d-kleine on Github for the suggestion.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Technarr

79729568

Date: 2025-08-08 09:19:52
Score: 4
Natty: 6
Report link

I was looking for that, but for Photoshop. Is it possible? I need to make a text with a shaped with that corners

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Moretti66

79729565

Date: 2025-08-08 09:18:52
Score: 3.5
Natty:
Report link

enter image description here

Check the Toggle offline mode, it might be enabled, so disable it and then try to sync the Gradle.

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

79729556

Date: 2025-08-08 09:13:51
Score: 1
Natty:
Report link

The current OpenAI TypeScript/JavaScript SDK ( openai @ 5.12.x, released 8 Aug 2025 ) still vendors a copy of zod-to-json-schema that depends on Zod 3-only internals. Trying to pair it with Zod 4 (or with the 3.25.68+ branch that began preparing for v4) leads to compiler/runtime failures such as the missing ZodFirstPartyTypeKind export.

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

79729552

Date: 2025-08-08 09:08:49
Score: 2
Natty:
Report link

Can you load at least one binary ? then:
I would try to not store them in a dictionary (all of them in one) they probably can be loaded from files named with dictionary keys "....elsewhere in the code"
Can't even load one binary ? then:
chunking it is I dont understand why that would be problem with order ?
or buy more ram use something that is not Python as it will add memory overhead

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (0.5):
Posted by: Michał Darowny

79729542

Date: 2025-08-08 08:57:47
Score: 3.5
Natty:
Report link

you can install the jaxlib with cuda support directly on windows.
https://github.com/pymc-devs/pymc/issues/7036

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

79729532

Date: 2025-08-08 08:50:45
Score: 2
Natty:
Report link

Something that worked for me, after hours looking for an answer was to delete the local Jupyter setting folder.

.jupyter/*

This helped - https://github.com/jupyter/notebook/issues/2359#issuecomment-648380681

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

79729520

Date: 2025-08-08 08:40:42
Score: 0.5
Natty:
Report link

When using material3 TextField, you can leverage inputTransformation:

import androidx.compose.material3.TextField
import androidx.compose.foundation.text.input.InputTransformation


val maxLength = 10
TextField(
    state = rememberTextFieldState(),
    inputTransformation = InputTransformation.maxLength(maxLength),
)
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: kezc

79729519

Date: 2025-08-08 08:39:42
Score: 0.5
Natty:
Report link

libunwind relies on DWARF .eh_frame sections to unwind the stack properly

to ensure unwind info is generated compile with: -funwind-tables -fno-omit-frame-pointer

Also ensure .eh_frame is linked.

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

79729507

Date: 2025-08-08 08:31:39
Score: 1
Natty:
Report link

To build on @DibsyJr's answer, I've created an attribute that I attach on the controller/method that I want to block, and check it in the OnCheckSlidingExpiration event handler. I find that more flexible than just checking the path property.

[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
public class DoNotRenewAuthCookieAttribute : Attribute;
options.Events.OnCheckSlidingExpiration = context =>
{
    if (context.HttpContext.GetEndpoint()?.Metadata.Any(e => e is DoNotRenewAuthCookieAttribute) ?? false)
    {
        context.ShouldRenew = false;
    }

    return Task.CompletedTask;
};
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ToufiPF

79729498

Date: 2025-08-08 08:26:38
Score: 0.5
Natty:
Report link

Answer

GTK 3’s Wayland backend doesn’t expose the pointer enter event serials needed for the pointer-warp protocol. The serial values are low-level Wayland details that GTK 3 abstracts away and doesn’t provide in its API.

Your options are:

In short, there’s no straightforward way in GTK 3 to get the pointer enter serial. You would likely need a parallel listener or move to GTK 4 for native support.

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

79729492

Date: 2025-08-08 08:23:37
Score: 1.5
Natty:
Report link

The expr function doesn't automatically translate the Python in operator to its SQL equivalent when working with array types. The standard Spark SQL function for checking if an element exists in an array is array_contains.

You should be able to fix by using array_contains within your filter expression.

Pseudocode

from pyspark.sql import functions as F

df = df.withColumn(
    'target_events',
    F.expr('filter(events, x -> array_contains(target_ids, x.id))')
)

I don't know if this tutorial may be useful, but I'll link it anyway^^:

https://www.youtube.com/watch?v=9zX-OfOzLlQ

Reasons:
  • Blacklisted phrase (1): this tutorial
  • Blacklisted phrase (1): youtube.com
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: jei

79729486

Date: 2025-08-08 08:15:35
Score: 1
Natty:
Report link

I'm going to go into some technical details of the explanation of

[why] lookbehind assertion[s] must be fixed length in [PCRE] regex[es],

using the specific case that brought me here to the question. (I came understanding the lack of support for variable lookbehind assertions, just looking for some details of how to write fixed-length assertions.) Note that I'm basically following the answer of @Alan-Moore but giving a specific example. Other answers and comments were all very helpful.

I'll make a toy version of my problem and tweak it a bit to match it to the problem with variable length lookbehind assertions.

I have a group of classifications that are used to mark linguistic and other characteristics of speeches made by politicians, celebrities, scientific researchers, etc. These need to be inserted into the text at the point where they occur. e.g. If the speaker gave a date with the phrase,

This hasn't been done since 1762 and shan't be done ever again if I can help it!

and dates were to be marked with bcde_ (we'll talk about the markers, below), the annotated version would be changed as

This hasn't been done since 1762 bcde_ and shan't be done ever again if I can help it!

To make these different from the actual words in the speeches, these are groups of four letters, either repeated or in-a-row, followed by an underscore. So, a few examples would be

aaaa_, abcd_, bbbb_, bcde_, ... , hhhh_, ... , mnop_, ... wxyz_, ... zzzz_.

Note that some combinations without the trailing underscore, such as eeee , mmmm, oooo , zzzz , are found in some linguistic corpora. That's one reason for the trailing underscore. FYI (and maybe TMI), we don't actually use all the combinations, but I'll pretend that we do for the example. However, the regex engine would need to check these even if it had an intelligent implementation. Note also that these are inserted using a nicely UX-designed GUI and the linking between classification string and meaning is done by some nice software which includes PCRE-compliant regex matching.

I won't go into details why, but whenever there is a zzzz_ or yyyy_ or xxxx_ anywhere in the speech (and there can be only one of those three per speech), it works out that one and only one of the four-contiguous-letters-plus-underscore classifications needs to be part of the annotation of the same speech. If one of zzzz_ or yyyy_ or xxxx_ is there, there can't be zero members of the set, {abcd_, bcde_, cdef_, defg_, ..., vwxy_, wxyz_} in the annotated speech, and there can't be 2 or 3 or 4 or more members of the set. One-and-only-one if there is a /([x-z])\1\1\1_/. There can be any number of /([a-w])\1\1\1_/, i.e. aaaa_, bbbb_, cccc_, ..., if we have one of /([x-z])\1\1\1_/.

So, to check if this rule is being followed, I write a couple of grep commands, the second of whose regex has a negative lookahead and a negative lookbehind. I do it naïvely, first, without concern for the grep: length of lookbehind assertion is not limited error. Note that I won't list all of the (26 - 3 =) twenty-three possible in-a-row classifications, I'll use (abcd_|bcde_| ... |wxyz_). This will compile and run, but it's not the code that will give the desired results. The real code uses all 23 possibilities.

And no, I don't type all 23 possibilities each time.

$ grep -P " ([x-z])\1\1\1_" file_with_all_annotated_speeches_one_per_line \
   > to_check_speeches_test_05
$ #  Down here, on the 2nd line    vv     is the problem
$ grep -P \
    '(?<! (abcd_|bcde_| ... |wxyz_).*)'\
'( (abcd_|bcde_| ... |wxyz_))'\
'(?!.* (abcd_|bcde_| ... |wxyz_))' \
          to_check_speeches_test_05 \
   > all_acceptable_speeches_as_per_05
$ #  `comm -23' will give us those lines (speeches) that are only in the 
$ #+ first argument (file), but not those in the second one nor those 
$ #+ which are in both file 
$ comm -23 <(sort to_check_speeches_test_05) \
           <(sort all_accceptable_speeches_as_per_05) \
 > not_acceptable_speeches_as_per_05 

Okay, let's look at some speeches. Let's say that the Gettysburg Address is now a wrong version, so we need to change it to the right version. I'll just give relevant parts (any parts that have a classifier string).

Wrong Version:

Fourscore and rstu_ seven years jjjj_ ago
...

The world will little note, nor long wwww_ remember zzzz_ what
...
by the people, for the people, shall not perish mnop_ from 
the earth. _-lincoln-getty-1863-_ 

Note that, in the file, this would all be on one line. If not, the grep would become a lot harder.

We can't have both rstu_ and mnop_ in the same line (speech) as zzzz_.

Right version:

Fourscore and seven years jjjj_ ago
...

The world will little note, nor long wwww_ remember zzzz_ what
...
by the people, for the people, shall not perish mnop_ from 
the earth. _-lincoln-getty-1863-_ 

I'm not sure how the order of processing the negative lookbehind and the negative lookahead work (perhaps, once the negative lookahead fails, i.e. finds the matching string, the regex exits; perhaps the negative lookbehind starts first; idk), but I'm going to pretend that we'll get a negative lookahead from the rstu_ and a negative lookbehind from the mnop_. (If the speech has zzzz_ and three of / (abcd_|bcde_| ... |wxyz_)/, I'm pretty sure both the lookahead and lookbehind would be run.)

The wrong version has a negative lookahead. (I think that's the case; if not, let's pretend.) That means the lookahead regex starts at rstu_ and runs one regex pass on up to 1491 characters. It finds mnop_ after going through 1452 characters. That means it fails, and I don't know if checks would continue. Still, I'm going to make the next assumption. Anyone is welcome to comment about whether I'm "running the regex engine" right. I think I'll keep this version with assumptions, anyway, but I'd like to know (and probably note) what a PCRE-compliant engine actually does.

Now let's assume that we also get a negative lookbehind from mnop_. (There might be a smarter algorithm, but lets assume that) the engine first moves one character back to the space (' ') then goes through a minimum of 5 characters (looking for 5 characters matching any of the letters-in-a-row_plus_underscore strings) or a maximum of 45 characters (to the end of the line) looking for any of (abcd_|bcde_| ... |wxyz_). Then it goes back to the 'h' in perish and looks through 5|46 characters for a letters-in-a-row string. Then 's' with 5|47, 'i' with 5|48, 'r' with 5|49, 'e' with minimum 5 or maybe 6—to the start of mnop_—or maybe up to 50—to the end of the line, 'p' with 5|7|51, ... all the way back through 1440 more characters to rstu_'s '_' which runs through 5|1448|1491, 'u' which runs through 5|1449|1492, 't' with 5|1449|1493, 's' with 5|1450|1494, then finally 'r', where I think it would only go through 5 characters until the rstu_ matched. Using the minimums, that's 1452 * 5 = 7262 steps, five times as many as the lookahead. (The exact multiple isn't a coincidence.) These thousands of steps are for the Gettysburg Address, which is famous for how short it is! (1487 characters, if you use the transcript of Cornell University's copy (linked above).

I won't do more details (sleep time), but imagine finding a mistake where one xxxx_ has three different (abcd_|bcde_| ... |wxyz_) instances in John F. Kennedy's We choose to go to the moon speech. Or imagine checking, whether there are errors or not, through the famous-for-its-length 1960 speech of Fidel Castro at the United Nations with its ~200k characters. If there are errors that make you use negative lookbehinds, that could be a lot of computing cycles, especially since we're likely dealing with recursion in the regex engine's details.


So, the way I see it, there are two things I could do.

First Way (Painful)

The first, painful way is to use the oft-repeated answer given here to do as @Dávid-Horváth suggested and

try to branch your lookbehind part to fixed length patterns if possible.

That would involve splitting up the ORs (|) in the first (?<!(abcd_|bcde_| ... |wxyz_).*), a process that would begin something like

'/(?:(?<! abcd_.*)|(?<! bcde_.*)| ... |(?<! wxyz_.*))'\
'( (abcd_|bcde_| ... | wxyz))(?!.* (abcd_|bcde_| ... |wxyz_))'

without metaprogramming (archived Wikipedia site, as I see it), I don't think so.

Second Way

If the lengths work out for you

My workaround is to make a copy of the file-with-one-speech-per-line, then take all the classification strings to the beginning of each line. Because other combinations will doubtless need regexes, I've figured the longest possible string (I think), with just

(alphabet)   (only one of x, y, z)
  ( 26     -          3 )             +

(alphabet of in-a-row-letters)
            26                        =

49 possible classification strings

(I didn't note that no classification string may be repeated, but that's the case.)

I think that's the max we'd need, with something like

/(?<! (aaaa_|abcd_|bbbb_|bcde_| ... |wwww_|wxyz_).{0,50})/

for the negative lookbehind part.

I've experimented on my system1 and found that I can go up to .{0,251} before I get a complaint about grep: branch too long in variable-length lookbehind assertion. If I went really high (past the 50000 range into the into the .{0,70000}, I got a complaint about grep: number too big in {} quantifier.

I'm not really sure why the number, 252 is considered too big for the lookbehind case. Maybe it has to do with the amount of memory needed to carry out such a lookbehind.

I checked and found that my length would not still be okay if I needed to count characters, figuring that a max would be

49 classification strings  *  5 letters  + 1 space + 49 underscores  =  295

which is greater than 251. However, I figure I could rewrite the pattern as

/(?<! (aaaa|abcd|bbbb|bcde| ... |wwww|wxyz)_.{0,251})/

giving me

49 * 4 + 1 + 1 = 198

, easily within the allowed length. I figured I might as well use the complete 251, just in case.


Feel free to comment about my misunderstandings of PCRE regexes. I love to learn, and I'd love to make this answer as accurate as possible.


Notes:

[1]

My system:

$ uname -a
CYGWIN_NT-10.0-19045 MY-MACHINE 3.6.3-1.x86_64 2025-06-05 11:45 UTC x86_64 Cygwin
$ bash --version | head -n 1
GNU bash, version 5.2.21(1)-release (x86_64-pc-cygwin)
Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): to comment
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Alan-Moore
  • User mentioned (0): @Dávid-Horváth
Posted by: bballdave025

79729475

Date: 2025-08-08 08:01:30
Score: 7
Natty: 5
Report link

how to resolve it's bug?
i still generate this bug.

how to resolve it?

Reasons:
  • RegEx Blacklisted phrase (1.5): how to resolve it?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): how to
  • Low reputation (1):
Posted by: rush scott

79729456

Date: 2025-08-08 07:43:26
Score: 2.5
Natty:
Report link

In Vscode
Press "ctrl + shift + x" to open extension
search and install Laravel Intelephense

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

79729453

Date: 2025-08-08 07:37:24
Score: 2
Natty:
Report link

If for any reason, someone is forced to use PHP 5.2 with PHPMailer 5.2.28 and through an office365 account, just set $crypto_method to STREAM_CRYPTO_METHOD_SSLv23_CLIENT.

Works with smtp.office365.com, port 587, SMTPSecure = 'tls'.

Still, you need to have a PHP server which supports TLS v1.2 and (probably) openssl.

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

79729445

Date: 2025-08-08 07:32:23
Score: 1.5
Natty:
Report link

You can use this docker image: postgis/postgis
It contains PostGis

Docker image link:
https://hub.docker.com/r/postgis/postgis/

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

79729441

Date: 2025-08-08 07:25:21
Score: 0.5
Natty:
Report link

I'm not sure why but it seems that you have disabled (or removed?) NuGet package sources. For the WinUI 3 Gallery, your package sources should look like this:

Package sources

Also make sure you have internet connection in case the required NuGet packages are not cached and VS needs to download them.

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-2):
Posted by: Andrew KeepCoding

79729430

Date: 2025-08-08 07:13:17
Score: 1
Natty:
Report link

In PHP you can directly access the index like this:

$_FILES['expediente']['name'][1]
$_FILES['expediente']['name'][2]
$_FILES['expediente']['name'][4]
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jenson Vivish

79729421

Date: 2025-08-08 07:02:14
Score: 2.5
Natty:
Report link

Your IDE thinks @json(...) is a JavaScript decorator (which only works in TS), but in Blade it’s just a server-side shortcut that Laravel turns into real JSON before sending to the browser.

Fixes

Reasons:
  • No code block (0.5):
  • User mentioned (1): @json
  • Low reputation (1):
Posted by: Rahul Dangwal

79729418

Date: 2025-08-08 07:00:14
Score: 1.5
Natty:
Report link

In my case, this happened because for some reason my ~/.zcompdump file became corrupt. So I had to delete it with...

rm -f ~/.zcompdump*

And then start a new terminal session

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

79729415

Date: 2025-08-08 06:55:13
Score: 3.5
Natty:
Report link

I suggest you to try the firebase-js-sdk, it's very easy to integrate for any js or ts based app:
https://docs.expo.dev/guides/using-firebase/#using-firebase-js-sdk

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

79729409

Date: 2025-08-08 06:47:11
Score: 0.5
Natty:
Report link

What put me on the right track was thinkOfaNumber's answer to this question.

What I was having trouble with was that I should have used was

"$HOME\.android\debug.keystore"

NOT %HOMEPATH%\.android\debug.keystore

NOT $env:HOMEPATH\.android\debug.keystore

on PowerShell on Windows. The one with %HOMEPATH% for some reason still outputted a SHA1 without warning me that the file was not found.

$ErrorActionPreference = 'Stop'
[string]$JdkRoot = Resolve-Path "C:\Program Files\Android\Android Studio\jbr"
[string]$JdkBin = Resolve-Path "$JdkRoot\bin"
[string]$DebugKeystoreFilePath = Resolve-Path "$HOME\.android\debug.keystore"
$ErrorActionPreference = 'Continue'
& "$JdkBin/keytool" -exportcert -alias androiddebugkey -keystore $DebugKeystoreFilePath -storepass android | openssl sha1 -binary | openssl base64 | Set-Clipboard; Write-Host "Copied to clipboard."

See also How to see Gradle signing report

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: Elijah Shadbolt

79729404

Date: 2025-08-08 06:38:09
Score: 1.5
Natty:
Report link

Thank you @Jimi to mention the root of problem. As you said, Handle of control was not created. DGV has a LoadingScreen when user wants to assign value as DataSource but, this screen is a form and must cover entire area of DGV. Meanwhile, this screen is visible in front of other controls and since the actual size and position of hidden DGV is not accessible, finally LoadingScreen is displayed in wrong size and position.

Solution

Inside code lines where the LoadingScreen must be shown, IsVisible method can return actual situation to decide possibility of showing LoadingSreen. As you can see in the following code, two factor for this purpose is checked: 1) IsHandleCreated (As you mentioned) 2) DGV is visible on screen.

public static Form Create(
    Control control,
    bool coverParentContainer = true,
    bool coverParentForm = false,
    string title = "Loading...",
    double opacity = 0.5)
{

    var frm = new CesLoadScreen();
    frm._title = title;
    frm.Opacity = opacity;

    if (!IsVisible(control))
        return frm;

    SetLoadingScreenSize(frm, coverParentContainer, coverParentForm, control);

    control.Resize += (s, e) 
                => SetLoadingScreenSize(frm, coverParentContainer, coverParentForm, control);

    frm.Show(control.FindForm());
    Application.DoEvents();

    return frm;
}

public static bool IsVisible(Control control)
{
    Rectangle screenBounds = Screen.FromControl(control).Bounds;
    Rectangle controlBounds = control.RectangleToScreen(control.ClientRectangle);

    bool isOnScreen = screenBounds.IntersectsWith(controlBounds);

    if (!control.IsHandleCreated || !isOnScreen)
        return false;

    if (!control.Visible)
        return false;

    return true;
}
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Jimi
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Hadi Mazareei

79729402

Date: 2025-08-08 06:28:07
Score: 2
Natty:
Report link

With intellij you can use Exclude classes and packages option in Run configuration -> modify options.

enter image description here

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: shailesh patil

79729401

Date: 2025-08-08 06:27:07
Score: 0.5
Natty:
Report link

I use a module package working fine. the below step:

for html & core embla, you can get from this URL: https://codesandbox.io/p/sandbox/ffj8m2?file=%2Fsrc%2Fjs%2Findex.ts

npm install embla-carousel --save

import { AfterViewInit, Component } from '@angular/core';
import EmblaCarousel, { EmblaOptionsType } from 'embla-carousel';
import Autoplay from 'embla-carousel-autoplay';
import ClassNames from 'embla-carousel-class-names';
import {
    addDotBtnsAndClickHandlers,
    addPrevNextBtnsClickHandlers,
    setupTweenOpacity,
} from '../../../../core/embla';

export class CarouselComponent implements AfterViewInit {
    emblaOptions: Partial<EmblaOptionsType> = {
        loop: true,
    };
    plugins = [Autoplay(), ClassNames()];

    ngAfterViewInit(): void {
        const emblaNode = <HTMLElement>document.querySelector('.embla');
        const viewportNode = <HTMLElement>emblaNode.querySelector('.embla__viewport');
        const prevBtn = <HTMLElement>emblaNode.querySelector('.embla__button--prev');
        const nextBtn = <HTMLElement>emblaNode.querySelector('.embla__button--next');
        const dotsNode = <HTMLElement>document.querySelector('.embla__dots');

        const emblaApi = EmblaCarousel(viewportNode, this.emblaOptions);
        const removeTweenOpacity = setupTweenOpacity(emblaApi);
        const removePrevNextBtnsClickHandlers = addPrevNextBtnsClickHandlers(
            emblaApi,
            prevBtn,
            nextBtn,
        );
        const removeDotBtnsAndClickHandlers = addDotBtnsAndClickHandlers(emblaApi, dotsNode);

        emblaApi
            ?.on('destroy', removeTweenOpacity)
            .on('destroy', removePrevNextBtnsClickHandlers)
            .on('destroy', removeDotBtnsAndClickHandlers);
    }
}
Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Abudy Gold

79729400

Date: 2025-08-08 06:27:06
Score: 10
Natty: 5.5
Report link

I am facing the same problem on my website. Somebody please help. https://4indegree.com

Reasons:
  • Blacklisted phrase (1): m facing the same problem
  • RegEx Blacklisted phrase (3): please help
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: Arun