79279870

Date: 2024-12-14 00:42:21
Score: 0.5
Natty:
Report link

You may be experiencing a bug. As was previously stated, the Chrome badge is added to bookmark icons. So you know it is not a PWA.

This can happen even if the Play Store is unreachable, even if everything is copasetic on the server, the client, the manifest and the website. "Unreachable" includes there being no signed-in user. For mysterious reasons, Play Store access is needed currently to install a PWA.

You can weigh in on this. A bug report has been filed at https://issues.chromium.org/issues/372866273. I encourage all readers to make their way over and vote for it.

We really care because our users are often in places where the Play Store is almost unreachable. Our users give up before the http transaction with the Play Store times out. This, even though the web server is right next door.

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

79279869

Date: 2024-12-14 00:40:20
Score: 1.5
Natty:
Report link

As old as this thread is, I think it worth adding that this "behavior" differs between browsers. So advice ought always be given specifying which browser, and ideally also which version that the suggested solution works on. Generally speaking it has been my experience that Firefox and it's "derivatives" have been the browsers that curtailed this the hardest... Though can of course change over time... and I could be wrong

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

79279866

Date: 2024-12-14 00:37:20
Score: 1.5
Natty:
Report link

Okay, so I guess posting the question is all I needed to find the answer. The answer was a combination of

reduce($$ ++ $)

which helped reduce the array of key/value pairs down into a single JSON object

and putting the proper parens() around the functions to include both the fieldMappings and the reduce

and then being able to put the as Object after the reduce, but before the end of the function that spits out the array of objects

Makes sense when I really think about it, but I'm new to DataWeave script and so the notion of nested functions isn't something I am familiar with.

Anyway, for those interested here is what worked:

%dw 2.0
input csvData application/csv
input fieldMappings application/json
input objectProperties application/json
var apexClass = objectProperties.ObjectName

output application/apex
---

csvData map ((row) ->
    (
        (
        fieldMappings map (fieldMapping) ->
        (fieldMapping.target) : if(row[fieldMapping.source] != "") row[fieldMapping.source] else fieldMapping."defaultValue"
        )
        reduce ($$ ++ $)
    ) as Object
)
Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (1.5): I'm new
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: caleb

79279862

Date: 2024-12-14 00:32:19
Score: 0.5
Natty:
Report link

unexpected token ',' means "that comma is nonsense". Lean 3 had commas at the end of lines, Lean 4 does not. Delete the comma, and then you'll get another error unexpected token ',' which means you should delete that comma too. Repeat a third time. You'll then get an unknown tactic error because you're using the Lean 3 cases syntax, not the Lean 4 cases syntax. Did an LLM which can't tell the difference between Lean 3 and Lean 4 write this code by any chance? You can change cases to cases'. You'll then get another error about a comma etc etc. Basically your code doesn't work because it's full of syntax errors.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Kevin Buzzard

79279860

Date: 2024-12-14 00:30:17
Score: 5.5
Natty: 4.5
Report link

I tried deleting my credentials.json, and it worked once. Now, couple days later I'm facing the same issue again "Access token refresh failed: invalid_grant: Token has been expired or revoked."

Any new solution for this?

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm facing the same issue
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: user28774891

79279851

Date: 2024-12-14 00:20:15
Score: 1
Natty:
Report link

I believe I have found the solution to this myself, by reading the words of the wise Mr Graham Dumpleton, author of mod_wsgi: "if you are going to leave these running permanently, ensure you use --server-root option to specify where to place generated files. Don't use the default under /tmp as some operating systems run cron jobs that remove old files under /tmp, which can screw up things."

I was running things under /tmp. I am now adding --server-root to my "python manage.py runmodwsgi" command, and will see whether this resolves the issue.

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

79279849

Date: 2024-12-14 00:19:14
Score: 2
Natty:
Report link

Your L1-regularized logistic regression (a.k.a. Lasso penalty) might pick different subsets of correlated features across runs because L1-regularization enforces sparsity in a somewhat arbitrary way when correlation is present. Zeroed-out coefficients aren’t necessarily “worthless”; they may just be overshadowed by a correlated feature that the model latched onto first.

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

79279848

Date: 2024-12-14 00:19:14
Score: 1
Natty:
Report link

This issue was resolved by upgrading to Aspose version 24.12.0.

@Hoodlum, I don't think this is what you're dealing with, but I chose to address the security vulnerability reference in Aspose v 24.12.0's reference to System.Security.Cryptography.Pkcs 8.0 with a direct reference:

<PackageReference Include="System.Security.Cryptography.Pkcs" Version="9.*" />

This override passed our test suite, including the use of password protection (which did not work under Aspose 21.12.0).

Reasons:
  • Blacklisted phrase (1): did not work
  • Has code block (-0.5):
  • User mentioned (1): @Hoodlum
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Eric Patrick

79279843

Date: 2024-12-14 00:14:13
Score: 0.5
Natty:
Report link

