79541258

Date: 2025-03-28 11:15:27
Score: 4
Natty: 5
Report link

Working on a NetUtils plugin if still interested!
https://github.com/macchie/capacitor-net-utils

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

79541251

Date: 2025-03-28 11:12:26
Score: 0.5
Natty:
Report link

Here is another example to illustrate the lifetime of mutable references:

struct Interface<'a> {
    manager: &'a mut Manager<'a>
}

impl<'a> Interface<'a> {
    pub fn noop(self) {
        println!("interface consumed");
    }
}

struct Manager<'a> {
    text: &'a str
}

struct List<'a> {
    manager: Manager<'a>,
}

impl<'a> List<'a> {
    pub fn get_interface(&'a mut self) -> Interface {
        Interface {
            manager: &mut self.manager
        }
    }
}

fn main() {
    let mut list = List {
        manager: Manager {
            text: "hello"
        }
    };

    list.get_interface().noop();

    println!("Interface should be dropped here and the borrow released");

    // this fails because inmutable/mutable borrow
    // but Interface should be already dropped here and the borrow released
    use_list(&list);
}

fn use_list(list: &List) {
    println!("{}", list.manager.text);
}

Let's understand what we're constraining here. I recommend reading the official Rust book in its original English version. A lifetime represents the valid interval of a variable from creation to destruction.

struct ImportantExcerpt<'a,'b,'c,'d,'e> {
    part1: &'a str,
    part2: &'b str,
    part3: &'c str,
    part4: &'d Me<'e>
}
struct Me<'a>{
    part5: &'a mut Me<>,
}

According to the rules, the struct's lifetime is within the intersection of 'a through 'e. The potential lifetime 'd should also be within 'e, due to the constraints of the Me struct. There are no constraints between 'a, 'b, and 'c.

Lifetimes also have 3 elision rules. Note the terms input lifetimes and output lifetimes, referring to parameters and return values:

  1. Each reference parameter in a function gets a lifetime parameter.

  2. If there's only one input lifetime parameter, it's assigned to all output lifetime parameters.

  3. The first parameter of a method, unless it's a new method, is generally &self, &mut self, self, Box<self>, Rc<self>, etc. If it's &self or &mut self, its lifetime is assigned to all parameters.

Circular References https://course.rs/compiler/fight-with-compiler/lifetime/too-long1.html

The most unique aspect of this example is that we typically explain lifetimes in functions, structs, and methods separately. But here it's complicated with various constraints. Consider combined approaches like:

impl<'a> List<'a> {
    pub fn get_interface(&'a mut self) -> Interface<'a> {
        // ...
    }
}

In the method &'a mut self, the parameter is actually &'a mut List<'a>. Because methods can be written as functions:

pub fn get_interface(&'a mut List<'a> input) -> Interface<'a> {
    // ...
}

This approach combines struct lifetime constraints with function parameter lifetime constraints. It's called "lifetime binding" or "lifetime entanglement", where the compiler thinks this borrow never ends. It means:

When writing code, follow this principle: avoid reference cycles like &'a mut SomeType<'a>. Change it to:

struct Interface<'b,'a> {
    manager: &'b mut Manager<'a>
}
​
impl<'a> List<'a> {
    pub fn get_interface(&mut self) -> Interface {
        // ...
    }
}

But according to rule 3, the lifetime of &mut self is assigned to Interface. The compiler's inferred annotation would be:

impl<'a> List<'a> {
    pub fn get_interface<'b>(&'b mut self) -> Interface<'b,'b> {
        Interface {
            manager: &mut self.manager
        }
    }
}

However, since the created Interface uses &mut self.manager<'a> with lifetime 'a, the compiler thinks the return value is Interface<'_,'a>. This means the compiler's inference is incorrect, and we need to manually supplement:

impl<'a> List<'a> {
    pub fn get_interface<'b>(&'b mut self) -> Interface<'b,'a> {
        Interface {
            manager: &mut self.manager
        }
    }
}

Final Recommendations

I emphasize again, avoid mutable reference cycles like &mut'a SomeType<'a>, because of how Rust types behave with lifetime parameters (variance):

  1. Immutable references are covariant with respect to lifetimes: meaning longer lifetime references can be "shrunk" to shorter lifetime references.

  2. Mutable references are invariant with respect to lifetimes: meaning no lifetime conversions are allowed, they must match exactly.

Immutable circular references are acceptable. For example, modify struct Interface:

struct Interface<'a> {
    manager: &'a Manager<'a>
}
​
// ... rest of the code with immutable references

Also avoid mutable reference propagation like & SomeType<'a>->AnotherType<'a,'a'>, because you need to manually match lifetimes. Use Rc instead of struggling with this; the performance cost isn't significant.

A third example of mutable circular references: m1's type is &'_ mut S<'a>, but later m1 creates a self-reference, making m1's type &'a mut S<'a>, which violates our rule about avoiding such patterns:

struct S<'a> {
    i: i32,
    r: &'a i32,
}
let mut s = S { i: 0, r: &0 };
let m1 = &mut s;
m1.r = &m1.i;  // s.r now references s.i, creating a self-reference

References: https://stackoverflow.com/a/66253247/18309513 and the answers it mentions.

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

79541249

Date: 2025-03-28 11:12:26
Score: 2.5
Natty:
Report link

I was having the similar issue, getting the same error code. So, I tried to research the documentation and it didn't say much.

Then I tried the following -

{
"json": {
    "code": "hahhaa",
    "site_id": "6249"
    }
}

This was the body I sent if the request is of post type (mutation). Else, If you want to send the values in query parameters for "GET" request (query), then you can do the following -

?input={"json":{"code":"hahhaa","site_id":"4548652"}}

Add the above in the url at the last, obviously replacing the values inside and you are good to go.

Pre-Requisites -

Your trpc.procedure.input code looks something like this -

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): getting the same error
  • Low reputation (1):
Posted by: Deathgods

79541234

Date: 2025-03-28 11:06:24
Score: 0.5
Natty:
Report link

You installed pyserial in your Python39 environment. It's not there in your Python311 environment. So either you need to run your program in the Python39 environment or install pyserial in the Python311 environment.

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

79541233

Date: 2025-03-28 11:06:24
Score: 2
Natty:
Report link

As far as I understand, you want to go to a new page when the FamilyFetchingLoadingState state is triggered.

