79552444

Date: 2025-04-03 09:02:06
Score: 2.5
Natty:
Report link

I get the error below:

vercel error

Reading at https://nextjs.org/docs/app/api-reference/config/next-config-js/output#caveats, about outputFileTracingExcludes. I have add the code below in next.config.ts:

const nextConfig: NextConfig = { ..., outputFileTracingExcludes: { "/api/docs": ["./.next/cache/**/*"] }, .... };

Then the project working right, my nextjs version is 15.1.6, you can check my config at my project. Hope this help everyone.

Reasons:
  • Whitelisted phrase (-1): Hope this help
  • RegEx Blacklisted phrase (1): I get the error
  • Probably link only (1):
  • Contains signature (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: holedev

79552439

Date: 2025-04-03 09:00:06
Score: 0.5
Natty:
Report link

Let's say you've put an image in your main repository in folder img.
You want to use relative paths in your image tag.

linking to it in the github readme.md:
![myimage](img/myimage.png?raw=true)

linking to it in a github issue comment:
![myimage](../blob/main/img/myimage.png?raw=true)

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

79552438

Date: 2025-04-03 08:59:05
Score: 1
Natty:
Report link

Maybe you can elaborate a bit on the dot product you are trying to take?

Because taking the dot product along vector [1,1,1] is just the same as the sum:

>>> x = np.random.sample(3)

>>> np.isclose(np.dot(x, [1,1,1]), np.sum(x)) # it's the same up to numerical precision
True

Which would imply that you'd like to do something like:

sb.heatmap(np.cos(X+Y+2*np.pi));

That would result in an image like this: enter image description here

To prove the point, we can do something slow:

def cos_dot(x_grid, y_grid, z_fixed = 2 * np.pi):
    res = np.zeros_like(x_grid)
    # Loop over all x,y coordinates. 
    # Just to be explicit we only use the indices i and j.
    for i, _ in enumerate(x_grid):
        for j, _ in enumerate(y_grid[i[):
            res[i][j] = np.cos(
                np.dot(
                    [x_grid[i][j], y_grid[i][j], z_fixed],
                    [1,1,1]
                ))
    return res

# Let's check that this function gives the same answer as just X+Y+2*np.pi
np.isclose(cos_dot(X,Y), np.cos(X+Y+2*np.pi)).all() 

which returns True

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: J. R.

79552427

Date: 2025-04-03 08:56:04
Score: 1.5
Natty:
Report link

Set the code-fold chunk option to show or false:

---
  code-fold: true
---

```
# Block to fold initially
```

```
#| code-fold: show
# Block to keep unfolded initially
```

```
#| code-fold: false
# This block is always shown and not foldable
```

Here's the relevant page in the quarto guide.

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

79552426

Date: 2025-04-03 08:55:04
Score: 3
Natty:
Report link

In my case, I had to comment it out index.css & app.css.

Reasons:
  • Blacklisted phrase (1): to comment
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Garp

79552423

Date: 2025-04-03 08:54:03
Score: 1.5
Natty:
Report link

To prevent Tailwind CSS from affecting the host webpage in your Chrome extension, you can encapsulate styles using Shadow DOM.

A well-structured setup like chrome-ext-starter provides an effective approach. It ensures your styles remain scoped to your extension while maintaining compatibility with Tailwind CSS and React.

Additionally, disabling Tailwind’s preflight reset corePlugins: { preflight: false } can prevent global style conflicts.

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

79552420

Date: 2025-04-03 08:52:03
Score: 0.5
Natty:
Report link

I don't know much about Gatsby but I'm guessing that it's generated a structure like this which you've deployed to your S3 bucket?

/index.html
/path1/index.html
...etc

And you want GET / to return the content from index.html, and GET /path1 to return the content from /path1/index.html etc.? And your plan to do this was to set /index.html as the 403 custom error response?

If I've understood that correctly, then this isn't going to work as you want. If you've set things up as described I would expect GET /path1 to return the content from /index.html.

One way of getting this working as you want is to change the 403 custom error response to something more appropriate (i.e. a /404.html page) and then associate a viewer-request function with your CloudFront distribution that rewrites requests to include /index.html at the end of the path if needed. Something like:

function handler(event) {
  var request = event.request;
  var uri = request.uri;

  if (uri.endsWith("/")) {
    request.uri += "index.html";
  } else if (!uri.includes(".")) {
    request.uri += "/index.html";
  }
  return request;
}

Here's a CloudFormation template where this is set up if you want to see how it all fits together (disclaimer: this is my github repo).

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

79552419

Date: 2025-04-03 08:49:02
Score: 0.5
Natty:
Report link

Well, I got the idea from Wael Ltifi to resize my window when opening my component.

I know it's not a clean solution at all, but given the urgency and the fact that I'm not a C# expert, it's the only workaround I could find.

I added this code right after opening my editor.

var window = this;
bool isMaximized = window.WindowState == FormWindowState.Maximized;

if (isMaximized)
{
    window.WindowState = FormWindowState.Normal;
    window.Width -= 10;
    window.Width += 10;
    window.WindowState = FormWindowState.Maximized;
} else
{
    window.Width -= 10;
    window.Width += 10;
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: PépéMax

79552418

Date: 2025-04-03 08:49:02
Score: 0.5
Natty:
Report link

Actually, the key thing to remember here is that named variables aren't implicitly moved - so while it looks like a typical move construction case, the compiler won't automatically move x into FooResult unless std::move(x) is explicitly used. Otherwise, we fall back to copy semantics if a copy constructor exists.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Shelton Liu

79552406

Date: 2025-04-03 08:46:01
Score: 2.5
Natty:
Report link

Variable 'region' was already declared in the first foreach loop, it was no longer available in the second loop due to scoping rules. Each foreach loop creates its own separate variable, but the debugger might have gotten confused or optimized out the second instance.

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

79552405

Date: 2025-04-03 08:46:01
Score: 5.5
Natty:
Report link

Making computation code cancellable

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kirill

79552399

Date: 2025-04-03 08:44:00
Score: 12
Natty: 8.5
Report link

@kevmo314 can you share some hints how you got your user-space UVC driver working?

Reasons:
  • RegEx Blacklisted phrase (2.5): can you share some
  • RegEx Blacklisted phrase (2): working?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @kevmo314
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Karel

79552395

Date: 2025-04-03 08:43:00
Score: 1.5
Natty:
Report link

Had a similar problem. The fact that it doesn't hang when you use a regular mutex means two things: (1) the mutex in that case is recursive; (2) this piece of code is definetly being reached by another thread (since there is no other calls within the provided block, so not a recursion case). So, dude, check your code again and again...

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

79552385

Date: 2025-04-03 08:38:58
Score: 8.5 🚩
Natty: 5
Report link

Did you find a solution for this question?

Reasons:
  • RegEx Blacklisted phrase (3): Did you find a solution
  • 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 for this
  • Low reputation (0.5):
Posted by: sgallego

79552384

Date: 2025-04-03 08:38:58
Score: 4.5
Natty:
Report link

Have you tried writing the password and username directly in the application.yml file?

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: DjulPerec

79552382

Date: 2025-04-03 08:37:58
Score: 1
Natty:
Report link

I'm dealing with vectors that aren't all dates using the optional = TRUE.

The existing answers in base R fail when the string vector starts with a none date. Here is my solution based on this answer https://stackoverflow.com/a/46358096/7840119

x <- c("abc", "01.02.2025", "04/05/2026")
Reduce(c, lapply(x, FUN = 
function(x){as.Date(x, tryFormats = c("%d.%m.%Y", "%d/%m/%Y"), optional = T)}
))

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

79552380

Date: 2025-04-03 08:36:57
Score: 0.5
Natty:
Report link

Introduction

I have been coming across this topic in my searches quite a bit as I always seem to hit blockers when implementing needed functionality on the various devices I compile to for Android. Perhaps the following thoughts can demystify the .aar file and how one can use it in RAD Studio. As of RAD Studio 12.2 you can apparently just add the .aar file to your project but it is not clear how to reference it in code.

.aar and .jar files are zip files

It is true that the .aar file is merely a zip file, it is easy to rename and extract the contents. A lot of libraries are distributed in this format and work really nicely in Android Studio by simply including the files in the gradle build. The .aar file in many cases contains a jni folder which contains the c++ libraries for the supported android OS, either 32 bit or 64 bit.

.so files from jni can be added to RAD Studio project

These .so files need to be included separately as part of the RAD Studio Deployment on the Menu(Project -> Deployment). It is also here where you can deploy any res files that are part of the .aar library which you have extracted. Inside the .aar library is a classes.jar file which also can be extracted and renamed then added to your project under Libraries (Android Target).

You can manually merge multiple .jar and .aar files together

I have successfully combined multiple .aar files into a single .jar file by extracting each classes.jar file then merging each of their contents together in a single .jar file. Once this has been done the initial hard work is over. Running JAVA2OP on this .jar file will result in a .pas file which you can include in your project. The only issue here being that all the dependencies need to be resolvable in the .jar file. So if the code in the .jar file relies on some 3rd party library code, you will need to download that package and include it in your .jar file.

Make sure you have all the dependencies covered

In principal when I do these builds I still check if the libraries I build in Android Studio actually work with a test application. If I am simply building a module / library in Android studio I start it by building a "blank" Android application then add a module which is essentially a folder within the project.

Summary

Conclusion

I find that this topic is not very well documented and frankly very black boxed. Even keeping up with all the changes in Android is difficult for me (Manifest!) Let me know if I need to clarify anything better, I put this here in the hopes that it will help.

Lastly, you cannot build multiple .aar files into a single .aar module without much pain, don't waste energy trying that!

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Andre Van Zuydam

79552371

Date: 2025-04-03 08:32:55
Score: 2
Natty:
Report link

You can select option from Select dropdown like this:

page.FindElement(DROPDOWN).ClickItem("first option")

Where DROPDOWN is your dropdown XPATH for example "//select[@name='Gender']" and first option is name of option for example "Male"

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

79552369

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

The aggregation is a wrong choice, a LeaseAgreement is not made up of Person

You are right when considering the real world as the standard. In my opinion, it would be better to consider the software requirements as the standard. After all, UML class diagrams are used to model software architectures.

Notice tenant is shown both as an attribute and a relation's role, making the diagram unnecessarily complex.

Thanks for pointing that out. So, either an attribute or a relation's role, but not both?

Sorry, I misspoke earlier. The LeaseAgreement should actually only contain one person, the tenant. For this, the Person class has the attribute tenant. However, instances of the Person type should not contain any attributes of the LeaseAgreement type. A Person instance should have no knowledge of the LeaseAgreement instances that reference it. Therefore, I would set the multiplicity to 0 on the LeaseAgreement side.

Now, someone suggested that I should still represent the multiplicity as 0..* on the LeaseAgreement side. However, in my opinion, this doesn't make sense. 0..* on the LeaseAgreement side would mean that Person instances own a collection of LeaseAgreements. I hope I was able to clear up the confusion.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Z.J

79552356

Date: 2025-04-03 08:28:54
Score: 2.5
Natty:
Report link

Always good to due diligence run it, I run it thru visual studio check misspelled or etc. Before installing it right butterfly 🦋 🤔 😜 😉 what point of installing if alot we get is half booth, that what mean freedom 😉 🤔 😜 j/k always ✔️

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

79552354

Date: 2025-04-03 08:26:54
Score: 1
Natty:
Report link

You can't return from a controller's constructor. If you want to exit and display a message, instead try:

abort(response('Message here', 500));
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tyler

79552353

Date: 2025-04-03 08:25:53
Score: 1.5
Natty:
Report link

I observed NCLS-ADMIN_00010 while starting the domain when my keystore.jks file was corrupted. It is resolved when keystore.jks is restored from original installation bundle.

I was using Payara 5 with JDK11. Error messages in the logs were not very helpful.

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

79552346

Date: 2025-04-03 08:20:52
Score: 1.5
Natty:
Report link

PrimeFaces CSP does not work with Mojarra f:ajax, it works however with MyFaces f:ajax.
See our documentation: https://primefaces.github.io/primefaces/15_0_0/#/core/contentsecuritypolicy?id=known-limitations

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

79552345

Date: 2025-04-03 08:19:52
Score: 1.5
Natty:
Report link

Seems like I found a way. Assuming the network driver creating the net_device does SET_NETDEV_DEV(), then it's possible to get the associated struct pci_dev *pdev = to_pci_dev(netdev->dev.parent) and with that pdev->bus->number which is the PCI bus id, and PCI_SLOT(pdev->devfn) which is the PCI device id.

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

79552337

Date: 2025-04-03 08:15:51
Score: 2
Natty:
Report link

You can simply press right key on "Extension" and select "Hide badge". Can't upload screenshot, sorry) It will hide only notification, but the Extensions menu will be still there

POST https://stackoverflow.com/upload/image?method=json 503 (Service Unavailable)
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Roman Troy

79552334

Date: 2025-04-03 08:13:50
Score: 3
Natty:
Report link

Welcome to Download From Pinterest, your trusted online tool for downloading Pinterest videos, images, and GIFs seamlessly. We’re passionate about providing a simple, free, and efficient solution for users to save their favorite Pinterest content for personal use, without needing an account.

From https://downloadfrompinterest.com/

Reasons:
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: downloadfrompinterest

79552325

Date: 2025-04-03 08:07:48
Score: 0.5
Natty:
Report link

So my issue was actually that my Google play API key did not match in Playfab/Unity/Play Store.

Once I fixed that I didn't have this error anymore

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jonny Holmes

79552305

Date: 2025-04-03 07:57:45
Score: 2.5
Natty:
Report link

visual studio logs, LimeWire site. This is the link to download the vslogs in zip format that you said to get with Collector. 
I tried to examine the contents, but I couldn't find an error.
If this not what you mean later - please, answer me.

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

79552304

Date: 2025-04-03 07:56:45
Score: 1.5
Natty:
Report link

a different tool xmlstartlet supports namespaces

xmlstarlet sel -t -c '/_:chat' chat.xml

or

xmlstarlet sel -t -v '/_:chat/_:message/_:div' /tmp/chat.xml

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

79552288

Date: 2025-04-03 07:47:43
Score: 2.5
Natty:
Report link

That's right.You can check this page from React website. https://react.dev/reference/react/useActionState And there is an example to introduce the hook

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

79552285

Date: 2025-04-03 07:46:42
Score: 3.5
Natty:
Report link

https://ms-info-app-e4tt.vercel.app/reactNative/webrtc

try this page step easy to implement💯💯💯

Reasons:
  • Whitelisted phrase (-1): try this
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mukesh M

79552283

Date: 2025-04-03 07:46:42
Score: 0.5
Natty:
Report link

My solution is below:

  1. First, install plugin https://plugins.jetbrains.com/plugin/14004-protocol-buffers

  2. needs some extra effort to parse Google and validate imports: clone these two repo you need in your project

  3. manually add the import path in the settings (Settings -> Languages&Frameworks -> Protocol Buffers) Import paths

PS: It's so dull IDEA still supports protocol not very well now.

Reasons:
  • Whitelisted phrase (-1): solution is
  • Probably link only (1):
  • No code block (0.5):
Posted by: Ridox

79552270

Date: 2025-04-03 07:34:39
Score: 2
Natty:
Report link

One more option - in addition to locals and not something I recommend doing - is using inspect module: https://stackoverflow.com/a/582206/2273896.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: Pavel Shishpor

79552267

Date: 2025-04-03 07:33:39
Score: 1.5
Natty:
Report link

I fixed it by compiling in a real terminal. VS Code's terminal is apparently sandboxed and that caused an error when compiling using it.

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Luka Talevski

79552263

Date: 2025-04-03 07:31:37
Score: 9 🚩
Natty: 5.5
Report link

I have the same issue. Is anyone have some leads for resolving this incident ?

Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): I have the same issue
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: retry_mk_mail

79552246

Date: 2025-04-03 07:23:35
Score: 1
Natty:
Report link

Try to add response body to your API. For example return userWasAddedSuccessfully ? 'User was added' : 'Smth went wrong'. Then your console.log() show result. Now your 200 OK show success request to API, but not result.

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

79552237

Date: 2025-04-03 07:17:34
Score: 2
Natty:
Report link

Using the code proposed by @hrbrmstr, it is possible to test the minimum version of the dependencies of a package not published on CRAN if you have the source code of this package:

purrr::map_chr(desc::desc_get_deps("/path/to/the/package/source")$package, min_r_version)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @hrbrmstr
  • Low reputation (1):
Posted by: David Dorchies

79552234

Date: 2025-04-03 07:14:33
Score: 3.5
Natty:
Report link

End up I have to remove Projection part and map from Customer to T002Dto manually in order to Hibernate doesn't use alias in WHERE clause

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nguyễn Phú Khang

79552233

Date: 2025-04-03 07:14:33
Score: 1
Natty:
Report link

You can invoke the custom action using pure XMLHttpRequest:

function executeRequest(
  httpAction: HttpAction,
  uri: string,
  data?: any): Promise<XMLHttpRequest> {
  // Construct a fully qualified URI if a relative URI is passed in.
  if (uri.startsWith("/")) {
    uri = `${getWebApiUrl()}${uri}`;
  }
  const preferHeaders = [
    "OData.Community.Display.V1.FormattedValue",
    "Microsoft.Dynamics.CRM.associatednavigationproperty",
    "Microsoft.Dynamics.CRM.lookuplogicalname",
  ].join(",");
  return new Promise(function (resolve, reject) {
    const request = new XMLHttpRequest();
    request.open(httpAction, encodeURI(uri), true);
    request.setRequestHeader("OData-MaxVersion", "4.0");
    request.setRequestHeader("OData-Version", "4.0");
    request.setRequestHeader("Accept", "application/json");
    request.setRequestHeader("Content-Type", "application/json; charset=utf-8");
    request.setRequestHeader("Prefer", `odata.include-annotations='${preferHeaders}'`);
    request.onreadystatechange = function () {
      if (this.readyState === 4) {
        request.onreadystatechange = null;
        let error: any;
        switch (this.status) {
          case 200: // Success with content returned in response body.
          case 204: // Success with no content returned in response body.
            resolve(this);
            break;
          default: // All other statuses are unexpected so are treated like errors.
            try {
              const resp = JSON.parse(request.response as string) as { error: any };
              error = resp.error;
            } catch (e) {
              error = new Error("Unexpected Error");
            }
            reject(error);
            break;
        }
      }
    };
    if (data) {
      request.send(JSON.stringify(data));
    } else {
      request.send();
    }
  });
}

Usage:

const actionName = "/new_MyActionName";
const data = {};  // Your action input parameter data
  // If you have 2 input params: Name (string), Age (number);
  // You will define the data as following:
  // const data = { Name: "John", Age: 18 };
 
executeRequest("POST", actionName, data).then((resp) => {
  const respObj = resp.responseText 
    ? (JSON.parse(resp.responseText))
    : ({});
  console.log(respObj);
}).catch(e => console.error(e));

Details: https://kalcancode.wordpress.com/2025/04/01/generic-js-function-to-execute-custom-action-in-power-apps/

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

79552228

Date: 2025-04-03 07:11:32
Score: 1.5
Natty:
Report link

Vaadin Copilot does not currently support creating new files, and the error message is misleading :(.

It was a somewhat tough decision not to support at the first round to make sure, everything was handled properly from a security perspective.

There is already work, and PR to change this and support creating the file, so when this PR is merged and the new copilot client (Vaadin framework) is released, probably this will be changed, and you can do this without any issues.

If you have any other problem or idea, please continue raising it here on stackoverflow, or even in the relevant repository. It is listened to and concerned, and it is super helpful!

Thank you very much alexanoid.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): stackoverflow
  • Blacklisted phrase (1): :(
  • Long answer (-0.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: czupe

79552225

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

from PIL import Image

# បើករូបភាព

image = Image.open("your_image.jpg")

# កំណត់ទំហំ (4x6 cm) (ម្យ៉ាងត្រូវដឹង DPI)

dpi = 300 # ឧ. 300 DPI

width_px = int(4 * dpi / 2.54) # 4 cm to pixels

height_px = int(6 * dpi / 2.54) # 6 cm to pixels

# កាត់ (crop) ចេញពីកណ្ដាល

center_x, center_y = image.width // 2, image.height // 2

left = center_x - width_px // 2

top = center_y - height_px // 2

right = center_x + width_px // 2

bottom = center_y + height_px // 2

cropped_image = image.crop((left, top, right, bottom))

# រក្សាទុករូបដែលបានកាត់

cropped_image.save("cropped_image.jpg", dpi=(dpi, dpi))

print("✅ រូបត្រូវបាន crop ទំហំ 4x6 cm ដោយជោគជ័យ!")

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

79552222

Date: 2025-04-03 07:09:32
Score: 0.5
Natty:
Report link

Another cheap way of getting your work done(Windows) is:

  1. Open the generated .war file in Winrar.

  2. In Winrar, go to WEB-INF/lib

  3. Click the Add button on top of the Winrar window.

  4. Add all the external jar files. Done! You can use this war file.

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

79552216

Date: 2025-04-03 07:07:31
Score: 1
Natty:
Report link

If you are using a single process, you can store the connection and reuse it (you may want to have a look at sshkit connection pooling)

If you want to reuse the same connection in several ruby processes, I guess there is no easy solution since ControlMaster is not supported : https://net-ssh.github.io/net-ssh/classes/Net/SSH/Config.html.

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

79552213

Date: 2025-04-03 07:07:31
Score: 3
Natty:
Report link

Older question, but for us the only fix was to completely remove the Spark pool and recreate it. After that, all our notebooks ran succesfully again.

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

79552212

Date: 2025-04-03 07:07:31
Score: 11.5
Natty: 7.5
Report link

I've the same issue with chrome driver 135.0.7049.42 (stable), do we any solution for it?

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (2): any solution for it?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): 've the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sumit Chawla

79552209

Date: 2025-04-03 07:05:30
Score: 0.5
Natty:
Report link

The steps that helped me to solve this problem

1. Go to azure key vault service and select the key vault
2. In my case access policies for the key vault was showing
"Access policies not available. The access configuration for this key vault is set to role-based access control. To add or manage your access policies, go to the Access control (IAM) page.", so go to the Access control (IAM)
3. Select "add role assignment"
4. From 'Role' tab select "Key Vault Certificate User"
5. From "Members" tab select "Assign access to User, group, or service principal"
6. Click on + Select members and in the right search menu you will see users list, past in that menu -> "Microsoft.AzureFrontDoor-Cdn", the item will appear , select that and go to next and save
7. Then go back to azure cdn and continue

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

79552206

Date: 2025-04-03 07:04:30
Score: 1
Natty:
Report link

Here I found the best way how to upload and retrieve files from nested arrays in Laravel with clear, step-by-step instructions.

// Access the first request's image file
$file = $request->file('request.0.image');

// Access the second request's image file
$file = $request->file('request.1.image');

Here In below article I found full detail description and usecases

https://tutorial-tools.com/post/how-to-upload-and-retrieve-files-from-nested-arrays-in-laravel-the-ultimate-guide

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

79552193

Date: 2025-04-03 06:58:28
Score: 0.5
Natty:
Report link

The from x import y import mechanism in Python is specifically designed to work with Python modules (.py files). It looks for a module named x and then imports the name y defined inside it.
A .pem file is simply a text file containing data and not a Python module, you cannot directly use this import syntax to access its contents.
Instead, you should read the .pem file's content within a Python module located (for example) in your lib directory and then import that content.

Make a new Python file in your lib directory called sharepoint_credentials.py.

import os

def load_sharepoint_key(filename="sharepoint_key.pem"):
    filepath = os.path.join(os.path.dirname(__file__), filename)  # sharepoint_key.pem file in the lib directory
    try:
        with open(filepath, 'r') as f:
            private_key = f.read().strip()
        return private_key
    except FileNotFoundError:
        print(f"Error: File not found at {filepath}")
        return None

SHAREPOINT_PRIVATE_KEY = load_sharepoint_key()

You can now access the content by importing it into your various Python scripts.

import sys, os

current_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(current_dir, "..", "..", ".."))
import __root__

from lib.sharepoint_credentials import SHAREPOINT_PRIVATE_KEY, load_sharepoint_key

if SHAREPOINT_PRIVATE_KEY:
    print("Loaded SharePoint Private Key:")
    print(SHAREPOINT_PRIVATE_KEY)
else:
    print("Failed to load SharePoint Private Key.")

# Or you can call the function directly if needed
key = load_sharepoint_key()
if key:
    # Use key

While the method of calculating the current directory and appending to `sys.path` can enable imports from your `lib` directory across various script locations, it's important to understand that this approach has limitations and it's not the most Pythonic way to handle module dependencies.
It doesn't clearly establish a "project root". Instead, it depends on navigating up the directory tree using relative path counting. Consequently, any changes to your project's folder organization will necessitate manually adjusting the number of `..` segments in your `os.path.join` calls across all your scripts. Have we considered turning `lib` into a Python package?
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
Posted by: Lewis

79552190

Date: 2025-04-03 06:58:28
Score: 1
Natty:
Report link

There are two different route types (admin and content-api). API tokens and U&P only work on content-api routes, not admin.

You can create content-api routes from your custom plugin with the following syntax:

const contentAPIRoutes = require('./content-api');

const routes = {
  'content-api': {
    type: 'content-api',
    routes: contentAPIRoutes,
  },
};

module.exports = routes;

Reference:
https://github.com/strapi-community/plugin-healthcheck/blob/b86874915cf2087dd84f4fa922476f7071791e6d/server/src/routes/index.js#L4

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Drashti Kheni

79552185

Date: 2025-04-03 06:56:28
Score: 1.5
Natty:
Report link

Just import the CSS with the following path in layout.tsx:

import "public/assets/css/styles.css";

I had missed the public keyword.

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

79552180

Date: 2025-04-03 06:51:27
Score: 1
Natty:
Report link

This expression surprisingly returns false.
Surprisingly,

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Guillaume Outters

79552172

Date: 2025-04-03 06:47:25
Score: 2
Natty:
Report link

enter image description here

const text = "HELLO WORLD".split("");
 
   <div style={{ display: "flex", justifyContent: "space-between", width: "100%", fontSize: "24px", textTransform: "uppercase" }}>
      {text.map((char, index) => (
        <span key={index}>{char}</span>
      ))}
    </div>
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sagar Vaghela

79552168

Date: 2025-04-03 06:44:25
Score: 2
Natty:
Report link
for(int x:map.values())
{
       //to get the values using forEach loop
}
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Arul G

79552167

Date: 2025-04-03 06:43:24
Score: 1.5
Natty:
Report link

in windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

then close your powershell and open a new one
uv
will work after

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

79552166

Date: 2025-04-03 06:42:24
Score: 0.5
Natty:
Report link

We ended up changing the approach: instead of telling ESBuild to ignore a file on watch mode, we do not write the file if its contents are the same, like so:


const newContent = (...)

if (fs.existsSync(path)) {
  const currentContent = fs.readFileSync(path, 'utf8');
  if (currentContent === newContent) {
    process.exit(0);
  }
}

fs.writeFileSync(path, newContent);

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

79552162

Date: 2025-04-03 06:41:24
Score: 1
Natty:
Report link
GET /_search
{
  "query": { "match_all": {} },
  "script_fields": {
    "my_score": {
      "script": {
        "lang": "painless",
        "source": "return params['_score'] * 2"
      }
    }
  }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Brijesh Kishore Purohit

79552151

Date: 2025-04-03 06:34:21
Score: 3.5
Natty:
Report link

It is estimated that the slot should be increased, or the concurrency of flink itself should be lowered.

🔗 Apache Doris Slack:https://join.slack.com/t/apachedoriscommunity/shared_invite/zt-334x05e5d-aWmc4_xs1pZAzA6cu5qRwA

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

79552146

Date: 2025-04-03 06:31:20
Score: 0.5
Natty:
Report link

Why you're getting the Error

This happens when you are running Docker Desktop in Linux Containers mode.

Docker Desktop either runs Linux Containers or Windows Containers. It can't run both.

How to Fix it

You have to switch it to Windows Containers mode before trying to pull Windows based images. To do this

  1. Right click on the Docker Desktop tray icon
  2. Hit Switch to Windows Containers

Additional Steps you might need

You may be asked to add Windows features like Containers, HyperV, WSL as the requirements are different when you switch to Windows containers.

I also had to enable this feature via Powershell (admin)

Enable-WindowsOptionalFeature -Online -FeatureName $("Microsoft-Hyper-V", "Containers") -All

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): Why you
  • Low reputation (0.5):
Posted by: madacoda

79552145

Date: 2025-04-03 06:31:20
Score: 1
Natty:
Report link

This helped me to catch unhandled exceptions.

.UseSentry(options =>
{
  options.SetBeforeSend((sentryEvent, hint) =>
  {
    if (sentryEvent?.SentryExceptions.FirstOrDefault()?.Mechanism.Handled == false)
    {
        return sentryEvent;
    }
    return null;
  });

MinimumEventLevel is of type Microsoft.Extensions.Logging LogLevel not SentryLevel, I tried to set it to LogLevel.Critical but is not sure if it did help.

options.MinimumEventLevel = LogLevel.Critical;

The reason it did not work to set SentryLevel.Fatal was that the SetBeforeSend did not get the modified exception.

SentrySdk.ConfigureScope(scope =>
{
    scope.Level = SentryLevel.Fatal;                
});
SentrySdk.CaptureException(ex);
options.SetBeforeSend((sentryEvent, hint) =>
       {
          if (sentryEvent?.Level == SentryLevel.Fatal)
          {
             return sentryEvent;
          }
          return null;
       });
Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Anders

79552142

Date: 2025-04-03 06:28:19
Score: 0.5
Natty:
Report link

This is what works for me if anyone else need the same:

DB_HOST=host.docker.internal
Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Stefan Pavlov

79552120

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

Consider trying TConsider trying Total Control. It enables PC-based control of up to 100 Android devices simultaneouslyotal Control. It enables PC-based control of up to 100 Android devices simultaneously

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

79552111

Date: 2025-04-03 05:59:12
Score: 2
Natty:
Report link

The issue is generally with the extensions, because I have myself tried all of the possible solutions, but didn't work in my case, and restarting the extensions resolved the issue.

VS code really needs to solve this issue, this is really a big one.

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

79552101

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

for resolve i used this package

https://pub.dev/packages/lehttp_overrides

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

79552100

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

A little more compact formulation would be

import numpy as np
t = np.full(5,2)**np.arange(5)

which gives

t=array([ 1,  2,  4,  8, 16])
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Manfred Weis

79552098

Date: 2025-04-03 05:51:09
Score: 0.5
Natty:
Report link

My experience is that you cannot use openpyxl to open an excel file that has been created/modified by spire.xls. I suspect that it is something (purposeful "sabotage") done to the file by spire.xls that breaks the ability of openpyxl to read the file so that you cannot use openpyxl to remove the "Evaluation Warning" that is written by the free version.

I also the warning "TypeError: ColumnDimension._init_() got an unexpected keyword argument 'widthPt'" when I try to access an excel file that has been modified by spire.xls

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

79552097

Date: 2025-04-03 05:50:08
Score: 0.5
Natty:
Report link

1. Decode the JWT Token and Extract the User Role

Use the jwt_decoder package to extract the user's role from the token.

import 'package:jwt_decoder/jwt_decoder.dart';

String getUserRole(String token) {
  Map<String, dynamic> decodedToken = JwtDecoder.decode(token);
  return decodedToken['role'] ?? 'guest'; // Ensure a default role
}

2. Create a Role-Based Route Guard

Define a middleware function that restricts access based on the user's role.

import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:stockhive_mobile/screen/auth/login_page.dart';
import 'package:stockhive_mobile/screen/admin/departements/Departmentad.dart';
import 'package:stockhive_mobile/screen/collaborator/collaborator_dashboard.dart';
import 'package:stockhive_mobile/screen/user/user_dashboard.dart';
import 'package:jwt_decoder/jwt_decoder.dart';

class RoleBasedRoute extends StatelessWidget {
  final Widget adminScreen;
  final Widget collaboratorScreen;
  final Widget userScreen;
  final Widget defaultScreen;

  RoleBasedRoute({
    required this.adminScreen,
    required this.collaboratorScreen,
    required this.userScreen,
    required this.defaultScreen,
  });

  Future<String> _getUserRole() async {
    SharedPreferences prefs = await SharedPreferences.getInstance();
    String? token = prefs.getString('jwtToken');

    if (token == null || JwtDecoder.isExpired(token)) {
      return 'guest';
    }

    Map<String, dynamic> decodedToken = JwtDecoder.decode(token);
    return decodedToken['role'] ?? 'guest';
  }

  @override
  Widget build(BuildContext context) {
    return FutureBuilder<String>(
      future: _getUserRole(),
      builder: (context, snapshot) {
        if (!snapshot.hasData) {
          return Scaffold(body: Center(child: CircularProgressIndicator()));
        }

        String role = snapshot.data!;
        if (role == 'admin') {
          return adminScreen;
        } else if (role == 'collaborator') {
          return collaboratorScreen;
        } else if (role == 'user') {
          return userScreen;
        } else {
          return defaultScreen;
        }
      },
    );
  }
}

3. Modify generateRoute in AppRouter

Now, update the router to check for roles before navigating.

static Route<dynamic> generateRoute(RouteSettings settings) {
  switch (settings.name) {
    case '/admin-dashboard':
      return MaterialPageRoute(
        builder: (_) => RoleBasedRoute(
          adminScreen: DepartmentManagementPage(),
          collaboratorScreen: LoginPage(),
          userScreen: LoginPage(),
          defaultScreen: LoginPage(),
        ),
      );

    case '/collaborator-dashboard':
      return MaterialPageRoute(
        builder: (_) => RoleBasedRoute(
          adminScreen: LoginPage(),
          collaboratorScreen: CollaboratorDashboard(),
          userScreen: LoginPage(),
          defaultScreen: LoginPage(),
        ),
      );

    case '/user-dashboard':
      return MaterialPageRoute(
        builder: (_) => RoleBasedRoute(
          adminScreen: LoginPage(),
          collaboratorScreen: LoginPage(),
          userScreen: UserDashboard(),
          defaultScreen: LoginPage(),
        ),
      );

    default:
      return _errorRoute();
  }
}

4. Save JWT Token After Login

Modify your authentication flow to store the token in SharedPreferences.

import 'package:shared_preferences/shared_preferences.dart';

Future<void> saveToken(String token) async {
  SharedPreferences prefs = await SharedPreferences.getInstance();
  await prefs.setString('jwtToken', token);
}

5. Auto-Redirect Users Based on Role in SplashScreen

Modify SplashScreen to check the role and redirect accordingly.

import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:jwt_decoder/jwt_decoder.dart';

class SplashScreen extends StatefulWidget {
  @override
  _SplashScreenState createState() => _SplashScreenState();
}

class _SplashScreenState extends State<SplashScreen> {
  @override
  void initState() {
    super.initState();
    _navigateToDashboard();
  }

  Future<void> _navigateToDashboard() async {
    SharedPreferences prefs = await SharedPreferences.getInstance();
    String? token = prefs.getString('jwtToken');

    if (token == null || JwtDecoder.isExpired(token)) {
      Navigator.pushReplacementNamed(context, '/login');
      return;
    }

    Map<String, dynamic> decodedToken = JwtDecoder.decode(token);
    String role = decodedToken['role'] ?? 'guest';

    if (role == 'admin') {
      Navigator.pushReplacementNamed(context, '/admin-dashboard');
    } else if (role == 'collaborator') {
      Navigator.pushReplacementNamed(context, '/collaborator-dashboard');
    } else if (role == 'user') {
      Navigator.pushReplacementNamed(context, '/user-dashboard');
    } else {
      Navigator.pushReplacementNamed(context, '/login');
    }
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(child: CircularProgressIndicator()),
    );
  }
}

Conclusion

With this setup:

This method ensures secure role-based authentication in Flutter using JWT tokens.

Reasons:
  • Blacklisted phrase (1): ToDas
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kartik Patadiya

79552095

Date: 2025-04-03 05:50:08
Score: 1.5
Natty:
Report link

Try by removing the node_module folder
then you need to run **npm run install
**
this will add the required package into you new project ie project2

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

79552093

Date: 2025-04-03 05:47:08
Score: 2
Natty:
Report link

You are missing the quote
Try like this

$word = $_GET['word'];

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

79552080

Date: 2025-04-03 05:38:06
Score: 1
Natty:
Report link

As the solution provided here https://community.sonarsource.com/t/sonarqube-publish-quality-gate-result-error-400-api-get-api-ce-task-failed-status-code-was-400/47735/4 is too old and didn't work for me, I have finally succeeded on SonarQube Publish Quality Gate with the below fix:

  1. Generate a new Token from SonarQube on My Account > Security > Generate Tokens > Generate a Token for the Project.

  2. Copy and Paste the Token in your Azure DevOps. Go to Project settings > Service connections > Add the token we have generated.

    Note: for this activity, we need Admin rights for the Project.

  3. Re-run the pipeline.

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

79552078

Date: 2025-04-03 05:37:05
Score: 4
Natty:
Report link

This is automation to find and delete snapshots associated with ami

https://medium.com/me/stats/post/cc492f54efdb

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Gandhar khaladkar

79552072

Date: 2025-04-03 05:36:05
Score: 4
Natty: 4.5
Report link

import google play asset delivery to resolve the problem.

Link: https://developer.android.com/guide/playcore/asset-delivery/integrate-unity

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

79552069

Date: 2025-04-03 05:32:03
Score: 0.5
Natty:
Report link

When working with Voyager and Tabs

You can navigate from tab to tab like this: (Bottom Tab bar visible)

val navigator = LocalNavigator.currentOrThrow
navigator.push(NextTabScreen)
You can navigate to the regular screen from the tab ( Bottom Tab bar is not visible) 

val navigator = LocalNavigator.currentOrThrow
navigator.parent.push(NextRegularScreen("some message"))

This navigates to another regular screen that is implemented from the Screen.

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: Shaxriyor Xusinov

79552066

Date: 2025-04-03 05:31:03
Score: 4.5
Natty:
Report link

Do not create real business users in the system tenant, create a new common tenant for use.

Using oblogproxy's cdc mode, will the error still be reported when changing the tenant?

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

79552059

Date: 2025-04-03 05:25:01
Score: 4.5
Natty:
Report link

I am having the same issue but still not resolved.

What I have tried:

  1. removing .next folder.

  2. deleting the folder and cloning again.

  3. cleared cookies and local data from browser

what I got:

  1. In terminal it gives me complied /src/middleware but in any browser it gives me This page isn't working
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having the same issue
  • Low reputation (1):
Posted by: sanjeev gwachha

79552046

Date: 2025-04-03 05:20:00
Score: 1
Natty:
Report link

from PIL import Image

# Load the two images

image_path1 = "/mnt/data/file-4eU7vheg59wcVoAv3NUi9h"

image_path2 = "/mnt/data/file-CjJQqi6bFEV9MkLYFScfF3"

image1 = Image.open(image_path1)

image2 = Image.open(image_path2)

# Determine the new image size

new_width = max(image1.width, image2.width)

new_height = image1.height + image2.height

# Create a blank image with a white background

merged_image = Image.new("RGB", (new_width, new_height))

# Paste the images on top of each other

merged_image.paste(image1, (0, 0))

merged_image.paste(image2, (0, image1.height))

# Save the merged image

merged_image_path = "/mnt/data/merged_image.jpg"

merged_image.save(merged_image_path)

merged_image_path

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

79552044

Date: 2025-04-03 05:15:59
Score: 1
Natty:
Report link

I managed to make it run 25% faster with a few small tweaks. I haven't checked if it still works, you probably have unit tests, right?

public class FixDictionaryBase2
{
    private readonly Dictionary<int, string> _dict;

    protected FixDictionaryBase2()
    {
        _dict = [];
    }

    protected void Parse(ReadOnlySpan<char> inputSpan, out List<Dictionary<int, string>> groups)
    {
        // Algorithm for processing FIX message string:
        // 1. Iterate through the input string and extract key-value pairs based on the splitter character.
        // 2. If the key is RptSeq (83), initialize a new group and add it to the groups list.
        // 3. Assign key-value pairs to the appropriate dictionary:
        //    - If the key is 10 (Checksum), store it in the main _dict.
        //    - If currently inside a group, store it in the dictionary of the current group.
        //    - Otherwise, store it in the main _dict.
        // 4. Continue processing until no more splitter characters are found in the input string.

        groups = [];

        Dictionary<int, string> currentGroup = new();

        // Special characters used to separate data
        const char splitter = '\x01';
        const char equalChar = '=';
        const int rptSeq = 83;

        // Find the first occurrence of the splitter character
        int splitterIndex = inputSpan.IndexOf(splitter);

        while (splitterIndex != -1)
        {
            // Extract the part before the splitter to get the key-value pair
            var leftPart = inputSpan[..splitterIndex];

            // Find the position of '=' to separate key and value
            var equalIndex = leftPart.IndexOf(equalChar);

            // Extract key from the part before '='
            var key = int.Parse(leftPart[..equalIndex]);

            // Extract value from the part after '='
            var value = leftPart.Slice(equalIndex + 1).ToString();

            // If the key is RptSeq (83), start a new group and add it to the groups list

            // Determine the appropriate dictionary to store data
            // - If the key is 10 (Checksum), always store it in the main _dict
            // - If a group has been identified (hasGroup == true), store it in the current group's dictionary
            // - Otherwise, store it in the main _dict
            if (key == rptSeq)
            {
                groups.Add(new());
                if (key == 10)
                {
                    _dict[key] = value;
                }
                else
                {
                    currentGroup[key] = value;
                }
            }
            else
            {
                _dict[key] = value;
            }

            // Remove the processed part and continue searching for the next splitter
            inputSpan = inputSpan.Slice(splitterIndex + 1);
            splitterIndex = inputSpan.IndexOf(splitter);
        }
    }
}

public sealed class FixDictionary2 : FixDictionaryBase2
{
    private readonly string _fixString;

    public FixDictionary2(string fixString) : base()
    {
        _fixString = fixString;
        Parse(fixString, out var groups);
        Groups = groups;
    }

    public IReadOnlyList<Dictionary<int, string>> Groups { get; }

    public string GetFixString() => _fixString;
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: HenningNT

79552040

Date: 2025-04-03 05:11:58
Score: 1.5
Natty:
Report link

This is an issue reported in the react-native Github Repo: https://github.com/facebook/react-native/issues/50411

Right now, the solution is to downgrade XCode from 16.3 to 16.2

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Robb Cornwall

79552038

Date: 2025-04-03 05:10:58
Score: 2
Natty:
Report link

Let's break down the second line of code in your Python program:

Given Code:

words = ['Emotan', 'Amina', 'Ibeno', 'Santwala']
new_list = [(word[0], word[-1]) for word in words if len(word) > 5]
print(new_list)

Explanation of Line 2:

new_list = [(word[0], word[-1]) for word in words if len(word) > 5]

Step-by-Step Execution:

  1. 'Emotan' → Length = 6 (greater than 5) → Include → ('E', 'n')

  2. 'Amina' → Length = 5 (not greater than 5) → Excluded

  3. 'Ibeno' → Length = 5 (not greater than 5) → Excluded

  4. 'Santwala' → Length = 8 (greater than 5) → Include → ('S', 'a')

Final Output:

[('E', 'n'), ('S', 'a')]

Would you like me to modify the code or add more explanations?

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

79552030

Date: 2025-04-03 05:02:56
Score: 0.5
Natty:
Report link

This is one approach of the issue.
Adjust the formula to your actual ranges

The formula in C4 cell

=FILTER(G3:G14,BYROW((H3:K14="Yes")*(H2:K2=D2),LAMBDA(x,SUM(x))))

enter image description here

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

79552014

Date: 2025-04-03 04:46:52
Score: 1.5
Natty:
Report link

I haven't seen a programming language with native support for this in its standard library, but Unicode does publish a file containing ligature decompositions (including Œ and Æ) at https://www.unicode.org/Public/UCA/latest/decomps.txt

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Ryan Hilbert

79551994

Date: 2025-04-03 04:30:48
Score: 4.5
Natty:
Report link

Am also facing the similar issue, when I debug the individual Microservice its working fine. But in API gateway in Docker its showing the error. I tried with IIS and its working fine.

No idea why its showing "Connection refuse (microservice:80)".

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): also facing the similar issue
  • Low reputation (1):
Posted by: Mustureswara M M Eshwar

79551990

Date: 2025-04-03 04:25:46
Score: 6.5 🚩
Natty: 4.5
Report link

https://script.google.com/a/heromotocorp.com/macros/s/AKfycbz0VKwJ5JLhT078mebIZzOajId-Q2VWKRD3aQNHzBOIPjvsL_4/exec

pls provide upper link script for my coding

Reasons:
  • RegEx Blacklisted phrase (2.5): pls provide
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Vagh Harsurbhai

79551982

Date: 2025-04-03 04:19:45
Score: 0.5
Natty:
Report link
#in Makefile.am
BUILT_SOURCES = data.h # or += if is not the first time
CLEANFILES = data.h    # or += if is not the first time
data.h: update_data.pl # if update_data.pl will be modified, the rule will trigger
    perl update_data.pl
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sam

79551976

Date: 2025-04-03 04:12:43
Score: 2
Natty:
Report link

Several years later...

... I identified, eventually, that Epi::Ns doesn't obey the inner-product and intercept constraints simultaneously. It also can't be used in predict() I've provided a corrected algorithm (following Carstensen's paper) as a small R package here: stephematician / effectspline - GitLab

Reasons:
  • Contains signature (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: stephematician

79551975

Date: 2025-04-03 04:11:43
Score: 5
Natty:
Report link

https://ms-info-app-e4tt.vercel.app/reactNative/webrtc This link is very useful and easy to implement for my peer-to-peer connection💯

Reasons:
  • Blacklisted phrase (1): This link
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mukesh Murugaiyan

79551974

Date: 2025-04-03 04:10:42
Score: 1
Natty:
Report link

2025.04.02, M3 MAX

  1. Install brew first.

  2. brew install cocoapods

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

79551973

Date: 2025-04-03 04:10:42
Score: 6
Natty: 7
Report link

thank you for this script. Can you please also add a threshold with some value?

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: не важно

79551961

Date: 2025-04-03 03:58:39
Score: 1.5
Natty:
Report link
@Mock
Dog dog; // Dog is a record

doReturn(Optional.empty())
    .when(dog).tail()
    .when(dog).paw()
    .when(dog).nose()
    .when(dog).eye();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Huynh.tdt

79551955

Date: 2025-04-03 03:51:38
Score: 3.5
Natty:
Report link

Any update on a solution? I am expereinceing the exact same issue when I started using mysql workbench

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jeffrey Chu

79551942

Date: 2025-04-03 03:39:35
Score: 0.5
Natty:
Report link

Yes, you can connect your Power Apps app with data source other than SharePoint and office365 outlook connection. If you specifically want to know how your power app can connect with SQL Server then there are documents on MS Learn explaining steps to connect SQL Server from PowerApps.

If your data source is other than SQL Server then still it can be done by custom connectors.

Reasons:
  • No code block (0.5):
Posted by: Almas Mahfooz

79551934

Date: 2025-04-03 03:30:33
Score: 0.5
Natty:
Report link

Add the following configuration to settings.json:

"explorer.fileNesting.patterns": {
        "*.dart": "${capture}.g.dart, ${capture}.freezed.dart"
    },
"explorer.fileNesting.enabled": true,
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Muhamad Raffi Irawan

79551929

Date: 2025-04-03 03:25:32
Score: 1
Natty:
Report link

IDLE doesn’t respond to \r the way a terminal should. You can run it at the command prompt with py yourscript.py or use an IDE that either has an integrated terminal (like VSCode) or one which has a shell that responds to \r and other ANSI terminal control codes (like Thonny). Otherwise your code is quite good.

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

79551923

Date: 2025-04-03 03:18:30
Score: 0.5
Natty:
Report link

The issue was caused by Firebase dose not use the same instance in both flutter and swift, and Firestore being accessed from Swift before Flutter had finished initializing it.

Since Firestore locks its settings at first access, calling Firestore.firestore() too early in Swift (before Flutter finishes initialization) caused a fatal crash.

To fix it, I made sure Flutter fully initialized Firebase and triggered a dummy Firestore call before any Swift code touched Firestore. In main.dart, I added:

await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
await FirebaseFirestore.instance.collection("initcheck").limit(1).get();

Since my Firestore rules required authentication, I also added:

match /initcheck/{docId} {
  allow read: if request.auth != null;
}

After that, saving data from Swift using the logged-in user worked perfectly.

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

79551922

Date: 2025-04-03 03:18:30
Score: 1
Natty:
Report link

Based on @andrei-stefan answer, you can try also:

environment.getPropertySources()
    .stream()
    .filter(MapPropertySource.class::isInstance)
    .map(MapPropertySource.class::cast)
    .map(MapPropertySource::getPropertyNames)
    .flatMap(Arrays::stream)
    //.anyMatch(propertyName -> propertyName.startsWith(key));
    .anyMatch(propertyName -> propertyName.equal(key));
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @andrei-stefan
  • Low reputation (0.5):
Posted by: kinlhp

79551914

Date: 2025-04-03 03:11:29
Score: 3
Natty:
Report link

I have already solved this issue. The KSP automatically deleting code is due to a bug in KSP's incremental compilation, not a problem with my configuration. Disabling KSP's incremental compilation will resolve the problem.

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

79551908

Date: 2025-04-03 03:07:28
Score: 1.5
Natty:
Report link

This is because some telegram channels restrict sharing/copying from the channel(there is a channel setting called Content Protection that restricts saving content).

Because of this, you cannot share or open files with another app directly from Telegram, but you can access that file using third-party apps(like file managers that can access root files) or by connecting your phone to your computer and accessing it from Telegram's root files.

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

79551906

Date: 2025-04-03 03:01:26
Score: 1.5
Natty:
Report link

I came across this question by chance. It's now annotated in the code like below

# Sub-Module Usage on Existing/Separate Cluster

So this submodule is used when there is a cluster not created by the root module but you still want to create and control node group by the terraform code. In most cases, you won’t need this.

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

79551905

Date: 2025-04-03 02:59:26
Score: 2.5
Natty:
Report link

I just updated my Xcode and now my react native app is also giving me this error. no solution yet.

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

79551903

Date: 2025-04-03 02:58:26
Score: 2.5
Natty:
Report link

<?php

$x = 10;

$y = 20;

echo “before swapping, number are: ”;

echo $x;

echo “        ”;

echo $y:

echo “\n”

/*swapping*/

$x = $x  + $y;

$y = $x  + $y;

$x = $x  + $y;

echo “<Br> After swapping, numbers are: ”;

echo $x;

echo “   ”

echo $y;

?>

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

79551899

Date: 2025-04-03 02:55:25
Score: 1
Natty:
Report link

i've run into the same issue on Ubuntu 20.04, the problem is python3.8 is too old for bootstrapping this project.

try to install python3.11 at least:

sudo apt install python3.11 python3.11-dev python3.11-venv

create a virtual environment:

python3 -m venv venv
source .venv/bin/activate

and try to run bootstrap script from there.

P.S. do not update system Python on Ubuntu (leave it 3.8), otherwise it might cause problems in OS housekeeping

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