found it in Dependencies - .NET 8.0 - Projects - OpenAI, right click - Delete (maybe it was Edit - Delete, I don't remember)

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: me.at.coding

79279828

Date: 2024-12-14 00:00:10
Score: 2
Natty:
Report link

It sounds like the problem is you are not changing the apple id when you make purchase.

In production users will have their own user account and apple id.

The solution would be to make more test flight accounts so can simulate a different user with a different apple id

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

79279813

Date: 2024-12-13 23:46:08
Score: 0.5
Natty:
Report link

I've get an error AttributeError: 'str' object has no attribute 'pid'
small fix in order to run it: notify = connection.notifies.pop().payload -> notify = connection.notifies.pop()

Here is a full example that was taken from documentation and a bit changed, it is without timeout, thanks @snakecharmerb for link listen.py

import select

import psycopg2.extensions

CHANNEL = 'process'
# DSN = f'postgresql://{USER}:{password}@{HOST}/{DBNAME}'


def listen():
    curs = conn.cursor()
    curs.execute(f"LISTEN {CHANNEL};")

    print("Waiting for notifications on channel 'test'")
    while True:
        select.select([conn], [], [], 5)
        conn.poll()
        while conn.notifies:
            notify = conn.notifies.pop(0)
            print("Got NOTIFY:", notify.pid, notify.channel, notify.payload)


if __name__ == '__main__':
    conn = psycopg2.connect(host=HOST, dbname=DBNAME, user=USER, password=PASSWD)
    # conn = psycopg2.connect(DSN) # alternative connection
    conn.set_isolation_level(psycopg2.extensions.ISOLATION_LEVEL_AUTOCOMMIT)
    listen()
  1. Run listener python listen.py
  2. Via pgAdmin Query Tool or Postgres Shell run select pg_notify('process', 'update'); or just NOTIFY process, 'This is the payload';

note: it should be the same DB, for listener and notifier

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @snakecharmerb
  • Low reputation (0.5):
Posted by: akpp

79279809

Date: 2024-12-13 23:41:07
Score: 3
Natty:
Report link

Combine both component into a parent component.

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

79279797

Date: 2024-12-13 23:33:05
Score: 2
Natty:
Report link

You have used sqlselect twice -- given the corrected code. Check if this works String sqlInsert = " Update Table1 Set ort = 'C' WHERE ID = '10' "; pepaw = conn.prepareStatement(sqlInsert);

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

79279796

Date: 2024-12-13 23:32:05
Score: 2
Natty:
Report link

It's more a npm installation related error. In the render.com settings of your project you should have a build command like that:

npm install && npm run build

enter image description here

for my project i have src/ relative path, don't pay attention.

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

79279783

Date: 2024-12-13 23:23:03
Score: 2
Natty:
Report link

Go to the directory where undetected_chromedriver is installed (usually in site-packages). Open the patcher.py file (located in site-packages/undetected_chromedriver/). Replace the LooseVersion import line from distutils.version with a direct import from packaging.version, which is a more modern and widely used alternative:

Change this

from distutils.version import LooseVersion

To this

from packaging.version import Version

sorry my bad english, use translator

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

79279781

Date: 2024-12-13 23:21:02
Score: 11.5
Natty: 7
Report link

I have the same issue. Did you solve it ?

I don't know how to send thruth data to override document pared with the custom parser.

Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): I have the same issue
  • RegEx Blacklisted phrase (3): Did you solve it
  • RegEx Blacklisted phrase (1.5): solve it ?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Mélanie GAULT

79279755

Date: 2024-12-13 22:55:59
Score: 1.5
Natty:
Report link

You are litteraly setting this value by doing constpaciente.setTipo_negocio("Tipo_Estabelecimento") as you did it you should retrieve value with getString() method from ResultSet

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

79279752

Date: 2024-12-13 22:54:58
Score: 1
Natty:
Report link

I don't think there is or will be anything in the standard (as of c++26) allowing you to do that at compile time. Few options remain:

The former is trivial and efficient; the second depends on what you may use, and the latter is many orders of magnitude more difficult...

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

79279751

Date: 2024-12-13 22:53:58
Score: 1.5
Natty:
Report link

Fast forward for years to the end of 2024, and we now have a NuGet package called Hardware.Info:

https://github.com/Jinjinov/Hardware.Info

I'm not involved in this project, simply sharing for future searchers.

I'm using it in .NET 8.

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

79279750

Date: 2024-12-13 22:51:57
Score: 4
Natty: 4.5
Report link

Can You use the 'If on edge bounce' block? Please try to clarify your question and maybe add a link to the project you are trying to make.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can You use the
  • Low reputation (1):
Posted by: Twineee

79279742

Date: 2024-12-13 22:47:56
Score: 0.5
Natty:
Report link

You just need to add loop: true into the Howl settings.

this.sounds[audioFile] = new Howl({
              src: [audioFile],
              volume: this.volume,
              preload: true,
              onend: () => {},
              loop: true,
            });
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Eloi

79279734

Date: 2024-12-13 22:43:55
Score: 4.5
Natty:
Report link

Try use back quotes around line breaks: This how it looks in visual studio

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

79279722

Date: 2024-12-13 22:32:52
Score: 2.5
Natty:
Report link

Although we need to see the JSON response in order to define the problem, but as @NickSlash comment's says, this might be because of invalidation of the JSON.

