79534172

Date: 2025-03-25 15:45:10
Score: 3.5
Natty:
Report link

I haven't figured out why, but downgrading the Task version from 5 down to 3 gets rid of the error for me.

enter image description here

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

79534168

Date: 2025-03-25 15:44:10
Score: 0.5
Natty:
Report link
import pandas as pd

data = {'Name': ["Evil Nights", "Perfect Day", "Unknown Song", "Dead End", "Angel Love", "Home Sweet Home", "The Curse"]}

df = pd.DataFrame(data)

negative_keywords = ["Evil", "Night", "Problem", "Sorrow", "Dead", "Curse"]
positive_keywords = ["Amazing", "Angel", "Perfect", "Sunshine", "Home", "Live", "Friends"]

def categorize_song(name):
    if any(word in name for word in negative_keywords):
        return "Negative"
    elif any(word in name for word in positive_keywords):
        return "Positive"
    else:
        return "Neither"

df["Song Category"] = df["Name"].apply(categorize_song)

print(df)

Ouput:

enter image description here

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

79534167

Date: 2025-03-25 15:44:10
Score: 2
Natty:
Report link

I found that the mongodump tool does not like bundled certificates. I was using a .pem file that had the TLS certificate, plus the CA chain bundle of certificates, then the key and got this error. Once I edited the .pem file to only contain the TLS certificate and the key, mongodump worked fine.

The bundle did work with the mongo command though, so I suspect this is an issue only with the mongodump tool. My mongodump tool is version 100.5.2

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

79534164

Date: 2025-03-25 15:42:09
Score: 2.5
Natty:
Report link

Does this solve your situation?

\\+u[0-9A-Fa-f]{4}

