79200798

Date: 2024-11-18 17:13:30
Score: 1.5
Natty:
Report link

In addition to above, you can directly use the if condition as show below

 if 'pythontest' in config[section]

Please refer https://docs.python.org/3/library/configparser.html for different methods with ConfigParser class.

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

79200796

Date: 2024-11-18 17:13:30
Score: 0.5
Natty:
Report link

Just use the "regular" opacity attribute.

// Set button colour & Text colour
ion-button[disabled] {
  --ion-color-base: var(--light-gray) !important;
  --ion-color-contrast: var(--gray) !important;
  opacity: 1;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Koby

79200782

Date: 2024-11-18 17:07:28
Score: 2.5
Natty:
Report link

Just right click on Text Box -> Expression and write down this

="Page " & Globals.PageNumber & " of " & Globals.TotalPages

Its done.

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

79200775

Date: 2024-11-18 17:04:27
Score: 2.5
Natty:
Report link

Note that the JdbcTemplate is not exactly a Strategy, either. In the Strategy pattern the Strategy is an instance variable. I wonder if it's useful to give names to each and every variant of a pattern - and it seems that library creators don't care too much.

I guess the creators of Spring though of the idea behind the template more than about the technical details. The very name of the template method pattern means that its core idea that we have a fixed sequence of actions which is already coded, and a variant part which we want to create and design later.

The use of inheritance is probably somehow a technical detail. The original version (designed for C++, which did not distinguish interfaces from abstract classes), uses inheritance. The JdbcTemplate passes an interface instead. In a way, what is the important and relevant part :

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: khaemuaset

79200771

Date: 2024-11-18 17:00:26
Score: 1.5
Natty:
Report link

You need to enable systemd service;

sudo systemctl enable amazon-cloudwatch-agent.service
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Neutralizer

79200759

Date: 2024-11-18 16:54:25
Score: 0.5
Natty:
Report link

The merchant ID should be an account ID. So, just create the payout with it.

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

79200749

Date: 2024-11-18 16:52:24
Score: 2.5
Natty:
Report link

map((ob: any) => {return ob.data.yourKey}

will return the object/array in the key location to the stream

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

79200747

Date: 2024-11-18 16:51:24
Score: 3.5
Natty:
Report link

won't this be much simplier?

def validate_string(string):
    spl = string.split(',')
    return all(word.count('=') == 1 for word in spl)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Freddy

79200744

Date: 2024-11-18 16:51:24
Score: 1.5
Natty:
Report link

As of now (2024) I find that devcontainers just work out of the box with the host ssh-agent. I just installed the ssh-agent plugin with zsh and it works with my host ssh credentials when I make a commit. I have not tried the gnupg keys yet.

How exactly it works, I have no clue.

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

79200743

Date: 2024-11-18 16:50:24
Score: 3.5
Natty:
Report link

After Upgrading every package will resolve this issue. In my case when I upgrade packages the error not produce again.

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

79200742

Date: 2024-11-18 16:50:24
Score: 1
Natty:
Report link

The issue for me was that I was using a shebang that bypassed the pyenv:
#!/usr/bin/python3

You should always use:
#!/usr/bin/env python3

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

79200730

Date: 2024-11-18 16:47:23
Score: 3
Natty:
Report link

If you have more than one deploy project, it is not recommended to delete all the content of "applications".

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

79200720

Date: 2024-11-18 16:44:22
Score: 1
Natty:
Report link

Changing the operating system (OS) on your Huawei Nova 9 involves replacing the default HarmonyOS (or EMUI, depending on the region) with another OS, typically a custom Android ROM or another operating system like LineageOS, AOSP, or similar alternatives. However, doing so requires a deep understanding of the process, as it can void your warranty, cause data loss, and even "brick" your device if not done properly.

Huawei devices have locked bootloaders and no official support for custom ROMs, and you also face the challenge of limited access to Google services due to ongoing restrictions. But it’s still possible to change the OS, provided you understand the risks involved.

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

79200717

Date: 2024-11-18 16:43:22
Score: 2
Natty:
Report link

this probably isnt the answer youre looking for, but for whatever reason, just removing the JAVA_HOME environment variable altogether solved this error for me

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

79200714

Date: 2024-11-18 16:42:21
Score: 11 🚩
Natty: 5.5
Report link

how did you resolve this issue?

Reasons:
  • RegEx Blacklisted phrase (3): did you resolve this
  • RegEx Blacklisted phrase (1.5): resolve this issue?
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): how did you
  • Low reputation (1):
Posted by: Sanji

79200702

Date: 2024-11-18 16:36:19
Score: 3
Natty:
Report link

So it sounds like you need to essentially duplicate the contents of a document library from one SharePoint site into another, excluding PDFs. The setup you have now is good all you really need to do is add another condition that checks whether the items is a folder or not, and then create the file/folder appropriately. Luckily, a recursive solution is not necessary.

The following is a general description of a flow that will copy all files (including folder structure and excluding PDFs) from one SharePoint site's document library to another SharePoint site's document library:

  1. Your flow's trigger
  2. Initialize varibale
    • Name = strTemplateLibraryName
    • Type = String
    • Value = <the name of the document library you are copying files from>
  3. Initialize variable
    • Name = strTargetLibraryName
    • Type = String
    • Value = <the name of the document library you are copying files to>
  4. Get files (properties only)
    • Site Address = <the URL of the site you are copying files from>
    • Library Name = strTemplateLibraryName
  5. Apply to each
    • Input = outputs('Get_files_(properties_only)')?['body/value']
  6. Condition (inside Apply to each)
    • items('Apply_to_each')?['{IsFolder}'] is not equal to true

The false branch of your Condition will be all iterations where the item is a folder and should have this structure:

  1. Compose (FullFolderPath)
    • Inputs = items('Apply_to_each')?['{FullPath}']
  2. Compose (FolderPath)
    • Inputs = last(split(outputs('FullFolderPath'), variables('strTemplateLibraryName')))
  3. Create new folder
    • Site Address = <the URL of the site you are copying files to>
    • List or Library = <the document library you are copying files to>
    • Folder Path = outputs('FolderPath')

The true branch of your Condition will be all iterations where the item is a file and should have this structure:

  1. Condition
    • whatever your existing condition is to check if the file is a PDF
    • if the file is not a PDF, continue steps below, else ignore
  2. Compose (FullFilePath)
    • Inputs = items('Apply_to_each')?['{FullPath}']
  3. Compose (FilePath)
    • Inputs = first(split(last(split(outputs('FullFilePath'), variables('strTemplateLibraryName'))),item()?['{FilenameWithExtension}']))
  4. Get file content
    • Site Address = <the URL of the site you are copying files to>
    • File Identifier = items('Apply_to_each')?['{Identifier}']
    • Infer Content Type (parameter) = Yes
  5. Create file
    • Site Address = <the URL of the site you are copying files to>
    • Folder Path = /variables('strTargetLibraryName')outputs('FilePath')
    • File Name = items('Apply_to_each')?['{FilenameWithExtension}']
    • File Content = body('Get_file_content')

When I made this flow a while back, I was referencing this guide that you might find helpful. It is difficult to write out flows on here so please let me know if you have any questions.

Reasons:
  • Blacklisted phrase (1): this guide
  • RegEx Blacklisted phrase (2.5): please let me know
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: beelow

79200698

Date: 2024-11-18 16:35:19
Score: 0.5
Natty:
Report link

Here are some basic code examples for AI-related tasks:

Python Codes

1. Chatbot using NLTK and Tkinter

import nltk
from nltk.stem.lancaster import LancasterStemmer
stemmer = LancasterStemmer()
import tkinter as tk
from tkinter import messagebox

Tokenize and stem input
def tokenize_stem(input_string):
    tokens = nltk.word_tokenize(input_string)
    stemmed_tokens = [stemmer.stem(token) for token in tokens]
    return stemmed_tokens

Chatbot response
def respond(input_string):
    # Basic response logic
    if "hello" in input_string:
        return "Hello! How can I assist you?"
    else:
        return "I didn't understand that."

Create GUI
root = (link unavailable)()
root.title("Chatbot")

Create input and output fields
input_field = tk.Text(root, height=10, width=40)
output_field = tk.Text(root, height=10, width=40)

Create send button
def send_message():
    input_string = input_field.get("1.0", tk.END)
    tokens = tokenize_stem(input_string)
    response = respond(input_string)
    output_field.insert(tk.END, response + "\n")

send_button = tk.Button(root, text="Send", command=send_message)

Layout GUI
input_field.pack()
send_button.pack()
output_field.pack()

root.mainloop()

2. Simple Neural Network using Keras

from keras.models import Sequential
from keras.layers import Dense
import numpy as np

Create dataset
X = np.array([[0, 0], [0, 1], [1, 0], [1, 1]])
y = np.array([[0], [1], [1], [0]])

Create neural network model
model = Sequential()
model.add(Dense(2, input_dim=2, activation='relu'))
model.add(Dense(1, activation='sigmoid'))
model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy'])

Train model
model.fit(X, y, epochs=1000, verbose=0)

Make predictions
predictions = model.predict(X)
print(predictions)

3. Basic Machine Learning using Scikit-learn

from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import accuracy_score

Load iris dataset
iris = load_iris()
X = iris.data
y = iris.target

Split dataset into training and testing sets
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)

