79320951

Date: 2024-12-31 23:56:07
Score: 0.5
Natty:
Report link

Your problem may be resultant of: number of threads vs CPU Limits vs vCPU (Allocatable CPUs on K8s node).

K8s CPU Limits are enforced by Linux Kernel cgroups CFS Scheduler, CFS CPU Bandwidth Control or CFS Quota which.

The time consumed on CPUs by a cgroup (i.e. a Container in K8s) is accounted within each CFS Quota period = wall-clock PERIOD of 100 ms (milliseconds). K8s Limit (i.e. CFS Quota) is also enforced within one CFS Quota period.

So, if Your container has limit of 1 CPU it may consumes 100 millis of CPU time during 100 ms CFS Period, respectively if your CPU Limit is "4000m" (4000 millicores = 4 vCPUs) it may consumes no more than 400 milliseconds of CPU time during 100 millis of wall-clock time (which is CFS Quota Period, or roughly said: 4 CPUs during 1 second), e.g. 4 threads running in parallel on different CPUs, but what if there are more than 4 threads and more than 4 available CPUs? See the picture:

CPU Usage of a Containerized Multi-task App

During 20 millis of wall clock time 20 threads each running in parallel (if there are >=20 vCPUs on node) will consume altogether (20 parallel threads * 20 CPU millies per thread) CPU Quota of 400 millis spent on CPU(s) (which came from K8s CPU limit), so for the rest of 80 millis Workload (Container processes and threads) will be throttled - no CPU Time and this may explains high latency and unresponsiveness.

PIC (adjusted) is taken from this nice link: https://medium.com/omio-engineering/cpu-limits-and-aggressive-throttling-in-kubernetes-c5b20bd8a718

More details on CPU Limits, Multi-tasking (multiple processes or threads within a container) - also read here: https://aws.amazon.com/blogs/containers/using-prometheus-to-avoid-disasters-with-kubernetes-cpu-limits/

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
Posted by: ALZ

79320950

Date: 2024-12-31 23:55:07
Score: 1.5
Natty:
Report link

span {
  outline: 1px solid red;  
  display: inline-block;
  min-width: 70px;
}
<span>Apple</span><span>Orange</span>
<br/>
<br/>
<span>Lemon</span> <span>Pear</span>

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Gülseren Karagöz

79320945

Date: 2024-12-31 23:52:06
Score: 3
Natty:
Report link

Has this been resolved? This is happening to me in production now on code that worked for quite a while. there must be a data condition/threshhold that causes this behavior.

Reasons:
  • RegEx Blacklisted phrase (1.5): resolved?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: edhnb

79320941

Date: 2024-12-31 23:43:05
Score: 1
Natty:
Report link

I was using RawShaderMaterial instead of ShaderMaterial. That was the problem. I removed the duplicate variables declared in the shader and it worked.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: steveblue

79320926

Date: 2024-12-31 23:23:02
Score: 3.5
Natty:
Report link

When we do not like superficial conversations, this does not mean that we do not like to have conversations, but rather, as Woody Allen said, I do not like quick, short conversations. Rather, I prefer to conduct...

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When we
  • Low reputation (1):
Posted by: Mohamad

79320916

Date: 2024-12-31 23:15:00
Score: 2.5
Natty:
Report link

I had a similar situation in which I kept getting the same error as you. I tried all of the same solutions. The only thing that worked was adding launchOptions: { args: ["--ignore-certificate-errors"] } to the individual browser objects. The suggestions in the Playwright docs didn't seem to help.

Full example with Chromium:

// playwright.config.ts

/* Configure projects for major browsers */
  projects: [
    {
      name: "chromium",
      use: {
        ...devices["Desktop Chrome"],
        launchOptions: {
          args: ["--ignore-certificate-errors"],
        },
      },
    },
  ],
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): getting the same error
  • Low reputation (1):
Posted by: Dave Andrea

79320914

Date: 2024-12-31 23:06:59
Score: 1.5
Natty:
Report link

Intercept the general pattern for the avatars, find out which specific avatar from the URL then apply the fixture dynamically.

Since you control the mocks in /images you don't need base64.

cy.intercept('**/avatars/default/*', (req) => {
  const img = req.url.split('/').at(-1)
  req.reply({
    fixture: `../../images/${img}`
  })
})

enter image description here

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

79320912

Date: 2024-12-31 23:02:58
Score: 9 🚩
Natty:
Report link

has the problem been solved because I'm having the same problem and I can't find a solution yet?

E:\flutter_application_3\windows\flutter\ephemeral\cpp_client_wrapper\include\flutter\encodable_value.h(199,60): error C2665: 'std::variantstd::monostate,bool,int32_t,int64_t,double,std::string,std::vector<uint8_t,std::allocator<uint8_t>,std::vector<int32_t,std::allocator>,std::vector<int64_t,std::allocator<int64_t>>,std::vector<double,std::allocator>,flutter::EncodableList,flutter::EncodableMap,flutter::CustomEncodableValue,std::vector<float,std::allocator>>::variant': no overloaded function could convert all the argument types [E:\flutter_application_3\build\windows\x64\plugins\firebase_auth\firebase_auth_plugin.vcxproj] Error: Build process failed.

Reasons:
  • Blacklisted phrase (1): I'm having the same problem
  • RegEx Blacklisted phrase (2): I can't find a solution
  • RegEx Blacklisted phrase (2): can't find a solution
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same problem
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Ali Adel

79320909

Date: 2024-12-31 22:56:56
Score: 1.5
Natty:
Report link

If you're trying to use stable diffusion amd then probably missing https://download.amd.com/developer/eula/rocm-hub/AMD-Software-PRO-Edition-24.Q3-Win10-Win11-For-HIP.exe That was my case, after installing HIP; I was able to pass the error.

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

