79496202

Date: 2025-03-09 16:14:45
Score: 2
Natty:
Report link

I assume you mean the sum from 1 up to the number including?:

Equation

if so, I would write it in python 3 like so:

lambda(x) = sum([i for i in range(1,x+1)]

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

79496200

Date: 2025-03-09 16:13:44
Score: 0.5
Natty:
Report link

Hard to be 100% sure without the imports, but I suspect you imported the wrong items method or didn't import it at all.

So for your code, that'd mean adding this import:

import androidx.compose.foundation.lazy.grid.items
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mrlem

79496176

Date: 2025-03-09 15:57:42
Score: 2
Natty:
Report link

If anyone still has this issue - the fix for me was that stating the credentials in the docker-compose/logstash.conf is just not enough -> they need to be set in logstash.yaml as well
xpack.monitoring.elasticsearch.username: <<username>>
xpack.monitoring.elasticsearch.password: <<password>>

thanks to David's response in this thread:
https://discuss.elastic.co/t/logstash-got-response-code-401-contacting-elasticsearch-url/317081/7?u=petar_nedyalkov

Reasons:
  • Blacklisted phrase (0.5): thanks
  • No code block (0.5):
  • Low reputation (1):
Posted by: Petar Nedyalkov

79496165

Date: 2025-03-09 15:46:39
Score: 1.5
Natty:
Report link

Running Chrome on Lambda or GCP can be quite a hassle; there’s a lot of configuration needed to establish a proper working environment. We eventually opted for https://browsercloud.io for our projects, as it allows us to run Puppeteer and Playwright sessions in the cloud to render PDFs and screenshots from Google SERP. It works well for us!

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Oleg Babakov

79496163

Date: 2025-03-09 15:45:39
Score: 5
Natty:
Report link

I need to see the exact error message from the frontend and the React code where you're making the POST request with Axios.

Can you share:

1 - The error message from the browser console or network tab.
2 - The React code handling the form submission.
Once I have those, I can help you fix the error!

Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (2.5): Can you share
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Abdelmoumeniheb

79496158

Date: 2025-03-09 15:43:38
Score: 2.5
Natty:
Report link

Uninstall previous versions of Java, like java 8. Not java17 or java 21, these are fine, no need to uninstall. Try and update.

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

79496156

Date: 2025-03-09 15:42:38
Score: 1
Natty:
Report link

I had this issue because of typing

<body>
    {{body}}
</body>

instead of

<body>
    {{{body}}}
</body>

in views/layouts/main.handlebars

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

79496155

Date: 2025-03-09 15:42:38
Score: 0.5
Natty:
Report link

I came across this warning when I was running unit tests.

Warning

To suppress this warning, I used the following:

 <!-- Maven Surefire -->
<plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>${maven-surefire-plugin.version}</version>
                <configuration>
                    <argLine>-XX:+EnableDynamicAgentLoading</argLine>
                </configuration>
            </plugin>
</plugins>

After reviewing the information on this topic, I realized that you can also use the following:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <configuration>
        <argLine>
            -javaagent:${settings.localRepository}/org/mockito/mockito-core/${mockito.version}/mockito-core-${mockito.version}.jar
            -Xshare:off
        </argLine>
    </configuration>
</plugin>
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: MAGistr

79496154

Date: 2025-03-09 15:41:38
Score: 0.5
Natty:
Report link

For me, the source of this "invalid argument 22" problem turned out to be entirely different. I was copying between two ext4 filesystems, so that wasn't the problem. There was no problem in the filenames, either. Trial and error revealed the issue:

Evidently there's a conflict between the --inplace argument and attempting to copy files with extended attributes (well, anyway, the problem only occurs in files whose permissions indicators end in '+', as in 'rw-r-----+'). I observe that I can have one or the other but not always both. Rsync hangs forever in such a case. That's a bug, I think, so I have filed a report at Github RsyncProject/rsync.

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

79496147

Date: 2025-03-09 15:37:37
Score: 3
Natty:
Report link

Apache NetBeans IDE 24 is garbage. It requires much fixing such as changing the default project folder, and Javadoc generator. The previous Netbeans 8.2 worked as a charm.

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

79496146

Date: 2025-03-09 15:36:37
Score: 2
Natty:
Report link

For me three steps helped with this problem

  1. uninstall vs code

  2. install pycharm

  3. use always a venv (default in pycharm)

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

79496145

Date: 2025-03-09 15:34:36
Score: 4
Natty: 4.5
Report link

Я начал изучать xv6 и пытался подключиться и отлаживать с помощью GDB в VS code. У меня получилось только когда я в файле .gdbinit закоментировал строчку кода с localhost:port. (@REM)

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: Siarhei Marozau

79496142

Date: 2025-03-09 15:33:35
Score: 4
Natty: 4.5
Report link

Check your firewall settings first, sometimes it blocks the port!

https://www.perplexity.ai/search/error-p1001-can-t-reach-databa-mHvOumSkQ6CCX9ZqMQPtOA

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

79496137

Date: 2025-03-09 15:30:33
Score: 9 🚩
Natty: 5.5
Report link

did you find a solution to this problem?

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

79496128

Date: 2025-03-09 15:24:32
Score: 2
Natty:
Report link

select orderdate from Sales.Orders

where orderdate =EOMONTH(orderdate);

or

SELECT EOMONTH(SYSDATETIME());

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

79496126

Date: 2025-03-09 15:21:30
Score: 6.5 🚩
Natty: 4.5
Report link

Have you ever try a AnotherWLAN like #NET-CLARO-WIFI, starting with #
I just cannot add it using these commands. Any other suggestion?

Reasons:
  • RegEx Blacklisted phrase (2): Any other suggestion?
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Tiago Marquez

79496119

Date: 2025-03-09 15:17:29
Score: 2
Natty:
Report link

I'm facing the same issue. As a workaround, I set a short-lived cookie that I check instead.

Here's a generic version of what I did.

In my action where I update the metadata:

import { auth, clerkClient } from '@clerk/nextjs/server'
import {cookies} from "next/headers";


export const storeMyData = async(myData) => {
  const { userId } = await auth()
  
  if (!userId) {
    return { message: 'No Logged In User' }
  }

  const client = await clerkClient()

  try {
  const res = await client.users.updateUserMetadata(userId, {
      publicMetadata: {
        myField: myData,
      },
    })
    const cookieStore = await cookies();
    cookieStore.set('temp-myField','true',{path: '/', maxAge: 60})

    return { message: res.publicMetadata }
  } catch (err) {
    return { error: 'There was an error updating the user metadata.' }
  }
}

And in my middleware file:

import { clerkMiddleware} from '@clerk/nextjs/server'
import { NextRequest } from 'next/server'
import { cookies } from "next/headers"

export default clerkMiddleware(async (auth, req: NextRequest) => {
  const { sessionClaims } = await auth()
  const cookieStore = await cookies()
  const tempMyField = cookieStore.get('temp-myField')?.value 
  const isMyFieldTrue = tempMyField || sessionClaims?.metadata?.myField

  // ... more code
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I'm facing the same issue
  • Low reputation (1):
Posted by: Jelani John

79496115

Date: 2025-03-09 15:14:29
Score: 1
Natty:
Report link

Unfortunately, investpy is no longer functional, but you can get the same thing with Yfinance

import yfinance as yf

ticker_yahoo = yf.Ticker("US0378331005")
print(ticker_yahoo.ticker)

so that the result will be “AAPL”

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

79496114

Date: 2025-03-09 15:13:28
Score: 7
Natty: 7
Report link

Hi did you find an answer to this? I’ve the exact problem. So I use python and call CMD [python, main, arg1, arg2] to make sure the docker file allows the arguments. But for me the control isn’t coming to if name main. Like it says application exec likely failed. And main.py needs arguments. I’m using argparse to handle the args and if there’s no args like the job is scheduled to run, it’s supposed to take a default set of vals for the args. Pls assist. Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): answer to this?
  • RegEx Blacklisted phrase (3): did you find an answer to this
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Raghu K Para

79496103

Date: 2025-03-09 15:06:27
Score: 0.5
Natty:
Report link
for {set i 0} {$i < 750} {incr i} {
    puts -nonewline "$i "
    if { $i % 5 == 4 && $i != 0} {
    puts "GOOD "
    }
}

added two conditions. and use nonewline to get your ouput format.

$i % 5 == 4 && $i != 0
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: flash

79496097

Date: 2025-03-09 15:03:27
Score: 2
Natty:
Report link

oh, running Chrome in lambda is a headache, you need to set up a lot to get a normal working environment. We ended up using https://browsercloud.io for our projects (we run Puppeteer and Playwright sessions in the cloud) to render PDFs/screenshots from Google SERP - works well fo us

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

79496093

Date: 2025-03-09 15:01:26
Score: 3
Natty:
Report link

I'm coming back to answer my own question in case anyone finds this. The reason I cannot install Cassandra 4.1.8 on Amazon Linux 2 is because the RPM version that ships with AML2 is to old. If you want to install Cassandra 4.1.8 on Amazon Linux 2 you must use the manual binary install option.

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: jWoose

79496089

Date: 2025-03-09 14:59:26
Score: 2
Natty:
Report link

What is a Barred Relationship?

Primary Key Dependency:

In a barred relationship, the primary key of one entity (called the "weak" or "dependent" entity) includes the primary key of another related entity (called the "strong" or "parent" entity).

This means that the dependent entity cannot exist without the parent entity.

Graphical Representation:

In Entity-Relationship (ER) diagrams, a barred relationship is represented by a bar on the line connecting the two entities. This bar indicates that the primary key of the dependent entity includes the primary key of the parent entity.

Practical Example:

In the example you mentioned:

Why is this important?

In Summary:

A barred relationship occurs when the primary key of one entity includes the primary key of another related entity, indicating a strong dependency between them. In the example, the ACCOUNT entity depends on the BANK entity to form its primary key, and this is represented by a bar on the relationship line.

More:

Identifying (Barred) Relationships

Identifying Relationships with Multiple Entities

Reasons:
  • RegEx Blacklisted phrase (0.5): Why is this
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What is a
  • Low reputation (1):
Posted by: Guilherme da Silva Serafim

79496081

Date: 2025-03-09 14:56:25
Score: 5
Natty: 4.5
Report link

I tried to run this code in https://github.com/bertrandmartel/aws-ssm-session and ran:

npm install http-server -g http-server -a localhost -p 3000 However, I cannot access http://localhost:3000/test/web.

Can anyone support me?

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Hiếu Nguyễn

79496079

Date: 2025-03-09 14:54:24
Score: 2.5
Natty:
Report link

Thanks, all, @TedLyngmo told me what I did wrong. I cannot overload operator << for standard types, so, I needed to create a class and use it instead to unpack my template parameters. Here's a sample code that works, again, patterned from that Vandervoode, Josuttis and Gregor book:

#include <iostream>
#include <string>

template<typename T>
class AddSpace
{
private:
    T const& ref;
public:
    AddSpace(T const& r) : ref(r) {}
    friend std::ostream& operator << (std::ostream& str, AddSpace<T> s)
    {
        return str << s.ref << ' ';
    }
};

template <typename... Args>
void print(Args... args)
{
    // Fold expression unpacks args, creates one AddSpace object per arg, and outputs each AddSpace::ref to std::cout.
    (std::cout << ... << AddSpace(args)) << std::endl;
}

int main()
{
   
    print(1, 2, 3, 4);
    return 0;
}

Creating a user class, overloading operator << to take values from that class, and using it to unpack the template parameters, apparently does the job. It's a bit complicated but it works. So, again, thanks to you all!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (0.5): I cannot
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @TedLyngmo
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Albertus

79496059

Date: 2025-03-09 14:39:22
Score: 1
Natty:
Report link

<head>

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">

</head>

<br />

<b>Fatal error</b>: Uncaught PDOException: SQLSTATE[28000]: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Login failed for user 'qr'. Reason: The password of the account has expired. in C:\xampp\htdocs\lib\Medoo.php:241

Stack trace:

#0 C:\xampp\htdocs\lib\db.php(16): Medoo\Medoo->__construct(Array)

#1 C:\xampp\htdocs\sign.php(21): require('C:\\xampp\\htdocs...')

#2 {main}

thrown in <b>C:\xampp\htdocs\lib\Medoo.php</b> on line <b>241<

/b><br />

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

79496054

Date: 2025-03-09 14:36:21
Score: 0.5
Natty:
Report link

As I tested on sqlx 0.8.3

One can connect with

let db = SqlitePool::connect_with(
    SqliteConnectOptions::new()
        .filename(format!("{}/data.db", context.output_dir.display()))
        .create_if_missing(true),
)
.await
.unwrap();

Just remove sqlit:// prefix of the filename!

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

79496043

Date: 2025-03-09 14:22:19
Score: 5
Natty:
Report link

https://github.com/chakra-ui/chakra-ui/blob/main/sandbox/vite-jsx/src/App.jsx

follow vite-jsx in here.....................

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • No latin characters (0.5):
  • Filler text (0.5): .....................
  • Low reputation (1):
Posted by: Sai Kiran Dwaraka

79496034

Date: 2025-03-09 14:18:18
Score: 1
Natty:
Report link

The filter parameter works. You passed the mask incorrectly. Use:

$filesToMove = Get-ChildItem -Path $sourceFolder -File -Filter '*2*.zip'

Another asterisk character is missing after the number 2. Another tip: Choose an apostrophe instead of quotes when there is no variable within the string.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: João Mac

79496030

Date: 2025-03-09 14:13:17
Score: 3.5
Natty:
Report link

Use zip_ encryption flutter package for encryption of zip file using flutter.

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

79496014

Date: 2025-03-09 13:59:14
Score: 3.5
Natty:
Report link

If you dont get any alert for IP, you can find adding IP in Security>Network Access.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Enes Şağban

79496012

Date: 2025-03-09 13:57:14
Score: 5.5
Natty: 5.5
Report link

Do you rename your DB path in each release?

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

79496003

Date: 2025-03-09 13:52:13
Score: 1.5
Natty:
Report link

We were having the exact same issue, it was only failing for aab. This is a signing issue as mentioned above, which is due to the Releases signed by Google Play by default on Google play console, generates a new signing certificates. And the fingerprint details we can see in the Test and Release menu > Setup > App signing. We can see "App signing key certificate", here we can note SHA-1 certificate fingerprint and use it in,

(if you're using Firebase) Firebase console > Project Settings > General > add in SHA certificate fingerprints

And also, in Google Cloud > API & Services > Credentials > Create Credentials > Create OAuth client ID > Android > add in SHA-1 certificate fingerprint.

After adding the SHA-1 fingerprint, immediately I could see the issue is resolved. So here the point is, we should add all the respective SHA-1 fingerprints in Firebase (if applicable) and in Google cloud services too.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): having the exact same issue
  • High reputation (-1):
Posted by: Aniruddha Shevle

79495998

Date: 2025-03-09 13:45:11
Score: 0.5
Natty:
Report link

This type of error is often linked to a Java / Gradle / AGP version incompatibility.

Can you run the following command from the root of the Flutter project to do a first check:

flutter analyze --suggestions

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

79495996

Date: 2025-03-09 13:45:11
Score: 1.5
Natty:
Report link

i fixed my problem by updating symfony cli to 5.11.0

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

79495995

Date: 2025-03-09 13:45:11
Score: 1.5
Natty:
Report link

You can't submit a HTML form without a submit/button if you have more than one field. You can either add a submit input or a button (even hidden), or add some javascript to handle that.

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

79495990

Date: 2025-03-09 13:38:10
Score: 2
Natty:
Report link

For window command prompt:

Use ^ and press Enter.

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

79495984

Date: 2025-03-09 13:35:09
Score: 1.5
Natty:
Report link

Thanks for the comments that verified that the Up Arrow line editing worked in Linux for JDK 23. I dug a little deeper and found this, which, if I interpret it correctly, that the behavior was introduced in JDK 22.

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

79495983

Date: 2025-03-09 13:35:09
Score: 0.5
Natty:
Report link

it was not working for me when method param which was sent is null.

doThrow(Exception.class).when(mockedObj).method(anyString())

mockedObj.method(name); //value of name = null.

So, i had to change test as below

doThrow(Exception.class).when(mockedObj).method(eq(null))

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

79495977

Date: 2025-03-09 13:30:08
Score: 2.5
Natty:
Report link

Each package on pub.dev has a link to their git repo. You can just go to the repo and clone the package to view before using it in your app

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

79495972

Date: 2025-03-09 13:23:07
Score: 1.5
Natty:
Report link

Problem resolved. I have successfully finished: "cargo install csvlens".

The problem as noted with EDIT-2 were lines that looked like:

token = "…"  

in the config file. By commenting all places with the: xxx = "…", and running the install command, the csvlens is now installed.

 $ cargo install csvlens
    Updating crates.io index
  Downloaded csvlens v0.12.0
  Downloaded 1 crate (65.3 KB) in 0.36s

    .... 

 Compiling csvlens v0.12.0
    Finished `release` profile [optimized] target(s) in 4m 10s
  Installing /home/william/.config/cargo/bin/csvlens
   Installed package `csvlens v0.12.0` (executable `csvlens`)
 $

Those: "…" strings look like placeholders. I think they ought to be comments if they are optional or are not always used(???). Thanks to @Kevin Reid for the suggestion.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): ???
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Kevin
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: will

79495966

Date: 2025-03-09 13:20:06
Score: 1.5
Natty:
Report link

RoboCopy MIGHT do this relatively easily/simply in a single command. I know it can wait if the file is unavailable and then keep retrying. Note that I haven't done it personally, but while we were migrating servers at one of my employers, they had a script running all the time looking for files that had recently changed (to copy them to the new server). Just a thought. Let me know if you want to explore it and I'll be more specific. -Mark

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Mark Stepan

79495945

Date: 2025-03-09 13:09:04
Score: 1.5
Natty:
Report link

add

<item name="android:windowIsTranslucent">true</item>

Add the code to both the themes.xml and themes.xml(night)

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

79495937

Date: 2025-03-09 13:01:02
Score: 3
Natty:
Report link

Yes, it is generally recommended to use TypeScript with functional components in "modern" React. Functional components(with hooks) have become a standard approach in React.

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

79495935

Date: 2025-03-09 13:00:02
Score: 1.5
Natty:
Report link

TextTheme cannot apply to all text widget cause text widget need a text style while textTheme contains multiple text style.

To change text style for all text in little, use listTileTheme. Use DefaultTextStyle widget to change the style of all defendant Text widget.

This tread throws more light on it.

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

79495925

Date: 2025-03-09 12:49:00
Score: 1.5
Natty:
Report link

Best way in Unity is to use UnsafeUtility from Unity.Collections.LowLevel.Unsafe namespace:

int sizeOfStructure = UnsafeUtility.SizeOf<VertexData>();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Movietone Official

79495920

Date: 2025-03-09 12:47:00
Score: 2.5
Natty:
Report link

disconnecting the VPN for both computer and iphone, worked

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

79495919

Date: 2025-03-09 12:47:00
Score: 3.5
Natty:
Report link

it seems still in preview stage, you might want to report back to gcp

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

79495913

Date: 2025-03-09 12:41:59
Score: 1
Natty:
Report link
for file in files:
try:
    df = pd.read_csv("/Users/georgezambrano/Desktop/Code/Sales_Data/"+file)
except:
    continue

This, way you can work around the .DS_Store without deleting it.

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

79495890

Date: 2025-03-09 12:16:53
Score: 4.5
Natty:
Report link

YourApplication\app\release\apk

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Cyrus Amirabadi

79495881

Date: 2025-03-09 12:06:51
Score: 1.5
Natty:
Report link

I had this issue when using Place Autocomplete GET request which i used to use for my clients than it appears is no more available for new users

This product or feature is in Legacy status and cannot be enabled for new usage. For more information about the Legacy stage and how to migrate from Legacy to newer services...

Request should be send as POST request for now

Migration

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

79495878

Date: 2025-03-09 12:04:51
Score: 1
Natty:
Report link

It seems that closing table tag needs to be full tag and not shortcut. The following fixes the problem

<table id="table" class="table table-striped" style="width:95%"></table>

instead of

<table id="table" class="table table-striped" style="width:95%" />
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: user69166

79495864

Date: 2025-03-09 11:55:48
Score: 1
Natty:
Report link

In settings.json add a general cursor color setting that works across all themes by adding this outside of the theme-specific settings:

"workbench.colorCustomizations": {
  "editorCursor.foreground": "#ffff00",
  "editorCursor.background": "#ffff00"
},

This will change your cursor color to bright yellow..

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

79495862

Date: 2025-03-09 11:51:47
Score: 0.5
Natty:
Report link

After recreating projects from scratch, that worked just fine, I eventually decided to fire up Wireshark just to see if the events were really getting sent out or not. That's when I remembered I had an nginx running locally to handle the certs and ports. Sure enough, it was buffering the events.

I added the following and everything now works fine:

proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_buffering off;
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Steve Maring

79495858

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

Use syscall.UTF16ToString with a converted []uint16 slice for simplicity, or unicode/utf16.Decode for flexibility. Both will let you print the string to the console.

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

79495852

Date: 2025-03-09 11:36:45
Score: 2
Natty:
Report link

It worked for me with another package issue installing dependencies. Thanks a lot

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): It worked
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: David Delgado Déniz