Create logistic regression model
model = LogisticRegression()

Train model
model.fit(X_train, y_train)

Make predictions
predictions = model.predict(X_test)
print("Accuracy:", accuracy_score(y_test, predictions))

Java Codes

1. Simple AI using Java

import java.util.Scanner;

public class SimpleAI {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("Enter your name:");
        String name = scanner.nextLine();
        System.out.println("Hello, " + name + "!");
    }
}

2. Java Neural Network using Deeplearning4j

import org.deeplearning4j.nn.conf.MultiLayerConfiguration;
import org.deeplearning4j.nn.conf.NeuralNetConfiguration;
import org.deeplearning4j.nn.multilayer.MultiLayerNetwork;
import org.nd4j.linalg.factory.Nd4j;

public class JavaNeuralNetwork {
    public static void main(String[] args) {
        MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()
            .seed(123)
            .list()
            .layer(0, new DenseLayer.Builder().nIn(784).nOut(250).activation("relu").build())
            .layer(1, new OutputLayer.Builder().nIn(250).nOut(10).activation("softmax").build())
            .pretrain(false).backprop(true).build();

        MultiLayerNetwork model = new MultiLayerNetwork(conf);
        model.init();
    }
}

C++ Codes

1. Simple AI using C++

#include <iostream>
#include <string>

int main() {
    std::string name;
    std::cout << "Enter your name: ";
    std::cin >> name;
    std::cout << "Hello, " << name << "!";
    return 0;
}

2. C++ Neural Network using Caffe

#include <caffe/caffe.hpp>

int main() {
    caffe::NetParameter net_param;
    net_param.AddLayer()->set_type(caffe::LayerParameter_LayerTypeINNER_PRODUCT);
    caffe::Net<float
Reasons:
  • Blacklisted phrase (0.5): How can I
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Please

79200692

Date: 2024-11-18 16:34:18
Score: 1.5
Natty:
Report link

Is that any good to you,

import numpy as np

foo = np.array([0, 1, 2])
#bar: int = foo[1]
bar: int = int(foo[1])

print(type(bar), bar)

output: <class 'int'> 1

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): Is that any
  • Low reputation (0.5):
Posted by: stenag

79200686

Date: 2024-11-18 16:30:17
Score: 1.5
Natty:
Report link

Solution is to downgrade numpy to 1.26.0. That solved my problem. See [[Solved]] Face recognition test failing with correct image

Reasons:
  • Whitelisted phrase (-1): Solution is
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: nicomp

79200682

Date: 2024-11-18 16:29:17
Score: 3
Natty:
Report link

I ran into this today and found the issue to be the site was using the all.min.css without the all.min.js. Once I added the JS, the twitter X icon worked.

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

79200680

Date: 2024-11-18 16:28:16
Score: 0.5
Natty:
Report link

Was in the same situation but managed to solve it (but on a linux vm as runner agent). i manage to sole it perfectly by doing this:

    # login to az devops
    az config set extension.use_dynamic_install=yes_without_prompt
    echo $(System.AccessToken) | az devops login --organization "$(System.CollectionUri)"

    # get the variable group id
    group_id=$(az pipelines variable-group list --project "$(System.TeamProject)" --top ${{ parameters.search_top_n }} \
    --query-order ${{ parameters.search_order }} --output table | grep ${{ parameters.variable_group_name }} | cut -d' ' -f1)

    # create or update the variable
    az pipelines variable-group variable create --project "$(System.TeamProject)" --group-id ${group_id} --name ${{ parameters.variable_key }} \
    --value "${{ parameters.variable_value }}" --secret ${{ parameters.is_secret }} --output table || \
    az pipelines variable-group variable update --project "$(System.TeamProject)" --group-id ${group_id} --name ${{ parameters.variable_key }} \
    --value "${{ parameters.variable_value }}" --secret ${{ parameters.is_secret }} --output table

    # logout from az devops
    az devops logout

These are some links that make it easier to understand.

Having no permission for updating Variable Group via Azure DevOps REST API from running Pipeline

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/access-tokens?view=azure-devops&tabs=yaml#job-authorization-scope

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/access-tokens?view=azure-devops&tabs=yaml#configure-external-project

https://learn.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml

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

79200678

Date: 2024-11-18 16:27:16
Score: 2.5
Natty:
Report link

hxxps://bot.sannysoft.com - not true! Сheck here hxxps://deviceandbrowserinfo.com/are_you_a_bot, There is no normal solution in public space. There are private techniques

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

79200673

Date: 2024-11-18 16:25:15
Score: 3
Natty:
Report link

That's 100% transparent but you can see the border a bit.

box-shadow: 0 0 10px rgba(1, 1, 1, 1);

background-color: transparent;

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

79200668

Date: 2024-11-18 16:24:15
Score: 2
Natty:
Report link

This is not a selenium solution but you can make a request for the service in python and grabbing the content-disposition response header. That will be the name of your download file.

There is a chance the request will get blocked so you might need to play around with request headers to get around that.

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

79200667

Date: 2024-11-18 16:24:15
Score: 2
Natty:
Report link

Check my article at https://blog.knovik.com/node-auto-deploy-github-actions/

I explained every step including a detailed step by step guide

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

79200647

Date: 2024-11-18 16:17:13
Score: 2.5
Natty:
Report link

