79635224

Date: 2025-05-23 09:28:37
Score: 1
Natty:
Report link

Both approaches you mentioned for creating the model are valid, depending on your goals:

  1. Starting from the problem domain (conceptual schema) means you focus on the real-world concepts and design your Java classes to represent those directly. This approach keeps your model clean and focused on the business logic, which is great for maintainability and clarity.

  2. Starting from the restructured database schema means your Java model closely reflects the database tables and columns, ignoring any extra surrogate keys you added. This can make data handling more straightforward but might couple your model tightly to the database structure.

In many projects, a mix of both is used: design your model based on the problem domain for clarity, then map it to the database schema via DAO implementations for data access. This helps keep the code organized and flexible.

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

79635213

Date: 2025-05-23 09:24:36
Score: 1.5
Natty:
Report link

More trivial solution i used :

library(data.table)

your_df[, lapply(.SD, function(x){
  ifelse(is.na(x), 0, x)
}), .SDcols = is.numeric]
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: DevDataLover

79635199

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

I found this SO question while debugging a similar issue in my own project. It was very useful but it did not provide the full solution for me. I would like to add the following Cypress documentation page explains how Cypress.on() and cy.on() work: https://docs.cypress.io/api/cypress-api/catalog-of-events. This page starts by listing names of events, information I did not need. When I read on however, I saw the heading: "Binding to Events". The difference between Cypress.on() and cy.on() is explained there. This difference has to do with the amount of test code for which exceptions have to be ignored.

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

79635193

Date: 2025-05-23 09:10:32
Score: 1.5
Natty:
Report link

You can use a std library extention function on String `uppercase()`

val foo = "foo"
val foo2 = foo.uppercase() // FOO

https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.text/uppercase.html

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

79635186

Date: 2025-05-23 09:04:30
Score: 2.5
Natty:
Report link

your description of a problem is pretty incoherent. what does it mean for a linear equation system to be 3d? can't you just reshape the arrays to be A (n, m), X (n, m), B (m,) where m = n*d? (eg A2d = A3d.reshape((n, n*d))) then the np.linalg.solve or np.linalg.lstsq will do the job.

also, what kind of process produces such a task?

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

79635181

Date: 2025-05-23 09:01:29
Score: 0.5
Natty:
Report link

if (!text || text .length < 2 || !/^[a-zA-Z\s]+$/.test(text)) { }

This regex ensures:

The input consists only of letters (both uppercase and lowercase) and spaces.

The minimum length is 2 characters.

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

79635180

Date: 2025-05-23 09:01:29
Score: 3
Natty:
Report link

With VS 2022, in my case it was the project.csproj.user that contained a path that did not exist any more from which i debugged once.

For some unknown reasons, VS was not displaying that correctly in the project properties as in the screenshot of @Deano

Deleting the project.csproj.user file did the job.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Deano
  • Low reputation (1):
Posted by: Michele

79635173

Date: 2025-05-23 08:58:28
Score: 1.5
Natty:
Report link

No, you can't cleanly commit a file inside a submodule (`B/`) to the parent repo (`A`) only. Git treats submodules as isolated repositories.

Workarounds:

Subtrees are the cleanest solution for this use case.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: S.Raj

79635166

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

Basically the browser (at least Edge/Chrome) verifies the request the same it does when connecting to the requested URL.

So I usually make sure the service as well accepts a "GET" to which I forward the user (as in window.open(), prompt to click a link, or similar) when I detect that the connection fails. With that, the user can run through the usual "accept" process for the certificate.

After this, also the XHR works for me.

Reasons:
  • Whitelisted phrase (-1): works for me
  • No code block (0.5):
  • Low reputation (1):
Posted by: Andreas Beck

79635159

Date: 2025-05-23 08:49:26
Score: 0.5
Natty:
Report link

Follow the below commands:

git commit --amend -m "New commit message"

Then you need to force push the new commit:

 git push --force
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Hamed Moghadasi

79635158

Date: 2025-05-23 08:48:25
Score: 1.5
Natty:
Report link

I was wondering if there is a way to find out the number of rows or number of files for tables registered in Unity Catalog. Is there a system table or a built-in function that provides this information more reliably?

You can try to Check for Empty Tables or Tables with No Files in Unity Catalog .
Unity Catalog doesn't have a built-in system table that directly shows the number of rows or files in each table. But you can write a notebook or script to get that information by combining metadata from system.information_schema.tables with details pulled using the DESCRIBE DETAIL command.

Below is the PySpark script that filters and prints only the tables that have either Zero records or zero fileSize:

I have created three tables, one with records and other two keeping empty to test the python code.

from pyspark.sql.functions import col
from delta.tables import DeltaTable

catalog = "my_catalog"
schema = "my_schema"

tables_df = spark.sql(f"""
  SELECT table_name 
  FROM {catalog}.information_schema.tables
  WHERE table_schema = '{schema}'
""")

tables = [row["table_name"] for row in tables_df.collect()]

for table in tables:
    full_name = f"{catalog}.{schema}.{table}"
    detail = spark.sql(f"DESCRIBE DETAIL {full_name}").collect()[0]
    num_files = detail['numFiles']
    size_bytes = detail['sizeInBytes']
    if (num_files == 0 or num_files == 0):
        print(f"{full_name}: numFiles={num_files}, sizeInBytes={size_bytes}")

So this code does the following:

-It lists all tables in a specified Unity Catalog catalog (my_catalog) and schema (my_schema) by querying the information_schema.tables view.

-For each table, it runs DESCRIBE DETAIL to retrieve metadata, specifically looking at the number of files (numFiles) and the total size on disk (sizeInBytes).

-It prints the table name and size details only if the table has zero files (numFiles == 0), which typically indicates that the table has no data stored.

enter image description here

Output:

enter image description here

Reasons:
  • Blacklisted phrase (2): was wondering
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Pritam

79635152

Date: 2025-05-23 08:45:24
Score: 2.5
Natty:
Report link

Ok, I have figured out what was wrong.