For example, the JSON below has an extra comma at the end (commas are used to seperate entites in an object. An extra comma at the end makes us to expect for another entity which doesn't exists.):

Reasons:
  • No code block (0.5):
  • User mentioned (1): @NickSlash
  • Low reputation (1):
Posted by: Ali Almasi

79279721

Date: 2024-12-13 22:31:52
Score: 0.5
Natty:
Report link

First of all I suggest you to read more attentively the documentation about CrudRepository method. The answers of your questions is clearly wrote on it. For example, for findAllById(... ids) method, doc says :

If some or all ids are not found, no entities are returned for these IDs.

So, if no ids are found, no entities will be returned and you will got an empty list. Otherwise, if some ids are found, matching entities will be returned and you will got list containing only matching entities. Your method should not have to always return a list whose size is equal to your names list size

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

79279713

Date: 2024-12-13 22:26:51
Score: 3.5
Natty:
Report link
linkvertise(1265898, {whitelist: [], blacklist: [""]});
Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Andrés Román Meza

79279709

Date: 2024-12-13 22:25:51
Score: 1
Natty:
Report link

So, thanks to the comments, I managed to find an answer. When setting attributes like -alpha, some window managers delay applying them until the window is fully realized and shown. By adding root.update_idletasks() before root.attributes("-alpha", 0.5) my script now behaves like the terminal.

The updated code is now:

import tkinter as tk

if __name__ == "__main__":
    root = tk.Tk()
    root.geometry("400x400")
    root.update_idletasks()
    root.attributes("-alpha", 0.5)
    root.mainloop()

Thanks for the help! I am leaving the answer here in case someone faces the same issue in the future.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Nathan Gavenski

79279707

Date: 2024-12-13 22:24:51
Score: 1.5
Natty:
Report link

I don't know if is this the best way, but for me solved changing version of the kotlin.android plugin to 2.0.0.

id "org.jetbrains.kotlin.android" version "2.0.0"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rodrigo Murta

79279705

Date: 2024-12-13 22:23:51
Score: 1.5
Natty:
Report link

In my case the fix was editing my C:\windows\system32\drivers\etc\hosts file, adding a entry for my SVN server.

SVN is doing some weird DNS stuff that does not work properly on windows in that it takes forever. This seems to bypass that.

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

79279703

Date: 2024-12-13 22:22:50
Score: 1.5
Natty:
Report link

In my case the fix was editing my C:\windows\system32\drivers\etc\hosts file, adding a entry for my SVN server.

SVN is doing some weird DNS stuff that does not work properly on windows in that it takes forever. This seems to bypass that.

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

79279698

Date: 2024-12-13 22:19:49
Score: 1
Natty:
Report link

If df is the given dataframe with 7 rows,

df.set_index('date', inplace=True)  # date as index

Create the main dataframe df2 with one row per minute

timestamps = pd.date_range('2024-12-12 10:43', '2024-12-14 05:42', freq='1min') 
df2 = pd.DataFrame({'value': np.nan}, index=timestamps)

df2.loc[df.index] = df  # fill with the known values in df
df2['value'].fillna(method='ffill', inplace=True)  # forward fill the missing values (bfill for backfoward)

display(df2[-25:-15])

res

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

79279696

Date: 2024-12-13 22:18:49
Score: 1.5
Natty:
Report link

Since your build appears to start normally, becomes unresponsive midway through the process and restarting the instance restores connectivity, there is most likely a resource exhaustion issue that happens during the build. Try increasing the size of the disk attached to your instance and increasing the allocated RAM and the number of vCPUs you are using.

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

79279694

Date: 2024-12-13 22:17:49
Score: 0.5
Natty:
Report link

did you check console on possible errors? If there is no errors, other possible reason of not rendering is ChangeDetection strategy such as onPush, you need change it to onDefault or use markForCheck() method in a place when you need rendering

   import { Component, ChangeDetectorRef } from '@angular/core';
    
    @Component({
      selector: 'app-example',
      template: `
        <p>Count: {{ count }}</p>
        <button (click)="increment()">Increment</button>
      `,
      changeDetection: ChangeDetectionStrategy.OnPush 
    })
    export class ExampleComponent {
      count = 0;
    
      constructor(private cdr: ChangeDetectorRef) {}
    
      increment() {
        this.count++;
        // Manually trigger change detection
        this.cdr.markForCheck(); 
      }
    }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): did you
  • Low reputation (0.5):
Posted by: IgorK

79279687

Date: 2024-12-13 22:12:48
Score: 0.5
Natty:
Report link

To read your data from Excel into Python, you'll want to use the following lines of code:

import pandas as pd

df = pd.read_excel("path_name.xlsx")

This reads in the library most used for tables of data, pandas, and reads in the data from the file into a variable called df, which stands for dataframe.

Then to transform as appropriate, you can do:

df = pd.melt(df, id_vars="Date").rename(columns={"variable": "Name", "value": "On/Off"})

I'll explain the code so you can learn for yourself how to use it in future. pd.melt is a way of changing the format of dataframes. Other methods include df.stack, df.unstack, and df.pivot. Frankly, I can never remember which does what, so I just try them all until something gives me what I want the dataframe to be transformed into.

