79257854

Date: 2024-12-06 11:45:29
Score: 3
Natty:
Report link

dependencies: printing: 5.13.2

flutter clean

flutter build apk --release

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Sahil Viradiya

79257852

Date: 2024-12-06 11:45:29
Score: 1
Natty:
Report link

You should listen to the input & change event instead of the keyup event. This approach ensures that the functionality works even when text is pasted from the clipboard, as shown below:

document.getElementById("search").addEventListener("input", e => {
    const query = e.target.value.toLowerCase();
    for (const tr of trs) {
        tr.style.display = tr.innerText.toLowerCase().includes(query) ? "" : "none";
    }
});
document.getElementById("search").addEventListener("change", e => {
        const query = e.target.value.toLowerCase();
        for (const tr of trs) {
            tr.style.display = tr.innerText.toLowerCase().includes(query) ? "" : "none";
        }
    });

To better capture additional fallback events, consider reviewing this answer. It provides a detailed description of the most important events you need to know. Check it out:

https://stackoverflow.com/a/74435525/5701662

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Blacklisted phrase (0.5): Check it out
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: SG52

79257850

Date: 2024-12-06 11:44:29
Score: 1
Natty:
Report link

Yes. Transaction will be rolled back.

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: talex moved to Codidact

79257845

Date: 2024-12-06 11:43:28
Score: 2
Natty:
Report link

Still this bug haven't fixed. But one way to work around it is to create "ContentView" and set its "InputTransparent" to true. After this create contents inside "ContentView". Annoying hack but it works.

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

79257840

Date: 2024-12-06 11:41:26
Score: 7.5 🚩
Natty: 4.5
Report link

Explain more, i didn't understand fully, can you explain in step by step Can you share the screenshot or video tutorial

Reasons:
  • RegEx Blacklisted phrase (2.5): can you explain
  • RegEx Blacklisted phrase (2.5): Can you share
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kamlesh Shah

79257835

Date: 2024-12-06 11:39:25
Score: 6 🚩
Natty: 6
Report link

Thanks for the answer, just wondering though, why AppDispatcher is not automatically mocked by Jest, as opposed to what's written in this Doc https://legacy.reactjs.org/blog/2014/09/24/testing-flux-applications.html?

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Devdutta Natu

79257824

Date: 2024-12-06 11:35:23
Score: 1
Natty:
Report link

You may also need to specify a DDL lock timeout—the number of seconds a DDL command waits for its required locks before failing using DDL_LOCK_TIMEOUT parameter at the system level, or at the session level. Catch and treat the resource busy error message in the application.

ORA-00054: resource busy
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Valentin Tabacaru

79257823

Date: 2024-12-06 11:35:23
Score: 2
Natty:
Report link

This was improved in Julia 1.11. Now you can

  1. ] add "https://gitlab.com/vyush/Xnumber.jl.git"

  2. Add the URL under [sources] in Project.toml, like so:

    [deps]
    ...
    Xnumber = SOME-UUID # this should automatically be created by step 1
    ...
    
    [sources]
    Xnumber = {url = "https://github.com/JuliaLang/MyUnregisteredPackage.jl"}
    
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Herman

79257809

Date: 2024-12-06 11:29:22
Score: 3
Natty:
Report link

you can use the exact solution from this https://stackblitz.com/edit/angular-material-table-multiple-header-rows?file=main.ts

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: dev_rumi

79257800

Date: 2024-12-06 11:28:22
Score: 1
Natty:
Report link

Seems like they changed repository URL. Early I had

maven {url "https://linphone.org/releases/maven_repository/"}

in build.gradle project-level file and faced the same issue.

Now I have replaced it with

maven {url "https://download.linphone.org/releases/maven_repository/"}

Found this in their commit on github: https://github.com/BelledonneCommunications/linphone-android/commit/c4eb74ff0dc25a9476eb71113059b2f7599183eb

Now project builds fine.

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

79257797

Date: 2024-12-06 11:26:21
Score: 3
Natty:
Report link
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base

As provided by Microsoft asp.net core doc

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

79257793

Date: 2024-12-06 11:25:21
Score: 2
Natty:
Report link

Posting this since i couldn't find anyone on the internet with the same problem, after some time i found that when loading the fonts it failed on one of them (it got a pdf instead of a font) and since this wasn't used by default somehow it didn't affect any device except iphones. After changing it everything worked correctly on all devices. If anyone has an explanation on why it affected the canvas the way it did I'm really curious.

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

79257790

Date: 2024-12-06 11:23:20
Score: 4
Natty: 6
Report link

sfdfjfkscvxyj chji jfjksdiv jsfj sofnsdo jfjsdfj sdf f sdf sd

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

79257784

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

for vue but you can rewrite it for vanilla

@keydown="(e: KeyboardEvent) => { if (e.key === '-') e.preventDefault()}"

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

79257783

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

Using both ggforce's geom_link and ggnewscale, it is possible to make a loop, element by element, creating a new colorscale for each of them:

library(ggforce)
library(ggnewscale)

## Index with colors
color_list <- c('ControlD1' = "limegreen", 
                             'HSP90iD1' = "firebrick1", 
                             'PRRTD1' = "deepskyblue", 
                             'CombinationD1' = "orchid1", 
                             'HSP90iD3' = "firebrick4", 
                             'PRRTD3' = "deepskyblue3", 
                             'CombinationD3' = "purple3")

## old-ish code
p_left <- ggplot(tb_deg) +
  geom_segment(aes(y=comparison, x=var1, xend=var2), size=2, color="slategrey", show.legend = F) +
  geom_point(aes(y=comparison, x=var1, fill=var1), shape=21, size=5, show.legend = F) +
  geom_point(aes(y=comparison, x=var2, fill=var2), shape=21, size=5, show.legend = F) +
  scale_fill_manual(name="Group",
                    values=color_list ) +
  scale_x_discrete(limits=rev(levels(md$group)) ) +
  theme_minimal() +
  labs(x=NULL, y=NULL, title = NULL) +
  theme(legend.position = "none",
        aspect.ratio = 2,
        axis.text.x = element_text(angle=90, hjust=1),
        axis.text.y = element_blank(),
        panel.grid.major.y = element_blank())



p_left

### Loop through each element of the Y-axis, creating a geom_link + a new color scale
p2<-p_left

for (comp in unique(tb_deg$comparison)) {

  v1 <-   unique(tb_deg[tb_deg$comparison==comp, c("comparison","var1","var2")])$var1
  v2 <-   unique(tb_deg[tb_deg$comparison==comp, c("comparison","var1","var2")])$var2

p2 <- p2 +
  new_scale_color() +
  geom_link(data=unique(tb_deg[tb_deg$comparison==comp, c("comparison","var1","var2")]),
            aes(y=comparison, yend=comparison, x=var1, xend=var2, color=stat(index)), size=2) +
  scale_color_gradient(high=color_list[v2],low=color_list[v1])
  
}