In most scenarios, we use Givens/Jacobi rotations Q_{i,j} acting on rows/columns i and j and want to zero out an element A(i,j), for example, in computing QR decomposition or using Jacobi rotations to compute eigenvalues for symmetric matrices. But here we do not want that, and instead we want to use Q_{i,j} and zero out an element A(i, j-1).

Why?

When we use Q_{i,j} from both sides we create linear combinations of i-th and j-th row/column and for element A(i,j) we add both the other column and row, which makes it harder to keep track of what we are doing.

But if we want to zero out the element A(i, j-1), we only create the linear combination with the row j, which is easier to keep track of. Essentially, what we are doing is using A(j,j-1) to zero out elements A(j+1, j-1), A(j+2, j-1), ..., A(n,j-1) for the column j-1.

Reasons:
  • Blacklisted phrase (0.5): Why?
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: ldro

79635147

Date: 2025-05-23 08:42:23
Score: 2
Natty:
Report link

For completeness, I asked my question at community.intel.com Force error on warning and in intel compiler versions after 2025.1.1, throwing an error on unused variable will be supported. Apparently the unused variable message is classified as a "remark", and does not error in other versions of intel compiler, but the option to error on remarks will be supported in future versions.

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

79635145

Date: 2025-05-23 08:41:23
Score: 2
Natty:
Report link

Thanks to this hint i could resolve my situation from

public class DateiHandling : IDateiHandling
  {
    /// <inheritdoc/>
    public string DateiInhalt(in string ganzerName)
    {
      return File.ReadAllText(ganzerName);//Methode with exceptions i want to convey
    }
  }
public interface IDateiHandling
  {

    /// <summary>
    /// Liest den Inhalt der Datei auf der Festpaltte aus.
    /// </summary>
    /// <param name="ganzerName">Absoluter Pfad zur Datei.</param>
    /// <returns>Inhalt der Datei, als String.</returns>
    /// <inheritdoc cref="File.ReadAllText(string)"/>  //Here the linkage to the original method
    public string DateiInhalt(in string ganzerName);
  }

This Perfectly resulted in me getting all the exceptions info from the Methode File.ReadAllText(string) conveniently displayed in the interface wrapper.

Shows the IntelliSense description with the linked Exceptions

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (1): i want
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: FlorianD

79635129

Date: 2025-05-23 08:32:20
Score: 2
Natty:
Report link
<dependency>
    <groupId>jakarta.validation</groupId>
    <artifactId>jakarta.validation-api</artifactId>
    <version>3.0.2</version>
</dependency>

import jakarta.validation.constraints.NotNull;
@NotNull will work fine with this.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @NotNull
  • Low reputation (1):
Posted by: Alby_Noah

79635086

Date: 2025-05-23 08:09:13
Score: 3.5
Natty:
Report link

i think you should try to upgrade both versions of spring boot & openApi...

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

79635080

Date: 2025-05-23 08:05:12
Score: 1.5
Natty:
Report link

According to your two problems:

  1. performing spell checks does not give entire string as an output

  2. sometimes repeats the phrases of the given review

I think you can adjust two arguments ( max_length, no_repeat_ngram_size ) for model.generate() to improve two problems:

  1. Enlarge max_length size to solve problem-1.

  2. Add no_repeat_ngram_size argument to reduce problem-2 error.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jung-Yi Tsai

79635077

Date: 2025-05-23 08:02:11
Score: 2
Natty:
Report link

I don't know of any way to do this in Chromium-based browsers and it's something I'm missing as well. Just wanted to mention that Firefox can do this, in case it's a hard requirement.

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

79635069

Date: 2025-05-23 07:59:10
Score: 3.5
Natty:
Report link

You can find just the Inspext.exe from below link

https://github.com/blackrosezy/gui-inspect-tool/blob/master/Inspect.exe

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

79635068

Date: 2025-05-23 07:58:10
Score: 3.5
Natty:
Report link

Ok, so the answer is: wait!

After more or less 7 days from the moment I put the video link in my app (the link was a youtu.be link, but I'm not sure it's needed) the vertical and fullscreen preview magically appeared. So well, just wait.

Reasons:
  • Blacklisted phrase (1): video link
  • Blacklisted phrase (1): youtu.be
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: m.i.n.a.r.

79635058

Date: 2025-05-23 07:53:08
Score: 4.5
Natty:
Report link

This happens from time to time when the installation is actually successful. Can you check in Windows -> Services if the sql server is already running?

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

79635053

Date: 2025-05-23 07:45:07
Score: 2.5
Natty:
Report link

$ git push -u origin master

error: src refspec master does not match any

error: failed to push some refs to 'https://github.com/Bhoomika-shekar/Java-fullstack.git'

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

79635051

Date: 2025-05-23 07:43:06
Score: 1
Natty:
Report link

In 2025, you can still use RSS to get commit notifications. It is not visible in UI, but you can add commits.atom to URL then subscribe to this feed with your RSS reader.

https://github.com/:owner/:repo/commits.atom
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lukasz D.

79635045

Date: 2025-05-23 07:39:05
Score: 2
Natty:
Report link

If you're searching to filter all blank rows, you can do it with multiple filters easily.
I used this formula (watch out the locale):
=ARRAYFORMULA(FILTER(Sheet1!A2:A;Sheet1!C2:C="mysearch";Sheet1!B2:B<>""))

enter image description here

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

79635041

Date: 2025-05-23 07:35:04
Score: 3
Natty:
Report link

For me this arises occasionally with Firefox. Changing to Chrome solved the issue.

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

79635040

Date: 2025-05-23 07:34:03
Score: 1
Natty:
Report link

I only needed to add a 1px to get it to work apparently! Posting here if someone has the same question :)