Is it possible that you created a ProfileBloc more than once? If you are done with a ProfileBloc, you need to close it. If you create another one without closing it, this may happen. If you are going to use it continuously, you need to share the same block object.

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

79541230

Date: 2025-03-28 11:02:24
Score: 3
Natty:
Report link

I can see that you posted this question on the Matillion forums yesterday as well. I believe that the outcome there was advising you to speak with your Azure admin at this point.

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

79541228

Date: 2025-03-28 11:01:23
Score: 4
Natty:
Report link

I wrote a function based on Nizam Mohamed's answer. Please find the code here: https://github.com/ilario/replicate_object_python.

An usage example is reported here: https://stackoverflow.com/a/79539546/5033401 or in the readme of the repository.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Ilario Gelmetti

79541226

Date: 2025-03-28 11:01:23
Score: 3.5
Natty:
Report link

I think for DND in react DND Kit: https://dndkit.com/ is a great option to use.

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

79541221

Date: 2025-03-28 10:58:22
Score: 1.5
Natty:
Report link

Based on an answer that was given here, with the above file structure, it turns out the correct way to reference the font (from inside _typography.scss) is the following:

@font-face {
  src: url('~../assets/FuturaCyrillicExtraBold.ttf');
  font-family: 'FuturaCyrillicExtraBold';
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Emmanuel

79541218

Date: 2025-03-28 10:56:21
Score: 2
Natty:
Report link

I only got Override/replace jsdoc properties, when I used newProps & import(...) | newProps

sample code

other variations always persisted the JSDocs attributes of what was imported

  1. newProps & import(...) | newProps newProps & import(...)| newProps

  2. newProps & import(...) newProps & import(...)

  3. import(...) * newProps import(...) * newProps

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

79541210

Date: 2025-03-28 10:53:21
Score: 2.5
Natty:
Report link

I came to a conclusion that Facebook documentation is inaccurate and there is no such API. Learn to live with the fact that if you pass parameters with App Events, you can not see them anywhere, but just know what they are and use it as needed, e.g. for ads, target audience etc.

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

79541207

Date: 2025-03-28 10:50:20
Score: 1
Natty:
Report link

In my case, I installed the package that I'm trying to install with pip install . . It turns out I have to make it editable using pip install -e . so that the package that is run is in the src not in the pip's directory

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

79541202

Date: 2025-03-28 10:46:19
Score: 0.5
Natty:
Report link

Why is using a dictionary slower than sorting a list to generate frequency array?

Apparently because one input is specially crafted to hack Python's dict implementation, so that building your dict doesn't take the expected linear time. It can take up to quadratic time, and likely they did that. See Python's TimeComplexity page (showing O(n) worst case time for each dict access) and Tutorial: How to hack hash table in Python 3 on CodeForces itself.

One way to defeat it is to simply add 1 to all the numbers, i.e., change

    for num in arr:

to this:

    for num in arr:
        num += 1

Then the solution doesn't get stopped and rejected at the 1 second time limit but gets accepted with around 0.18 seconds. Despite doing more work, and without really changing the data like randomizing or sorting would. The effect is simply that Python's collision resolution takes different paths then, which is enough to thwart the brittle attack.

Another way, also accepted in around 0.18 seconds, is to simply not convert to ints, instead counting the strings. I.e., change

    arr = map(int, input().split())

to this:

    arr = input().split()
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why is
  • Low reputation (1):
Posted by: Robert

79541195

Date: 2025-03-28 10:43:19
Score: 0.5
Natty:
Report link

Wrap your entire element in an tag (if you want a link) or a (if you want to trigger a JavaScript function). To make the entire SVG clickable regardless of its shape, set pointer-events: all; on the element itself (or on a container element around it). This will ensure clicks register even in the transparent areas within the SVG's bounding box.

React Example (Link):

import React from 'react';

function ClickableSVG() {
  return (
    <a href="https://www.stackoverflow.com" style={{ display: 'block' }}> 
      <svg style={{ pointerEvents: 'all', width: '200px', height: '200px' }} 
viewBox="0 0 100 100">

        {/* Your SVG path here */}

        <path d="M50,10 L90,90 L10,90 Z" fill="blue" /> {/* Example shape */}
      </svg>
    </a>
  );
}

export default ClickableSVG;

React Example (Button):

import React from 'react';

function ClickableSVG() {
  const handleClick = () => {
    alert('SVG Clicked!');
  };

  return (
    <button onClick={handleClick} style={{ display: 'block', padding: 0, 
border: 'none', background: 'none' }}>
      <svg style={{ pointerEvents: 'all', width: '200px', height: '200px' }} 
viewBox="0 0 100 100">

        {/* Your SVG path data here */}

        <path d="M50,10 L90,90 L10,90 Z" fill="blue" /> {/* Example shape */}
      </svg>
    </button>
  );
}

export default ClickableSVG;
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sandro Tushurashvili

79541194

Date: 2025-03-28 10:42:18
Score: 1.5
Natty:
Report link

I don't think (click) works on div elements.

Also, try removing the ; symbol from: <button (click)="updateCount();" type="button">Button so use this: <button (click)="updateCount()" type="button">Button

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

79541192

Date: 2025-03-28 10:42:18
Score: 0.5
Natty:
Report link

Solution

The solution involves adjusting the heartBeatToConnectionTtlModifier parameter in your STOMP acceptor configuration in broker.xml. This parameter controls how the broker interprets client heartbeats in relation to connection timeouts.

Implementation

Modify your STOMP acceptor configuration in broker.xml as follows:

<!-- STOMP Acceptor -->
<acceptor name="stomp">tcp://0.0.0.0:61613?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;protocols=STOMP;useEpoll=true;heartBeatToConnectionTtlModifier=10.0</acceptor>

Explanation

heartBeatToConnectionTtlModifier: This parameter determines how the broker calculates the connection timeout based on the client's heartbeat settings.

Default value is typically 2.0

Increasing it to 10.0 makes the broker more lenient with heartbeat timing

The formula is: connectionTTL = heartBeatToConnectionTtlModifier * max(clientHeartBeatSendFrequency, clientHeartBeatReceiveFrequency)

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

79541188

Date: 2025-03-28 10:40:18
Score: 1
Natty:
Report link

I think the best approach is to create a Configure event callback which rejects sizes that are smaller than you want.

e.g.

'f' ⎕wc 'form' ('event' 'configure' 'onconfig')

⎕cr 'onconfig'
r←onconfig W
⎕←W
:If W[5]<10
:OrIf W[6]<20
r←0
:Else
r←1
:EndIf

This onconfig callback will reject the Configure event by returning 0 if W[5] < 10 or W[6] < 20.

W[5] is Height and W[6] is Width

⎕IO is 1

Regards,

Vince

Reasons:
  • Blacklisted phrase (1): Regards
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dyalog Limited

79541179

Date: 2025-03-28 10:35:17
Score: 1.5
Natty:
Report link

I've somewhat resolved the issue by removing the PostgreSQL driver from DBeaver, and then installing an older one manually.

The DBeaver project was exported from an instance with 42.5.2 driver installed, and imported into DBeaver with driver v42.7.4. This may have caused the issue.

Now connections are working again, although the error still pops up once in a while, for a few seconds.

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

79541176

Date: 2025-03-28 10:33:16
Score: 1
Natty:
Report link

Just to add.

xample extension ID in manifest.json for Manifest Version 3

"browser_specific_settings": {
  "gecko": {
    "id": "My chosen ID for this extension"
  }
}

The extension ID is an email probably used for your dev account.

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

79541174

Date: 2025-03-28 10:31:16
Score: 2
Natty:
Report link

INT3

NOP

Write the two lines above in your code and CTRL+ F9 run

or F4 run to highlight bar, will run to INT3 and stop. F7 to continue and it skips a byte of code which is why I put in the NOP code.

good luck to ya.....

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

79541162

Date: 2025-03-28 10:27:15
Score: 3.5
Natty:
Report link

Thank you for your comment and link, Timothy Rylatt. I couldn't get it to work with the link that you sent, but through it and some other searching I got to a solution that seems to work.

This is the new onLoad. It saves variable connected to the document. The delete is necessary for opening multiple times (based this on this page: MS guide for document varialbles)

Sub OnLoad(ribbon As IRibbonUI)
  Set myRibbon = ribbon
  Logic.OnLoad

  Dim lngRibPtr As Long
  lngRibPtr = ObjPtr(ribbon)

  ThisDocument.Variables("RibbonRef").Delete
  ThisDocument.Variables.Add Name:="RibbonRef", Value:=lngRibPtr
  MsgBox ThisDocument.Variables("RibbonRef").Value
  
End Sub

This is the refresh-function, I just call it when I want to invalidate anywhere.

Public Sub RefreshRibbon()
    If myRibbon Is Nothing Then
        If Not ThisDocument.Variables("RibbonRef") Is Nothing Then
            Set myRibbon = GetRibbon(ThisDocument.Variables("RibbonRef"))
            myRibbon.Invalidate
        End If
    Else
        myRibbon.Invalidate
    End If
End Sub

It calls on a special GetRibbon function that transforms the Long back to a IRibbonUI reference.

Public Function GetRibbon(ByVal lRibbonPointer As Long) As Object
    Dim objRibbon As Object
    CopyMemory objRibbon, lRibbonPointer, LenB(lRibbonPointer)
    Set GetRibbon = objRibbon
    Set objRibbon = Nothing
End Function

I based my solution mostly on this article: Lost state handling, Excel

It is however made for Word so I based my modifications on the comments in that article. It did not work since the "CopyMemory" that was used is not something inbuilt in VBA (at least my VBA was completely ignorant of it). So therefore I had to add a declaration of it at the top of my module. I found that here: CopyMemory-Function

Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" _
            (lpDest As Any, lpSource As Any, ByVal cbCopy As Long)

Further sources that helped me along that could be of interest for someone still struggling:

https://answers.microsoft.com/en-us/msoffice/forum/all/ribbon-customization-invalidate-generates-error/7f202365-33b7-4c9c-a1ea-7ce8fe27c017

https://learn.microsoft.com/en-us/office/vba/api/office.documentproperties.add

What happens to the Word session ribbon after closing and reopening a document with a custom ribbon?

There is still an issue however in that every time I refresh, the "invalidate" line(s) generate the message "Argument not optional" (but since the ribbon gets invalidated and correctly updated, it clearly is optional... whatever it is). All examples that I have seen so far just use it on its own like I do here, so I have not been able to figure out what argument I am supposed to use.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): this article
  • Blacklisted phrase (1): did not work
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Oscar Danielsson

