79366821

Date: 2025-01-18 09:07:25
Score: 1.5
Natty:
Report link

A Synthetic event in React is basically a custom event. Creating custom events and Dispatching it are widely known in Web programming. The very same fundamentals of events in Browsers are the only requisite knowledge to understand the synthetic events too.

We shall discuss it below.

As we know, in general, the events in Browsers propagate in three phases.

  1. Capture phase
  2. Target phase
  3. Bubble up phase

Firstly, an event happens in an element placed in a document contained in a Browser Window, will firstly be routed to the Capture phase handlers. We also know, capture phase handlers are placed on to the containers. Since there could be multiple containers for an element, the search for Capture handlers will start and run from the outermost container to the inner most container of the given target object. Therefore the below code will capture each and every click event in a web app since window is the outer most container of it.

window.addEventListener('click', () => console.log('ClickCapture handler in the window object'), true);

Secondly, the originated event will be routed to the target object, the object from where the event originated. We may call the codes over here as target phase handlers. There could be multiple handlers for the same event attached to the target object. The order of executing it will depend on the order of attaching the handlers.

Thirdly, the event will start bubbling up to its containers. Bubble up of events is from the innermost to the outermost container which is essentially in the opposite direction of running Capture phase handlers.

This much of Events fundamentals would suffice for us to start discussing about the Synthetic events in React. We shall now move on it.

First case. Synthetic and Native events - Bubble up phase events only

Let us take first bubble up phase events only with the following sample code.

App.js

import { useEffect, useState } from 'react';

console.clear();
export default function App() {
  useEffect(() => {
    document.querySelector('#div').addEventListener('click', (e) => {
      console.log('Native click - div');
    });
    document.querySelector('#button').addEventListener('click', (e) => {
      console.log('Native click - Button');
    });
  }, []);

  return (
    <>
      <div id="div" onClick={(e) => console.log('React onClick - Div')}>
        <button
          id="button"
          onClick={(e) => console.log('React onClick - Button')}
        >
          Button
        </button>
      </div>
    </>
  );
}

Output

On clicking the button, the following log generated

// Native click - button
// Native click - div
// React onClick - button
// React onClick - div

Observation

a. As there is no Capture phase events in the document, the event handler search will find the target phase handlers first.

b. There are two handlers here in button element. The first one is added by React and the second one is added as a native event in useEffect. We can see that the native event handler has run here first.

c. Then the search for bubble up phase handlers will start. There are two handlers in the container element div here. Similar to button, it is added by React and useEffect respectively. And we could see in the output as the native click of the container has been executed next.

d. Subsequent to the two log entries we have discussed above, the remaining two log entries are generated by the React event handlers.

e. Over here, the log entry 'React onClick - button' is the result of the React handler in target phase, and the next entry 'React onClick - div' is the result of the React handler bubble up phase.

The two of most outstanding questions here may be the below.

Why did the native click event on the button run first before the React event on it ?

We shall find out the reasons below.

While we check the event listeners on the button element as below, we could see there is only one handler over there, and that too, the native event handler added in useEffect. And there is no handler for the React event onClick over here.

enter image description here

if so, from where did the console log 'React onClick - button' has been generated ?

The answer to the question is, it is the result of a custom event dispatched by some container. Let us see, how did it happen.

As we saw, after the target phase event - the native click handler, the event moved on to bubble up phase. As the result of it, we could see the output 'Native click - div'. As we mentioned earlier, the bubble up phase will continue to the outermost container. We also know we have not coded in the outermost object - the window, to respond to a click event. So there is some container in between the div and the window object to handle this bubbled up click event.

We shall now inspect the below element and see it has anything in this regard. Please see the below screen. In the hierarch of html elements in the document, we could see the root div element has a handler for click event. And the handler attached to it is named as dispatchDiscreteEvent. This is the common handler provided by React. It has the logic in it to create a custom event of same kind and dispatch it to the target element.

Therefore this handler did its job. It created a custom event under the name OnClick and dispatched it to the button element, and therefore it generated the respective log entry. Now it is not all over. Just like the browser generated events, this OnClick event will bubble up after its target phase is over. Since this event has bubbled up, the onClick handler on the container div has also been executed which resulted the log 'React onClick - div'. It bubbled up again, and ended since there is no further handler in the hierarchy.

This is the reasoning behind the four log entries in the particular order.

enter image description here

Second case. Synthetic and Native events - Capture phase events

Let us take capture phase events only with the following sample code.

App.js

import { useEffect, useState } from 'react';

console.clear();
export default function App() {
  useEffect(() => {
    document.querySelector('#div').addEventListener(
      'click',
      (e) => {
        console.log('Native clickCapture - div');
      },
      { capture: true }
    );
    document.querySelector('#button').addEventListener('click', (e) => {
      console.log('Native click - button');
    });
  }, []);

  return (
    <>
      <div
        id="div"
        onClickCapture={(e) => console.log('React onClickCapture - div')}
        onClick={(e) => console.log('React onClick - div')}
      >
        <button
          id="button"
          onClick={(e) => console.log('React onClick - button')}
        >
          Button
        </button>
      </div>
    </>
  );
}

Test run

On clicking the button, the following log entries generated.

// React onClickCapture - div
// Native clickCapture - div
// Native click - button
// React onClick - button
// React onClick - div

Observation

We know this code is different from the first one. The only major difference is it has Capture phase events. Therefore we shall go straight to discuss the working details.

It generated 'React onClickCapture - div' as the first log entry, since it ran the Capture handler first. However the following question is outstanding here ?

Why or How did it run the React handler instead of the native handler, though both are capture phase events ?. Moreover, in the first case, it ran the native handler first in its target phase.

The reason may be known to us by now. We know in general, the Capture phase events if present, will run first, from the outer to the innermost container.

Now the next question may be, why did it run React capture phase event first ?

It runs it so since this time the event handler search starts from the top, and it goes to bottom. Therefore, the common handler of React comes again in into the context. Let us see it in the below screenshot.

enter image description here

Please note the major difference between this handler and the one in the first case, the property useCapture is true here. In the first case, it was false.

It means the handler shown below is exclusively here to receive the Capture phase click events from the children, and delegate the same kind of event to the target object. The basic action it does is the same, still the kind of event it generates over here is different.

