79075489

Date: 2024-10-10 17:13:13
Score: 2.5
Natty:
Report link

try to use SynchronousExecutor() and inject this into it, it will make your code run like syncs

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

79075487

Date: 2024-10-10 17:13:13
Score: 3
Natty:
Report link

This is also an issue with the Braintree for WooCommerce Payment Gateway. I have mentioned this in the WordPress forums here: https://wordpress.org/support/topic/blank-orders-being-created/#new-topic-0

Thanks for the lead, I hope it's addressed soon!

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

79075482

Date: 2024-10-10 17:10:12
Score: 1
Natty:
Report link

So far I figured out that I can simply open the project root folder in VSCode. Thanks to the CMake extension I can see the project outline, which usually would be defined by the solution (which I cannot use). enter image description here

I am not sure how to build or debug from VSCode yet, but I'll keep this answer updated.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I cannot
  • Whitelisted phrase (-2): I figured out
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Tenobaal

79075474

Date: 2024-10-10 17:06:11
Score: 3.5
Natty:
Report link

as another comment stated ; you need to replicate to a new one ; you cant rename in-place without doing something potentially metadata-corruptive on the filesystem

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

79075469

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

If anyone else is wondering an answer for this question, by using the @Column annotations, you can do the following as in the question above.

@Column(name = "IsActive", nullable = false, insertable = false)

private Short isActive;

the insertable property will not include this field in INSERT queries. Then the server will automatically put the default value assigned in the database itself.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @Column
  • Low reputation (1):
Posted by: Ravidu Vithana

79075460

Date: 2024-10-10 17:02:10
Score: 2
Natty:
Report link

You have many ways to do this. Return a wrapper or Return a list. But it seems that you have problems with the archetecture. You need to reconsider the interface and methods of this class.

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

79075455

Date: 2024-10-10 17:01:10
Score: 3
Natty:
Report link

I can confirm! Worked for me as well

Reasons:
  • Whitelisted phrase (-1): Worked for me
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Anthony B

79075442

Date: 2024-10-10 16:59:09
Score: 1
Natty:
Report link

I believe you want to set the BUFFERSIZE (in bytes) so that it will download in larger chunks:

curl_setopt($ch, CURLOPT_BUFFERSIZE, 2048);

Note: Someone mentioned that CURLOPT_PROGRESSFUNCTION is deprecated, I can see that how it works changes after 5.5.0 - but nowhere can I see that this feature will be removed.

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

79075435

Date: 2024-10-10 16:56:08
Score: 2
Natty:
Report link

I've solved my problem. The solution was simply to remove the /vendor folder from the .gitignore list, run composer update locally, and upload everything to the repository. There was no need to move the index.php out of the /public folder.

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

79075426

Date: 2024-10-10 16:55:08
Score: 0.5
Natty:
Report link

The following solution helps me:

@RequiredArgsConstructor(onConstructor = @__(@ConstructorProperties({"field1", "field2"})))

It's required to describe only those fields that you expect to see in the constructor

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

79075423

Date: 2024-10-10 16:54:08
Score: 2.5
Natty:
Report link

Delete bin and obj folders, in my case that helped. So many errors I am getting while trying to publish a .net maui app from VS and many of them I am solving by simply deleting the bin and obj folders.

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

79075422

Date: 2024-10-10 16:54:08
Score: 1
Natty:
Report link

2.X.X (2.7.0 is the latest) is the correct version for Vaadin 23. The version you are using is for Vaadin 24.

TwinColSelect Vaadin Add-on

Vaadin 24+
Vaadin 23 in 2.7.0
Vaadin 21 in 2.0.0
Vaadin 14 in 1.9.1
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Drew Harvey

79075421

Date: 2024-10-10 16:53:06
Score: 15 🚩
Natty: 6.5
Report link

Did you solve this problem? I have similar and still dont know how to solve it.

Reasons:
  • Blacklisted phrase (1): I have similar
  • Blacklisted phrase (1): how to solve
  • RegEx Blacklisted phrase (3): Did you solve this problem
  • RegEx Blacklisted phrase (1.5): solve this problem?
  • RegEx Blacklisted phrase (2): dont know how to solve
  • RegEx Blacklisted phrase (2): know how to solve
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you solve this
  • Low reputation (1):
Posted by: user17604717

79075415

Date: 2024-10-10 16:52:05
Score: 2
Natty:
Report link

You can try this Excel Service library, which I've been working on. It's already published in the Maven Central repository, and you can try it out to see if it simplifies things for you.

https://github.com/dev-codehub/excel-service

Reasons:
  • Whitelisted phrase (-1): try this
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: dev-codehub

79075407

Date: 2024-10-10 16:50:05
Score: 1
Natty:
Report link

I tried your source code on my own site. Adding <meta name="viewport" content="width=device-width, initial-scale=1"> to the <head> section makes the text sizing constant, regardless of the lines. By the way, including this in the html head is pretty much the most fundamental thing you need to do when developing a site with mobile users in mind. This line tells the browser the basic scaling of the site.

This link from mdn web docs pretty well describes why it works that way.

Reasons:
  • Blacklisted phrase (1): This link
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: sgtGiggsy

79075404

Date: 2024-10-10 16:49:04
Score: 0.5
Natty:
Report link

Just reverse the logic/condition in IF clause

Private Sub TestIF()
Dim m2 As Integer, MyLastRow2 As Integer
MyLastRow2 = 7
For m2 = 2 To MyLastRow2
        If Not (Worksheets("CRE ATW").Cells(m2, "E").Value = "Signalling" Or _
            Worksheets("CRE ATW").Cells(m2, "E").Value = "Telecoms") Then
                 Worksheets("CRE ATW").Cells(m2, "A").ClearContents
        End If