79541159

Date: 2025-03-28 10:25:14
Score: 7 🚩
Natty: 5
Report link

Cannot upvote, {PH1} SPACE is the solution, thank youuu

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): upvote
  • RegEx Blacklisted phrase (2): Cannot upvote
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Cannot
  • Low reputation (1):
Posted by: Edoardo Lagostina

79541157

Date: 2025-03-28 10:24:14
Score: 1
Natty:
Report link

In my case it was not working because the profile configuration was in a module pom.xml while the project just imported that module, apparently enabling the maven profile in the IntelliJ maven window doesn't enable for all modules, but only the main one,

it may work as expected if using maven reactor, instead of multiple poms that work independently but are interconnected adding them as dependency

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Kevin Guanche Darias

79541153

Date: 2025-03-28 10:22:14
Score: 1
Natty:
Report link

If your config.json contains "credsStore": "desktop" and you are on a Mac then your credentials are stored in the Mac Keychain app.

Open the app and look for a password called "Docker Credentials", it contains the address and the password for the registry.

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

79541151

Date: 2025-03-28 10:21:13
Score: 1
Natty:
Report link

We can use across(everything()) in reframe.

my_data |> 
  rowwise() |> 
  reframe(across(everything()))
# A tibble: 4 × 3
     C1    C2    C3
  <dbl> <dbl> <dbl>
1     1     5     9
2     2     6    10
3     3     7    11
4     4     8    12
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: BhavinVala

79541149

Date: 2025-03-28 10:20:13
Score: 2
Natty:
Report link

C:\Users\user\AppData\Local\Android\Sdk\build-tools\35.0.0\apksigner.bat sign ^

--ks "C:\Users\user\Documents\pro\jks\123456.jks" ^

--ks-pass pass:123456 ^

--ks-key-alias 123456 ^

--key-pass pass:123456 ^

--out signed_app.apk ^

final.apk

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

79541148

Date: 2025-03-28 10:20:13
Score: 1.5
Natty:
Report link