Therefore this common handler will generate a Capture phase onClick event, and dispatch it to the next enclosing container which is the div object in this case. As a result, we could see the log 'React onClickCapture - div' as its first entry.

As we know, Capture phase event will descend, but there no more containers or handlers here for the React onClickCapture event.

To start processing the target phase events handling, there must be no Capture phase event be pending. However, we have one more to process. The one added by the Native event. It will also then be processed from top to bottom. As a result, we got the log entry 'Native clickCapture - div' as the second one.

Now the remaining three log entries may be self explanatory as it is same as that in the first case.

The Capture phase events are over, target phase will start processing. Therefore we got 'Native click - button' as the third entry. The React onClick will not run then since there is no such handler directly attached to the button as we discussed in the first case.

Therefore the bubble up phase will start then. It will hit the root div again but for onClick event, and from there, onClick event will be dispatched to the target, as a result, 'React onClick - button' will generate as the fourth entry. Since there is no more target phase handlers, the same event - onClick, will bubble up. As a result, it will hit the div, and will generate 'React onClick - div' as the fifth entry.

This is the reasoning behind the five log entries in the particular order.

Additional content

As we mentioned in the beginning, creating a custom event and dispatching it is well known web programming.

The following sample code demoes the same.

App.js

import { useEffect, useState } from 'react';

console.clear();
export default function App() {
  useEffect(() => {
    document.querySelector('#root').addEventListener('click', (e) => {
      const event = new Event('clickCustomEvent', { bubbles: true });
      console.log('step 1. the div element receives and delegates the click event to the target button as clickCustomEvent.');
      e.target.dispatchEvent(event);
    });
    document.querySelector('#div').addEventListener('clickCustomEvent', (e) => {
      console.log(
        'step 3 : the immediate container div also receives the same clickCustomEvent as it is bubbled up.'
      );
    });
    document
      .querySelector('#button')
      .addEventListener('clickCustomEvent', (e) => {
        console.log('step 2: the button element receives the delegated event click CustomEvent');
      });

  }, []);

  return (
    <>
      <div id="root">
        <div id="div">
          <button id="button">Button</button>
        </div>
      </div>
    </>
  );
}

Test run

On clicking the button, the following log entries generated.

/*

step 1. the div element receives and delegates the click event to the target button as clickCustomEvent.

step 2: the button element receives the delegated event click CustomEvent

step 3 : the immediate container div also receives the same clickCustomEvent as it is bubbled up.

*/

Observation

By now, it may be self explanatory. You may please post your comments if any.

Reasons:
  • RegEx Blacklisted phrase (2.5): please post your
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: WeDoTheBest4You

79366811

Date: 2025-01-18 08:57:24
Score: 1.5
Natty:
Report link

When text in Slack is displayed as " instead of actual double quotes ("), it means the quotes are being HTML-encoded. To fix this and display the actual double quotes, you need to ensure that the text is not encoded when sent to Slack.

Here’s how you can fix it:

  1. Escape Quotes Properly If you’re using Slack’s API or sending messages via a bot, make sure to properly escape the quotes in the message string. For example:

Instead of HTML entities like ", use actual double quotes ("). 2. Ensure Correct Encoding When constructing your message, ensure it’s sent in plain text or properly formatted for Slack.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Chong Hui Min

79366810

Date: 2025-01-18 08:57:24
Score: 0.5
Natty:
Report link

The issue you're encountering is due to how Karate handles dynamic key-value pairs in JSON objects, particularly when you want to use a variable for the key inside a match statement.

When you want to match a response where the key is dynamically generated from a variable, you need to use the correct syntax for dynamic key-value pairs in JSON. Specifically, Karate supports dynamic keys using the following syntax.

{ (variableName): value }

This allows the key to be determined at runtime, and the variable will be resolved to its actual value.

Corrected Example: In your original code:

Given path 'path'
When method get
And def var1 = "name"
Then match response == """
{ #(var1): "val1" }
"""

The #(var1) inside the multi-line string doesn't get resolved in this context. The proper way to achieve this dynamic key matching is as follows:

Given path 'path'
When method get
And def var1 = "name"
Then match response == { (var1): "val1" }

Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: James Lee

79366809

Date: 2025-01-18 08:57:24
Score: 1.5
Natty:
Report link

I had the same issue - it turned out it was because during working with my model i had several times deleted the migration files and started over, so in my project file i had this:

So not so wierd the migration didn't know the tables were created

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Margit

79366802

Date: 2025-01-18 08:46:21
Score: 6.5 🚩
Natty: 6
Report link

Pe unde ai ajuns ala cu spider?

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

79366801

Date: 2025-01-18 08:44:20
Score: 3
Natty:
Report link

You can check it from google search console if your site is added to google search console.

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

79366780

Date: 2025-01-18 08:33:18
Score: 1
Natty:
Report link

the findAll() method with the href filter already retrieves tags that include href attributes matching the regular expression ^(/wiki/). This makes the explicit check if 'href' in link.attrs: redundant in this specific case.

However, the extra check might have been included as a safeguard to handle cases where:

A tag unexpectedly doesn't have an href attribute (though unlikely here). To future-proof the code if the findAll() condition or use case changes. Conclusion: Yes, the line if 'href' in link.attrs: can be safely removed here. It duplicates validation already handled by the findAll() filter. The retained validation adds no practical value in this context.

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

79366778

Date: 2025-01-18 08:32:18
Score: 2
Natty:
Report link

The build.gradle files are in

Root\android\build.gradle Root\android\app\build.gradle

Note that these may have .kts sufffix as android now recommends using koitlin language.

Root\android\build.gradle.kts Root\android\app\build.gradle.kts

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

79366774

Date: 2025-01-18 08:31:18
Score: 3.5
Natty:
Report link

You should try go_router package. May be it can work for you.

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

79366768

Date: 2025-01-18 08:25:17
Score: 2
Natty:
Report link

I've had the same issue. When I checked my solution explorer all the assemblies from Unity were unloaded. 1

All I had to do is load the projects. That can be done by right clicking on the solution and select the "Load Projects" option

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

79366757

Date: 2025-01-18 08:11:15
Score: 1
Natty:
Report link

Tried all above and many other with no success. What finally worked for me was editing /etc/mysql/my.cnf:

[mysqldump]

max_allowed_packet=1024M

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: tsig