79320903

Date: 2024-12-31 22:46:54
Score: 1.5
Natty:
Report link

SWC does not perform any type checking itself (as opposed to the default TypeScript compiler), so to turn it on, you need to use the --type-check flag:

https://docs.nestjs.com/recipes/swc#type-checking

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

79320901

Date: 2024-12-31 22:45:53
Score: 5
Natty: 5
Report link

Starting with Tcl 8.6, coroutine::auto should have the expected effect, does it?

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

79320899

Date: 2024-12-31 22:45:52
Score: 12.5
Natty: 7
Report link

I cannot define the variable _parent and write a function get_table_widget(). Can someone help me? Thanks in advance.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (3): Thanks in advance
  • RegEx Blacklisted phrase (3): Can someone help me
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: ender

79320895

Date: 2024-12-31 22:36:51
Score: 1.5
Natty:
Report link

I'm surprised by the proposed complex solutions here! It's simple as follows:

enter image description here

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

79320890

Date: 2024-12-31 22:34:50
Score: 2
Natty:
Report link

When you find something on a webpage with Playwright, you can check what type of HTML element it is (like a , , or ).

To do this, you ask Playwright to "tell" you the element’s type, and it will respond with the name of the element (like "DIV", "SPAN", etc.).

So, you can figure out if it's a box, text, or button based on that response

Reasons:
  • No code block (0.5):
  • Starts with a question (0.5): When you find some
  • Low reputation (1):
Posted by: Paulo Chagwasi

79320885

Date: 2024-12-31 22:32:50
Score: 1
Natty:
Report link

What you're looking for is a break statement in your loop to stop the rest of the execution:

if guess in guess_list:
    print("You already guessed this letter")
    break

A Great resource which explains this in great detail can be found here: https://www.programiz.com/python-programming/break-continue

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What you
  • Low reputation (0.5):
Posted by: Kwright02

79320877

Date: 2024-12-31 22:14:47
Score: 2.5
Natty:
Report link

Please try this https://docs.openshift.com/container-platform/4.13/registry/securing-exposing-registry.html

I tested it and i have no more messahe authentication required when executing podman push with tlsverify=false

Reasons:
  • Whitelisted phrase (-1): try this
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: H.Karboul

79320872

Date: 2024-12-31 22:03:45
Score: 1
Natty:
Report link

The issue is that in your new session the namespace of package bit64 (where class "integer64" is defined) is not loaded, and therefore you have no access to S3 methods for class "integer64". To obtain access, you can load the namespace directly:

loadNamespace("bit64")

or you can cause the namespace to be loaded by calling any of its methods explicitly, e.g.

bit64::as.integer64(data)

(But loading or attaching package data.table will not be sufficient.)

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

79320871

Date: 2024-12-31 22:03:44
Score: 5
Natty:
Report link

I'm having the exact same issue. This is not an answer to your question, but I think the problem comes from the update to Expo 52 with the new architecture, which, as far as I understand it, is unavoidable if you wanna use Expo Go for testing. They're working on it, but there isn't a proper solution yet. You can browse through this issue on the react-native-maps github for more information:

https://github.com/react-native-maps/react-native-maps/issues/5206

If you've found something that works in the meantime, I'd love to hear it

Reasons:
  • Blacklisted phrase (1): not an answer
  • No code block (0.5):
  • Me too answer (2.5): I'm having the exact same issue
  • Low reputation (1):
Posted by: torcode

79320866

Date: 2024-12-31 22:00:44
Score: 2
Natty:
Report link

Same erorr Try to do it with vite

npm create vite@latest
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Víctor R

79320864

Date: 2024-12-31 21:59:43
Score: 2
Natty:
Report link

Here is the process to do so

  1. Open the server public folder
  2. Create a .well-known folder inside that
  3. Host the file there

in case if the url is redirecting to authenticate try to move the folder in public

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

79320857

Date: 2024-12-31 21:51:41
Score: 1
Natty:
Report link

So, basically:

Remove the height and width properties (Deneb will patch these for you if absent).
Remove the resize: true configuration (Deneb will recalculate the view on resize anyway).

solution from here

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

79320842

Date: 2024-12-31 21:36:38
Score: 1
Natty:
Report link

I think you should use SetAlternativeName function like this:

Field1.SetAlternativeName("名字");

In your code:

...
OSGeo.OGR.FieldDefn Field1 = new OSGeo.OGR.FieldDefn("EnglishName", OSGeo.OGR.FieldType.OFTString);
Field1.SetAlternativeName("YourChineseName");
Field1.SetWidth(16);
...
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mehdi Mollaei

79320804

Date: 2024-12-31 21:07:32
Score: 0.5
Natty:
Report link

A oneliner elevating the fact, that base 4 have twice the digits of base 16:

''.join([str(q) for char in '{:x}'.format(val) for q in [int(char, 16) >> 2, int(char, 16) & 3]])

The downside is that it adds a leading 0 if number of digit would be odd.

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

79320798

Date: 2024-12-31 21:04:31
Score: 2
Natty:
Report link

C:\Users\admin\Desktop\url-shortener>export FLASK_APP=pycoderoot/hello.py

Getting below Error : 'export' is not recognized as an internal or external command, operable program or batch file.

Python version 3.8

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

79320791

Date: 2024-12-31 20:54:30
Score: 2.5
Natty:
Report link

When implementing the login request on the frontend, ensure the credentials option is included in the Axios request to allow cookies or authentication tokens to be sent along with the request. For example:

