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

79156571

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

the rental folder must be named jte, now inside you create the subfolders you wantenter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Emmanuel Kouadio

79156570

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

To modify your query to fetch specific fields from your Strapi API, simply change the index from 0 to 1 in the following URL:

http://localhost:1337/api/landing?locale=fr&populate[metadata][populate][icon][populate][0]=url&populate[metadata][populate][1]=title
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Unjica

79156569

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

I had a somewhat similar question when I first started out. Here's my answer now, that could help others. My answer intentionally overlooks the finer details, but if you're asking a question like this - it means you're a beginner and need to first get a high level understanding.

Redis: Loosely speaking, think of Redis as an in memory database. Since it is in memory, you would expect it to be very fast, and (depending on how you're using it) not 100% reliable (i.e. you could lose some data that had been written to memory but not yet the disk)

Django-Redis: This library / package allows you to use a Redis server as a backend for your Django website, to cache pages or sessions. Remember the default backend for these within Django is Postgres, which is your traditional SQL database that saves all writes to the disk. Django has the ability to cache your webpages (that would normally be dynamically generated). Caching allows your website to be more responsive because you don't have to regenerate the page (simply serve it from the cache). Basically then what Redis does in this context is to make your cache even faster (than what it would've been with Postgres saving the cache).

Channels: Channels allows your Django website to handle WebSockets (among some other stuff). WebSockets is basically the ability for your website to send a message to a connected client, asynchronously. For example, instead of the client asking the server every few seconds "do you have a message for me?", it tells the server "whenever you have a message for me, just send it to me".

Channel Layers: Before you can understand channels_redis, you need to understand the concept of channel layers. Channel layers is a mechanism that allows data (technically messages or events) to be shared between different instances or threads. For example, if your website runs on multiple servers at the same time (for load sharing), you are running multiple instances. Or if you're using WebSockets (Channels), then each client connection would typically run in its own thread (worker). Remember that different processes/instances, don't share memory. Even different threads within the same process can't easily send events/notifications/messages to each other. You need an external communication mechanism. Theoretically you could use a database, file system or message queue (where each instance goes and checks if there is a message for them). But Django makes it easier for you to do that using Channel Layers. Imagine a chat app where two people are sending messages to each other. On the server side, you'll have two websocket connections (one with each client). Now every time a message arrives on one connection, you need to send it to the other connection. Enter channel layers

Channels_Redis: channels_redis provides you channel layers. Chances are, if you're using channel layers, you want high responsiveness. Which is why channels_redis uses redis as a backend. And according to their documentation, "channels_redis is the only official Django-maintained channel layer supported for production use".

asgi_redis: It's just an older name for channels_redis. Unless your project already uses this package, you shouldn't need to worry about it.

Reasons:
  • RegEx Blacklisted phrase (2.5): do you have a
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Dr Phil

79156567

Date: 2024-11-04 18:25:28
Score: 2
Natty:
Report link

Both are memory efficient but B is much better for readability and clarity, especially when working with long datas. This method shows you that the loading is performed as the initial step and the conversion is the last one to get a data.table, which is also a benefit of maintainability.

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

79156566

Date: 2024-11-04 18:25:28
Score: 2
Natty:
Report link

Use is_bool_dtype :

from pandas.api.types import is_bool_dtype
...
is_bool_dtype(df["a"])

Reference : https://pandas.pydata.org/docs/reference/api/pandas.api.types.is_bool_dtype.html

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

79156562

Date: 2024-11-04 18:23:28
Score: 4
Natty: 4
Report link

I found that if you just don't disable the command prompt it works fine

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

79156559

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

Just resolved! The problem is you are pushing your change to main. Push the change to your remote branch then ask pull request through Github.

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

79156555

Date: 2024-11-04 18:21:27
Score: 0.5
Natty:
Report link

Well, your items should be now grouped in a repeater (or an equivalent type of widget), which is a grid of similarly designed elements used to display elements of some cathegory in your CMS. If you see your items jumbled up there chaotically, that means that the repeater is connected to a dataset, which in turn is a linking structure between your backend and what a user sees.

What you now need to do is to go into its' settings by clicking it with a right mouse button and to turn off the cathegory tabs there. In the picture below it is the second switch ("Show tabs on Service List").

Settings of the Services Widget

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Andrew's Quest

79156547

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

Trying replacing this

let formData = new FormData(event.currentTarget);

with this