yes I agree with you, there are tricky corner cases where this overflows. I ran into the same bug, working on a 32-bit architecture one counter-example is v = (1, 2) (that is v = 2^32 + 2, v_1 = 1, v_0 = 2), the normalization step D1 computes d = floor((b-1)/v_1) that is 0xffffffff with b = 2^32. But then d * v = (2^32-1) * (2^32 + 2) = 2^64 + 2^32 - 2 = (1, 0, 0xfffffffe) with an overflow. Would d = ceil(((b/2)/v_1)) work?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Aurore Guillevic

79200640

Date: 2024-11-18 16:15:13
Score: 1
Natty:
Report link

Indeed, you cannot assign anything to this. I have no idea what is your understanding of this, but it makes no sense. I'll try to give you an idea by modifying your code. First, I renamed your class, because you may need to separate things at the same time, an element and its wrapper:

class ElementWrapper {

    constructor(name, className, attributes, innerText) {
        this.element = document.createElement(name);
        this.element.setAttribute("class", className);
        if (attributes) {
            Object.keys(attributes).forEach(attr => {
                this.element.setAttribute(attr, attributes[attr]);
            });
        };
        if (innerText) this.element.innerText = innerText;
    };

    addAttribute(name, value) {
        this.element.setAttribute(name, value);
        return this.element;
    }

} // class ElementWrapper

You did not have any class members, but I've introduced two: a property element and a method addAttribute.

The usage example:

const wrapper = new ElementWrapper(/*  */);
const rawElement = wrapper.element;
const sameElementNamed =
    wrapper.addAttribute("name", "my-button");
const anotherWrapper = new ElementWrapper(/*  */);
anotherWrapper.addAttribute("name", "my-section");

Here, new shows that you call ElementWrapper not as a regular function (you can do it if you want), but as a constructor.

The call returns some reference for you, and this is a reference to the created instance of ElementWrapper. You use this reference for accessing the instance. When you call wrapper.addAttribute(/* ... */), you pass the instance wrapper as an implicit argument to addAttribute. The class's method needs this reference to know which of the possible ElementWrapper instances should be used to access the instance. How the code of addAttribute can know what is this, wrapper or anotherWrapper? Because you pass one or another instance reference using a name before the dot.

Reasons:
  • Blacklisted phrase (1): what is your
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Sergey A Kryukov

79200636

Date: 2024-11-18 16:14:12
Score: 5
Natty:
Report link

So I completely uninstall node that was previously installed using nvm and reinstall it using brew and it works thanks @Michael Shobowale

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @Michael
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Thibault Bouveur

79200629

Date: 2024-11-18 16:10:11
Score: 0.5
Natty:
Report link

Well, it depends on if you are trying to create an array of the constructors or of objects?

Working code:

// Now I want to collect the derived classes in an array...
interface OneNode {
  handler: { new (): Base };
}
const availableNodes: OneNode[] = [{ handler: Derived }];

// ...and instantiate some of them only when needed
const y = new (availableNodes[0]?.handler)();
y.fun();

Source for a list of constructors solution: https://stackoverflow.com/a/13408029/2834938

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-2): solution:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Eli

79200625

Date: 2024-11-18 16:10:11
Score: 2
Natty:
Report link

Brother, in my vs code i'm not facing the issue; but if your issue still exists then try using ctrl+shift+p for 'checking keybinding settings' and then type preferences: open keyboard shortcuts.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Md. Asif Imityaj Chowdhury

79200624

Date: 2024-11-18 16:09:11
Score: 0.5
Natty:
Report link

Here are a few steps you can take to troubleshoot and fix the issue:

1. Verify the snyk test --json Output Ensure that the snyk test --json command is actually generating valid vulnerability data. You can test this separately by running the following command manually in your environment.

2. Verify Project Has Vulnerabilities You can ensure the proper setup of Snyk on your project by reviewing the following:

Make sure the correct package manager is being used (e.g., npm, yarn, etc.). Verify the project is being properly initialized and contains dependencies that can be analyzed by Snyk.

3. Ensure Proper Snyk Test Execution It’s possible that the snyk test is failing due to misconfiguration. You can try adjusting the snyk test command to include more verbose output for debugging.

4. Check if snyk-delta Is Receiving Valid Input Make sure that: a. baselineOrg and baselineProject are the correct IDs for your organization and project. b. The project already exists in Snyk with baseline vulnerability data.

5. Review Snyk and Snyk-Delta Versions It's possible that you may be using incompatible versions of snyk or snyk-delta. Ensure both are up to date.

6. Adjust the Workflow Your workflow should ensure that the snyk test command is executed successfully and produces valid JSON output before passing it to snyk-delta. You might need to add checks in your pipeline to handle cases where no vulnerabilities are found.

Additional Considerations: Snyk API Configuration: Ensure that the Snyk API is correctly configured, with the right access and project IDs. Snyk-Delta Compatibility: If you still experience issues, check the compatibility and requirements for snyk-delta with your version of snyk.

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

79200619

Date: 2024-11-18 16:08:11
Score: 1.5
Natty:
Report link

It sounds like you're running into an issue where the 3D Secure (3DS) flow is prematurely failing when you try to confirm the payment intent after the app is restarted, even though the clientSecret and setup seem correct. The issue could be related to how the payment confirmation process is triggered after the app restarts, as well as how the payment state is handled in your app during the reinitialization.

Here's the code : first pic of the code : [1]: https://i.sstatic.net/nzkDItPN.png

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

79200618

Date: 2024-11-18 16:08:10
Score: 7 🚩
Natty:
Report link

I have the same issue maybe try with hasBackdrop: true

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: MisterAxolotl

79200610

Date: 2024-11-18 16:06:08
Score: 6.5 🚩
Natty: 6
Report link

Is there also a possibility to change the tag id as soon as you add new stock?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is there also a
  • Low reputation (1):
Posted by: S1mplySophie

79200603

Date: 2024-11-18 16:04:07
Score: 7.5 🚩
Natty: 5
Report link

It is not working for me, my sveltekit project successfully creates build folder on npm run build and npm run preview works fine too but when I am trying to deploy it on vercel with (.) as output directory I am getting 404 error.

Reasons:
  • Blacklisted phrase (1): I am trying to
  • RegEx Blacklisted phrase (1): I am getting 404 error
  • RegEx Blacklisted phrase (3): not working for me
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Saad Ahmed Khanzada

79200602

Date: 2024-11-18 16:04:07
Score: 2.5
Natty:
Report link

Thanks for all of messages.

After tried different ways and failed, I deleted '.m2' folder and rebuild it. Newly generated jar has a different behavior. The view of Jpeg2000 image in GUI (javaFx) is still unsuccessful, but able to catch the error at the background which didn't happen. That's the best can be done so far. I take it as a work-around.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Northcloud

79200580

Date: 2024-11-18 15:56:05
Score: 1
Natty:
Report link

Additional info needed:
The explanation of the task here doesn't match the sample data and expected result ....

--      S a m p l e    D a t a :
Create Table tbl AS 
Select 'TASK3' as DEPENDENT, 'TASK2' as TASK From Dual Union All
Select 'TASK1', 'TASK5' From Dual Union All
Select 'TASK2', 'TASK5' From Dual Union All
Select 'TASK4', 'TASK3' From Dual;
DEPENDENT TASK
TASK3 TASK2
TASK1 TASK5
TASK2 TASK5
TASK4 TASK3

