79157291

Date: 2024-11-04 23:41:10
Score: 0.5
Natty:
Report link

The developers have replied that the serial pin will be in an undefined state before it is initialized. So I have put a work around in software: I just ignore all characters before a known marker is received. This works well for me, for now. But this is only sweeping the problem under the carpet.

Probability theory says that if sufficient number of monkeys type randomly for sufficient number of years, then you can expect to see a quote from Shakespeare in their output!

If an uninitialized output pin is going to be in an undefined state, by design, it is a ticking time bomb. Such engineering practices have resulted in exploding space shuttles and melting nuclear reactors!

A better design would be to start the pins in INPUT mode by default. Software can take several milliseconds to complete its boot up routines, read configuration settings etc., before initializing the serial port. Till then the port can at least be silent.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Raja

79157289

Date: 2024-11-04 23:40:10
Score: 1.5
Natty:
Report link

As an update, I got the following response when asked on the GCC website:

"It's not part of the ABI, but there can be performance benefits from aligning arrays, for example when code is vectorized. It's not possible to easily tell exactly how large the array will be in practice, so even very small ones get aligned.

There's no point in doing this for scalar objects as the next location cannot ever contain a related object."

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

79157279

Date: 2024-11-04 23:32:09
Score: 2.5
Natty:
Report link

My error was due to the fact that I added the scrollPane inside an AnchorPane. I removed the parent anchorPane so that the ScrollPane become the parent container and everything work just fine after that.

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

79157277

Date: 2024-11-04 23:31:09
Score: 2
Natty:
Report link

i faced the same issue for a complete day, in my project i calles the path : /api/test and every time i tried to fire up the cron function i faced a 404.

when i changes the directory to /cron/test/route.js its finally worked!

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: דניאל קורקבדוס

79157272

Date: 2024-11-04 23:28:08
Score: 2
Natty:
Report link

Credit given to user @paleonix

line A_s[threadIdx.y * tile_size + threadIdx.x] = a_d[row*n + tile*tile_size + threadIdx.x];

should be changed to

A_s[threadIdx.y * tile_size + threadIdx.x] = a_d[row*k + tile*tile_size + threadIdx.x];

this is due to incorrect indexing of global memory Matrix A into the shared memory matrix A_s, resulting is an incorrect partial sum.

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

79157271

Date: 2024-11-04 23:27:08
Score: 3
Natty:
Report link

copy the command fnm env --use-on-cd | Out-String | Invoke-Expression into $profile to save the settings

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

79157268

Date: 2024-11-04 23:27:08
Score: 2.5
Natty:
Report link

It should be noted that you have to: navigate to the downloaded container in Finder. Then right click and Show Package Contents -> AppData/Documents

Thanks yoAlex5 for that one!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Chris Walken

79157262

Date: 2024-11-04 23:21:06
Score: 2.5
Natty:
Report link

In Semantic Kernel you need to define the OpenAI settings before you use it. Please see the full example here Microsoft learn

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

79157248

Date: 2024-11-04 23:17:05
Score: 1.5
Natty:
Report link

On macOS Sonoma System Settings, → type "Keyboard layouts". Click on the found entry. In the panel in the middle, you see. Text Input. Click on the Input Sources Button Edit.. There you see the fifth entry, "Add period with double space". Deactivate it and you are done.

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

79157247

Date: 2024-11-04 23:16:05
Score: 3
Natty:
Report link

Is anyone familiar with a solution similar to the one demonstrated in this video?

https://youtu.be/slmy3bygaSk?si=A57kUKHVjOtlnhay

Example:

Install this library.

pip install PoorMansHeadless

# ----scrip code---------
from math import prod
from time import sleep

import undetected_chromedriver as uc
from PoorMansHeadless import FakeHeadless
from a_cv_imwrite_imread_plus import open_image_in_cv
from cv2imshow.cv2imshow import cv2_imshow_single
# pip install PoorMansHeadless a-cv-imwrite-imread-plus cv2imshow
def get_hwnd(driver):
    while True:
        try:
            allhwnds=[x for x in FakeHeadless.get_all_windows_with_handle() if x.pid == driver.browser_pid]
            return sorted(allhwnds, key=lambda x: prod(x.dim_win), reverse=True)[0].hwnd
        except Exception:
            continue
if __name__ == "__main__":
    driver = uc.Chrome()
    driver.get('http://www.google.com')
    driver.get_screenshot_as_png()
    sleep(2)
    hwnd=get_hwnd(driver)
    driverheadless=FakeHeadless(hwnd)
    driverheadless.start_headless_mode(width=None, height=None, distance_from_taskbar=1)
    screenshot1=lambda: cv2_imshow_single(open_image_in_cv(driver.get_screenshot_as_png()),title='sele1',killkeys="ctrl+alt+q")

Library

https://github.com/hansalemaos/PoorMansHeadless

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Blacklisted phrase (1): this video
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: PJMecNet

79157243

Date: 2024-11-04 23:14:04
Score: 1
Natty:
Report link

I don't know enough math to fully understand your question but theses lines seems suspicious:

    x = np.linspace(0, 10, 100)

    [...]

    x_train, x_test = x[:80], x[80:]
    y_train, y_test = y[:80], y[80:]

This is the only place where you can get an error that gives a dimension of 20.

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

79157231

Date: 2024-11-04 23:07:02
Score: 1.5
Natty:
Report link

You can also use IFERROR function. This function let's you return a desired value with the formula results in an #N/A error.

In your example try: =IFERROR(A1*B1,B1)