Setting id_vars="Date" just means that the date column is left alone rather than being transformed, while the other columns (the ones with the people's names) are transformed.

Then I rename the newly transformed columns using .rename({...}) and include a dictionary of the column names I want to replace. This gives me a dataframe that looks like the following:

| Index| Date | Name | On/Off | |-------|-------------|------|--------| | 0 | 1/1/2025 | Bob | 0 | | 1 | 1/2/2025 | Bob | 1 | | 2 | 1/3/2025 | Bob | 1 | | 3 | 1/1/2025 | Joe | 0 | and so on.

I can then write this out to a CSV using:

df.to_csv("new_filepath.csv", index=False)

and that will write out the table to a new CSV without the index column, just as in your example. I hope that all makes sense!

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Filler text (0.5): -------------
  • Filler text (0): --------
  • Low reputation (0.5):
Posted by: AJH

79279683

Date: 2024-12-13 22:10:47
Score: 8 🚩
Natty: 5
Report link

were you able to successfully run this flutter project? Did face comparison (to verify if both images are of the same person) work fine?

Reasons:
  • RegEx Blacklisted phrase (3): were you able
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Regina Phalange

79279671

Date: 2024-12-13 22:02:45
Score: 2.5
Natty:
Report link

try badge plugin, it's forked from groovy postbuild plugin and support modern icons such as ionicons-api-plugin, font-awesome-api-plugin

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

79279663

Date: 2024-12-13 21:57:44
Score: 3.5
Natty:
Report link

I am sorry but i tried this and it failed. It even messed up the httpd.vhosts config

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

79279650

Date: 2024-12-13 21:48:42
Score: 1.5
Natty:
Report link

OK just quickly, use NWCOnnection.newConnectionHandler (Documentation)

I (hopefully) will update this answer after I implement this into my code

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

79279648

Date: 2024-12-13 21:47:42
Score: 2.5
Natty:
Report link

I see them expanding, but you have a link in the href, use # instead, otherwise you get redirected.

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

79279647

Date: 2024-12-13 21:46:42
Score: 1.5
Natty:
Report link

Ohh... I found a problem in my case. When you create a new field for an entity you should setup access to this field for a particular role:

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

79279639

Date: 2024-12-13 21:43:41
Score: 1
Natty:
Report link

You asked several questions at once, why the request code, there are no problems in it. The question is how to save a string in localStorage, because a string is the same binary data, you will just have a problem if you copy it because of the zero byte. In general, the essence is simple, convert blob to Uint8Array, go through the bytes extracting numbers and save them in the characters of the string text += String.fromCharCode(var_Uint8Array[i]) save the string in localStorage, it's elementary simple. Well, and the encoding should be eight-bit accordingly.

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

79279638

Date: 2024-12-13 21:43:41
Score: 2
Natty:
Report link

I got a bad-request-response when i accidentally used a wrong access-token (instead of something like 401- or 403-response).

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

79279632

Date: 2024-12-13 21:41:40
Score: 5.5
Natty:
Report link

could you please provide further information on:

  1. What is your Thingsboard version (like version number, Community/Professional Edition)?
  2. What does your dashboard look like (how many entries/entities, does the table have/how many widgets are in the dashboard)? Do you use any cell/content-style functions?
  3. Maybe you can share a screenshot of the missing & working scroll bar (and since you can see the popup, can you scroll in that popup with the mouse even though you don't see a scroll bar?). (black out private information before sharing)

I want to hide those at first and then let the user select the figures to display by using "Columns To Display"

This is a simple setting you can turn on by going into your table widget, in the Data-Tab below your Device-Source you should see the Columns. Click on the Gear-Icon of a columns and change those Settings:

Default column visibility: Hidden
Column selection in 'Columns to Display': Enabled


I was not able to reproduce your problem, but in my test, the scroll bar style was different between Firefox and Edge (styles can often be different between browsers).

Image of the Difference (on demo system v.3.8.1.9) Difference Between Firefox and MS-Edge

Reasons:
  • Blacklisted phrase (1): What is your
  • RegEx Blacklisted phrase (2.5): could you please provide
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Electronout

79279630

Date: 2024-12-13 21:39:39
Score: 0.5
Natty:
Report link

For people running into this issue, I was able to resolve this by changing this line of code in app.module

provideAuth(() => getAuth())

to

provideAuth(() => {
          if (Capacitor.isNativePlatform()) {
            return initializeAuth(getApp(), {
              persistence: indexedDBLocalPersistence
            })
          } else {
            return getAuth()
          }
        })
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Sanjay Tibrewal

79279629

Date: 2024-12-13 21:39:39
Score: 1
Natty:
Report link

I've stumped upon the same issue , and figured out why .

This issue occurs because Laravel uses a single-threaded request-handling model (in most configurations), meaning that while the SSE endpoint is running and keeping the connection open, Laravel cannot handle other incoming requests. The result is that requests are effectively "blocked" until the SSE process completes.

So basically you have to use Websocket , because it uses a different protocol WS which won't block the HTTP requests that Laravel uses .

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

79279627

Date: 2024-12-13 21:37:39
Score: 1
Natty:
Report link

I found the solution thanks to comment from lorem ipsum:

if(comment.id.wrappedValue == mainCommentId){
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): to comment
  • Whitelisted phrase (-2): I found the solution
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Coddo

79279620

Date: 2024-12-13 21:33:38
Score: 2
Natty:
Report link

According to my knowledge 3 basis steps for Javascript data management 1.Relational Schemas 2.JavaScript-Based Databases 3.Generator Functions if you want a complete imformation vist this website.

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

79279605

Date: 2024-12-13 21:23:35
Score: 5
Natty:
Report link

For anybody having the same problem but csrf is disabled:

  1. Check that you permitted the controller url in your SecurityFilterChain if you are using Spring Security, although this should create an access denied exception.
  2. Make sure to select the correct mapping for the controller method. @GetMapping for a get request and @PostMapping for a post request.

If you send a post request to a method declared with @GetMapping spring boot will throw the 405 error.

Reasons:
  • No code block (0.5):
  • Me too answer (2.5): having the same problem
  • User mentioned (1): @GetMapping
  • User mentioned (0): @PostMapping
  • User mentioned (0): @GetMapping
  • Low reputation (1):
Posted by: FullMetalJack

79279599

Date: 2024-12-13 21:19:34
Score: 1
Natty:
Report link

One method with a pivot table:

df2 = df[list['abde']].copy() # take only the 4 columns needed
df2['e'] = df2['e'].astype(int)  # transform True/False to 1/0
pt = df2.pivot_table(index=['a', 'b'], columns=['e'], values='d', aggfunc='min').fillna(0)
display(pt) 

pt

pt[1] has the values for the column f for a given ('a', 'b')

df['f_calc'] = df.apply(lambda row: pt[1].loc[row['a'], row['b']], axis=1)
display(df)

res

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

79279591

Date: 2024-12-13 21:15:33
Score: 2.5
Natty:
Report link

react-native-image-header-scroll-view is a 4 year old library you should try to search for an alternative if possible because at some point play store or app store will reject your app because of this library.

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

79279589

Date: 2024-12-13 21:15:33
Score: 2
Natty:
Report link

in my case, I added the title variable to the res.render call, but had not restarted the server. The change was not picked up and threw the error mentioned until I restarted the server.

Something like nodemon can help avoid this problem while you are developing.

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

79279580

Date: 2024-12-13 21:12:31
Score: 6 🚩
Natty:
Report link

Thanks for the guidance.

Lots of grumpy downvoters. Just wanted a hand.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2): downvote
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Cyoung75

79279562

Date: 2024-12-13 21:05:29
Score: 0.5
Natty:
Report link

You quickly check whether a bundle was signed using:

keytool  -printcert -jarfile {pathto}/app-release.aab

I filed a bug with Android Studio:

b/384076359 | P1 | AS says bundle signing successful but it failed to sign because "debuggable true"

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

79279556

Date: 2024-12-13 21:02:28
Score: 1
Natty:
Report link

In web browsers, when you enter a URL without a scheme, they often assume you want to navigate to that domain using the default scheme (usually http://).

-You can add a default scheme (typically http:// or https://) when a URL doesn't start with http://, https://, or another recognized scheme (like ftp://). -The URL constructor in JavaScript can be used, along with a base URL to ensure that properly constructed URLs are formed. -If you need to resolve a relative URL based on a base URL, you can also use the URL constructor by providing a base URL.

Using the URL constructor is a reliable way to handle URLs while ensuring they are correctly formatted, similar to how web browsers manage them. If URL no including a scheme, prepend a default scheme. For relative URLs, provide a base URL, which allows you to construct the absolute URL correctly. Happy coding!

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Diego Vieira Dos Santos

79279553

Date: 2024-12-13 20:57:27
Score: 0.5
Natty:
Report link

I think that previous answer is partly incorrect. Translation vector is a coordinates in camera's coordinate system. So the distance from the camera to aruco marker is not just z coordinate of tvec, it is a euclidean norm of tvec

import cv2
import numpy as np

img = cv2.imread('img.png')  # replace with your path to image
# Replace with your camera matrix
camera_matrix = np.array([
    [580.77518, 0.0, 724.75002], 
    [0.0, 580.77518, 570.98956], 
    [0.0, 0.0, 1.0]
])
# Replace with your distortion coefficients
dist_coeffs = np.array([
    0.927077, 0.141438, 0.000196, -8.7e-05, 
    0.001695, 1.257216, 0.354688, 0.015954
])
# Replace with your aruco dictionary
dictionary = cv2.aruco.Dictionary_get(cv2.aruco.DICT_4X4_50)
parameters = cv2.aruco.DetectorParameters_create()
marker_size = 0.8  # marker size in some units

corners, ids, _ = cv2.aruco.detectMarkers(
    img, dictionary, parameters=parameters
)
rvec, tvec, _ = cv2.aruco.estimatePoseSingleMarkers(
    corners, marker_size, camera_matrix, dist_coeffs 
)
# The distance will be in the same units as marker size
distance = np.linalg.norm(tvec[0][0])

Also as @Simon mentioned you need to calibrate your camera first to get camera matrix and distortion coefficients

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

79279551

Date: 2024-12-13 20:57:27
Score: 2
Natty:
Report link

Just simply add 2 single quotes, you will get the single quotes enclosed for any string in Excel. Eg: Column A1: '' Column A2: Adam Column A3: '' Column A4: =CONCAT(A1,A2,A3) Result: Column A4: 'Adam'

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

79279546

Date: 2024-12-13 20:54:26
Score: 1.5
Natty:
Report link

I was getting a similar error:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hc/core5/http2/HttpVersionPolicy at org.apache.hc.client5.http.config.TlsConfig$Builder.build(TlsConfig.java:211) at org.apache.hc.client5.http.config.TlsConfig.(TlsConfig.java:47) at

The solution was to add this library to the project.

httpcore5-h2-5.3.1.jar [https://mvnrepository.com/artifact/org.apache.httpcomponents.core5/httpcore5-h2/5.3.1][1]

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Todo-System Todo-System

79279545

Date: 2024-12-13 20:54:26
Score: 5.5
Natty:
Report link

You need to configure your server to receive preflight requests and respond appropriately. Check this link for more information: https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request

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

79279528

Date: 2024-12-13 20:44:23
Score: 4
Natty:
Report link

It's a bug in the SDK. This will fix this issue: https://github.com/microsoftgraph/msgraph-sdk-objc-models/pull/36

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

79279527

Date: 2024-12-13 20:44:23
Score: 2.5
Natty:
Report link

This was user error. Cloudflare has updated the UI for its Pages settings - the environment (production/preview) dropdown scrolls out of view when accessing the binding setting. My binding was configured correctly, it had just never been established for the preview environment.

Cloudflare Pages Settings Environment Setting Location

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

79279521

Date: 2024-12-13 20:42:22
Score: 1.5
Natty:
Report link

AWS Glue’s get_logger() sends logs to the stderr stream by default, which is why they appear in the Error Log Stream in CloudWatch.

If you prefer to stick with glueContext.get_logger() but ensure its logs appear in the Output Log Stream, you can redirect stderr to stdout

Add this line early in your script:

import sys sys.stderr = sys.stdout

This ensures all logs, including those from the Glue logger, go to the Output Log Stream in CloudWatch

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

79279518

Date: 2024-12-13 20:41:22
Score: 1.5
Natty:
Report link

@Barmar brings up a good point that product id and names should be grouped together. The following code makes that assumption, and that id/names are not unordered:

WITH RankedAttributes AS (
    SELECT 
        Value AS ProductValue,
        ROW_NUMBER() OVER (ORDER BY NULL) AS rn,
        Attribute
    FROM your_table_name
),
GroupedAttributes AS (
    SELECT 
        MAX(CASE WHEN Attribute = 'product_id' THEN ProductValue END) AS product_id,
        MAX(CASE WHEN Attribute = 'product_name' THEN ProductValue END) AS product_name
    FROM RankedAttributes
    GROUP BY (rn - ROW_NUMBER() OVER (PARTITION BY Attribute ORDER BY rn))
)
SELECT product_id, product_name
FROM GroupedAttributes
WHERE product_id IS NOT NULL;
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Barmar
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Silver Spade

79279514

Date: 2024-12-13 20:40:22
Score: 1.5
Natty:
Report link

After installing dj-databse-url, don't forget to update the requirements.txt (using pip freeze) and push the change to heroku (git push heroku main).

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

79279504

Date: 2024-12-13 20:35:21
Score: 0.5
Natty:
Report link

Not sure if this is what you are looking for, but it is useful anyway. Print to the SQL output can be done using \qecho.

Example:

\qecho '\nDrop Trigger Functions:'
drop function if exists trade_tx_before();
drop function if exists trade_tx_after();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Crashmeister

79279495

Date: 2024-12-13 20:32:18
Score: 6 🚩
Natty:
Report link

Please share what solution finally worked for the OP.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please share what solution
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Saranya

79279487

Date: 2024-12-13 20:30:16
Score: 12 🚩
Natty: 6.5
Report link

Sorry I had to create a answer because I can't create a comment because I don't have 50 reputation points... regular SoF BS...

I have same issue, can you please give me more details how you solve it?

Reasons:
  • RegEx Blacklisted phrase (2.5): can you please give me
  • RegEx Blacklisted phrase (1.5): I don't have 50 reputation points
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have same issue
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: com sat

79279477

Date: 2024-12-13 20:26:15
Score: 0.5
Natty:
Report link

hope this helps :)

<FormControl fullWidth>
    <InputLabel shrink>Label</InputLabel>
    <Select label="Label" defaultValue={undefined} notched>
        <MenuItem value="1">One</MenuItem>
        <MenuItem value="2">Two</MenuItem>
    </Select>
</FormControl>
<TextField
    label="Label"
    slotProps={{
        inputLabel: {
        shrink: true,
        },
    }}
/>

https://stackblitz.com/edit/vitejs-vite-jsxsscjo?file=src%2FApp.tsx

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Atharva Upadhye

79279473

Date: 2024-12-13 20:22:13
Score: 5
Natty: 6
Report link

I tried what was listed above. When I run this command in a task I am getting kicked out of the playbook not just the current task:

Reasons:
  • Blacklisted phrase (1): How do I
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Dkirk

79279464

Date: 2024-12-13 20:14:12
Score: 2.5
Natty:
Report link

I spent some time working on this today and found that the import for the css file is not getting loaded into the component. My workaround has been to put the App.css file in a public folder or CDN and use it from there and it worked like a charm. There is an ongoing bug report at github on this issue.

Reasons:
  • Blacklisted phrase (1): worked like a charm
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Daniel T Sasser II

79279460

Date: 2024-12-13 20:14:12
Score: 2
Natty:
Report link

You need to configure the metro bundler. Shake the device, then select "Configure bundler", and in the dialog that pops up, enter the IP address of the network both devices are on.

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

79279459

Date: 2024-12-13 20:13:12
Score: 1.5
Natty:
Report link

I think this will work for you:

[Return]   ${resp.json()}

Note that import JSONLibrary in your settings section.

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

79279451

Date: 2024-12-13 20:07:11
Score: 1.5
Natty:
Report link

To bulk remove unused class names from a component's imports array, you can follow a systematic approach that combines automated tools and manual optimization. First, you can utilize static code analysis tools to scan your project for unused imports. These tools help in identifying which classes are not referenced within your component or its dependencies, making it easier to clean up the code. Some development environments offer built-in features that highlight unused imports, allowing you to quickly delete them.

In addition, using a bundler with tree-shaking capabilities ensures that any unused code is automatically removed during the build process, minimizing the size of the final output. Another useful strategy is to perform code reviews regularly, ensuring that imports are checked for relevance and removing any that no longer serve a purpose. When working in larger teams or projects, this approach ensures code consistency and efficiency, much like the seamless journey from Port Blair to Havelock, where every step is optimized for a smooth experience. By removing unused imports, you maintain cleaner, more efficient code.

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

79279438

Date: 2024-12-13 19:57:08
Score: 4
Natty:
Report link

Time Traveller here. 👋 👋

The solution @dustin-kreidler gave worked for me. I couldn't vote it or comment under it because of some reputation points.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • RegEx Blacklisted phrase (1.5): reputation points
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @dustin-kreidler
  • Low reputation (1):
Posted by: PADIO

79279431

Date: 2024-12-13 19:50:06
Score: 3.5
Natty:
Report link

Use "!pip install packagename" in a cell of Google Colab.

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

79279425

Date: 2024-12-13 19:48:06
Score: 1.5
Natty:
Report link

Thanks for the above answers. Special thanks to those who helped in the comment section, it helped a lot.

I forgot to post the answer I did that time. Here's the rust implementation below. I also did a nextjs implementation too. My idea was to develop it for other similar languages. But got busy with other projects. :(

use unicode_segmentation::UnicodeSegmentation;

// Define a struct that holds a grapheme iterator
struct DevanagariSplitter<'a> {
    graphemes: std::iter::Peekable<unicode_segmentation::Graphemes<'a>>,
}

// Implement Iterator trait for DevanagariSplitter
impl<'a> Iterator for DevanagariSplitter<'a> {
    type Item = String;

    fn next(&mut self) -> Option<Self::Item> {
        // Get the next grapheme from the iterator
        let mut akshara = match self.graphemes.next() {
            Some(g) => g.to_string(),
            None => return None,
        };

        // Check if the grapheme ends with a virama
        if akshara.ends_with('\u{094D}') {
            // Peek at the next grapheme and see if it starts with a letter
            if let Some(next) = self.graphemes.peek() {
                if next.starts_with(|c: char| c.is_alphabetic()) {
                    // Append the next grapheme to the current one
                    akshara.push_str(self.graphemes.next().unwrap());
                }
            }
        }

        // Return the akshara as an option
        Some(akshara)
    }
}

// Define a function that takes a string and returns an DevanagariSplitter
fn aksharas(s: &str) -> DevanagariSplitter {
    // Use UnicodeSegmentation to split the string into graphemes
    let graphemes = s.graphemes(true).peekable();
    // Create and return an DevanagariSplitter from the graphemes
    DevanagariSplitter { graphemes }
}

fn main() {
    // Define an input string in devanagari script
    let input = "हिन्दी मुख्यमंत्री हिमंत";

    // Print each akshara separated by spaces using aksharas function
    for akshara in aksharas(input) {
        print!("{} ", akshara);
    }
}

 
// The output of this code is:

// "हि न्दी  मु ख्य मं त्री  हि मं त"

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): :(
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: InsParbo

79279421

Date: 2024-12-13 19:46:04
Score: 4.5
Natty:
Report link

Quoting @PepijnKramer in the comments

It is a gcc limitation (it doesn't optimize the branch)

This discussed more in detail in this video C++ Weekly - Ep 456 - RVO + Trivial Types = Faster Code

Reasons:
  • Blacklisted phrase (1): this video
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @PepijnKramer
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: timmy george

79279416

Date: 2024-12-13 19:42:04
Score: 2
Natty:
Report link

Old thread, but anyway. You should do it other way around, you should call "VsDevCmd.bat" file prior starting cygwin. This way cygwin will pick up all environment variables, including path, the way you need it. See dox.

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

79279402

Date: 2024-12-13 19:34:01
Score: 5.5
Natty:
Report link

am having the issue with java21 , u find the solution ?

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

79279397

Date: 2024-12-13 19:32:01
Score: 1.5
Natty:
Report link

I had the same problem, and it was just my JAVA_HOME variable that was set to Java 1.8. Apparently, Maven was using this JDK to run the plugin. I just set it to a more recent version and rebooted my PC.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Arnon Lehmann

79279396

Date: 2024-12-13 19:30:00
Score: 13.5
Natty: 7.5
Report link

I have the same problem, did you manage to solve it?

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (3): did you manage to solve it
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Felipe Scola

79279385

Date: 2024-12-13 19:25:59
Score: 3
Natty:
Report link

I think react-query changes the value of isRefetching to true, and isError to false when you call refetch().

Why not try using error instead of isError?

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

79279383

Date: 2024-12-13 19:24:57
Score: 6 🚩
Natty:
Report link

It seems that now they're using context.mounted again. I get the same error message when I use if(mounted).

Screenshot of a code I just wrote.

Reasons:
  • RegEx Blacklisted phrase (1): I get the same error
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Me too answer (2.5): I get the same error
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Ali Alhajji

79279381

Date: 2024-12-13 19:22:56
Score: 1
Natty:
Report link

follow the code standard Write your app code standard

import 'package:flutter/material.dart';

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

class TestPage extends StatefulWidget {
  const TestPage({super.key});

  @override
  State<TestPage> createState() => _TesState();
}

class _TesState extends State<TestPage> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        backgroundColor: Colors.amber,
        bottomSheet: Padding(
          padding: const EdgeInsets.all(12.0),
          child: Container(
            width: double.infinity,
            child: FloatingActionButton.extended(
              onPressed: () {},
              elevation: 0,
              backgroundColor: Colors.transparent,
              label: const Text(
                "Next",
                style: TextStyle(color: Colors.black),
              ),
            ),
          ),
        ),
      ),
    );
  }
}


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