Next m2
End Sub

Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Abu Ben Reaz

79075402

Date: 2024-10-10 16:49:04
Score: 0.5
Natty:
Report link

Here are another 5c,

I had added non-Json to my ~/.docker/config.json that made the start fail rather silently, though there were hints in the log ('C:\Users<username>\AppData\Local\Docker')

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

79075394

Date: 2024-10-10 16:46:03
Score: 3.5
Natty:
Report link

mysql -u -p < db_backup.dump

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

79075391

Date: 2024-10-10 16:45:03
Score: 1.5
Natty:
Report link

On Android, swipe up from the bottom of your screen, and swipe up again on the Pandora app. On iOS, swipe up from the bottom of the screen; swipe up again on the app to close it. On Mac or Windows, click the X in the upper-right or upper-left corner of the window.

here is a detailed article on how to stop spotify from running in the background https://spotipremiumapk.org

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

79075388

Date: 2024-10-10 16:43:02
Score: 2.5
Natty:
Report link

In the case where there is or might be hundreds of invokers of this event, changing the signature of the MyEventArgs would require a lot of refactoring. The existence of the parameter "object sender" allows for a late hack without requiring a refactor of all occurrences. (or if recipients need to handle new arguments of MyEventArgs)

Although, this does not tell if the pattern is better or not, because patterns are subjective. It may or may not be better, contextually depending.

This answer is heavily inspired from a comment on this question made by @Ralf

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @Ralf
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ky9432

79075385

Date: 2024-10-10 16:43:01
Score: 6.5 🚩
Natty:
Report link

patch.set_alpha(0.5)

Could you please change it to 1 and try it? Transparency will lead to brown.

Please let me know if this helped.

Cheers :)

Reasons:
  • Blacklisted phrase (1): Cheers
  • RegEx Blacklisted phrase (2.5): Please let me know
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: kodroh

79075380

Date: 2024-10-10 16:41:01
Score: 2
Natty:
Report link

I know this is old, but here's what I found when using a Service Account to create the file and delete it on a Shared Drive. Creating files was no problem, but the only way I found to make the deletion work was to add the Service Account as a "Manager" on the top level shared drive. It did not work if the Service Account only had Content Manager on a sub-folder.

Reasons:
  • Blacklisted phrase (1): did not work
  • No code block (0.5):
  • Single line (0.5):
Posted by: Mitch

79075377

Date: 2024-10-10 16:41:01
Score: 1.5
Natty:
Report link

The syntax is fine, but the effect is probably not what you intended: A<>x OR A<>y is always true, since it can't be both. You probably mean A<>x AND A<>y.

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

79075375

Date: 2024-10-10 16:40:01
Score: 1
Natty:
Report link
  1. to avoid this problem in the first place pyt = pytricia.PyTricia(128)
  2. When using only 32 bits trie with IPv6 the pytricia implementation should be logically consistent i.e. len([x for x in y if x not in y]) MUST RETURN 0! I can only assume that under the hood there is a bug. Either refuse to add IPv6 prefixes completely if only 32 bits (insufficient bits for the prefix) are used or have a logically consistent implementation.
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Gabriel

79075371

Date: 2024-10-10 16:37:00
Score: 0.5
Natty:
Report link

In case it could still be of interest: @ocoda/event-sourcing is a NestJS module that offers the basic functionality that @nestjs/cqrs provides, but also adds the necessary tools for storing and retrieving events (and snapshots). You get the option to choose one of the supported drivers for the persistence (e.g. Postgres or MariaDB if you're using want to use a relational database).

The documentation elaborates a bit more on how the library itself can be used to implement CQRS and Event Sourcing within NestJS.

Full disclosure: I'm the creator of the library.

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

79075370

Date: 2024-10-10 16:37:00
Score: 1
Natty:
Report link

By default JS timers won't work on background, so setInterval and setTimeout callbacks will only run after app goes back to foreground. A solution is to not use the timer functions or if you really need a timer make your own implementation or use something like this

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Lian Araújo

79075369

Date: 2024-10-10 16:37:00
Score: 3.5
Natty:
Report link

I ran into this issue and it was resolved by changing all the datatype to max (200) on all the columns and it solved the issue.

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

79075368

Date: 2024-10-10 16:37:00
Score: 2.5
Natty:
Report link

macOS: this fixed it for me -

pgAdmin 4

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

79075365

Date: 2024-10-10 16:37:00
Score: 3.5
Natty:
Report link

import ReactAce from 'react-ace'; insted of import ReactAce from "react-ace-editor";

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

79075363

Date: 2024-10-10 16:35:59
Score: 1.5
Natty:
Report link

For me

pip install --upgrade pip setuptools wheel

it worked

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

79075357

Date: 2024-10-10 16:33:59
Score: 0.5
Natty:
Report link

After researching for a while and using different resources I found out that the issue is with the way that you import the pre-trained model and not with any of the explained steps in the error.

So my code went from:

vit_model = hub.KerasLayer("https://tfhub.dev/sayakpaul/vit_b16_fe/1", trainable=False)

To:

vit_model = tf.keras.applications.VGG16(include_top=False, input_shape=(224, 224, 3))
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: navidabasi

79075355

Date: 2024-10-10 16:33:59
Score: 2
Natty:
Report link

You should remove the roleType field from the User class.

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

79075344

Date: 2024-10-10 16:28:58
Score: 3.5
Natty:
Report link

The official matplotlib documentation has a guide on customizing violin plots that may be useful to you: https://matplotlib.org/stable/gallery/statistics/customized_violin.html

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

79075343

Date: 2024-10-10 16:28:57
Score: 8 🚩
Natty:
Report link

kindly help me with this, similar problems all over. just instead of nothing particular happening, a dialog box having, "there is an instance of anaconda navigator already running", pops up. I tried launching with prompt to but same dialog box. any solutions....

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1.5): any solution
  • Blacklisted phrase (3): kindly help
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: meelad