Reasons:
  • RegEx Blacklisted phrase (1.5): solve your situation?
  • Low length (1.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: chubbsondubs

79534162

Date: 2025-03-25 15:42:09
Score: 0.5
Natty:
Report link

You need to explicitly define the sequences in your entity class:

@Entity
public class Entity {
    @Id
    @SequenceGenerator(name="seq",sequenceName="your_seq")        
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="seq")               
    private Integer id;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Shreyansh Jain

79534161

Date: 2025-03-25 15:41:09
Score: 3.5
Natty:
Report link

The M4RI C library implements fast matrix multiplication for Matrices over GF(2).

Github: https://github.com/malb/m4ri
Paper: https://arxiv.org/abs/0811.1714

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

79534153

Date: 2025-03-25 15:38:08
Score: 0.5
Natty:
Report link

Here is another solution as suggested by @Parfait in the comments below

library(httr)
library(jsonlite)

# Set your DeepSeek API key
api_key <- "sk-000000000"

# Set the API endpoint URL
api_endpoint <- "https://api.deepseek.com/chat/completions"

# Prepare the request payload
payload <- list(
  model = "deepseek-chat",
  messages = list(
    list(role = "system", content = "You are a helpful assistant"),
    list(role = "user", content = "Hello")
  ),
  stream = FALSE  # Explicitly setting stream to FALSE
)

# Add the necessary headers
headers <- c(
  "Content-Type" = "application/json",
  "Authorization" = paste("Bearer", api_key)  # Correct way to pass API key
)

# Make the POST request
response <- POST(
  url = api_endpoint,
  add_headers(.headers = headers),  # Fixing the header formatting
  body = toJSON(payload, auto_unbox = TRUE, encoding = "UTF-8"),
  encode = "json"
)

# Check the response status code
if (response$status_code == 200) {
  # Parse the response content
  result <- fromJSON(content(response, "text", encoding = "UTF-8"))
  
  # Print the assistant's response
  cat(result$choices[[1]]$message$content, "\n")
} else {
  # Handle errors
  cat("Request failed with status code:", response$status_code, "\n")
  cat("Error message:", content(response, "text", encoding = "UTF-8"), "\n")
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Parfait
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: LocusClassicus

79534148

Date: 2025-03-25 15:37:08
Score: 0.5
Natty:
Report link

It seems that the issue was in mounting spiner container as neighbour of viewer container when model is not loaded. I remove that spiner and issue is not fires again.

I assume that this spinner shifted viewer container out of viewport and all handlers inside the viewer are trying to use those negative canvasY values from container which was out of viewport.

Below you can see my return from React component with viewer. I removed {!modelLoaded && <IdleLoader />} and after that i cannot reproduce this issue.

  return (
    <>
      {!modelLoaded && <IdleLoader />}
      <div ref={container}></div>
    </>
  );
Reasons:
  • Blacklisted phrase (0.5): i cannot
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Evhenii

79534145

Date: 2025-03-25 15:36:07
Score: 0.5
Natty:
Report link

I also encountered same problem. I solved it by first deleting the .gradle folder and downloaded the gradle 8.9 . Extracted it in c:/user/your username/bin-8.9. I also added the same to the environment variables settings.

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

79534139

Date: 2025-03-25 15:34:07
Score: 1
Natty:
Report link
```python
splitterLOO = ot.LeaveOneOutSplitter(sampleSize)
validation = otexp.FunctionalChaosValidation(result, splitterLOO)
r2Score = validation.computeR2Score()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Michael Baudin

79534137

Date: 2025-03-25 15:33:07
Score: 0.5
Natty:
Report link

My problem was a not quite the same; docker compose down postgres did not work. I did not want to down everything. Solved with docker compose kill postgres.

Your issue was the external network. From the Docker documentation on docker compose down:

Stops containers and removes containers, networks, volumes, and images created by up.

By default, the only things removed are:

  • Containers for services defined in the Compose file.

  • Networks defined in the networks section of the Compose file.

  • The default network, if one is used.

Networks and volumes defined as external are never removed.

Anonymous volumes are not removed by default. However, as they don’t have a stable name, they are not automatically mounted by a subsequent up. For data that needs to persist between updates, use explicit paths as bind mounts or named volumes.

Your docker-compose.yml is leeching on the existing network called stormy-network. It would be bad if docker compose down removed a network belonging to a different project. From your description I'm guessing that you didn't actually have a network in another project that you wanted to connect to. Maybe you meant network mode host?

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: grofte

79534132

Date: 2025-03-25 15:30:06
Score: 2
Natty:
Report link

maybe its very late... but the issue is when the app is on PROD. it will not seed if you dont force it

with --force option

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

79534130

Date: 2025-03-25 15:30:06
Score: 4.5
Natty:
Report link

Problem solved, the issue is related to the transformers dependency.

See: https://github.com/Blaizzy/mlx-vlm/issues/274

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

79534127

Date: 2025-03-25 15:28:05
Score: 3
Natty:
Report link

I just came across this same issue today. The problem was that the user was suspended.

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

79534119

Date: 2025-03-25 15:23:04
Score: 11.5
Natty: 7.5
Report link

Thanks for your question as I have the same issues.

@Skin's answer works best when I need to extract only one item from an array. But in case I want to get a list of values such as [mv_something1, mv_something2...], what would be the feasible solution?

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): I have the same issue
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Ends in question mark (2):
  • User mentioned (1): @Skin's
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Bao Nguyen

79534116

Date: 2025-03-25 15:20:03
Score: 5
Natty:
Report link

I don't have enough reputation to comment yet.
I want to add more on @BSSchwarzkopf response.

for VS2022, if you want to compare vice-versa (in opposite direction) you can't do that.
it will always compare older_branch vs newer_branch .
older_branch = branch that last commit date is earlier.
newer_branch = branch that last commit date is latest.
no matter what branch you checkout.

Reasons:
  • Blacklisted phrase (1): to comment
  • RegEx Blacklisted phrase (1.5): I don't have enough reputation to comment
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • User mentioned (1): @response
  • Low reputation (1):
Posted by: N. Wigi

79534114

Date: 2025-03-25 15:20:02
Score: 9 🚩
Natty: 5.5
Report link

Were you able to find the problem? I have the same problem with an Intel 13th Gen CPU... onboard graphics card (Intel)

Intel network card... but ESXi v7 starts!

But I also need v6.7... :-/

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: chv

79534103

Date: 2025-03-25 15:16:01
Score: 2.5
Natty:
Report link

I did that before. But i forget the actual application.

The answer for your question is "Indirect" function.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ho Wai Yan Arthur

79534100

Date: 2025-03-25 15:15:01
Score: 2.5
Natty:
Report link

you can use the flutter pack https://pub.dev/packages/flutter_quill_to_pdf.

It is compatible with the latest version of flutter_quill.

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

79534087

Date: 2025-03-25 15:09:59
Score: 2.5
Natty:
Report link

I was having the same issue and the problem was that the Model I was using for the Page wasn't the Model i had given the Edit Context. I was calling initialize, creating a new Model instance, passing that to the EditContext and then calling my reset function on the form. well my reset function overwrote the Model with a new object instance. this meant that the Form Model and the EditContext Model weren't the same object anymore.

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

79534077

Date: 2025-03-25 15:06:59
Score: 1
Natty:
Report link

You can provide these details in Play Console. Please note the following requirements when providing login credentials:

  • Your login credentials must be accessible at all times, reusable, and valid regardless of user location.
  • Your login credentials must be maintained at all times without any error. For example, if your app typically requires a 2-Step Verification code or One-Time Password, make sure to provide reusable login credentials that can bypass these requirements. If the provided password expires, we may not be able to review your app and, therefore, the app may be rejected.
  • Your login credentials must be provided in English. If your login credentials are typically in a non-English language, provide an English language version of all necessary login credentials via Play Console.
  • If your login credentials are not numeric or alphanumeric (for example, a QR code or barcode), generate a static URL and upload it to Play Console.
  • If your app requires users to set up their own password (for example, a PIN) to access in-app content, be sure to provide clear instructions.
  • If your app requires login credentials involving other accounts (such as “sign in with Google, Facebook”, or similar), provide all account information with detailed instructions. Clear and simple instructions will help ensure a smooth review process.
  • If your app normally uses a location-dependent password (for example, geo-gate), provide login credentials that are valid regardless of user location (for example, “master” login credentials).
  • If your app does not require login credentials but you have functionalities or content behind a subscription paywall, please provide additional instructions or access details that will allow us to fully and freely access and review the app behind the paywall.

Requirements for providing login credentials for app access, emphasis mine

Reasons:
  • RegEx Blacklisted phrase (2.5): please provide
  • Long answer (-1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Albert221

79534068

Date: 2025-03-25 15:04:58
Score: 3.5
Natty:
Report link

Looks like the example is not complete. Fails to file /Account/SignIn

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

79534047

Date: 2025-03-25 14:55:56
Score: 4
Natty: 4.5
Report link

Any update regarding this? I saw that bug on the plugin repo is closed as invalid.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: George Marian Robu

79534046

Date: 2025-03-25 14:54:55
Score: 2
Natty:
Report link

Looks like you’re on the right track with secret scanning and blocking, but for the alerts to show up, you need to enable them specifically in the settings. You’ll want to go into your repository settings and make sure Secret Scanning Alerts is turned on in the Security & Analysis section. Once that’s done, the alerts for secrets should pop up in the overview. I've been in a very similar situation.

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

79534045

Date: 2025-03-25 14:54:55
Score: 1
Natty:
Report link
Properties properties;
new HashMap<>(properties).toString()
    .replace(',', '\r');

without values truncation. The replace call is for the case if you want to list properties in a column.

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

79534043

Date: 2025-03-25 14:54:55
Score: 1.5
Natty:
Report link
I was posting this answer on behalf of @Dixy Barahona because it would be helpful for the community members if they are facing the same issue.
 
- The problem is that the required packages were not being installed correctly during deployment. Initially, Dixy had tried using GitHub Actions to install the packages, but there was likely an issue with the `.yml` configuration that prevented the installation from succeeding.
 
To solve the problem, Use **Azure CLI (`az cli`)** for deployment. This method automatically bundles everything, including the necessary packages, and uploads them to Azure, check that all dependencies are properly installed.
 
Here is a basic command to deploy using `az cli`:
 
```bash
az functionapp deployment source config-zip \
  --resource-group <resource-group-name> \
  --name <function-app-name> \
  --src <path-to-your-zip-file>
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same issue
Posted by: Pavan

79534034

Date: 2025-03-25 14:52:54
Score: 0.5
Natty:
Report link
.sidebar::-webkit-scrollbar {
    display: inherit;
    width: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.4);
    -webkit-border-radius: 8px;
}
.sidebar::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: rgba(100,100,100,0.8);
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.4);
}
.sidebar:hover::-webkit-scrollbar {
    width: 10px;
}
.sidebar:hover::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.4);
    border-radius: 8px;
    -webkit-border-radius: 8px;
}

. sidebar:hover::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: rgba(100,100,100,0.8);
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.4);

}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: FancyCoder

79534029

Date: 2025-03-25 14:51:54
Score: 2
Natty:
Report link

Deleting a folder in browser:

enter image description here

Deleting a file in browser:

enter image description hereenter image description here

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

79533981

Date: 2025-03-25 14:31:50
Score: 1
Natty:
Report link

There is an easy wa to do this:

QMessageBox messageBox(QMessageBox::Warning, tr("Sure?"), tr("Click Yes or No"), QMessageBox::NoButton, this);
messageBox.addButton(tr("No"), QMessageBox::NoRole);
messageBox.addButton(tr("Yes"), QMessageBox::YesRole);
boolean reply = messageBox.exec();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user8471965

79533976

Date: 2025-03-25 14:31:50
Score: 1
Natty:
Report link

If memory serves, v3.8.1 was the last release that was Python 2.7 compatible. Best of luck!

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Alex Grönholm

79533964

Date: 2025-03-25 14:23:49
Score: 2
Natty:
Report link

Careful cross-validation, ensembles, careful data preprocessing can to specific extend reduce the loss and achieve the tuner-specified optimal parameters

Using techniques like k-fold cross-validation ensures that the model is evaluated on different subsets of the data, reducing bias.

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

79533963

Date: 2025-03-25 14:23:49
Score: 0.5
Natty:
Report link