79279375

Date: 2024-12-13 19:19:54
Score: 4
Natty:
Report link

There appears to be a v17 download available: https://download.osgeo.org/postgis/windows/pg17/ (direct link: https://download.osgeo.org/postgis/windows/pg17/postgis-bundle-pg17x64-setup-3.5.0-2.exe)

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

79279357

Date: 2024-12-13 19:14:52
Score: 1
Natty:
Report link

I made a mistake by incorrectly defining the script to run the server.js file in package.json. As a result, it was running an old build from the dist folder instead of running server.js file directly: INCORRECT:

 "scripts": {
    ...
    "start": "node dist/server.js"
  },

CORRECT:

 "scripts": {
    ...
    "start": "node src/server.js"
  },

Since I'm note using build, dist content is outdated and not used. Directly running server.js file solves the CORS issue!

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

79279353

Date: 2024-12-13 19:13:51
Score: 4.5
Natty: 5
Report link

Yeah i've spending too much time on this without any solution, but i ended up using nest-cli monorepo with swc builder after too many porblems but it work's just fine

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ziyaDev

79279348

Date: 2024-12-13 19:11:51
Score: 1.5
Natty:
Report link

Currently it does not support any annotations. That is why they mentioned mapping file is mandatory :

BeanIO is configured using a mapping XML file where you define the mapping from the flat format to Objects (POJOs). This mapping file is mandatory to use.