79495851

Date: 2025-03-09 11:35:45
Score: 1
Natty:
Report link

MQTT should also be a good alternative. It has been designed for IoT devices and thus has low overhead.

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

79495839

Date: 2025-03-09 11:25:43
Score: 0.5
Natty:
Report link

Got the workaround from here: https://github.com/diesel-rs/diesel/issues/89#issuecomment-429547936

#[derive(Identifiable, Queryable)]
#[table_name = "product_category"]
pub struct ProductCategory {
    id: i32,
    name: String,
}

pub struct DummyProductCategory(ProductCategory);

#[derive(Queryable, Identifiable, Associations)]
#[belongs_to(ProductCategory, foreign_key="upper_category_id")]
#[belongs_to(DummyProductCategory, foreign_key="lower_category_id")]
#[table_name = "product_category_rollup"]
pub struct ProductCategoryRollup {
    id: i32,
    upper_category_id: i32,
    lower_category_id: i32,
}
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ligo George

79495834

Date: 2025-03-09 11:22:43
Score: 2.5
Natty:
Report link

Using Firefox ESR in Debian 12, I was able to visit an HSTS-blocked site by opening it in a "New Private Window." Seems to work in Chrome v134.0.6998.35 as well.

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

79495827

Date: 2025-03-09 11:19:42
Score: 2
Natty:
Report link