There are three ways new drivers can be put into the kernel

  1. 1. Re-linking the Kernel and Rebooting

    ➡ Explanation:

    This method requires manually adding the driver code to the kernel, recompiling it, and then rebooting the system for changes to take effect.

    Older UNIX systems (e.g., early versions of Linux and BSD) worked this way.

    ➡ Advantages:

    ✔ Ensures tight integration of the driver with the OS.

    ✔ Can lead to better stability and performance if done correctly.

    ➡ Disadvantages:

    ❌ Inconvenient—requires a reboot, causing system downtime.

    ❌ Complex process—requires technical expertise to compile and configure the kernel.

    ➡ Example:

    If you needed to add a new file system driver in an early UNIX system, you would have to:

    1. Add the driver code to the kernel source.

    2. Recompile the kernel.

    3. Reboot the system for the changes to apply.

    ---

    2. Declaring the Driver in an OS File and Rebooting

    ➡ Explanation:

    In this method, the OS does not require recompiling the kernel. Instead, you make an entry in a configuration file to tell the OS to load the driver during boot.

    Windows uses this method, where it detects necessary drivers at startup and loads them automatically.

    ➡ Advantages:

    ✔ Easier than recompiling—no need to modify kernel code manually.

    ✔ More flexible—allows adding or removing drivers without modifying the core system.

    ➡ Disadvantages:

    ❌ Still requires a reboot, causing system downtime.

    ➡ Example:

    In Windows, when you install a new graphics card, the OS might detect that a driver is missing and prompt you to install it.

    After installation, the system requires a reboot to load the driver properly.

    ---

    3. Loading Drivers On-the-Fly (Without Rebooting)

    ➡ Explanation:

    This is the most modern and flexible method, where the OS allows dynamically loading new drivers while it is running.

    The driver is installed and used immediately, without requiring a reboot.

    Modern Linux distributions and Windows versions support this method.

    ➡ Advantages:

    ✔ No downtime—drivers can be installed, updated, or removed without restarting the system.

    ✔ More user-friendly—used in plug-and-play devices like USB drives, printers, and external monitors.

    ➡ Disadvantages:

    ❌ If a driver is faulty, it may cause system instability without a clean reboot.

    ➡ Example:

    When you plug in a USB device, the OS automatically detects the hardware and loads the required driver without restarting.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Godson Kumi Ebo Arthur

79533962

Date: 2025-03-25 14:22:49
Score: 1.5
Natty:
Report link

Variable Scope

The scope of the variable you declared inside the Main method is local and hence it remains relevant within that scope, outside that method you cannot use it and that is why the compiler will print the value of that variable declared in the class level.

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

79533953

Date: 2025-03-25 14:19:48
Score: 1
Natty:
Report link

I made a mistake when connecting the library

I put my jar file in the custom_lib folder in the Solr root directory.

Include the jar file by defining the below line in solrconfig.xml conf file:

 <lib dir="${solr.install.dir:../../../..}/custom_lib/" regex=".*\.jar" />

The completed project with the installed plugin can be viewed at the link:

https://github.com/EvadS/my-first-solr-plugin

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

79533946

Date: 2025-03-25 14:18:48
Score: 1.5
Natty:
Report link

I had to give the sender permission at the Event Grid Domain level to resolve this issue. I was myself expecting the granular permissions to be at domain topic level as per the docs. However this does not seem to be the case. With the top level permissions in place i was expecting it to fail when i removed the topic level permissions but it didn't.

Apologies this is only answer, I know of at this time.

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

79533944

Date: 2025-03-25 14:16:47
Score: 1.5
Natty:
Report link

Counting unique clients per date/time:
B9: =UNIQUE(Table1[Appt Details])
A9: =COUNT(UNIQUE(FILTER(Table1[Client Number],Table1[Appt Details]=C10)))

Counting unique clients per date:
B13: =UNIQUE(INT(Table1[Appt Details]))
A13: =COUNT(UNIQUE(FILTER(Table1[Client Number],INT(Table1[Appt Details])=C14)))

Assuming that Table1 is A1:B7, with header in first column.

enter image description here

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Vlado Bošnjaković

79533938

Date: 2025-03-25 14:15:47
Score: 2.5
Natty:
Report link

Why is there margin-left:300px on #gib styles. On a screen of less than 300 pixels, this can make #gib disappear

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Starts with a question (0.5): Why is the
  • Low reputation (0.5):
Posted by: AlainPre

79533929

Date: 2025-03-25 14:12:46
Score: 1.5
Natty:
Report link

I think you first need to access a story within selectedItem like

const story = selectedItem.story;

and then this:

const content = story.contents;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Manas Aggrawal

79533916

Date: 2025-03-25 14:09:45
Score: 2
Natty:
Report link

To add an inner shadow effect inside the TextFormField widget in Flutter, you'll need to use the BoxDecoration for the TextFormField's container. Flutter doesn't directly support an "inner shadow" out of the box, but you can simulate it by creating a Container around the TextFormField and applying the shadow to that container.

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

79533915

Date: 2025-03-25 14:08:45
Score: 3
Natty:
Report link

I tested it just now (5 years later) with opencv 4.11. The function with the default algorithm (spaghetti) is not taking the pixels with value 0 to make CC, except the background. Here with this image I get only 7 CC.

enter image description here

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

79533906

Date: 2025-03-25 14:06:45
Score: 0.5
Natty:
Report link

Eu consegui ajustar desta forma no arquivo android\app\build.gradle, estava com problema com o processo de construção do aplicativo

tasks.whenTaskAdded { task ->
    if (task.name.contains('assembleProd') || task.name.contains('assembleHomolog')) {
        task.doLast {
            def flavor = task.name.contains('Prod') ? 'prod' : 'homolog'
            copy {
                from "${buildDir}/outputs/apk/${flavor}/release"
                into "${rootProject.buildDir}/app/outputs/flutter-apk"
                include '*.apk'
            }
        }
    }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Maiquel Gonçalves

79533900

Date: 2025-03-25 14:05:44
Score: 5.5
Natty: 5
Report link

I have the same problem as yours, maybe try sim_residuals <- simulateResiduals(model_fitted,plot = T,n=>1) , try changing the n(number of simulations) as mentioned here (https://cran.r-project.org/web/packages/DHARMa/vignettes/DHARMa.html#general-remarks-on-interperting-residual-patterns-and-tests), additionally try adding dispersion model as well after checking plotResiduals(sim_residuals, data$pred1). Hope it helps.

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

79533892

Date: 2025-03-25 14:03:43
Score: 2
Natty:
Report link

This is a problem with the updated handler. By default the redirect() method responds with a "302 found" HTTP Response Code.

You have to change the Response Code to "303 See Other" by changing your "return redirect(...)" to "return redirect( ... ,303)".

Found in the Book "Hypermedia Systems"

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

79533891

Date: 2025-03-25 14:02:43
Score: 1.5
Natty:
Report link

If you want the background color of the changed lines in the difference-view, you can go

Settings -> Editor -> Color Scheme -> Diff & Merge

then modify the colors that you need.

enter image description here

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

79533888

Date: 2025-03-25 14:02:43
Score: 3.5
Natty:
Report link

Starting from Artifactory 7.104.13, Artifactory is now support Noble distribution (Ubuntu 24.04)

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

79533886

Date: 2025-03-25 14:00:43
Score: 0.5
Natty:
Report link

A Scatter chart is created using NewScatter(). This works well for Cartesian coordinates where each (x, y) is treated as a data point.
The x-axis and y-axis are set to numeric values (not categorical) using charts.WithXAxisOpts() and charts.WithYAxisOpts().

package main

import (
    "log"
    "math"
    "net/http"

    "github.com/go-echarts/go-echarts/v2/charts"
    "github.com/go-echarts/go-echarts/v2/opts"
)

func main() {
    line := charts.NewScatter()

    line.SetGlobalOptions(
        charts.WithTitleOpts(opts.Title{Title: "Cartesian Coordinates Example"}),
        charts.WithXAxisOpts(opts.XAxis{Type: "value", Name: "X-Axis"}),
        charts.WithYAxisOpts(opts.YAxis{Type: "value", Name: "Y-Axis"}),
    )

    radius := 10.0
    numPoints := 100
    data := generateCircleData(radius, numPoints)

    line.AddSeries("Circle", data)

    http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
        err := line.Render(w)
        if err != nil {
            log.Println("Error rendering chart:", err)
        }
    })

    log.Println("Starting server at http://localhost:8081")
    http.ListenAndServe(":8081", nil)
}