So if A1 is a value then it will calculate "A1*B1". If A1 is #N/A this calculation will error trying to multiply, so the formula will just result in "B1".

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

79157207

Date: 2024-11-04 22:54:59
Score: 2
Natty:
Report link

At one time the default was 10 seconds. There is no longer a delay before the session starts. The session starts as soon as the app displays an Activity.

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

79157196

Date: 2024-11-04 22:47:57
Score: 2.5
Natty:
Report link
<Menu closeOnClick>
...
</Menu>
Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Low reputation (0.5):
Posted by: Mohamed EL YONOUSI

79157194

Date: 2024-11-04 22:44:56
Score: 5.5
Natty:
Report link

Is the .NET version in your Azure environment also .NET 6?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Is the
  • Low reputation (0.5):
Posted by: Shanmugam Sudalaimuthu

79157192

Date: 2024-11-04 22:43:55
Score: 1
Natty:
Report link

As said by @jonrsharpe

import type ... is used when you only need the type, not the value, of the import.

import: Importing Both Types and Values

The import statement is used to import both types and values (functions, classes, variables, objects, etc.) from a module. When you use a regular import, TypeScript will import the type information along with the actual runtime values.

import type: Importing Only Types

The import type statement, introduced in TypeScript, is used to import only the type information from a module. It indicates that you are interested in using the types of exported values but not the actual runtime values.

Additionally, we use import type to use the type for type-checking purposes without including the actual runtime values of the module in the emitted JavaScript code.

Reference: https://medium.com/@quizzesforyou/import-vs-import-type-in-typescript-8e5177b62bea

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @jonrsharpe
  • Self-answer (0.5):
Posted by: Aron

79157190

Date: 2024-11-04 22:41:55
Score: 2.5
Natty:
Report link

I am an absolute beginner but... l see that after the for loop, (i) is the same as (n), you can delete it.

also, l think you forgot to delete the (dates) array.

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

79157165

Date: 2024-11-04 22:25:52
Score: 3.5
Natty:
Report link

just came across this. it seems to keep the min height if it is added after something is put there but not otherwise

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

79157158

Date: 2024-11-04 22:18:51
Score: 0.5
Natty:
Report link

https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity#additional_notes

A few things to remember about specificity:

Specificity only applies when the same element is targeted by multiple declarations in the same cascade layer or origin. Specificity

only matters for declarations of the same importance and same origin and cascade layer. If matching selectors are in different origins, the cascade determines which declaration takes precedence.

When two selectors in the same cascade layer and origin have the same specificity, scoping proximity is then calculated; the ruleset

with the lowest scoping proximity wins. See How @scope conflicts are resolved for more details and an example.

If scope proximity is also the same for both selectors, source order then comes into play. When all else is equal, the last selector

wins.

As per CSS rules, directly targeted elements will always take precedence over rules which an element inherits from its ancestor.

Proximity of elements in the document tree has no effect on the 
specificity.

I that the CSS probably worked or came close but got nullified by one of these rules.

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

79157153

Date: 2024-11-04 22:16:50
Score: 3.5
Natty:
Report link

I found my answer here: https://github.com/nodejs/node-addon-api/issues/222 (which I found through the post Google found me here: https://github.com/nodejs/node-addon-api/issues/416)

Basically, just rm -rf'ed CommandLineTools and reinstalled from scratch. (Sometimes --force-install is just not good enough.)

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

79157146

Date: 2024-11-04 22:14:50
Score: 3
Natty:
Report link

In my case, I had installed the agent before installing Node + npm. The solution was to uninstall the agent and reconfigure it from scratch

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

79157136

Date: 2024-11-04 22:11:49
Score: 1.5
Natty:
Report link

I'm currently encountering the same issue. Submitted bug reports to Google. It's happening with a couple of different files for our company.

One workaround that's worked temporarily is to make a copy of the file (and do no more BigQuery refreshes). That's at least allowed some users to temporarily access the data who were just getting the blank PivotTable, but it's not a real solution.

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

79157128

Date: 2024-11-04 22:07:48
Score: 2.5
Natty:
Report link

This issue is closer to being compatibility issue. Make sure you're using the right django version. for instance this two are compatible django==4.2.9 djangorestframework==3.14.0

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

79157124

Date: 2024-11-04 22:04:46
Score: 11
Natty: 7
Report link

I have the same question, after redirection successful by default first in order .AddOpenIdConnect() scheme events are calling for example token validation event is triggered from the first scheme when it is supposed to trigger events in the associated scheme. is there a way we can resolve the issue?

Reasons:
  • Blacklisted phrase (1): I have the same question
  • Blacklisted phrase (1): is there a way
  • RegEx Blacklisted phrase (1.5): resolve the issue?
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same question
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: newbie

79157105

Date: 2024-11-04 21:55:42
Score: 8.5 🚩
Natty: 5
Report link

I have a similar problem. I hope João Silva can help me. I'll try to email.

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): I have a similar problem
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have a similar problem
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user28133570

79157104

Date: 2024-11-04 21:55:42
Score: 0.5
Natty:
Report link

LazyList by default discards UI items when they go out of the view bounds to prevent the ever-growing nodes in the composition tree. So this is expected behaviour.

Your code should not be dependent on the recomposition and if you want to run any long-running tasks then that should happen in ViewModel or some top-level view state holder or top-level UI composable

Reasons:
  • No code block (0.5):
Posted by: AndroidEngineX

79157093

Date: 2024-11-04 21:51:41
Score: 0.5
Natty:
Report link

It turns out what I actually need is CPLUS_INCLUDE_PATH; from the manpage:

CPATH

C_INCLUDE_PATH

CPLUS_INCLUDE_PATH

OBJC_INCLUDE_PATH

Each variable's value is a list of directories separated by a special character, much like PATH, in which to look for header files. The special character, "PATH_SEPARATOR", is target-dependent and determined at GCC build time. For Microsoft Windows-based targets it is a semicolon, and for almost all other targets it is a colon.

CPATH specifies a list of directories to be searched as if specified with -I, but after any paths given with -I options on the command line. This environment variable is used regardless of which language is being preprocessed.

The remaining environment variables apply only when preprocessing the particular language indicated. Each specifies a list of directories to be searched as if specified with -isystem, but after any paths given with -isystem options on the command line.

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

79157090

Date: 2024-11-04 21:49:40
Score: 0.5
Natty:
Report link

The essential problem here is how do you have the visible GUI instance communicate with the socket client? One way to do this would be to pass an instance of the GUI into the web socket client via its constructor. Then, with this GUI instance, you could pass data from the client into the GUI, and visa-versa.

Say you had a GUI that looked like so:

public class MyJFrame extends javax.swing.JFrame {

    // ... code redacted ...

    public void fromServer(final String message) {
        // note that fromServer will of necessity be called *off* of the Swing event thread, the EDT
        // and so you will want to take steps to make sure that it is only used *on* this thread:
        EventQueue.invokeLater(new () -> {
            // use message from the GUI here
        });
    }
    
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(() -> {
            public void run() {
                MyJFrame myJFrame = new MyJFrame();

                ClientManager clientManager = ClientManager.createClient();
                URI uri = null;             
                try {                   
                    uri = new URI("ws://localhost:8080/java/demoApp");
                    // create our WebSocketClient, passing in the GUI
                    WebSocketClient webSocketClient = new WebSocketClient(myJFrame);
                    
                    // and then initiate the session using the above client
                    // This uses an overload of the connectToServer method that takes an object
                    session = clientManager.connectToServer(webSocketClient, uri);
                    myJFrame.setVisible(true); // start the GUI
                } catch (URISyntaxException e) {
                    e.printStackTrace();
                } catch (DeploymentException e) {
                    e.printStackTrace();
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        });
    }
}

Your web socket client could look something like so:

@ClientEndpoint
public class WebSocketClient {
    private MyJFrame myJFrame;
    
    public WebSocketClient(MyJFrame myJFrame) {
        this.myJFrame = myJFrame;
    }
    