You can't transfer Wi-Fi over a hotspot on iPhones natively, but this answer states:

You can do this with USB or Bluetooth tethering on jailbroken iOS devices using an app such as MyWi.

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

79495817

Date: 2025-03-09 11:10:40
Score: 1.5
Natty:
Report link

This is the third time I try to upgrade to kotlin 2 and the hilt metadata problem is a stopper. Thank you for looking into it.

Where is my mistake?

// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
    alias(libs.plugins.android.application) apply false
    alias(libs.plugins.kotlin.android) apply false
    alias(libs.plugins.compose.compiler) apply false
    alias(libs.plugins.dagger.hilt.android) apply false
    alias(libs.plugins.devtools.ksp) apply false
}
plugins {
    alias(libs.plugins.android.application)
    alias(libs.plugins.kotlin.android)
    alias(libs.plugins.compose.compiler)
    alias(libs.plugins.dagger.hilt.android)
    alias(libs.plugins.devtools.ksp)
}

android {
    namespace = "com.....myapplication"
    compileSdk = 35

    defaultConfig {
        applicationId = "com.....myapplication"
        minSdk = 31
        targetSdk = 35
        versionCode = 1
        versionName = "1.0"

        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            isMinifyEnabled = false
            proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
        }
    }
    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_17
        targetCompatibility = JavaVersion.VERSION_17
    }

    kotlinOptions {
        jvmTarget = "17"
    }
}