const formData = new FormData();

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

79156544

Date: 2024-11-04 18:17:26
Score: 0.5
Natty:
Report link

A variation

M = colMeans(replicate(100, rnorm(25, mean = 10, sd = 10)))
hist(M, xlab = "sample means")

giving

enter image description here

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

79156533

Date: 2024-11-04 18:14:25
Score: 5
Natty: 5
Report link

Does anyone know how to use getClientOriginalName() and getClientOriginalExtension() in this new version of the Intervatio image?

    $image = Image::read($request->file('image'));

    $manager = new ImageManager(new ImagickDriver());

    $image->scale(height: 800);
    
    $wayforpath = 'uploads/imagens';
    $nameoriginal = pathinfo($image->getClientOriginalName(), PATHINFO_FILENAME);
    $extension = $image->getClientOriginalExtension();
    
  
   
Reasons:
  • RegEx Blacklisted phrase (2): Does anyone know
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Shuts

79156522

Date: 2024-11-04 18:10:23
Score: 2.5
Natty:
Report link
packages = ["pandas","openpyxl"]
[[fetch]]
from="./path/spreadsheet1.xlsx"
[[fetch]]
from="./path/spreadsheet2.xlsx"

did the trick. Not sure how I missed this.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): did the
  • Low reputation (1):
Posted by: warrenjb

79156521

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

Try to include the Chrome Custom Tabs library in your build.gradle file.

implementation 'androidx.browser:browser:1.4.0'
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Cnyy0

79156520

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

Since you have already created a firewall rule, it seems like your network configuration is already set-up properly. To be able to connect to your external IPs over specific ports and allow ingress ssh connections to your VMs, you might just need to double check on the following:

  1. Ensure that the firewall rule is applied to your VM instances by selecting Targets > “Specified target tags”, then enter the name of the (network) tag into the “Target tags” field.

  2. For ingress rule and egress rule, set Source Filter(inbound) and Destination Filter(outbound) to use 0.0.0.0/0 to allow traffic from and to any network.

  3. To allow incoming TCP connections to ports 1443 and 8090, in "Protocols and Ports", check “tcp” and enter 1443,8090.

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

79156513

Date: 2024-11-04 18:07:22
Score: 2
Natty:
Report link

I've tried just that, from oct version, back 3 versions, no one solved the problem. I finally solved by keep tryng installing differents versions of Npgsql driver. The one thats works for me is the v4.0.12 - and the pbi desktop v.OCT2024

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Iván Federico

79156489

Date: 2024-11-04 17:59:19
Score: 4
Natty:
Report link

i dont have much expirience with the actual code but I do know how it works. basically a post request will send back a data complete as soon as its done. what you could do is send a request for progress percentage very few seconds and wait for a response back. when you get that response update it in the HTML. I'm new to this website so sorry if I'm not much of a help. if its a buffer that absorbs the file. you could also send it byte by byte and have a system autorun on the server to compile it all together in the end and make it one file. otherwise I don't know how to help. like I said I'm new so sorry if I'm no help. i just want to try if I can :(

Reasons:
  • Blacklisted phrase (1): :(
  • RegEx Blacklisted phrase (1.5): I'm new
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Itsyobestnugget

79156470

Date: 2024-11-04 17:51:18
Score: 1.5
Natty:
Report link

candle looking for model.embed_tokens.weight whereas the original tensor name is embedding_model.embed_tokens.weight. You just have to change this line of mistral.rs in candle_transformers.

// from
let vb_m = vb.pp("model");
//to
let vb_m = vb.pp("embedding_model");
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): can
  • Low reputation (1):
Posted by: Cursor

79156466

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

In Snowflake, instead of replicating data multiple times within the same system, Snowflake relies on the inherent redundancy and durability features of the underlying cloud storage providers. These services automatically manage data replication across multiple locations to ensure durability and availability.

While Snowflake doesn’t replicate data within the same account for fault tolerance, it offers features for replicating databases across different accounts, regions, or cloud platforms for purposes like disaster recovery and data sharing. https://docs.snowflake.com/en/user-guide/account-replication-intro

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

79156453

Date: 2024-11-04 17:43:16
Score: 2.5
Natty:
Report link

Figured it out just had to delete my whole amplify folder and configuration and reconfigure amplify to the application. The git command above actually accidentally deleted my cloud formation template I believe

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

79156439

Date: 2024-11-04 17:37:14
Score: 3
Natty:
Report link