const response = await axios.post('your-login-endpoint',{'your-body-data'},{withCredentials: true});

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Mustafa Khatri

79320788

Date: 2024-12-31 20:53:29
Score: 2.5
Natty:
Report link

I have had this issue many times, are you using v12+ VS 2022? For me I had to go to Tools > Options > Text Editor > C# > Advanced > Editor Help and check [] Enable all features in opened files from source generators.

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

79320780

Date: 2024-12-31 20:46:27
Score: 2
Natty:
Report link

The issues was building the package on a cloud drive.

The issue was resolved after moving the folder to a drive on my local machine.

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

79320773

Date: 2024-12-31 20:35:26
Score: 0.5
Natty:
Report link

There were a couple of problems with the system I'm working on. It's 20 years old and was initially developed under .NET 2.0 (I believe), it's now running under .NET 4.8. The code itself wasn't off by much, thanks to @barmar, I got the proper checkbox in the click function. The code now reads:

$(document).ready(function() {
  $('#<%= CheckBoxList_Items.ClientID %> :checked').click(function() {
       if ($(this).is(":checked")) {
           alert("ID # " +  $(this).val() + " was just checked.");
       } else {
           alert("ID # " +  $(this).val() + " was just unchecked.");
       }
  });
});

Note the :checked portion of the function declaration.

The $(this).val() portion of the code was returning on because the data portion of the checkboxlist control wasn't being rendered because in the web.config file there was this setting: <pages controlRenderingCompatibilityVersion="3.5">. I removed the controlRenderingCompatibilityVersion="3.5 portion of the tag and the checkboxlist data is now being rendered and $(this).val() returns the data value of the checkbox in the list that is clicked.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @barmar
  • Self-answer (0.5):
Posted by: Prescott Chartier

79320769

Date: 2024-12-31 20:34:25
Score: 3.5
Natty:
Report link

I think the answer is probably here: How can I write 'a:hover' in inline CSS? - you are trying to add inline styling for :hover which isn't supported using inline css.

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: farley13

79320765

Date: 2024-12-31 20:31:25
Score: 2
Natty:
Report link
sudo apt remove cmdtest
npm install --global yarn
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shyam Raghuwanshi

79320759

Date: 2024-12-31 20:28:24
Score: 1
Natty:
Report link

In my case, I didn't import a utility function, i.e.

import { myUtilityFn } from '.'

...

export const Default: Story = {
  args: {
    myUtilityFn,
  },
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: AshNaz87

79320758

Date: 2024-12-31 20:28:23
Score: 4
Natty:
Report link

How about this?

select MyColumn like '%[^a-dA-D]Cat[^a-dA-D]%' 
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): How
  • Low reputation (0.5):
Posted by: debo

79320757

Date: 2024-12-31 20:27:23
Score: 2
Natty:
Report link
.input-tab-class::placeholder { color: red; }

it works in most of browsers

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

79320756

Date: 2024-12-31 20:27:23
Score: 1
Natty:
Report link

java -XX:+UseG1GC -XX:+PrintCommandLineFlags -Xlog:gc:file=gc-%p.log -version

The above settings will create a gc log file with minimal gc output. -XX:+PrintCommandLineFlags will output the command line flags to the stderr.

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

79320751

Date: 2024-12-31 20:25:22
Score: 4.5
Natty:
Report link

This works? I don't understand.

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

79320748

Date: 2024-12-31 20:24:21
Score: 1.5
Natty:
Report link

This was an issue with the Tailwind CSS included in the example. The following changes fixed the issue:

Old:

with ui.column().classes('absolute-center items-center'):

New:

with ui.column().classes('mx-auto max-w-md items-center'):
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: JBlev9796

79320739

Date: 2024-12-31 20:12:19
Score: 4
Natty:
Report link

First step is here: https://ads.google.com/home/tools/manager-accounts/ just found it and it works.

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: Luc Laverdure

79320734

Date: 2024-12-31 20:11:19
Score: 1.5
Natty:
Report link

The accepted solution, of a script with a loop, works for me on a Ubuntu computer. To resolve the problem mjavu raised, which was needing a clean method to stop the script and associated task running, Ctrl-C in the terminal window works fine.

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ken Mercer

79320717

Date: 2024-12-31 19:59:16
Score: 1.5
Natty:
Report link

Use a custom text match function that only matches visible text.

function matchVisible(text) {
  return (content, element) => content.startsWith(text) && element.getAttribute('aria-hidden') !== 'true';
}

test('everything is fine', () => {
  render(<MyApp />);
  const error = screen.queryByText(matchVisible('flagrant error'));
  expect(error).toBeNull();
});

Reference: https://github.com/testing-library/dom-testing-library/issues/929#issuecomment-1571823720

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

79320716

Date: 2024-12-31 19:56:16
Score: 0.5
Natty:
Report link

I faced the same error on the simulator. I solved it by closing all applications related to Android Studio, Xcode, and simulators. Then, I restarted them, and it's working fine now.

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: karamat subhani

79320711

Date: 2024-12-31 19:54:15
Score: 5.5
Natty: 4.5
Report link

You wouldn’t use :MoveTo() on a humanoid, you would use it on the model itself. Example: Instead of:

humanoid:MoveTo(targetPosition)

You would do:

mob:MoveTo(targetPosition)

Another thing I am noticing is that it seems like you want to make it walk to the destination? If you wanted that, you wouldn’t use :MoveTo() at all. :MoveTo() sets the model’s position instantly. You might need to use pathfinding to achieve this.

I do have one question that might help me help you: Can you show a photo of the print outputs?

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (2.5): Can you show
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: jorb6

79320685

Date: 2024-12-31 19:36:11
Score: 2
Natty:
Report link