The dependent task must always finish before the Task It seems that something is missing as additional logic to the above statement in order to clarify the issue ...

If quoted is true - then basic paths (orders) from dependant to task (with dependant suborder if any) are:

WITH 
  row_paths AS
    ( Select     t.DEPENDENT, t.TASK,  
                 t.DEPENDENT || '-' || t.TASK as TASK_ORDER,
                 o.DEPENDENT || '-' || o.TASK as TASK_SUBORDER
      From       tbl t
      Left Join  tbl o ON( o.TASK = t.DEPENDENT )
    )
  Select * From row_paths Order By TASK Desc, DEPENDENT
DEPENDENT TASK TASK_ORDER TASK_SUBORDER
TASK1 TASK5 TASK1-TASK5 -
TASK2 TASK5 TASK2-TASK5 TASK3-TASK2
TASK4 TASK3 TASK4-TASK3 -
TASK3 TASK2 TASK3-TASK2 TASK4-TASK3

... if we replace dependant with coresponding path then the leaf to root paths would be like below ...

WITH 
  row_paths AS
    ( Select     t.DEPENDENT, t.TASK, 
                 t.DEPENDENT || '-' || t.TASK as TASK_ORDER,
                 o.DEPENDENT || '-' || o.TASK as TASK_SUBORDER
      From       tbl t
      Left Join  tbl o ON( o.TASK = t.DEPENDENT )
    ) 
Select     rp.*, 
           Case When rp.TASK_SUBORDER != '-' 
                Then REPLACE(rp.TASK_ORDER, rp.DEPENDENT, TASK_SUBORDER)
           Else rp.TASK_ORDER
           End as SELF_LEAF_TO_ROOT_PATH
From       row_paths rp
Order By   rp.TASK Desc, rp.DEPENDENT
DEPENDENT TASK TASK_ORDER TASK_SUBORDER SELF_LEAF_TO_ROOT_PATH
TASK1 TASK5 TASK1-TASK5 - TASK1-TASK5
TASK2 TASK5 TASK2-TASK5 TASK3-TASK2 TASK3-TASK2-TASK5
TASK4 TASK3 TASK4-TASK3 - TASK4-TASK3
TASK3 TASK2 TASK3-TASK2 TASK4-TASK3 TASK4-TASK3-TASK2

... please provide some additional explanation of the logic that should be applied to fetch you the expected result ...

fiddle

Reasons:
  • RegEx Blacklisted phrase (2.5): please provide some
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: d r

79200571

Date: 2024-11-18 15:52:04
Score: 0.5
Natty:
Report link

This minimal file did work. As I have used tags in the config file which did not exist in the local.py. Also the master and workers entry did expect distributed load infrastructure

locustfile = load_basics.py
headless = true
host = "http://localhost:50505"
users = 1
spawn-rate = 1
run-time = 1m
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: user3732793

79200566

Date: 2024-11-18 15:50:03
Score: 0.5
Natty:
Report link

This started to happen due to changes in the mlxtend library version 0.23.2. It is still unclear whether it is a bug or a feature (open issue). So there are two options to fix that error:

  1. Downgrade mlxtend package to version 0.23.1 (if we assume it is a bug) or
  2. Add add num_itemsets parameter: rules = association_rules(frequent_items, num_itemsets=len(group_df), metric='confidence',min_threshold=0.7, num_itemsets=2). Here I set the parameter to len(group_df) since docstring is saying it should be to "Number of transactions in original input data".
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: Primoz

79200550

Date: 2024-11-18 15:46:02
Score: 2
Natty:
Report link

This may be an option. I've tested it and seems to work exactly as it says it does. It doesn't seem to traverse older upload folders however - appears to only look in the current year/month folder.

https://github.com/mcguffin/wp-unique-media

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

79200542

Date: 2024-11-18 15:43:01
Score: 3.5
Natty:
Report link

1654869747

please translate what this means

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

79200530

Date: 2024-11-18 15:40:00
Score: 1
Natty:
Report link

On my case, nothing that stated above worked, then I realised I have the Do Not Disturb mode on the android device settings to On. After deactivate it, notifications worked perfectly fine.

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

79200526

Date: 2024-11-18 15:37:59
Score: 0.5
Natty:
Report link

Please review the comments on the original question that help clarify exactly what I was after with this post. (site A and site B)

First of all, thanks to TheMaster for helping me with the coding basis of what I'll provide below.

What I found with my testing is that basically, the onEdit trigger seems to only work on the instance of the spreadsheet that is actually performing the edits. It does not trigger on any of the other instances of the spreadsheet that might be open simultaneously. So my initial thought on this being possible, is actually erroneous. Unless someone can comment otherwise, I am going to answer my own question and say that it is not possible - or at least not so easily.

At any rate, below is the modification of TheMaster's code for .pdf downloads that makes the download be a .csv instead for those that might want it.

To summarize, the modification shown below worked to save a .csv to the local drive on the spreadsheet instance that was performing the edit. It did not, however save a .csv to the local drive on the other instance of the spreadsheet that I had open in a different location.

function downloadCsvToDesktop() {
  var ss = SpreadsheetApp.getActive(),
    id = ss.getId(),
    sht = ss.getActiveSheet(),
    shtId = sht.getSheetId(),
    url =
      'https://docs.google.com/spreadsheets/d/' +
      id +
      '/export' +
      '?format=csv&gid=' +
      shtId;
  var val = 'CSVNAME';//custom .csv name here 
  val += '.csv';
  //can't download with a different filename directly from server
  //download and remove content-disposition header and serve as a dataURI
  //Use anchor tag's download attribute to provide a custom filename
  var res = UrlFetchApp.fetch(url, {
    headers: { Authorization: 'Bearer ' + ScriptApp.getOAuthToken() },
  });
  SpreadsheetApp.getUi().showModelessDialog(
    HtmlService.createHtmlOutput(
      '<a target ="_blank" download="' +
        val +
        '" href = "data:application/pdf;base64,' +
        Utilities.base64Encode(res.getContent()) +
        '">Click here</a> to download, if download did not start automatically' +
        '<script> \
        var a = document.querySelector("a"); \
        a.addEventListener("click",()=>{setTimeout(google.script.host.close,10)}); \
        a.click(); \
        </script>'
    ).setHeight(50),
    'Downloading CSV..'
  );
}
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Tim Lank

79200520

Date: 2024-11-18 15:35:59
Score: 1.5
Natty:
Report link

