79132952

Date: 2024-10-28 10:25:58
Score: 2.5
Natty:
Report link

I did not find a solution to update the 'Image' control faster. Instead im now using a OpenGL window thats embedded into a control, load the image as a texture and render it on a screen-filling quad. This works much better even with bigger image sizes.

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

79132939

Date: 2024-10-28 10:23:58
Score: 1
Natty:
Report link

A solution I found after reading some more documentation is to use the skip method from fileReader this skip a certain number of characters so to fix my code i added myReader.skip(startPoint);

and before the if statment added long startPoint = this.fileSize - this.remainingBytes; to calculate the starting position of the next segment.

If it runs out of characters though the code will return an error so you should make sure you have catches to prevent the error.

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

79132935

Date: 2024-10-28 10:22:57
Score: 3
Natty:
Report link

A perhaps simpler (recent) alternative (mine): https://stackoverflow.com/a/79132926/2039709

git merge-base main $1 \
| xargs -I{} git branch --sort=creatordate --contains {} \
| grep -Ev "main|$1" \
| head -n 1
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user2039709

79132927

Date: 2024-10-28 10:20:57
Score: 1
Natty:
Report link

I suggest you to use Regex. It is short and more readable:

 String result = text.replaceAll(",+", "");
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Soheil Babadi

79132923

Date: 2024-10-28 10:18:56
Score: 1
Natty:
Report link

as of now (October 2024) the right command for the most basic is:

heroku addons:create heroku-postgresql:essential-0

and here as an example is the link for the plans, via the addon page for heroku postgres: heroku postgres add on page

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

79132921

Date: 2024-10-28 10:18:56
Score: 4
Natty:
Report link
@jansheen..baloch

❤️Allah hamesha khush raky mere dost ko dunia ki sari khusia mile 🥰 jansheen ❤️ Bhanook

♬ original sound - jansheen. Baloch
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Khalid Jan933

79132920

Date: 2024-10-28 10:17:55
Score: 0.5
Natty:
Report link

To get the data in descending order of a particular column (for example columnName, you can run the following code:

const allData = await db.select().from(articlesTable).orderBy(desc(articlesTable.columnName));

You can find examples in the drizzle orm documentation here

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

79132914

Date: 2024-10-28 10:16:55
Score: 2
Natty:
Report link
br{
   display: block;
   content: "";
   margin-bottom: 14px;
}

where margin-bottom sets the height of the br

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): where
  • Low reputation (1):
Posted by: Julián Ibañez

79132910

Date: 2024-10-28 10:14:55
Score: 2
Natty:
Report link

I managed to solve the problem by creating my own multiselect component instead of using the one from the Nuxt UI library. The issue was with the Nuxt UI component itself, as I found on their GitHub issues page that it looks like it struggles to properly set the initial values when is user fetching data from backend API.

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

79132907

Date: 2024-10-28 10:13:54
Score: 2.5
Natty:
Report link

Since the sample aspect ratio is 32:17, the display aspect ratio is 544(32/17):576 = 1024:576, or 16:9. Sample aspect ratio and PAR mean the same thing.

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

79132904

Date: 2024-10-28 10:13:54
Score: 1.5
Natty:
Report link
  1. Allowed Tags: Odoo will allow a predefined set of HTML tags (like , ,

    , etc.) and attributes (like href for links) while stripping out potentially harmful tags (like , , etc.).

Safe Rendering: When displaying the content on forms or reports, the sanitized HTML will render safely, preventing any malicious scripts from executing.

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

79132902

Date: 2024-10-28 10:13:54
Score: 1.5
Natty:
Report link

Did you post full code ? It seems that you created map "Users" (capitalized) but you are trying to access that map with lowercase "users" in main.go. Maybe I'm missing something? Also, maybe don't use same name for struct and map (name it UserMap or something similar) to avoid confusion.

var UserMap = map[string]*User{
    "john": {Username: "john", Password: "123", Secret: ""},
}

user, ok := users.UserMap[username]
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you post
  • Low reputation (1):
Posted by: Big Fudge 1337

79132897

Date: 2024-10-28 10:11:54
Score: 3.5
Natty:
Report link

That doesn't overlap. It is always there and it is names Status Bar. Just when debugging, it turns yellow (or another color depends on theme). However you can hide it totally from View > Appearance > Show Status Bar, as answered in this question: How can I hide the status bar in VS Code?

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Sadeq

79132893

Date: 2024-10-28 10:09:53
Score: 3.5
Natty:
Report link

What is the benefit for allowing access even when your up to date and correctly configured? This is important, if there is the rare chance that it could be a vulnerability, is that not worth blocking access?

Its best to not allow the phpinfo() function to be used by anyone, letting users view the results is a different situation to discuss. I cant comment because I just signed up.

Reasons:
  • RegEx Blacklisted phrase (1): cant comment
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What is the
  • Low reputation (1):
Posted by: Bruce

79132889

Date: 2024-10-28 10:07:53
Score: 3
Natty:
Report link

You don't need to make unique validation rule, just make unique input name inside each form

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

79132885

Date: 2024-10-28 10:07:53
Score: 1.5
Natty:
Report link

Create your View model instance in the way , below

private val favoriteViewModel: FavoriteViewModel by hiltViewModel()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: You May Know

79132873

Date: 2024-10-28 10:03:52
Score: 1
Natty:
Report link

The nonce is in the ID token, not in the refresh token.

As it fails on the ID token validation, I guess an ID token is returned upon the Successful Refresh Response, right?

Does this ID token contains a nonce?

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

79132867

Date: 2024-10-28 10:02:52
Score: 1
Natty:
Report link

Rather than \n you can use the expression:

'<br/>'

. For example:

Text="{TOPOLINO} - {=${PAPERINO} === 'NA' || ${PAPERINO} === 0 ? '---' : ${PAPERINO}}<br/>{PAPERONE} "

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Edu

79132856

Date: 2024-10-28 09:57:50
Score: 3
Natty:
Report link

simply installing dependencies from requirements.txt file fixed the issue for me.

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

79132851

Date: 2024-10-28 09:56:50
Score: 2
Natty:
Report link

Problem solved !

Not having the habits to use raw sql, I think my stupid brain made an hybrid of SQL and DQL.

I needed to change :

"INSERT INTO brand (name, created_at) VALUES (name=:name, created_at=:date);";

into :

"INSERT INTO brand (name, created_at) VALUES (:name, :date);"
Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Yoc

79132842

Date: 2024-10-28 09:53:47
Score: 10.5 🚩
Natty: 5
Report link

today, i stepped into the same issue. Did you find the root cause of the error and how to fix it?

with kind regards, Ronny

Reasons:
  • Blacklisted phrase (1): regards
  • RegEx Blacklisted phrase (3): Did you find the
  • RegEx Blacklisted phrase (1.5): how to fix it?
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Ronny

79132837

Date: 2024-10-28 09:52:46
Score: 1.5
Natty:
Report link

using UnityEngine;