dependencies {

    implementation(libs.androidx.core.ktx)
    implementation(libs.androidx.activity.compose)

    implementation(libs.material)
    implementation(libs.compose.material)

    implementation(libs.dagger.hilt.android)
    ksp(libs.dagger.hilt.android.compiler)
    ksp(libs.jetbrains.kotlinx.metadata.jvm)

    debugImplementation(libs.androidx.ui.tooling.preview)
    debugImplementation(libs.androidx.ui.tooling)

    testImplementation(libs.junit)

    androidTestImplementation(libs.androidx.junit)
    androidTestImplementation(libs.androidx.espresso.core)
}
[versions]
agp = "8.9.0"
ksp = "2.1.10-1.0.29"
kotlin = "2.1.10"
coreKtx = "1.15.0"
activityCompose = "1.10.1"
material = "1.12.0"
composeMaterial = "1.3.1"
uiTooling = "1.7.8"

daggerHilt = "2.51.1"
kotlinXMetadata="0.5.0"

junit = "4.13.2"
junitVersion = "1.2.1"
espressoCore = "3.6.1"

[libraries]
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
compose-material = { group = "androidx.compose.material3", name = "material3", version.ref = "composeMaterial" }
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activityCompose" }
androidx-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling", version.ref = "uiTooling" }
androidx-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview" }

dagger-hilt-android = { group = "com.google.dagger", name = "hilt-android", version.ref = "daggerHilt" }
dagger-hilt-android-compiler = { group = "com.google.dagger", name = "hilt-android-compiler", version.ref = "daggerHilt" }
jetbrains-kotlinx-metadata-jvm ={ group = "org.jetbrains.kotlinx", name = "kotlinx-metadata-jvm", version.ref="kotlinXMetadata"}