A short note for VS Code. (As an equivalent for solving from Osman Hal)

Put in your .csproj this

<PropertyGroup>
    <NoWin32Manifest>true</NoWin32Manifest>
  </PropertyGroup>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: GRIGORIY LVOV

79541136

Date: 2025-03-28 10:14:07
Score: 6.5 🚩
Natty:
Report link

I'm a newer for the autodesk forge,and also meet this problem. Have you solved it? I have update the endpoint to the latest number, but stillnot working.

Reasons:
  • Blacklisted phrase (2): Have you solved it
  • RegEx Blacklisted phrase (1.5): solved it?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Dan Yin

79541132

Date: 2025-03-28 10:14:06
Score: 9 🚩
Natty: 5.5
Report link

did you find a way to list all pages by ID from a Notion workspace?

Reasons:
  • RegEx Blacklisted phrase (3): did you find a way to
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): did you find a
  • Low reputation (1):
Posted by: Olivenders

79541131

Date: 2025-03-28 10:13:06
Score: 3
Natty:
Report link

Yes , it did crash opencv for a few months but the latest version of windows has no issues but if u still face any crashes then install python 3.7.6 or 3.9.6

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

79541129

Date: 2025-03-28 10:13:06
Score: 2.5
Natty:
Report link

get 1 solid answer from gmpy2 maintainer.

One last comment: the values of precision, emax and emin are slight different between the IEEE standards and the MPFR library. If e is the exponent size and p is the precision (in IEEE terms), then precision should be p+1,emax should be 2**(e-1) and emin should be 4-emax-precision. This doesn't impact your question since it only changes emax.

but in which document can i find this? i take a glance and do search in official gmpy document https://gmpy2.readthedocs.io/en/latest/mpfr.html, find nothing regarding this. why emin/emax/precision set that value? why not directly as emax=15, emin as -14, precison as 11 directly?

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: 苑克乾

79541127

Date: 2025-03-28 10:12:05
Score: 0.5
Natty:
Report link

Helo based on the docs here https://developers.mekari.com/docs/kb/hmac-authentication/node#creating-hmac-signature

you may need to add header 'Date' also with Format must follow RFC7231. Example: Wed, 10 Nov 2021 07:24:29 GMT

shouldbe like this

curl --request POST 'https://api.mekari.com/qontak/chat/v1/broadcasts/whatsapp/direct' \
        --header 'Authorization: hmac username="{{Username}}", algorithm="hmac-sha256", headers="date request-line", signature="{{Signature}}"' \
        --header 'Date: Fri, 28 Mar 2025 10:04:47 GMT' \
        --header 'Content-Type: application/json' \
        --data-raw '{
  "to_name": "Test User",
  "to_number": "6281234567890",
  "message_template_id": "60cccaa0-ccd9-4efd-bdfb-875859c4b50a",
  "channel_integration_id": "56b60c3c-0123-46af-958b-32f3ad12ee37",
  "language": {
    "code": "id"
  },
  "parameters": {
    "buttons": [
      {
        "index": "0",
        "type": "url",
        "value": "123456"
      }
    ],
    "body": [
      {
        "key": "1",
        "value_text": "123454321",
        "value": "otp"
      }
    ]
  }
}' | jq

voila!

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

79541115

Date: 2025-03-28 10:10:05
Score: 0.5
Natty:
Report link
After long digging into parameters and comparing explain (which were very different), I found out that "semijoin=on" in optimizer_switch was the issue. After turning  "semijoin=off" queries were executed in less than sec.
It seems that, in my case, the semijoin was pushing the IN clause at the beginning of the execution list before all other where/join.... comes after and pushing the large output results to a materialized temporary table which was slowing down.
So it's more my experience than a real question, as I didn't find the answer on internet, but I hope that semijoin did get smarter in newest Mariadb versions.
    
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Kador

79541112

Date: 2025-03-28 10:10:05
Score: 3
Natty:
Report link

Are you certain that there is no issue on the DB side, usually this occurs when there is connection reset happen with DB. Check the db logs as well for any connection failures.

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

79541108

Date: 2025-03-28 10:09:04
Score: 3.5
Natty:
Report link

Veeery late reply but I had same issue, for me it was solved by using frontslash in path instead of backslash.

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

79541092

Date: 2025-03-28 10:04:03
Score: 4
Natty: 4.5
Report link

See also Qt Project: WIP: Add jemalloc support https://codereview.qt-project.org/c/qt/qtbase/+/620056 .

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

79541090

Date: 2025-03-28 10:03:02
Score: 2
Natty:
Report link
  1. first try this--> npx expo start -c
    if not works

  2. do this --> npx expo start --clear

this will work

Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user30091250

79541089

Date: 2025-03-28 10:02:02
Score: 3
Natty:
Report link

look for config.xml and change from yes to no the value of <GUIConfig name="RememberLastSession">no</GUIConfig>

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

79541081

Date: 2025-03-28 09:59:02
Score: 0.5
Natty:
Report link

I solved similar problem by running following commands on terminal:

1- "flutter clean"

2- "rm pubspec.lock"

3- "flutter pub get"