func generateCircleData(radius float64, numPoints int) []opts.ScatterData {
    data := make([]opts.ScatterData, 0, numPoints)
    for i := 0; i < numPoints; i++ {
        theta := 2 * math.Pi * float64(i) / float64(numPoints) // Angle in radians
        x := radius * math.Cos(theta)                         
        y := radius * math.Sin(theta)                        
        data = append(data, opts.ScatterData{Value: [2]float64{x, y}})
    }
    return data
}

enter image description here

Reasons:
  • Blacklisted phrase (1): thX
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
Posted by: Szymon Roziewski

79533883

Date: 2025-03-25 14:00:43
Score: 1
Natty:
Report link

I think I get it from OnApplyTemplate, in the code behind like this one:

protected override void OnApplyTemplate()
{
    base.OnApplyTemplate();
    scrollbar = GetTemplateChild("Scrollbar") as Border;   
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: infinitesimal

79533873

Date: 2025-03-25 13:57:42
Score: 5
Natty: 5
Report link

Here is the source about timeouts: https://learn.microsoft.com/en-us/troubleshoot/azure/app-service/web-apps-performance-faqs#why-does-my-request-time-out-after-230-seconds

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

79533872

Date: 2025-03-25 13:57:42
Score: 1.5
Natty:
Report link

You need to run your app in release mode if you want it to keep opening even while disconnected from your computer.

You can do that on Xcode by editing your Run Scheme and choosing Release in Build Configuration

OR

on Android Studio, click Run in the menu bar, and choose Flutter Run in Release Mode

Xcode

enter image description here

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

79533870

Date: 2025-03-25 13:55:41
Score: 3
Natty:
Report link

In the connection manager, choose the parameterize and choose account key. This will be created as a parameter in the project.params and you can edit it for different environments

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

79533868

Date: 2025-03-25 13:53:41
Score: 3.5
Natty:
Report link

Recently I tested the solution proposed by Юрий Зеленский and it works perfectly.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Leonard Petit-Breuilh

79533862

Date: 2025-03-25 13:50:40
Score: 2
Natty:
Report link

Thanks @harel for the answer, you can also set the key/value on the MapEntry without casting it by setting the fields using the field numbers:

if (field.isMapField()) {
    Descriptors.Descriptor messageType = field.getMessageType();
    // see com.google.protobuf.MapEntryLite for field numbers
    Descriptors.FieldDescriptor keyField = messageType.findFieldByNumber(KEY_FIELD_NUMBER); // KEY_FIELD_NUMBER = 1
    Descriptors.FieldDescriptor valueField = messageType.findFieldByNumber(VALUE_FIELD_NUMBER); // VALUE_FIELD_NUMBER = 2
    Message.Builder entryBuilder = builder.newBuilderForField(field);
    entryBuilder.setField(keyField, key);
    entryBuilder.setField(valueField, value);
    builder.addRepeatedField(field, entryBuilder.build());
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @harel
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: jazd

79533858

Date: 2025-03-25 13:48:39
Score: 0.5
Natty:
Report link

A GUI tool for macOS showing the stack after a PostScript code, with a manually entered input stack

On macOS, you can build a graphic tool which show the stack after running a code.

(Disclaimer: I was helped with an AI for a part of the AppleScript code, specially the line set shellCommand to ..., as I needed a stack viewer for learn the PostScript code).

  1. Open the Shortcut app and click on "+" to create a new shortcut. By default, you obtain a window with no actions, and a default title "Title". Click on the defautl title and rename it "PostScript Stack viewer". You can also change the default icon and color. For example, search for a spanner.

Change the icon

  1. In the right side of the windows, search for the action "Ask for Input", add it (double click or dragging).

Add "Ask for Input" action

  1. Click on "Prompt" and change it for Input stack (ex. "3 4").

"Input stack" prompt

  1. Add a second action "Ask for Input" under the first, and change "Prompt" with "Input the PostScript code (ex. "add")". Click on Show more and be sure that Allow multiples lines is checked.

"Input the PostScript code" prompt

  1. Search the "Text" action and add it under the two previous actions, then right-click on the field and choose "Insert Variable > Select Variable"

Insert a variable

Then click on the first "Ask for input" (cercled in red here):

Select the first "Ask for input"

This will add the input stack in the Text object.

The stack input content is added in the Text object

  1. Add a space, then right-click on the field after the space and choose again "Insert Variable > Select Variable". Then select the second "Ask for input" (which contain the PostScript code). This will give this Text object:

The PostScript code content is added in the Text object

Notice the space between the two graphical variables, it's very important. You can know to what "Ask for Input" each object is by click on it (not right-click), then choose "Reveal". You can also rename it with this method).

Reveal the variable

  1. Search for the "Run AppleScript" action and drag it under the previous actions.

Search for "Run AppleScript"

It automatically takes the previous Text object as input.

AppleScript action added

Note that adding the "Run AppleScript" can replace the icon choose for the Shortcut by the AppleScript icon. You can change the icon again (click on it, see point 1).

  1. Paste this AppleScript code in the field (the variable completeCommand receive the value in the Text object):
on run {completeCommand}
    
    -- Prepare the PostScript command for Ghostscript
    set fullPSCode to (completeCommand as text) & " pstack"
    
    -- Run Ghostscript via do shell script with the full path
    try
        set shellCommand to "echo " & quoted form of fullPSCode & " | /usr/local/bin/gs -q -sDEVICE=nullpage - 2>&1"
        set output to do shell script shellCommand
        
        -- Define the delimiters to include \r (carriage return)
        set AppleScript's text item delimiters to {return, linefeed, ASCII character 13}
        set resultLines to text items of output
        
        -- Reverse the order to go from the base to the top
        set reversedLines to reverse of resultLines
        
        -- Build the final result
        set cleanResult to ""
        repeat with thisLine in reversedLines
            if length of thisLine > 0 then
                set cleanResult to cleanResult & thisLine & " "
            end if
        end repeat
        
        -- Clean the final space and reset the delimiters
        if length of cleanResult > 0 then
            set cleanResult to text 1 thru -2 of cleanResult
        end if
        set AppleScript's text item delimiters to ""
        
        display dialog "Output Stack: " & cleanResult buttons {"OK"} default button "OK"
    on error errMsg
        display dialog "Error: " & errMsg buttons {"OK"} default button "OK" with icon stop
    end try
end run

You can click on the Hammer icon of the AppleScript action to "compile" the code. If the code is syntactically colored, then there is no error.

Compiled AppleScript code

In this code /usr/local/bin/gs this the path to the gs command. You need to use the absolute path.

  1. On the right side, click on the information icon ⓘ and click on "Pin in Menu Bar".

Pin in Menu Bar

  1. Quit the Shortcut app, click on the Shortcut menu in the menu bar, and choose the "PostScript Stack viewer" shortcut.

Run the "PostScript Stack viewer" shortcut

Enter the input stack:

Enter the input stack

Click done, enter the PostScript code, example add, click done, and you have the output stack:

Output Stack

Another example:

Output stack:

Output for "1 2 3 4 5 6" and "pop dup mul 3 1 roll"

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

79533854

Date: 2025-03-25 13:45:38
Score: 4.5
Natty:
Report link

To add to @Hariharan's answer, you need to add the Family Controls (Development) capability in XCode, runner. Otherwise, no data will be shown. This caught me off guard, since they don't tell you why nothing is showing otherwise...

If you use flutter, make use of rendering native views: https://www.youtube.com/watch?v=czErmevSbuY to render the ExampleView in his answer.

Good luck!

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Contains signature (1):
  • No code block (0.5):
  • User mentioned (1): @Hariharan's
  • Low reputation (1):
Posted by: Wing

79533852

Date: 2025-03-25 13:44:38
Score: 1.5
Natty:
Report link

Here is my current solution, that is imperfect but I stuck with it as I don't have better ideas yet.

Goal

I want to move memory allocation outside of the catch block, so the memory allocation does not happen in catch block.

Considered solutions

1. Allocate string interpolation Object[] array in each repository

Here is the code:

@Repository
public class UserRepositoryImpl implements UserRepository {

    private static final Object[] USER_ENTITY_ARG = new Object[]{User.KIND};
    
    private final Datastore datastore;
    private final KeyFactory keyFactory;
    private final MessageSource messageSource;
    
    // Constructor and other methods...
    
    @Override
    public User save(User user) {
        try {
            // Existing implementation...
            datastore.put(entity);
        } catch (DatastoreException datastoreException) {
            String errorMessage = messageSource.getMessage(
                    "persistence.datastore.failed_to_save",
                    USER_ENTITY_ARG,
                    LocaleContextHolder.getLocale());
            throw new DatastorePersistenceException(errorMessage, datastoreException);
        }
        return user;
    }
    
    // Other methods...
}

Pros

  1. It allocates memory at repository class loading. The goal of avoiding memory allocation in catch block achieved.

Cons

The code

private static final Object[] USER_ENTITY_ARG = new Object[]{User.KIND};
  1. looks like garbage in repository class breaking the single responsibility principle, adding clutter to code.
  2. adds burden for developer to follow this "convention" of allocating interpolation strings in each repository.

Verdict

I do not like it for its' cons.

2. MessageHelper class with encapsulated Spring's MessageSource and pre-allocated memory for Object[] string interpolation arrays

Here is the helper class:

@Service
public class MessageHelperImpl implements MessageHelper { // MessageHelper is just my interface you can see @Override's of its methods

    private static final ThreadLocal<Object[]> ARGS1 = ThreadLocal.withInitial(() -> new Object[1]);
    private static final ThreadLocal<Object[]> ARGS2 = ThreadLocal.withInitial(() -> new Object[2]);

    private final MessageSource messageSource;

    @Autowired
    public MessageHelperImpl(MessageSource messageSource) {
        this.messageSource = messageSource;
    }

    ... 

    @Override
    public String getMessage(String code, Object arg1) {
        Object[] args = ARGS1.get();
        args[0] = arg1;
        return messageSource.getMessage(code, args, LocaleContextHolder.getLocale());
    }

    @Override
    public String getMessage(String code, Object arg1, Object arg2) {
        Object[] args = ARGS2.get();
        args[0] = arg1;
        args[1] = arg2;
        return messageSource.getMessage(code, args, LocaleContextHolder.getLocale());
    }

    @Override
    public String getMessage(String code, Object... args) {
        // For varargs, we use the provided array
        return messageSource.getMessage(code, args, LocaleContextHolder.getLocale());
    }

}

then the catch block looks like this:

        } catch (DatastoreException datastoreException) {
            // Using the specialized single-argument method
            String errorMessage = messageHelper.getMessage(
                    "persistence.datastore.failed_to_save", User.KIND); // User.KIND is just a String containing "User"
            throw new DatastorePersistenceException(errorMessage, datastoreException);
        }

Pros

  1. encapsulation of message retrieval from messages.properties and string interpolation logic
  2. possibly ThreadLocal ARGS1 and ARGS2 buffers will be allocated before the actual call from the exception. So it does not solve my concern.

Cons

  1. While ThreadLocal fields itself are created when the MessageHelperImpl class is loaded - Object[] arrays created lazily.
    • First time a thread calls ARGS1.get() that call can be right from the exception
    • Created by the supplier () -> new Object[1]
    • Each thread gets its own array instance
    • The array is reused for all subsequent calls from the same thread.

Verdict

I do not like this solution as it does not guarantee to solve my concern - not to allocate new memory in catch block.

I see that potentially I can call the ARGS1.get() for each thread on initialization of the thread but it looks sooo messy like a very poor workaround.

Conclusion

At this moment I do not have working solution that is architecturally nice for the problem of having string interpolation for exception messages.

Please share your thoughts.

P.S. And I am still wondered whether this is normal to create a new exception in the catch block - while it is an existing practice of abstracting your app's exception processing from the "vendor-specific" exceptions it still allocates memory in catch block what is considered a bad practice.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please share your
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: nickolay

79533848

Date: 2025-03-25 13:41:38
Score: 0.5
Natty:
Report link
$env:COMPUTERNAME -match '\d+(\D+)\d+'

will perform a regex on the hostname.

\d+(\D+)\d+

looks for non digit characters encapsulated by one or more digits.

$Matches

will give you a hashtable containing your matches

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

79533847

Date: 2025-03-25 13:41:38
Score: 1
Natty:
Report link

For me in VS2022, I had to:

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

79533841

Date: 2025-03-25 13:39:37
Score: 4
Natty:
Report link

@Heavy Mask
Wanted to thank you for this. I don't know if you ever found a solution, but your script inspired me to create the below script. Might be able to use it yourself?

;;∙============================================================∙
#NoEnv
#Persistent
#SingleInstance, Force
SetBatchLines, -1
SetTitleMatchMode 2
SetWinDelay, 0

^!LButton::    ;;∙------∙🔥∙(Ctrl + Alt + Left Click)  

;;∙------------∙• RUN SCRIPT AS ADMIN •∙----------------------------------------------------∙
if !A_IsAdmin
{
    MsgBox, 4, Admin Required, This Script Needs To`nRun As Administrator To`nTerminate Certain Processes...`n`n`tRestart With Admin Privileges?
    IfMsgBox, Yes
    {
        Run *RunAs "%A_ScriptFullPath%"
        ExitApp
    }
    else
    {
        MsgBox, 16, Error, !  !  !  A T T E N T I O N  !  !  !`n`n Script Will Not Continue`nWithout Admin Privileges!!,5
        ExitApp
    }
}