79366756

Date: 2025-01-18 08:09:14
Score: 2
Natty:
Report link

If there is a baseHref set angular.json, this could be causing you trouble for example if the baseHref="" try removing this or change it to baseHref="/"

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

79366754

Date: 2025-01-18 08:07:13
Score: 1
Natty:
Report link

add in your web.xml the line

<servlet-mapping>
    <servlet-name>default</servlet-name>
    <url-pattern>/assets/*</url-pattern>
  </servlet-mapping>

now you can link anything in the folder assets as it is js or css

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

79366752

Date: 2025-01-18 08:07:13
Score: 1.5
Natty:
Report link

you can try this app https://github.com/Ponnusamy1-V/frappe-pdf

this will not work in docker setup like frappe cloud.

it needs google-chrome to be installed in the server, if that suits you, then you can give it a try.

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

79366736

Date: 2025-01-18 07:49:10
Score: 0.5
Natty:
Report link

In application.properties file put this code

spring.mvc.view.prefix=/WEB-INF/jsp/
spring.mvc.view.suffix=.jsp

Also add following dependencies:

<dependency>
        <groupId>org.apache.tomcat.embed</groupId>
        <artifactId>tomcat-embed-jasper</artifactId>
        <version>10.1.30</version>
    </dependency>

    <dependency>
        <groupId>jakarta.servlet.jsp.jstl</groupId>
        <artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
    </dependency>

    <dependency>
        <groupId>org.glassfish.web</groupId>
        <artifactId>jakarta.servlet.jsp.jstl</artifactId>
    </dependency>

Folder Structure should look like this

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

79366728

Date: 2025-01-18 07:47:09
Score: 4
Natty: 4
Report link

DON'T KNOW FOR WHICH ONE: ISC{always-check-the-source-code}

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

79366721

Date: 2025-01-18 07:41:08
Score: 3.5
Natty:
Report link

Can you please try scrollbehaviour: center.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can you please
  • Low reputation (0.5):
Posted by: madhuri varada

79366719

Date: 2025-01-18 07:39:05
Score: 10 🚩
Natty:
Report link

I am facing the similar issue. were you able to resolve it? any update "@rnmapbox/maps": "^10.1.33", "react-native": "0.76.5", "expo": "~52.0.24",

Error: @rnmapbox/maps native code not available. Make sure you have linked the library and rebuild your app. See https://rnmapbox.github.io/docs/install?rebuild=expo#rebuild

Reasons:
  • RegEx Blacklisted phrase (1.5): resolve it?
  • RegEx Blacklisted phrase (3): were you able
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the similar issue
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: jyoti

79366717

Date: 2025-01-18 07:35:04
Score: 3.5
Natty:
Report link

Try kwboot.. This will give you the opportunity to stop autoboot.

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

79366712

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

This is probably because you have enabled "CredUI" authentication. IN your case, please activate "Logon" and "Unlock" as "Only Remote", put "CredUI" to None.

multiOTP configuration printscreen

Regards,

Reasons:
  • Blacklisted phrase (1): Regards
  • Whitelisted phrase (-1): IN your case
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: HIlitec

79366710

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

Try attaching the layout to the class when inflating instead of adding as a view.

Change

binding = BannerViewBinding.inflate(LayoutInflater.from(context))
addView(binding.root)

to

binding = BannerViewBinding.inflate(LayoutInflater.from(context), this)

in all 3 classes.

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

79366708

Date: 2025-01-18 07:27:02
Score: 2
Natty:
Report link

In my case, installing libmagic via Homebrew and python-magic via pip worked.

% brew install libmagic
% pip install python-magic

https://formulae.brew.sh/formula/libmagic
https://pypi.org/project/python-magic/

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

79366701

Date: 2025-01-18 07:21:01
Score: 1.5
Natty:
Report link

It sounds like what you're after is LocalStack ( see https://github.com/localstack/localstack ). There is a free and paid version of this product, where the latter is far more advanced and feature-rich. Here's a link showing a run down of the supported APIs and emulated services: https://docs.localstack.cloud/user-guide/aws/feature-coverage/

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

79366694

Date: 2025-01-18 07:11:58
Score: 4
Natty: 4
Report link

FLAGS not done here dont use another stuff

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

79366693

Date: 2025-01-18 07:11:58
Score: 1.5
Natty:
Report link

I use Bascom-Avr.

There is another way: using overlay. Basically you define 2 bytes and one Integer, but it is possible to assign the same memory space for the two variables. Even share to bytes array.

Example:

Dim mBytes(2) As Byte Dim mLsb As Byte At mBytes(1) Overlay

Dim mMsb As Byte At mBytes(2) Overlay

Dim Rd As Integer At mBytes(1) Overlay

Then, you can access mBytes as array, or mLsb and mMsb as components of Rd, or directly the Rd variable.

It only is matter of the order of mLsb and mMsb (little/big endian).

As memory is shared, that's do the trick. It is faster than shifting or doing the arithmetic...

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

79366692

Date: 2025-01-18 07:11:58
Score: 1.5
Natty:
Report link
try {
  // do work
} catch (...) {  
  // cleanup
  std::rethrow_exception(std::current_exception());
}
// cleanup
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user27271692

79366689

Date: 2025-01-18 07:09:58
Score: 1.5
Natty:
Report link

Please check the name of the file given. In my case I gave the name dockercompose.yml but it should be like docker-compose.yml. It worked after changing the name of the file

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

79366687

Date: 2025-01-18 07:07:57
Score: 1
Natty:
Report link

If you need to compute something per key in parallel on different machines and compute something for all keys (like an average of counts or n max and n min values) then direct the stream of computed count values as key-value pairs into another topic, that is handled on 1 working JVM instance as a stream computing statistic on counts. The purpose of streams is to make computing per key, which has any business reason. If you need 2-level computations, then you need 2-level topology of computations.

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

79366675

Date: 2025-01-18 06:59:56
Score: 1
Natty:
Report link

use env MSYS_NO_PATHCONV=1

MSYS_NO_PATHCONV=1 adb -s xxx push local_file /mnt/sdcard
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: 张馆长

79366668

Date: 2025-01-18 06:51:54
Score: 3
Natty:
Report link

Cant we just rename the java.exe and other related executables to the version they are in like java7 if it is v7 and java19 if it is java v19.0.1 or something like that. I did that physically and i dont know if it has any side effect or something

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can
  • Low reputation (1):
Posted by: DangerPanda0

79366660

Date: 2025-01-18 06:45:53
Score: 1.5
Natty:
Report link

According to https://cloud.google.com/storage/docs/deleting-objects#delete-objects-in-bulk one should use "lifecycle configuration rules":

To bulk delete objects in your bucket using this feature, set a lifecycle configuration rule on your bucket where the condition has Age set to 0 days and the action is set to delete . Once you set the rule, Cloud Storage performs the bulk delete asynchronously.

To just delete a directory, "prefix" can be used.

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

79366649

Date: 2025-01-18 06:29:50
Score: 3
Natty:
Report link

in windows i change this file : C:\Users<Your-User>.gradle\gradle.properties

tnx

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

79366648

Date: 2025-01-18 06:27:49
Score: 2
Natty:
Report link

These are my routes

Route::group(['middleware' => ['VerifyCsrfToken']], function () { Route::get('login/{provider}', [SocialController::class, 'redirectToProvider']); Route::post('login/{provider}/callback', [SocialController::class, 'handleProviderCallback']); });

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

79366644

Date: 2025-01-18 06:23:49
Score: 2.5
Natty:
Report link

awesome, what about the g4f for the generate-image endpoint? I had it working on the server but for some reason after adding web-search abilities, the /generate-image endpoint isn't working for the Flux model? I ran commands to the API and it came back finding the multiple versions like Flux and Flux-artistic endpoints for image generation but its throwing an error not found on my end. Everything else works, its strange.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Brant Kingery

79366635

Date: 2025-01-18 06:11:47
Score: 3
Natty:
Report link

you can add this in your yaml file

assets: - lib/l10n/

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

79366632

Date: 2025-01-18 06:07:46
Score: 2
Natty:
Report link

I recently completed a project called WordSearch.diy, an AI-powered word search generator. It uses artificial intelligence to dynamically create word search puzzles based on custom inputs. Feel free to check it out at WordSearch.diy.

Would love to hear any feedback or answer questions about its development process!

Reasons:
  • Blacklisted phrase (0.5): check it out
  • No code block (0.5):
  • Low reputation (1):
Posted by: Elugens

79366631

Date: 2025-01-18 06:06:46
Score: 0.5
Natty:
Report link
let connectedScenes = UIApplication.shared.connectedScenes
let windowScene = connectedScenes.first(where: { $0.activationState == .foregroundActive }) as? UIWindowScene
let window = windowScene?.keyWindow

This worked well for me.

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

79366629

Date: 2025-01-18 06:06:46
Score: 1
Natty:
Report link

The simplest way that I achive this is:

SimpleDateFormat( "yyyy-MM-dd'T'HH:mm:ss.SSSXXX", Locale.getDefault() ).format(System.currentTimeMillis())

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

79366621

Date: 2025-01-18 05:57:44
Score: 2.5
Natty:
Report link

Permanent Residency (PR) visas offer long-term residency, citizenship pathways, free education, healthcare, and more. Explore skilled, family, employer, or investment-based options. Learn more: https://www.y-axis.com/visa/pr/

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

79366610

Date: 2025-01-18 05:43:42
Score: 4
Natty:
Report link

[105] apct.a(208): VerifyApps: APK Analysis scan failed for com.example.fitnessapp com.google.android.finsky.verifier.apkanalysis.client.ApkAnalysisException: DOWNLOAD_FILE_NOT_FOUND_EXCEPTION while analyzing APK at aolk.b(PG:1287) at aolk.a(PG:13) at org.chromium.base.JNIUtils.i(PG:14) at bjrd.R(PG:10) at aonn.b(PG:838) at aonn.a(PG:307) at bjmf.G(PG:40) at bjmf.t(PG:12) at apct.a(PG:112) at aonn.b(PG:788) at bjkp.nQ(PG:6) at bjrm.run(PG:109) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at mwa.run(PG:1014) at java.lang.Thread.run(Thread.java:761) 2025-01-17 21:26:31.806 3410-3410 System com.example.fitnessapp W ClassLoader referenced unknown path: /data/app/com.examp i am facing this error plz help me

Reasons:
  • Blacklisted phrase (1): plz help
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (1): i am facing this error
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: MUHAMMAD Tahir

79366609

Date: 2025-01-18 05:42:40
Score: 5
Natty: 6
Report link

Vayfiyi şifresini değiştiremiyorum

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mehmet algan

79366599

Date: 2025-01-18 05:31:38
Score: 4
Natty:
Report link

Hi I just want to echo this issue It is exactly happening on our MSKC as well. our MSK is 3.6.0 and MSKC 3.7.x and this periodic AdminClient Node disconnect -1 and MSK Connect graceful shutdown is seen every 6mins as you mentioned. Currently we rollback the MSKC back to 2.7.1 But need an explanation by AWS. Thanks for sharing this issue. so I can tell I am not along.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (2): Thanks for sharing
  • No code block (0.5):
  • Low reputation (1):
Posted by: Benicio

79366598

Date: 2025-01-18 05:30:38
Score: 3.5
Natty:
Report link

Import global css file into root layout.jsx file app/layout.jsx

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

79366586

Date: 2025-01-18 05:04:33
Score: 0.5
Natty:
Report link

I've decided to write a program that runs into an infinite execution of the method where I was testing (to automate the testing process).

Here's the code snippet I was working with to achieve what Ken White and Frank van Puffelen recommend.

import 'dart:math';

import 'package:flutter/material.dart';
import 'dart:developer' as developer;

class FourDigitCodeGenerator extends StatefulWidget {
  const FourDigitCodeGenerator({super.key});

  @override
  State<FourDigitCodeGenerator> createState() => _FourDigitCodeGeneratorState();
}

class _FourDigitCodeGeneratorState extends State<FourDigitCodeGenerator> {
  String? _code;

  void _generateCode() { // version 1
    Set<int> setOfInts = {};
    var scopedCode = Random().nextInt(9999);
    setOfInts.add(scopedCode);

    for (var num in setOfInts) {
      if (num < 999) return;
      if (num.toString().length == 4) {
        if (mounted) {
          WidgetsBinding.instance.addPostFrameCallback((_) {
            setState(() {
              _code = num.toString();
              developer.log('Code: $num');
            });
          });
        }
      } else {
        if (mounted) {
          WidgetsBinding.instance.addPostFrameCallback((_) {
            setState(() {
              _code = num.toString();
              developer.log('Code: not a 4 digit code');
            });
          });
        }
      }
    }
  }

  void _generateCode2() { // version 2
    Set<int> setOfInts = {};
    var scopedCode = 1000 + Random().nextInt(9000);
    setOfInts.add(scopedCode);

    for (var num in setOfInts) {
      // if (num < 999) return;
      if (num.toString().length == 4) {
        if (mounted) {
          WidgetsBinding.instance.addPostFrameCallback((_) {
            setState(() {
              _code = num.toString();
              developer.log('Code: $num');
            });
          });
        }
      } else {
        if (mounted) {
          WidgetsBinding.instance.addPostFrameCallback((_) {
            setState(() {
              _code = num.toString();
              developer.log('Code: not a 4 digit code');
            });
          });
        }
      }
    }
  }

  @override
  Widget build(BuildContext context) {
    return Builder(builder: (context) {
      _generateCode2();
      return Scaffold(
        appBar: AppBar(
          title: Text('Device ID'),
        ),
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Text('Code: ${_code ?? 'Nothing to show'}'),
            ],
          ),
        ),
      );
    });
  }
}

Here's the output it provides using version 2 method:

gif

Note: I can't embed a GIF file yet, so it is converted into a link instead (by default).

With the solution provided by Ken White (method version 1) and Frank van Puffelen (method version 2) produces the same outcomes.

So a big thanks to them!

I hope my answer would help the other future readers as well!

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

79366573

Date: 2025-01-18 04:46:30
Score: 1.5
Natty:
Report link

I made a package to take spectral derivatives using either the Chebyshev basis or the Fourier basis: spectral-derivatives. The code is open sourced with sphinx docs here, and I've put together a deep explanation of the math, so you can really know what's going on and why everything works.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Pavel Komarov

79366570

Date: 2025-01-18 04:44:28
Score: 6.5 🚩
Natty:
Report link

I also encountered a problem very similar to yours, but my program does not use TerminateThread, and my stack information is

ntdll!RtlpWakeByAddress+0x7b
ntdll!RtlpUnWaitCriticalSection+0x2d
ntdll!RtlLeaveCriticalSection+0x60
ntdll!LdrpReleaseLoaderLock+0x15
ntdll!LdrpDecrementModuleLoadCountEx+0x61
ntdll!LdrUnloadDll+0x85
KERNELBASE!FreeLibrary+0x16
combase!FreeLibraryWithLogging+0x1f
combase!CClassCache::CDllPathEntry::CFinishObject::Finish+0x33
combase!CClassCache::CFinishComposite::Finish+0x51
combase!CClassCache::FreeUnused+0x9f
combase!CCFreeUnused+0x20
combase!CoFreeUnusedLibrariesEx+0x37
combase!CoFreeUnusedLibraries+0x9
mfc80u!AfxOleTermOrFreeLib+0x44
mfc80u!AfxUnlockTempMaps+0x4b
mfc80u!CWinThread::OnIdle+0x116
mfc80u!CWinApp::OnIdle+0x56
mfc80u!CWinThread::Run+0x3f
mfc80u!AfxWinMain+0x69
zenou!__tmainCRTStartup+0x150
kernel32!BaseThreadInitThunk+0x24
ntdll!__RtlUserThreadStart+0x2f
ntdll!_RtlUserThreadStart+0x1b

Did you finally solve it? Feeling the reply

Reasons:
  • RegEx Blacklisted phrase (3): Did you finally solve it
  • RegEx Blacklisted phrase (1.5): solve it?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: liyinkuang

79366562

Date: 2025-01-18 04:33:26
Score: 0.5
Natty:
Report link

The numpy.zeros shape parameter has type int or tuple of ints so it shoud be

image = np.zeros((480, 640, 3), dtype=np.uint8)

Since you have CUDA installed you could do the same with

gpu_image = cv2.cuda_GpuMat(480, 640, cv2.CV_8UC3, (0, 0, 0))
image = gpu_image.download()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Lewis

79366561

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

Did you try to encode your url? For example using cyberchef: https://cyberchef.org/#recipe=URL_Encode(true)

You can try to test with Encode all special chars flag enabled and disabled.

Reasons:
  • Whitelisted phrase (-2): Did you try
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: UnusedAccount

79366553

Date: 2025-01-18 04:17:24
Score: 0.5
Natty:
Report link

I was moving resources from a DigitalOcean cluster to a Microk8s cluster, I decided to check the logs of the velero node agent and I found this error; An error occurred: unexpected directory structure for host-pods volume, ensure that the host-pods volume corresponds to the pods subdirectory of the kubelet root directory then I remembered I added this line of code after my installation;

/snap/bin/microk8s kubectl --kubeconfig="$kube_config_path" -n velero patch daemonset.apps/node-agent --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/volumes/0/hostPath/path", "value":"/var/snap/microk8s/common/var/lib/kubelet/pods"}]'

This was interfering with the original hostpath value var/lib/kubelet/pods needed for normal Kubernetes cluster. I added a condition as to when the patch is to be done and it started working properly.

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

79366551

Date: 2025-01-18 04:14:23
Score: 1
Natty:
Report link

You can just ask whether it's in there:

["Hello", ["Hi"]] in mylist

Attempt This Online!

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

79366543

Date: 2025-01-18 04:07:22
Score: 2
Natty:
Report link

I found what is the different between header and result and try to fix it, I don't know this is a correct way to verify the result or not but it seems working

parseSignedRequest(signedRequest: string): {
  user_id: string;
  algorithm: 'HMAC-SHA256';
  issued_at: number;
} {
  const [encodedSig, payload] = signedRequest.split('.', 2);

  // decode the data
  const data = JSON.parse(this.base64UrlDecode(payload));

  const secret = "app-secret";

  // confirm the signature
  const expectedSig = crypto
    .createHmac('sha256', secret)
    .update(payload)
    .digest('base64')
    .replace('=', '')
    .replace(/\+/g, '-')
    .replace(/\//g, '_');

  if (expectedSig !== encodedSig) {
    throw new BadRequestException('Bad Signed JSON signature!');
  }

  return data;
}

private base64UrlDecode(input: string): string {
  const base64 = input.replace(/-/g, '+').replace(/_/g, '/');

  return Buffer.from(base64, 'base64').toString('utf-8');
}

I will be happy to get any suggestions

Reasons:
  • RegEx Blacklisted phrase (2): any suggestions
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mortie

79366537

Date: 2025-01-18 03:59:20
Score: 1
Natty:
Report link
conda install pygraphviz

works for me.

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (2):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: chongkai Lu

79366535

Date: 2025-01-18 03:58:20
Score: 0.5
Natty:
Report link

Use a text Editor

If you just need to view the contents of the .csv file, you can use a text editor app.

Open the text editor app and navigate to the .csv file on your SD card to open it.

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

79366534

Date: 2025-01-18 03:57:19
Score: 4
Natty:
Report link

so actualy problem was in proc_addr() function, id dosen`t work in this way

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

79366529

Date: 2025-01-18 03:55:19
Score: 2
Natty:
Report link

As others mentioned, it will be tough to understand the problem without heap dump. You can verify below and if any of them is true that may be one of the causes to the issue.

  1. Is there any objects being initialised during application startup. If yes check the size of the objects being loaded and avoid loding high payload into memory.
  2. Are you loading any objects in memory and adding objects to the same objects which kept in memory.
  3. There is possibility that any third party library could have stored high payload in memory. If that's the case then you might not be using it correctly.

However, I would still recommend to capture the heap dump and check the area which is consuming high memory and handle.

If it is feasible to connect to visualvm connect to it and there you can analyse or capture heap dump and analyse it using Eclipse-MAT app.

May be this link helps in capturing heap dump: How to take heap dump?

Hope this helps to understand the problem.

Reasons:
  • Blacklisted phrase (1): Is there any
  • Blacklisted phrase (1): this link
  • Whitelisted phrase (-1): Hope this helps
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: sreedhar honnala

79366523

Date: 2025-01-18 03:47:17
Score: 4
Natty: 4
Report link

The dead links at aa-asterisk.org can be found again at web.archive.org

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

79366520

Date: 2025-01-18 03:43:16
Score: 5
Natty: 4.5
Report link

Youre changing system variable but in lesson you should do it with environment variable I think. Sorry for my english its not my native language by the way. I have same problem but I can`t change path environment variables, but can in system.

Reasons:
  • Blacklisted phrase (1): I have same problem
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have same problem
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Abdulloh

79366519

Date: 2025-01-18 03:43:16
Score: 2
Natty:
Report link

The name "gmon" likely refers to the GNU Monitoring tool.

For example, a page at the U. South Carolina site describing its use is titled:

GPROF Monitoring Program Performance

And says it will:

... demonstrate the use of the GPROF performance monitoring tool.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Daniel R. Collins

79366509

Date: 2025-01-18 03:22:11
Score: 10 🚩
Natty: 4.5
Report link

could you solve it?. getting the same error

Reasons:
  • Blacklisted phrase (2): could you solve
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): getting the same error
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: sRumu

79366507

Date: 2025-01-18 03:12:10
Score: 0.5
Natty:
Report link

In the latest version of scipy, shape is changed from a function to an attribute of csr_matrix.

https://docs.scipy.org/doc/scipy-1.15.0/reference/generated/scipy.sparse.csr_matrix.shape.html

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

79366504

Date: 2025-01-18 03:06:08
Score: 5.5
Natty:
Report link

Pls describe your error properly. Your error was not properly stated here. You only showed what you see when you describe the backup and not seeing any error in the description.

Reasons:
  • RegEx Blacklisted phrase (2.5): Pls describe your
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Akuracy

79366499

Date: 2025-01-18 03:01:07
Score: 1
Natty:
Report link

If you are using Symfony and EasyAdmin within the FileUploadType, you have to add the file upload javascript from easyadmin manually.

TextField::new('upload')
   ->setFormType(FileUploadType::class)
   ->addJsFiles(Asset::fromEasyAdminAssetPackage('field-file-upload.js'))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: daHormez

79366493

Date: 2025-01-18 02:50:05
Score: 3.5
Natty:
Report link

Maybe you can try https://www.vpadmin.org/, it provides the amdin interface to manage the SSG site

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

79366482

Date: 2025-01-18 02:34:03
Score: 1
Natty:
Report link

Product uptime: This metric measures the time that your software is working over a given period of time.

Bug response time: This is how quickly your team takes to identify a bug, find a patch solution, and push the fix into production. Issues can range from quick, five-minute fixes to full-fledged projects.

Daily active users: This is the number of users that use your software daily. This can help you understand how many of your customers actually use and value your software. If there is a large gap between the number of customers and the number of daily active users, then your customers may not be finding value in your product.

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

79366480

Date: 2025-01-18 02:32:03
Score: 2
Natty:
Report link

my friend I'm pretty sure signInWithRedirect is gonna stop working soon (or already stopped), but I'm not 100% sure. I think I saw that in google auth interface.

If that come to be true, what about you use popUp?

const provider = new GoogleAuthProvider();
 try {
   
    const result = await signInWithPopup(auth, provider);
    const user = result.user;

    if(!user.uid){
      console.log("Erro");
      setExibirErro("Erro login google.");
      return
    }

    const { displayName, email, uid, emailVerified, photoURL } = user; 
    const providerId = result.providerId;
    const { firstName, lastName } = splitName(displayName || '');

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

79366478

Date: 2025-01-18 02:30:02
Score: 2
Natty:
Report link
yabai -m query --spaces --space | jq '.index'
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: gndps

79366474

Date: 2025-01-18 02:25:01
Score: 3.5
Natty:
Report link

If we want two add two matrices we need only two square matrices so,we can give columns and rows of A or B because both are with same rows and columns

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

79366466

Date: 2025-01-18 02:14:58
Score: 4.5
Natty:
Report link

I was trying to do the same as you. I found this tutorial How to Delete All WooCommerce Orders

It basically says that the hook 'manage_posts_extra_tablenav' is 'woocommerce_order_list_table_extra_tablenav' for HPOS orders.

If you can figure out how to show the added custom button on mobile (it hides) let me know!

Reasons:
  • Blacklisted phrase (1): this tutorial
  • Blacklisted phrase (1): trying to do the same
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Martin G

79366451

Date: 2025-01-18 01:57:54
Score: 2
Natty:
Report link

my issue was resolve by fixing a typing mistake in the Redis container variable where I had a ";" instead of the ":"

The variable is referred to in the Space Invader immich tutorial pt2.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Dominic A Van Nes

79366439

Date: 2025-01-18 01:43:52
Score: 1
Natty:
Report link

Update is called once per frame so you shouldn't be setting the player to alive there.

To know for sure that a player is dead, you'll need to access your game manager through your player, and upon death, call a public game manager method that will set the player alive to false. This is a more efficient way than to have the game manager check in Update() whether the player is alive.

You can also just keep score on the player object itself, and just allow the game manager / other objects to get it and update it. Then when the game is over, and you destroy the player object, the score will reset to 0 when you create a new game.

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

79366438

Date: 2025-01-18 01:43:52
Score: 1
Natty:
Report link

So, installing Team Explorer is the correct answer as there are dependencies required by the add-in that are not normally available with a base install of Windows. Team Explorer in lieu of the full flagship Visual Studio, which most stakeholders do not need. Team Explorer requires only "Stakeholder" permissions normally to access at a Azure DevOps limited, basic access level... but a CAL really depends on how you use the queries and underlying data. Normally this is not an issue because such users already have the sufficient access granted via Azure DevOps anyways.

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

79366432

Date: 2025-01-18 01:37:51
Score: 3.5
Natty:
Report link

just add .html to the files example instead http://docloo.s3-website.eu-west-2.amazonaws.com/docs/getting-started/introduction which gives error because in s3 you don't have file called introduction you have introduction.html so http://docloo.s3-website.eu-west-2.amazonaws.com/docs/getting-started/introduction.html perfectly works but at the end of the end you have to implement way you add .html automatically you don't expect your users to add that

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

79366427

Date: 2025-01-18 01:26:49
Score: 1.5
Natty:
Report link
New-AzResourceGroupDeployment -Name ExampleDeployment -ResourceGroupName ExampleResourceGroup -TemplateFile C:\MyTemplates\storage.bicep -TemplateParameterFile C:\MyTemplates\storage.bicepparam -storageAccountType Standard_LRS

Link

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

79366426

Date: 2025-01-18 01:25:49
Score: 3.5
Natty:
Report link

For those having issues... This solves some situations. Don't downvote just because it doesn't solve this specific OP--there are dozens of side cases.

So... many users are seeing an integration issue because the Azure DevOps Office Integration in of itself is not enough. Most folks using it have Visual Studio. However, those that don't may pull the Visual Studio Team Explorer 2022 for instance. Depending upon how you use it, you may need a CAL, but normally for "Stakeholder" access (users who require limited, basic access) may not need a CAL.

This installation will provide the other "bits" need to enable the Office addin to work for Excel and Project. This worked when all of the other steps seen throughout stackoverflow didn't.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • RegEx Blacklisted phrase (2): downvote
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: kirkpabk

79366419

Date: 2025-01-18 01:11:47
Score: 1.5
Natty:
Report link

Based on this thread:

NewFilePath = PathNoExtension & "pdf"
If Dir(NewFilePath) <> "" Then
    Dim res As Long
    res = GetAttr(NewFilePath)
    If res = 33 Then
        MsgBox "File is read only"
        Exit Sub
    End If
End If
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: JeromeP

79366417

Date: 2025-01-18 01:07:45
Score: 4
Natty:
Report link

Not clear, share screenshot please.

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

79366405

Date: 2025-01-18 00:49:42
Score: 1
Natty:
Report link

Prefabs can have scripts same as regular objects. You can add a new script to the prefab by dragging and dropping it on the prefab in the unity editor, or selecting the prefab and using "add component" in the inspector window then adding a "new script".

to move the instantiated objects in a random direction, just add the translate into the Update() method of this new script. In a collider on trigger event (or similar) check if self is normal and the other is a virus, and if so, then instantiate a new virus, set its transform to that of the current object, save any other properties you want to save into the new virus, then destroy this.gameobject.

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

79366404

Date: 2025-01-18 00:48:41
Score: 5
Natty: 4
Report link

still happening. as of today, i even subscribed to Google Colab Pro. No luck

Reasons:
  • Blacklisted phrase (1): No luck
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user29250005

79366397

Date: 2025-01-18 00:45:40
Score: 2.5
Natty:
Report link

No way to do that on FEN.
FEN is intended to represent a position plus validation status [turn, castling options, en passe option]

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

79366394

Date: 2025-01-18 00:41:39
Score: 2
Natty:
Report link

This was happening to me frequently while testing a free/$300/trial, no matter which model I used, sometimes after only 1 or 2 small queries. I modified my (python) code to just retry after waiting 1 second, and now while I can see in my logs that it sometimes does 1-3 retries all the queries succeed.

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

79366393

Date: 2025-01-18 00:37:39
Score: 1.5
Natty:
Report link

if anyone has this problem, just add the line id "dev.flutter.flutter-gradle-plugin" to plugin section in android/app/build.gradle

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

79366384

Date: 2025-01-18 00:28:37
Score: 2.5
Natty:
Report link

After you install the prompt package go to package.json and add "type": "module" right before the keywords, like this:

"type": "module",

"keywords": [],

"author": "",

"license": "ISC",

"description": "",

"dependencies": { "prompt-sync": "^4.2.0"

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

79366382

Date: 2025-01-18 00:26:36
Score: 0.5
Natty:
Report link

If you are downloading the file via a web browser, it is possible that the browser is auto-decompressing the file because browsers know how to handle web pages that are gzip-compressed.

To fully test what is happening, you should download the file via the AWS CLI and then check the file contents.

You could also compare the size of the file shown in S3 vs the size on your local disk.

See: Is GZIP Automatically Decompressed by Browser?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: John Rotenstein

79366381

Date: 2025-01-18 00:24:36
Score: 1
Natty:
Report link

I think you're using a pretty old version of hibernate validator.

Do you need to use org.hibernate.validator.constraints.Email (this is deprecated in later releases for jakarta.validation.constraints.Email)

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

79366379

Date: 2025-01-18 00:17:35
Score: 1
Natty:
Report link

Going against training I received, Whether "View Native Query" is enabled is not a reliable indicator for query mode.

In my case, I have verified by means of a trace on the database server that the method described in the "Another way" section of my question actually does leave the report (table?) in Direct Query mode. Oddly, "View Native Query" was not enabled, but there was no big, yellow warning about being forced into Import mode like on my other attempts.

Hopefully the warning message IS a good indicator. I may investigate if it also lies.

Unfortunately, the sum total of this question and follow-up means that for anything interesting I'll need to write SQL rather than using Power Query for transformations if I want to use Direct Query.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: dougp

79366375

Date: 2025-01-18 00:13:33
Score: 2
Natty:
Report link

@rehaqds made the comment that answered my question:

sharey=True works for me

Occam's razor, I was so wrapped up in my attempts I confused myself.

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @rehaqds
  • Self-answer (0.5):
Posted by: Python_Learner

79366372

Date: 2025-01-18 00:10:33
Score: 0.5
Natty:
Report link

I wanted to post my current working solution in case it helps anyone else, or so someone can tear it apart if I'm missing something. I was able to resolve with Spring MVC by defining an external resource handler and redirecting users to this:

@Configuration
public class CustomWebMvcConfigurer implements WebMvcConfigurer {
    @Value("${external.resource.location:file:///external/foo/}")
    private String externalLocation;

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/foo/**")
                .addResourceLocations(externalResourcesLocation);
    }
}

After adding this configuration and placing my external file content in /external/foo/[index.html|js/|css], I'm now able to access my externalized content when navigating to localhost:<port>/foo/index.html without requiring it to be packaged or deployed within my .war file.

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

79366370

Date: 2025-01-18 00:07:32
Score: 0.5
Natty:
Report link

This looks like a Pylance bug. Your code is fine, and mypy accepts it without complaint.

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

79366368

Date: 2025-01-18 00:06:32
Score: 2
Natty:
Report link

In my case I needed a combination of some answers here.

First, having config.assets.debug = true in the config/environments/development.rb file.

Then, I needed plugin :tailwindcss if ENV.fetch("RAILS_ENV", "development") == "development" on the puma.rb file. This way it runs the application and runs Tailwind running on "watch" mode.

I have ruby 3.3.4, rails 7.1.5 and node 20.18.0 versions.

See https://stackoverflow.com/a/78393579/12955733 and https://stackoverflow.com/a/78250287/12955733.

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

79366352

Date: 2025-01-17 23:53:30
Score: 1
Natty:
Report link

Laravel Guards: A Mechanism for Multi-Level Access Control

Guards in Laravel provide a powerful and flexible mechanism to implement multi-level access control within your application. They allow you to define how users are authenticated, handle different user roles, and ensure secure access to specific parts of your application based on the user type or context.

This is particularly useful in scenarios where your application has multiple levels of users, such as administrators, editors, and regular users, or in cases of multi-tenancy, where each tenant has its own authentication logic.

How Guards Work in Laravel Guards define how authentication is managed for a given request. By default, Laravel provides two main guards:

Web Guard: Uses session and cookies for stateful authentication, ideal for web applications. API Guard: Utilizes tokens for stateless authentication, often used in API-based applications.

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

79366349

Date: 2025-01-17 23:49:29
Score: 1.5
Natty:
Report link

You will need to let shortcuts run scripts and allow assistive access to control your computer. but heres the code

tell application "System Events"
keystroke "Your text here"
end tell

you can also add a second line of keystroke.

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

79366346

Date: 2025-01-17 23:48:28
Score: 1.5
Natty:
Report link

To follow up about this, as it turns out my issue was that I had an old broken version of MacPorts installed on my machine. Removing MacPorts fixed the problem for me.

See this thread for more info: https://github.com/pyenv/pyenv/issues/3158

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

79366339

Date: 2025-01-17 23:43:28
Score: 2
Natty:
Report link

Selecting debug on the app.run allows for auto reloading. So the whole codebase runs again, and it didnt close the cam, this is supposed to be for code edits but I found it just did it all the time.

In theory moving the init to the main bit should stop it, it doesnt.

I have an init function that checks if the picam var is nothing, if so it sets it, otherwise does nothing, as its been set already. This works.

As does setting the debug to false.

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: binaryjam

79366329

Date: 2025-01-17 23:33:26
Score: 3
Natty:
Report link

What I would do personally (if you are on windows) is use Visual Studio instead of GCC with a make file since Visual Studio lets you compile C and C++ files together or port all C++ code to C. But the most reliable way you could potentially get this to work is to use a regular C++ class.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What I
  • Low reputation (1):
Posted by: while 1

79366323

Date: 2025-01-17 23:28:24
Score: 1
Natty:
Report link

For me, it was Nginx. The problem was Nginx trying to connect to port 80 while the port was occupied by another process, so I freed up the port 80:

netsh http add iplisten ipaddress=::

Resources: Nginx- error: bind() to 0.0.0.0:80 failed. permission denied

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

79366321

Date: 2025-01-17 23:27:24
Score: 0.5
Natty:
Report link

Its probably better to convert the image into an sf symbol. Although i think image sizes inside a tabItem is limited.

If you have the svg of your image, you can use this to convert into a valid SF symbol: https://github.com/swhitty/SwiftDraw

Then import in your assets and call as named

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

79366318

Date: 2025-01-17 23:26:23
Score: 2.5
Natty:
Report link

I realized I was using the wrong endpoint to obtain a token for the Graph API. The endpoint I was using is intended for acquiring tokens for Delegated or Custom APIs that require a token to respond.

Below is the correct endpoint to obtain a token for the Graph API:
https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token

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

79366316

Date: 2025-01-17 23:25:23
Score: 0.5
Natty:
Report link

You can use https://appreviews.dev/ The most I could extract was ~20k reviews for X app (ex Twitter) It has a limit though, to 500 reviews per country

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

79366305

Date: 2025-01-17 23:15:21
Score: 1
Natty:
Report link

Another answer, since you're using Sail, is to run sail artisan storage:link instead of php artisan storage:link. That worked for me, 404 stopped and the files showed fine.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: santiago

79366303

Date: 2025-01-17 23:15:21
Score: 3.5
Natty:
Report link

This behaviour seems to occur because of two different integer stringification methods within the interpreter. The slowdown might be fixed in a future perl release: https://github.com/Perl/perl5/pull/22927

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