public class Bullet : MonoBehaviour { public float lifetime = 2f;

void Start()
{
    Destroy(gameObject, lifetime);
}

void OnCollisionEnter(Collision collision)
{
    // Add logic here for what happens when the bullet hits an object.
    Destroy(gameObject);
}

}

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

79132835

Date: 2024-10-28 09:50:46
Score: 1
Natty:
Report link

Node.js is a multi-authority supported(websockets,network protocols, Rest Api, HTTP/TCP communications) and cross browser compatible architecture.

since it is supported on so many layers of connections and communications, the architecture manages to host several web servers, either if it is installed locally on machine, the machine becomes a host to the computational code and logics written on the architecture of node by the user, the host on the machine in this case is "BROWSER".

However there are several more node compatible platforms which replaces the local machine support by the browsers, you can write and install node on GITHUB PAGES and make your node server which is now supported and managed by the node packages and libraries installed by github servers itself.

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

79132831

Date: 2024-10-28 09:49:46
Score: 1.5
Natty:
Report link

campJoiSchema = Joi.object({ campground:Joi.Object({ //this line u have forget bcz u r accessing //campground array title: Joi.string().min(3).max(50).required(), price: Joi.number().integer().required(), description: Joi.string().min(3).max(100).required(), location: Joi.string().required(), image: Joi.string(), }).options({stripUnknown:true}).required() });

Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kaustubh Upare

79132826

Date: 2024-10-28 09:48:45
Score: 3
Natty:
Report link

Since chloroquine was linked to the K76T PfCRT mutation, the drug was no longer used as the first line of treatment in Zimbabwe in 2004

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

79132825

Date: 2024-10-28 09:48:45
Score: 3
Natty:
Report link

Hach code from otp sms and appSignature has to be same.

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

79132822

Date: 2024-10-28 09:46:44
Score: 4.5
Natty:
Report link

There are so many folder and file, not only html, caa and javascript, so how to run https://kubil-ismail.github.io/Pdf-Flipbook/

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

79132808

Date: 2024-10-28 09:42:42
Score: 5.5
Natty: 5.5
Report link

Anu update on this, I am also receiving the same errors on my Linux setup.

Reasons:
  • Blacklisted phrase (1): update on this
  • RegEx Blacklisted phrase (1): I am also receiving the same error
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Qaiser Sheraz

79132806

Date: 2024-10-28 09:42:42
Score: 2
Natty:
Report link

https://chatgpt.com/share/671f5ae4-1d08-8005-8a43-6cf81a2fa90b

It worked for me!!

need to modify package.json

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

79132796

Date: 2024-10-28 09:39:41
Score: 2.5
Natty:
Report link

I think the issue is with mysqliclient==2.2.5

Try installing

pip install mysqlclient==2.2.4

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

79132792

Date: 2024-10-28 09:38:41
Score: 1.5
Natty:
Report link
  1. What could be auto-generating the first director ("frame-ancestors 'self'")? IIS? Chrome>?

Please check if your application has any code that sets the header, as well as other IIS global/site-level CSP header settings.

  1. If two headers are present, would the second directive (the custom one added via IIS) be ignored.

When multiple CSP headers are present, the most-restrictive CSP directives are enforced. More details you can refer to this doc:https://w3c.github.io/webappsec-csp/#multiple-policies

  1. What can I try in order to resolve the error?

First make sure you only apply one CSP directive(based on question 2), and in this case, frame-ancestors *.otherdomain.com; should match your needs.

Reasons:
  • Blacklisted phrase (1): What could be
  • RegEx Blacklisted phrase (1.5): resolve the error?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What
  • High reputation (-1):
Posted by: Xudong Peng

79132791

Date: 2024-10-28 09:38:41
Score: 4.5
Natty:
Report link

Well yeah it is peculiar that these guys were talking about the app in regard to fast provisioning (though anyway I hope it works also with 2 devices only... :p). But when I am running the example without an app, then I get the same error - to possibly I would have to thank the other guy if his solution works. But I have it checked first.

Reasons:
  • Whitelisted phrase (-1): hope it works
  • RegEx Blacklisted phrase (1): I get the same error
  • No code block (0.5):
  • Me too answer (2.5): I get the same error
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: snutw

79132784

Date: 2024-10-28 09:35:40
Score: 1.5
Natty:
Report link

You can split the markdown content using the properties from result.pages.

di_result_md_pages = {}

for page in result.pages:
    start = page.spans[0]['offset']
    end = page.spans[0]['offset'] + page.spans[0]['length']
    
    content = result.content[start:end]
    di_result_md_pages[page.page_number] = content

This will result in a dictionary with the original page number as key and the markdown content as value.

Originally found here: https://stackoverflow.com/a/78750151

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

79132775

Date: 2024-10-28 09:34:40
Score: 1
Natty:
Report link

try adding the code below:

xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Towfiqul Islam

79132770

Date: 2024-10-28 09:33:40
Score: 1
Natty:
Report link

Turn off HTTP/3 on Cloudflare: Cloudflare’s proxy might be forcing HTTP/3, which Gandi’s DNS setup may not handle smoothly. Disabling HTTP/3 in Cloudflare (temporarily) could help pinpoint if that’s the issue.

SSL Mode: Ensure Cloudflare is set to “Flexible” SSL for now, as you don’t have certs on your load balancer. This can avoid SSL mismatches.

Flush DNS: Set a low TTL (1 minute) for both domains, then flush your DNS cache. This helps if stale records are interfering.

Check Load Balancer Logs: See if requests from www.g-example.com even reach your load balancer. If not, the issue might lie with DNS routing between Cloudflare and Gandi.

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

79132769

Date: 2024-10-28 09:33:40
Score: 1.5
Natty:
Report link

(It's more a comment, but using "comment" is limited.)

If you use openssl, e.g.

openssl s_client -dtls1_2 -connect californium.eclipseprojects.io:5684 -cipher ECDHE-ECDSA-AES128-GCM-SHA256

that prints

SSL-Session:
    Protocol  : DTLSv1.2
    Cipher    : ECDHE-ECDSA-AES128-GCM-SHA256
    Session-ID: DF8ACBFEA82FF766892EDBEF6BDA283063FF029BE5978483A4EC4FAEBCB3B1E1
    Session-ID-ctx: 
    Master-Key: C5FE3608B349CB4155FAD5E42B9BC7CCCD3132DE07D5FD4A878091AB62EEA1A5DBF243877178A2CBF4656B61F4F9066E
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    Start Time: 1730107483
    Timeout   : 7200 (sec)
    Verify return code: 20 (unable to get local issuer certificate)
    Extended master secret: yes

Did you check your master key with the one from openssl?

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Achim Kraus

79132756

Date: 2024-10-28 09:30:39
Score: 1
Natty:
Report link

try adding the code below:

xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Towfiqul Islam

79132753

Date: 2024-10-28 09:29:39
Score: 1
Natty:
Report link

Okay found the answer by trying to rerun the same on windows env. The problem was that the driver variable pointing to a wrong location. The same when ran on a windows env clearly pointed out the error with the variable pointing to a wrong location, whereas in macOS it gave the SIGBUS error which is really hard to understand (at least for me).

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

79132744

Date: 2024-10-28 09:25:37
Score: 3.5
Natty:
Report link

THank you for the code with the TAG, man. Saved me. It is exactly what I needed. Sending love your way.

Reasons:
  • Blacklisted phrase (0.5): THank you
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: roman

79132736

Date: 2024-10-28 09:23:37
Score: 1
Natty:
Report link

create a flow and follow these steps:

  1. use connector 'List rows from a table' in Excel Online Business connector to access File 2
  2. you will get all data as json. use 'Add rows' connector in same action to add rows to File 1
  3. you can customize your result pre-query or post-query using odata filters and filter array actions respectively.
Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Laviza Falak Naz

79132722

Date: 2024-10-28 09:17:34
Score: 6 🚩
Natty: 5.5
Report link

hi do we hv a solutionf or this now?

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

79132721

Date: 2024-10-28 09:17:34
Score: 1.5
Natty:
Report link

You seem to be missing a selector in the first line of the CSS file. This may be what you were aiming for:

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Eli

79132718

Date: 2024-10-28 09:15:33
Score: 0.5
Natty:
Report link

Path.walk was added in Python 3.12, so you propably using an older version.

You can check the version in python with:

import sys
print(sys.version)

Instead, use os.walk or Path.glob() (or update your Python)

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

79132715

Date: 2024-10-28 09:13:32
Score: 1.5
Natty:
Report link

The old config method was used in Next.js within the pages directory to set specific configurations for each API route. However, for Next.js 13 and later, config settings cannot be applied in this way within the app directory.

You can use for this formidable library; Please check This

Reasons:
  • Blacklisted phrase (1): Please check This
  • Whitelisted phrase (-1.5): You can use
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Goktug

79132710

Date: 2024-10-28 09:12:32
Score: 1
Natty:
Report link

The terms Google Service Framework (GSF) and Google Mobile Services (GMS) refer to different components of Google's mobile ecosystem:

Google Service Framework (GSF) Definition: GSF is a set of application programming interfaces (APIs) and services that provide the underlying infrastructure for various Google services on Android devices. Functionality: It acts as a bridge between the Android operating system and Google services, allowing apps to access Google features like authentication, account management, and location services. Role: GSF is essential for the proper functioning of many Google apps and services on Android devices, ensuring they can communicate effectively with Google servers.

Google Mobile Services (GMS) Definition: GMS is a collection of proprietary applications and APIs from Google that are available for Android devices. This includes popular apps like Google Play Store, Google Maps, Gmail, and others. Functionality: GMS provides a suite of tools and services that enhance the user experience on Android devices, offering features such as app distribution (via the Play Store), cloud services, and device management. Role: GMS is not a part of the Android Open Source Project (AOSP) and requires licensing from Google. It is essential for manufacturers who want to offer a fully functional Android experience with access to Google's apps and services.Welcome to www.android-test.com, a resource platform dedicated to testing and certification for various Google Android devices.

Summary GSF is primarily about the framework and APIs that support Google services on Android. GMS includes the complete suite of Google applications and services that enhance the Android experience.

In short, GSF is more focused on the backend infrastructure, while GMS encompasses the user-facing applications and additional services.

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

79132703

Date: 2024-10-28 09:11:32
Score: 3
Natty:
Report link

This article provides valuable insights into handling POST requests in a Blazor WebAssembly app. The step-by-step explanation makes it easier for developers to implement similar functionality in their projects. For those interested in more technical resources, you might also want to check out Telkom University for additional learning materials and support.

Reasons:
  • Blacklisted phrase (1): This article
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Septiani

79132699

Date: 2024-10-28 09:10:31
Score: 5
Natty:
Report link

it is possible you are forgeting something.for example check the deleted at column of your database table,maybe you have used soft delete,and table still is showing the data,If not,please send me more info to help you

Reasons:
  • RegEx Blacklisted phrase (2.5): please send me
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Hossein Hashemi

79132690

Date: 2024-10-28 09:08:31
Score: 0.5
Natty:
Report link

If you don't care about security, just run below JS command before you insert any HTML nodes or JS scripts:

window.trustedTypes.createPolicy('default', {
    createHTML: str => str,
    createScriptURL: str=> str, 
    createScript: str=> str,
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Steven Fang

79132687

Date: 2024-10-28 09:07:30
Score: 1
Natty:
Report link

Put a breakpoint at WebApplication#getConfigurationType() (https://github.com/apache/wicket/blob/da9755e0985ede0e6c9415c82eca378b211fc9f5/wicket-core/src/main/java/org/apache/wicket/protocol/http/WebApplication.java#L823) and see what is going on. Or just overwrite this method to return RuntimeConfigurationType.DEPLOYMENT

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: martin-g

79132686

Date: 2024-10-28 09:07:30
Score: 2
Natty:
Report link

(Mac users) The best way is to go to the MySQL config in your app and find out where the socket is saved inside the app socket = {$path}/apps/mysql/var/mysql.sock $path = application path

delete the file name mysql.sock.lock and restart MySQL and that is it.

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

79132683

Date: 2024-10-28 09:05:30
Score: 2.5
Natty:
Report link

https://github.com/vercel/ai/discussions/655#discussioncomment-9332890

Check this thread at vercel ai.

Basically, RN is limited in showing stream and some stuff must be added to be able to display stream messages.

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

79132681

Date: 2024-10-28 09:05:30
Score: 2.5
Natty:
Report link

For web projects (most of the time using webstorm or intellij), you should delete node_modules directory.

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

79132677

Date: 2024-10-28 09:04:30
Score: 2.5
Natty:
Report link

It seems it is hardcoded in .NET Framework. See the following code: https://referencesource.microsoft.com/#System.Runtime.Serialization/System/Xml/XmlMtomReader.cs,1101

It is using 4096 bytes max for MTOM with XOP. Binary Encoding works fine, but is proprietary.

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

79132670

Date: 2024-10-28 09:03:29
Score: 0.5
Natty:
Report link

You should be able to use the decomposition tree. First you have to normalise your data, so your input table could like like for example:

ID | Current | Savings  | Amount
---|---------|----------|-------
 1 | Cash    |          | 50
 1 | Savings | Long  t  | 25
 1 | Savings | Short t  | 25

and next just set up the decomposition tree visual:

enter image description here

This article has more info about this particular visual.

Reasons:
  • Blacklisted phrase (1): This article
  • Probably link only (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Michal

79132659

Date: 2024-10-28 08:58:28
Score: 3.5
Natty:
Report link

To resolve this issue, try downgrading to an earlier version of Power BI Desktop. I reverted to the August 2024 release, which resolved the problem. You can find previous versions here: https://learn.microsoft.com/en-us/power-bi/fundamentals/desktop-latest-update-archive?tabs=powerbi-desktop

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

79132654

Date: 2024-10-28 08:56:27
Score: 1
Natty:
Report link

presently, i think the answer you're looking for is to use [in Azure] Microsoft's Email Communication Services.

here's a Quickstart: Create and manage Email Communication Service resources Article from 05/23/2024: https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/email/create-email-communication-resource?pivots=platform-azp

one limitation of using an Azure Logic App, per the other answer i see here, is that presently you cannot specify a From Name. it will show to the recipient the from email address only, which i think aesthetically is an unnecessary limit to have.

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

79132650

Date: 2024-10-28 08:54:27
Score: 1.5
Natty:
Report link

I advise you to read the guide to understand how to ask a question correctly and in which cases to do so.

However, I recommend you to use Gridstack js, it is a great JavaScript library to implement drag and drop quickly and easily between containers in your project

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

79132648

Date: 2024-10-28 08:54:27
Score: 0.5
Natty:
Report link

However, I have observed that users are directly accessing controllers such as View Details and Add New User, thereby circumventing the Home Controller. This results in the static variables not being initialized properly.

Well, users are going to use direct links to sub pages the have, or access your site in any way the like, so I'm not sure redirecting to home page would be good user experience, unless we are talking about redirecting to login page unauthorized users.

I'm not sure what do you need those static variables for, however what I would suggest is to create some class holding these, inject it as a Singleton instance using your DI container and, if needed, fetch all your metadata needed using lazy loading, for example using Lazy<> https://learn.microsoft.com/en-gb/dotnet/api/system.lazy-1?view=net-8.0

How to inject a singleton: https://learn.microsoft.com/en-gb/aspnet/core/fundamentals/dependency-injection?view=aspnetcore-8.0#service-registration-methods

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

79132643

Date: 2024-10-28 08:53:24
Score: 6 🚩
Natty:
Report link

@j08691 and @Kypros as I wrote above I Need to according code input daterangepicker with secondly image that I attached above now is basic calendar I need to develop to make as calendar of the booking for instance.

Reasons:
  • Blacklisted phrase (0.5): I Need
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @j08691
  • User mentioned (0): @Kypros
  • Self-answer (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Mery

79132640

Date: 2024-10-28 08:52:24
Score: 3
Natty:
Report link

You have to use ${LLVM_PATH}/runtimes as the CMake root to only build runtimes. This is documented at https://libcxx.llvm.org/VendorDocumentation.html#the-default-build.

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

79132638

Date: 2024-10-28 08:52:24
Score: 3
Natty:
Report link

You need just to include:

#include <unistd.h>

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Yordan Yordanov

79132636

Date: 2024-10-28 08:51:24
Score: 3.5
Natty:
Report link

Set environment variable ASPNETCORE_HTTP_PORTS=80

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: kevinc

79132635

Date: 2024-10-28 08:51:24
Score: 4
Natty:
Report link

Finally I have made a project on stackblitz and post it. Please check and expecting others solution also

https://stackblitz.com/edit/stackblitz-starters-ntgokh?file=src%2Fapp%2Fapp.component.html

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: H A S I B

79132631

Date: 2024-10-28 08:50:23
Score: 3.5
Natty:
Report link

Did you get a chance to

    <servers>
      <server>
        <id>sigit-releases</id>
        <username>your-username</username>
        <password>your-password</password>
      </server>
      <server>
        <id>sigit-snapshots</id>
        <username>your-username</username>
        <password>your-password</password>
      </server>
    </servers>
Reasons:
  • RegEx Blacklisted phrase (3): Did you get a
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Sharad Paul

79132614

Date: 2024-10-28 08:45:22
Score: 2
Natty:
Report link

We've just ran into the same issue The fact that the "fix issue" button has still not been fixed over 14months later is not what I'd consider "soon"

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

79132613

Date: 2024-10-28 08:45:21
Score: 4.5
Natty: 4.5
Report link

but there is this warning error with nuxt-3

what should we use for nuxt-3 composition api , for handling socket ?

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

79132612

Date: 2024-10-28 08:44:21
Score: 1
Natty:
Report link

The problem was that the first node was selected automatically and messed up the code that followed. I bypassed it by deselecting it each time:

If nodeText = "Process Order" Then
    tree.selectNode (nodeKey)
    tree.doubleClickNode (nodeKey)
    tree.unselectNode (nodeKey)
    testExtract = session.findById("wnd[0]/usr/tabsTABSTRIP_5115/tabpKOZE/ssubSUBSCR_5115:SAPLCOKO:5120/ctxtAFPOD-KDPOS").Text
    MsgBox testExtract
End If
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Doublus

79132606

Date: 2024-10-28 08:43:21
Score: 2
Natty:
Report link

Zykee, even though it's been well over 3 years since a random user has asked this question, the condescension in your answer legitimately makes me mad. OP asked a legitimate question, the answer to which cannot be easily found in a google query. Shame on you for expecting everybody to know this stuff, and telling people 'Come on,it`s a simple Question!Use your browser to get some information!'.

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

79132597

Date: 2024-10-28 08:41:20
Score: 0.5
Natty:
Report link

There are already excellent answers. And most of them tend to oversimplify everything. Here is my attempt that is not too complicated, nor too dumbed-down.

Before going any further let's lay a groundwork and define some terms.

Service : any class that contains some useful functionality.

Dependency : a service (any class ) that is used by another class or function. Let's say we have a web server with two classes: authentication class and database management class. Users can make a request comes to our web server to add new data or delete some data. In the server side database management class is responsible for connecting to database and modifying the data but it depends on authentication class to check if the user who is making the request is authenticated and has necessary privileges. For database management class, authentication class is a dependency because database management class depends on authentication class to to do its job.

Client : a class that uses service (another class) as its dependency. From out above web server example, database management class is considered a client. A client can be a dependency to another class.

Code example:


class AuthenticateUser:

    # some other code

    def isAuthenticated(self, request):
        return request.user != "AnonymousUser"


class SomeDatabaseConnector:
     # some other code

    def add_data(self, user, data_to_enter):
        # logic to connect to db and record the data
        return "data entered successfully"

class Database_Management:
    def __init__():
        self.authenticator = AuthenticateUser()
        self.database = SomeDatabaseConnector()

    # some other code

    def add_data(self, request, data):
        if self.authenticator.isAuthenticated(request):
            self.database.create(user=request.user, data_to_enter=data)
        else:
            return "User is not authenticated"

db = Database_Management()
# we don't dive deep into how we got request and user.
# it is usually provided by the web framework/library.
db.add_data(request, user)

What is Dependency Injection

Now we have some idea about what dependencies and clients are. It is time to define "Dependency Injection". It is to pass an already created object as an argument to another function/class instead of creating it in the body of that client class/function. If my definition didn't make much sense, here is the alternative definitions by Wikipedia "Dependency injection is a programming technique in which an object or function receives other objects or functions that it requires, as opposed to creating them internally".

One example is worth dozens of definitions, isn't it?. I hear you. So below is the example we used earlier this time with dependencies being injected.


class AuthenticateUser:

    # some other code

    def isAuthenticated(self, request):
        return request.user != "AnonymousUser"


class SomeDatabaseConnector:
     # some other code

    def add_data(self, user, data_to_enter):
        # logic to connect to db and record the data
        return "data entered successfully"

class Database_Management:
    def __init__(authentication_class, database_connector_class):
        self.authenticator = authentication_class
        self.database = database_connector_class

    # some other code

    def add_data(self, request, data):
        if self.authenticator.isAuthenticated(request):
            self.database.create(user=request.user, data_to_enter=data)
        else:
            return "User is not authenticated"


auth_class = AuthenticateUser()
db_connector_class = SomeDatabaseConnector()

# Pay attention here
# we are INJECTING (passing) dependencies to the client Database_Management class
db = Database_Management(auth_class, db_connector_class)
# we don't dive deep into how we got request and user.
# it is usually provided by the web framework/library.
db.add_data(request, user)

You might ask what is the purpose of injecting dependencies in this way. After all with the above example it doesn't look that impressive, right. What is the difference between initializing the dependencies inside the client verses passing them as arguments to the client?

Above example illustrates mechanics of dependency injection but not its benefits. Now let's talk about its benefits. Primary benefit is to keep various functions of a program loosely coupled. As this StackOverflow answer excellently points out "the objects change more frequently then the code that uses them". If not loosely coupled, changes in one part of the program requires modification in multiple places. On the other hand, if loosely coupled, changes in one part of the program requires ideally no modification in other parts of the program. In this regard, by injecting dependencies, i.e, passing already initialized objects as an argument rather than creating them internally, we can keep the creation and usage of the object separate. In this way client function/class doesn't need to know how to create the object or even which object it is using, it only needs to know how to use it. As long as you don't change the methods and fields of the object, your program continues to work without breaking even if you swap the dependencies or change the parameters of those dependencies. Dependency Injection also allows sharing state among client classes.

As an example let's imagine an app that allows users to set profile photos. Our app uses ASW S3 bucket (storage) to store user photos.


class S3:
    def __init__():
        # AWS S3 specific code such as
        # using boto3, connect to s3 bucket

    def upload(self, data):
        # logic to upload the data
        return "link to the uploaded data"

class UserProfile:

    def __init__(cloud_storage):
        self.storage = cloud_storage

    # other code
    def profile_photo(self, user, photo):
        link = self.storage.upload(photo)
        # save the link to the database that points to this user
        return "successfully uploaded profile photo"

s3_bucket = S3()
user = UserProfile(s3_bucket)

user.profile_photo(request.user, photo)

After sometime we found out that Google Cloud offered cheaper storage solution. We decided to use Google Cloud Storage instead of AWS S3 to store new user profile photos.


class Google_Storage:
    def __init__():
        # Google Storage specific code such as
        # different API and interface to connect to GCP storage

    def upload(self, data):
        # logic to upload the data
        return "link to the uploaded data"

class UserProfile:

    def __init__(cloud_storage):
        self.storage = cloud_storage

    # other code
    def profile_photo(self, user, photo):
        link = self.storage.upload(photo)
        # save the link to the database that points to this user
        return "successfully uploaded profile photo"

gcp_bucket = Google_Storage()
user = UserProfile(gcp_bucket)

user.profile_photo(request.user, photo)

As long as the storage service has the upload method that takes data as its argument and returns a link to uploaded data, UserProfile class does not care or even know which class it is using whether S3 class or Google_Storage class.This comes handy in testing too. We can easily swap the dependency services with mocks to test the client.

Note: In real life entire logic of the application is not usually defined in single file. Besides, the code is much longer than the above examples.

Let's see another example in which client class is not concerned about how to initialize the dependency.


class StorageClass:
    # hardcoded fields
    _cloud_provider = "AWS"
    _storage = "S3"
    _bucket_name = "my_bucket"

    # some other logic

    def upload(self, data):
        # connect to database
        # save the data
        return link_to_uploaded_data

    def delete(self, data_id):
        # connect to database
        # delete the data
        return "successfully deleted"


class FreemiumUser:

    def __init__(self, storage_class):
        self.storage = storage_class

    def replace_profile_photo(self, request, photo):
        # delete existing photo
        # compress the new photo and
        # upload it using the storage dependency class
        self.storage.delete(old_photo_id)
        self.storage.upload(new_compressed_photo)


class PremiumUsers:

    def __init__(self, storage_class):
        self.storage = storage_class

    # some other functionalities

    def add_profile_photo(self, request, photo):
        # instead of deleting existing photo
        # allow user to have more than one profile photo
        self.storage.upload(photo)

dependency = StorageClass()
freemium_users = FreemiumUser(dependency)
freemium_users.replace_profile_photo(request, photo)

premium_user = PremiumUser(dependency)
premium_user.add_profile_photo(request, photo)

In above code, we have a StorageClass dependency that is being used by FreemiumUser and PremiumUsers clients. Imagine it is a big application and several developers are responsible for different parts of the application. Web development team is among others responsible for FreemiumUser and PremiumUsers classes. You are responsible for StorageClass class.

In a hurry you hardcoded StorageClass fields. You know that it would be much better to change them to parameters. Since your team is using Dependency Injection and other classes only rely on methods not , you can easily change the StorageClass without impacting depending classes namely, FreemiumUser and PremiumUsers classes.


class StorageClass:

    def __init(self, cloud_provide, storage_name, bucket_name)
        self.cloud_provider = cloud_provide
        self.storage = storage_name
        self.bucket_name = bucket_name

    # some other logic

    def upload(self, data):
        # connect to database
        # save the data
        return link_to_uploaded_data

    def delete(self, data_id):
        # connect to database
        # delete the data
        return "successfully deleted"


class FreemiumUser:

    def __init__(self, storage_class):
        self.storage = storage_class

    def replace_profile_photo(self, request, photo):
        # delete existing photo
        # compress the new photo and
        # upload it using the storage dependency class
        self.storage.delete(old_photo_id)
        self.storage.upload(new_compressed_photo)


class PremiumUsers:

    def __init__(self, storage_class):
        self.storage = storage_class

    # some other functionalities

    def add_profile_photo(self, request, photo):
        # instead of deleting existing photo
        # allow user to have more than one profile photo
        self.storage.upload(photo)

dependency = StorageClass(
    cloud_provide="AWS",
    storage_name="S3",
    bucket_name="my_bucket"
)
freemium_users = FreemiumUser(dependency)
freemium_users.replace_profile_photo(request, photo)

premium_user = PremiumUser(dependency)
premium_user.add_profile_photo(request, photo)

If you were NOT using dependency injection, i.e initializing StorageClass class inside client classes, the change would break FreemiumUser and PremiumUsers classes and you had to ask the maintainers of those classes to update the classes.

Another benefit of dependency injection is sharing state among clients. It is similar to singleton concept

class DependencyClass {
    constructor() {
        this.isDataReady = false;
        this.data = null;
    }

    processData(data) {
        // Process data logic
        this.data = processed_data;
        return "done"
    }

    deleteAll() {
        // Delete all data
        this.data = null;
    }
}

class Client1 {
    constructor(dependencyClass) {
        this.dependency = dependencyClass;
    }

    async fetchData() {
        // Asynchronously fetch data
        const fetchedData = await this.FetchData();
        this.dependency.processData(fetchedData);
        this.dependency.isDataReady = true;
    }

}

class Client2 {
    constructor(dependencyClass) {
        this.dependency = dependencyClass;
    }

    consumeData() {
        // Check dependency.isDataReady every 10 seconds
        this.intervalId = setInterval(() => {
            if (this.dependency.isDataReady) {

                // use the the this.dependency.data

                // Stop checking once data is ready and consumed
                clearInterval(this.intervalId);
            }
        }, 10000); // 10 seconds
    }

    deleteData() {
        this.dependency.deleteAll();
        this.dependency.isDataReady = false;
    }
}

const dependency = new DependencyClass();
const client1 = new Client1(dependency);
const client2 = new Client2(dependency);

client1.fetchData();
client2.consumeData();

In above code, Client1 and Client2 classes use DependencyClass's is_data_ready and data fields to share state, i.e to let interested parties know the state whether data is ready or not. Client1 and Client2 classes do not need to know each other's existence. They only communicate with DependencyClass class. Client1 class is not concerned whether the data it fetches and assigns to DependencyClass class's field is used by one class or ten different classes. Likewise Client2 class is not concerned with which class fetches data and how. It only communicates with DependencyClass class.

Note: you inject dependencies not only in constructors of the classes, but also via setter methods, and interfaces.

Example of setter injection:

class Service:
    def do_something(self):
        print("Doing something in the service...")

class Client:
    def __init__(self):
        self._service = None

    def set_service(self, service: Service):
        """Injects the service dependency."""
        self._service = service

    def do_something_in_client(self):
        if self._service is not None:
            self._service.do_something()
        else:
            print("Service not injected!")

client = Client()
service = Service()
client.set_service(service)
client.do_something_in_client()

The point is, you don't necessarily need to inject dependency at the class (client) initialization. Using setter methods, you can inject dependencies after initializing the client class.


Bonus section

Up until now we used python in our examples. Dependency injection is a concept/technique that can be implemented in almost all languages. Some languages have some nice shortcuts that make dependency injection even more concise. One of such languages is Typescript.

Explicit way:


class DependencyClass(){
// class logic
}


class Client(){

    private dep: DependencyClass;

    constructor(Dependency: DependencyClass){
        this.dep = Dependency
    }
}

let dependency = new DependencyClass()
let client = new Client(dependency)

In this version, the constructor receives an instance of DependencyClass as an argument (Dependency). The argument (Dependency) is then assigned to the dep property of the Client class. This approach explicitly defines the dep property in Client class and assigns the parameter to it in the constructor.

Shorthand:


class DependencyClass(){
// class logic
}


class Client(){

    constructor(private dep: DependencyClass)
    { }
}

let dependency = new DependencyClass()
let client = new Client(dependency)

This version uses TypeScript’s shorthand syntax for property declarations. By adding the private keyword in the constructor parameter (private dep: DependencyClass), TypeScript automatically creates a private class property named dep and assigns the constructor argument to it. There’s no need to explicitly declare and assign dep in the class body; TypeScript handles both in one step.


Conclusion

Dependency Injection is a simple concept: passing a class object to another class as an argument. It is main benefit of separation of concerns such as dependency initialization and dependency usage. It becomes useful when you need to test your code or modify some parts of your code since it allows loose coupling.

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Hujaakbar

79132587

Date: 2024-10-28 08:38:19
Score: 3
Natty:
Report link

A regex pattern alone cannot directly compare numeric values with mathematical conditions. It requires extra logic outside of just a regex match.

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

79132578

Date: 2024-10-28 08:34:19
Score: 2
Natty:
Report link

Basically, you can't change this programmatically, especially with a language like C#. If you want to do this with your own code, you would need to use low-level languages like C or C++. However, if it is possible through Windows settings or similar, you could write a C# code that modifies the necessary setting.

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

79132548

Date: 2024-10-28 08:26:17
Score: 2.5
Natty:
Report link

It's obvious that the value of post passed from outside doors not have an "_id" field.

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

79132542

Date: 2024-10-28 08:24:16
Score: 1
Natty:
Report link

With SDL3:

_Bool event_watch(void *userdata, SDL_Event *event) {
    if (event->type == SDL_EVENT_WINDOW_PIXEL_SIZE_CHANGED) {
        do_something();
    }
    return true;
}

int main() {

    SDL_AddEventWatch(event_watch, NULL);

    ...
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jo Mager

79132541

Date: 2024-10-28 08:24:16
Score: 1
Natty:
Report link

You can convert your xml resource into Compose ImageVector using Valkyrie

and set it into Icon

Icon(imageVector = YourIcon, contentDescription = null)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Yahor Urbanovich

79132539

Date: 2024-10-28 08:24:16
Score: 3.5
Natty:
Report link

Because Swift Testing is ship with XCode 16 so try to update your XCode to lastest version: https://developer.apple.com/documentation/testing/

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

79132532

Date: 2024-10-28 08:22:16
Score: 3
Natty:
Report link

Free online Linux server for practice a beginner’s guide, Linux is one of the most popular and powerful operating systems, especially for developers and system administrators.

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

79132528

Date: 2024-10-28 08:21:15
Score: 1
Natty:
Report link

You can convert your xml resource into Compose ImageVector using Valkyrie

and set it into Icon

Icon(imageVector = YourIcon, contentDescription = null)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Yahor Urbanovich

79132525

Date: 2024-10-28 08:20:15
Score: 1.5
Natty:
Report link

Simply use

[
    "VERIFY_EMAIL"
]

as body

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

79132517

Date: 2024-10-28 08:17:14
Score: 4.5
Natty:
Report link
  1. Adjust ScrollView styles: Try setting padding: 0 and margin: 0 on the ScrollView component:
  2. Use android:scrollbarStyle: Add the following to your Android styles.xml file (usually located at android/app/src/main/res/values/styles.xml): XML
  3. Disable overScrollMode: Add overScrollMode="never" to your ScrollView component: Check for conflicting styles:
  4. Verify that no other styles or layouts are applying padding or margin to the ScrollView or its parent components. If none of these solutions resolve the issue, please provide more code context or clarify the exact React Native version you're using. This will help me provide more targeted assistance. Also, you can try setting stickyHeaderIndices to an empty array [] if you have any sticky headers in your ScrollView.
Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (2.5): please provide
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Travour Troy

79132509

Date: 2024-10-28 08:14:14
Score: 1
Natty:
Report link

not related to spring but i found my way here so in case this helps

docker compose run --rm flyway -cleanDisabled="false" clean migrate info

resolved my prob

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

79132506

Date: 2024-10-28 08:13:13
Score: 0.5
Natty:
Report link

The error This ResultSet is closed meant you are trying to get data from a result set which has no data. It's probably an error in your program logic. At least one place looks wrong:

        if (search1!= null) {
            params.add(search1);
        }
        if (search1 != null) {
            params.add(search2);
        }

Did you mean?

        if (search1 != null) {
            params.add(search1);
        }
        if (search2 != null) {
            params.add(search2);
        }
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Mar-Z

79132502

Date: 2024-10-28 08:12:13
Score: 1.5
Natty:
Report link
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Damilare Koiki

79132498

Date: 2024-10-28 08:08:12
Score: 1
Natty:
Report link
$ ls /tmp/dir
a.doc  b.docx  c.pdf

$ d='/tmp/dir';e='doc,docx,pdf';for f in `eval echo "$d/"*.{"$e"}`;do echo "$f";done
/tmp/dir/a.doc
/tmp/dir/b.docx
/tmp/dir/c.pdf
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: yanyong

79132492

Date: 2024-10-28 08:07:12
Score: 0.5
Natty:
Report link

In Toad for Data Analysts, exporting results into different tabs of an Excel file is possible by following these steps:

  1. Run Multiple Queries: Run multiple queries in the Editor. Each query result set will be treated as a separate table when exported to Excel.

  2. Export Wizard: After running the queries, click on Export Wizard. You can usually find this under Tools > Export or directly in the right-click context menu on the results pane.

  3. Select Export Options: In the Export Wizard, choose Excel File as the output format. Specify the location and name of the Excel file.

  4. Specify Each Result Set as a New Tab: For each query result, you should see options to name the sheet within the Excel file. Enter distinct names for each query result to ensure they go into different tabs. If you leave them unnamed, Toad will default to naming them as Sheet1, Sheet2, etc.

  5. Finish the Export: Once all settings are configured, finish the export. Toad will generate an Excel file with each result set in a separate tab.

  6. Verify the Exported File: Open the Excel file to check that each query result appears on a different tab.

This method works well when running multiple queries in the same session or when exporting results from multiple tables or queries within Toad.

Also, if you want to learn communications, kindly click here!

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

79132483

Date: 2024-10-28 08:05:11
Score: 2
Natty:
Report link

Today, I encountered the same error "0x80090006" when copying a large file from Windows 11 PC to Windows 10 PC. That was a ".pack" file for a Git repository.

Mapping the network drive didn't work for me.

To solve the issue, I needed to zip or 7-zip the file (with some compression required), and then extract the zipped file at the destination folder!

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

79132479

Date: 2024-10-28 08:04:11
Score: 2.5
Natty:
Report link

As per documentation you have two options

  1. The doc just put a link to download SWIG :) here and do not mention any steps
  2. MSYS2 -- RECOMMENDED the steps are very easy see here
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ahmed Farouk

79132478

Date: 2024-10-28 08:03:10
Score: 1.5
Natty:
Report link

Use pandas

import pandas as pd
import json

result = pd.read_csv('my.csv')

csv_as_dict = result.to_dict(orient='records')
csv_as_json = json.dump(csv_as_dict)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: binarymind

79132472

Date: 2024-10-28 08:02:08
Score: 6 🚩
Natty:
Report link

Thank you for all the help. I'm new to OAuth2. I will proceed to use Client Credentials Flow form Auth0 https://auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (1.5): I'm new
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: kehitys

79132464

Date: 2024-10-28 08:00:07
Score: 3.5
Natty:
Report link

As far as I know, there is no such function to split context file

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

79132460

Date: 2024-10-28 07:59:07
Score: 3.5
Natty:
Report link

how to add this code i have same proble like you sir

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Starts with a question (0.5): how to add this code
  • Low reputation (1):
Posted by: jasain id

79132452

Date: 2024-10-28 07:55:06
Score: 2
Natty:
Report link

It sounds like you should step away from this particular problem, and go take the time to study Dynamic Programming. This kind of study will pay off incredibly. Unfortunately, there are no quick tricks to learning algorithm design at a fundamental level. The way to do it is to find a good book, for example Introduction to Algorithms (CLRS) by Cormen et al., and then carefully work through the book and solve problems. For example, Dynamic Programming is covered in chapter 15 of CLRS. Fortunately for you, MIT OCW offers two excellent courses, the introductory 6.006, and the more advanced 6.046, which go very well with this book. Depending on your tastes, you may like the 2005 offering for 6.046, which was taught by Dr. Leiserson, one of the authors.

If you study the material, you will learn that generally, the first step in a DP problem is to characterize the structure of an optimal solution. Then you define the value of the solution using a recurrence relation. This is done away from a computer, with pencil and paper. Those two steps can be non-trivial. However, once you are done, you have a provably correct formulation, and writing the algorithm for a computer is usually remarkably simple. What is the recurrence relation for your problem here?

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: M.C. Escher

79132448

Date: 2024-10-28 07:53:05
Score: 0.5
Natty:
Report link

If i add a comment to method UpdateAdornments in OnTagsChanged, i found when i collapse or expand a block of code it, the icon renders well. enter image description here

Test result: enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Dou Xu-MSFT

79132441

Date: 2024-10-28 07:51:05
Score: 0.5
Natty:
Report link

I just got the same issue, If you are working with the StateMachineController.formArtboard

StateMachineController.fromArtboard(artboard, 'loadingState');

the name that you should enter in to the code, if you are working with the state machene

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:rive/rive.dart';

class Loader extends StatefulWidget {
  const Loader({Key? key}) : super(key: key);

  @override
  _LoaderState createState() => _LoaderState();
}

class _LoaderState extends State<Loader> {
  Artboard? _riveArtboard;
  StateMachineController? _controller;
  SMIInput<bool>? _isLoading;

  @override
  void initState() {
    super.initState();
    _loadRiveFile();
  }

  Future<void> _loadRiveFile() async {
    await RiveFile.initialize();
    final data = await rootBundle.load('assets/iconLoading.riv');
    final file = RiveFile.import(data);
    final artboard = file.mainArtboard;
    var controller = StateMachineController.fromArtboard(artboard, 'loadingState');
    if (controller != null) {
      artboard.addController(controller);
      _isLoading = controller.findInput('isLoading');
      _isLoading?.value = true;
    }
    if (mounted) {
      setState(() => _riveArtboard = artboard);
    }
  }

  void startLoading() {
    _isLoading?.value = true;
  }

  void stopLoading() {
    if (mounted) {
      setState(() {
        _isLoading?.value = false;
      });
    }
  }

  @override
  void dispose() {
    _controller?.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Center(
      child: SizedBox(
        width: 75,
        height: 75,
        child: _riveArtboard == null
            ? const CircularProgressIndicator()
            : Rive(alignment: Alignment.center, artboard: _riveArtboard!),
      ),
    );
  }
}

Always be aware about namings.

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

79132436

Date: 2024-10-28 07:49:04
Score: 1
Natty:
Report link

this problems raise when most you create a [file].go before

go mod init [your package]

removing every thing in the directory and recreate your files after

go mod init [your package]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Fury70

79132434

Date: 2024-10-28 07:49:04
Score: 2
Natty:
Report link
<XAxis
     ...other property
     angle={30}
  />
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vadim Sysoev

79132427

Date: 2024-10-28 07:46:04
Score: 1
Natty:
Report link

safe_load is available in psych since 2.0

https://github.com/ruby/psych/issues/119#issuecomment-20536311 https://github.com/ruby/psych/commit/2c644e184192975b261a81f486a04defa3172b3f

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

79132410

Date: 2024-10-28 07:41:02
Score: 3.5
Natty:
Report link

i used in for loop comes from induction variables.

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

79132401

Date: 2024-10-28 07:35:01
Score: 3
Natty:
Report link

In my case there was 2 csproj files in solution folder , after removed backup.csproj , worked .thanks

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

79132400

Date: 2024-10-28 07:35:01
Score: 2
Natty:
Report link

Below, step by step, I will try to describe the full course of reasoning that will allow to prove pigeonhole_principle_NO_EM, thus answering your questions. Since the whole reasoning is quite large, I will only give the main points of the reasoning, and will post the full version on Github Gist.

So let's get started. Let's say we have

Inductive repeats {X:Type} : list X -> Prop :=
  | repeats0 x l (H: In x l): repeats (x :: l)
  | repeats1 x l (H: repeats l): repeats (x :: l)

Let us now try to carry out the proof without using the excluded middle.

Theorem pigeonhole_principle_no_Em:
  forall (X:Type) (l1  l2:list X), (forall x, In x l1 -> In x l2) ->
  length l2 < length l1 -> repeats l1.
Proof.
  intros X l1. induction l1 as [|x l1' IHl1'].
  { intros l2 H1 H2. simpl in H2. inversion H2. }
  { intros l2 H1 H2.  destruct l2 as [|y l2'].
    - specialize H1 with x. exfalso. apply H1. left. reflexivity.
    - Abort.

Consider what we have before executing Abort:

It is easy to see that if we apply repeats1, we can apply IHl1' specialised l2'. We can prove that length l2' < length l1' from H2. But proving (forall x : X, In x l1' -> In x l2) is harder. Logically, we should prove this expression using H1. To do this, we need to study in more detail what an expression of the form forall x : X, In x l1' -> In x l2 is in general, but before that, let us explain why we decided to use destruct l2.

The inductive hypothesis requires that length l2 < length l1', where l2 we specialise. It turns out that if we specialise l2 directly, then we have to prove length l2 < length l1' while having length l2 < length (x::l1'), which obviously cannot be done, so we have to disassemble l2 into x::l2' and use the inductive hypothesis with l2'.

Let us now consider expressions of the form forall x : X, In x l1 -> In x l2. If we rewrite this expression in a more usual form: (∀x (x ∈ l1 ⇒ x ∈ l2)) ⇔ (l1 ⊆ l2) it will be immediately clear that this is nothing else but the notion of a subset relation. There are many facts about this relation that will help us. Let us first introduce the definition in Coq for convenience, and then prove the auxiliary statements. Let's call the relation by html mnemonics.

Definition sube {X : Type} (l1 l2 : list X) := 
  forall x : X, In x l1 -> In x l2.

See Github Gist for more details.

Now let's consider sube. sube (x::l1) (y::l2) is forall z : X, In z (x :: l1) -> In z (y :: l2)

If x = y, then

If x != y, then In x l2 is necessarily satisfied. Further

Thus, we obtain the following theorem:

Theorem sube_split : forall {X : Type} (x y : X) (l1 l2 : list X),
  sube (x::l1) (y::l2) ->
  (x = y /\ (In x l1 \/ sube l1 l2)) \/
  (In x l2 /\ sube l1 (y::l2)).
Proof.

See Github Gist for proof of theorem.

Now we are left with one problematic case -- (In x l2 /\ sube l1 (y::l2)], which decomposes into the following cases (applying sube_split2)

There is no problem with the second subparagraph, but what about the first one? Let's apply the hint left to us by the authors of the problem, namely in_split. Then we get:

  In x l2 -> exists xl xr, l2 = xl ++ x :: xr.
  In y l1 -> exists yl yr, l1 = yl ++ y :: yr.

Then sube (x::l1) (y::l2) we can write as

sube (x::(yl++y::yr)) (y::(xl++x::xr))

Consider again the question of membership of x.

Here in the second case, although we did not get sub l1 l2, we also reduced the original sube (x:::(yl++y::yr)) (y:::(xl++x::xr)) by one sube (yl++y::yr) (y::xl::xr)). Let us put this statement in a separate lemma.

Lemma  sube_split5 : forall {X : Type} (x y : X) (xl xr yl yr: list X),
  sube (x::yl++y::yr) (y::xl++x::xr) -> 
  (In x (yl++y::yr) \/ sube (yl++y::yr) (y::xl++xr)).
Proof.

See Github Gist for proof of theorem.

Let's apply sube_split and prove pigeonhole_principle_no_Em In order not to give a completely ready-made solution, I only give the skeleton of the proof. However, I am sure that if you have read all the steps of the reasoning carefully, you can easily recover the omissions. (You will probably have different names somewhere when using destruct so feel free to change the phrases left out.)

Theorem pigeonhole_principle_no_Em:
  forall (X:Type) (l1  l2:list X),
  (forall x, In x l1 -> In x l2) ->
  length l2 < length l1 ->
  repeats l1.
Proof.
  intros X l1. induction l1 as [|x l1' IHl1'].
  { intros l2 H1 Hlen. simpl in Hlen. inversion Hlen. }
  { intros l2 H1 Hlen.  destruct l2 as [|y l2'].
    - specialize H1 with x. exfalso. apply H1. left. reflexivity.
    - apply sube_split in H1 as H. destruct H as [[Heq H] | H].
      + (* First case: Heq : x = y  и 
        H : In x l1' \/ sube l1' l2' *) 
        
        * 
        * 
          -- (* forall z : X, In z l1' -> In z l2' *)
             
          -- (* length l2' < length l1' *)
             
             
      + (* Second case: H : In x l2' /\ sube l1' (y :: l2') *) 
        
        * (* Third case: HIn1 : In x l2' HIn2 : In y l1' *) 
          apply in_split in HIn1.
          destruct HIn1 as [xl [xr Hx]].
          apply in_split in HIn2.
          destruct HIn2 as [yl [yr Hy]].

          (* We apply sube_split5, but in order not to lose H1, we'll make 
            this application stand out in H2*)

          assert (In x (l1') \/ sube (l1') (y::xl ++ xr)) as H2.  
          { 
            apply sube_split5 in H1. 

          }
          destruct H2 as [HIn | Hs].
          -- 
          --  
             
             ** 
             ** 
             
        * (* Fourth case: HIn1 : In x l2'  Hs : sube l1' l2' *)
          apply repeats1. apply IHl1' with l2'.
          -- (* forall z : X, In z l1' -> In z l2' *)
             
             
          -- (* length l2' < length l1' *)
             
             
  }
Qed.   
Reasons:
  • RegEx Blacklisted phrase (1): help us
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: DacrydiumGracile

79132399

Date: 2024-10-28 07:34:01
Score: 2
Natty:
Report link

I cant believe It worked for me

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