Official Documentation : https://camel.apache.org/components/4.8.x/dataformats/beanio-dataformat.html#_spring_boot_auto_configuration

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

79279343

Date: 2024-12-13 19:10:50
Score: 2.5
Natty:
Report link

Are you using the library https://pypi.org/project/azure-search-documents/?

This is the official Azure AI Search Python SDK but there is no as_retriever method.

(I am a Microsoft employee working in the Azure SDK team.)

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

79279342

Date: 2024-12-13 19:09:50
Score: 0.5
Natty:
Report link

To get information from a FileInfo object, use its built-in attributes and methods. For fi as the object:

    fi.name
    fi.size
    fi.path
    fi.modificationTime
    fi.isDir()
    fi.isFile()

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

79279334

Date: 2024-12-13 19:05:49
Score: 0.5
Natty:
Report link

You could use the WP_Term_Query to query terms in a specific order.

$terms_query = new WP_Term_Query(array(
    'taxonomy' => 'authors',
    'orderby'  => 'slug__in',
    'slug'     => array(
        'sally',
        'john',
        'amanda
    )
));
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Eloi

79279328

Date: 2024-12-13 19:02:48
Score: 2.5
Natty:
Report link

This seems to be related to CircleCI xcode 16 image.

https://discuss.circleci.com/t/xcode-16-performance-regression/52129

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