p2

geom_link_manually_in_loop

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

79257779

Date: 2024-12-06 11:17:18
Score: 1
Natty:
Report link

When running an AWS Lambda function that imports rpy2.robjects, the following error occurs:

ModuleNotFoundError: No module named '_cffi_backend'

This error is caused by the missing _cffi_backend module, which is part of the cffi library. The issue typically arises because AWS Lambda uses Amazon Linux as its runtime environment, and cffi (a dependency of rpy2) includes compiled components that must match the Lambda runtime environment. If the package is installed on a different OS (e.g., macOS or Windows), it won’t work on Lambda.

You need to package your Lambda function with rpy2 and its dependencies in an Amazon Linux environment. Here are two approaches:

Option 1: Use a Lambda Layer A Lambda Layer allows you to bundle dependencies separately and reuse them across multiple functions.

Create a Directory for Dependencies: mkdir lambda-layer && cd lambda-layer mkdir python

Set Up Amazon Linux Environment: Use Docker to mimic the AWS Lambda runtime: docker run -it --rm -v $(pwd):/lambda amazonlinux:2 /bin/bash

Install Required Packages in Docker: Inside the Docker container:

yum update -y yum install -y python3-pip python3-devel gcc libffi-devel pip3 install rpy2 cffi -t /lambda/python exit

Package the Layer: Compress the python directory into a zip file: cd .. zip -r lambda-layer.zip python

Upload the Layer to AWS: Go to the AWS Management Console, create a new Lambda Layer, and upload the lambda-layer.zip. Attach the layer to your Lambda function.

Option 2: Package the Function with Dependencies If you prefer not to use a Lambda Layer, you can include all dependencies directly in your function deployment package: Set Up Amazon Linux Environment:

docker run -it --rm -v $(pwd):/lambda amazonlinux:2 /bin/bash Install Dependencies Inside Docker: yum update -y yum install -y python3-pip python3-devel gcc libffi-devel pip3 install rpy2 cffi -t /lambda exit

Package Your Function: Add your Python function file (e.g., lambda_function.py) to the /lambda directory, then compress the contents:

cd lambda zip -r function.zip .

Upload to AWS Lambda: Upload the function.zip file directly to your Lambda function.

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

79257769

Date: 2024-12-06 11:13:17
Score: 2
Natty:
Report link

I had this issue (Next 14) once I started migrating some files over to TS - I think the tsconfig is overwriting the jsconfig.

Moving my compiler options to the tsconfig and restarting the dev server solved my issues.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: DanB-Web

79257765

Date: 2024-12-06 11:12:17
Score: 2.5
Natty:
Report link

Changing the default port to 5432 worked for me

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Arman Mamyan

79257757

Date: 2024-12-06 11:09:16
Score: 1.5
Natty:
Report link

As d4nyll said, using loop is recommened way. So here is Vor's variant with loop:

---
- hosts: localhost
  gather_facts: false
  vars:
    objs:
      - { key1: value1, key2: [ value2, value3] }
      - { key1: value4, key2: [ value5, value6] }
  tasks:
    - name: create directories
      file:
        path: "{{ item.key1 }}"
        state: directory
      loop: "{{ objs }}"

    - name: create files
      file:
        path: "{{ item.0.key1 }}/{{ item.1 }}"
        state: touch
      loop: "{{ objs | subelements('key2') }}"

Thanks to Nested loops - access property: the key item should point to a dictionary It helped to understand what exacltly should be in subelements

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

79257755

Date: 2024-12-06 11:09:16
Score: 2.5
Natty:
Report link

You are probably passing the OU id directly but this is expecting something like:

{   key: "ManagedOrganizationalUnit",   value: "Custom (ou-xfe5-a8hb8ml8)" },

Reference: https://docs.aws.amazon.com/controltower/latest/userguide/automated-provisioning-walkthrough.html

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

79257745

Date: 2024-12-06 11:05:14
Score: 2
Natty:
Report link

I did some more research and it seems that Chrome won't let you use popstate if there is no user interaction first. As long as you click on something or scroll down on mobile, popsate will work, otherwise it won't. I tried to simulate user interaction with click(), but that didn't work either. It seems Chrome wants genuine user interaction. I also realized this is sort of a duplicate of: Chrome popstate not firing on Back Button if no user interaction

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

79257744

Date: 2024-12-06 11:05:14
Score: 2.5
Natty:
Report link

Yes you can. Moreover, unlike a simple text editor, Qt Creator can check syntax and is also more convenient for building and testing. Unnecessary libraries can be disabled by editing the CMakeLists.txt file, or, as mentioned above, the pro file (but it is better to use CMakeLists.txt)

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

79257741

Date: 2024-12-06 11:04:14
Score: 1.5
Natty:
Report link

Figured it out, it's simply a regular string with each value separated by a ,

jenkins-cli build -v <job> -p MY_PARAM=value1,value2,value3
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ulrar

79257735

Date: 2024-12-06 11:01:11
Score: 14 🚩
Natty: 6.5
Report link

Did you manage to solve it? If so how can I do it, I'm facing the same problem!

Reasons:
  • Blacklisted phrase (0.5): how can I
  • Blacklisted phrase (1): can I do
  • Blacklisted phrase (1): m facing the same problem
  • RegEx Blacklisted phrase (3): Did you manage to solve it
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm facing the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Heinrik

79257731

Date: 2024-12-06 10:59:11
Score: 1
Natty:
Report link

So you want to refresh the Environment variable in current session. You could try:

$env:number = [Environment]::GetEnvironmentVariable("number", "User")

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

79257726

Date: 2024-12-06 10:57:09
Score: 8.5 🚩
Natty: 6
Report link

Could you provide us picture example from the interface? Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2.5): Could you provide us
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: osmansaglam

79257721

Date: 2024-12-06 10:56:09
Score: 0.5
Natty:
Report link

Otherwise to avoid mistype when load Environment variable value to the current session, you could try:

$env:MY_VARIABLE = [Environment]::GetEnvironmentVariable("MY_VARIABLE", "User")

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

79257714

Date: 2024-12-06 10:55:09
Score: 2.5
Natty:
Report link

MicroProfile itself does not have a built-in feature to automatically handle and unzip incoming files. You must handle the unzipping logic explicitly in your application code.

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

79257712

Date: 2024-12-06 10:54:08
Score: 2
Natty:
Report link