Could you try pushing already formed page instead of forming new one every time and check if this fixes the problem? Like to change it to:

public partial class Sidebar : FlyoutPage
{
private ApplicationSettings AppSettingsPage;
    public Sidebar()
    {
        InitializeComponent();
        Detail = new NavigationPage(new MainPage());
        AppSettingsPage = new ApplicationSettings();
    }

 private async void GoToApplicationSettingsPage(object sender, TappedEventArgs e)
 {
    
     await Detail.Navigation.PushAsync(AppSettingsPage);
     IsPresented = false;
 }

}

Or try to change the behaviour from PushAsync to PushModalAsync, like

await Shell.Current.PushModalAsync(new ApplicationSettings());
Reasons:
  • RegEx Blacklisted phrase (1.5): fixes the problem?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: aw3

79320679

Date: 2024-12-31 19:29:09
Score: 4
Natty: 4
Report link

We do not use the word "commit" on remote repo right? we commit changes to local repo/branch and do push to remote or do pull from remote. So on remote -- each astrek represents a change that was accepted from localrepo.

When we branch from trunk - which side the branch go? does it have any significance?

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

79320678

Date: 2024-12-31 19:29:09
Score: 2.5
Natty:
Report link

I ran into this recently at work and (short version), the answer was to download & use Reqnroll instead: https://marketplace.visualstudio.com/items?itemName=Reqnroll.ReqnrollForVisualStudio2022

According to their website (https://specflow.org/) SpecFlow won't be available after today, which I suspect was known well before this week, as for instance their GitHub issues got nuked some time ago, ex: https://github.com/SpecFlowOSS/SpecFlow/issues/2719#issuecomment-1934292742

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

79320656

Date: 2024-12-31 19:18:05
Score: 4
Natty:
Report link

what you do in composition is tight coupling and it is not easy to dynamically change or add behaviour. In dependency injection you have the flexibility to dynamically add new behaviours to the Warrior class or test it with dummy data class. so in your code if warrior will only have reputation then you can go with composition but if you want the flexibility to add more features to the warrior then DI will do it better.

Reasons:
  • RegEx Blacklisted phrase (1.5): reputation
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): what you
  • Low reputation (1):
Posted by: NagarajCruze

79320652

Date: 2024-12-31 19:17:04
Score: 0.5
Natty:
Report link

Looking at the sources of playwright-ct-core (v1.49.1), it seems like the component testing feature builds up on @playwright/test and is strongly tied to Playwright's test execution model. The core function mount is provided as a fixture only. So, executing Playwright component tests with another test runner (or none at all) does not seem feasible, currently.

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

79320644

Date: 2024-12-31 19:11:03
Score: 1
Natty:
Report link

I found really ugly solution. Here i posted an answer about doing the same, but with the default TextArea

So I create invisible responsive TextArea like in that answer. Its existence is only to obtain a desired height of the message. Then we save height, delete it from parent node and replace it with RichTextArea with calculated height.

    heightCalculation = new CompletableFuture<>();
    TextArea textArea = new TextArea();
    textArea.getStyleClass().add("message-text");
    textArea.setEditable(false);
    textArea.setWrapText(true);
    textArea.setVisible(false);
    messageContentContainer.getChildren().add(textArea);
    setupTextAreaDimensionsChangeEventListener(textArea);
    textArea.setText(message);
    heightCalculation.thenAccept(calculatedHeight -> {
        messageContentContainer.getChildren().remove(textArea);
        Document document = new Document(message);
        RichTextArea richTextArea = new RichTextArea();
        richTextArea.setEditable(false);
        richTextArea.setMinHeight(calculatedHeight);
        richTextArea.setPrefHeight(calculatedHeight);
        richTextArea.setMaxHeight(calculatedHeight);
        richTextArea.getActionFactory().open(document).execute(new ActionEvent());
        richTextArea.getActionFactory().save().execute(new ActionEvent());
        messageContentContainer.getChildren().add(richTextArea);
    });

Message bubble, area between grey horizontal separators is a RichTextArea

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

79320643

Date: 2024-12-31 19:11:03
Score: 0.5
Natty:
Report link

Kotlin extension to reset Spannable

fun TextView.clearSpannable() {
    this.text = this.text.toString()
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: SerjantArbuz

79320640

Date: 2024-12-31 19:10:03
Score: 1
Natty:
Report link

Doh.

The simple answer is to escape the slash in my kludge as follows:

s.replaceAll('\\u002e', '.');

If there is a way to do this as part of the import line (List<String> data = File(fullName).readAsLinesSync();) I would still be interested to hear about that.

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

79320636

Date: 2024-12-31 19:09:02
Score: 6.5 🚩
Natty: 5
Report link

is there anyway to delete images cache from cloudinary console ?

Reasons:
  • Blacklisted phrase (1): is there any
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): is there any
  • Low reputation (0.5):
Posted by: Abdul haseeb

79320632

Date: 2024-12-31 19:06:59
Score: 6 🚩
Natty:
Report link

With the new structure of the @for() {} there is a bug, that the data provided is the next item in the array, instead of the dragged item. Does anyone have solution for that?

Reasons:
  • RegEx Blacklisted phrase (3): Does anyone have
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: EranKT

79320631

Date: 2024-12-31 19:06:59
Score: 5.5
Natty:
Report link

print(y * 3)

I have similar issue and still get some errors. I don't know what is wrong in the script, although I put the same operation.:

Vector2D(other * self.x, other * self.y)

class Vector2D:
def __init__(self, x: float | int, y: float | int):
    self.x = x
    self.y = y
    pass