MouseGetPos,,, id
WinGet, pid, PID, ahk_id %id%

if (!pid) {
    MsgBox, 16, Error, Failed To Retrieve Process ID.,2
    Return
}

WinGetTitle, winTitle, ahk_id %id%
if (winTitle = "") 
    winTitle := "Unknown Window"

WinGet, exeName, ProcessName, ahk_id %id%

;;∙------------∙• PREVENT TERMINATION OF CRITICAL SYSTEM PROCESSES •∙-------∙
criticalProcesses := "explorer.exe, csrss.exe, wininit.exe, winlogon.exe, smss.exe, services.exe, lsass.exe, svchost.exe"
if exeName in %criticalProcesses%
{
    MsgBox, 16, Warning, Termination Of %exeName%`nIs Blocked To Prevent System Instability.,5
    Return
}

MsgBox, 4, Confirm Termination, Terminate Process %pid% ("%winTitle%", %exeName%)?  
IfMsgBox, No
    Return

hProcess := DllCall("OpenProcess", "UInt", 1, "Int", 0, "UInt", pid, "Ptr")
if (!hProcess) {
    MsgBox, 16, Error, Failed To Open Process.`nIt May Require Admin Privileges.,5
    Return
}

result := DllCall("ntdll\NtTerminateProcess", "ptr", hProcess, "UInt", 0)
DllCall("CloseHandle", "ptr", hProcess)