Resolved: A, B, and C were separated into individual RemoteView instances and NotificationCompat.Builder objects. A was designated as the parent notification using .setGroup() and .setGroupSummary() in its builder. B and C were assigned to the same group as A using .setGroup(). Updates were handled via notify() or other notification update mechanisms as needed.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: 샤에테

79257709

Date: 2024-12-06 10:53:08
Score: 1
Natty:
Report link

Snapshot Listeners allow you retrieve data from Firestore in real time.

EXAMPLE:

The first use case of AddSnapshotListener that comes to my mind is updating a collection.

Imagine you have a gallery of images. Those images are generated by a third party API and then stored in a Firestore collection. Whenever a new image is generated and stored in your Firestore collection, you want to update your client view showing your new image.

To do so you attach a listener to the image collection. Whenever the collection changes you get notified by the listener and you can update your image gallery on SwiftUI.

I also found this tutorial that is very insightful: https://peterfriese.github.io/MakeItSo/tutorials/makeitso/03-retrieving-data-from-cloud-firestore-in-real-time/

Reasons:
  • Blacklisted phrase (1): this tutorial
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Federica Bucchieri

79257708

Date: 2024-12-06 10:53:08
Score: 2.5
Natty:
Report link

I think the right command is "cursorEnd" because "cursorEndSelect" will select the text from the current position to the end of the line. However, I think you want to move the cursor to the end of the line, so you need to use the command I mentioned before.

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

79257703

Date: 2024-12-06 10:51:08
Score: 2.5
Natty:
Report link

from app.api import router ModuleNotFoundError: No module named 'app'

#####I resolved the error ### cd myproject/ uvicorn app.main:app --reload

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Naveen kumar Kota

79257702

Date: 2024-12-06 10:51:07
Score: 6 🚩
Natty: 5.5
Report link

The logs are not even getting inside to log analytics workspace, what could be the problem?

Reasons:
  • Blacklisted phrase (1): what could be
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sai kumar

79257693

Date: 2024-12-06 10:49:06
Score: 3
Natty:
Report link

Region is use for the Public method and the private and the variables and the constructor and the some more not use that every method.

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

79257685

Date: 2024-12-06 10:47:05
Score: 5
Natty:
Report link

Why was correspondence above deleted

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Why was
  • Low reputation (1):
Posted by: Random Me

79257670

Date: 2024-12-06 10:41:04
Score: 1
Natty:
Report link

If you are working on office LAN ..

  1. unplug office LAN from laptop
  2. switch on your mobile device hotspot
  3. connect your laptop to your mobile device hotspot
  4. open main.dart and hit start debugging

That's what has worked for me and I am sure it will work for many people using on corporate office laptop.

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

79257668

Date: 2024-12-06 10:41:04
Score: 1
Natty:
Report link

This will be a long answer. So I made some of my custom configurations to fix this, also took help from the answer by @ShehanLakshita.

Firstly I wrapped PrivateRoute and Route with memo to prevent unnecessary re renders,

const MemoizedRoute = React.memo(({ isPrivate, component: Component, ...rest }) => {
if (isPrivate) {
  return (
    <PrivateRoute
      {...rest}
      component={Component} 
    />
  );
}
return (
  <Route
    {...rest}
    render={routeProps => <Component {...routeProps} {...rest} />}
  />
);
});

I modified my loadable component to cache the LazyComponent correctly as suggested by @Shehan,

const cachedComponentsMap = new Map();

const useCachedLazy = (importFunc, namedExport) => {
  try {
    if (!cachedComponentsMap.has(importFunc)) {
      const LazyComponent = lazy(() =>
        importFunc().then(module => ({
          default: namedExport ? module[namedExport] : module.default,
        }))
      );
      cachedComponentsMap.set(importFunc, LazyComponent);
    }
    return cachedComponentsMap.get(importFunc);
  } catch (error) {
    console.error('Error loading component:', error);
    throw error; 
  }
};


const loadable = (importFunc, { namedExport = null } = {}) => {
  const cachedKey = `${importFunc}-${namedExport}`;

  if (!cachedComponentsMap.has(cachedKey)) {
    const MemoizedLazyComponent = React.memo(props => {
      const LazyComponent = useCachedLazy(importFunc, namedExport);
      return <LazyComponent {...props} />;
    });

    cachedComponentsMap.set(cachedKey, MemoizedLazyComponent);
  }

  return cachedComponentsMap.get(cachedKey);
};

Now the components do not unmount and remount unnecessary and I also got lazy working and the performance is improved.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @ShehanLakshita
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: PoorProgrammer

79257661

Date: 2024-12-06 10:38:03
Score: 2.5
Natty:
Report link

Mostly this libraries will help you to implement role based authorization,

Thank you!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Vishnu Satheesh

79257657

Date: 2024-12-06 10:36:02
Score: 2
Natty:
Report link

Hi everyone i have this question In google api's i see we can assign a permission to make only suggestive changes. lets say i am assigning you permission to make suggestive changes then you can only either comment, make suggestive changes but you can't edit the real document unless someone who has write/edit access approves it. is this permission possible in graph api? wherever i checked i only found read or write permission.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Virendra Sonkaria

79257646

Date: 2024-12-06 10:33:02
Score: 0.5
Natty:
Report link

Cannot use body and headers with GET method, Solution 1 - Instead of GET method you can make the method as POST or PUT to send body and headers.

Solution 2 - If you want to send data with GET method you can send it as queryParams

const userDetails = { name: "john", email: "[email protected]", password: "1234", }

    const queryParams = new URLSearchParams(userDetails).toString();

You can send queryParams in api url as

await fetch(`http://localhost:8001/user?${queryParams}`, {
      method: "GET",
    });

and receive it as req.query in backend

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): Cannot use
  • Low reputation (1):
Posted by: Abhi_Stacks

79257642

Date: 2024-12-06 10:32:01
Score: 2
Natty:
Report link

In order to passing props to TransitionComponent, you have to use TransitionProps.

<Menu
    // ...
    TransitionComponent={Slide}
    TransitionProps={{
        direction: 'down',
        unmountOnExit: true,
    }}
    // ...
>
    {/* ... */}
</Menu>

Reference: https://mui.com/material-ui/api/popover/#popover-prop-TransitionProps

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

79257639

Date: 2024-12-06 10:31:00
Score: 8 🚩
Natty: 6.5
Report link

Are you able to solve it? Can you update

Reasons:
  • Blacklisted phrase (1): you able to solve
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Puneet Aggarwal

79257638

Date: 2024-12-06 10:30:59
Score: 5
Natty: 4.5
Report link