def __mul__(self, other: float | int) -> 'Vector2D':
    if not isinstance(other, Vector2D):
        raise ValueError("IncorrectType")
    return Vector2D(other*self.x, other*self.y)
    pass

When I try to test it by

def test_multiply(self):
    p1 = Vector2D(1, 2)

    mult = p1 * 5

    self.assertTrue(mult == Vector2D(5, 10))

    with self.assertRaises(ValueError):
        mult = p1 * 'Alice'

I have an error: 'line 91, in test_multiply mult = p1 * 5

File "2552856375.py", line 34, in mul raise ValueError("IncorrectType") ValueError: IncorrectType

Reasons:
  • Blacklisted phrase (1): know what is wrong
  • Blacklisted phrase (1): I have similar
  • RegEx Blacklisted phrase (1): I have an error
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have similar issue
  • Low reputation (1):
Posted by: Mark

79320629

Date: 2024-12-31 19:06:58
Score: 1
Natty:
Report link

OOMKilled/137 definitely means that your pod asked an Openshift for more memory and this level exceeded the configured memory limit.

We had similar situation in java app and the solution in our case was to change GC type to G1 and to reduce -Xmx limit for heap. Remember that pod memory limit has to be greater than -Xmx + metaspace limit + other memory, e.g. finally we had: -Xmx=500 MB plus 400 MB for non-heap other memory segments, so pod memory limit was 900 MB.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Dzmitry Paddubnik

79320625

Date: 2024-12-31 19:04:58
Score: 1
Natty:
Report link

Try forcing all dependencies to use the same version of sharp. To do this, add "resolutions" to the root package.json:

"resolutions": {
  "sharp": "^0.33.5"
}

then follow:

yarn install
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Anatoliy Vlasyuk

79320623

Date: 2024-12-31 19:03:57
Score: 9 🚩
Natty: 5.5
Report link

I'm having a similar problem where my client's site works perfectly on Windows/Android, but the News section is blank on Apple devices. I'm stumped, and don't own any Apple products which makes it nearly impossible for me to troubleshoot... thanks in advance! https://ayanjewelryco.com/news/

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): I'm having a similar problem
  • RegEx Blacklisted phrase (3): thanks in advance
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm having a similar problem
  • Low reputation (1):
Posted by: user22232951

79320620

Date: 2024-12-31 19:02:56
Score: 1.5
Natty:
Report link

try to remove flutter_native_splash extension or try to play by chaching its versions.

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

79320615

Date: 2024-12-31 18:59:56
Score: 2.5
Natty:
Report link

You could try using expo-router instead of react-navigation. Expo is meant to work well with expo-router

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

79320613

Date: 2024-12-31 18:58:55
Score: 3
Natty:
Report link

This is now working in Brave on NixOS 24.11

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

79320603

Date: 2024-12-31 18:50:53
Score: 5.5
Natty:
Report link

The solution here gives me error saying HostBuilder does not contain any definition for ConfigureFunctionsWorkerDefaults. These are the nuget packages I have installed.

enter image description here

Reasons:
  • Blacklisted phrase (2): gives me error
  • Blacklisted phrase (1): enter image description here
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Tiyas Chatterjee

79320592

Date: 2024-12-31 18:37:51
Score: 1.5
Natty:
Report link

I encountered the Prisma error "The 'path' argument must be of string. Received undefined". A complete reinstallation of packages resolved the issue: bashCopy# Remove existing packages npm uninstall @prisma/client prisma

Reinstall packages

npm install prisma --save-dev npm install @prisma/client

Generate Prisma client

npx prisma generate --schema=./prisma/schema.prisma # If schema is in custom location

OR

npx prisma generate # If you're in directory containing prisma/

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

79320583

Date: 2024-12-31 18:26:49
Score: 1
Natty:
Report link

let say edge (v,u) is the edge that the bellman ford algorithm faild in the n-th iteration - d(u) > d(v) + w(v,u). so we know that v,u is part of a negative cycle but the question is how do i detect the specific cycle?

In such a case, v, u may not be a part of a negative cycle. Instead, since a negative cycle exists, while relaxing edges in Bellman-Ford algorithm, we may visit u at a lower cost as the outgoing edges from a negative cycle may have led to u. In such a case, we have to track back from u until we know that we have stepped into such a cycle. What the code given in the answer points out, but fails to explain properly, is that by keeping a parents array and marking the parent of each node each time an edge is relaxed, we have guaranteed that the negative cycle can be visited by backtracking on the parents array until we find the same element. By keeping a visited array of booleans, we go back from u and keep marking all elements we backtrack using parents array as visited. When we visit the same node twice, we mark it as the end and start of our negative cycle and start inserting all the elements we visit while backtracking into our answer array, and upon coming back to the start/end of our negative cycle, we stop the loop. Even if u and v are part of the negative cycle, this approach works. Below is my code in C++ with comments provided(similar code as previous answer though):