junit = { group = "junit", name = "junit", version.ref = "junit" }
androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }


[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
dagger-hilt-android = { id = "com.google.dagger.hilt.android", version.ref = "daggerHilt" }
devtools-ksp = { id = "com.google.devtools.ksp", version.ref = "ksp"}
Android Studio Meerkat | 2024.3.1
Build #AI-243.22562.218.2431.13114758, built on February 25, 2025
Runtime version: 21.0.5+-12932927-b750.29 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 15.3.1
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 2048M
Cores: 8
Metal Rendering is ON
Registry:
  ide.experimental.ui=true
  i18n.locale=
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Cvetelin Andreev

79495812

Date: 2025-03-09 11:08:39
Score: 1
Natty:
Report link
data = pd.read_csv(
    'Log_jeden_den.log',
 sep=r'\s+(?=(?:[^"]*"[^"]*")*[^"]*$)(?=(?:[^\[]*\[[^\]]*\])*[^\]]*$)',
    engine='python',
    na_values='-',
    header=None,
    usecols=[0, 3, 4, 5, 6, 7, 8],
    names=['ip', 'time', 'request', 'status', 'size', 'referer', 'user_agent'],
    converters={'time': parse_datetime,
                'request': parse_str,
                'status': parse_int,
                'size': parse_int,
                'referer': parse_str,
                'user_agent': parse_str})

enter image description here

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

79495811

Date: 2025-03-09 11:08:39
Score: 3.5
Natty:
Report link

Bro what is the problem exactly u tackled to make this work

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

79495805

Date: 2025-03-09 11:06:39
Score: 2.5
Natty:
Report link

You can simply copy the debug.keystore file from the ./android folder on your old device and replace the same file in the same location on your new device.

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

79495802

Date: 2025-03-09 11:04:38
Score: 0.5
Natty:
Report link
OptionalClientModel = create_model(
    "OptionalClientModel",
    **{k: (v.annotation | None, v) for k, v in ClientModel.model_fields.items()})

This should suit your needs. No need to iterate over the annotations yourself.

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

79495796

Date: 2025-03-09 10:58:37
Score: 1.5
Natty:
Report link

The gomock Framework (now maintained by Uber) does this, so yes - it's safe.

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

79495794

Date: 2025-03-09 10:56:37
Score: 2.5
Natty:
Report link

Actually, Burp's Montoya API provides everything needed. One just has to implement the following methods of the 3 interfaces HttpHandler, ProxyRequestHandler, and ProxyResponseHandler:

sketch

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

79495793

Date: 2025-03-09 10:54:36
Score: 1
Natty:
Report link

It is better to look at the deleted messages on the queue. The messages in flight is just a snapshot at a certain time. If the message was deleted already because the task did not take long to complete, then there would be no message in flight. I assume your task did not take long to finish ( 1 second maybe). And what are the odds that the messages in flight metric is updated at exactly that time?

So in order to be sure just check the deleted messages on the queue or as a way of testing it, add a sleep of approximately 60 seconds to every task. This will make the task take longer and allows you to see that it is in flight.

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

79495786

Date: 2025-03-09 10:52:35
Score: 1
Natty:
Report link

The error is coming from Kusto service not being able to download the blob, either the Kusto managed identity does not have permissions on the storage account or the storage account is not part of the private network (sounds like this is the issue given the answer @hello provided)

How does LightIngest works:

  1. The tool first lists the blobs in the container given the permissions either in the -source cmd arg or some other cmd arg (i.e. here connectToStorageWithUserAuth), here its using user prompt authentication, so given the user running the tool has permissions to list the container the tool will be able to list the blobs.
  2. The tool issue queued ingest (given you are using the suggested "ingest-" service URL), with the constructed URL based on the -source and other cmd args, (i.e. here - ingestWithManagedIdentity), here the resulted blob urls are of structure: "https://storage.blob.core.windows.net/container/blob.csv.gz;managed_identity=system"
  3. The tools poll the ingestion result (unless disabled).

See LightIngest managed identity docs and the code

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • User mentioned (1): @hello
  • Low reputation (0.5):
Posted by: Ohad Bitton

79495785

Date: 2025-03-09 10:52:35
Score: 2.5
Natty:
Report link

It is 3 years topic, but I need that functionality also.
So I've found this extension: https://marketplace.visualstudio.com/items?itemName=daucloud.dark-theme-image-view&ssr=false#overview

Basically it does the job - the chessboard background is replaced by a white background for png files.

I am not sure about safety of using it though.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Eldar V

79495775

Date: 2025-03-09 10:44:34
Score: 0.5
Natty:
Report link

How did you create the virtual environment? Did you activate it once it is created?
Sometimes, we can miss activating the environment and installing the necessary dependencies on it.

I personally use uv for creating and managing virtual environments:

$ uv venv
$ source .venv/bin/activate
$ (venv) pip install python-gnupg==0.5.4

If you don't use uv, you can always follow this tutorial venv — Creation of virtual environments, you'll get the same result.

I've just run that snippet of code and it worked perfectly fine within my virtual environment. Make sure you activate and install the correct gnupg python dependency.

Regarding to the formatter of the result. What you're printing is a byte-formatted string.
In case you want a more human-readable output you can always do the following:

if encrypted_data.ok:
    print("Data encrypted successfully.")
    encrypted_str: str = bytes(encrypted_data.data).decode(encoding="utf-8")
    with open(file=out_file, mode="w") as encrypted_file:
        encrypted_file.write(encrypted_str)
    print(encrypted_str)

I've just casted the encrypted_data.data to bytes() and decoded it in UTF-8.

Reasons:
  • Blacklisted phrase (1): this tutorial
  • Whitelisted phrase (-1): it worked
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How did you
  • Low reputation (1):
Posted by: fqlenos

79495770

Date: 2025-03-09 10:38:33
Score: 1
Natty:
Report link

I use the Snap-SPARQL Plugin (in Protégé). It worked for me, even though it allows restricted use of some of the functions.

Reasons:
  • Whitelisted phrase (-1): It worked
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Arjun Kapoor

79495768

Date: 2025-03-09 10:34:32
Score: 0.5
Natty:
Report link

The only solution I have found is to have a global Input.input.addEventListener() call (rather than adding an event listener per context menu) and through it call a global callback that is updated by the context menus.

// Weak map mapping to Input listeners of submenus reliably.
// The keys are the submenu lists themselves, not the submenu representing items.
const submenuInputPressedListeners = new WeakMap<HTMLDivElement, Function>();

// Globalized input action listener
Input.input.addEventListener("inputPressed", function(): void
{
    currentInputPressedListener?.();
});

(Updated with either currentInputPressedListener = input_onInputPressed; or currentInputPressedListener = null;, instead of Input.input.addEventListener or removeEventListener)

Now am I doing this to test navigation input on submenus from outer context menus:

// Check input on submenu
submenuInputPressedListeners.get(submenus[submenus.length - 1])();
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Matheus Dias de Souza

79495766

Date: 2025-03-09 10:32:32
Score: 1
Natty:
Report link

Alternative:

<Box onSubmit={extendedFormSubmit} component="form">

const extendedFormSubmit = (event: FormEvent<HTMLFormElement>) => {
  event.preventDefault();
  event.stopPropagation();
  form.handleSubmit(onSubmit)();
};

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

79495765

Date: 2025-03-09 10:31:31
Score: 1.5
Natty:
Report link

thanks Alon. That worked for me too.


pip install ipython==8.33
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sergios Panos

79495761

Date: 2025-03-09 10:30:31
Score: 1.5
Natty:
Report link
  1. I've ran your code and test it in multiple screen sizes, and it doesn't represent the problem in the images, you're setting the flex-direction property of the .text-content element to column, I really cannot think of a way it will result in a row.
  2. Also, there's no second button, there is only one anchor tag but its text wraps.

(The second button isn‘t necessary anymore. :))

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