could not get --no-terminal to work, so i made this module.

https://jsr.io/@svefro/win-console-window-state

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

79257628

Date: 2024-12-06 10:26:58
Score: 4.5
Natty:
Report link

[F12 - Inspection Code][1] [1]: https://i.sstatic.net/YFVJ30Px.png

Here is this code that is responsible or showing "or". It is connected with stripe. {display:none} could work for that?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mateusz Felcenloben

79257624

Date: 2024-12-06 10:26:58
Score: 4
Natty:
Report link

This extension can also be useful, with the Extensions.Web.Popup.OnPopupClosed control

https://wiki.genexus.com/commwiki/wiki?37807,WebExtension+Toolkit

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

79257623

Date: 2024-12-06 10:26:58
Score: 1
Natty:
Report link

I believe the way API gateway maps the query parameters you need to comma separate your accountIds. Aka https://my-dev-host.com/fdx/v6/accounts?accountIds=confUser_1,confUser_2,confUser_3,confUser_4&offset=1&limit=3

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

79257622

Date: 2024-12-06 10:25:57
Score: 1
Natty:
Report link

Clear all the existing columns of the dataGrid, add single column name "Message" and Add a blank row in a new DataTable, add a single column "Message" and add one row with your custom message.

grid.AutoGenerateColumns = false;
grid.DataSource = null;
grid.Columns.Clear();

DataTable dt= new DataTable();
DataGridViewTextBoxColumn colMessage = new DataGridViewTextBoxColumn
{
    DataPropertyName = "Message",
    HeaderText = "Message",
    ReadOnly = true,
    MinimumWidth=150,
    AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill
};
grid.Columns.Add(colMessage);

dt.Columns.Add("Message");
DataRow newRow = dt.NewRow();
newRow["Message"] = "No records found";
dt.Rows.Add(newRow);

BindingSource bs = new BindingSource
{
   DataSource = dt
};
grid.DataSource = bs;

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sanjay Saini

79257614

Date: 2024-12-06 10:21:57
Score: 1
Natty:
Report link

Working on the effect

https://codepen.io/satya4satyanm/pen/YPKwBQV?editors=1010

Need to fix the gravity in this.

<div style="top: 50px; text-align:center">

    <canvas id="canvasOne" width="640" height="640">
        Your browser does not support HTML5 canvas.
    </canvas>

    <script src="https://dangries.com/rectangleworld/demos/Modernizr/modernizr-2.0.6.js"></script>
    <script src="https://dangries.com/rectangleworld/demos/Nova_Canvas/FastBlur.js"></script>

    <script>
        /*
Particle effect by Dan Gries, rectangleworld.com.
The FastBlur is created by Mario Klingemann, quasimondo.com. Sincere thanks to Mario for publicly sharing the code!
*/
        //for debug messages
        window.addEventListener("load", windowLoadHandler, false);
        var Debugger = function() {};
        Debugger.log = function(message) {
            try {
                console.log(message);
            } catch (exception) {
                return;
            }
        }

        function windowLoadHandler() {
            canvasApp();
        }

        function canvasSupport() {
            return Modernizr.canvas;
        }

        function canvasApp() {
            if (!canvasSupport()) {
                return;
            }
            var theCanvas = document.getElementById("canvasOne");
            var context = theCanvas.getContext("2d");
            var timer;
            var wait;
            var count;
            var particleList;
            var recycleBin;
            var emitX;
            var emitY;
            var displayWidth;
            var displayHeight;
            var particleAlpha;
            var baseColorR;
            var baseColorG;
            var baseColorB;
            var r;
            var g;
            var b;
            var phaseR;
            var phaseG;
            var phaseB;
            var targetPhaseR;
            var targetPhaseG;
            var targetPhaseB;
            var lastTargetPhaseR;
            var lastTargetPhaseG;
            var lastTargetPhaseB;
            var phaseShiftDuration;
            var phaseShiftCount;
            var particleColor;
            var numToAddEachFrame;
            var gravity = 3;
            init();

            function init() {
                bgColor = "#000000";
                context.fillStyle = bgColor;
                context.fillRect(0, 0, theCanvas.width, theCanvas.height);
                wait = 1;
                count = wait - 1;
                numToAddEachFrame = 2;
                particleAlpha = 1;
                targetPhaseR = 4;
                targetPhaseG = 3;
                targetPhaseB = 0;
                phaseShiftDuration = 2000;
                phaseShiftCount = phaseShiftDuration - 1;
                displayWidth = theCanvas.width;
                displayHeight = theCanvas.height;
                emitX = 100;//displayWidth / 2;
                emitY = 100;//displayHeight / 2;
                particleList = {};
                recycleBin = {};
                timer = setInterval(onTimer, 1000 / 24);
            }

            function onTimer() {
                count++;
                if (count >= wait) {
                    var time = Date.now();
                    r = 50;
                    g = 135;
                    b = 168;
                    count = 0;
                    for (i = 0; i < numToAddEachFrame; i++) {
                        var mag = 1.5 + 0.5 * (Math.random());
                        var angle = Math.random() / 3 * (Math.PI);
                        var p = addParticle(emitX, emitY, mag * Math.cos(angle), mag * Math.sin(angle));
                        p.color = "rgba(" + r + "," + g + "," + b + "," + particleAlpha + ")";
                        p.setEnvelope(10, 100, 50,
                            4, 10, 10,
                            0, 0.4 + 0.8 * Math.random(), 0);
                    }
                }
                updateParticles();
                drawScreen();
            }
            Particle.prototype.setEnvelope = function(a, h, d, av, hv, dv, r0, r1, r2) {
                this.attack = a + (2 * Math.random() - 1) * av;
                this.hold = h + (2 * Math.random() - 1) * hv;
                this.decay = d + (2 * Math.random() - 1) * dv;
                this.rInit = r0;
                this.rHold = r1;
                this.rLast = r2;
                this.rad = this.rInit;
            }

            function updateParticles() {
                var p = particleList.first;
                var outsideTest;
                var nextParticle;
                while (p != null) {
                    //before list is altered record next particle
                    nextParticle = p.next;
                    //add air resistance later
                    p.x += p.velX;
                    p.pvyg = p.velY * gravity;
                    p.y += p.pvyg;
                    //update age
                    p.age++;
                    //update size
                    if (p.age < p.attack + p.hold + p.decay) {
                        if (p.age < p.attack) {
                            p.rad = (p.rHold - p.rInit) / 15 / p.attack * p.age + p.rInit;
                        } else if (p.age < p.attack + p.hold) {
                            p.rad = p.rHold;
                        } else if (p.age < p.attack + p.hold + p.decay) {
                            p.rad = (p.rLast - p.rHold) / 15 / p.decay * (p.age - p.attack - p.hold) + p.rHold;
                        }
                    } else {
                        p.dead = true;
                    }
                    //test if particle is outside of window
                    outsideTest = (p.x + p.rad < 0) || (p.y + p.rad < 0) || (p.x > displayWidth - p.rad) || (p.y > displayWidth - p.rad);
                    if (outsideTest || p.dead) {
                        recycle(p);
                    }
                    p = nextParticle;
                }
            }

            function Particle() {
                //The particle class does not need anything in the constructor. Properties will be added dynamically.
                //This class is being used ony for organizational purposes - the "setEnvelope" function is attached to the prototype object
                //later.
            }

            function addParticle(x0, y0, vx0, vy0) {
                var newParticle;
                var color;
                //check recycle bin for available drop:
                if (recycleBin.first != null) {
                    newParticle = recycleBin.first;
                    //remove from bin
                    if (newParticle.next != null) {
                        recycleBin.first = newParticle.next;
                        newParticle.next.prev = null;
                    } else {
                        recycleBin.first = null;
                    }
                }
                //if the recycle bin is empty, create a new particle:
                else {
                    newParticle = new Particle();
                }
                //add to beginning of particle list
                if (particleList.first == null) {
                    particleList.first = newParticle;
                    newParticle.prev = null;
                    newParticle.next = null;
                } else {
                    newParticle.next = particleList.first;
                    particleList.first.prev = newParticle;
                    particleList.first = newParticle;
                    newParticle.prev = null;
                }
                //initialize
                newParticle.x = x0;
                newParticle.y = y0;
                newParticle.velX = vx0;
                newParticle.velY = vy0;
                newParticle.color = color;
                newParticle.age = 0;
                newParticle.dead = false;
                return newParticle;
            }

            function recycle(p) {
                //remove from particleList
                if (particleList.first == p) {
                    if (p.next != null) {
                        p.next.prev = null;
                        particleList.first = p.next;
                    } else {
                        particleList.first = null;
                    }
                } else {
                    if (p.next == null) {
                        p.prev.next = null;
                    } else {
                        p.prev.next = p.next;
                        p.next.prev = p.prev;
                    }
                }
                //add to recycle bin
                if (recycleBin.first == null) {
                    recycleBin.first = p;
                    p.prev = null; //may be unnecessary
                    p.next = null;
                } else {
                    p.next = recycleBin.first;
                    recycleBin.first.prev = p; //may be unnecessary
                    recycleBin.first = p;
                    p.prev = null; //may be unnecessary
                }
                //reset accel
            }

            function drawScreen() {
                //stack blur by Mario Klingemann, quasimondo.com
                boxBlurCanvasRGB("canvasOne", 0, 0, theCanvas.width, theCanvas.height, 2);
                var p = particleList.first;
                var pcount = 0;
                while (p != null) {
                    pcount++;
                    context.fillStyle = p.color;
                    context.beginPath();
                    context.arc(p.x, p.y, p.rad, 0, 2 * Math.PI, false);
                    context.closePath();
                    context.fill();
                    p = p.next;
                }
            }
        }
    </script>

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: satyanarayan mishra