(

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Durmuş Safa Aydoğmuş

79541080

Date: 2025-03-28 09:59:02
Score: 0.5
Natty:
Report link
[cmd]$ git checkout fix_4077
branch 'fix_4077' set up to track 'origin/fix_4077'.
Switched to a new branch 'fix_4077'
[cmd]$ git branch
  dev
* fix_4077
[cmd]$ git merge cq
merge: cq - not something we can merge

Did you mean this?
    origin/cq
[cmd]$ git merge origin/cq
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nee

79541065

Date: 2025-03-28 09:53:00
Score: 2
Natty:
Report link

cy.get('a[href="/admin/contents/109"]').contains('Content 6').click();

Please check with this solution you have click the specific link in the page.

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

79541063

Date: 2025-03-28 09:53:00
Score: 1.5
Natty:
Report link

2025: set FastAPI constructor debug input argument to True (default value is of course False):

app = FastAPI(debug=True)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jovan Djakovic

79541061

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

According to this official example,

If our size is dynamic, we have to make sure our frame is visible before calling SDK.resize() with no arguments. In that case, we would instead do something like this:

SDK.notifyLoadSucceeded().then(() => {
    // we are visible in this callback.
    SDK.resize();
});

Other than resize(), I haven't found any other suggestions yet.

Reasons:
  • RegEx Blacklisted phrase (2): any other suggestions
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Ziyang Liu-MSFT

79541057

Date: 2025-03-28 09:48:59
Score: 1
Natty:
Report link

If your data isn't governed by an underlying law involving regularities (which seems to be the case in your example), Knn is indeed what makes the most sense, and linear methods (Gaussian modeling, regression, etc.) won't help you.

The best is to use nonlinear methods. You could try using a random forest method. Decision trees create a tree structure that delineates areas and identifies clusters. You just need to limit the number of parameters to avoid overfitting (like max depth or min samples per leaf), especially on ambiguous data like the one you've shown.

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

79541055

Date: 2025-03-28 09:47:59
Score: 1
Natty:
Report link

Solved thanks to @Topaco's comments. Here is the updated code with padding disabled for intermediate chunks and previous block IV usage.

public static int ServeVideoChunk(Stream encryptedStream, Stream outputStream, long offset, int chunk)
{
    using var aes = Aes.Create();
    aes.Mode = CipherMode.CBC;
    aes.Padding = PaddingMode.PKCS7;
    aes.Key = Key; // Predefined key (128 bits)
    var blockSize = aes.BlockSize / 8; // 16 bytes


    // Seek one block before the offset if possible to get the IV
    var seekPosition = Math.Max(0, offset - blockSize);
    encryptedStream.Seek(seekPosition, SeekOrigin.Begin);

    if (seekPosition <= 0)
    {
        aes.IV = Iv; // Predefined initialization vector (128 bits)
    }
    else
    {
        var iv = new byte[blockSize];
        encryptedStream.Read(iv, 0, blockSize);
        aes.IV = iv;
    }

    // Remaining ciphertext to decrypt
    var delta = encryptedStream.Length - offset;

    // EOF
    if (chunk > delta)
    {
        // The delta is supposed to already be block aligned
        chunk = (int)delta;
    }
    else
    {
        // Disable padding for intermediate chunks
        aes.Padding = PaddingMode.None;
    }

    using var cryptoStream = new CryptoStream(encryptedStream, aes.CreateDecryptor(), CryptoStreamMode.Read);

    var buffer = new byte[chunk];
    cryptoStream.Read(buffer, 0, chunk);
    outputStream.Write(buffer, 0, chunk);

    return chunk;
}
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Topaco's
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Hazard4U

79541054

Date: 2025-03-28 09:47:59
Score: 1
Natty:
Report link

Why is hello from provider printed last?

Order of Hook Execution: When the Game component is rendered, it first executes the custom hook useHoo, which runs any useEffect inside it.

Provider's useEffect: The useEffect in GameProvider will fire after the component has rendered and React has finished processing all the hooks in game.jsx.

Effect Execution Order: React schedules effects to run after the render phase, so the order of execution you’re observing is because React first runs the useEffect in useHoo, then runs the one in Game, and finally the one in GameProvider.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why is
  • Low reputation (1):
Posted by: Thearoth

79541050

Date: 2025-03-28 09:45:59
Score: 1.5
Natty:
Report link

This may not be much of an answer, but rather a comment with a picture.

The absence of an "auto refresh" may be a good thing (Source: https://think-like-a-git.net/):

enter image description here

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

79541046

Date: 2025-03-28 09:44:58
Score: 0.5
Natty:
Report link

I just stumbled over this question and face the same challenge in our API.

My current idea for implementing this is to respond with a 201 - CREATED which semantically would mean, that a login request was created, but is not yet completed and the user has to do something with it.

With this response I also generate and return a challenge token that must be provided in combination with the two-factor code to another endpoint handling pending two-factor requests. The challenge token must be short lived, about 5 minutes or so.

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

79541039

Date: 2025-03-28 09:42:58
Score: 2
Natty:
Report link

I know this is an old question but 2000 people have come this way (as did I) and the answer didn't help me. I now figured out why I was getting the type mismatch when tying to Set a declared shape variable to a known Powerpoint shape object..... I had dimensioned a shape variable in my vba code . . . but that vba code was MS Project not Powerpoint, Project code was populating a powerpoint presentation. So

Dim shp as shape

(within the MSP Code) dimensioned a shape from the MSP object library. The required correction was:

Dim shp as Powerpoint.shp (or if not bound, "Dim shp as object" would work).

Reasons:
  • Blacklisted phrase (1): help me
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Malcolm.Farrelle

79541037

Date: 2025-03-28 09:40:57
Score: 1.5
Natty:
Report link

Here's a correctly formatted URL:

https://your.swarm.instance/api/v11/reviews/NNNNNN
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Erik Magnusson

79541036

Date: 2025-03-28 09:40:57
Score: 1.5
Natty:
Report link

he project aims to provide metadata for Win32 APIs.

Most developers will not consume the metadata directly and will instead use language projections that themselves consume the metadata and project the APIs into the idiomatic patterns of the languages.

I suggest you could refer to the link: https://github.com/microsoft/win32metadata/blob/main/docs/faq.md

If you want to get Win32 headers, I suggest you should use `Windows SDK` instead of `win32metadata`.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Даниил Касимов

79541033

Date: 2025-03-28 09:38:56
Score: 2.5
Natty:
Report link

Please Below code using barcode multiple lines

^XA

^FO6,20

^BX,3,200

^FH_^FDFirst_0D_0ASecond_0D_0AThird^FS

^XZ

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

79541018

Date: 2025-03-28 09:29:54
Score: 1.5
Natty:
Report link

A bit late to the party, but one reason why this might not be working is that your shell may be stripping the quotes so that sqlplus never sees them. Though if that were the case, I would have thought using '"..."' would have worked...

Even still, have you tried escaping the quotes with \? i.e.,

sqlplus -S -L USER/\"+oS0pocWEpvaX++CN3]8nM‘2eX\"@host @script.sql
Reasons:
  • Whitelisted phrase (-1): have you tried
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Simon Swan

79541009

Date: 2025-03-28 09:24:53
Score: 2
Natty:
Report link

Using DataFrameWriterV2, this is possible:

spark.range(10).withColumn("tmp", lit("hi")).writeTo("test.sample").using("iceberg").tableProperty("write.spark.accept-any-schema", "true").createOrReplace()
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: tru

79541008

Date: 2025-03-28 09:24:52
Score: 6 🚩
Natty: 4.5
Report link

i have same issue!! 2 year and problem still there...

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): i have same issue
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: no_one

79541004

Date: 2025-03-28 09:23:52
Score: 3.5
Natty:
Report link

it is helpful for me ,thanks.

However, the official also has its own method, but I can not follow the official implementation, because the link is invalid, I can not find the right tool to make font.png

enter image description here

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): enter image description here
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: happy