I think there is not a problem with your code. When I run it, it gives the records that you want.

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

79156413

Date: 2024-11-04 17:27:10
Score: 1
Natty:
Report link

Since you plan on having a button, I started by adding one with a function that it calls. I give three examples to show the difference between three, two and one lines.

The formatting of the clear space around the button and the text can be problematic if not applied in a way that makes it difficult for design changing quickly.

None of these uses the .frame modifier. You could pursue GeometryReader, it is not difficult to grasp and use on layouts.
This shows the three different layouts.  Red border.

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

79156409

Date: 2024-11-04 17:25:10
Score: 2.5
Natty:
Report link

Well, today MS released a new version of the GitHub Copilot Chat extension (v0.22.1) which seems to have fixed the problem.

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

79156395

Date: 2024-11-04 17:19:09
Score: 2.5
Natty:
Report link

Angular provides a reactive programming model that can help you update the UI seamlessly. You can utilize Observables and Subjects from the rxjs library to manage state changes and update the UI accordingly. Use the search function to find numerous posts on how to do this.

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

79156394

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

The following versions worked for me:

openpyxl==3.0.10 pandas==2.1.4

I use Python 3.12.3 and I am working on simple tasks of reading and writing .xlsx files

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

79156389

Date: 2024-11-04 17:16:07
Score: 0.5
Natty:
Report link

Try with a standard table that you update with a MERGE statement, assuming region_id is unique. The only drawback is that you will need to handle to delete of disappearing ones in a separate statement.

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

79156381

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

Make sure not to testig in local. It has to be over https.

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

79156378

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

MapKey and MapsId, JoinTable configuration looks good. I found below JOIN issue with few versions of Hibernate 6 https://hibernate.atlassian.net/browse/HHH-18086

https://discourse.hibernate.org/t/getting-assertionerror-in-tooneattributemapping-createtablegroupjoin/8420/6

Hibernate documention v6.2.4 https://in.relation.to/2023/06/01/hibernate-orm-624-final states

Map type associations
We have a couple bugs related to Map type associations:

Using the @MapKey annotation led to wrongly generated SQL for inserts in some cases 

https://hibernate.atlassian.net/browse/HHH-16370

Hibernate 6.2.5 introduced stricter validation checks hence the assertion failure you're seeing while sorting

If the test configurations are compatible with Hibernate 6(persistence.xml or application.properties) and still tests are failing it could be a legitimate hibernate issue worth logging.

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

79156373

Date: 2024-11-04 17:09:05
Score: 1
Natty:
Report link

Even though everything works fine in Debug, I could not get Rollbar to play nice with Maui 8.0.92 in Release. I didn't want to waste more time on this to figure out what is happening in Release, so I switched to Sentry, and everything works flawlessly.

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

79156361

Date: 2024-11-04 17:04:04
Score: 0.5
Natty:
Report link

Combine COUNTUNIQUE with COUNTIF and MIN. Something like:

=COUNTUNIQUE(C53:C72) - MIN(COUNTIF(C53:C72, "blank"), 1)

Don't have access to Google Sheets now to test it.

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

79156357

Date: 2024-11-04 17:03:04
Score: 1
Natty:
Report link

I spent about an hour troubleshooting this issue on a new Debian 12 Server, and finally was able to get around this by enabling the "Remote.SSH: Remote Server Listen On Socket" setting.

Hope this helps anyone who doesn't find success with any of the other fixes shown.

VS Code Settings: Enable "Remote Server Listen On Socket"

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

79156342

Date: 2024-11-04 17:00:03
Score: 3.5
Natty:
Report link

did you installed the C/C++ Extension Pack for Vs code , did you configured for C programming , if not you should do so

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did you in
  • Low reputation (1):
Posted by: DJABRI MAROUANE

79156341

Date: 2024-11-04 17:00:03
Score: 1
Natty:
Report link

I found the issue, my problem was https://github.com/RobinHerbots/Inputmask/releases/tag/4.0.6 onfocus event, for some reason while this listener is on the item I can't just change the value, the solution was simple but is weird an not intuitive

 input.dispatchEvent(new Event('input'));
 input.value = newValue;
 input.focus();
 input.dispatchEvent(new Event('input'));
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: jhonny

79156337

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

I figured it out, the MAUI Launcher documentation was misleading it states here to add an intent filter for the apps you want to open. But I misunderstood deep links and intent filters, so that part is irrelevant in my case. I removed the intent filter completely and now everything works as expected.