if (result != 0) {
    MsgBox, 16, Error, Failed To Terminate Process.,5
} else {
    MsgBox, 64, Success, Process %pid% ("%winTitle%", %exeName%) Terminated.,3

;;∙------------∙• LOG TERMINATED PROCESSES WITH TIMESTAMP •∙------------------∙
FormatTime, timeStamp, , H:mm:ss tt  -  MMMM dd, yyyy

;;∙------------∙___EXAMPLE 1___∙---------------------------------------------------------------∙
/*    ;;∙------∙SAVE LOG FILE WITH DIRECT PATH.
logFilePath := "C:\Users\username\Full\File\Path\ProcessKillLog.txt"    ;;∙------∙Example Path.
*/

;;∙------------∙___EXAMPLE 2___∙---------------------------------------------------------------∙
/*    ;;∙------∙SAVE LOG FILE IN DOCUMENTS FOLDER.
documentsDir := A_MyDocuments    ;;∙------∙Get the user's Documents folder.
logFilePath := documentsDir . "\ProcessKillLog.txt"    ;;∙------∙Define the Log File path (Documents folder).
if !FileExist(documentsDir)    ;;∙------∙Create directory if it doesn't exist.
{
    FileCreateDir, %documentsDir%
}
*/

;;∙------------∙___EXAMPLE 3___∙---------------------------------------------------------------∙
;;∙------∙SAVE LOG FILE IN SCRIPTS FOLDER.  <∙------ Currently In Use ---∙<<
    scriptDir := A_ScriptDir    ;;∙------∙Get the script's directory.
    logFilePath := scriptDir . "\ProcessKillLog.txt"    ;;∙------∙Define the Log File path (Script folder).
    if !FileExist(scriptDir)    ;;∙------∙Create directory if it doesn't exist.
    {
        FileCreateDir, %scriptDir%
    }

file := FileOpen(logFilePath, "a")    ;;∙------∙Append log details.
if (file) {
    file.WriteLine("____________________________________________")
    file.WriteLine("* Process Killed *  [ " . timeStamp . " ]`nProcess:`t"  . exeName . "`nPID:`t" . pid . "`nTitle:`t" . winTitle)
    file.WriteLine("____________________________________________`n")
    file.Close()
    MsgBox, 64, Success, Log File Successfully Updated.,5
} else {
    MsgBox, 16, Error, Failed To Open Log File For Writing.,5
}

}
Return
;;∙============================================================∙
Reasons:
  • Blacklisted phrase (0.5): thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @Heavy
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: SturgeonGeneral

79533836

Date: 2025-03-25 13:36:36
Score: 3
Natty:
Report link

What you should be doing is serializing event payload and storing it together with event class metadata like class name and namespace.
When reading events from db table you read all aggregate records and restore event class instances using metadata and serialized event payload.

Take a look how it's done in Microsoft patterns & pratices CQRS Journey sample application

https://github.com/microsoftarchive/cqrs-journey/blob/master/source/Infrastructure/Sql/Infrastructure.Sql/EventSourcing/SqlEventSourcedRepository.cs

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Starts with a question (0.5): What you
  • Low reputation (0.5):
Posted by: Zeljko Vujaklija

79533834

Date: 2025-03-25 13:36:35
Score: 10 🚩
Natty: 4.5
Report link

Did you find a solution to this? I'm having the same issue.

Reasons:
  • RegEx Blacklisted phrase (3): Did you find a solution to this
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you find a solution to this
  • Low reputation (1):
Posted by: B C

79533831

Date: 2025-03-25 13:35:35
Score: 2.5
Natty:
Report link

first check the type of dataframe by using type(df)

and if showing series convert to da

df = df.to_frame()

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

79533828

Date: 2025-03-25 13:34:35
Score: 0.5
Natty:
Report link

Yes, you can use order history for that.

# must be sorted ascending
# (datetime, size, prize, data)

ORDER_HISTORY = (('2012-04-11', 10, 100, 'AAPL'),)

cerebro = bt.Cerebro()
cerebro.adddata(data=bt.feeds.PandasData(dataname=aapl,),name='AAPL')
cerebro.add_order_history(ORDER_HISTORY)
cerebro.addstrategy(Strat)
cerebro.run()

for more information check this post out:

https://www.backtrader.com/blog/posts/2017-07-05-order-history/order-history/

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: guest123

79533808

Date: 2025-03-25 13:26:33
Score: 1.5
Natty:
Report link

downgrade the bytemuck_derive package from version 1.9.2 to version 1.8.4

cargo update -p [email protected] --precise 1.8.4

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

79533806

Date: 2025-03-25 13:24:33
Score: 1.5
Natty:
Report link
<?xml version="1.0" encoding="UTF-8"?>
<accessControl>
    <admins>
        <admin>
            <name>name</name>
            <password>pasword</password>
        </admin>
        <admin>
            <name>admin2</name>
            <password>password456</password>
        </admin>
    </admins>
</accessControl>





I have this code for a rage mp server and the same error how can I solve it
Reasons:
  • Blacklisted phrase (0.5): how can I
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user30056502

79533802

Date: 2025-03-25 13:24:33
Score: 0.5
Natty:
Report link

I had the same problem. I followed the suggested workaround on Poetry's github:

poetry config virtualenvs.use-poetry-python true

After that, it started working for me.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Franklin Sousa

79533798

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

It looks like the issue is caused by the --harmony-proxies flag in your test script. This flag was used to enable experimental features in older versions of Node.js, but it's no longer necessary in modern Node versions.

Steps to Fix the Issue:

  1. Check Your Node.js Version

You’re using Node.js v7.1.0, which is outdated. The latest stable LTS version is recommended (e.g., Node.js 18 or 20).

Upgrade Node.js via nvm:

nvm install --lts nvm use --lts Alternatively, download the latest version from nodejs.org.

  1. Modify the Test Script

Open your package.json file and locate the test script.

Remove --harmony-proxies from the command:

"test": "cross-env NODE_ENV=test PORT=8080 MONGO_URL=mongodb://localhost:27017/mern-test node_modules/.bin/nyc node node_modules/.bin/ava"

  1. Reinstall Dependencies

After upgrading Node.js, remove and reinstall dependencies:

rm -rf node_modules package-lock.json npm install

  1. Run Tests Again

Execute:

npm run test If errors persist, check the ava and nyc versions in package.json and update them.

If you're still facing issues, you might consider switching to a more actively maintained starter template or configuring a fresh MERN setup from scratch.

Need Help with MERN Stack Development? At GraffersID, we provide expert MERN Stack developers to help you build, optimize, and scale your applications seamlessly. Hire pre-vetted remote developers to accelerate your project today! 🚀

Explore MERN Developers Now

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: GraffersID - IT Company

79533780

Date: 2025-03-25 13:13:30
Score: 12.5
Natty: 7.5
Report link

hey did you find any solution to this?

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (3): did you find any solution to this
  • RegEx Blacklisted phrase (2): any solution to this?
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Estefanía Gallo

79533760

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

I solved my problem.

firstly, I unistalled my current mingw compiler and use this compiler instead:

https://github.com/niXman/mingw-builds-binaries/releases/tag/13.2.0-rt_v11-rev1

from this page I downloaded x86_64-13.2.0-release-posix-seh-ucrt-rt_v11-rev1.7z this one. In this release of mingw in sec_api folder there is stdio_s header file in which freopen_s is defined.

Reasons:
  • Whitelisted phrase (-2): I solved
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Nurullah Ozturk

79533758

Date: 2025-03-25 13:06:28
Score: 1.5
Natty:
Report link

You need to set triggerLineEvent to true.

Example

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

79533757

Date: 2025-03-25 13:06:28
Score: 1
Natty:
Report link
   .dnd-scroll-container {
     overscroll-behavior: none;
     scroll-snap-type: both mandatory;
   }

   .dnd-scroll-container > * {
     scroll-snap-align: start;
   }

Add this classes to your scrollable container

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: احمد طارق النونو

79533755

Date: 2025-03-25 13:06:28
Score: 1.5
Natty:
Report link

Citus with PG17 support was officially released on Feb 6, 2025.

So, you can now run the following on Ubuntu/Debian:

sudo apt-get -y install postgresql-17-citus-13.0
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Naisila

79533752

Date: 2025-03-25 13:04:28
Score: 2
Natty:
Report link

I wrote a FIX Engine that can process order execution with a round-trip time of 5.5µs.

So to answer your question, that means the processing time client -> server including parsing, serialising and network code is only RTT/2 = 2.25µs

Given parsing and serialisation can be massively optimised thanks to SIMD, most of the time will be spent in the network code. This is where Linux kernel tuning and/or TCP Kernel bypass technologies (OpenOnLoad) really help.

more details on www.fixisoft.com

Reasons:
  • Blacklisted phrase (0.5): thanks
  • No code block (0.5):
  • Low reputation (1):
Posted by: Pierre-Yves P

79533749

Date: 2025-03-25 13:04:28
Score: 3
Natty:
Report link

I've started to work on basic coloring netbeans plugin for vue.js files.
It could be another alternative.

https://github.com/haidubogdan/nb-js-vue-editor/releases/tag/nv_rel1.0.4

enter image description here

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

79533748

Date: 2025-03-25 13:03:27
Score: 3
Natty:
Report link

It's been a long time since I had to do this, and as others have said, ideally avoid WindowsXP. However, if you have no choice and wish to enable TLS1.2 you need to add the following enum value:

System.Net.ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;

If the enum value does not exist in SecurityProtocolType it is possible to add them in as an extension method as described here:
https://learn.microsoft.com/en-us/dotnet/framework/network-programming/tls#if-you-must-explicitly-set-a-security-protocol

If you have done all of that and it still doesn't work - try adding tracing as described in this answer here: https://stackoverflow.com/a/5985497/30012070 it will hopefully show more detail on the cypher suites supported by the key exchange as well as why it's failing... HTH, Nick

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • RegEx Blacklisted phrase (2): it still doesn't work
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nick Pattman

79533747

Date: 2025-03-25 13:03:27
Score: 9
Natty: 7
Report link

How did you solve the doesn't exist on the resource '00000003-0000-0000-c000-000000000000' issue?

Reasons:
  • RegEx Blacklisted phrase (3): did you solve the
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): How did you solve the
  • Filler text (0.5): 000000000000
  • Low reputation (1):
Posted by: Yang Feng

79533746

Date: 2025-03-25 13:03:26
Score: 6 🚩
Natty:
Report link

I am having the same issue with Nitrosense not opening at all, it happened all of a sudden and has been months now without any sort of resolution. I have a Acer Nitro 5 AN518-58 operating Windows 11 Home 12th Gen Intel core i5 - 12500H..Intel UHD Graphics and NVIDIA GeForce RTX 3050.

I have done the uninstall reinstall many times I have the latest BIOS and have tired several online repairs all of which failed to bring back Nitrosense. I have written to ACER and Microsoft and have the latest updates available still nothing has fixed the issue.As so many have the same issue why can't ACER offer a repair update as it is when working a great asset to be able to use the fans at max when required as well as operate the RGB lighting.

Hope sone can help us who have this issue

Robert