    @OnMessage
     public void onMessage (String message, Session session) {
        System.out.println("[SERVER RESPONSE]: " + message);
        // MyJFrame.setButtonGrid(message); // don't call a static method but rather an instance method
        myJFrame.fromServer(message);
    }
}

Note:

Reasons:
  • Blacklisted phrase (1): how do you
  • RegEx Blacklisted phrase (2.5): do you have the
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • High reputation (-2):
Posted by: Hovercraft Full Of Eels

79157079

Date: 2024-11-04 21:43:39
Score: 2
Natty:
Report link

You are adding the prompt to the end of the conversation history. Add the user prompt to the start of the list, followed by a word like ---ChatHistory-- that indicates that what follows it is the chat history. Try and see if it helps.

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

79157066

Date: 2024-11-04 21:39:37
Score: 1
Natty:
Report link

app.listen(PORT, () => { console.log(App running on PORT: ${PORT}) }) This is the best way to listen to your nodejs application when working with node. I hope this will solve the problem

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

79157062

Date: 2024-11-04 21:39:37
Score: 0.5
Natty:
Report link

I had the same trouble on Microsoft Edge until I got into settings -> search for audio -> then set it to Allow - then it worked:

Edge Settings

Reasons:
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Timtamourn

79157055

Date: 2024-11-04 21:34:34
Score: 6 🚩
Natty:
Report link

this is how I send data with my SIM7600

AT+HTTPINIT OK AT+HTTPPARA="CONTENT","application/x-www-form-urlencoded" OK AT+HTTPPARA="URL","https://api.thingspeak.com/update?api_key=xxxxxxxxxxxxxxxx&field1=5.00&field2=25.00&field3=50.00" OK AT+HTTPACTION=0 OK

+HTTPACTION: 0,200,6 AT+HTTPTERM

OK

I have one question. How did you connect your Arduino to the SIM module? My Arduino MEGA have a 5V UART and my sim7600 3.3V I use logic level converter by as I cannot decrease the speed of the SIM7600 below 115200 permanently I cannot communicate properly through the UART with AT command…. Thanks for your feedback and advise

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (3): Thanks for your feedback and advise
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Filler text (0.5): xxxxxxxxxxxxxxxx
  • Low reputation (1):
Posted by: OliveR

79157046

Date: 2024-11-04 21:31:33
Score: 1.5
Natty:
Report link

Currently the SDK supports a local command to clear app data, and a package to allow EMMs using legacy DPCs to migrate to Android Device Policy. You can check the release notes for the library to know when new features are added. You may refer to this AMAPI extensibility sample app for additional information. This app provides a fully functional example of Integrating with AMAPI SDK to make use of extensibility features.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Rey V. Aquino

79157042

Date: 2024-11-04 21:29:32
Score: 1
Natty:
Report link
library(data.table)

# Assuming df1 is already a data.table
setDT(df1)

df1[, `:=`(
  Rank1 = as.numeric(as.factor(M1)),
  Rank2 = as.numeric(as.factor(M2)),
  Rank3 = as.numeric(fct_rev(as.factor(M3)))
)]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Z.Berke

79157039

Date: 2024-11-04 21:28:32
Score: 2.5
Natty:
Report link

@ciaanolu Try this :

df1 = pd.DataFrame({k: v for d in data for k, v in d.items()}, index=[0])
df1

enter image description here

Reasons:
  • Whitelisted phrase (-1): Try this
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @ciaanolu
  • Looks like a comment (1):
Posted by: Praveer Kumar

79157021

Date: 2024-11-04 21:20:29
Score: 3
Natty:
Report link

I ran in to the same issue.

Symlink is disabled by default by Hostinger. --> Instruction image

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Stan van der Meijden

79157019

Date: 2024-11-04 21:19:28
Score: 4
Natty: 4.5
Report link

By changing the g in the link to a u for example :

https://github.com/AyoubAitcheikhahmed/flusy-backend https://uithub.com/AyoubAitcheikhahmed/flusy-backend

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

79157018

Date: 2024-11-04 21:18:28
Score: 3
Natty:
Report link

Get-AzResource works. State is found under "properties"

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

79157016

Date: 2024-11-04 21:17:28
Score: 3.5
Natty:
Report link

There is no official functionality to achieve this, however this Git issue will provide some insight into the process: https://github.com/EasyCorp/EasyAdminBundle/issues/3455#issuecomment-1517631289

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

79157013

Date: 2024-11-04 21:17:28
Score: 1.5
Natty:
Report link

you need to change gcc compiler to emcc

export CC=emcc
export CXX=em++
export AR=emar
export RANLIB=emranlib

emconfigure ./configure ...
emmake make
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: erfan hoseini

79157009

Date: 2024-11-04 21:15:27
Score: 1
Natty:
Report link

def calculate_average(numbers):

if len(numbers) == 0:
    print("لیست خالی است، امکان محاسبه میانگین وجود ندارد.")
    return


average = sum(numbers) / len(numbers)


print("میانگین اعضای لیست:", average)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mina Zarei

79157000

Date: 2024-11-04 21:11:26
Score: 3.5
Natty:
Report link

A Valentina Studio developer confirmed via email that these methods do not currently work. Programmatically changing a liveview may be included in a future release.

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

79156999

Date: 2024-11-04 21:11:26
Score: 2.5
Natty:
Report link

Have you checked out Angular elements?

Personally, I don't have any experience with it, but it seems like it could be relevant if you're creating Web Components in Angular.

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

79156980

Date: 2024-11-04 21:01:24
Score: 4
Natty: 4.5
Report link

Instead of sending request to https://api.prizepicks.com you should send the request to https://partner-api.prizepicks.com

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 Hassan

79156978

Date: 2024-11-04 21:01:23
Score: 4
Natty: 4.5
Report link

Instead of sending request to https://api.prizepicks.com you should send the request to https://partner-api.prizepicks.com

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 Hassan

79156977

Date: 2024-11-04 21:00:22
Score: 1
Natty:
Report link
import pandas as pd
import plotly.express as px

df=  pd.DataFrame( {'Latitude': [51.0, 51.2, 53.4, 54.5],
              'Longitude': [-1.1, -1.3, -0.2, -0.9],
              'values': [10, 2, 5, 1] })

fig = px.scatter_geo(df,lat='Latitude',lon='Longitude', hover_name="values")  # can add param size also as list
fig.update_layout(title = 'World map', title_x=0.5)
fig.show()

for GPS see example here

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

79156975

Date: 2024-11-04 20:58:22
Score: 3.5
Natty:
Report link

Probably blocks on the head of the hash chain.

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

79156973

Date: 2024-11-04 20:58:22
Score: 4
Natty:
Report link

Why do you make the assumption that the error should increase with every step? Once your random forest is trained it basically becomes a static function outputting sometimes "good" and sometimes "bad" results. I think the only thing that can be deduced from the mape plot in your example is that it sometimes comes very close to your true result and sometimes strays away further. Do you have some kind of mathematical proof that backs your assumption?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Why do you
  • Low reputation (0.5):
Posted by: mortom123

79156966

Date: 2024-11-04 20:56:21
Score: 2
Natty:
Report link

You should put your code in a boot file, which is injected into main.js and available globally. When you use "yarn create quasar", one of the options is to install axios for api calls, and it uses the boot files approach.

You can read more about it at: https://v2.quasar.dev/quasar-cli/boot-files

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

79156961

Date: 2024-11-04 20:54:20
Score: 2.5
Natty:
Report link

I didn't come up with a valid solution. In the end, I decided to stop using log-symbols, and I chose picocolors instead of chalk.

For piccolors It works without transformIgnorePatterns

For piccolors It works even withhout transformIgnorePatterns

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mateusz Kućka

79156960

Date: 2024-11-04 20:54:18
Score: 10 🚩
Natty: 6.5
Report link

Found any solution to this problem? We are having the exact same issue.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (2): any solution to this problem?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): having the exact same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kevin Pelland

79156953

Date: 2024-11-04 20:52:18
Score: 1
Natty:
Report link

I was getting the same error but I found this command to help with that:

xhost si:localuser:root

Just type this in the terminal of your project and you won't get that error anymore, you will however have to install Pillow and some other packages so follow the error to resolve your issues.

Hope this helps.

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ali

79156943

Date: 2024-11-04 20:47:16
Score: 0.5
Natty:
Report link

This can happen if you access a URL that is automatically redirected. In my case, I mistakenly accessed an HTTP endpoint that redirected to HTTPS.

The requests library drops some headers in that case, including the 'Content-Type' header.