Reasons:
  • Whitelisted phrase (-2): I figured it out
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Cody

79156322

Date: 2024-11-04 16:55:01
Score: 0.5
Natty:
Report link

VueJs

an example in case you are looking for vue.js app

<input
    type="number"
    step="0.01"  
    @invalid="(e) => e.target.setCustomValidity('your error message')"
/>

can use directly by using this as well which will refer specifically to that input field

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

79156309

Date: 2024-11-04 16:51:00
Score: 1
Natty:
Report link

Here's a variant on variable-controlled arrays

import numpy as np import os

def set_Matrix (): row = int(input("Enter how many Rows you want : ")) col = int(input("Enter the number of columns : ")) global matrix mx = np.array(['']) one_d = (row * col) - 1 for x in range(0,one_d): mx = np.append( mx, ['']) print(mx) matrix = mx.reshape(row,col)

def place_x(row,col,value): matrix[row,col] = value

def place_o(row,col,value): matrix[row,col] = value

os.system('cls') # Windows command set_Matrix() place_x(3,1,'X') place_o(0,1,'O') print('Matrix : \n',matrix) print("Tic Tac Toe range :", matrix.shape)

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

79156306

Date: 2024-11-04 16:48:59
Score: 0.5
Natty:
Report link

It only appears to miss the version off when the version matches 'v1', with a lower case 'v', if you use an upper case 'V' it gets appended, so if you are able to update the casing you can use that as a workaround.

I've raised a feature request to update the behaviour in the future.

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

79156297

Date: 2024-11-04 16:44:58
Score: 2
Natty:
Report link

I think that this is a bug in the latest installation iso.

Before today, I kept June's arch linux setup, which was working fine.

But I wanted to replace that setup with the latest one, and it has been throwing several new errors, including this one that you got.

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

79156284

Date: 2024-11-04 16:40:57
Score: 1
Natty:
Report link

Answer of the cPanel/WHM support of 2022 :

Bref, there is a feature in the management interface at :

WHM / Service Configuration / Apache Configuration / Include Editor / Pre VirtualHost Include

where you can put your <VirtualHost 1.2.3.4:80 and 443

Reasons:
  • Low length (0.5):
  • No code block (0.5):
Posted by: François Breton

79156283

Date: 2024-11-04 16:40:57
Score: 2.5
Natty:
Report link

I was able to get this going. I was really close before posting but I found out that I was using the wrong file name for the DB.

The correct configuration is Database=/3050: in my case it was Database=192.168.1.5/3050:C:\Users\Public\Documents\Embarcadero\EMS\emsserver1.ib

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

79156271

Date: 2024-11-04 16:39:57
Score: 1
Natty:
Report link

I got this working doing two seemingly innocuous things:

  1. I removed all headers from the frontend api request.
  2. I changed my import from import { Multer } from 'multer'; to import multer from 'multer';

All of the sudden the backend controller breakpoint was hit successfully and I was able to go from there.

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

79156265

Date: 2024-11-04 16:36:56
Score: 1
Natty:
Report link

Indeed, You may use values off, 0 (zero), false, or no to turn off the synchronous_commit. As the name indicates, the commit acknowledgment can come before flushing the records to disk. This is generally called as an asynchronous commit. If the PostgreSQL instance crashes, the last few asynchronous commits might be lost.

Regarding your global architecture, Multi-AZ offers a sync replication between the instances which may slightly degrade the performance in OLTP system.

If your RPO is 30 minutes, I would suggest to use read replica instead of multi-az while keeping synchronous commit at the primary database. Read replica is asynchronously replicating the data to the secondary DB. It may be enough to fix the performance problem.

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

79156261

Date: 2024-11-04 16:35:55
Score: 2
Natty:
Report link

looks like I forgot to put a return before null lol

if (!fontsLoaded && !error) return null;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: kyl

79156259

Date: 2024-11-04 16:35:55
Score: 0.5
Natty:
Report link

The key here is that when you create a subprocess that the PID you get back is for the shell of the subprocess. So, what you want to do is to use pkill -P to kill all the children of the child shell:

(sh child1.sh) &
child=$!
sh child2.sh
pkill -P "$child"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Compholio

79156254

Date: 2024-11-04 16:34:55
Score: 3.5
Natty:
Report link

im facing the same this is annoying

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Abdulrahman Mufarrah