2024-11-18T10:21:30.486-05:00 DEBUG 1 --- [nio-8080-exec-4] o.s.web.client.RestTemplate : HTTP GET https://abc.okta.com/oauth2/aus54dypbc4oJ6kiY4h7/v1/userinfo 2024-11-18T10:21:30.486-05:00 DEBUG 1 --- [nio-8080-exec-4] o.s.web.client.RestTemplate : Accept=[application/json, application/+json] 2024-11-18T10:21:30.611-05:00 DEBUG 1 --- [nio-8080-exec-4] o.s.web.client.RestTemplate : Response 200 OK 2024-11-18T10:21:30.611-05:00 DEBUG 1 --- [nio-8080-exec-4] o.s.web.client.RestTemplate : Reading to [java.util.Map<java.lang.String, java.lang.Object>] 2024-11-18T10:21:30.618-05:00 DEBUG 1 --- [nio-8080-exec-4] .s.ChangeSessionIdAuthenticationStrategy : Changed session id from D439DE75B621A64ED52179FA4EA1CADC 2024-11-18T10:21:30.618-05:00 DEBUG 1 --- [nio-8080-exec-4] .s.o.c.w.OAuth2LoginAuthenticationFilter : Set SecurityContextHolder to OAuth2AuthenticationToken [Principal=Name: [00u2ugiphbfDMNQZv4h7], Granted Authorities: [[OIDC_USER, SCOPE_email, SCOPE_openid, SCOPE_profile]], User Attributes: [{at_hash=tnoHUzvR4tWKuuxX31muTA, sub=00u2ugiphbfDMNQZv4h7, ver=1, amr=[sc, swk], iss=https://abc.okta.com/oauth2/aus54dypbc4oJ6kiY4h7, preferred_username=0667154532-abc, nonce=B7SB8IJvzy0SVhPXLk8YPmioG0j96gbQ7BtAYCwRboM, aud=[0oa53oj537zqZF0Fv4h7], idp=0oa1o29pkgUcw6nLu4h7, auth_time=2024-11-18T15:21:27Z, name=HARRY DAVID, exp=2024-11-18T16:21:30Z, iat=2024-11-18T15:21:30Z, [email protected], jti=ID.whrVTWFLvc6dUVvEobUprS-chaO__pUR_KPeX0P6bCY}], Credentials=[PROTECTED], Authenticated=true, Details=WebAuthenticationDetails [RemoteIpAddress=10.153.63.25, SessionId=D439DE75B621A64ED52179FA4EA1CADC], Granted Authorities=[OIDC_USER, SCOPE_email, SCOPE_openid, SCOPE_profile]] 2024-11-18T10:21:30.619-05:00 DEBUG 1 --- [nio-8080-exec-4] o.s.s.web.DefaultRedirectStrategy : Redirecting to /sa-server/ 2024-11-18T10:21:30.732-05:00 DEBUG 1 --- [nio-8080-exec-6] o.s.security.web.FilterChainProxy : Securing GET / 2024-11-18T10:21:30.732-05:00 TRACE 1 --- [nio-8080-exec-6] .s.o.c.w.OAuth2LoginAuthenticationFilter : Did not match request to Ant [pattern='/authorization-code/callback'] 2024-11-18T10:21:30.733-05:00 DEBUG 1 --- [nio-8080-exec-6] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext 2024-11-18T10:21:33.569-05:00 INFO 1 --- [nio-8080-exec-8] c.e.s.s.c.config.security.LoginFilter : should not filter path::/actuator/health 2024-11-18T10:21:33.569-05:00 INFO 1 --- [nio-8080-exec-8] c.e.s.s.c.config.security.LoginFilter : Authentication is null 2024-11-18T10:21:33.569-05:00 INFO 1 --- [nio-8080-exec-8] c.e.s.s.c.config.security.LoginFilter : request 2 is::/sa-server/actuator/health::null 2024-11-18T10:21:33.569-05:00 TRACE 1 --- [nio-8080-exec-8] o.s.web.servlet.DispatcherServlet : GET "/sa-server/actuator/health", parameters={}, headers={masked} in DispatcherServlet 'dispatcherServlet' 2024-11-18T10:21:33.569-05:00 TRACE 1 --- [nio-8080-exec-8] m.m.a.RequestResponseBodyMethodProcessor : Read "application/octet-stream" to [] 2024-11-18T10:21:33.570-05:00 TRACE 1 --- [nio-8080-exec-8] o.s.web.method.HandlerMethod : Arguments: [FirewalledRequest[ org.apache.catalina.connector.RequestFacade@25ccb73c], null] 2024-11-18T10:21:33.574-05:00 DEBUG 1 --- [nio-8080-exec-8] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using 'application/vnd.spring-boot.actuator.v3+json', given [/] and supported [application/vnd.spring-boot.actuator.v3+json, application/vnd.spring-boot.actuator.v2+json, application/json] 2024-11-18T10:21:33.574-05:00 TRACE 1 --- [nio-8080-exec-8] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [org.springframework.boot.actuate.health.SystemHealth@68af73cb] 2024-11-18T10:21:33.574-05:00 TRACE 1 --- [nio-8080-exec-8] s.w.s.m.m.a.RequestMappingHandlerAdapter : Applying default cacheSeconds=-1 2024-11-18T10:21:33.574-05:00 TRACE 1 --- [nio-8080-exec-8] o.s.web.servlet.DispatcherServlet : No view rendering, null ModelAndView returned. 2024-11-18T10:21:33.574-05:00 DEBUG 1 --- [nio-8080-exec-8] o.s.web.servlet.DispatcherServlet : Completed 200 OK, headers={masked} 2024-11-18T10:21:33.574-05:00 INFO 1 --- [nio-8080-exec-8] o.s.w.c.support.RequestHandledEvent : REQUEST_HANDLED: SYS-LISNR: url=[/sa-server/actuator/health]; client=[10.42.240.238]; session=[null]; user=[null]; 2024-11-18T10:21:38.568-05:00 INFO 1 --- [nio-8080-exec-9] c.e.s.s.c.config.security.LoginFilter : should not filter path::/actuator/health 2024-11-18T10:21:38.568-05:00 INFO 1 --- [nio-8080-exec-9] c.e.s.s.c.config.security.LoginFilter : Authentication is null 2024-11-18T10:21:38.568-05:00 INFO 1 --- [nio-8080-exec-9] c.e.s.s.c.config.security.LoginFilter : request 2 is::/sa-server/actuator/health::null 2024-11-18T10:21:38.568-05:00 TRACE 1 --- [nio-8080-exec-9] o.s.web.servlet.DispatcherServlet : GET "/sa-server/actuator/health", parameters={}, headers={masked} in DispatcherServlet 'dispatcherServlet' 2024-11-18T10:21:38.568-05:00 TRACE 1 --- [nio-8080-exec-9] m.m.a.RequestResponseBodyMethodProcessor : Read "application/octet-stream" to [] 2024-11-18T10:21:38.568-05:00 TRACE 1 --- [nio-8080-exec-9] o.s.web.method.HandlerMethod : Arguments: [FirewalledRequest[ org.apache.catalina.connector.RequestFacade@383d7f94], null] 2024-11-18T10:21:38.571-05:00 DEBUG 1 --- [nio-8080-exec-9] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using 'application/vnd.spring-boot.actuator.v3+json', given [/*] and supported [application/vnd.spring-boot.actuator.v3+json, application/vnd.spring-boot.actuator.v2+json, application/json] 2024-11-18T10:21:38.572-05:00 TRACE 1 --- [nio-8080-exec-9] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [org.springframework.boot.actuate.health.SystemHealth@556e312e] 2024-11-18T10:21:38.572-05:00 TRACE 1 --- [nio-8080-exec-9] s.w.s.m.m.a.RequestMappingHandlerAdapter : Applying default cacheSeconds=-1 2024-11-18T10:21:38.572-05:00 TRACE 1 --- [nio-8080-exec-9] o.s.web.servlet.DispatcherServlet : No view rendering, null ModelAndView returned. 2024-11-18T10:21:38.572-05:00 DEBUG 1 --- [nio-8080-exec-9] o.s.web.servlet.DispatcherServlet : Completed 200 OK, headers={masked} 2024-11-18T10:21:38.572-05:00 INFO 1 --- [nio-8080-exec-9] o.s.w.c.support.RequestHandledEvent : REQUEST_HANDLED: SYS-LISNR: url=[/sa-server/actuator/health]; client=[10.42.240.238]; session=[null]; user=[null];

Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Harry