79541001

Date: 2025-03-28 09:21:51
Score: 4.5
Natty: 4
Report link

My answer is the same as the in above

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

79540995

Date: 2025-03-28 09:20:51
Score: 1.5
Natty:
Report link

docker container rm <container-name> & docker-compose up

is better than '&&' as it also works if you haven't yet built the container of have removed it by some other means.

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

79540992

Date: 2025-03-28 09:19:51
Score: 0.5
Natty:
Report link

The culprit was the pageable variable which has sorted with start,desc . By changing the sorting to other field like practitionerId the error went away.

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

79540986

Date: 2025-03-28 09:17:50
Score: 0.5
Natty:
Report link

They can be set in config.py by ROW_LIMIT and SAMPLES_ROW_LIMIT

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Amir Mofakhar

79540980

Date: 2025-03-28 09:14:49
Score: 0.5
Natty:
Report link

I recently came across the same issue and found a solution.

Using the authV2 extension for az cli the following command works:

az webapp auth update --resource-group RESOURCE --name APP --set 'identityProviders.azureStaticWebApps.registration={}'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bluuu

79540979

Date: 2025-03-28 09:14:49
Score: 1
Natty:
Report link
  1. Extract the common logic into a separate shared library (e.g., a .ClassLib project).

    Both Project A and Project B reference this library.

    • No HTTP overhead, no duplication, guaranteed consistency.
  2. If a shared library isn’t possible, use conditional dependency injection:

    In Project A, inject the direct implementation (no HTTP).

    In Project B, inject the Typed HTTP Client (calls Project A’s API).

    Ensures the same logic is executed in both cases.

Why Avoid Self-HTTP Calls?

Alternative: MediatR (In-Process Mediator)

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

79540969

Date: 2025-03-28 09:08:48
Score: 4
Natty:
Report link

Try reinstalling node, and clear cache

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

79540965

Date: 2025-03-28 09:04:47
Score: 3
Natty:
Report link

Navigate to Tools>Install Hyper CLI command in PATH

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

79540961

Date: 2025-03-28 09:03:47
Score: 2
Natty:
Report link

Yes, the application message size should be considered for better performance. If the message size exceeds the MTU (typically 1500 bytes), TCP will fragment the message, adding overhead with extra headers per fragment. A message size of 1400 bytes avoids fragmentation and is more efficient, while 3000 bytes will likely be fragmented, causing higher overhead and potentially worse performance. Aim for a size that fits within the MTU to avoid fragmentation.

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

79540933

Date: 2025-03-28 08:54:45
Score: 2
Natty:
Report link

Resolved by:

But cannot be sure if that was exactly what helped, maybe just the second reboot itself

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

79540932

Date: 2025-03-28 08:54:44
Score: 7 🚩
Natty: 6.5
Report link

Hi Barbara have you solved the problem ? I have same one too.

Reasons:
  • Blacklisted phrase (1.5): have you solved the problem
  • RegEx Blacklisted phrase (1.5): solved the problem ?
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: nasleg

79540929

Date: 2025-03-28 08:53:44
Score: 2
Natty:
Report link

This bug has now been fixed and released. It is included in Neo4j version 2025.03.0, which is available for download from the deployment center (https://neo4j.com/deployment-center/), and it is also the current version on Aura (https://console.neo4j.io/).

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

79540925

Date: 2025-03-28 08:51:43
Score: 1
Natty:
Report link

I fixed it by change location of derive data Default => Relative

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

79540922

Date: 2025-03-28 08:50:43
Score: 1
Natty:
Report link

I did submit a bug report, and had the following kind statement from the developers

"Thanks for reporting. This problem is caused by a bug in the update process of our installers.

I'm afraid the only solution is for you to uninstall Spyder and manually install 6.0.5. That way Spyder will work again without any issues. You can download that version from:

https://github.com/spyder-ide/spyder/releases/tag/v6.0.5

We're really sorry for the inconvenience."

I followed this advice, and this worked well.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): solution is
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: A. N. Other

79540919

Date: 2025-03-28 08:50:43
Score: 2.5
Natty:
Report link

Adding to @Philipp's response if you want also Hot Reload to work you need change 5th step target dependencies to:

BeforeTargets="ResolveStaticWebAssets" AfterTargets="BundleScopedCssFiles"

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Philipp's
  • Low reputation (0.5):
Posted by: Myfero

79540918

Date: 2025-03-28 08:50:43
Score: 1
Natty:
Report link
  1. Tools/Options.../Editor/Language/(Language Delphi)/Block Indent --> 4, Save;

  2. Select a piece of code (the finished fragment), press Ctrl+D;

  3. If the formatter didn't work, transfer the piece of code to another page of the editor and repeat formatting there.

PS: Additional formatting options:

Tools/Options.../Language/Formatter/Delphi

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

79540911

Date: 2025-03-28 08:46:42
Score: 3.5
Natty:
Report link

I think Trino does not support operations on most external databases

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

79540910

Date: 2025-03-28 08:46:42
Score: 1
Natty:
Report link

First stop all the processes that PGADMIN4 launched. Then delete these folders (using the example of Linux Mint 21): ~/.pgadmin4, ~/.config/pgadmin4. After that, start the application and everything works.

P. S. At the moment (March, 28, 2025) PGADMIN4 is already supported in the Python 3.11 version.

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

79540908

Date: 2025-03-28 08:45:42
Score: 1
Natty:
Report link

Maybe this answer will come to late, however I am currently on something similar.

When you want to utilize the BFF pattern. You are mostly on the right track. But you have to use the same client in keycloak for the frontend and backend and make it confidential and have the client secrets in the backend.

Making the client confidential does not mean it wont be reachable without the secrets. Only the token endpoints of the client for this example are not reachable without the clients secrets. (Resulting in a 401 without the secrets)

So the user still can authenticate itself against the client which then passes the authentication codes to your BFF which then exchanges them with the client secrets for tokens on the token endpoint.

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