79257604

Date: 2024-12-06 10:15:55
Score: 5.5
Natty: 6.5
Report link

what does this parameter means runOnChoice() ? what all values this parameter can take ?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): what do
  • Low reputation (1):
Posted by: Piyush Ghosh

79257601

Date: 2024-12-06 10:14:55
Score: 0.5
Natty:
Report link

I use two methods to hide my js code, atob and eval.

When my code is ready I encode it to Base64 (by online tool) and cut to many parts somewhere in code. Next I decode string and run eval(atob( codePart1 + codePart2 ))

  1. Write function to tmp file

    function myHideCode() { alert("ok") }; window.myHideCode = myHideCode

  2. Encode tmp file to Base64 (online tool) to variable e.g.

    var default_jpg = CAgICAgCiAgICBjb25zdCBnZXRSYW5kb21BcmJpdHJhcnkgPSAobWluLCBtYXgpID0=

  3. run somewhere in code

    eval( atob(default_jpg) );

  4. finally

    window.myHideCode();

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

79257600

Date: 2024-12-06 10:14:54
Score: 5.5
Natty: 4.5
Report link

https://medium.com/@kritiverma212/tricentis-tosca-how-to-get-current-url-and-save-it-in-buffer-ecfb454a3550

Check out this link I have given step by step process to get current url

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

79257593

Date: 2024-12-06 10:13:54
Score: 0.5
Natty:
Report link

In my opinion, it depends on your test strategy and goals. Each approach has pros and cons. Let's mention some of them.

  1. Query the database:

Pros: Reliable, independent verification.

Cons: It breaks API-Centric testing because an integration test usually focuses on the API's behaviors.

  1. Using the GET endpoint

Pros: API-centric (it allows you to test a complete workflow), More realistic (it reflects the behavior of the users using the APIs)

Cons: It is dependent and relies on another endpoint (as you already mentioned)

I prefer using the GET method instead of querying the database because an integration test is not about focusing on the internal implementation details like the database, but combining both approaches is possible (especially when you are not sure that the GET endpoint works correctly).

Steps to take for the combination approach: 1- make post request 2- assert response.status_code of the post request 3- make get request 4- assert response.status_code of the get request 5- assert whether the foo item is in the response body 6- query the database 7- assert foo item

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

79257587

Date: 2024-12-06 10:11:53
Score: 2
Natty:
Report link

I do not see a picture but what you can do is :

1)Check in what class the or paragraph is in (e.g ) via the Inspect tool or F12.

2)go to your Appearance -> Custom css.