79200510

Date: 2024-11-18 15:32:58
Score: 1
Natty:
Report link

I found the answer. Based on this 2 Unirest issues:

Unirest (precisely Apache Http Client) uncompresses files under the hood and then replaces Content-Encoding: gzip. I also tested response length on the server side with Unirest and non-Unirest clients, with and without compression and the sizes are the same.

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

79200500

Date: 2024-11-18 15:27:56
Score: 6.5 🚩
Natty: 5.5
Report link

can u by any chance upload your seperate python files for how u sell ,buy and get price for pionex api . thank you so much in advance

Reasons:
  • Blacklisted phrase (0.5): thank you
  • RegEx Blacklisted phrase (3): thank you so much in advance
  • Low length (1):
  • No code block (0.5):
  • Starts with a question (0.5): can u
  • Low reputation (1):
Posted by: jetcrafts

79200495

Date: 2024-11-18 15:25:55
Score: 1.5
Natty:
Report link

This can result from a namespace collision such as naming the file you are executing numpy.py. To fix this, change the name of the script you are executing.

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

79200492

Date: 2024-11-18 15:25:55
Score: 0.5
Natty:
Report link

I was not allowed to install sudo in my container. For me the solution was enter the container terminal as root:

docker exec -u root -it <container name/id>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: FrankyHollywood

79200489

Date: 2024-11-18 15:25:55
Score: 2
Natty:
Report link

Did you tried a very simple test to start?

main.dart:

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Test',

      home: const Test(),
    );
  }
}

Test.dart:

class Test extends StatelessWidget {
  const Test({super.key});

  @override
  Widget build(BuildContext context) {
    return  Scaffold(
      body: Container(height: 200, width: 200, color: Colors.red),
    );
  }
}

Is a very simple example to test. Try to run on a Windows and Chrome. Do you are using Android Studio?

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Did you
  • Low reputation (0.5):
Posted by: Alexandre B.

79200484

Date: 2024-11-18 15:23:54
Score: 4
Natty:
Report link

Hour worked, thank you. Did not know this was a function.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: JSands

79200479

Date: 2024-11-18 15:20:53
Score: 5
Natty:
Report link

Check this link, it generates pseudorandom bit sequence and give output as direct sequence spread spectrum:

https://es.mathworks.com/matlabcentral/fileexchange/28420-direct-sequence-spread-spectrum-ds-ss

Reasons:
  • Blacklisted phrase (1): this link
  • RegEx Blacklisted phrase (1): Check this link
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: PedroRodriguez

79200478

Date: 2024-11-18 15:19:53
Score: 0.5
Natty:
Report link

Try to run Huffman algorithm on the frequencies - you would see, that those codes could not be produced by a Huffman algorithm. Huffman always merges nodes with smallest frequencies, but to get those exact codes, you would have to merge nodes that are not smallest.

To get those codes, the following steps must be performed:

  1. A merged with B (both have a prefix of 10) for a total frequency of 7
  2. D merged with E (both have a prefix of 11) for a total frequency of 11
  3. AB merged with DE (both have a prefix of 1). But that's impossible for Huffman, because we are merging frequencies of 7 and 11, while C (frequency 8 ) is still present!

Note, however, that this code still gives each symbol the same number of bits as Huffman would. Because we know that Huffman is always an optimal prefix code - this code is also optimal.

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

79200474

Date: 2024-11-18 15:18:53
Score: 3
Natty:
Report link

The midpoints of the sides ab and ac of abc meet at the bisectors of the two exterior sides produced by extending the sides e and f respectively and ab and ac.

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

79200472

Date: 2024-11-18 15:18:53
Score: 1
Natty:
Report link

In my case, I solved the problem by deleting the .idea folder, then I closed Android Studio and reopened it.

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

79200469

Date: 2024-11-18 15:18:52
Score: 5
Natty:
Report link

In my experience, connecting Power Apps to Power Automate flows always ends up breaking my connections.

I would recommend going into your Power App, navigate to the Data tab, remove all your connections, then readd all your connections. It might be worth going into your Power Automate flow and checking the connection reference of each step and ensuring those are correct as well.

Here are a few references that support my suspicion:

Please let me know if this solves your problem.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please let me know
  • Probably link only (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: beelow

79200463

Date: 2024-11-18 15:16:52
Score: 1.5
Natty:
Report link

x86 architecture is the evolved version of the 8086 architecture.x86(some documentations refer it as 80x86 or ix86) chip is a member of the 8086 family. These days, x86 generally refers to 80386DX and later. Note: - the '80' in 8086,8085 or 80286 is the trademark label of that time, which later on became 'i'.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: The Beast Master

79200447

Date: 2024-11-18 15:12:50
Score: 0.5
Natty:
Report link

You can modify table styles by customize component token. Just wrapping the table component with <ConfigProvider> from antd and change the token value. See the design component token list from table component. I created a StackBlitz with the code bellow to see this working on an example.

<ConfigProvider
  theme={{
    components: {
      Table: {
        borderColor: '#f00',
      },
    },
  }}
>
  <Table
    columns={columns}
    expandable={{
      expandedRowRender: (record) => (
        <p style={{ margin: 0 }}>
          {record.description}
        </p>
      ),
      rowExpandable: (record) => record.name !== 'Not Expandable',
    }}
    dataSource={data}
  />
</ConfigProvider>
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: marcelofreires

79200446

Date: 2024-11-18 15:11:50
Score: 0.5
Natty:
Report link

As @chepner mentioned there is only one module random to patch it is wrong, maybe you can update your code like below that way your issue should be resolved. let me know if issue still seen

modul1.py:

from random import random

def function():
    return random()

modul2.py:

from random import random

def function():
    return random()

The unit_test:

def test_function():
    with mock.patch('modul1.random', return_value=1), \
         mock.patch('modul2.random', return_value=0):
        val1 = modul1.function()
        val2 = modul2.function()
        assert not val1 == val2
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @chepner
  • Low reputation (0.5):
Posted by: justTesting

79200443

Date: 2024-11-18 15:10:50
Score: 1
Natty:
Report link

It is possible to do so

$.ajax({
  url: 'url' //The address you want to refresh
  ,type: "GET",
  headers: { "Pragma": "no-cache", "Expires": -1, "Cache-Control": "no-cache" },
  complete: function(data) {
       location.reload();
     }
  });
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user16626854

79200442

Date: 2024-11-18 15:10:50
Score: 2
Natty:
Report link

I found a solution after a lot of time of trying and searching: https://github.com/jordond/MaterialKolor

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

79200440

Date: 2024-11-18 15:09:49
Score: 0.5
Natty:
Report link

Simple:

#include <iostream>
#include <unistd.h>

int main() {
    char *homeDir = getenv("HOME");

    if (homeDir != nullptr) {
        std::cout << "Home directory: " << homeDir << std::endl;
    } else {
        std::cerr << "Error getting home directory." << std::endl;
    }

    return 0;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Todd Hill

79200438

Date: 2024-11-18 15:09:49
Score: 2
Natty:
Report link

You have one extra space before the dot in filename [endpoint]/[entry]/page .tsx

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

79200432

Date: 2024-11-18 15:08:49
Score: 2.5
Natty:
Report link

After playing around a lot of time without getting didChangeDependencies to work I found out that didUpdateWidget did the trick. Do you think that this okay or is there another stumbling block that I overlooked?

  @override
  void didUpdateWidget(covariant SearchTermInputOneString oldWidget) {
    final log = getLogger();
    log.t("didUpdateWidget");

    // read apiEndpoint content
    currentContent = ref
        .read(widget.apiEndpointSearchTermInputContentProvider)
        .cast<String>();
    textEditingController.text =
        currentContent.isNotEmpty ? currentContent[0] : "";

    super.didUpdateWidget(oldWidget);
  }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user28298940

79200420

Date: 2024-11-18 15:03:47
Score: 6.5 🚩
Natty: 4
Report link

It’s been 7 years and I am currently working on a similar project.

Do you have any hints, feedbacks or made improvements about this topic ?

Reasons:
  • RegEx Blacklisted phrase (2.5): Do you have any
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Tarumi

79200414

Date: 2024-11-18 15:01:46
Score: 3.5
Natty:
Report link

read.csv(gzfile(yourfile),header = T, sep = ",")

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

79200413

Date: 2024-11-18 15:00:46
Score: 2.5
Natty:
Report link

For me it worked by installing GCP specific apache beam ==> pip install apache-beam[gcp]

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Shantanu

79200405

Date: 2024-11-18 14:58:45
Score: 3
Natty:
Report link

solution 1: delete [Build Settings] enter image description here

solution 2: create a folder named: Preview Content.

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

79200401

Date: 2024-11-18 14:57:44
Score: 0.5
Natty:
Report link

sed line selection uses regular expression, and by default, without the -E/-r option, the Basic flavor is used.

What you want to use is Groups - \(regexp\)

So something like this:

sed '/orders="\(Green\|Orange\|Blue\)/!d'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Phu Ngo

79200399

Date: 2024-11-18 14:57:44
Score: 1.5
Natty:
Report link

For your list_keyboard_devices you will need to change devices = wmi.InstancesOf("Win32_Keyboards") to devices = wmi.InstancesOf("Win32_Keyboard"). Note that you have use signular form Win32_Keyboard. This should give you a list of keyboards.

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

79200397

Date: 2024-11-18 14:56:44
Score: 2.5
Natty:
Report link

There is no difference for React Native, as per the error message. The message points to a breaking change of API in React 18. You might find Abal's hint useful. I'd search the code and do the replacement described in this answer

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

79200394

Date: 2024-11-18 14:55:44
Score: 0.5
Natty:
Report link

Yes, it’s possible to use certain methods from the main Telegram API with your bot, but there are specific requirements. You need to make sure that the method you want to use is marked with the note “Bots can use this method.

For example, you can see this note on the channels.editAdmin method. Only methods with this designation can be accessed by bots directly through the main Telegram API.

To use these methods, you’ll need to work with Telegram’s MTProto protocol, which is Telegram’s core protocol for client-server communication. This is different from the simpler Telegram Bot API (the HTTP-based API that most bot developers are familiar with). MTProto is more complex but allows access to features that aren’t available through the standard Bot API.

There are several libraries for various programming languages that support MTProto, which can help simplify the implementation process. By using an MTProto library, you can directly call the necessary Telegram API methods and unlock functionality that’s usually out of reach with just the Bot API.

Example libraries:

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

79200392

Date: 2024-11-18 14:55:44
Score: 3
Natty:
Report link

Seems like @JasonTrue 's answer is not working anymore due to the "//body//text()" XPath.

Acessing all the document's child nodes and then filtering out the empty text tags may be the way.

public static string StripInnerText(string html)
{
    if (string.IsNullOrEmpty(html))
    return null;

    HtmlAgilityPack.HtmlDocument doc = new();
    doc.LoadHtml(html);

    if (doc is null)
        return string.Empty;

    var texts = doc.DocumentNode.ChildNodes
        .Select(node => node.InnerText)
        .Where(text => !string.IsNullOrWhiteSpace(text))
        .Select(text => text.Trim())
        .ToList();

    var output = string.Join(Environment.NewLine, texts);

    string textOnly = HttpUtility.HtmlDecode(output.ToString());

    return textOnly;
}

Test it with the following fiddle: https://dotnetfiddle.net/NQC2Y5

Sorry for posting a new answer, it is because I don't have 50 reputation at the moment and this question and all the answers here was so useful for me that I felt like I have the duty to contribute.

Reasons:
  • RegEx Blacklisted phrase (1.5): I don't have 50 reputation
  • RegEx Blacklisted phrase (0.5): Sorry for posting
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @JasonTrue
  • Low reputation (1):
Posted by: srjheam

79200384

Date: 2024-11-18 14:53:43
Score: 3.5
Natty:
Report link

2>&1 before the pipe to redirect stderr output to stdout which can be read by grep.

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

79200381

Date: 2024-11-18 14:53:43
Score: 1
Natty:
Report link

Simply delete the malfunctioning emulator and create a new one. That was the only solution that worked for me.

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

79200371

Date: 2024-11-18 14:50:42
Score: 1
Natty:
Report link

You used style "position: absolute", the element is removed from the normal document flow, and no additional space is allocated for the element in the page layout. That is the "tab" block is by itself and does not interact with other blocks in any way.

Please, try using flex. Remove "position: absolute" and all the styles associated with it.

Then add the class

".ctr-accordion" additional style "flex: 1" and

".ctr-accordion.active" style "flex: 5".

Also remove the styles ".ctr-accordion.active .tab"

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Антон Пальчик

79200368

Date: 2024-11-18 14:50:42
Score: 10.5
Natty: 7.5
Report link

I am having the same problem, that is, replacing client.chat.completions.create which requires OpenAI with something open sourced. Have you been able to solve your questions? If so, could you please kindly share your solution? Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1.5): Have you been able to
  • RegEx Blacklisted phrase (1.5): solve your questions?
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Y Wang

79200365

Date: 2024-11-18 14:49:41
Score: 2
Natty:
Report link

So what's your format in your .env file.

Maybe you should go for dotenv doc to check your code.

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

79200357

Date: 2024-11-18 14:48:41
Score: 1.5
Natty:
Report link

It is hard to know but here some points:

I would start here. In this line: #1 RichText.createRenderObject we have this method

@override
RenderParagraph createRenderObject(BuildContext context) {
  assert(textDirection != null || debugCheckHasDirectionality(context));
  return RenderParagraph(text,
    textAlign: textAlign,
    textDirection: textDirection ?? Directionality.of(context),
    softWrap: softWrap,
    overflow: overflow,
    textScaler: textScaler,
    maxLines: maxLines,
    strutStyle: strutStyle,
    textWidthBasis: textWidthBasis,
    textHeightBehavior: textHeightBehavior,
    locale: locale ?? Localizations.maybeLocaleOf(context),
    registrar: selectionRegistrar,
    selectionColor: selectionColor,
  );
}

And here #0 Directionality.of:

static TextDirection of(BuildContext context) {
  assert(debugCheckHasDirectionality(context));
  final Directionality widget = context.dependOnInheritedWidgetOfExactType<Directionality>()!;
  return widget.textDirection;
}

And here debugCheckHasDirectionality: https://api.flutter.dev/flutter/widgets/debugCheckHasDirectionality.html

Do you have access of this computer, try to trace in debugCheckHasDirectionality.

Reasons:
  • RegEx Blacklisted phrase (2.5): Do you have a
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alexandre B.

79200354

Date: 2024-11-18 14:46:41
Score: 1.5
Natty:
Report link

I had a similar issue with a deployment on Netlify. The thing that I was doing wrong was adding the environment variables after deployment. And then doing further deployments would just give the same error. What you can try is manually building the project again and then deploying it, and make sure to add your environment variables in Netlify project console before building and deploying it.

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

79200351

Date: 2024-11-18 14:43:40
Score: 1
Natty:
Report link

This is a huge breaking change though, something we are experiencing the pain off right now

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

79200350

Date: 2024-11-18 14:43:40
Score: 0.5
Natty:
Report link

try This with Where condition. DB::raw("CONCAT('fname','lname') AS full_name"),'yourFilterVariable'

Reasons:
  • Whitelisted phrase (-1): try This
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Abid Rizvi

79200343

Date: 2024-11-18 14:40:39
Score: 3
Natty:
Report link

Figured it out. My database reference was being created before the emulators were set up which was the cause. Still don't know why it only broke reading from the emulated db and not writing, but I'm glad it's fixed.

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

79200342

Date: 2024-11-18 14:40:39
Score: 0.5
Natty:
Report link

Use the Field Block ^FB Command; Parameter D is the justification, here set to C for center

^FT250,600^A0B,28,28^FB600,1,0,C^FH\^FDTEXT_TO_REPLACE^FS
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: EdHayes3

79200337

Date: 2024-11-18 14:38:39
Score: 2.5
Natty:
Report link

You can fix it by upgrading flutter_local_notifications to 17.2.1, or latest. Because by this version the issue has been fixed

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

79200329

Date: 2024-11-18 14:35:38
Score: 2
Natty:
Report link

Changing (ngModelChange) to (input) resolved the deprecation warning for me. This works with <input>, <select> or <textarea> Source: https://developer.mozilla.org/en-US/docs/Web/API/Element/input_event

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

79200327

Date: 2024-11-18 14:35:38
Score: 3.5
Natty:
Report link

The solution was solved in this issue here

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: Will

79200325

Date: 2024-11-18 14:34:38
Score: 0.5
Natty:
Report link

Well, I've solved my problem by renaming property and setting datastore column name to old name to assure existing data still be valid:

internal class ThirdpartyInfo
{
    public int UserId { get; set; }
    [Column("MyObjectId")]
    public int ObjId { get; set; }
}

Then EF Core throws no warnings while running.

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

79200324

Date: 2024-11-18 14:34:38
Score: 3.5
Natty:
Report link

IMO, further details like join columns of B and C will be required!!!

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

79200316

Date: 2024-11-18 14:31:37
Score: 2
Natty:
Report link

On Ubuntu 20 I managed to set the extended attribute with attr -s command, while setfattr resulted in the operation not permitted error.

Thanks to @user354134 for suggesting trying that.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @user354134
  • Low reputation (0.5):
Posted by: Nikita128

79200314

Date: 2024-11-18 14:31:37
Score: 3
Natty:
Report link

My solution was to delete the dist and .angular folder. Maybe it was a cache problem.

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

79200312

Date: 2024-11-18 14:30:37
Score: 2
Natty:
Report link

As per @JohnAnderson suggestion, we've went along with Threading for our scan_network however, individual Threads for individual scans don't appear to wokr at the moment.

We've also used @mainthread decorator on the update_text so that we can update the value from different Thread without slowing out the MainThread.

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

79200307

Date: 2024-11-18 14:28:36
Score: 1
Natty:
Report link

You could create an additional recorded IPC publication from within the clustered service that records all messages that are outbound (let's call this the egress-log). A separate application/process can then read the recorded egress log of each cluster node and compare the messages to detect divergence. To help manage the comparison of messages by this "divergence detecter" process I would have the cluster stamp each message with a monotonically increasing sequence number so you can ensure you properly comparing the same message (as well as detect gaps/dupes).

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

79200302

Date: 2024-11-18 14:26:35
Score: 3.5
Natty:
Report link

why not just use Complex{Int16}?

Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): why not
  • High reputation (-1):
Posted by: Oscar Smith

79200286

Date: 2024-11-18 14:21:34
Score: 1
Natty:
Report link

Msg 15138, Level 16, State 1, Line 1 The database principal owns a schema in the database, and cannot be dropped.

Syntax:

USE [DatabaseName]
GO
ALTER AUTHORIZATION ON SCHEMA::[Schema_Name] TO [dbo]
GO

Example:

USE [TestDB]
GO
ALTER AUTHORIZATION ON SCHEMA::[db_datawriter] TO [dbo]
GO
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ashok Yadav

79200284

Date: 2024-11-18 14:21:34
Score: 2
Natty:
Report link

I had opened the parent folder in Intelli-J. After opening the child folder that has the POM file, it worked.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: bhavdeep sharma

79200280

Date: 2024-11-18 14:20:33
Score: 0.5
Natty:
Report link
    // Adding ref has resolved my issue ....
    "use client";
    import { ReactNode, useRef } from "react";
    import { Provider } from "react-redux";
    import { AppStore, makeStore } from "../rtk/store";
    import { ToastContainer } from "react-toastify";
    import { Wrapper } from "@containers";
    import "react-toastify/dist/ReactToastify.css";
    import { ThemeProviderWrapper } from "app/theme/ThemeProviderWrapper";
    
    export function ClientOnlyProvider({ children }: { children: ReactNode }) {
      const storeRef = useRef<AppStore>();
      if (!storeRef.current) {
        // Create the store instance the first time this renders
        // Call your store here to resolve reset issue
        storeRef.current = makeStore();
      }
    
      return (
        <ThemeProviderWrapper>
          <Provider store={storeRef.current}>
            <ToastContainer />
            <Wrapper>{children}</Wrapper>
          </Provider>
        </ThemeProviderWrapper>
      );
    }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user27846394

79200275

Date: 2024-11-18 14:19:33
Score: 4
Natty:
Report link

This script will give you the Assertion error. enter image description here

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

79200272

Date: 2024-11-18 14:17:32
Score: 0.5
Natty:
Report link

We have recently developed a preview feature which can check for externally made changes (e.g. those not made by Flyway) before the next migration is ran which is available in Flyway versions 10.20.1 and later.

Database drift is the unintentional divergence of a database schema from its version-controlled state, often due to direct changes made outside the standard deployment process.

Drift is detected by comparing the state of your SQLServer/PostgreSQL/MySQL or Oracle schema after your last migration and before your next migration scripts have been applied and will tell you if out-of-process changes have occurred in between those two states. You will be able to see information regarding the database objects that have drifted in a drift report within Flyway Pipelines

To start using this feature today visit https://flyway.red-gate.com/ for instructions on how to configure the drift check and download the latest version of Flyway.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Adam Britt -Flyway PM

79200265

Date: 2024-11-18 14:16:32
Score: 2.5
Natty:
Report link

Make your activity extends from AppCompatActivity instead of ComponentActivity.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mohammad Al-Bdour

79200258

Date: 2024-11-18 14:14:31
Score: 0.5
Natty:
Report link

In the current version of PrimeFaces the legend is already aligned as requested. So, my advice would be to upgrade PrimeFaces.

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