79495752

Date: 2025-03-09 10:22:30
Score: 1
Natty:
Report link

# Menyimpan diagram sebagai gambar agar bisa diunduh

# Buat ulang diagram dalam ukuran besar untuk kualitas lebih baik

plt.figure(figsize=(20, 15))

nx.draw(G, pos, with_labels=True, node_color=node_colors, edge_color="gray", node_size=4000, font_size=10, font_weight="bold", arrowsize=12)

# Tambahkan legenda

plt.legend(handles=patches, loc="lower right", fontsize=12)

plt.title("Diagram Alur Kerangka Berpikir Penelitian", fontsize=16, fontweight="bold")

# Simpan gambar ke file untuk diunduh

diagram_path = "/mnt/data/kerangka_berpikir_penelitian.png"

plt.savefig(diagram_path, dpi=300, bbox_inches="tight")

# Berikan tautan untuk mengunduh

diagram_path

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

79495740

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

The Go runtime cannot perceive the internal execution logic of C functions, and the memory management on the Go side is isolated from that on the C side. Therefore, calling in_c_foo via CGO does not have any special impact on the Go runtime. CGO is merely an FFI implementation, with both sides sharing the same process address space. When writing C code, you can think of the Go runtime as an independent CSP thread pool running within the same process—while sharing process resources, their logic remains isolated. However, you still need to be aware of three risks:

  1. If the C function spawns new threads, the Go scheduler will not be aware of them, which may lead to resource contention or leaks.

  2. While a C function is executing, the current M (OS thread) becomes locked, preventing it from running other Goroutines.

  3. When passing pointers to the Go heap, if the C function uses such a pointer asynchronously, it might result in a dangling pointer due to the shrinkage of the Go heap.

Therefore, it is crucial to rigorously scrutinize the passing and usage of pointer objects to avoid situations where both C and Go concurrently reference the same pointer object in different threads.

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

79495738

Date: 2025-03-09 10:11:27
Score: 4
Natty: 5
Report link

yeah that's a good trick thanks for having shared the insight!

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

79495737

Date: 2025-03-09 10:11:27
Score: 2.5
Natty:
Report link

Two steps-

  1. Change your id to int example-----"id": "5" to "id": 5,
  2. Use stable json-server version install it using npm install -g [email protected]
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: aishwarya pathak

79495732

Date: 2025-03-09 10:07:26
Score: 1
Natty:
Report link

Solution(not sure if it is an optimal):

If you are very closer to a conference deadline, then use(based on) qpdf to post-process your final PDF. The post-processed file does not give the Error 1010.

$ qpdf my_file.pdf my_file_new.pdf

Ubuntu 18.04.6 LTS, qpdf version 8.0.2

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

79495726

Date: 2025-03-09 10:03:25
Score: 2
Natty:
Report link

Not really.your problem but if you have a transcription error in the names of your properties and their references in @Value annotations you will often get an error about a dependency injection failure when you try to run the code.

The grimness of the message makes it seem as if something more fundamental is broken.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @Value
  • Low reputation (0.5):
Posted by: Matthew V Carey

79495718

Date: 2025-03-09 09:54:23
Score: 2.5
Natty:
Report link

This doesn't have a solution. It's fundamentally broken software. Virtual environments are merely presumed to work but they don't, and running your python interpreter in the V.E. doesn't help in the slightest. I wish there was an answer.

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

79495717

Date: 2025-03-09 09:53:23
Score: 0.5
Natty:
Report link

You can access it from the remote users

import { useRemoteUsers, useRemoteVideoTracks, useRemoteAudioTracks } from "agora-rtc-react";

function App() {
const remoteUsers = useRemoteUsers();
const { videoTracks } = useRemoteVideoTracks(
// Remove the local user's screen-sharing video track from the 
subscription list
remoteUsers.filter(user => user.uid !== appConfig.ShareScreenUID),
);
const { audioTracks } = useRemoteAudioTracks(
// Remove the local user's screen-sharing audio track from the 
subscription list
remoteUsers.filter(user => user.uid !== appConfig.ShareScreenUID),
);

return <></>;
}

https://github.com/AgoraIO-Extensions/agora-rtc-react/blob/main/packages/agora-rtc-react/docs/hooks/useLocalScreenTrack.en-US.mdx

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

79495701

Date: 2025-03-09 09:42:21
Score: 1.5
Natty:
Report link