79540906

Date: 2025-03-28 08:45:42
Score: 1.5
Natty:
Report link

A great article demonstrates a pixel-perfect approach using a single-color layer on a canvas. When the user clicks on the canvas, the script retrieves the click position and checks the color of the corresponding pixel in the image data. By matching this color to predefined values, you can accurately determine which image was clicked.

Full article describing this technic - Thanks to Leoche

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

79540903

Date: 2025-03-28 08:44:41
Score: 2.5
Natty:
Report link

I'm not super confidant with UE5, but I have had this happen to me and I can't remember what I did to fix it.

Are you always using

UCLASS(BlueprintType)

As the class type? All mine use UCLASS()

Using my IT support hat, what about a fresh project? Where are you generating the new class? Same result inside an already working class?

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

79540895

Date: 2025-03-28 08:40:40
Score: 1.5
Natty:
Report link

HACCP Certification in Uganda ensures food safety by identifying and controlling hazards in the production process. Our expert HACCP Consultants in Uganda provide comprehensive guidance for seamless implementation, compliance, and risk management. Achieve global food safety standards, protect consumers, and enhance market credibility with our professional HACCP certification services.

Contact Us:

Phone: +91 8618629303

Email: [email protected]

Website: https://b2bcert.com/

Address : 383, 2nd floor, 9th Main Rd, 7th Sector, HSR Layout, Bengaluru, Karnataka 560102.

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

79540893

Date: 2025-03-28 08:40:40
Score: 2.5
Natty:
Report link
 "types": [
  "bingmaps"
 ]

worked - thank you 'Med Karim Garali'.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mayur Gohil

79540890

Date: 2025-03-28 08:35:39
Score: 2
Natty:
Report link

According https://bugs.eclipse.org/bugs/show_bug.cgi?id=393594#c9 , going into :

WORKSPACE\.metadata\.plugins\org.eclipse.cdt.core

and remove *.pdom files fix the problem. For my case, it have fix the problem.

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

79540888

Date: 2025-03-28 08:34:39
Score: 1.5
Natty:
Report link
CREATE TABLE People (
  first_name VARCHAR(15) NOT NULL,
  last_name VARCHAR(15) NOT NULL,
  registration_date DATE DEFAULT (CURRENT_DATE) NOT NULL
);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sandro Tushurashvili

79540878

Date: 2025-03-28 08:29:38
Score: 1
Natty:
Report link

Is it true, that reader, when reading from a field states gets a valid value of states, that existed at one point of the time (linearizability is present)? Can reader thread read some nonsense when reading value of states due to compiler reordering?

In your example each read of states has no happens-before ordering with writes to states.
According to the JMM that means every read is allowed to return any of the writes to states that happen anytime during the program execution.
This includes writes to states that happen later (in wall-clock time) in the same execution.
This also includes null - the default initialization value for states.

Here's the quote from the JLS:

Informally, a read r is allowed to see the result of a write w if there is no happens-before ordering to prevent that read.

To sum up:

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): Is it
  • Low reputation (1):
Posted by: Андрей

79540872

Date: 2025-03-28 08:26:37
Score: 2
Natty:
Report link

In your docker-compose try to use the attribute 'port':3000 instead of expose 3000. You are already exposing the port in the dockerfile. What is missing is not the port for the container nextjs but the port of the container on the app-network.

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

79540871

Date: 2025-03-28 08:26:37
Score: 1
Natty:
Report link

Use relative import

In test1.py, modify the import statement like this:

from .test import give_date

However, this will only work if you run the script from outside the naming package using python -m betacode.naming.test1. If you directly run test1.py, relative imports will fail.

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

79540869

Date: 2025-03-28 08:26:37
Score: 0.5
Natty:
Report link

in Angular v18 work:

  constructor( @Optional() @Host() private el: ElementRef) {}

  ngAfterViewInit(): void{
     const cmp = (window as any).ng.getComponent(this.el.nativeElement)
     console.log('instance', cmp)
     cmp.disabled = true;
  }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: KGROZA

79540868

Date: 2025-03-28 08:25:37
Score: 0.5
Natty:
Report link

I've found the answer in the package documentation. This solves the problem I had, where the computer initialising the tracker was in a different timezone (London), to the participant using the tracker (Nairobi). The resulting output using the code below showed the correct hours of waking/sleeping in the summary CSV

Overwrite = TRUE was required to reprocess the input files.

Please remember that stating the different times zones (as in the code below) will change the config file, which will keep these settings until you reset or change them. It's probably easiest to move to a different output folder for trackers in different time zones. This should revert to default settings.

GGIR(datadir="/my/path/input", 
     outputdir="/my/path/output",
     studyname = "My Study",
     overwrite = TRUE,
     desiredtz = "Africa/Nairobi",
     configtz = "Europe/London")
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Lachlan Fotheringham

79540864

Date: 2025-03-28 08:24:37
Score: 2.5
Natty:
Report link

You must upgrade the compose comiler version or downgrade the kotlin version to make one compatible. If you decide to downgrade the kotlin version, you must choose one compatible with the compose compiler version you are using.

For the kotlin version you are using(1.9.24), the recommended compose compiler version is 1.5.14, and for the compose compiler version (1.3.2), you must use 1.7.2 kotlin version

For more understandings check out this link :

https://developer.android.com/jetpack/androidx/releases/compose-kotlin?hl=fr

Reasons:
  • Blacklisted phrase (1): this link
  • No code block (0.5):
  • Low reputation (1):
Posted by: Excellence KAWEJ

79540860

Date: 2025-03-28 08:22:37
Score: 0.5
Natty:
Report link

It works for me:

type NoArray<T> = T extends Array<any> ? never : T;

const obj: NoArray<{length: number}> = {length: 123}; // works fine
const arr: NoArray<[{length: number}]> = [{length: 123}]; // TypeError

TS playground link

Reasons:
  • Whitelisted phrase (-1): works for me
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: vladbelozertsev

79540856

Date: 2025-03-28 08:21:36
Score: 1.5
Natty:
Report link

Try to enable debbugging mode on your phone On Newer android phone Enable USB Debugging:

Go to Developer Options:

  1. Open the "Settings" app,
  2. and then find and open "Developer Options.
  3. Find "USB Debugging": Scroll down until you see "USB Debugging."
  4. Enable USB Debugging: Toggle the switch next to "USB Debugging" to turn it on.
  5. Confirm (If Required): You might see a confirmation dialog asking if you want to allow USB debugging. Tap "OK" or "Allow."
Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: MUGWANEZA MANZI Audace

79540855

Date: 2025-03-28 08:20:36
Score: 1.5
Natty:
Report link

Try casting fake_A1 to complex64 with tf.cast(fake_A1,tf.complex64) or with tf.dtypes.complex(fake_A1,0.0)

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

79540847

Date: 2025-03-28 08:14:35
Score: 2.5
Natty:
Report link

I think what you might be facing is due to the API changes in Android 12. According to this article on xda-developers

Google says Android 12 will always open such non-verified links in the default browser instead of showing you the app selection dialogue.

https://www.xda-developers.com/android-12-will-always-open-non-verified-links-in-the-default-browser/

To fix this, you'll need to verify the ownership of the domain by adding assetsLink.json to your domain.

https://developer.android.com/training/app-links/verify-android-applinks

Reasons:
  • Blacklisted phrase (1): this article
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: thedroiddiv

79540840

Date: 2025-03-28 08:09:34
Score: 0.5
Natty:
Report link

I decided to go with combination of 1. and 5., plus file size check suggested by @Osyotr. User can select between "quick" and "strict" mode, plus command to invalidate cache.

  1. Store cache files with filename original.filesize + '-' + encode(original.fullname), where encode escapes any non-alphanumeric characters to ensure valid filename. Storing this info in filename allows quick mode to determine cache validity without reading either file.
  2. In either mode, check if cache file with corresponding name exists, implicitly checking file size matches expected.
  3. If it does, check cache file has modified date newer than original file.
  4. In strict mode only, calculate hash of original and compare it to hash stored in first couple bytes of cache file.
  5. If all checks pass, use cache file contents.
  6. Delete all cache files matching filename but not size.

With the example program, here are some test cases and how they are handled in the two modes:

  1. echo a > test.txt - new file, no cache, both work
  2. echo b > test.txt - modifies last write time, both work
  3. echo abc > test2.txt && mv test2.txt test.txt - last write time unmodified but changes size, both work
  4. echo xyz > test2.txt && mv test2.txt test.txt - last write time and size unmodified, quick mode fails but strict mode works
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Osyotr
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Dominik Kaszewski

79540830

Date: 2025-03-28 08:03:32
Score: 1.5
Natty:
Report link

You might want to use a class derivative of ActionFilterAttribute class. Just look for that derivative here at stack overflow. I use this for my REST methods and they are a good way of removing self referencing loops. The magic here is that you can assign interface\contracts that are allowed to get JSONed.

The only weakness here (or maybe someone has a solution) is to solve the employee/manager relationship.

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

79540821

Date: 2025-03-28 08:01:32
Score: 1.5
Natty:
Report link

To those having this problem. I had two issues producing the error:

  1. Different variable type than specified in mysql. (I had varchar specified in mysql, however in my code I pasted int.)

  2. Type in mysql smaller than required variable size. (I had varchar(4) specified in mysql, however in my code I pasted str of len 5+.)

Hope helps.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mr.kitty

79540818

Date: 2025-03-28 07:59:32
Score: 1
Natty:
Report link

Agreed to @Ian Finlay.. My main file had special chars such as '()'. So it couldn't see the path probably because of it. I changed the folder name to normal chars and corrected the paths in Environment Variables. Then it worked!

Basically try not to use special characters in folder names :)

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: irems

79540808

Date: 2025-03-28 07:49:30
Score: 7 🚩
Natty:
Report link

https://stackoverflow.com/a/67659159/30072585

isn't this working?

  1. delete .next/ folder.
  2. restart server
  3. refresh browser
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • RegEx Blacklisted phrase (2): working?
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): isn't this
  • Low reputation (1):
Posted by: 정제로

79540804

Date: 2025-03-28 07:48:29
Score: 0.5
Natty:
Report link

I was testing a lot of approaches and by this moment this code deletes correct entries:

public function upsertGroupedSteps($recipeId): void
{
    $groupedSteps = collect($this->steps)->map(function ($step, $index) use ($recipeId){
        return [
            'recipe_id' => $recipeId,
            'step_number' => $index + 1,
            'step_text' => trim($step['text']),
            'step_image' => $step['image']
                ? $step['image']->store('guides-images', 'public')
                : 'recipes-images/default/default_photo.png',
            'created_at' => now(),
            'updated_at' => now(),
        ];
    })->toArray();

    if ($this->recipeId != 0){
        $newStepsNumbers = collect($groupedSteps)->pluck('step_number')->toArray();

        // new piece of code 1
        $newStepNumbersWithoutReshuffle[0] =  1;
        foreach ($newStepsNumbers as $index => $newStepsNumber){
            if ($newStepsNumber > 1){
                $newStepNumbersWithoutReshuffle[$index] = $newStepsNumber + 1;
            }
        }

        GuideStep::where('recipe_id', $recipeId)
            ->whereNotIn('step_number', $newStepNumbersWithoutReshuffle)
            ->delete();
        
        // new piece of code 2
        foreach ($groupedSteps as $index => $step){
            if ($step['step_number'] != 1){
                $groupedSteps[$index]['step_number'] = $step['step_number'] + 1;
            }
        }
    }

    GuideStep::upsert(
        $groupedSteps,
        ['recipe_id', 'step_number'],
        ['step_text', 'step_image']
    );
}

Now I have new issue: the step_number are offset, that is, when deleting step number 2, steps with numbers 1 and 3 remain, now I need to somehow avoid this shift

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

79540792

Date: 2025-03-28 07:41:28
Score: 2.5
Natty:
Report link

https://developer.android.com/tools/logcat

You can use logcat to get logs of devices from all apps

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

79540787

Date: 2025-03-28 07:37:27
Score: 9 🚩
Natty: 5.5
Report link

I've encountered the same problem, have you solved it?

Reasons:
  • Blacklisted phrase (2): have you solved it
  • RegEx Blacklisted phrase (1.5): solved it?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: zervih

79540786

Date: 2025-03-28 07:37:26
Score: 1
Natty:
Report link

For anyone still clueless, binding.value() call is something that calls your handleScroll. As you may noticed, handleScroll returns bulean and corresponds to "unbind scroll event or not"

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