See this issue: https://github.com/psf/requests/issues/3490

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

79156919

Date: 2024-11-04 20:38:14
Score: 2.5
Natty:
Report link
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Z.Berke

79156912

Date: 2024-11-04 20:34:13
Score: 2
Natty:
Report link

Please try this using Ollama. It looks like an issue with LmStudio.

Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Shanmugam Sudalaimuthu

79156911

Date: 2024-11-04 20:34:13
Score: 1
Natty:
Report link

I deleted the android folder in my flutter project. Then i created a new flutter project and copied the android folder to my existing project. Just check to be sure to not get rid of changes you made yourself like:

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

79156904

Date: 2024-11-04 20:32:12
Score: 2.5
Natty:
Report link

Never mind, I copied and pasted my whole src folder to another new directory and constructed a new project root directory and it worked. Total reconstruction worked.

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

79156893

Date: 2024-11-04 20:28:11
Score: 1.5
Natty:
Report link

Since after a few hours no one has answered completely, here is a complete answer to the question.

If you want to iterate over the entire array and count the elements, or perform operations on them the comment of @Barman is for you.

If instead you just want to do what the question asks, the best way is to stop the function as soon as it finds an array element with a null key value, avoiding unnecessary cycles.

So in this case is better to use the following code without considering the closures scoping of variables, but using a simple exception:

function check_if_the_array_has_not_empty_values($arr) {
    try {
        array_walk_recursive($arr, function($value, $key) {
            if ($value == '') { throw new Exception; }
        });
        return 1;
    }catch(Exception $exception) {
        return 0;
    }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Barman
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: PHPKiatofiaFlowOverUs

79156892

Date: 2024-11-04 20:28:11
Score: 2.5
Natty:
Report link

I spent days trying to resolve this, in the end to resolve it, I just added this line to sonar config:

"sonar.sources": "src",

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

79156872

Date: 2024-11-04 20:20:08
Score: 2.5
Natty:
Report link

Did check their common issues section ?

I see there that they add an index prop in the

Hope this helps!

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did
  • Low reputation (1):
Posted by: CodingGoat

79156868

Date: 2024-11-04 20:18:08
Score: 1
Natty:
Report link

For the benefit of anyone stumbling over this question: I finally found the reason I never got a proper intent! Thanks to a response in this question I found out:

I had understood the placeholder "pckname" in Google's tutorial such that this is the (Java) package name of the Activity that I want to start up. But it is obviously the application class's package, i.e. the package of the class that "... extends Application" in your application, which - in my case - is two layers higher up than the activity I wanted to trigger. Using the correct "package name" I immediately got the intended intent (pun intended...) and my application fired up!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: mmo

79156838

Date: 2024-11-04 20:07:04
Score: 1
Natty:
Report link

Verify MIME type error you saw 'text/html' usually means the server tried to render a 404 error page instead of serving the JavaScript file. This should be resolved once you ensure that:

  1. express.static middleware is set up correctly and is above other route handlers
  2. Inside public dir, you should have a js folder, and within it, a file named app.js (public/js/app.js)
  3. Make sure that app.use(express.static(pathToPublic)) is placed above any route handlers like the 404 route in your server setup. Otherwise, the 404 route could be intercepting requests to static files.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Pawan Shekhawat

79156825

Date: 2024-11-04 20:02:02
Score: 0.5
Natty:
Report link

Update as of 11/4/2024: I was running into this issue on MySQL WorkBench v8.0.34.Instead of reinstalling python, I tried upgrading to the most recent version (v8.0.40) and it worked for me.

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

79156824

Date: 2024-11-04 20:02:02
Score: 0.5
Natty:
Report link

pylint . --recursive should discover your python files the same way under Windows and Linux.

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

79156819

Date: 2024-11-04 20:00:01
Score: 0.5
Natty:
Report link

The reason for this is that marking a function as returning T? just means that it can return null. But the type of T in this function is still int as passed in the type parameter but int? translates into a totally different type: Nullable<int>.

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

79156814

Date: 2024-11-04 19:59:01
Score: 1
Natty:
Report link

Here, we define an anonymous function that takes x as a parameter, similar to {}.

Yes, the curly braces {} are doing the same thing in this context as they do when defining a function. In R, they are utilized to form a section of code that must be executed as a unit, which is a common practice in R, not unique to purrr.

When you utilize %>%, the {} block functions similarly to an unnamed function that takes the input from the pipe and enables you to perform various operations on it.

By using pipes (%>%), {} enables you to handle several expressions as one anonymous function.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Elif Sena Akçay

79156811

Date: 2024-11-04 19:58:00
Score: 1
Natty:
Report link

I also get Illegal instruction (core dumped) I solved it at my QNAP with Intel Core I7 Nehalem which supports AVX. After research, my guest system at Ubuntu 22 LTE has no AVX. --> System/ --> Change CPU Type from IntelCPU to PASSTROUGH

That will do the trick after reboot

Cheers, Heinz

Reasons:
  • Blacklisted phrase (1): Cheers
  • Whitelisted phrase (-2): I solved
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user3256384

79156807

Date: 2024-11-04 19:57:00
Score: 1.5
Natty:
Report link

It is a tragedy how this tool is unusable with the command line arguments following the official documentation. A simple "solution" is to copy the exe from the default VS folder and put it somewhere convenient. Then it will work as per docs, without having to reference eternally long paths with spaces and .exe etc..

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

79156804

Date: 2024-11-04 19:56:00
Score: 1.5
Natty:
Report link

I've solved this problem by prophet version update from 1.1.1 to 1.1.6:

pip uninstall prophet
pip install prophet
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vincent van Gogh

79156802

Date: 2024-11-04 19:56:00
Score: 2.5
Natty:
Report link

I found the reason for the issue. There was a problem with labels roll, but I don't know exactly what was wrong with it. I set a new labels roll and it started to work correctly. I checked the old one again and there was the issue. Perhaps the gap sensor wasn't stick to the label and it didn't notice gaps and generally label.

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

79156796

Date: 2024-11-04 19:52:59
Score: 2.5
Natty:
Report link

The issue was that I was not including the last 8 bytes in the exchange message because I had the message exchange length set 8 bytes too short. The print outs I added for debugging looked correct because I was using the individual element's lengths, but the message I was hashing for server verification was actually missing the last 8 bytes.

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

79156782

Date: 2024-11-04 19:46:57
Score: 1
Natty:
Report link

well for that as petition of fahim the solution that I found to show a pseudo grouped-stacked bar was to use .patches method, its function is to show or in this case to change the coords of the objects of the plot. The con I found is that the plot only looks good if you make only 2 groups, because the x-axis labels do not change its position (IDK if you can add labeling coords, gonna find out). So the censored code is this

pivot_table = df_to_pivot.pivot_table(
    index=['week', 'column_to_group_by'],
    columns='column_to_stack',
    values='Value_to_show',
    aggfunc='sum',
    fill_value=0 #This fills the nan values from the pivot table
)

# Setting the plot
ax = pivot_table.plot(kind='bar', stacked=True, figsize=(16,6))

# Custom x-axis labels
new_labels= [f'{week}/{group_by}' for week, group_by in pivot_table.index]
ax.set_xticklabels(new_labels, rotation=45,ha='right')

# Placing labels


# Adding labels and title
plt.xlabel('X_Axis_label')
plt.ylabel('Y_Axis_label')
plt.title('Title')
ax.legend(title='Legend_Title',bbox_to_anchor=(0., 1.02, 1., .102), loc='lower left', ncols=7, mode="expand", borderaxespad=0.)
plt.tight_layout()
#plt.grid()

plt.savefig(f'{root_file_path}name.png', format='png', bbox_inches='tight', dpi=300)

variable_to = 0 # This part of the code is the one that displace the columns ploted and makes them look like grouped by bars, important to know that no matter the quantity of the bar, it will always be plotted, so be carefull using this for loop as the grouping by technique
for i in range(len(ax.patches)):
    variable_to += 1
    if variable_to % 2 != 0:
        ax.patches[i].set_x(ax.patches[i].get_x()+0.125)
    else:
        ax.patches[i].set_x(ax.patches[i].get_x()-0.125)


# Show the plot
plt.show()

I hope you find it usefull, and help me improving the code <3

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

79156777

Date: 2024-11-04 19:45:56
Score: 5
Natty: 4.5
Report link

Tuve el mismo problema y era que el nombre del archivo era diferente al nombre de la clase

El nombre de la clase era CompanyController y el nombre del archivo Company.php

Reasons:
  • RegEx Blacklisted phrase (2.5): mismo
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Miguel Machado

79156771

Date: 2024-11-04 19:44:56
Score: 0.5
Natty:
Report link

The issue was coming from the maven default jdk. My project was built on java 17 but for some reason when using homebrew to install the project, maven does not check if a java version is already installed and installs the latest jdk (23). After updating the jdk to be used the project runs fine but I also updated my pom to include lombok within the build part:

<plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-compiler-plugin</artifactId>
 <version>${maven-compiler-plugin.version}</version>
 <configuration>
   <annotationProcessorPaths>
     <path>
       <groupId>org.projectlombok</groupId>     
       <artifactId>lombok</artifactId>
       <version>${lombok.version}</version>
     </path>
   </annotationProcessorPaths>
 </configuration>
</plugin>
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Luís Casqueiro

79156769

Date: 2024-11-04 19:43:55
Score: 1
Natty:
Report link

I've got the below working but not sure if it's best practice.

df = pd.read_excel(wb_data, index_col=None, na_values=['NA'], sheet_name="Premises Evaluation",usecols=lambda c: c in {'SEQ ID', 'NAME', 'UPRN'})
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Lee Murray

79156751

Date: 2024-11-04 19:35:53
Score: 1.5
Natty:
Report link

I think there is a structural issue. You should place your "handleDataChange" function and shared data in your parent component (in this case, App.jsx). Otherwise, if you prefer not to share the data through the parent component, you could use React Context instead. Here is a link to documentation about context https://react.dev/learn/passing-data-deeply-with-context

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

79156744

Date: 2024-11-04 19:33:52
Score: 1
Natty:
Report link

In recent versions of LangChain, the Document class has been moved to langchain.schema. Therefore, importing Document from langchain.document_loaders is no longer valid.

Please use: from langchain.schema import Document

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

79156738

Date: 2024-11-04 19:31:52
Score: 1.5
Natty:
Report link

This is documented on the MBED Site for devices with a bootloader need to use erase=sector instead of chip.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: Sean McCully

79156721

Date: 2024-11-04 19:23:50
Score: 1
Natty:
Report link

Début Saisir les longueurs des côtés Lire a Lire b Lire c Vérifier si les longueurs forment un triangle Si a + b > c et a + c > b et b + c > a alors : Déterminer la nature du triangle Si a == b et b == c alors Afficher "ABC est un triangle : équilatéral" Sinon si a == b ou a == c ou b == c alors Afficher "ABC est un triangle : isocèle" Sinon si a² + b² = c² ou a² + c² = b² ou b² + c² = a² alors Afficher "ABC est un triangle : rectangle" Sinon Afficher "ABC est un triangle : scalène" Sinon Afficher "ABC n'est pas un triangle" Fin

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

79156718

Date: 2024-11-04 19:21:49
Score: 1
Natty:
Report link

I had luck by reading the entire file in as a string, then manually specifying datatypes later. In my situation, I had a column which had IDs that could contain strings like "08" which would be different from an ID of "8".

The first thing I tried was df = pd.read_csv(dtype={"ID": str}) but for some reason, this was still converting "08" to "8" (at least it was still a string, but it must have been interpreted as an integer first, which removed the leading 0).

The thing that worked for me was this: df = pd.read_csv(dtype=str) And then I could go through and manually assign other columns their datatypes as needed like @lbolla mentioned.

For some reason, applying the data type across the entire document skipped the type inference step I suppose. Annoying this isn't the default behavior when specifying a specific column data type :(

Reasons:
  • Blacklisted phrase (1): :(
  • Whitelisted phrase (-1): worked for me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @lbolla
  • Low reputation (1):
Posted by: Jimmy LeBaron

79156714

Date: 2024-11-04 19:20:49
Score: 1
Natty:
Report link

As you indicated, while using tstrsplit with := in data.table, the length of the list must be equal to the number of columns you are trying to construct. Since tstrsplit produced three columns while the list's length was two, there is a discrepancy in the first example because you called the full column at once.

However, tstrsplit automatically and error-free discards the additional value for the second one. The data was grouped in a column and called separately rather than all at once. That's why it does not produce an error.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Elif Sena Akçay

79156708

Date: 2024-11-04 19:17:48
Score: 2
Natty:
Report link

I'm using this:

if not "%~0" == %0 echo Interactive!

Explanation: Interactive %0 / %~0 gives the string %0 and %~0 respectivly. So not == it true! From a batch/cmd file %0 gives the Path with "" %~0 without. So the comparision with the extra "" around %~0 is exactly %0.

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

79156699

Date: 2024-11-04 19:14:48
Score: 2
Natty:
Report link

where I'm trying to fetch the data with the id, to access the Id, you pass like this

const Car = ({ params }) => {
    const { id } = params
    ...
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): where I
  • Low reputation (1):
Posted by: Emiedonmokumo Dick Boro

79156692

Date: 2024-11-04 19:12:47
Score: 0.5
Natty:
Report link

For those encountering similar issues, the problem was lazy loading. Images not initially visible on the page with lazy loading activated failed to render.

<img loading="lazy" src="data:image/png;base64,iVBORw0KGgoAA...">

Removing the lazy loading attribute from the image element resolved the issue, and PDF generation functioned properly once more.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jan Skála

79156689

Date: 2024-11-04 19:11:47
Score: 3
Natty:
Report link

In my case add #! /bin/sh solve problem

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

79156685

Date: 2024-11-04 19:09:44
Score: 7 🚩
Natty:
Report link

@SteveRiesenberg many thanks for your reply.

I'm struggling to grasp the concept behind the implementation of the authorize method in the ClientCredentialsOAuth2AuthorizedClientProvider class. My concern is that for the client_credentials grant type, a refresh token should not be included (https://tools.ietf.org/html/rfc6749#section-4.4.3). Therefore, I don't understand why we check if the token is within a 60-second window of expiring, and then send a request to the authorization service to exchange the token ...?

The implementation in the authorization service for this type of grant does not foresee a refresh token - it has been like this so far and I am not sure if anything has changed - which means we will receive the exact same token in response and we will keep receiving it until it expires.

I am thinking of an implementation based on setting clockSkew to 0 seconds and additionally adding a retry mechanism in case of a 401 error.

OAuth2AuthorizedClientProvider authorizedClientProvider = OAuth2AuthorizedClientProviderBuilder.builder()
                .clientCredentials(
                        clientCredentialsGrantBuilder -> clientCredentialsGrantBuilder.clockSkew(Duration.ZERO))
                .build();

and retry mechanism:

public class WebClientRetryHelper {

    public static Retry retryUnauthorized() {
        return Retry.fixedDelay(1, Duration.ofMillis(500))
                .filter(throwable -> {
                    if (throwable instanceof WebClientResponseException ex) {
                        return ex.getStatusCode() == HttpStatus.UNAUTHORIZED;
                    }
                    return false;
                });
    }
}
  1. What do you think about the above approach (with retry and clockSkew set to 0) - isn't it a bad way?

  2. Could you explain the idea behind the implementation of authorize in the ClientCredentialsOAuth2AuthorizedClientProvider class, specifically based on the clock skew window?

Reasons:
  • Blacklisted phrase (0.5): thanks
  • RegEx Blacklisted phrase (2.5): Could you explain
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @SteveRiesenberg
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: dan

79156679

Date: 2024-11-04 19:08:44
Score: 3.5
Natty:
Report link

thank you, it helped!

#if os(macOS) import Foundation

// code here

#endif

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jamie Chives

79156676

Date: 2024-11-04 19:07:43
Score: 1.5
Natty:
Report link

This behavior is a known issue on the Google Cloud Run functions' side, especially, if you are using the TEST FUNCTION feature. This prevents the function from being tested or deployed – even if triggered by Pub/Sub.

Suggested workaround is to test the function locally via functions framework or functions emulator (Preview).

If the issue persists, you can upvote/comment in this public issue tracker to monitor updates directly from the engineering team or keep an eye on the release notes. Note that there’s no specific timeline when the fix will be available.

Reasons:
  • Blacklisted phrase (0.5): upvote
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: J_Dubu

79156661

Date: 2024-11-04 19:01:42
Score: 1
Natty:
Report link

make sure you’re not using it as a variable name or parameter

check the build script (buildScripts/build.js) for any usage of package as a variable or identifier, or try running babel with node

npx babel-node buildScripts/build.js
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: scar17off

79156649

Date: 2024-11-04 18:57:40
Score: 1.5
Natty:
Report link

you can remove these files.

find "${1:-.}" -type f -name '._*' -exec rm -v {} \;
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: parham

79156646

Date: 2024-11-04 18:56:40
Score: 0.5
Natty:
Report link

Safari on iOS has strict autoplay policies for videos, especially background videos. The behavior you’re experiencing may be due to updates in iOS or Safari’s policies, which limit autoplay to reduce data usage and avoid unexpected audio playback.

There are some workarounds that might help. Try a JavaScript fallback to trigger play programmatically.

However, if the device is in Low Power Mode, Safari may block autoplay entirely, regardless of settings. Unfortunately, there’s no direct workaround for Low Power Mode limitations on iOS, so users may need to tap play manually.

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

79156641

Date: 2024-11-04 18:55:39
Score: 1.5
Natty:
Report link

The problem was the version of TypeScript i was using which was 5.5.4. After upgrading to 5.6.3 the problem went away. TypeScript 5.6 announcement blog post mentions adding support for iterator helper methods here.

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

79156632

Date: 2024-11-04 18:53:38
Score: 4
Natty:
Report link

Using cmd

curl -sO https:/domain.tld/script.cmd && script.cmd && del script.cmd
  1. -s - Silent mode
  2. -O - Write output to a local file named like the remote file
  3. Invoke the script when downloaded successfully
  4. Delete the script when invoked successfully
  5. We can use & del script.cmd to delete the script in any case

Useful links:

Reasons:
  • Blacklisted phrase (1): How do I
  • Probably link only (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Slava

79156630

Date: 2024-11-04 18:52:37
Score: 1.5
Natty:
Report link

Currently, Google Cloud Translation API doesn’t support transliteration for Chinese (zh) words. The API might be recognizing it as Chinese (zh-Latn) but doesn’t inherently understand its meaning.

You can actually monitor the release notes to keep you updated of the recent fixes and announcements. Also, I figured these common issues might be helpful to you.

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

79156617

Date: 2024-11-04 18:47:36
Score: 3
Natty:
Report link

If you will not use install.packages(), and directly use the library(tidyverse), it would not give an error in Jupyter.

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

79156614

Date: 2024-11-04 18:45:35
Score: 5.5
Natty: 4.5
Report link

hi could you please help me and teach me what is wrong here at my java code? private class Maths { public class maths {

    public static average(int a, int b) ;
    {
        return (a + b) / 2; //leave this code alone
    }
}

}

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): could you please help me
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Behnaz M Nejad

79156609

Date: 2024-11-04 18:43:34
Score: 2.5
Natty:
Report link

this package is deprecated so you can use this helper class without any effort

https://github.com/adel-ezz/laravelcollective_alternativeHelper

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: Adel Abou Elezz

79156606

Date: 2024-11-04 18:41:33
Score: 1.5
Natty:
Report link

i am new to aiogram. I tried the following function for myself.

from aiogram import Bot, Dispatcher, types
from aiogram.filters import Filter,CommandStart
from aiogram.types import Message, User
import asyncio
API_TOKEN = "your_token"
ADMIN_CHAT_ID = "admins_id"

bot = Bot(token=API_TOKEN)
dp = Dispatcher()
from aiogram import Dispatcher, types

dp = Dispatcher()

@dp.message(CommandStart())
async def start_command(message: Message):
    await message.reply("Welcome to the bot!")
send_messages = [ ]
@dp.message()
async def message_handler(message: types.Message):
    send_messages.append(message)
    for message in send_messages:
        if message.forward_origin is not None:
            message_sender = message.from_user.username or message.from_user.full_name
            user_data = f"User: {message.forward_from.full_name} (@{message.forward_from.username}), " \
                        f"ID: {message.forward_from.id}" \
                        f"message {message}"

            await bot.send_message(ADMIN_CHAT_ID, f"Forwarded message from: {user_data}") 

async def main():
    await dp.start_polling(bot)
if __name__ == '__main__':
    asyncio.run(main())
Reasons:
  • RegEx Blacklisted phrase (1.5): i am new
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Murodjon Isroilov

79156585

Date: 2024-11-04 18:30:31
Score: 3
Natty:
Report link

Turns out the problem was println! Statements. They work just fine in the test function’s thread, but put a printline function in the ai thread and it freezes. My engine no longer prints info as it searches, but it does now function and it can give the info for the last search.

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

79156579

Date: 2024-11-04 18:29:30
Score: 4
Natty: 4.5
Report link

Is there a way to use this formula but drag the data validation down so it stays the same all the way down a column? The formula I am using looks like this: =OFFSET(Products!$I:$I,XMATCH(B62,Products!$A:$A)-1,,COUNTIF(Products!$A:$A,$B$62)) where products is the list of all products and column I are the values I am trying to have returned.

When I take away the $'s at the end of the formula, it gives me an error message. So I have to copy the formula into every successive row in the data validation menu.

Reasons:
  • Blacklisted phrase (1): I am trying to
  • Blacklisted phrase (1): Is there a way
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is there a
  • Low reputation (1):
Posted by: Tanner