An alternative i have been doing is you can actually use the below in my github action as a step , configure your role in AWS account role for github action permission (https://aws.amazon.com/blogs/security/use-iam-roles-to-connect-github-actions-to-actions-in-aws/)

      - name: Configure AWS Credentials
        # if: ${{ env.ACCOUNT == 'XXXX' }}
        uses: aws-actions/[email protected]
        with:
          aws-region: ${{ env.REGION }}
          role-to-assume: arn:aws:iam::xxxx:role/github-action-XXXX
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Miths

79495692

Date: 2025-03-09 09:32:19
Score: 3
Natty:
Report link

Insane that I can't comment because of lack of reputation. I just wanted to make a comment to say that you spelled auth wrong in your answer. You wrote "aithToken". I can't blame you because I didn't notice either and I just spent an hour trying to troubleshoot why it wasn't working, then I noticed that. Friendly FYI to anyone else who comes across this.

_aithToken=fake ---> _authToken=fake
Reasons:
  • RegEx Blacklisted phrase (1): can't comment
  • RegEx Blacklisted phrase (1.5): reputation
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bridging Shores

79495682

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

In search of how to work with SQLAlchemy in conjunction with SQLModel, find this thread that can be help. (not tested yet by myself)

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

79495669

Date: 2025-03-09 09:17:16
Score: 2.5
Natty:
Report link

Just to give an update. I did get e response on email. And after I sent them the screenshots they seem to have started the process again and it passed. And communication have continued over email. Which is good.

There just wasn't any indication about any human being involved that could be communicated with.

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

79495657

Date: 2025-03-09 09:10:14
Score: 4.5
Natty: 4
Report link

didn't work with me my dropdown is sumoselect

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

79495652

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

As of March 2025, the answer is you can't. because mysql plugin mysqlx is disabled by default on AWS RDS. You could check by using this command myssql> show plugins;

mysqlx-plugins

Unless you could activate the plugins with console or https://dev.mysql.com/doc/refman/8.4/en/rewriter-query-rewrite-plugin.html.

Reference:

https://stackoverflow.com/questions/65981814/mysqlx-plugin-unreachable-on-amazon-rds-mysql-8-0#:~:text=According%20the%20Amazon%20RDS%20user,far%20as%20I%20can%20tell.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ygautomo

79495651

Date: 2025-03-09 09:07:13
Score: 1.5
Natty:
Report link

I recommend this article: Especially section Race Condition: The page.waitForNavigation() must be run before page.reload() or page.goto() and concurrently.

// ❌ Problematic approach
await page.click('.link');
await page.waitForNavigation(); // May miss navigation

// ✅ Correct approach
await Promise.all([
    page.waitForNavigation(),
    page.click('.link')
]);
Reasons:
  • Blacklisted phrase (1): this article
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user2224575

79495625

Date: 2025-03-09 08:41:09
Score: 2.5
Natty:
Report link
    $user = DB::table('users')->where('id', 1)->lockForUpdate()->first();

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Abdullah Al Shahed

79495624

Date: 2025-03-09 08:41:09
Score: 1.5
Natty:
Report link

A simple if statement

I am converting the comments by @Anonymous and the code they link to to this answer. If your float is >= 0, cast to long first, and if within the unsigned int range, cast further to int. Otherwise the result is 0.

private static int convertFloatToUnsignedInt(float f) {
    if (f >= 0) {
        long asLong = (long) f;
        // Within range of unsigned int?
        if (asLong < 0x1_0000_0000L) {
            return (int) asLong;
        }
    }
    return 0;
}

Let’s try it with your example float values:

    float[] exampleFloats = { 0.0f, -0.1f, -1.5f, Float.NaN, 1.7f, 3e+9f, 1e+12f };
    for (float exampleFloat : exampleFloats) {
        int asInt = convertFloatToUnsignedInt(exampleFloat);
        System.out.format(Locale.ENGLISH, "%14.1f -> %10s or %11d%n",
                exampleFloat, Integer.toUnsignedString(asInt), asInt);
    }

Output is

           0.0 ->          0 or           0
          -0.1 ->          0 or           0
          -1.5 ->          0 or           0
           NaN ->          0 or           0
           1.7 ->          1 or           1
  3000000000.0 -> 3000000000 or -1294967296
999999995904.0 ->          0 or           0

The output shows the float value, the unsigned int value converted to and the signed value of the same int.

double to unsigned long

… but what about double to long?

For the case of converting double to unsigned long using the same criteria, you may convert via BigDecimal:

private static final double MAX_UNSIGNED_LONG_PLUS_ONE
        = 2.0 *(((double) Long.MAX_VALUE) + 1);

private static long convertDoubleToUnsignedLong(double d) {
    if (d >= 0 && d < MAX_UNSIGNED_LONG_PLUS_ONE) {
        return new BigDecimal(d).longValue();
    }
    return 0;
}

Trying this out too:

    double[] exampleDoubles = { 0.0, -1.5, Double.NaN, 1e+19, 1e+20 };
    for (double exampleDouble : exampleDoubles) {
        long asLobg = convertDoubleToUnsignedLong(exampleDouble);
        System.out.format(Locale.ENGLISH, "%23.1f -> %20s or %20d%n",
                exampleDouble, Long.toUnsignedString(asLobg), asLobg);
    }

Output:

                    0.0 ->                    0 or                    0
                   -1.5 ->                    0 or                    0
                    NaN ->                    0 or                    0
 10000000000000000000.0 -> 10000000000000000000 or -8446744073709551616
100000000000000000000.0 ->                    0 or                    0

The two conversion methods are not 100 % consistent. You may be able to streamline them a bit for more consistent code.

See the code run online

Repeating the link by @Anonymous the code is running online here. In the above I have made very minor adjustments to their code.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • User mentioned (1): @Anonymous
  • User mentioned (0): @Anonymous
  • Low reputation (1):
Posted by: Ema Persaud

79495619

Date: 2025-03-09 08:38:08
Score: 1
Natty:
Report link
/static/images/yourImage.png

Paste your image here , and use it in the Markdown div .
Note : Maybe you will need to re-build the Front-End

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

79495611

Date: 2025-03-09 08:25:06
Score: 5.5
Natty: 4.5
Report link

You can embed videos. There is a way: here https://www.youtube.com/watch?v=HIgMsF7naJI

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Peter Magenheim

79495605

Date: 2025-03-09 08:23:05
Score: 8.5 🚩
Natty: 4.5
Report link

Were you able to disable dual apps successfully with adb,I need help to disable

Dual apps and speed boost in my hyperOs 1.9.0

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (2.5): I need help
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kan-Wars

79495598

Date: 2025-03-09 08:21:04
Score: 2
Natty:
Report link

I accidently created app folder (empty) on the same level as src/ Deleting app folder fixed the issue.

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

79495593

Date: 2025-03-09 08:15:02
Score: 7 🚩
Natty: 6.5
Report link

Any update on this? I am also looking for a solution here.

Reasons:
  • Blacklisted phrase (1): update on this
  • Blacklisted phrase (2): I am also looking
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: saurabh singh

79495591

Date: 2025-03-09 08:11:01
Score: 0.5
Natty:
Report link

ListTile's title text uses TextTheme.bodyLarge or TextTheme.titleMedium by default. But you only customized TextTheme.bodyMedium. To customize all the Texts in the app, you should set all the properties in TextTheme.

You can find the default text style for ListTile here.
ListTile.titleTextStyle
ListTile.subtitleTextStyle

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

79495589

Date: 2025-03-09 08:10:01
Score: 5
Natty:
Report link

I have managed to make good progress with this. I switched to using a simple Microsoft Basic Optical Mouse:

// Microsoft Corp. Basic Optical Mouse 
#define USB_VENDOR_ID       0x045e      /* USB vendor ID used by the device */ 
#define USB_PRODUCT_ID      0x0084      /* USB product ID used by the device */ 

and the following code now works for the former mouse:

int main(void)
{
  libusb_device **devs;
  int r;
  int numread;
  ssize_t cnt;
  int counter = 0;
  
  // connect SIGINT to function sigint_handler() //
  if (signal(SIGINT, sigint_handler) == SIG_ERR)
    {
      printf("ERROR: Cannot Connect to SIGINT!");
    }

  // Block SIGALRM in the main thread //
  sigset_t sigset;
  sigemptyset(&sigset);
  sigaddset(&sigset, SIGALRM);
  pthread_sigmask(SIG_BLOCK, &sigset, NULL);
  
  r = libusb_init(&ctx);
  //  r = libusb_init_context(/*ctx=*/NULL, /*options=*/NULL, /*num_options=*/0);  

  if (r < 0)
    return r;

  //  libusb_set_option(ctx, LIBUSB_LOG_LEVEL_WARNING);
  
  libusb_set_debug(ctx, 3); // debug level 3 //

  cnt = libusb_get_device_list(ctx, &devs); // returns device list //
  if (cnt < 0)
    {
      libusb_exit(NULL);
      return (int) cnt;
    }
  
  print_devs(devs);

  libusb_free_device_list(devs, 1);

  // open device //
  handle = libusb_open_device_with_vid_pid(ctx, USB_VENDOR_ID, USB_PRODUCT_ID);

  if (!handle)
    {
      perror("device not found");
      return 1;
    }

  // set auto detach/attach kernel driver //
  r = libusb_set_auto_detach_kernel_driver(handle, 1); // enable = 1 //
  
  printf("auto_detach result = %d\n", r);
  
  // claim interface //
  r = libusb_claim_interface(handle, 0);

  if (r < 0)
    {
      fprintf(stderr, "usb_claim_interface error %d\n", r);
      return 2;
    }
  
  printf("Interface claimed\n");

  printf("Resetting Device\n");

  r = libusb_reset_device(handle);

  if (r < 0)
    {
      printf("ERROR %d resetting device!\n");
    }
  
  printf("*** Device Descriptor ***\n");

  r = libusb_get_descriptor(handle, LIBUSB_DT_DEVICE, 0, desc_buffer, 1024);

  dump_descriptor(r, desc_buffer, r);

  //////////////////////////////////////////////////////
  
  // allocate transfer of data IN (IN to host PC from USB-device)
  transfer_in = libusb_alloc_transfer(1);

  if (transfer_in == NULL)
    {
      printf("ERROR allocating usb transfer.\n");
    }

  // Note: in_buffer is where input data is written //
  //  libusb_fill_bulk_transfer(transfer_in, handle, USB_ENDPOINT_IN, in_buffer, LEN_IN_BUFFER, callback_in, NULL, 0); // NULL for no user data //
  libusb_fill_interrupt_transfer(transfer_in, handle, USB_ENDPOINT_IN, in_buffer, 8, callback_in, NULL, 0); // NULL for no user data //

  // submit next transfer //
  r = libusb_submit_transfer(transfer_in);

  if (r < 0)
    {
      printf("submit transter result = %d\n", r);
    }

  while (exitprogram == 0)
    {
      printf("exitprogram = %d\n", exitprogram);
      
      // waiting //
      //      r = libusb_handle_events_completed(ctx, NULL);
      r = libusb_handle_events(ctx);
      if (r < 0)
    {
      printf("ERROR at events handling\n");
      break;
    }
    }

  printf("exitprogram = %d\n", exitprogram);
  
  if (transfer_in)
    {
      r = libusb_cancel_transfer(transfer_in);
      if (r == 0)
    {
      printf("transfer_in successfully cancelled.\n");
    }
      else
    {
      printf("ERROR cancelling transfer\n");
    }
    }

    //////////////////////////////////////////////////////

  // if you DONT release the interface, communication halts //

  // release interface //
  r = libusb_release_interface(handle, 0);

  if (r < 0)
    {
      fprintf(stderr, "usb_release_interface error %d\n", r);
    }
  
  printf("Interface released\n");

  // close device usb handle //
  
  libusb_close(handle);
  
  libusb_exit(ctx); 

}



and in my callback function callback_in(), I dump the libusb_tranfer, i.e. transfer->status and the raw bytes received.

For the Microsoft mouse it all works well, and I get the following output, based on the mouse movement and buttons pressed:

...

LIBUSB_TRANSFER_COMPLETED
transfer flags = %b
transfer actual length = 8
0: transfer data = 4
1: transfer data = 0
2: transfer data = 255
3: transfer data = 0
4: transfer data = 4
5: transfer data = 0
6: transfer data = 255
7: transfer data = 0
exitprogram = 0
LIBUSB_TRANSFER_COMPLETED
transfer flags = %b
transfer actual length = 8
0: transfer data = 4
1: transfer data = 0
2: transfer data = 255
3: transfer data = 0
4: transfer data = 0
5: transfer data = 0
6: transfer data = 0
7: transfer data = 0
exitprogram = 0

...

The buffer size I use is 8, which is equal to the value of the maximum packet size of the USB Device descriptor, and in this case it works.

I am NOT sure what size of transfer to specify, but 8 works in this case.

When using difference mice, e.g. Logitech G5 Laser, or wireless Logitech mini mouse, instead of getting LIBUSB_TRANSFER_COMPLETED I get LIBUSB_TRANSFER_OVERFLOW, even if I use a HUGE buffer of 1024 bytes...

I looked up the USB HID document, but I am not sure HOW to send the proper control packet to configure other mice. On this webpage, https://www.usbmadesimple.co.uk/ums_5.htm it is explaned that you must send "an HID class report descriptor, which in this case informs the appropriate driver to expect to receive a 4 byte report of mouse events on its interrupt IN endpoint."

Any help of sending the proper HID class report descriptor would be much appreciated.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): Any help
  • RegEx Blacklisted phrase (3): Any help of sending the proper HID class report descriptor would be much appreciated
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Christos