79279322

Date: 2024-12-13 19:01:48
Score: 1
Natty:
Report link

Add this to analysis_options.yaml file it will work

analyzer:
  errors:
    constant_identifier_names: ignore
    invalid_annotation_target: ignore
include: package:flutter_lints/flutter.yaml

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

79279307

Date: 2024-12-13 18:54:47
Score: 1
Natty:
Report link

Try modifying your application to handle AWT errors gracefully. Use GraphicsEnvironment.isHeadless() to determine the state dynamically and disable UI components in headless mode.

Hope this helps. Let me know if it doesn't!

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

79279305

Date: 2024-12-13 18:53:46
Score: 2
Natty:
Report link

I stopped using for loop. Instead the event will occur every 2 years. This will make my new dataset the middle size as the original one. But this will work for plot in real time.

I prepared a variable (i) that will be increased every time change. This will be the dataset guide point to make the subtraction.

The subtraction formula needs to be

resultado = TFGDS.getY(i-1)-TFGDS.getY(i-2);

for being sure the event is using the dataset existing values, as the event is occuring every 2 years.

Thank you all for making my brain more creative.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Samira Vidal Pelaez

79279302

Date: 2024-12-13 18:51:46
Score: 2
Natty:
Report link

Retrive Remmina Password in Linux Debian