79075339

Date: 2024-10-10 16:27:56
Score: 1
Natty:
Report link

I was facing the same issue and I have used the web o auth client id and using that i haven't faced any issues and i also got back the id token from google . so you can try that .

I have used google_services.json file when I was using authentication with help of google firebase but as much I have read you don't need to use google_services.json file when you are authenticating the app with help of google cloud console .

p.s- please someone reply on this if he/she has used or enabled any api on google console and it has worked in case of authentication .

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

79075326

Date: 2024-10-10 16:22:54
Score: 8 🚩
Natty: 4.5
Report link

I am getting same exception when trying to upload for a Docker containe. Any suggestions on how to resolve for Docker ?

Reasons:
  • RegEx Blacklisted phrase (1.5): how to resolve for Docker ?
  • RegEx Blacklisted phrase (2): Any suggestions
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: user3594089

79075317

Date: 2024-10-10 16:19:53
Score: 1
Natty:
Report link

For linux you will need to set the cwd option :

spawn('./python-executable', [], {
        cwd: python-directory,
      });

For windows use :

spawn('cmd.exe',['/c', path.join(python-directory, 'python-executable.exe')]);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: khalidgt

79075313

Date: 2024-10-10 16:19:53
Score: 1.5
Natty:
Report link

To get some control over the retry duration, I added the Spring @Retryable attribute to the same method that the @JMSListener is on. In the queue itself, I set the "backout threshold" to 1 and defined a "backout queue" to send the message to when the threshold was exceeded.

For catching code exceptions where the retry logic should fire, make sure the @Recover method throws either a JmsException, RuntimeException, or a similar exception that inherits from those two.

For catching code exceptions where the retry logic should not fire, make sure the @Recover method logs and swallows the exception. Do not rethrow.

With this solution, the @Retryable attribute is controlling the retry logic. The queue's backout threshold is responsible for moving the message after the retry logic has failed... and nothing more.

Note that I'm an IBM MQ and JMS newbie, so if this solution is not a good one, please advise as to why it isn't.

Reasons:
  • RegEx Blacklisted phrase (2.5): please advise
  • Long answer (-0.5):
  • Has code block (-0.5):
Posted by: PoorInRichfield

79075309

Date: 2024-10-10 16:17:52
Score: 4.5
Natty: 5
Report link

This config solved problem for me with wildcard cert https://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_trusted_certificate

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Valerii Volodin

79075307

Date: 2024-10-10 16:16:51
Score: 11 🚩
Natty:
Report link

entiendo que te estás enfrentando a un problema al intentar cargar tu aplicación SvelteKit Es bastante frustrante cuando las cosas no funcionan como se espera te lo digo por experiencia propia, pero aquí van algunas sugerencias que podrían ayudarte.

Revisa el Mapeo de Rutas: Asegúrate de que estás configurando correctamente el mapeo de rutas. Cuando usas SetVirtualHostNameToFolderMapping, es importante que el camino que defines sea el correcto y que el archivo index.html esté efectivamente en la carpeta que indicas.

Ruta Base en SvelteKit: A veces, SvelteKit necesita saber desde dónde se está sirviendo la aplicación. Podrías intentar definir la ruta base en tu configuración de SvelteKit para que coincida con la URL que estás usando en WebView2. Esto podría ayudar a que la aplicación encuentre los archivos necesarios.

Verifica las Rutas en el Navegador: Abre las herramientas de desarrollo en el WebView2 y revisa si realmente se están cargando los archivos. Si ves que el index.html y otros recursos están allí, pero no se cargan, puede ser un problema de cómo se están resolviendo las rutas.

Acceso a Recursos Locales: Asegúrate de que WebView2 tenga acceso a la carpeta donde están tus archivos. Si hay algún problema de permisos, eso podría causar que no se encuentren los archivos.

Prueba Cargarlo de Otra Manera: Si nada de esto funciona, tal vez podrías considerar simular un servidor local solo para pruebas, así funcionará más como lo hace npx serve.

Espero que alguna de estas ideas te ayude a solucionar el problema. ¡No dudes en preguntar si necesitas más ayuda! ¡Buena suerte!

Reasons:
  • Blacklisted phrase (2): ayuda
  • Blacklisted phrase (2): Espero
  • Blacklisted phrase (1): está
  • Blacklisted phrase (1): cómo
  • Blacklisted phrase (2.5): solucion
  • Blacklisted phrase (2): pregunta
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: 3CHOPRE

79075295

Date: 2024-10-10 16:12:50
Score: 3
Natty:
Report link

if vscode focus on the build.gradle page when you debug, you get this warning. You should click another .dart page before debug.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Duygu EroÄŸlu

79075294

Date: 2024-10-10 16:11:49
Score: 9 🚩
Natty: 5
Report link