onLoadStop: (controller, url) async {
    await injectJavascript(controller);
    await Future.delayed(Duration(milliseconds: 300));

    await _webViewController?.evaluateJavascript(
     source: '''
     document.documentElement.style.height = document.documentElement.clientHeight + 1 + 'px';
      ''',
  );
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Clara

79635031

Date: 2025-05-23 07:28:01
Score: 2
Natty:
Report link

According to https://discourse.hibernate.org/t/criteriabuilder-cast-function-example/6631/4 there is a solution using cast instead of as:

var cast = ((JpaExpression) from.get("uuid")).cast(String.class);
cb.like(cast, "%" + stringValue + "%");
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: kio21

79635026

Date: 2025-05-23 07:26:01
Score: 1
Natty:
Report link

To at least partially answer the Question, this is what I found out so far

1.) locale support in MinGW seems broken

2.) when retrieving a path with std::filesystem it is correct internally

3.) ofstrem and ifstream can take filesystem ::path, so if you retrieved an path with umlauts, you can load and save data with this path utilizing ofstrem and ifstream

4.) as soon you want to manipulate the path - need of conversion to a string and back to filesystem ::path - things go wrong. So e.g. if you replace the extension without touchning the part of the path with the umlauts, thats fine. If you replace the filename, even if you just retrieved the filename and appended some string, it goes wrong

as of today these are my findings with no solution to point 4

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

79635023

Date: 2025-05-23 07:24:59
Score: 13.5 🚩
Natty: 6
Report link

Did you found the solution? Im facing the same issue ... Thanks in advance.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Thanks in advance
  • RegEx Blacklisted phrase (3): Did you found the solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): facing the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Miroslav

79635010

Date: 2025-05-23 07:15:57
Score: 1
Natty:
Report link

You're encountering this error because the method CriteriaBuilder.isFalse() expects a parameter of type Expression<Boolean>, but you're passing a mock of type Path<Object>. Although Path<Boolean> is a subtype of Expression<Boolean>, your mock is declared as Path<Object>, and that's why the compiler complains.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: 洪紹恩

79635007

Date: 2025-05-23 07:14:56
Score: 1.5
Natty:
Report link

You can add a value after nameSingleItem with an example
SingleItemCategoryModel(nameSingleItem: "VVIP", vaalue '15-1')
//example value:15-1. 15 is the camp id, 1 is the room type id

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

79634996

Date: 2025-05-23 07:03:54
Score: 0.5
Natty:
Report link

I ended up fixing it by changing the grid structure.

If before was:

<Grid>
   <Row>
   <Row *>
   <Column *>
   <Column *>
   <Column *>
   <Column>

   <Content>

   <TreeItems Row:1 Colum:0-3>
</Grid>
<TreeItems>
   <Grid>
      <Column *>
      <Column *>
      <Column *>
   
      <Content>

   </Grid>
</TreeItems>

By separating the main grid into two:

<Grid>
   <Row>
   <Row *>

   <Grid Row:0> <!--The header now has its own grid -->
      <Column *>
      <Column *>
      <Column *>
      <Column>

      <HeaderContent>
   </Grid>

   <Content>

   <TreeItems Row:1> <!-- Note that now there is only one column so I don't need to declare it -->
</Grid>
<TreeItems>
   <Grid>
      <Column *>
      <Column *>
      <Column *>
   
      <Content>

   </Grid>
</TreeItems>

I still don't understand whats happening on the first option and my main take away is try not to declare a grid with columns and rows at the same time.

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

79634992

Date: 2025-05-23 06:59:51
Score: 8 🚩
Natty:
Report link

I am also facing the same issue, please put your solution here if you get it

Reasons:
  • Blacklisted phrase (1): I am also facing the same issue
  • RegEx Blacklisted phrase (1): I am also facing the same issue, please
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am also facing the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sai Kiran

79634985

Date: 2025-05-23 06:57:51
Score: 2
Natty:
Report link

The reason in the workmanager itself. I just replaced it with compute and it doesn't cause freezes anymore.

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

79634982

Date: 2025-05-23 06:56:51
Score: 0.5
Natty:
Report link

Here you go, I had to solve a similar problem... Credit to @andrew-coleman for the initial example