Remmina Password are stored in Keyring, to retrive all password use this commands:

# install secret-tool in Debian12
sudo apt install libsecret-tools

# show all my password stored in keyring
secret-tool search key password --all

https://gist.github.com/ignaciogutierrez/82c50bd0fdc88ea831b440884d980e10

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ignacio Gutiérrez Torrero

79279295

Date: 2024-12-13 18:48:45
Score: 1.5
Natty:
Report link

1.Create posts_.$slug/ folder inside routes 2.Create index.tsx file in it. 3.Copy all the code from $slug.tsx. 4.paste it into index.tsx file. Path will be /posts/$slug Hope it helps..

Reasons:
  • Whitelisted phrase (-1): Hope it helps
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bhairav Gawande

79279291

Date: 2024-12-13 18:46:44
Score: 3
Natty:
Report link

I got this error while accidentally making more columns than I had xAxis labels. After fixing it the warnings stopped.

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

79279276

Date: 2024-12-13 18:40:43
Score: 2
Natty:
Report link

In Bootstrap 5.3.3 (Dec 2024):

Add id="videoModal" to the modal. Also add id="videoIframe" to the iframe.

Then, script:

document.getElementById('videoModal').addEventListener('hide.bs.modal', () => document.getElementById('videoIframe').src = document.getElementById('videoIframe').src);

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

79279263

Date: 2024-12-13 18:34:41
Score: 2.5
Natty:
Report link

If you're working with a multi-gigabyte file and have requirements for memory efficiency, order preservation, and concurrency, you can achieve this using Python's multiprocessing library. Use multiprocessing.Pool for parallel processing since this scenario is CPU-bound.

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

79279251

Date: 2024-12-13 18:28:39
Score: 0.5
Natty:
Report link

You can filter orders by id

Example:

query($query: String) {
    orders(first: 250, query: "id:>=5834352591016", sortKey: PROCESSED_AT) {
        edges {
            node {
                id
                name
                processedAt
            }
        }
    }
}

Note: id is Shopify order id.

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

79279246

Date: 2024-12-13 18:26:39
Score: 1
Natty:
Report link

You should be able to use

[
  {
    "id": 1,
    "priority": 1,
    "action": {
      "type": "redirect",
      "redirect": {
        "url": "https://stackoverflow.com/questions"
      }
    },
    "condition": {
      "urlFilter": "https://stackoverflow.com/|",
      "resourceTypes": ["main_frame"]
    }
  }
]

since a | dictates that no more characters may come after it.

See: chrome.declarativeNetRequest - URL filter syntax - Chrome Extension API

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user1280483