I have the same problem on my website. :(

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Blacklisted phrase (1): :(
  • Low length (2):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sebastian

79075289

Date: 2024-10-10 16:10:48
Score: 9 🚩
Natty: 6.5
Report link

Could you please help me to solve this issue? We face great difficulties in solving this problem.

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Could you please help me to
  • RegEx Blacklisted phrase (1.5): solve this issue?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jason Yeung

79075286

Date: 2024-10-10 16:09:48
Score: 1
Natty:
Report link

To achieve the desired functionality where the alternate language links include the current pathname with the locale prefix, u need to dynamically generate the URLs based on the current route. u can do this in a next.js multi-language app:

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

79075282

Date: 2024-10-10 16:08:48
Score: 3
Natty:
Report link

You can not use onpressed inside of a container. Wrap your Container with GestureDectector and use onTap.

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

79075274

Date: 2024-10-10 16:06:38
Score: 3
Natty:
Report link

I'm getting the same error sending the ulaw_8000 elevenlabs received audio. I'm using javascript but the error is the same. Otherwise, if I use the openai Realtime (in g711_ulaw) response It works fine.

function handleElevenLabsMessage(data, connection, streamSid) {
    if (data.audio) {
        const __filename = fileURLToPath(import.meta.url);
        const __dirname = path.dirname(__filename);

        const debugDir = path.join(__dirname, 'debug');
        if (!fs.existsSync(debugDir)) {
            fs.mkdirSync(debugDir);
        }

        const timestamp = Date.now();
        const filename = path.join(debugDir, `ulaw_audio_${timestamp}.ulaw`);
        fs.writeFileSync(filename, Buffer.from(data.audio, 'base64'));
        console.log(`Saved ulaw audio to ${filename}`);
        connection.send(JSON.stringify({
            event: 'media',
            streamSid: streamSid,
            media: {
                payload: Buffer.from(data.audio, 'base64').toString('base64')
            }
        }));
    }
}

Reasons:
  • RegEx Blacklisted phrase (1): I'm getting the same error
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I'm getting the same error
  • Low reputation (1):
Posted by: Braejan David Arias Heregua

79075269

Date: 2024-10-10 16:05:37
Score: 1
Natty:
Report link

Late to the party here, but in case you're still looking for a solution for event-persistence: @ocoda/event-sourcing is a NestJS module that offers the basic functionality that @nestjs/cqrs provides, but also adds the necessary tools for storing and retrieving events (and snapshots). On the other hand, what it still lacks are Saga's and a built-in way of doing event-replays.

Full disclosure: I'm the creator of the library.

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

79075264

Date: 2024-10-10 16:05:37
Score: 3
Natty:
Report link

I just figure out the problem. Was related to the Pyautogui version, I dont know but for some reason the lastest version PyAutoGUI-0.9.54 was causing this issue, I just replace the version to the current that I was using on my code PyAutoGUI==0.9.40 and worked.

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

79075261

Date: 2024-10-10 16:04:35
Score: 4.5
Natty:
Report link

I can read this article quite simply when doing a pull to refresh the listview. You can refer to it later.

https://www.dhiwise.com/post/flutter-refresh-page-enhancing-user-exp

Reasons:
  • Blacklisted phrase (1): this article
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Khanh Dang

79075248

Date: 2024-10-10 16:01:34
Score: 0.5
Natty:
Report link

I had the same issue on Angular 17.3.12

I have done all the obvious - clean npm cache, delete node_modules and package-lock.json and npm install - no need in all of that, the issue is the typescript version, you should find the one suit to your project.

I had typescript 5.6.3 in package.json, I have downgrade to 5.2.0 - solved the issue.

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

79075245

Date: 2024-10-10 16:01:33
Score: 4.5
Natty:
Report link

hey guys with bussines and creator accounts can i still fetch profiles? please if anyone know it

Reasons:
  • RegEx Blacklisted phrase (1): hey guys
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: GIORGI KVARTSKHAVA

79075244

Date: 2024-10-10 16:01:33
Score: 1.5
Natty:
Report link

error: [WinError 2] The system cannot find the file specified
ERROR: Failed building wheel for blis

It seems the main reason for such errors is using a 32-bit version of Python, which is not supported.

If that's not the case, try the workarounds from a similar question.

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

79075220

Date: 2024-10-10 15:56:32
Score: 6.5 🚩
Natty: 6
Report link

@jeprubio Thank you very much.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (2):
  • No code block (0.5):
  • User mentioned (1): @jeprubio
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Walderson Shimokawa

79075202

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

I have faced the same issue, after some diggin into the library I found out that this package depends on outdated maven repo:https://mvnrepository.com/artifact/com.pusher/pusher-java-client so if you have intensions to keep your project up to date you should use something else since this repo has not been updated since 2022

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

79075200

Date: 2024-10-10 15:50:30
Score: 1
Natty:
Report link
  1. Open the Django Shell: run the following command in the terminal:
    python manage.py shell
  2. Delete All Queued Tasks: Execute the following commands to delete all queued tasks:

from django_q.models import Task #Delete all queued tasks Task.objects.filter(status='Q').delete()

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

79075195

Date: 2024-10-10 15:48:30
Score: 3
Natty:
Report link

same to me. so sad. i've tried this at typescrypt too. but it seems the complete documentation for react js/ts setup not clear enough.

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

79075194

Date: 2024-10-10 15:48:30
Score: 2
Natty:
Report link

I believe there isn't a native connector to AWS Athena on Looker Studio. Although there is documentation mentioning an Athena-Looker connection, it is for the Google Cloud version of Looker (apparently named simply Looker), not for Looker Studio.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Vinícius Lemos

79075193

Date: 2024-10-10 15:48:30
Score: 1.5
Natty:
Report link

If your sticky position isn't working because of the parent's hidden overflow, but you still want to keep the overflow, you can simply use overflow: clip instead.

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

79075192

Date: 2024-10-10 15:48:30
Score: 3.5
Natty:
Report link

The terminal might be zsh terminal, and changing .bashrc file name to .zshrc does the work. The answer is from: https://stackoverflow.com/a/72019457/27737125

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Chuntian Cao

79075190

Date: 2024-10-10 15:47:29
Score: 2
Natty:
Report link

Indeed, the API page is the correct one and unfortunately with current DataGrid version, it's not possibly to apply sorting to the data tables. Luckily, in early days of upcoming week, the DataGrid v3 should be officialy relased, with column sorting implemented by default.

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

79075183

Date: 2024-10-10 15:45:29
Score: 1.5
Natty:
Report link

I find a simplest way to do that, but not sure whether it works or not.

result = df.orderBy(col("score").desc(), col("id1").asc(), col("id2").asc()).dropDuplicates(["id2", "score"]).drop("score").select('id1', 'id2').dropDuplicates(["id1"]).dropDuplicates(["id2"])
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Zhang Jovy

79075182

Date: 2024-10-10 15:45:28
Score: 6.5 🚩
Natty: 5
Report link

I Actually have a similar question, I have a Sheet where I have a Student Enrollment Form. I'd like to create a button that Allows me to duplicate a template from another Sheet (another document) in a new Spreadsheet and If possible fill out some information from the form. Would this be possible? I know nothing about macros or scripts tho :( Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): :(
  • No code block (0.5):
  • Me too answer (2.5): have a similar question
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bespoke Education

79075178

Date: 2024-10-10 15:43:27
Score: 2.5
Natty:
Report link

You might have ticked "Hang closing brackets" in Settings | Editor | Code Style | Python | Wrapping and Braces tab.

Wrapping and Braces in Settings, note the blue highlight in the example code

Untick it to unindent the closing bracket.

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

79075176

Date: 2024-10-10 15:43:26
Score: 6 🚩
Natty: 4
Report link

Have you figured this out? I'm running into the same issue Error: 400, {"error":{"code":"invalid_params","message":"Search Id 7423941959758255147 is invalid or expired","log_id":"20241010005723A90BB36603F6E31E20B5"}}

Reasons:
  • RegEx Blacklisted phrase (3): Have you figured this out
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ruichen Yao

79075172

Date: 2024-10-10 15:42:26
Score: 2
Natty:
Report link

Looks like a job for a database. If you're looking for compact solution (more compact than actual db, but probably less effective), look into what sqlite has to offer.
For example this answer combined with this sqlite3 lib might solve your problem.

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

79075169

Date: 2024-10-10 15:41:26
Score: 2.5
Natty:
Report link

Make sure that your providers file is 'use client' this happened to me too many times and i keep forget about it

P.s: i think @chakra-ui/next-js isn't needed anymore

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

79075165

Date: 2024-10-10 15:39:25
Score: 1.5
Natty:
Report link

This is caused by the blocked URL redirecting to an insecure URL, then that URL redirecting back to a secure URL. All the redirects use the same URL, just different protocols.

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

79075158

Date: 2024-10-10 15:36:25
Score: 2.5
Natty:
Report link

Heroku stores the replication logs for short period of time after the add-on is deleted. Make sure to escalate to their support right away.

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

79075154

Date: 2024-10-10 15:35:25
Score: 1.5
Natty:
Report link

If you use Windows, you can create a shortcut to the file and change the icon of the shortcut https://learn.microsoft.com/en-us/answers/questions/1344814/how-to-update-the-icon-of-a-shortcut. then if you wish, you can mark original file as hidden.

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

79075145

Date: 2024-10-10 15:33:24
Score: 0.5
Natty:
Report link

A Dictionary is a wonderful container and theoretically it should be faster than a switch when all you're looking at is the look-up time complexity. However, when the we ask "Which is faster?", time complexity doesn't answer that question. Instead, we should look at latency in terms of cache and memory efficiency rather than the number of compares to get a better understanding of how fast the Dictionary is compared to a switch.

A Dictionary is not stored in contiguous memory making it significantly less cache efficient. The hash table calculates different buckets of values and these values are stored in various locations in memory. Significant delay is added when a dictionary look-up misses the cache, which is a significant factor when looking at the delay of a Dictionary retrieval. A cache miss forces the CPU to read system memory (heap). The heap is the slowest memory in the system and there is no mechanism to hide this latency. You just have to wait.

Another problem associated with the memory structure of a Dictionary is that pre-fetch and prediction algorithms make incorrect decisions. You lose the benefit of this acceleration feature in the CPU.

A switch statement is stored in contiguous memory. On top of that, it is a compile-time element and is often optimized into a jump table that has O(1) time complexity. Therefore, a switch in compiler-optimized form has none of the cache and memory issues of a Dictionary and has the same O(1) time complexity. We can conclude that the switch will be faster.

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

79075144

Date: 2024-10-10 15:33:24
Score: 5.5
Natty:
Report link

This doesn't work for me. I'm on a mac, RStudio 2023.06.1 Build 524. Even if I first select some code in which I want to do my replace operation, my script still jumps to instances of the query that are outside of my selected region as I type.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • RegEx Blacklisted phrase (2): doesn't work for me
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: dave shire

79075140

Date: 2024-10-10 15:32:23
Score: 1.5
Natty:
Report link

If you are using Command, CommandGroup UI components for Multi-select Dropdown / combobox

then either 1. downgrade cmdk library or Wrap the CommandItems with a CommandList Check the shadcn-ui components issue here: https://github.com/shadcn-ui/ui/issues/2980#issuecomment-2026578564

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

79075136

Date: 2024-10-10 15:30:23
Score: 1.5
Natty:
Report link

Sender parameter is sent so that in some situations event handler can set value of some properties depending on the logic implemented in the event handler. Secondly, there are third party libraries built on top of C#.NET for those library both sender, args argument are required to write custom code as required. It is possible to create EventArgs class by inheriting from EventArgs. Extending sender for adding custom properties, methods will add overhead for the code. Adding the sender to EventArgs will add overhead. Passing sender helps to pass the object hierarchy to the eventhandler.

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

79075130

Date: 2024-10-10 15:29:22
Score: 2.5
Natty:
Report link

The problem wasn't the permissions.

I already had created a projects map, so Laravel couldn't create on itself. So, if you are linking a storage, do not create a map yourself.

I didn't knew it would be done automatic.

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

79075129

Date: 2024-10-10 15:28:22
Score: 2
Natty:
Report link

You should probably look at suffix trees. These slides explain a how these suffix trees can be formed, and how do they solve your problem. The basic idea is to preprocess each key for faster lookup later on. Preprocessing gives you a suffix tree, which is basically a very efficient data structure to look for substrings.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Fırat Kıyak

79075128

Date: 2024-10-10 15:28:22
Score: 3
Natty:
Report link

use a virtual cable and it will create a virtual device you can find with Python

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

79075118

Date: 2024-10-10 15:24:21
Score: 1
Natty:
Report link

I think the problem is that when you call the addLast function, you pass the current to the newNode.

I believe that when you add it to the end of the list, you should keep the current in the place it was so that the songs continue in the order they were in until you reach the last node and start over.

If you pass the current to the last node when you add it at the end, it looks like you moved to the last song and then go to the first song in the list.

In short: The way you add them to both is correct, but you shouldn't change the current when you add them at the end.

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

79075116

Date: 2024-10-10 15:23:20
Score: 2
Natty:
Report link

For some reason discord rate limits channel updates to 2 every 10 minutes as is pointed out in this queastion. How often can I rename discord channel's name? I even tried using the raw api endpoints and got the same result. So unfortunately there is no way around this problem.

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

79075113

Date: 2024-10-10 15:23:20
Score: 1
Natty:
Report link

It sounds like you're dealing with a frustrating issue where workflows on a specific SharePoint site aren’t functioning, even though other sites with workflows are working fine. This is often caused by a few potential factors.

First, it's good that you checked the storage on your tenant, as that could have been a reason, but since you're only using about 4% of the available space, it’s likely not the issue. Here are a few things you might want to look into:

Workflow Throttling: Sometimes, Office 365 can throttle workflows if too many are running at the same time, causing delays or failures. You might want to check if there is an overload of workflows happening on that site.

Permissions Issue: Ensure that the user account running the workflows has the proper permissions on the site and list. Even if other workflows work on different sites, there could be unique permission settings on this specific one.

Corruption in the Workflow: It’s possible that something got corrupted in the workflow itself. You can try republishing the workflows from SharePoint Designer to see if that resolves the issue.

Workflow Service: Check if the Workflow Manager service is running correctly for that specific site. Sometimes, restarting the workflow service or resetting the site’s connection to it can help.

Timeouts: Since you mentioned long delays in loading the workflow page, there could be a timeout issue. Increasing the timeout values in the settings (if possible) might help or check if the site is experiencing performance issues.

It might be worth trying a new workflow on that site as a test to see if it runs, or migrating one of the broken workflows to another site to check if it’s the site itself that’s causing the issue.

At NGS Solution, we specialize in troubleshooting SharePoint workflows and can help you diagnose and fix issues like these. If you’d like expert assistance, feel free to reach out. Have you tried republishing the workflow yet? Let us know, and we’d be happy to help!

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Contains signature (1):
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: NGS Solution

79075111

Date: 2024-10-10 15:22:20
Score: 1
Natty:
Report link

I think the answers you are looking for have to do with order of operations.

Why is that?

I view it this way

If your constructor (or the variables defined at component level) rely on values from your dependencies, your mocks will need to have those values prepared already for them to get assigned during construction.

For test setup ease, I tend to put all of my dependency assignments in the onInit method of my component. This allows me to grab the mock inside of my it and setup any changed data, then call fixture.detectChanges to have the component use those values.

describe('MyComponent', () => {
  let component: MyComponent;
  let fixture: ComponentFixture<MyComponent>;
  let compiled;
  // I usually declare my mocks here so that I can assign right after the configureTestingModule call

  beforeEach(async () => {
    const spy = jasmine.createSpyObj('SomeService', ['aMethod']);

    await TestBed.configureTestingModule({
      declarations: [ MyComponent ],
      providers: [
        { provide: SomeService, useValue: spy }
      ]
    })
    .compileComponents();
    fixture = TestBed.createComponent(MyComponent);
    component = fixture.componentInstance;
    compiled = fixture.nativeElement;
  });

  it('should show another mock', () => {
    // I do all of these assignments at the end of the beforeEach
    // but I also declare the variables inside of the describe
    const mock: jasmine.SpyObj<SomeService> = TestBed.inject(SomeService) as jasmine.SpyObj<SomeService>;;
    mock.aMethod.and.returnValue('MOCKED VALUE');
   
   // I would either do this here or in the beforeEach, but not both
   // Each time you createComponent it can take a little bit of time
   // IF you decide to do this in each test, suggest creating a function
   // as there can get to be a list of items to assign
   // fixture = TestBed.createComponent(MyComponent);
   // compiled = fixture.nativeElement;

    fixture.detectChanges(); // first detectChanges will call onInit

    expect(compiled.querySelector('p').innerHTML).toContain('MOCKED VALUE');
  });
});

Is there a way to force the change detection, regardless of input change?

Why yes, however I tend to avoid this as I like to control when change detection runs. Plus, having to include a call to await whenStable can wait through your timers/debounce for the actual amount of time instead of moving through fake time.

What if I want to call detectChanges() on beforeEach()? Then I can't setup mocks inside specific tests?

I mean, yes. This would limit what you can change before the constructor and the onInit. There is a place and time for an inner describe with its own beforeEach for when your user is going to take different actions, but the data setup is the same.

Is it a good practice to call createComponent inside each specific test (it) instead?

If a lot of assignments happen at constructor time and you need to control the values, then yes. This has to do with how you write the component. When this is necessary I will create a function that does all of the TestBed.createComponent and dependency assignments for me. I honestly use functions in my test code a lot to help with readability, as they can get very messy and then hard to maintain.

Reasons:
  • Blacklisted phrase (1): Is there a way
  • RegEx Blacklisted phrase (1): I want
  • RegEx Blacklisted phrase (0.5): Why is that
  • Long answer (-1):
  • Has code block (-0.5):
Posted by: Wesley Trantham

79075106

Date: 2024-10-10 15:21:20
Score: 2
Natty:
Report link

There are lots of STR functions in the SQL that I deal with.

To convert nEmpID INT to a string:

SET @value = 'nEmpID: ' + STR(nEmpID);

REF: https://www.w3schools.com/sql/func_sqlserver_str.asp

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

79075100

Date: 2024-10-10 15:19:19
Score: 1.5
Natty:
Report link

Should it not be like this?
At least, that's what I'm using.

<Image Source="ms-appx:///Resources/Steam.png" Width="30"/>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Ismail Hassani

79075094

Date: 2024-10-10 15:17:19
Score: 0.5
Natty:
Report link

I have saw a matching algorithm they based on distance metric. Euklid in n-dimensional room. You are only 2 dimensional, so You can calculate simply vectors enter link description here

the principle behind is to have a pool, calculate every distances and then go thru and remove every find pair from the pool. So in this example you cannot match B1 again, because they is out.

The algorithm calculate a vector from the Pool array I found this, only fragments, I think this is Python :

diffVec[count] = np.power(np.sum(np.power(currentDiff,c)/numBins),1/c)

Module numpy

Reasons:
  • Blacklisted phrase (0.5): enter link description here
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Winfried

79075087

Date: 2024-10-10 15:15:18
Score: 3
Natty:
Report link

This will depend from the NVR model, have you checked if your NVR have any option to automatically upload your videos for some other storage location? This would make things much easier...

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Felipe Calliari Ribas

79075080

Date: 2024-10-10 15:14:17
Score: 10 🚩
Natty: 4.5
Report link

I have the same problem. This is wat i receive in my inbox:

screenshot inbox

And this is my code:

From: <[your-email]>
Subject: [text-207]

Name:
[your-name]


-- 
This e-mail was sent from a contact form on [_site_title] ([_site_url])

And this is the screenshot from my Wordpress back-end page:

Screesnshot wordpress back-end

Can someone please help me ?

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (3): please help me
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same problem
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Remy Mohangoo

79075077

Date: 2024-10-10 15:13:17
Score: 2.5
Natty:
Report link

The dimensions of the output from AveragePooling2D can differ from the dimensions of the input, since default value for padding is 'valid'. Maybe setting padding='same' would fix your issue.

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

79075076

Date: 2024-10-10 15:13:17
Score: 1.5
Natty:
Report link

If you area nn MacOS Apple silicon processors (M1,M2...), you can solve passing the platform parameter in docker run:

docker run --platform linux/arm64/v8 ...

or in your docker-compose file:

services:
  mongodb:
    image: arm64v8/mongo:5.0
    platform: linux/arm64/v8

Regards

Reasons:
  • Blacklisted phrase (1): Regards
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Julian Corrêa

79075071

Date: 2024-10-10 15:12:17
Score: 1
Natty:
Report link

To prevent the Apple ID prompt from appearing, you should integrate Sign in with Apple alongside Google Sign-In. Apple's guidelines require that any app offering third-party login options, like Google, must also include Sign in with Apple. This ensures compliance and avoids triggering the sign-in prompt. Additionally, ensure the "Sign in with Apple" button is visible where you display the Google Sign-In option.

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

79075051

Date: 2024-10-10 15:08:15
Score: 4
Natty:
Report link

It is a bug which will be fixed in version 1.24.

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

79075041

Date: 2024-10-10 15:06:15
Score: 0.5
Natty:
Report link
=LET(a, A1:A2, b, B1:B2, m_a, --RIGHT(a, 2), m_b, --RIGHT(b, 2),
(TRUNC(a) - TRUNC(b) - (m_a < m_b)) & ":" & ((m_a < m_b) * 60 + m_a - m_b))

Result

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

79075038

Date: 2024-10-10 15:04:14
Score: 0.5
Natty:
Report link

If you want to assign a custom shortcut as of Visual Studio 2022, open Tools > Options > Environment > Keyboard.

Click in the "Show commands containing" text box and type Window.CloseDocumentWindow.

Click in the "Press shortcut keys:" text box and perform your shortcut, like ctrl + w.

Click "Assign".

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

79075031

Date: 2024-10-10 15:03:14
Score: 1
Natty:
Report link

https://developers.facebook.com/docs/marketing-api/insights/#levels

I needed to set the level parameter: -d "level=adset" \

Reasons:
  • Blacklisted phrase (0.5): I need
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-2):
Posted by: Chris Stryczynski

79075020

Date: 2024-10-10 15:01:13
Score: 5.5
Natty:
Report link

Parece que te enfrentas a un problema común al trabajar con Laravel y React. Aquí te dejo algunas ideas que podrían ayudarte:

Primero e xclusión de verificación CSRF para las rutas API: Laravel utiliza tokens CSRF para proteger las solicitudes, pero en las APIs, normalmente no es necesario. Asegúrate de que las rutas de tu API estén excluidas de esta verificación, lo puedes hacer en el archivo VerifyCsrfToken.php.

Si usas Laravel Sanctum: A veces, cuando usas Sanctum para manejar la autenticación, es importante asegurarse de que tu configuración esté correcta. Puede que tengas que agregar una ruta para obtener el token CSRF antes de intentar el registro.

Revisar la configuración de CORS: Si tu frontend está en un dominio diferente al backend, revisa que tengas bien configurados los permisos de CORS, especialmente que permitas cookies y la cabecera de autenticación.

Asegúrate de que las cookies se envían: Cuando estás haciendo solicitudes desde React, asegúrate de que se envíen las cookies de sesión, configurando withCredentials en axios.

Prueba con estos ajustes y cuéntame si te funciona. ¡Espero que te ayude!

Reasons:
  • Blacklisted phrase (2): ayuda
  • Blacklisted phrase (2): Espero
  • Blacklisted phrase (1): está
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: 3CHOPRE

79075018

Date: 2024-10-10 15:01:13
Score: 0.5
Natty:
Report link

If you really need to take this approach, there's not even a need to escape anything.

Just use new_s.innerText = '<example>';.

const myText = "<example>";

new_s.innerText = myText;
<div id="new_s"></div>

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

79075016

Date: 2024-10-10 15:01:13
Score: 2.5
Natty:
Report link

Turns out the dependency "com.google.apis:google-api-services-tasks:v1-rev20230911-1.32.1" should be "com.google.apis:google-api-services-tasks:v1-rev71-1.25.0"

Found the relevant documentation and dependencies here: https://mvnrepository.com/artifact/com.google.apis/google-api-services-tasks/v1-rev71-1.25.0

and here: https://developers.google.com/resources/api-libraries/documentation/tasks/v1/java/latest/

Hope this helps anyone with the same problem.

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: AuthorBrotherGames

79075015

Date: 2024-10-10 15:00:13
Score: 1.5
Natty:
Report link

I was also facing the same issue, I found this to solve my issue:

<%= button_to "Destroy this blog", @blog, data: { confirm: "Are you sure?", turbo_confirm: "Are you sure?" }, method: :delete, class: "btn btn-primary my-2 my-sm-0" %>

where this is the main code for the alert

data: { confirm: "Are you sure?", turbo_confirm: "Are you sure?" }

Note: It does not matter what you put in the confirm part of the data, just change the text in turbo_confirm to view the changes made.

Reasons:
  • Blacklisted phrase (1): this blog
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: amaan majeed

79075003

Date: 2024-10-10 14:58:12
Score: 1
Natty:
Report link

Old q but for anyone looking, but I made a script for the exact (well, almost - mine creates one file for a printer that does double sided) use case here.

To the point of your second question, you can modify the margins and positioning using pdf-lib if you use embed and draw instead of add and copy. There is an example in my solution (the measurePage function sets margins) and in the documentation here.

(Also a note - as of answering I have to use a "print to pdf" function on my computer as well or the file doesn't print. Just modify the scaling to 100% to keep the programmatically generated margins.)

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

79074990

Date: 2024-10-10 14:53:11
Score: 3
Natty:
Report link

In my case the problem is that stream has too high resolution. I'm calcuting best resolution using getCapabilities on each camera and the starting the stream.

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

79074989

Date: 2024-10-10 14:53:11
Score: 1.5
Natty:
Report link

The Host Project manages the Shared VPC, enabling the GKE API that allows the project to handle networking resources (ex. Firewall, subnets) while the Service Project uses the Shared network resources for deploying workloads, like your GKE clusters.

See this Shared VPC scenario for additional information.

image

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

79074975

Date: 2024-10-10 14:50:10
Score: 2.5
Natty:
Report link

What does this say in English??? Not sure how to do this code thing?

{"gmailcheck_name":{"message":"Google \u092e\u0947\u0932 \u091c\u093e\u0902\u091a\u0915\u0930\u094d\u0924\u093e"},"gmailcheck_description":{"message":"\u0906\u092a\u0915\u0947 Google \u092e\u0947\u0932 \u0907\u0928\u092c\u0949\u0915\u094d\u0938 \u092e\u0947\u0902 \u0928 \u092a\u095d\u0947 \u0917\u090f \u0938\u0902\u0926\u0947\u0936\u094b\u0902 \u0915\u0940 \u0938\u0902\u0916\u094d\u092f\u093e \u092a\u094d\u0930\u0926\u0930\u094d\u0936\u093f\u0924 \u0915\u0930\u0924\u093e \u0939\u0948. \u0906\u092a \u0905\u092a\u0928\u093e \u0907\u0928\u092c\u0949\u0915\u094d\u0938 \u0916\u094b\u0932\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u092c\u091f\u0928 \u0915\u094d\u0932\u093f\u0915 \u092d\u0940 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902."},"gmailcheck_node_error":{"message":"\u0924\u094d\u0930\u0941\u091f\u093f: \u095e\u0940\u0921 \u092a\u0941\u0928\u0930\u094d\u092a\u094d\u0930\u093e\u092a\u094d\u0924 \u0915\u0940 \u0917\u0908, \u0932\u0947\u0915\u093f\u0928 \u0915\u094b\u0908 <fullcount> \u0928\u094b\u0921 \u0928\u0939\u0940\u0902 \u092e\u093f\u0932\u093e"},"gmailcheck_exception":{"message":"\u0905\u092a\u0935\u093e\u0926: $1","placeholders":{"1":{"content":"$1"}}}}

Reasons:
  • Blacklisted phrase (1): ???
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What do
  • Low reputation (1):
Posted by: Lynsy