3)Add a display:none to that class in the end of your file and save. (e.g .woo-wrapper-choice{display:none}

There is probably a way to do this using php with hook so it won't generate at all but I cannot check the functions right now.

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

79257585

Date: 2024-12-06 10:10:53
Score: 1
Natty:
Report link

Based on the data you provided, a compact alternative could be using the package WorldMapR and its function worldmap:

europedf <- as.data.frame(europe)

europedf[1:3,] # show first rows of the data

worldplot(data = europedf,
          ColName = "Production",
          CountryName = "Country",
          CountryNameType = "name",
          latitude = c(35,72), longitude = c(-24,40),          # focus on Europe
          palette_option = brewer.pal(n = 8, name = "Blues"),
          annote = T,                                          # If you want labels
          div = 0.8                                            # dimensions option
          )

enter image description here

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

79257574

Date: 2024-12-06 10:08:52
Score: 1
Natty:
Report link

If you are using Azure custom DNS servers (eg VMs configured in your VNET DNS settings) or Azure DNS resolver you can also configure conditional forwarding for these FQDNs from local/on-prem to your Azure custom DNS servers and your Azure custom DNS servers should forward them to Azure provided DNS (168.63.129.16). Also your private DNS zones in Azure should be linked to VNET where DNS servers reside and all other VNETS (if any) should be peered for proper DNS resolution.

I've encountered this issue too, shame that MS docs doesn't provide this information on AMPLS configuration guide (api.loganalytics.io and api.applicationinsights.azure.com are not mentioned at all).

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

79257569

Date: 2024-12-06 10:06:52
Score: 0.5
Natty:
Report link

Go to File > Sync Project with Gradle Files.

Then, go to File > Invalidate Caches / Restart and choose Invalidate and Restart.

This should resolve the issue. It worked for me!

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

79257568

Date: 2024-12-06 10:06:52
Score: 2.5
Natty:
Report link

Use real programming, not flutterflow UI-mouse-dragging degeneracy

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

79257566

Date: 2024-12-06 10:04:51
Score: 10 🚩
Natty: 4.5
Report link

Did you ever figure out a solution? I have the exact same issue/situation as you.

Reasons:
  • RegEx Blacklisted phrase (3): Did you ever figure out a solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the exact same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Jarrod Ariola

79257561

Date: 2024-12-06 10:02:50
Score: 2
Natty:
Report link

Use following steps :

  1. Install Airflow: Use pip install apache-airflow.

  2. Import in Code: Use from airflow import DAG (not apache-airflow).

  3. Test Installation: Run airflow version to confirm.

  4. Place DAG: Save your DAG in ~/airflow/dags/ and start the webserver with airflow webserver and airflow scheduler.

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

79257557

Date: 2024-12-06 10:01:50
Score: 1
Natty:
Report link

Cross aggregate transactions. There is a dogma in subsets of the community that this is always bad.

But we're engineers, and we can be grown ups, understand trade-offs, and knowing when we'd like to "break the rules". Not having the ability to do this has made me favor Postgres many times.

P.S., it would be great to see the documents you're referring to. Maybe this is already in there.

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

79257554

Date: 2024-12-06 10:01:50
Score: 1
Natty:
Report link

In my opinion, the best approach will depend on your specific use case.

If the verification process is crucial for security, the second approach can help ensure that users are properly verified before accessing sensitive information.

If the verification process is simple (email verification), the first approach might be sufficient. For more complex scenarios (phone number verification, manual review), the second approach offers better control.

Or you can consider mixed approach

Initial Navigation to ProfileScreen show a clear message about the need for verification. Redirect to VerifyAccountScreen if the user tries to access sensitive features.

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

79257553

Date: 2024-12-06 10:01:50
Score: 2.5
Natty:
Report link

Hope you are doing well.

In short, in upgradeable smart contracts, you need to extend the Initializable contract and use the initialize function, because there is no constructor

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Elif Hilal Umucu

79257552

Date: 2024-12-06 10:00:50
Score: 2.5
Natty:
Report link

I have also same Issue using storybook 8.4.5 in angular 19.0.0 In other project where i installed storybook 8.4.4 with angular 18.2.0 is working

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

79257512

Date: 2024-12-06 09:46:47
Score: 2
Natty:
Report link

@RequestBody will expect JSON/XML as body, and if you are sending key/value pairs then you need to either use @ModelAttribute to bind directly to your FilterObj or use MultiValueMap to (sort of manually) parse pairs and use them in your controller.

Or, if you control the client of your REST service, then use json to send objects to your endpoint.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @RequestBody
  • User mentioned (0): @ModelAttribute
  • Low reputation (0.5):
Posted by: embuc

79257511

Date: 2024-12-06 09:45:47
Score: 2
Natty:
Report link

Look likes you are using Next.js version 14 with App Router. You can retrieve id from params prop directly in server.

'use server'

export default async function Dashboard({
    params: { id },
}: {
    params: { id: string }
}) {
    const data = await fetchData(id)

    return (...);
}

References:

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

79257505

Date: 2024-12-06 09:43:46
Score: 0.5
Natty:
Report link

The issue arises because my UI test scripts and API test scripts are organized in different folders and at different directory levels, but they share the same before() method in the e2e.ts file. And in before() method, I use jsonPath to analyze data.

before() method in e2e.ts file. readDataFile() method use jsonPath

before(() => {
  const conditionFile = path.join('data', Constant.PreTest);
  cy.task('readDataFile', conditionFile).then((data) => {
    .....
  });
})

enter image description here

Solution 1: Consolidate API and UI test scripts into the same folder to ensure consistent execution. Solution 2: Modify the before() method in e2e.ts to handle both API and UI test scripts seamlessly, regardless of their folder structure or directory level.

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

79257500

Date: 2024-12-06 09:42:45
Score: 6.5 🚩
Natty:
Report link

Rui, be professional, if you're going to thumbs down twice with above, explain coherently why, you're a devops specialist, why keep silent?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Random Me

79257493

Date: 2024-12-06 09:38:44
Score: 2
Natty:
Report link

Try to use OCSID namespace.

https://docs.oracle.com/en/database/oracle/oracle-database/19/jjdbc/JDBC-standards-support.html#GUID-1987FAC4-E93A-49A5-9EB4-A78B465E6938

// "conn" is an instance of java.sql.Connection:
conn.setClientInfo("OCSID.CLIENTID", "Alice_HR_Payroll");
conn.setClientInfo("OCSID.MODULE", "APP_HR_PAYROLL");
conn.setClientInfo("OCSID.ACTION", "PAYROLL_REPORT");
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Michal

79257484

Date: 2024-12-06 09:35:43
Score: 1.5
Natty:
Report link

Set your programs to start at login through the task scheduler.

The Explorer startup sequence has a number of phases, carefully arranged to get visible things ready first, and less visible things ready later. And one of the lowest priority items is the Startup group.

Other references you should read:

Performance gains at the cost of other components

Startup apps start up when I tell them

Starting up inside the box

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: 許恩嘉

79257479

Date: 2024-12-06 09:33:43
Score: 2
Natty:
Report link

Very simple answer lol. I just had to hit control-shift-R to delete the browser's cache.

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

79257475

Date: 2024-12-06 09:31:43
Score: 1
Natty:
Report link

if it's a script inside package.json you can try:

"build": "export NODE_OPTIONS=--openssl-legacy-provider; REST OF YOUR COMMAND"

or try to add a .npmrc file with

node-options=--openssl-legacy-provider

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

79257471

Date: 2024-12-06 09:30:42
Score: 3.5
Natty:
Report link

See comment. padding to get to ldngth restrictionbbbbbbbbbbbbbbbbbbbbbb hhhhhjjjjjj*jjjjjjjjjjj hjjjjjjjjjjjjjjjjjjjjj

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Filler text (0.5): bbbbbbbbbbbbbbbbbbbbbb
  • Filler text (0): jjjjjjjjjjj
  • Filler text (0): jjjjjjjjjjjjjjjjjjjjj
  • Low reputation (1):
Posted by: OetkenPurveyorOfCode

79257464

Date: 2024-12-06 09:28:41
Score: 1
Natty:
Report link

I have also encountered this problem yet.

I read the source code of decode_packet_trace.py , if the cmd is 1 or 4, it means ReadReq or WriteReq; if the cmd is 30 or 32, it means MemRead or MemWrite. However, the decode_packet_trace.py only marked ReadReq and WriteReq as 'r'/'w', but MemRead and MemWrite are marked as 'u'.

Considering that you place monitor over the membus, all traces are MemRead/MemWrite, so they are all marked as 'u'.

You can correct the decode_packet_trace.py to correct this problem.

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

79257457

Date: 2024-12-06 09:26:40
Score: 1
Natty:
Report link

The line pd.to_numeric(read['Gross'], errors='coerce') is correct for converting a column with potentially non-numeric values to numeric values in pandas. However, when errors='coerce' is used, any non-numeric value in the column will be replaced with NaN.

for Example:

data = {'Gross': ['1234', '$4567', '789a', '12,345', None]}

read = pd.DataFrame(data)

Clean and convert

read['Gross'] = read['Gross'].astype(str).str.replace(',', '').str.replace('$', '').replace('nan', '')

read['Gross'] = pd.to_numeric(read['Gross'], errors='coerce')

Handle NaN

read['Gross'].fillna(0, inplace=True)

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

79257456

Date: 2024-12-06 09:26:40
Score: 0.5
Natty:
Report link

This is kind of non-trivial task, because from single photo you can't determine object silhouette from incoming light direction. Quite common approach is to take contour of object from camera perspective, flip it horizontally and apply some shear to match light direction. Little more advanced technique involves "extrude" the shadow in direction of object depth. Like if you have brush in shape of the sheared shadow and draw a line with it. Then give it some opacity and Gaussian blur to make it look like real shadow.

You can project 3D vectors up, front and side to 2D space of your image and then use the result vectors to transforms of your shadow, the result will be valid.

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

79257446

Date: 2024-12-06 09:22:40
Score: 1.5
Natty:
Report link

Just if anyone is still coming across this issue...

I found that it was an issue with Jupyter Notebooks, I turned transparent off in my imported function for saving figures and then later when updating arguments like (transparent=False, facecolour='white') e.c.t. it didn't turn the background back on after re-importing the functions... Just needed to restart the Jupyter Notebooks Kernel and everything worked again without needing to define transparent e.c.t as the default is on.

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

79257443

Date: 2024-12-06 09:21:39
Score: 2.5
Natty:
Report link

Am i correct to understand that if you use an APNs authentication key which never expires there is nothing to be done but if you use an apple APN certificate you do have to create a new one?

Or If I'm using firebase, no matter what auth option i gave them to Apple's APNs I'm good.

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

79257440

Date: 2024-12-06 09:20:39
Score: 1
Natty:
Report link

Finally found a hot fix using the watch from_date. so whenever the date picker changes to the format '2024-01' I'll add '-01' to the end of it.

watch: {
    from_date(val) {
      if (val && val.length === 7) {
        this.from_date = val + '-01'
      }
    }
  }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Clinton Njiru

79257438

Date: 2024-12-06 09:20:39
Score: 0.5
Natty:
Report link

Your sprintf is incorrect. It should be

str := fmt.Sprint("SELECT cidr FROM %v WHERE asn=?;", conf.SQLiteASN2CIDR)

Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Suyash Medhavi

79257432

Date: 2024-12-06 09:18:38
Score: 2
Natty:
Report link

Please switch user as jenkins in master node:

  1. sudo su - jenkins 2.Now generate the key using ssh-keygen ssh-keygen

  2. Copy the cat id_rsa to your jenkiens credentials

  3. Copy the cat id_rsa.pub to your agent node ubuntu@agent:~/.ssh$ vi authorized_keys

  4. now test the connection

Hope this weil work for you

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: T.S.Sundar Raj

79257429

Date: 2024-12-06 09:16:38
Score: 1
Natty:
Report link

I know this isn't the best solution, but it works.

inputStream.pipe(decipherStream).pipe(outputStream);
decipherStream.on("error", e => console.log("error", e));
decipherStream.once("close", () => outputStream.writableEnded || outputStream.end());
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: peng ge

79257421

Date: 2024-12-06 09:14:37
Score: 4.5
Natty:
Report link

I finally found the documentation to achieve this: https://developers.cloudflare.com/speed/optimization/content/prefetch-urls/

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Alexandre Schaffner

79257407

Date: 2024-12-06 09:10:36
Score: 1.5
Natty:
Report link

python.exe -m pip install --upgrade pip

Try to run this command to resolve this Cannot uninstall numpy 1.21.2, RECORD file not found

run the above command it worked form me

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Naveen kumar Kota

79257406

Date: 2024-12-06 09:10:36
Score: 2
Natty:
Report link

As of 2024, there is now an experimental Document Picture-in-Picture API.

But check the browser compatibility before using it.

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

79257402

Date: 2024-12-06 09:09:35
Score: 3.5
Natty:
Report link

maybe,you can use this keyword in ts enter image description here

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: a human

79257386

Date: 2024-12-06 09:05:33
Score: 6 🚩
Natty: 5
Report link

After submitting the form the abuse is now off for my subscription can I turn it back on if I want to and how to do so ?

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: wass19932705

79257381

Date: 2024-12-06 09:03:32
Score: 0.5
Natty:
Report link

Disclaimer

This is an anekdote when we use the 425 Too Early. It differs from the ietf-425-definition


We have two systems

A) A fast one, legacy, better request seldomly