Reasons:
  • RegEx Blacklisted phrase (1): help us
  • Contains signature (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having the same issue
  • Me too answer (0): have the same issue
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Robert

79533743

Date: 2025-03-25 13:02:26
Score: 2.5
Natty:
Report link

Running expo prebuild generates the ios/ and android/ files, and from there I was able to edit the Podfile and rerun the build command

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

79533736

Date: 2025-03-25 13:00:26
Score: 2.5
Natty:
Report link

In my case, changing the "Derived Data" to the "Custom Location" value did not help.

But, I could solve it by setting the "Derived Data" to the "Relative" item. And the project started.

enter image description here

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

79533735

Date: 2025-03-25 13:00:26
Score: 1.5
Natty:
Report link

You may want to consider using minutes as well rather than use hours to be more precise...

where
   DateDiff( minute, ReturnDT, getdate() ) > 60
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: James B

79533734

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

In my case, the launch.json and tasks.json files were not in the /.vscode directory. They were in the root with the other files. Moving them solved all of my issues.

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

79533733

Date: 2025-03-25 12:58:25
Score: 2
Natty:
Report link

In my case I needed to disable default focus animation of UITableViewCell for me worked:

let view = UIView()
view.backgroundColor = .clear
backgroundView = view

do it in init

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Isa Nuryyev

79533732

Date: 2025-03-25 12:58:25
Score: 1.5
Natty:
Report link

The solution to this problem was to confirm the expected EOL character for my SSH server. In my case it was LF ('\n'). Once I appended LF to the end of my command strings and used ShellStream with the simple Write function (as opposed to WriteLine), it worked and I now receive the responses from the server that I expect.

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

79533730

Date: 2025-03-25 12:57:25
Score: 1
Natty:
Report link

mode should be tcp in frontend and in backend too, and to check fqdn use this:

tcp-request inspect-delay 5s
tcp-request content accept if { req.ssl_sni -m end hub.mydomain }
use_backend be_registry_443 if { req.ssl_sni -m end hub.mydomain }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Imre Nagy

79533729

Date: 2025-03-25 12:56:25
Score: 1
Natty:
Report link

First of all, the question too generic and vague to be answered in a proper manner.

However, as a general question, it depends on the use case. Here, I presume you want to execute the 'specific code' basis some trigger.

In terms of Android, this can be a Broadcast event. You might want to implement background tasks, etc. There are a bunch of options you can choose from, you may start reading this: https://developer.android.com/develop/background-work/background-tasks

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

79533723

Date: 2025-03-25 12:53:24
Score: 2.5
Natty:
Report link

You need to configure your User Pool to reference your Pinpoint project.

See the doc here.

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

79533718

Date: 2025-03-25 12:50:23
Score: 1
Natty:
Report link

Yes, its atomically in the sense that the file accessed via the new filename at any time is as consistent as any of the two files is.

If the old file is open for reading, the old data will be obtained as long as its file descriptor is not closed. And writing will change the old file and never the new file. Unless there is another open file descriptor or a hard link to the old file, the contents is finally lost once the file descriptor is closed.

In other words, reading via the new filename is always ok; but to avoid data loss, the old file must be write locked before the rename.

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

79533700

Date: 2025-03-25 12:44:22
Score: 1.5
Natty:
Report link

You can do:

from importlib import import_module

defs = import_module("mymod.definitions").defs
new_users = defs.load_asset_value(asset_key='new_users')

Which assumes a folder structure like

example folder structure

and example contents of definitions.py like

from dagster import Definitions

defs = Definitions(
    assets=[...],
)
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ParisSI

79533699

Date: 2025-03-25 12:44:22
Score: 1.5
Natty:
Report link

Not defined by default until the current version (2024.3). You can set it manually in Preferences > Keymap > Move Line Up or Move Line Down.

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

79533695

Date: 2025-03-25 12:43:22
Score: 0.5
Natty:
Report link

I recently encountered this problem.
The issue is that in the personal_access_token table, the tokenable_type column has the value App\Models\User stored, which is causing this problem.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Amir Reza Tavakolian

79533689

Date: 2025-03-25 12:40:21
Score: 2
Natty:
Report link

I am not sure, I understand your answer right, madhead.

How to you run your app? Do you use Tomcat or Jetty embedded server or deploy it in those servers? They all have their own session storage implementation. Tomcat uses file-bases session storage by default.

Would you agree on:

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

79533688

Date: 2025-03-25 12:40:21
Score: 2.5
Natty:
Report link

here is my code

```cpp
    #include <bits/stdc++.h>
    using namespace std;

    int n, k, a[100], final = false;

    void ktao(){
        for(int i = 1; i <= k; i++){
            a[i] = i;
        }
    }

    void fuckk(){
        int i = k;
        while(i >= 1 && a[i] == n - k + i){
            --i;
        }
        if(i == 0){
            for(int j = 1; j <= k; j++){
                a[j] = j;
            }
        }else{
            ++a[i];
            for(int j = i + 1; j <= k; j++){
                a[j] = a[j - 1] + 1;
            }
        }
    }

    int main(){
        int test; cin >> test;
        while(test--){
            cin >> n >> k;
            for(int i = 1; i <= k; i++){
                cin >> a[i];
            }
            fuckk();
            for(int i = 1; i <= k; i++){
                cout << a[i] << " ";
            }
            cout << endl;
        }
    }
Reasons:
  • Blacklisted phrase (2): fuck
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Quyền Nguyễn

79533672

Date: 2025-03-25 12:33:19
Score: 5
Natty: 5
Report link

Full outer join with different distribution column types errors out in Citus. Do table1 and table2 have different column distribution types?

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

79533667

Date: 2025-03-25 12:32:19
Score: 4
Natty: 4.5
Report link

Please refer to the blog below to play videos in recycler view.

https://engineering.cred.club/implementing-multi-video-playback-in-recyclerview-56a4bdf99a29

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

79533658

Date: 2025-03-25 12:30:18
Score: 2.5
Natty:
Report link

As the issue is only observed on Firefox, it may be imposing a strict same-origin-policy, I think the fix for this will be to enable CORS in the angular application.

you may refer to this thread

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

79533645

Date: 2025-03-25 12:26:17
Score: 1
Natty:
Report link

I'm a bit late to the show, but maybe this will be helpful to others:

Create a method in the action

public boolean isRadioDisabled(boolean disabRgt){
    return disabRgt;
}

And in your JSP:

<s:radio /*...*/ disabled="isRadioDisabled(disabRgt)" />

Works with Struts 7.

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

79533633

Date: 2025-03-25 12:19:16
Score: 1
Natty:
Report link

Simply switch between PHP versions and back to the version you want to use. That will solve the problem. It seems to be a Herd issue.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Alejandro De Castro

79533626

Date: 2025-03-25 12:14:15
Score: 2.5
Natty:
Report link

If the skill isn’t working in other languages, it could be due to locale settings, missing language support, or framework limitations. I faced a similar issue on my site, and managed to resolve it by adjusting some configurations. You might want to check the API documentation or debug the language settings!

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

79533623

Date: 2025-03-25 12:12:14
Score: 2.5
Natty:
Report link

Found the solution. Indeed if you have a look at the question and why I needed ffmpeg for the "external" videos to play, you can figure out that there might be an audio problem somewhere. Well, even though I don't play audio on the device I run my application, the video still has audio.

Now going further with the investigation, I found that Rocky Linux uses PipeWire as its audio driver (together with Alsa, but that didn't matter) and found the environment variables that PipeWire has for my user. Turns out it was XDG_RUNTIME_DIR - from here. Got the variable that my user had with the set command and now it's all up and running.

Thank you for the suggestions, @Alex Crichton and @user1934428. You kinda pointed me in the right direction, because at first I didn't think it could be an env var missing.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @and
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: VicVerevita

79533622

Date: 2025-03-25 12:12:14
Score: 2.5
Natty:
Report link

Deleting ~/.gradle fixed it for me

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

79533621

Date: 2025-03-25 12:11:14
Score: 5.5
Natty:
Report link

I would like to add that there might be an issue caused libraries save attribute with initialization and declaration happening at the same time. We were seeing the same issue on our end. Cmake might handle this in a way that causes unwanted persistence just like the save attribute has.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): seeing the same issue
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Daniel