(
    $dotsToUnderscores := $each(?, function($v, $k) {
        { 
            $replace($k, '.', '_'): $type($v) = 'object' ? $dotsToUnderscores($v) : 
                                    $type($v) = 'array'  ? $map($v, function($vv) { $dotsToUnderscores($vv) } : 
                                    $v
        }
    }) ~> $merge;
    $dotsToUnderscores($)
)
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @andrew-coleman
Posted by: NeilC

79634979

Date: 2025-05-23 06:54:50
Score: 1
Natty:
Report link

Instead of specifying any specific browser we can use below line to use default browser set by user in the system to open the link.

Start-Process "https://www.google.com"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mansi Mishra

79634976

Date: 2025-05-23 06:52:49
Score: 1.5
Natty:
Report link

SetWindowTheme(hWnd, L" ", L" ");

Gives the Win95 look. Works with controls too.

Back to normal: SetWindowTheme(hWnd, NULL, NULL);

In UsbTreeView and other tools I use that to switch the theme on and off for the controls at runtime without any problem (Options -> Windows Theme).

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

79634966

Date: 2025-05-23 06:45:47
Score: 2.5
Natty:
Report link

Try this free Chrome extension it can maintain your collections on GitHub, its very simple and lightweight

https://chromewebstore.google.com/detail/github-postman-sync/daelpeneghnjcdhgmfiocjemdpblnofl

Reasons:
  • Whitelisted phrase (-1): Try this
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Saurabh Fodekar

79634964

Date: 2025-05-23 06:44:47
Score: 1
Natty:
Report link

Firstly, remove package-lock.json and node_modules folder. In the package.json folder, write :

  "overrides": {
  "rollup": "npm:@rollup/wasm-node" }

Then, do npm i, and it should work.

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

79634958

Date: 2025-05-23 06:41:45
Score: 2
Natty:
Report link

🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥 I’ve created a WhatsApp community for Laraclassified users — where I personally provide free support for

⚙ Bug fixes

🛠 Error solutions

🚀 Growth tips & tricks to scale your classified site faster

No fees. No fluff. Just real help to get the most out of your Laraclassified script.

If you’re using this script, you’ll want to be in this group.

Join here: https://chat.whatsapp.com/KdeGfl3PULF76ZVTD29I1y

Reasons:
  • No code block (0.5):
  • Filler text (0.5): 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
  • Low reputation (1):
Posted by: Talha Sahi

79634957

Date: 2025-05-23 06:41:45
Score: 3
Natty:
Report link

Google tech usability is a complete joke.

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

79634949

Date: 2025-05-23 06:28:42
Score: 2.5
Natty:
Report link

I have fixed issue by calling script outside of IIS. I created script using my application and created event scheduler that call script & generate stl file. This way script start using GPU.

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

79634948

Date: 2025-05-23 06:28:42
Score: 2.5
Natty:
Report link

This question seems to be Missing data version in tablet replicas. Check replica versions with show tablet and show partitions. Use admin repair or mark bad replicas with admin set replica status for automatic repair.

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

79634946

Date: 2025-05-23 06:26:41
Score: 1
Natty:
Report link

This might not be the answer you are looking for, but it is the only way I can get it to show multiple columns on one X-value; by adding each point to a separate Series.

chart1.Series.Add("series1");
chart1.Series["series1"].Points.AddXY("31.5 Hz", 52);
chart1.Series.Add("series2");
chart1.Series["series2"].Points.AddXY("31.5 Hz", 58);
chart1.Series.Add("series3");
chart1.Series["series3"].Points.AddXY("31.5 Hz", 67);

enter image description here

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

79634941

Date: 2025-05-23 06:19:39
Score: 1.5
Natty:
Report link

Try tflite.setWasmPath('https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/');, it still tried to load locally, and then did a fallback to this URL.

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

79634932

Date: 2025-05-23 06:16:38
Score: 3.5
Natty:
Report link

https://workspace.google.com/marketplace/app/chat_viewer_for_whatsapp/627542094284

You can upload your .txt file here and Select Primary Author.
Click on start replay.
Done.

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

79634911

Date: 2025-05-23 05:55:32
Score: 1
Natty:
Report link

I managed to get rind of this error and get the project adding msql, by installing version 7.3.5 of the mssql package.

npm install [email protected]

I have yet to actually try any of the mssql functions, but now I can require the mssql and not have the project crash.

const sql = require("mssql");

With other versions of mssql I got the errors and could not try anything with the SQL server connection. I am still not sure why I get the errors with later versions of mssql which should be compatible with the version of nodejs I am susing, all I can think is that some of the other packages perhaps interfered with finding the module 'node:events'.

Reasons:
  • RegEx Blacklisted phrase (1): I get the error
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Barry Andrews

79634909

Date: 2025-05-23 05:54:32
Score: 4.5
Natty: 4.5
Report link

What does it mean? Please enter 10-digit mobile number starting with 6,7,8, or 9 only

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What do
  • Low reputation (1):
Posted by: Muhammad

79634899

Date: 2025-05-23 05:45:29
Score: 0.5
Natty:
Report link

# DPI-aware Tkinter + Matplotlib (Consistent Across IDEs and Standalone)

I tried the suggested one, did not work in some cases. Below is slightly heavy but works in every situation and has fine control over every element.

Get DPI and Screen Info


def get_display_context():
import tkinter as tk
root = tk.Tk()
root.withdraw()
root.update_idletasks()
root.state('zoomed')
root.update()
dpi = root.winfo_fpixels("1i")
width, height = root.winfo_width(), root.winfo_height()
root.destroy()
return {
"dpi": dpi,
"screen_width_pixel": width,
"screen_height_pixel": height
}

Define Font Helpers

**Tkinter:**

def font_ui_tk(size_pt, ctx, font="Segoe UI", bold=False):
scale = ctx["dpi"] / 96
return (font, int(size_pt * scale), "bold" if bold else "normal")

**Matplotlib:**

def font_ui_mpl(size_pt, ctx, font="Segoe UI", bold=False):
scale = ctx["dpi"] / 96
return {
"fontsize": int(size_pt * scale),
"fontweight": "bold" if bold else "normal",
"family": font
}

### Step 3: Apply in Your App

**Tkinter Example:**

ctx = get_display_context()
label = tk.Label(root, text="Run", font=font_ui_tk(11, ctx))

**Matplotlib Example:**

ax.set_title("Plot Title", **font_ui_mpl(12, ctx))

**Legend/Ticks:**

ax.legend(fontsize=font_ui_mpl(9, ctx)["fontsize"])
ax.tick_params(labelsize=font_ui_mpl(9, ctx)["fontsize"])

This method removes the need for `tk scaling` or `ctypes.windll.shcore.SetProcessDpiAwareness`.

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mahabir Prasad

79634895

Date: 2025-05-23 05:40:28
Score: 5
Natty: 5
Report link

HRM software development company in New York

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Best UI Designers in UAE

79634891

Date: 2025-05-23 05:33:26
Score: 3.5
Natty:
Report link

may I know how to keep the same number of observations for the dataset as the number present in the shapefile?
Suppose there are 2 period of panel data of 20 regions meanwhile the shpfile only have 20 regions, how to make them the same? Does it mean you split the 2 periods and attach the weight for each period?

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

79634890

Date: 2025-05-23 05:33:26
Score: 4.5
Natty:
Report link

How about

grouped.groups.pop(group_name)

?

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Has no white space (0.5):
  • Starts with a question (0.5): How
  • Low reputation (0.5):
Posted by: Confounded

79634885

Date: 2025-05-23 05:31:25
Score: 0.5
Natty:
Report link

This is now possible using paketo-buildpacks/environment-variables

For example:

pack build --builder heroku/builder:20 --buildpack paketo-buildpacks/[email protected] --env BPE_MY_VARIABLE="SomeValue"

When you start the container interactively I run

env | grep MY_ 

to get

MY_VARIABLE=SomeValue
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: A. Penner

79634862

Date: 2025-05-23 05:10:19
Score: 10 🚩
Natty: 6
Report link

Did you ever find a solution to this?

Reasons:
  • RegEx Blacklisted phrase (3): Did you ever find a solution to this
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Rob Wyrick

79634858

Date: 2025-05-23 05:07:18
Score: 1
Natty:
Report link

Redocly had updated its portal last year and switched to MarkDoc. Part of the migration is that admonitions are now formatted differently:

{% admonition type="warning" %}
  Important warning!
{% /admonition %}

The embedded snippet should still work and the admonition render accordingly.

source

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

79634852

Date: 2025-05-23 05:00:16
Score: 3.5
Natty:
Report link

use your * => app.get(/(.*)/,(req,resp)=>{ }

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

79634841

Date: 2025-05-23 04:36:11
Score: 11
Natty: 8
Report link

i am also facing the same issue, any fixes?

Reasons:
  • Blacklisted phrase (1): i am also facing the same issue
  • RegEx Blacklisted phrase (1.5): fixes?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): i am also facing the same issue
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user30613687

79634834

Date: 2025-05-23 04:25:07
Score: 8 🚩
Natty: 4.5
Report link

I also face the same problem on my windows 10 PC. I start using Git without knowing it's garbage collection system. I usually use git from git bash terminal, so i create commit push it to git hub create branch, rebase it and lot's of things. One day i open Git GUI provided with git bash. It says that i have 704 loos object need to compress it. If i say yes then it give error like "Deletion of directory '.git/objects/01' failed, should i try again?" if it try 100 times it still not able to delete it. Git GUI i bad in this situation, i need to restart the PC to stop it ( task manager can't close it). then inside git bash i call git gc (gc for garbage collection) it also give the same error except i am able to close the git bash program, which is good. Then i tried "git gc --prune=now --aggressive --force" command but nothing works. At the end i have to manually delete all the directory git gc failed to delete, which is very very painful. After completing all the deletion my .git/objects folder contain only 5 directory. This is how i solve it. If anyone have a better solution, please share it.

Reasons:
  • Blacklisted phrase (1): but nothing work
  • Blacklisted phrase (0.5): i need
  • RegEx Blacklisted phrase (2.5): please share
  • Long answer (-1):
  • No code block (0.5):
  • Me too answer (2.5): I also face the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Fakir Rifat Hasan

79634813

Date: 2025-05-23 03:57:01
Score: 1
Natty:
Report link

Okay, there seems to be only one answer.

The behavior I described was very consistent across many tests and many hours, and when I searched for an answer all I could find was people telling me: this is impossible!

Well, I finally revisited it, and tried to reproduce it, and it doesn't work anymore. I haven't been able to reproduce this behavior.

So, the answer seems to be, if this happens to you, reboot, cross your fingers, and hope it goes away.

Apologies to all of you who were as frustrated with me as I was frustrated with you.

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

79634810

Date: 2025-05-23 03:53:00
Score: 2
Natty:
Report link

hello it's late but i'll explain to you what is the problem : https://developers.facebook.com/docs/pages-api/getting-started/#-tape-1--obtenir-l-id-de-votre-page-2

you have to get your access_token of page id with https://graph.facebook.com/v22.0/{user_id}/accounts

in your response you will have access_token.

You have to use this token not the user token.

Hope that will help some one

Reasons:
  • Whitelisted phrase (-1): Hope that will help
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Nassim Amrane

79634809

Date: 2025-05-23 03:53:00
Score: 3
Natty:
Report link

Your approach is good but it works only for a couple of lines.. How about for a Report of 90 or 130 lines.. The For Next Loop needs to find the End of the Report, Read, Make the Calculations, and Write the Totals.. for each line.. Thanks to your Suggestions I made the Macro Run Well, but again it works on only One line.. I need it to loop thru the whole Report.. Can I send you my Code... ?

Beg your Pardon, my email is "[email protected]", Thanks,

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: LUIS G.

79634807

Date: 2025-05-23 03:48:59
Score: 1
Natty:
Report link

Sounds like you're really close — great job getting the backoffice working! That “Your app is running but waiting content” screen usually means your homepage isn’t published or linked correctly in Umbraco.

Check the following:

Happens to the best of us — you're almost there!

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

79634806

Date: 2025-05-23 03:48:59
Score: 2
Natty:
Report link

i can't find the cert to export
more info would be nice here
this emulator is a pain
maybe i should just install mongo

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

79634798

Date: 2025-05-23 03:38:57
Score: 1
Natty:
Report link

Thanks for the comment.

The issue is that SESSION_DRIVER was set to array which does not persists the server side sessions.

You can set it to file as the easiest solution.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • Has code block (-0.5):
Posted by: Tatachiblob

79634797

Date: 2025-05-23 03:36:56
Score: 1.5
Natty:
Report link

The solution for Safari was very simple, but I do not understand why it was the solution.

Changing this:

setcookie( 'cookiename', '1', time()+1200, '/' );

... to this:

setcookie( 'cookiename', '1', time()+1200, '' );

Using an empty PATH parameter and PHP and JS both recognize the cookie and value.

I would love to know why this is the solution for Safari if anyone can elaborate!

Cheers

Reasons:
  • Blacklisted phrase (1): Cheers
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: jdm2112

79634795

Date: 2025-05-23 03:32:55
Score: 1
Natty:
Report link

Instead of:

Do:

•   width: 100% ensures it fits its parent.
•   aspect-ratio: 16/9 keeps the shape consistent regardless of screen size.
•   Avoid hard-coded width/height unless they’re adaptive.

And also Set viewport meta tag, without this, even responsive CSS won’t behave correctly on phones:

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

79634793

Date: 2025-05-23 03:30:55
Score: 2
Natty:
Report link

You're looking for the cherry-pick command:
https://git-scm.com/docs/git-cherry-pick

Using the hash of the commits you wish to copy, single commits may be merged in. Ranges are also an option.

https://www.geeksforgeeks.org/git-cherry-pick/

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

79634790

Date: 2025-05-23 03:27:54
Score: 1
Natty:
Report link

Here is a way

public static void prime(int n) {
    int i = 2;
    while(i < n) {
        if (n % i == 0){
            System.out.println(n + " is not prime");
            return;
        }
        i++;
    }
    System.out.println(n+" is a prime number");
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: DigestRageIn

79634782

Date: 2025-05-23 03:13:51
Score: 7 🚩
Natty:
Report link
  1. Link 1: https://drive.google.com/file/d/1hvTb12GMF3NxryOi0WGn1PcAu5WKXx2v/view?usp=sharing

    ----------------------------------------------

  2. Link 2: https://drive.google.com/uc?export=download&id=1hvTb12GMF3NxryOi0WGn1PcAu5WKXx2v

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • No latin characters (2.5):
  • Filler text (0.5): ----------------------------------------------
  • Low reputation (1):
Posted by: Hậu Lê Công

79634780

Date: 2025-05-23 03:08:49
Score: 11 🚩
Natty: 5.5
Report link

I have same issue. did you find the solution?

Reasons:
  • RegEx Blacklisted phrase (3): did you find the solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Đạt Nguyễn Quang

79634777

Date: 2025-05-23 03:02:47
Score: 2.5
Natty:
Report link

If the flutter clean, pod install nothing works then check - you have openend Runner.xcodeproj
OR Runner.xcworkspace

You have to open Runner.xcworkspace

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

79634775

Date: 2025-05-23 03:00:47
Score: 3
Natty:
Report link

This was only fixed for me on iOS. On Android, I'm still having the same problem after updating Expo SDK 52 to 53. I'm sharing the code that fixed the problem for me on iOS devices. If I remove any of these properties, including styles, the app crashes.

react-native: 0.79.2

expo: ^53.0.9

react-native-google-places-autocomplete: ^2.5.7

<GooglePlacesAutocomplete
   ...
   predefinedPlaces={[]}
   textInputProps={{}}
   styles={{}}
/>
Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): having the same problem
  • Low reputation (1):
Posted by: Azael Guerrero

79634767

Date: 2025-05-23 02:49:44
Score: 0.5
Natty:
Report link

I’m not really happy with this solution, but it is something that could work perfectly fine depending on your particular case.

What I did was to add data-sveltekit-reload to the link of the page which I need the styles to be cleared out, just like this:

<a href="/path-to-page" data-sveltekit-reload>
   Link text
</a>

Keep in mind that this will allow the browser to handle the link, causing a full-page navigation after it is clicked.

Official docs: https://svelte.dev/docs/kit/link-options#data-sveltekit-reload

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Rodrigo D'Agostino

79634766

Date: 2025-05-23 02:48:44
Score: 4
Natty:
Report link

It turns out that this dictionary is an object from a library that is not coherent with what I am trying to acheive. I had to check the object browser before I realize this dictionary was from Selenium Basic instead of MS Scripting Runtime Library.

Reasons:
  • Blacklisted phrase (1): I am trying to
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Austin Weiss

79634763

Date: 2025-05-23 02:46:43
Score: 1.5
Natty:
Report link

Did a bunch more research on this by researching the cdc-acm, the usbmon function and the USB specification.

It looks like the bulk channels being the dropoff/entry points for serial data was a flawed assumption.

I won't rehash everything here, but if I were to do this again:

  1. The cdc_acm driver is a bit more involved than I realized and there are numerous exception cases to work around flawed/differing implementations.

  2. I ended up using the i2c-tiny-usb driver as my basis. I uploaded the Arduino i2c_tiny_usb_adapter example to my Seeeduino Xiao, connected, then offered it as an example. I then used i2cdetect to run a scan.

  3. I used usbmon to monitor traffic of that scan. That way I could reconstruct what was "really" going on.

  4. The USB Spec indicates every device has an endpoint 0 control interface which configure the device. For simple implementations, such as I2C, you can just get/request data via that interface.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): Did a
  • Low reputation (0.5):
Posted by: BarkerChippy

79634762

Date: 2025-05-23 02:44:43
Score: 4
Natty:
Report link

Alright, after a bunch more testing it seems that clamping the angle where the barrels can rotate up and down messes up the raycast hitpoint for some reason???? I don't understand why it makes the X value stop changing as soon as it hit something that wasn't terrain but when I removed the clamp it became normal.

Reasons:
  • Blacklisted phrase (1): ???
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Big Glasses

79634761

Date: 2025-05-23 02:42:42
Score: 0.5
Natty:
Report link

Additionally for anyone who came across this post (same as me), if git ignore is not ignoring as expected, clean the cache:

git rm --cached *.json

Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Vitaly Borisov

79634755

Date: 2025-05-23 02:33:40
Score: 1.5
Natty:
Report link

Fully aware this is an old question, but I wanted to point other people with similar issues to some open sourced API documentation run by the community (I’m one of the contributors, full disclosure). It has nearly full coverage of the GroupMe API.

The relevant docs regarding GroupMe Topics are here, but I’d encourage anyone who’s interested to take a look at anything and everything else, because it’s a lot more complete than the official docs at dev.groupme.com.

https://github.com/groupme-js/GroupMeCommunityDocs

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

79634753

Date: 2025-05-23 02:30:40
Score: 3
Natty:
Report link

It is recommended to find a machine that can connect to the external network and compile it, and then copy the relevant directory of the thridparty to the development machine.

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

79634748

Date: 2025-05-23 02:26:39
Score: 1.5
Natty:
Report link

The setColumnVisible(key,visible) does not work anymore.

AG Grid: Since v31.1 api.setColumnVisible(key,visible) is deprecated. Please use setColumnsVisible([key],visible) instead.

The column methods have been migrated to the Grid API.

Read more:

let isVisible = true; // or false
let columns = ['columnFieldKey1', 'columnFieldKey2'];    
let gridApi = agGrid.createGrid(gridDiv, gridOptions);
gridApi.setColumnsVisible(columns, isVisible);
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: siumi

79634747

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

Check if your company's network prohibits video playback

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

79634740

Date: 2025-05-23 02:05:19
Score: 0.5
Natty:
Report link

Remove \n and re.DOTALL and also add strip()

Snippet:

time_stamp, messages = re.findall(r'(\d+/\d+/\d+ \d\d:\d\d:\d\d[.]\d\d\d\d)(.*)', line)[0]

And:

print(f'time_stamp: {time_stamp}, message: {messages.strip()}')

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

79634738

Date: 2025-05-23 02:01:19
Score: 0.5
Natty:
Report link
   <mat-tab-group dynamicHeight>
<mat-tab label="A">
  <ng-template matTabContent>
      <componentA></componentA>
  </ng-template>
</mat-tab>
<mat-tab label="B">
  <ng-template matTabContent>
      <componentB></componentB>
  </ng-template>
</mat-tab>

Render your compoent with matTabContent

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: M.H

79634736

Date: 2025-05-23 01:53:17
Score: 1.5
Natty:
Report link

2025

I was facing the exact problem, and switching from child_process.fork (Nodejs ) to ElectronJS's utilityProcess solved it for me ! (No more suspicious second instance on asar build)

https://www.electronjs.org/docs/latest/api/utility-process

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

79634735

Date: 2025-05-23 01:52:17
Score: 4
Natty:
Report link

Long thread about it here https://github.com/getcursor/cursor/issues/2976

Looks like the marketplace extension is being blocked.

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

79634724

Date: 2025-05-23 01:32:13
Score: 0.5
Natty:
Report link

Have you tried setting quarkus.smallrye-graphql.log-payload=query-and-variables

as documented here: https://quarkus.io/guides/smallrye-graphql#quarkus-smallrye-graphql_quarkus-smallrye-graphql-log-payload

Also, in a later version of Quarkus, there should be a GraphQL log tab in Dev UI (if this is dev mode only where you need this)

enter image description here

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Phillip Krüger

79634717

Date: 2025-05-23 01:14:09
Score: 2
Natty:
Report link

Do File > Invalidate Caches... in your Android Studio.

and try to build your app again.

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

79634714

Date: 2025-05-23 01:08:08
Score: 1
Natty:
Report link

In the Really Simple theme (good for hard coding web page layout for simplicity), in page.php, this line sends out main page content, including the title: get_template_part( 'template-parts/content', 'page' ); It also strips out javascript in the main page content. If you can find a good way to send back the title alone, comment this line out, and replace it with: echo get_post_field( 'post_content', get_the_ID(), 'raw' ); This does not filter out such javascript. As for including the title (in h1 html tags), get_template_part( 'template-parts/content', 'title' ); works, but not quite right. It turns the title into a link.

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

79634707

Date: 2025-05-23 00:59:05
Score: 4.5
Natty: 5.5
Report link

I use
pip install flash_attn-2.7.0.post2%2Bcu124torch2.4.0cxx11abiFALSE-cp311-cp311-win_amd64.whl
I want to know how to call it correctly—should I use:
from flash_attn import flash_attn_func
or
from torch.nn.functional import scaled_dot_product_attention
Additionally, I only installed the .whl file and did not install ninja. Is this correct?

Reasons:
  • Blacklisted phrase (1): I want to know
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: 特蒂尼耶

79634705

Date: 2025-05-23 00:54:04
Score: 0.5
Natty:
Report link

This post is nearly 15 years old, but I feel the need to add some missing context here. Stefan Kendall's answer is correct, but a proof is not given. Although it follows directly from properties of trees, it may not be apparent to every reader that this algorithm always works.

Firstly, if the input tree has an odd number of vertices, it is impossible for there to be a perfect matching in the tree since every edge has exactly two endpoints and a perfect matching contains exactly one edge incident to any vertex. However, not every tree with an even number of vertices has a perfect matching.

Algorithm: Identify an edge (u,v) of the forest T which has a leaf u. Delete vertex v from T, and recursively determine if T - v has a perfect matching. As base cases, if T is the trivial graph with no vertices, return true. If T has an odd number of vertices, return false.

Proof: The base cases are justified by above. It is a theorem of graph theory that every tree contains at least one leaf vertex. Deleting the unique neighbor of a leaf from a tree results in a forest. Certainly, if a tree T has a perfect matching and u is a leaf, then the edge (u,v), where v is the unique neighbor of u, must be in the perfect matching. Therefore, if a tree T has a perfect matching and u is a leaf in T with neighbor v, then the forest T' = T - {v} must also have a perfect matching. Furthermore, since every perfect matching must contain edge (u,v), it is also true that if tree T does not have a perfect matching, then T' cannot have a perfect matching. Thus, T has a perfect matching if and only if T' has a perfect matching. Moreover, all the properties of trees discussed above apply to each component of T'. The algorithm relies on these fact to recursively find whether forests obtained by deleting leaf vertices have perfect matchings. The proof of correctness has been implicit in the discussion so far

Additional notes of interest: This algorithm can be easily modified to return the actual perfect matching, if one exists. In fact, our discussion above also proves that if a tree has a perfect matching, then it is unique; thus, every tree contains at most one perfect matching. This is because at each stage of the (modified) algorithm, we guarantee that the edge (u,v) that we add is contained in every perfect matching of the graph that contains it, if a perfect matching exists.

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

79634704

Date: 2025-05-23 00:54:04
Score: 4
Natty: 4.5
Report link

Same error message and PYTHONPATH has resource folder on it but no easy way to rename as folder is part of LibreOffice suite. Easier to simply unset PYTHONPATH as required.

Reasons:
  • RegEx Blacklisted phrase (1): Same error
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: bozo88

79634701

Date: 2025-05-23 00:51:03
Score: 0.5
Natty:
Report link

For what it's worth in 2025, in my research it seems possible to use within Libraries, though it still could be subjective. Some form of official guidance from Google would be more helpful still as their dream of removing the older UI compat libs to reduce overall app size would depend on library devs also avoiding using those older libs.

The biggest downside I know of is the level of risk of breaking Compose version conflicts with the app using your library, and that's a risk with any dependency in a library project. Compose is a lot larger than most libraries though as it's many sub-dependencies. If Compose remains stable enough, it could work out fine.

I am curious to find more examples in the wild as I am actively weighing this migration as well for certain libraries. I have found one example in the Intercom SDK. You can see in their developer portal that there have been some developer issues in the past like this one, but they have been using Compose in their SDK for a while now.

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

79634689

Date: 2025-05-23 00:26:58
Score: 1
Natty:
Report link

the probem is in URI ,change your URI add ssc instead of only s

Neo4j URI: neo4j+s://53XXXe0e.databases.neo4j.io
//change this into
Neo4j URI: neo4j+ssc://53XXXe0e.databases.neo4j.io
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yash

79634683

Date: 2025-05-23 00:17:56
Score: 2
Natty:
Report link

If you have multiple SECRET_KEYS, go to your project IAM and add these

in the principal named : firebase-app-hosting-compute@PROJECT_ID.iam.gserviceaccount.com

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

79634680

Date: 2025-05-23 00:06:55
Score: 0.5
Natty:
Report link

Based on Edward's comment about the positioning of the y-axis title, I tinkered with Jon's patchwork solution. To preserve the default positioning of most plot elements, I used the patchwork functionality to calculate the amount by which I need to adjust the margin of the smaller plot. This solution works even when the sizing of multiple plot elements differs across plots (in the example, the axis text and the axis title).

library(ggplot2)
library(patchwork)
p1 <- ggplot(mpg, aes(x = hwy, y = cty)) +
  geom_point()
p2 <- ggplot(mpg, aes(x = hwy, y = cty*10000)) +
  geom_point()
p3 <- ggplot(mpg, aes(x = hwy, y = cty)) +
  geom_point() + ylab('blablablab\nblub')

p1_dims <- get_dim(p1)
p2_dims <- get_dim(p2)
p3_dims <- get_dim(p3)

p1_dims_tinker <- p1_dims
p2_dims_tinker <- p2_dims
p3_dims_tinker <- p3_dims

p1_dims_tinker$l[1] <- p1_dims_tinker$l[1] + max(sum(p1_dims$l), sum(p2_dims$l), sum(p3_dims$l)) - sum(p1_dims$l)
p2_dims_tinker$l[1] <- p2_dims_tinker$l[1] + max(sum(p1_dims$l), sum(p2_dims$l), sum(p3_dims$l)) - sum(p2_dims$l)
p3_dims_tinker$l[1] <- p3_dims_tinker$l[1] + max(sum(p1_dims$l), sum(p2_dims$l), sum(p3_dims$l)) - sum(p3_dims$l)

p1c <- set_dim(p1, p1_dims_tinker)
p2c <- set_dim(p2, p2_dims_tinker)
p3c <- set_dim(p3, p3_dims_tinker)

ggsave(plot = p1c, filename = "p1patchworktinker.pdf", height = 5, width = 6, units = "cm")
ggsave(plot = p2c, filename = "p2patchworktinker.pdf", height = 5, width = 6, units = "cm")
ggsave(plot = p3c, filename = "p3patchworktinker.pdf", height = 5, width = 6, units = "cm")

I have a lot of plots in my presentation, so I also developed a more general way of adjusting all four margins across a list of plots

p1 <- ggplot(mpg, aes(x = hwy, y = cty)) +
  geom_point()
p2 <- ggplot(mpg, aes(x = hwy, y = cty*10000)) +
  geom_point()
p3 <- ggplot(mpg, aes(x = hwy, y = cty)) +
  geom_point() + ylab('blablablab\nblub')

plotList <- list(p1,p2,p3)
dimList <- lapply(plotList, get_dim)
maxDimPerPlot <- lapply(dimList, function(x) lapply(x, sum))
maxDimAcrossPlots <- as.list(apply(do.call(rbind, lapply(maxDimPerPlot, data.frame)), 2, max))

for (i in 1:length(plotList)){
  dimsTMP <- dimList[[i]]
  for (m in names(dimsTMP)){
    dimsTMP[[m]][i] <- dimsTMP[[m]][i] + maxDimAcrossPlots[[m]] - maxDimPerPlot[[i]][[m]]
  }
  pTMP <- set_dim(plotList[[i]], dimsTMP)
  ggsave(plot = pTMP, filename = paste0("p", i, "patchworktinker2.pdf"), height = 5, width = 6, units = "cm")
}

This does the job, but it is not very elegant and requires constructing all plots of my presentation in one script. I would still be glad, if there is a way to set the coordinates of the center (or corner) of a fixed-size-panel within a PDF image.

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

79634676

Date: 2025-05-23 00:03:54
Score: 4
Natty:
Report link

This problem was resolved. It was a coding issue.

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

79634671

Date: 2025-05-22 23:54:52
Score: 1
Natty:
Report link

It should be pattern = phrase("休 浜") or pattern = list(c("休","浜")).

phrase() simply splits the string by the whitespace and create a list.

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

79634669

Date: 2025-05-22 23:52:48
Score: 9 🚩
Natty:
Report link

Did you find a solution to this?

I'm having similar issues doing basically the same thing. It seems like an issue related to the usage of npm link.

https://github.com/vuejs/pinia/discussions/1073#discussioncomment-6297570

https://github.com/freddy38510/quasar-app-extension-ssg/issues/379

Reasons:
  • RegEx Blacklisted phrase (3): Did you find a solution to this
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Me too answer (2.5): I'm having similar issue
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you find a solution to this
  • Low reputation (1):
Posted by: RecursionError

79634661

Date: 2025-05-22 23:32:44
Score: 3
Natty:
Report link

I found a better workaround that worked for me. https://github.com/expo/expo/issues/24652

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

79634646

Date: 2025-05-22 23:14:39
Score: 0.5
Natty:
Report link

The answer is scattered in all of these answers so I'll consolidate (because it could be the same as my problem, more than 1 setting not configured correctly)

  1. Make sure that your default formatter is set.
    default formatter

  2. Set your configuration file.
    config file

  3. Set Prettier Path.
    prettier path

This should fix it, but make sure that your .prettierignore file is also set (just a little bit above the path option).
prettierignore path

If you're using prettier globally vs locally, make sure the prettier path is set to your global install location (you can figure this out by typing $which prettier providing that you're using Linux.

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