#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
    int n, m;
    cin>>n>>m;// n is number of vertices, m is number of edges
    vector<vector<int>> edges(m, vector<int>(3));
    for(int i=0;i<m;i++){
        int a, b, c;
        cin>>a>>b>>c;
        if(a==b && c<0){//if there is a self-loop, no need to apply the algorithm
            cout<<"YES"<<endl<<a<<" "<<a<<endl;
            return 0;
        }
        a--;//for converting to 0-based indexing
        b--;
        edges[i][0]=a;
        edges[i][1]=b;
        edges[i][2]=c;
    }
    vector<int> dist(n, 1e18);//initialising distances
    vector<int> parents(n, -1);
    for(int i=0;i<n-1;i++){//applying bellman-ford
        for(int j=0;j<m;j++){
            if(dist[edges[j][1]]>dist[edges[j][0]]+edges[j][2]){
                parents[edges[j][1]]=edges[j][0];//updating parents
                dist[edges[j][1]]=dist[edges[j][0]]+edges[j][2];//relaxing edges
            }
        }
    }
    int j;
    for(j=0;j<m;j++){
        if(dist[edges[j][1]]>dist[edges[j][0]]+edges[j][2]){//u and v found
            cout<<"cycle exists"<<endl;
            int cur=edges[j][0];
            vector<bool> vis(n, false);
            while(!vis[cur]){//backtracking till we find the same element twice
                vis[cur]=true;
                cur=parents[cur];
            }
            cout<<cur+1;//that element must be a part of the negative cycle
            int stop=cur;//marking it as the end element
            vector<int> ans;
            cur=parents[cur];
            while(cur!=stop){//backtracking and inserting all the elements in the answer array
                ans.push_back(cur+1);
                cur=parents[cur];
            }
            for(int i=ans.size()-1;i>=0;i--){//printing the cycle elements
                cout<<" "<<ans[i];
            }
            cout<<" "<<stop+1<<endl;//printing the end element
            break;
        }
    }
    if(j==m){//if j==m, no additional relaxations can be done
        cout<<"no cycle exists"<<endl;
    }
    return 0;
}

Additionally, even though the Bellman-Ford algorithm is a single-source algorithm, we have modified it to effectively detect any negative cycle. This happens as all the nodes which have negative outgoing edges act as starting nodes in the first iteration in this algorithm. Since any negative cycle will always contain atleast one negative edge, this way of relaxation of edges helps us detect the cycles.

Reasons:
  • Blacklisted phrase (1): how do i
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Sibashis Som

79320569

Date: 2024-12-31 18:15:46
Score: 1.5
Natty:
Report link

Your implementation seems overkill.

If you remove PureType and Types, you can succeed in getting out of this without error. Is this fitting your need ?

type Core = { type: "core-1" } | { type: "core-2" };

type AnyTypedObject = { type: string } | { [key: string]: any };

type TypedObject<B extends AnyTypedObject> = B | Core;

function foo<B extends AnyTypedObject>(input: TypedObject<B>) {
  return input;
}

foo<{ url: "/about" }>({ url: "/about" }); // okay
foo<{ url: "/about" }>({ url: "okok" }); // fails as intended
foo<{ url: "/about" }>({ uri: "/about" }); // fails as intended
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Redskinsjo

79320566

Date: 2024-12-31 18:13:45
Score: 0.5
Natty:
Report link

Storage is a Protocol promising the method: account_list() We are calling the method to test (data_source.account_list) passing the mock. But before, we masquerade the mock (cast) to pretend it is compliant to the Storage protocol (which it is!)

It works fine and mypy does not complain


def test_account_list(data): mock_storage = mock.Mock() mock_storage.account_list.return_value = data

storage = cast(Storage, mock_storage)
result = data_source.account_list(storage)

mock_storage.account_list.assert_called_with()
assert result == data
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Jean-Marie Galliot

79320560

Date: 2024-12-31 18:08:44
Score: 1
Natty:
Report link

It automatically puts a 1 at the end because that is what you typed into the terminal. To verify this, try pressing backspace and seeing if you can delete the 1. If you type into the terminal when code is running, even if it isn't an input function, it will remember what you typed and paste that in when an input is called. To avoid this, simply don't have focus on the terminal when running and testing the code.

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

79320554

Date: 2024-12-31 18:06:44
Score: 0.5
Natty:
Report link

@main will pass all un-parsed args to a String* parameter if there is one. In the case there are no parsed args, this means:

@main def main(args: String*) = {  
  println(args(0).toDouble+args(1).toDouble)
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: CoreyOConnor

79320547

Date: 2024-12-31 17:57:41
Score: 1
Natty:
Report link

If you need to set some data to session storage before page visit, you can do this:

test('visit with session data', async ({ page }) => {
  page.addInitScript(() => {
    window.sessionStorage.setItem('key', 'value')
  })
  await page.goto('/')
})
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: backfromreality

79320546

Date: 2024-12-31 17:56:41
Score: 1
Natty:
Report link

Instead of removing cursor on the body, remove it for everything.

* {
  cursor: none;
}
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: Ray Wallace

79320532

Date: 2024-12-31 17:48:39
Score: 1.5
Natty:
Report link

I'd recommend using params to pass the query params:

response = self.client.get("/v1/synonyms/project", params={"keyword":"dealer"})

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

79320529

Date: 2024-12-31 17:47:39
Score: 4
Natty:
Report link

Single file C version - very fast and flexible https://github.com/danpodeanu/udp-redirect

Disclaimer: I am the author.

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

79320527

Date: 2024-12-31 17:46:38
Score: 5
Natty: 5
Report link

I have the same problem few days ago. Already applied many ways but not fixed that problem. Finally, I accidentally recognized that problem caused by user's permission. The problem was solved when I run it under administrative role. Hope that helps.

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Whitelisted phrase (-1): Hope that helps
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dang Le

79320522

Date: 2024-12-31 17:43:37
Score: 2
Natty:
Report link

This question is similar. The best answer looks to be using Amazon API Gateway as a direct proxy in front of Kinesis, which is described in this tutorial.

Reasons:
  • Blacklisted phrase (1): this tutorial
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Kevin Borders

79320518

Date: 2024-12-31 17:40:36
Score: 3
Natty:
Report link

The bug was fixed in mypy version 0.630 with Pull Request #5545

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

79320515

Date: 2024-12-31 17:39:36
Score: 2
Natty:
Report link

The other way to do it is to convert label to Editor, set its IsReadOnly to true and try to play with CursorPosition, which should bring certain text into view.

Haven't tried it, so take this at ur own risk.

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

79320514

Date: 2024-12-31 17:39:36
Score: 3.5
Natty:
Report link

i had the same problem on windows and it workded thank you

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Whitelisted phrase (-1): i had the same
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user29005067

79320501

Date: 2024-12-31 17:31:34
Score: 2.5
Natty:
Report link

I was able to fix this with

sudo kill (PID)

example

sudo kill 74548

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

79320498

Date: 2024-12-31 17:28:34
Score: 2
Natty:
Report link

just create bin/pre_compile file, and add two env variables to heroku GITHUB_USER and GITHUB_AUTH_TOKEN this helped me since using ssh doesn't work for me for some reason

#!/bin/bash

if [ -f "$ENV_DIR/GITHUB_USER" ]; then
  GITHUB_USER=$(cat "$ENV_DIR/GITHUB_USER")
fi

if [ -f "$ENV_DIR/GITHUB_AUTH_TOKEN" ]; then
  GITHUB_AUTH_TOKEN=$(cat "$ENV_DIR/GITHUB_AUTH_TOKEN")
fi

if [ -z "$GITHUB_USER" ]; then
    echo "GITHUB_USER is not set."
    exit 1
fi

if [ -z "$GITHUB_AUTH_TOKEN" ]; then
    echo "GITHUB_AUTH_TOKEN is not set."
    exit 1
fi

sed -i "s#git+ssh://[email protected]/#git+https://$GITHUB_USER:[email protected]/#g" requirements.txt
Reasons:
  • RegEx Blacklisted phrase (2): doesn't work for me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shtykhnov

79320481

Date: 2024-12-31 17:22:32
Score: 2
Natty:
Report link

In my case the IAM / Security credentials / Access key I was using (as it was set in my ~/.aws/credentials file) was inactive. I should have checked that in my AWS Console first.

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

79320477

Date: 2024-12-31 17:19:32
Score: 1
Natty:
Report link

Ok I just added ../ before the path to locales folder... Not written in the doc!

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

79320476

Date: 2024-12-31 17:18:31
Score: 4.5
Natty:
Report link

I have exactly the same issue and non of those answers worked for me.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have exactly the same issue
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: saintyusuf

79320474

Date: 2024-12-31 17:18:31
Score: 1.5
Natty:
Report link

Use object authority to prevent the user from deleting the query object from the library.

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

79320472

Date: 2024-12-31 17:17:31
Score: 1
Natty:
Report link

Based on slides 1-8, give your opinion on what are the risks in resort management that we are more likely to face in the context of our state/country.

In Sabah and Malaysia, resorts face significant risks due to the region's unique geography and climate. Natural disasters such as flooding, landslides and occasional earthquakes are common especially during the monsoon season or in areas like Mount Kinabalu. Coastal and island resorts are vulnerable to rising sea levels, coral bleaching and severe weather caused by climate change. Seasonal haze from regional forest fires can deter tourists, while health risks such as dengue, malaria, and food poisoning pose challenges to guest safety. Additionally, resorts in remote locations often struggle with staff shortages and power supply interruptions, while security issues, particularly in eastern Sabah, add another layer of concern.

To address these challenges, resorts must implement effective risk management strategies. This includes crisis management plans for natural disasters, enhanced health and safety protocols, and collaboration with local authorities to improve security. Investing in resilient infrastructure and adopting sustainable practices are essential to protect the environment and ensure long-term viability. By taking proactive steps, resorts can mitigate risks, safeguard their guests, and maintain a competitive edge in this dynamic tourism environment.

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

79320470

Date: 2024-12-31 17:17:31
Score: 0.5
Natty:
Report link

Add the library that contains the file to the library list using the ADDLIBLE command.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: David G

79320461

Date: 2024-12-31 17:12:29
Score: 4
Natty:
Report link

I recently came accross https://github.com/lwthiker/curl-impersonate, which is a fork of cURL that implements browser emulation

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

79320456

Date: 2024-12-31 17:08:27
Score: 4.5
Natty:
Report link

As this issue for Visualforce extension suggests, the Visualforce Lanaguage Server fails to format Visualforce page/component only if the code contains <style> . . . . </style> tag(s).

Not an answer to your question, unfortunately, but I am unable to add this as a comment (not enough reputation on this particular StackOverflow site).

Reasons:
  • Blacklisted phrase (1): Not an answer
  • Blacklisted phrase (1): StackOverflow
  • RegEx Blacklisted phrase (1.5): enough reputation
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Andrew Stopchenko

79320448

Date: 2024-12-31 17:03:26
Score: 2
Natty:
Report link

Alternatively, a server component can be switched to dynamic rendering by either using cookies() or headers() or using the unstable noStore() method:

Im using server component and tried all these ways. still it renders at build time not request time

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

79320441

Date: 2024-12-31 16:58:25
Score: 0.5
Natty:
Report link
from pydantic import BaseModel, Field, create_model
from typing import Optional

class MainClass(BaseModel):
    field1: int 
    field2: str 

PartialClass = create_model(
    "PartialClass",
      **{field: (Optional[annotation], None) for field, annotation in MainClass.__annotations__.items()},
      )
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: abdelrahman aboneda

79320426

Date: 2024-12-31 16:46:23
Score: 1.5
Natty:
Report link

You are trying to have 2 animations on the same view at the same time. If you put the image into a container view, then animate the image as you do now and use the container for the transition animation this should fix it.

Sidenote: Because you didn't provide a working project I can't test this. Next time please do so answers can be tested before posting (:

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

79320424

Date: 2024-12-31 16:45:22
Score: 2
Natty:
Report link

In my case it was a remote procedure call that was attempting to return xml. I converted to varchar(max) in the remote proc, and back to xml on the calling side.

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

79320422

Date: 2024-12-31 16:44:22
Score: 0.5
Natty:
Report link

For whom is interested, there is a compreensive document on this and other related PDF Viewer parameters.

Parameters for Opening PDF Files

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Julio Nobre

79320421

Date: 2024-12-31 16:43:22
Score: 1.5
Natty:
Report link

You probably need to implement support for HTTP byte-range requests on backend. Please see this answer

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

79320416

Date: 2024-12-31 16:40:21
Score: 0.5
Natty:
Report link

The solution My problem did not require me to subscribe to state updates for the slice. Thus, useSelector() was unhelpful. After looking over the documentation again, I found useStore(). The following line of code allows me to read the current state of an entire slice, which I then print out in response to a click event:

     import { useStore } from 'react-redux';
...
    const reduxStore = useStore();
    
    const handleClick = async () => {
        console.log(JSON.stringify(reduxStore.getState().mySlice));
    }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ka_ren

79320415

Date: 2024-12-31 16:40:21
Score: 0.5
Natty:
Report link

Since I had such an hard time finding oficial documentation on these parameters, here you can find a compreensive documentation on this and other related PDF Viewer parameters.

Parameters for Opening PDF Files

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Julio Nobre

79320414

Date: 2024-12-31 16:39:21
Score: 2.5
Natty:
Report link

From your description, I understand that you want to loop through some plain text from System.in and when encountering errors, call method2 to close the Socket. I think you can establish a check to first see if the specific line would throw an error or not.

Again, I assume that the error happens when sending to the Socket. Therefore, I think you can create a dummy instance that would get the problematic line instead of sending it directly to the current one. This way, you assure that you can predict an error line and keep it away from the main instance.

Another suggestion would be to have your own way of identifying errors, instead of having to send lines directly to the client and see if they worked or not, you can have a method that would return whether the line is problematic or not based on some test cases.

I am sorry if this won't work for you, but I tried my best as I am a beginner :) More details would help as well, because with the ones provided by you I can't be sure of coding a solution, as I don't know the full problem.

Reasons:
  • RegEx Blacklisted phrase (2): I am a beginner
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Grebla Andrei

79320400

Date: 2024-12-31 16:32:19
Score: 3
Natty:
Report link

I couldn't solve this problem directly, with I got a solution that works. The validation dataset is a smaller portion of the total dataset. In this case I loaded it complete in memory (I didn't use a generator). Validation has worked in all epochs.

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

79320396

Date: 2024-12-31 16:30:18
Score: 0.5
Natty:
Report link

The following worked for me in .net 8

_dbContext.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;

var entity = await _dbContext.Set().FindAsync(id);

_dbContext.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.TrackAll;

return entity;

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

79320382

Date: 2024-12-31 16:21:17
Score: 0.5
Natty:
Report link

I did a fun experiment, a custom class with two ways of setting the range that it contains

Option Explicit
Private rg As Range
Property Let rg_let(r As Range)
    Set rg = r
End Property
Property Set rg_set(r As Range)
    Set rg = r
End Property
Property Get rg_out() As Range
    Set rg_out = rg
End Property

and then a routine that passes the range in two different ways and gets sensible results in both cases. Using the Let version seems rather neater...

Sub test()
    Dim x As cl_spj
    Set x = New cl_spj
' just pass the range pointer as an argument, which the property then processes
    x.rg_let = Range("a2")
    debug.print "Let " & x.rg_out.Address
' pass the range using set
    Set x.rg_set = Range("a3")
    debug.print "Set " & x.rg_out.Address
End Sub
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Simon J

79320377

Date: 2024-12-31 16:19:16
Score: 1.5
Natty:
Report link

I found the answer thanks to another user's comment, which has since been deleted.

/^.+@.+\.(u[a-rt-z]|c[a-np-z]|[abd-t-vz][a-z])$/gmi

Matches:

Non-Matches:

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

79320369

Date: 2024-12-31 16:14:14
Score: 1
Natty:
Report link

To give access to your local SQL database to an external user in SQL Server Management Studio (SSMS), you'll need to follow these steps:

Create a Login: First, create a login for the external user.

In SSMS, expand the Security folder, right-click on Logins, and select New Login.

Enter the login name, select SQL Server authentication, and set a password.

Create a User: Next, create a user for the login in the specific database.

Expand the Databases folder, select your database, expand the Security folder, right-click on Users, and select New User.

Enter the user name and link it to the login created earlier.

Grant Permissions: Finally, grant the necessary permissions to the user.

Right-click on the user, select Properties, go to the Securable tab, and click Search to add database objects.

Select the objects (tables, views, stored procedures, etc.) and grant the appropriate permissions (e.g., SELECT, INSERT, UPDATE, DELETE).

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

79320368

Date: 2024-12-31 16:13:14
Score: 2
Natty:
Report link

This turned out to be just a bug in the class where I was implementing the method. I was using a facade pattern to wrap around multiple browser libraries and the value of this.page was being unintentionally silently altered, leading to this bug down the line.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: Emile Paffard-Wray

79320366

Date: 2024-12-31 16:12:14
Score: 1
Natty:
Report link

Pay attention to settings of the script: the parameter "Run this script using the logged-on credentials" need to be set as YES, because if not you are not setting the desktop of the currently logged user. [Image]: https://i.sstatic.net/Wx1d5cZw.png

Also it is more easy to create a configuration profile: create device -> win10 -> Device restrictions profile

There you can change both desktop background and locked screen background:

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