B) A smothly scaling API connected to a standard database (MySQL)

Whilst the legacy system gets updates within seconds, the API relies on the database, which gets updates from 3 to 5 hours later.


Requesting the API will lead to three different answers:

  1. Requested source is already in the database => 200 OK

ELSE: Requesting the general existance of the data

  1. Requested source neither in the database nor in the legacy system => 404 Not Found
  2. Requested resource can be found in the legacy system => 425 Too Early

No°1, obviously, delivers the full dump of requested data, whilst No°3 only indicates that there will be available data in the near future without specifying the ETA.

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

79257378

Date: 2024-12-06 09:02:32
Score: 3
Natty:
Report link

Have you tried the Webcomponent-based Native Federation?

You can find an article about this topic here: https://www.angulararchitects.io/blog/micro-frontends-with-modern-angular-part-2-multi-version-and-multi-framework-solutions-with-angular-elements-and-web-components/

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Bence Nemeth

79257375

Date: 2024-12-06 09:01:31
Score: 3
Natty:
Report link

I have a similar problem (until I found this question I felt like the only SwiftUI dev targeting macOS…). I think it's a SwiftUI bug. I have the Table backed by FetchedResults, and the performance issue also happens when I change the sortDescriptors.

Anyway, I am using an ugly workaround where I set a tableIsRefreshing state variable to true and replace the Table with a ProgressIndicator meanwhile. Adapted to your code this might look like this:

struct TableTest: View {

    @State private var tableIsRefreshing = false
    @State private var items: [Person] = (0..<500000).map { _ in Person() }

    var body: some View {
        VStack {
            if tableIsRefreshing {
                VStack {
                    Spacer()
                    ProgressView()
                    Spacer()
                }
            } else {
                Table(items) {
                    TableColumn("Name", value: \.name)
                    TableColumn("Age") { person in Text(String(person.age)) }
                }
            }
        }
        .toolbar {
            ToolbarItem() {
                Button("Clear") {
                    tableIsRefreshing = true
                    items = []
                    tableIsRefreshing = false
                }
            }
        }
    }

    struct Person: Identifiable {

        let id = UUID()
        let name: String = ["Olivia", "Elijah", "Leilani", "Gabriel", "Eleanor", "Sebastian", "Zoey", "Muhammad"].randomElement()!
        let age: Int = Int.random(in: 18...110)
    }
}

You might need to add a DispatchQueue.main.asyncAfter delay if this doesn't work.

I hope the bug gets fixed, please submit a bug report similar to mine: http://www.openradar.me/FB13639482

Reasons:
  • Blacklisted phrase (1): I have a similar problem
  • RegEx Blacklisted phrase (1): I hope the bug gets fixed, please
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I have a similar problem
Posted by: Stefan

79257371

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

I have the same problem, it's not due to Apache POI, but it's an editing with LibreOffice ! When you delete a row with LibreOffice, the last row index is set to max rows available (1048575).

If you use Excel, you don't have the problem ...

For the moment, I don't have the solution ...

In my case, I have exclude my check of number of row when the getLastRowNum() return 1048575 ... (I suppose the file is editing with LibreOffice and my check is not possible !).

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Florian

79257369

Date: 2024-12-06 08:59:30
Score: 8.5 🚩
Natty: 5.5
Report link

may I ask how you solved this problem?

Reasons:
  • Blacklisted phrase (1): may I ask
  • RegEx Blacklisted phrase (1.5): solved this problem?
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Viktor Rustoff

79257366

Date: 2024-12-06 08:59:29
Score: 8.5
Natty: 7
Report link

I have a small question on this topic. Is it possible here not to count the answers but to show percent? For example for climate change it would show me 50%, 25% and 25%.

I guess i need to change the code "add_count" with another code, to get this output?

Thanks in advance

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): i need
  • RegEx Blacklisted phrase (3): Thanks in advance
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: VasKnox

79257360

Date: 2024-12-06 08:54:27
Score: 7.5 🚩
Natty:
Report link

Rui, why did you give me a thumbs down?

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Random Me

79257341

Date: 2024-12-06 08:47:25
Score: 1
Natty:
Report link

This is a peer dependency issue. The create-react-app is try to install @testing-library/[email protected], but it doesn't support React 19. You can either use yarn/pnpm/bun or downgrade to React 18.

npm install -g yarn
yarn create react-app <your_app_name>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nam Nguyen

79257340

Date: 2024-12-06 08:46:25
Score: 1
Natty:
Report link

The --collect flag is an option for code coverage. If you prefer to work in the CLI, you can exclude projects as follows:

dotnet test --no-build --collect "Code Coverage;Exclude=[Exclude.Project.*],[Python.*]"

For example, this will exclude all projects with names starting with Exclude.Project and Python.

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

79257338

Date: 2024-12-06 08:45:25
Score: 3
Natty:
Report link

Just to post an answer and close the question the issue was related to an error in build that was not handled correctly causing the service to never create its endpoint, for some reason aspire still thought this was running fine and didnt notify me of any errors.

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

79257337

Date: 2024-12-06 08:45:23
Score: 6 🚩
Natty:
Report link

I am having the same issue, trying to deploy my nextjs app using cpanel

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ayoub oulaarbi

79257318

Date: 2024-12-06 08:37:21
Score: 3
Natty:
Report link

The issue seems to be related to Maven not being installed or configured on your system. Please check if Maven is installed.

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

79257317

Date: 2024-12-06 08:36:20
Score: 0.5
Natty:
Report link

To keep a div height and width flexible and making sure the background image stretches with the div, you need to use background-size: cover or contain values. However, there are pros and cons to both approach

background-size: cover would stretch the image to fit the container, while maintaining aspect ratio. However, it would clip the image if aspect ratio of image does not match that of the container.

background-size: contain would stretch the image to fit the container, while maintaining aspect ratio, AND ensure the entire image is visible at all times. However, it would leave empty spaces to side or above/below the image if aspect ratio of image does not match that of the container.

Lastly background-size: 100% 100% would keep the image stretched to container size, but would result in distortions as it does not try to preserve aspect ratio.

Here is a code you can try out

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Background Image Example</title>
  <style>
    body{
        height: 100vh;
    }
    .background-div {
      width: 100%; 
      height: 100%; 
      background-image: url('https://via.placeholder.com/400x300'); 
      /* Change to contain to see both effects */
      background-size: cover; /* Scale the image to cover the entire div */
      background-repeat: no-repeat; 
    }
  </style>
</head>
<body>
  <div class="background-div"></div>
</body>
</html>

I have created a full HTML Background Images course playlist on YouTube which has detailed coverage of all these options with code examples. Most of code examples in common issues portion are using a div to hold background image so i think you would get good coverage of what you are trying to accomplish and more. I would strongly encourage to watch this so you can handle all of these and result in a professional grade webpage which looks good in all scenarios. It has concept videos as well as individual videos for common issues with background images. Please do let me know if it solved your query. If you like reading instead of watching, you can refer to article series version here

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

79257316

Date: 2024-12-06 08:36:20
Score: 1.5
Natty:
Report link

You can open the page like this:

window.open("https://google.com", _blank, { popup: true });

according to MDN Documentation

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