79150890

Date: 2024-11-02 14:47:11
Score: 1.5
Natty:
Report link

in the last versions of ChartJS minIndex and maxIndex are not link to de visible points, they are linked to X axis position visible, I found the same problem. But I found 2 properties that I used to solve it: chart._metasets[0].controller._drawStart ; chart._metasets[0].controller._drawCount ; thats shows the first point visible Index and the number of visible points, both needs some corrections, but , if you are here, You will fix it.

PD. I use Zoom in my code and still work

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Alfredo M F

79150884

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

The Blocbuilder is called with the current state on every render, the Bloclistener is only called when the state changes

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

79150879

Date: 2024-11-02 14:43:10
Score: 2
Natty:
Report link

Update: It seems like it has nothing to do with the analog pins. I found out that the touch Display is constantly triggering the pumps. However it seems strange to me because it worked just fine with the digital pin.

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

79150870

Date: 2024-11-02 14:38:09
Score: 3
Natty:
Report link

may I asked what would have been the solution if labelBy was a numeric using numericInput ? The default value cannot be a number to avoid any confusion to the user.

Thank you

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): may I ask
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: John E.

79150865

Date: 2024-11-02 14:35:08
Score: 3
Natty:
Report link

For more solutions you can visit this link and hope you get your desired solution.

Click solution

I know why you came here. You all need a solution. If you want to get solution of all school database problems. You can follow the guidelines given by me. I am a YouTube video playlist

Reasons:
  • Blacklisted phrase (1): this link
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Maminul Haque

79150864

Date: 2024-11-02 14:34:08
Score: 0.5
Natty:
Report link

When you know the TransactionId but need Order details, you can obtain it in 2 steps:

  1. First, GET the payment CAPTURE info from /v2/payments/captures/{capture_id}.
    Although it's not shown in PayPal's example, the response body should contain the order_id within the JSON structure like
    "supplementary_data": {"related_ids": {"order_id": "0WV12345XF123456D"}}).
  2. Now you can GET the ORDER info from /v2/checkout/orders/{order_id} using the order_id you obtained from step-1.
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When you
  • Low reputation (0.5):
Posted by: Whitzz

79150853

Date: 2024-11-02 14:24:06
Score: 0.5
Natty:
Report link

Update: I finally got what I wanted the way I wanted it. Thanks to the previous and the only answer and some enlightenment, I was able to improve upon the earlier code (shown on the question.) Anyways here's how I did it, hopefully this helps someone else in the future :D

@echo off
color 02
SETLOCAL EnableDelayedExpansion
for /F %%a in ('echo prompt $E ^| cmd') do set "ESC=%%a"
set "yellow=%ESC%[33m"
set "green=%ESC%[32m"
cls

:start
set det1=%random:~-1%
set det2=%random:~-1%
set dn=%random:~-1%
set randdet=0
if %det1% EQU %det2% SET /A randdet=%RANDOM% * (16 - 1 + 1) / 32768 + 1
set "cdn=%yellow%!random:~-1!%green%"

set rand11=%random:~-1%
set rand12=%random:~-1%
set rand13=%random:~-1%
set rand14=%random:~-1%
set rand21=%random:~-1%
set rand22=%random:~-1%
set rand23=%random:~-1%
set rand24=%random:~-1%
set rand31=%random:~-1%
set rand32=%random:~-1%
set rand33=%random:~-1%
set rand34=%random:~-1%
set rand41=%random:~-1%
set rand42=%random:~-1%
set rand43=%random:~-1%
set rand44=%random:~-1%

if %randdet% EQU 1 set rand11=%cdn%
if %randdet% EQU 2 set rand12=%cdn%
if %randdet% EQU 3 set rand13=%cdn%
if %randdet% EQU 4 set rand14=%cdn%
if %randdet% EQU 5 set rand21=%cdn%
if %randdet% EQU 6 set rand22=%cdn%
if %randdet% EQU 7 set rand23=%cdn%
if %randdet% EQU 8 set rand24=%cdn%
if %randdet% EQU 9 set rand31=%cdn%
if %randdet% EQU 10 set rand32=%cdn%
if %randdet% EQU 11 set rand33=%cdn%
if %randdet% EQU 12 set rand34=%cdn%
if %randdet% EQU 13 set rand41=%cdn%
if %randdet% EQU 14 set rand42=%cdn%
if %randdet% EQU 15 set rand43=%cdn%
if %randdet% EQU 16 set rand44=%cdn%

set set1=%rand11% %rand12% %rand13% %rand14%
set set2=%rand21% %rand22% %rand23% %rand24%
set set3=%rand31% %rand32% %rand33% %rand34%
set set4=%rand41% %rand42% %rand43% %rand44%

set randline=%set1%  %set2%  %set3%  %set4%
echo %randline%

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

79150843

Date: 2024-11-02 14:19:05
Score: 1.5
Natty:
Report link

Add suppressHydrationWarning this is what the official documentation says;

Note! If you do not add suppressHydrationWarning to your <html> you will get warnings because next-themes updates that element. This property only applies one level deep, so it won't block hydration warnings on other elements.

https://github.com/pacocoursey/next-themes#:~:text=Note!%20If%20you%20do%20not%20add%20suppressHydrationWarning%20to%20your%20%3Chtml%3E%20you%20will%20get%20warnings%20because%20next%2Dthemes%20updates%20that%20element.%20This%20property%20only%20applies%20one%20level%20deep%2C%20so%20it%20won%27t%20block%20hydration%20warnings%20on%20other%20elements.

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

79150839

Date: 2024-11-02 14:16:05
Score: 0.5
Natty:
Report link

First of all, in turn.h you should declare the enum using a typedef like this:

#ifndef TURN_H
#define TURN_H

typedef enum {
    WHITE, 
    BLACK
} Turns;

typedef struct {
    Turns turn;
} Turn;

void setTurn(Turn *t, Turns newTurn);
Turns getTurn(Turn *t);
void changeTurn(Turn *t);
Turn turn;       // This allows main to see the struct declared in turn.cpp

#endif

As you can see in code above, to solve your problem, I also added Turn turn; to turn.h. This allows main.cpp to see the struct you want to declare in turn.cpp. Then, remove extern Turn turn; from turn.cpp because it has no effect.

Then, modify turn.cpp like this:

#include "turn.h"

Turn turn;

void setTurn(Turn *t, enum Turns newTurn) {
    t->turn = newTurn;
}

enum Turns getTurn(Turn *t) {
    return t->turn;
}

void changeTurn(Turn *t) {
    if (t->turn == WHITE) {
        t->turn = BLACK;
    } else {
        t->turn = WHITE;
    }
}

Note:
The keyword extern looks for declarations of the variable or function passed as its argument outside the file in which the extern is. Putting it inside turn.cpp isn't useful because Turn turn; is declared in itself. You should put the extern if the file which doesn't have the declaration inside,

I want to specify that typedef is not mandatory for the enum:

#ifndef TURN_H
#define TURN_H

enum Turns {
    WHITE, 
    BLACK
};

typedef struct {
    enum Turns turn;
} Turn;

void setTurn(Turn *t, enum Turns newTurn);
enum Turns getTurn(Turn *t);
void changeTurn(Turn *t);
Turn turn;

#endif

As you can see, it works also without typedef.
However, everytime you declare a Turns you have to use the syntax enum Turns, which is verbose and less readable. If you want to modify all declarations of the enum across all your files.

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

79150838

Date: 2024-11-02 14:15:04
Score: 13
Natty: 7.5
Report link

I know it's been a few years since you posted this. But I'm having the same problem. Did you manage to solve it in any way?

Reasons:
  • Blacklisted phrase (1): I'm having the same problem
  • Blacklisted phrase (1): I know it's been
  • RegEx Blacklisted phrase (3): Did you manage to solve it
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same problem
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Daniel

79150828

Date: 2024-11-02 14:09:03
Score: 1
Natty:
Report link

This is important if you want to look at huge JSON files, like the mypy cache file of QtCore.pyi: Using the pretty_json installable command works fine, but looking at mentioned cache files took minutes with spinning wheel. The builtin

Selection / Format / Indent JSON

in Sublime Text 4 took 3 seconds only.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
Posted by: Christian Tismer

79150823

Date: 2024-11-02 14:06:01
Score: 1
Natty:
Report link

It seems that default number of threads for parallel execution wasn't enough for this project.

I set org.gradle.parallel.threads=16 and problem was solved. It works for Gradle version 8.5.

For newer version use org.gradle.workers.max. But they say that default value for this parameter is the amount of cores, so you don't need to set it explicitly.

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

79150822

Date: 2024-11-02 14:04:01
Score: 2
Natty:
Report link

Special thanks to @hoangdv's. Thanks to him, I realized that I was using bcrypt.compareSync() wrongly: because the first two parameters of the method are the non-encrypted password and the encrypted password. Instead, I was inserting as parameters the password I was encrypting in the client side and then the DB password.

So, as @hoangdv said, I should delete formData.userPwd = this.encryptPassword(formData.userPwd); in the client side. And it worked!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): it worked
  • Has code block (-0.5):
  • User mentioned (1): @hoangdv's
  • User mentioned (0): @hoangdv
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sithila Somaratne

79150809

Date: 2024-11-02 13:53:59
Score: 4
Natty:
Report link

Because sum should be equal zero

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

79150806

Date: 2024-11-02 13:53:59
Score: 3
Natty:
Report link

This is meant as a comment to Sven Marnach but the system won't let me comment.

Why would you use pop when if is faster in both cases, key present or not? Please change your answer to use if instead of pop. And you could also improve your answer by mentioning that if you look at the error bars on real world tests in Python 3, the try method isn't faster than the if method even if the key exists. My hypothesis is that that setting up the exception handler soaks up the time gained by simply using del. I haven't tested this hypothesis, but if true, the del method should be expected to be slightly faster if you can be absolutely sure that the key exists or if you already have a try frame set up for other purposes that can adequately deal with with a missing key problem as well and missing keys are rare enough.

Reasons:
  • RegEx Blacklisted phrase (1): won't let me comment
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Anonymous Coward

79150805

Date: 2024-11-02 13:52:59
Score: 1.5
Natty:
Report link

I had a similar issue with Google using Swift. Using Google's TextSearch API, I was unable to find specific shops. However, searching for generic places like "pizza in new york", I got an answer. My solution was to use Google's Autocomplete API instead, which can return a specific PlaceID!

My solution was in Swift, but feel free to check it out: Swift Autocomplete instead of TextSearch

Reasons:
  • Blacklisted phrase (0.5): check it out
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: jonathan112358

79150801

Date: 2024-11-02 13:50:58
Score: 1.5
Natty:
Report link

I thank you for the suggestions. Thanks to them I found a solution that solves the problem, even if the user types very fast.

private void ReadManageAndWriteLine()
{
    // open file with StreamReader
    // for every line in the file, read it and do what you need to do
    // then save the result in String outpuLine
    int cp = GetCaretPosition();
    txtBox.AppendText(outputLine + new string[] { Environment.NewLine });
    SetCaretPosition(cp);
    // go to the next line
}

private int GetCaretPosition()
{
    int s = txtBox.SelectionStart;
    return s;
}

private void SetCaretPosition(int cp)
{
    txtBox.Select(cp, 0);
    txtBox.Focus();
    txtBox.ScrollToCaret();
}

Again, thank you so much, problem solved.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Stefano A.

79150796

Date: 2024-11-02 13:48:57
Score: 1.5
Natty:
Report link

In 2013 someone did a clean example and published it: Django class-based views with multiple inline formsets by Kevin Dias.

It does not make sense to copy everything into here, but the example is with explanation and full model, view and template source code.

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

79150793

Date: 2024-11-02 13:46:57
Score: 5
Natty: 5.5
Report link

so....did it work?

Would be good to know...thanks.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Josh

79150787

Date: 2024-11-02 13:44:56
Score: 2.5
Natty:
Report link

Add driver jar to bundle, where connection created, and in this bundle add values to "Import-Package" : javax.net and javax.sql

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

79150782

Date: 2024-11-02 13:43:56
Score: 0.5
Natty:
Report link

ive just beautified the code of korakot, this version updates the working directory too, when you navigate

from IPython.display import JSON
from google.colab import output
from subprocess import getoutput
import os

def shell(command):
  if command.startswith('cd'):
    path = command.strip().split(maxsplit=1)[1]
    os.chdir(path)
    return JSON([''])
  return JSON([getoutput(command)])
output.register_callback('shell', shell)

next cell

#@title Colab Shell
%%html
<div id="term_demo"></div>
<script src="https://code.jquery.com/jquery-latest.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery.terminal/js/jquery.terminal.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/jquery.terminal/css/jquery.terminal.min.css" rel="stylesheet"/>
<style>
  #term_demo {
      font-size: 20px;  /* Adjust the font size here */
  }
</style>
<script>
  let currentPath = '{current_path}';

  $('#term_demo').terminal(async function(command) {
      if (command !== '') {
          try {
              let res = await google.colab.kernel.invokeFunction('shell', [command]);
              let out = res.data['application/json'][0];
              
              if (command.startsWith('cd ')) {
                  // Update the current path on 'cd' commands
                  currentPath = await google.colab.kernel.invokeFunction('shell', ['pwd']);
                  currentPath = currentPath.data['application/json'][0].trim();
              }

              this.set_prompt(currentPath + '> ');
              this.echo(new String(out));
          } catch(e) {
              this.error(new String(e));
          }
      } else {
          this.echo('');
      }
  }, {
      greetings: 'Welcome to Colab Shell',
      name: 'colab_demo',
      height: 300,
      prompt: currentPath + '> ',
      onClear: function() {
          this.set_prompt(currentPath + '> ');
      }
  }).css("font-size", "20px"); // Set font size here;
</script>

ss: enter image description here

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

79150773

Date: 2024-11-02 13:37:54
Score: 1.5
Natty:
Report link

So I actually got this to work immediately after writing this out, but I'll put this here just in case it helps someone. The code was executing too quickly and the port-forward wasn't ready, so just adding Thread.sleep(2000) was enough to fix it.

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

79150770

Date: 2024-11-02 13:36:54
Score: 0.5
Natty:
Report link

You need to import an implementation inside the build.gradle.kts

implementation("androidx.hilt:hilt-navigation-compose:1.2.0")

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

79150763

Date: 2024-11-02 13:32:53
Score: 4
Natty:
Report link

the output of the program is 20

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

79150752

Date: 2024-11-02 13:26:52
Score: 0.5
Natty:
Report link

Thanks to Jonny Lin for the “OnStop” method. Here is an example with it:

stages:
  - job_before_merged
  - job_merged

job_before_merged:
  stage: job_before_merged
  script:
    - echo "Before merged."
  environment:
    name: ${CI_PROJECT_NAME}/$CI_COMMIT_REF_NAME
    on_stop: job_merged
  only:
    - merge_requests
job_merged:
  stage: job_merged
  script:
    - echo "Run a job after a merge request is merged."
  environment:
    name: ${CI_PROJECT_NAME}/$CI_COMMIT_REF_NAME
    action: stop
  when: manual
  only:
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ilya Evstifeev

79150743

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

On a second look, I managed to reproduce the problem. I was tweaking some options on DevTools then found out...

It looks like when DevTools is registering network data (you can stop that), when you click the checkbox it freezes the DevTools for a while. Mine took about 10s to 30s to unfreeze the DevTools that was stopping the page scripts...

But if you stop the DevTools from registering network data then it return to work like normal.

So, I think it's related to the DevTools frameworks shared between some browsers... Maybe Chromium...

The only solution I see through here is turning that feature off then.

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

79150738

Date: 2024-11-02 13:18:49
Score: 0.5
Natty:
Report link
#image {
  line-height: 1.5em;
  list-style-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/4621/treehouse-marker.png);
}

<h3><code>list-style-image</code></h3>
  <ul id="image">
    <li>Item One</li>
    <li>Item Two</li>
    <li>Item Three</li>
  </ul>
  
</div>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Naeem Akhtar

79150735

Date: 2024-11-02 13:17:49
Score: 2
Natty:
Report link

There is the PathIsUNCEx() API for which we can pass a pointer to a string. When this function returns TRUE, the pointed string receives the server part of the given UNC path.

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

79150732

Date: 2024-11-02 13:16:48
Score: 4
Natty:
Report link

Move to latest version of NextJS and use the Github templates for deployment

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

79150724

Date: 2024-11-02 13:13:47
Score: 0.5
Natty:
Report link
#image {
  line-height: 1.5em;
  list-style-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/4621/treehouse-marker.png);
}

<h3><code>list-style-image</code></h3>
  <ul id="image">
    <li>Item One</li>
    <li>Item Two</li>
    <li>Item Three</li>
  </ul>
  
</div>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Naeem Akhtar

79150715

Date: 2024-11-02 13:09:46
Score: 3
Natty:
Report link

You guys this stuff is very simple simply give the first div a min width of 50% and the second 100%

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

79150712

Date: 2024-11-02 13:05:44
Score: 2.5
Natty:
Report link

osascript -e 'tell application "iOS Simulator" to quit' osascript -e 'tell application "Simulator" to quit' xcrun simctl erase all

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

79150705

Date: 2024-11-02 12:57:43
Score: 1.5
Natty:
Report link

You can find all these settings in file .gitconfig in your user home directory. Delete wrong line.

[http]
    sslbackend = schannel
    sslVerify = true
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sergey Mokhov

79150700

Date: 2024-11-02 12:55:42
Score: 0.5
Natty:
Report link

It seems my gresource.xml was wrong

Wrong

<?xml version="1.0" encoding="UTF-8"?>
<gresources>
  <gresource prefix="/com/example/app/css">
    <file>css/style.css</file>
  </gresource>
</gresources>

Correct

<?xml version="1.0" encoding="UTF-8"?>
<gresources>
  <gresource prefix="/com/example/app">
    <file>css/style.css</file>
  </gresource>
</gresources>

According to the documentation I shouldn't subpaths are to be put in th <file>subpath/file.ext</file> tag not <resource prefix="../subpath"></gresource>

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

79150699

Date: 2024-11-02 12:54:42
Score: 1.5
Natty:
Report link

I have worked it out. The lookup must be before the render, unlike components which can be done on the blade file, so on the FrontPanel.php page I added in the render:

$frontPanel = FrontPanel::find($id);
return view('livewire.show-data', ['frontPanel' => $frontPanel]);

It works OK now.

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

79150697

Date: 2024-11-02 12:52:41
Score: 0.5
Natty:
Report link

Managed to solve this with a raw query, thanks Microsoft copilot...

IQueryable<Attempt> GetBestAttempts() =>
   Microsoft.EntityFrameworkCore.RelationalQueryableExtensions.FromSqlRaw(db.Attempt, @"
SELECT a.*
FROM ""Attempt"" a
INNER JOIN (
    SELECT ""UserId"", MAX(""score"") AS ""MaxScore""
    FROM ""Attempt""
    GROUP BY ""UserId""
) maxAttempts ON a.""UserId"" = maxAttempts.""UserId"" AND a.""score"" = maxAttempts.""MaxScore""
WHERE a.""Id"" = (
    SELECT MIN(innerA.""Id"")
    FROM ""Attempt"" innerA
    WHERE innerA.""UserId"" = a.""UserId"" AND innerA.""score"" = a.""score""
)
ORDER BY a.""score"" DESC, a.""UserId"";
");

As much as I hate raw SQL queries, this will do for now.

(I called the extension method directly because I also use Linq2Db in my project and want to avoid name conflicts)

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

79150680

Date: 2024-11-02 12:44:37
Score: 10 🚩
Natty:
Report link

i have the same problem with my code, you have another solution that can solve this error?

Reasons:
  • Blacklisted phrase (1): i have the same problem
  • RegEx Blacklisted phrase (1.5): solve this error?
  • Low length (1):
  • 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: גל פירסט

79150679

Date: 2024-11-02 12:44:37
Score: 1
Natty:
Report link

links may appear as plain text even if HTML format is specified - I suspect that email services like GMAIL.COM may misinterpret HTML if they do not find hypertext address start marks such as http:// or / in the link

in my case this happens and in order to notice it I had to look at the code of the page that the mailbox service generates

helper.setText(' a href='http://localhost:8086/'+appUser.getEmail()+'/' God /a ', true);

so I have to prove to Google that localhost:8086 is a link because it doesn’t believe the tag a href=localhost:8086/

I would be interested to hear professionals explain my discovery

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

79150676

Date: 2024-11-02 12:40:36
Score: 2.5
Natty:
Report link

How to specify dpi of output jpg with pdf2image?

You can specify the dpi of output jpg convert_from_path method by passing a second argument of DPI like this

from pdf2image import convert_from_path

pages = convert_from_path('sample.pdf', 400) #400 is the Image quality in DPI (default 200)

pages[0].save("sample.png")

Source: stackoverflow: converting pdf to image but after zooming in

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: Anurag Verma

79150673

Date: 2024-11-02 12:39:36
Score: 1.5
Natty:
Report link

I mistakenly ended up downloading the aarch64 binaries. Github releases didn't show them all and I had to click the "show more button" below the releases.

After redownloading the correct binaries everything started working as expected.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: t-my

79150660

Date: 2024-11-02 12:29:33
Score: 2.5
Natty:
Report link

Using MAUI Blazor Hybrid The answer is essential the same, but the path is slightly different.

Open project/Properties -> iOS -> Debug

The for Debugging change "Default" to "True".

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: René AD

79150648

Date: 2024-11-02 12:24:31
Score: 1.5
Natty:
Report link

For me just commenting out line "try_files $uri $uri/ =404;" inside location / { } because as Dexter mentioned

"we need to remove this 404 handling because next's _next folder and nextjs own handling of 404"

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

79150647

Date: 2024-11-02 12:23:31
Score: 1
Natty:
Report link

The concept of a "Business Layer" is rather illusory. It is predominantly reliant on the technological capabilities available at the time of its birth. Contemporary database engines offer significantly more advanced tools than those available in the past. Contemporary game development has demonstrated that object-driven models are inferior, while data-driven techniques are more beneficial. You require data that is easily accessible and modifiable, free from the constraints imposed by business layers. It is merely a question of time before these business layers become significant obstacles in your system, complicating scalability considerably. It is evident that data structuring is necessary; nevertheless, the business layers are no longer required.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: D.A.H

79150634

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

If you're looking for reliable tools to convert URLs to PDFs without worrying about scams, here are a few safe, well-known options:

  1. URLgle: Urlgle's online tool is widely trusted, and it lets you convert web pages to PDFs securely. Just paste the URL and follow the steps—no shady ads or pop-ups to worry about.

  2. Microsoft Edge’s "Save as PDF": If you’re using Edge, you can right-click any webpage, select "Print," and choose the “Save as PDF” option. This is a simple, safe method that doesn’t require extra software.

  3. Print Friendly & PDF: Another safe tool, Print Friendly lets you paste a URL and customize what you want in the PDF. You can remove images or resize text to make it look clean, and it’s a trusted site with good reviews.

  4. PDFCrowd: PDFCrowd is a straightforward converter—enter the URL, and it generates a PDF for you. It’s been around for a while, so you can trust it won’t load your screen with ads or suspicious pop-ups.

When using these, check for the padlock (HTTPS) in the URL bar to make sure your connection is secure.

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

79150627

Date: 2024-11-02 12:15:29
Score: 2
Natty:
Report link

Searching CBAUD provided the answer. Rather interesting.

Seems CBAUD is but one of the many possibilities to use when setting the c_cflag member

Never initialize the c_cflag (or any other flag) member directly; you should always use the bitwise AND, OR, and NOT operators to set or clear bits in the members. Different operating system versions (and even patches) can and do use the bits differently...

The full text and table of constants for the c_cflag member is here https://wiki.control.fel.cvut.cz/pos/cv5/doc/serial.html

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

79150606

Date: 2024-11-02 12:03:27
Score: 3.5
Natty:
Report link

Ok mais ça me spam le message je voudrais que ça s'arrête.

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

79150597

Date: 2024-11-02 11:57:25
Score: 2.5
Natty:
Report link

Thinking about the negative margin suggestion by @G-Cyrillus made me come up with a possible solution using a wrapper. I wouldn't call it perfect but maybe it's as good as it gets?

.box {
  top: 10px;
  left: 10px;
  position: absolute;
  border: 5px solid red;
  width: 50px;
  height: 50px;
}

.outer {
  top: 10px;
  left: 10px;
  position: absolute;
  width: 100px;
  height: 100px;
  overflow: hidden;
  border: 1px solid;
}

.blur {
  top: -10px;
  left: -10px;
  position: absolute;
  backdrop-filter: blur(10px);
  width: 110px;
  height: 110px;
}
<div class="box">
</div>

<div class="outer">
  <div class="blur">
  </div>
</div>

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @G-Cyrillus
  • Self-answer (0.5):
  • Looks like a comment (1):
  • High reputation (-1):
Posted by: Daniel

79150577

Date: 2024-11-02 11:48:22
Score: 1.5
Natty:
Report link

the fix was to declare data thus

data = <T>{};

no need for activator function or injection tokens.

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

79150568

Date: 2024-11-02 11:44:22
Score: 2.5
Natty:
Report link

Mutators only work with eloquent model,when you work with DB::table,You are not using model layer to communicate with database,you are connecting to database directly,so all mutators,accessors,cast properties and ... you have defined in model layer doesnt participate in your request lifecycle.

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

79150562

Date: 2024-11-02 11:41:21
Score: 1
Natty:
Report link

Had the same issue in a macbook with M1 chip, tried a few suggestions from the community but what solved my issue was install from brew:

brew install --cask pgadmin4 --verbose

Hope that works for you!

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

79150554

Date: 2024-11-02 11:38:20
Score: 1.5
Natty:
Report link

You seem to be using commonjs syntax in your server code provided. But import {evaluate} from './node_modules/mathjs'; is es6 syntax, you should rather be using var evaluate = require('./node_modules/mathjs').evaluate;

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

79150552

Date: 2024-11-02 11:37:20
Score: 1
Natty:
Report link

const Clock = ()=>{

var [time, setTime] = useState("00:00:00"); useMemo(() => {

    var x = setInterval(() => { setHora(new Date().toLocaleTimeString()) }, 500)
    setTime(x);
}, [setHora]);

}

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

79150548

Date: 2024-11-02 11:34:20
Score: 1.5
Natty:
Report link

You can try this solution https://inertiajs.com/error-handling, create vue component and handle exception to Inertia response in backend.

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

79150536

Date: 2024-11-02 11:29:19
Score: 1
Natty:
Report link

I also had the same issue and I solved the above issue by using mongoose version 5.13.22 instead of the new version

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

79150534

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

You have to clarify few things here first , is the new website on different domain or same domain ? , If the domain is same and has been pointed to new server please check if A records are transferred and name servers .

Check if there is cloudflare involved and nameservers or A address is pointing to that for caching purposes

I hope this will help

Reasons:
  • Whitelisted phrase (-1): hope this will help
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Muhammad Wasem

79150525

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

just like this,Is it ok?? wrap your for loop with {}

{
    int i=0;
    char *str="abc";
    for(;i<9&&*str=='a';i++,str++)
    {
        //do something
    }
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: littleyzp

79150521

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

See this question and answer about this issue (page shows for one second, and then goes to "not found"

Page NOT in the shared project does not show correctly in browser

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

79150517

Date: 2024-11-02 11:15:16
Score: 3.5
Natty:
Report link

You created CardSwiperController instance inside the CardSwiper. It should be the controller used in FloatingActionButton.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: علي المرتضى الشامي

79150510

Date: 2024-11-02 11:11:15
Score: 1
Natty:
Report link
.table-view {
-fx-border-width: 1;
-fx-border-color: grey;
-fx-border-radius: 5pt;
-fx-background-radius: 5pt;}


.table-view .column-header-background {
-fx-background-radius: 5pt 5pt 0 0;
-fx-border-color: -grey;
-fx-border-width: 0 0 1 0;
-fx-padding: 5px 0;}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dev Looper

79150508

Date: 2024-11-02 11:10:14
Score: 9.5
Natty: 7.5
Report link

Same Error for me. please suggest what to do?

Reasons:
  • RegEx Blacklisted phrase (2.5): please suggest what
  • RegEx Blacklisted phrase (1): Same Error
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: SSS

79150505

Date: 2024-11-02 11:06:13
Score: 1.5
Natty:
Report link

Yes, in "online" case please downgrade, but there is one more trick, just remove unwanted version file while offline to bind "head" to "base" back. For example, occasionally I've created revision, and then remove it before alembic upgrade
version

poc-2

poc-1

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: storenth

79150504

Date: 2024-11-02 11:06:13
Score: 2
Natty:
Report link

I ended up storing the time each host was last contacted. I am storing in a global variable. If the time passed since the last contact, is less than the required crawl-delay, the thread is sent to sleep until crawl-delay requirement is met.

To be thread-safe, this logic is happening in a locked space in each thread, as described here: https://superfastpython.com/threadpoolexecutor-thread-safe/#How_to_Make_Critical_Sections_Thread-Safe

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

79150500

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

Here is what I've observed so far: the jumping occurs when there was an incremental search previously activated by Ctrl+E:

Workaround: Press Ctrl+F to enter regular, non-incremental search. (No need to actually search for anything) That's it. Jumping majically disappears (until you use Ctrl+E again, which, for me, is the major way of navigating my code).

And yes, this is the most annoying thing I have ever seen in my entire life.

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

79150490

Date: 2024-11-02 10:59:11
Score: 2
Natty:
Report link

Did you try running Hadoop in administrator mode? as the message says, it's not accessible, probably due to mismatch permission.

Reasons:
  • Whitelisted phrase (-2): Did you try
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Kafeel S

79150487

Date: 2024-11-02 10:58:11
Score: 4.5
Natty:
Report link

I disagree with the answer from @Rose. Getting the Messages[] it's ok.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @Rose
  • Single line (0.5):
  • Low reputation (1):
Posted by: Pergentino Araújo

79150479

Date: 2024-11-02 10:50:09
Score: 2.5
Natty:
Report link

I see ssh2-sftp likes to test on specific node versions, try again with the following config:

ssh2 version 9.0.4 node version 16.17.2

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

79150473

Date: 2024-11-02 10:47:08
Score: 2
Natty:
Report link

just check in your project does it had android folder, if not then do some research and create one, or create this project again to get the android folder - by again creating expo init project

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

79150472

Date: 2024-11-02 10:46:07
Score: 1.5
Natty:
Report link

Worst Case: O(n^2), when the condition if (woo == 10000) is never satisfied, and the inner loop runs fully for every i.

Best Case: O(n^2), when the condition is met on the first iteration of the inner loop, causing an early exit from the if condition but the for inner for loop will execute for the complete iteration(all values of i).

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

79150462

Date: 2024-11-02 10:41:06
Score: 1
Natty:
Report link

Well, it's progressing a little, with this code, I get a return, but I don't know how to interpret it?

from machine import UART, Pin
from time import *

uart1 = UART(1, baudrate=9600, tx=Pin(4), rx=Pin(5))
uart1.init(bits=8, parity=None, stop=1)
# Play
uart1.write(b'\xaa\x02\x00\xac')
# query play status
uart1.write(b'\xAA\x01\x00\xAB')
# query current song
uart1.write(b'\xAA\x0D\x00\xB7')
print(uart1.read())
sleep_ms(10000)
# query current song
uart1.write(b'\xAA\x0D\x00\xB7')
#uart1.write(b'\xAA\x01\x00\xAB')
print(uart1.read())
# Stop
uart1.write(b'\xAA\x04\x00\xAE')
# query play status
uart1.write(b'\xAA\x01\x00\xAB')
print(uart1.read())

And I have this as an answer:

None
b'\xaa\x01\x01\x01\xad\xaa\r\x02\x00\x01\xba'
None
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: joMonk

79150449

Date: 2024-11-02 10:32:04
Score: 2.5
Natty:
Report link

The default application closure code (Environment.Exit(), Application.Shutdown) will execute your finally blocks. The only one that explicitly won’t is Environment.FailFast(). Which isn’t called by .net unless something cataclysmic happened (usually in native code).

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jean-Baptiste Zeller

79150445

Date: 2024-11-02 10:31:04
Score: 5.5
Natty: 5.5
Report link

multi-step deliveries Override _prepare_stock_move_vals not working. How to do that?

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

79150439

Date: 2024-11-02 10:25:02
Score: 0.5
Natty:
Report link

Finally I managed to play the player with this code (the problem actually came from a false contact of a Dupont wire of the GND):

from machine import UART, Pin
from time import *

uart1 = UART(1, baudrate=9600, tx=Pin(4), rx=Pin(5))
uart1.init(bits=8, parity=None, stop=1)
# Play
uart1.write(b'\xaa\x02\x00\xac')
# query play status
uart1.write(b'\xAA\x01\x00\xAB')
# query current song
uart1.write(b'\xAA\x0D\x00\xB7')
uart1.readline()
sleep_ms(10000)
# Stop
uart1.write(b'\xAA\x04\x00\xAE')
# query play status
uart1.write(b'\xAA\x01\x00\xAB')
uart1.readline()

I have the 1st song that starts for 10 seconds, then stops, but I have no answer from the code Query play status, and query current song...

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

79150436

Date: 2024-11-02 10:22:02
Score: 2
Natty:
Report link

If your issue persists, you can try triggering with the sparkConf object as shown below, this will help in your scenario.

val sparkConf = new SparkConf().setAppName("MyApp").setMaster("local[*]")

val spark = SparkSession.builder.config(sparkConf).getOrCreate()

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

79150434

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

If you have the gitlens extension, you can use the command pallette (Ctrl/Cmd + Shift + p) and search for 'Search commits'. This should show an input for you to search for commits by message, hash, etc.

Open command palette

Search by commit(gitlens)

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

79150424

Date: 2024-11-02 10:15:00
Score: 3.5
Natty:
Report link

Figured out a little bit. Geonode uses geonode_mapstore_client, which has a bunch of harcoded urls:

  1. https://github.com/GeoNode/geonode-mapstore-client/blob/master/geonode_mapstore_client/templatetags/get_menu_json.py
  2. https://github.com/GeoNode/geonode-mapstore-client/blob/master/geonode_mapstore_client/templates/geonode-mapstore-client/snippets/footer.html

Also, you can set MAPSTORE_TRANSLATIONS_PATH and MAPSTORE_EXTENSIONS_FOLDER_PATH in settings.py (https://github.com/GeoNode/geonode-mapstore-client/blob/master/geonode_mapstore_client/context_processors.py)

These can be also changed here, or overriden

And finally, there's one more config (json) here

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

79150421

Date: 2024-11-02 10:11:59
Score: 1
Natty:
Report link

this solution works fine else you can use extension manager (from ubuntu sore) to install it manually

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

79150419

Date: 2024-11-02 10:11:59
Score: 3
Natty:
Report link

After removing <ViewTransitions /> from the affected page it works. I think it is related to https://github.com/withastro/astro/issues/11301.

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

79150405

Date: 2024-11-02 10:06:57
Score: 0.5
Natty:
Report link

You can find answer here: https://github.com/facebook/react/issues/20817 or here: https://legacy.reactjs.org/docs/hooks-reference.html#bailing-out-of-a-state-update

If you update a State Hook to the same value as the current state, React will bail out without rendering the children or firing effects. (React uses the Object.is comparison algorithm.)

Note that React may still need to render that specific component again before bailing out. That shouldn’t be a concern because React won’t unnecessarily go “deeper” into the tree. If you’re doing expensive calculations while rendering, you can optimize them with useMemo.

That's why your component will render 1 more time with the same result

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

79150398

Date: 2024-11-02 10:02:57
Score: 1
Natty:
Report link
String value = String.format("%,d",number);
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Masoud Siahkali

79150395

Date: 2024-11-02 10:00:56
Score: 3.5
Natty:
Report link

I was looking for an answer to the same question, this looks like a solution, I haven't had time to check it yet https://forums.unrealengine.com/t/commonui-switch-commoninputbasecontrollerdata-at-runtime/1933305/4

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

79150387

Date: 2024-11-02 09:54:54
Score: 0.5
Natty:
Report link

What you tried, App.switch_frame(ScrollFrame) , won't work because it is calling the function from the class not the instance, which is not the window you are seeing. So you need to call the function from the instance 'app'.

This is the general problem with OOP. You often need the classes to interact in some way which is only possible if each had a reference to the other or the instances were global. Both solutions defeat the purpose/advantage of using OOP.

For your case, you could give the class FunctionsSidebarFrame a reference to the app instance which you can then use to call its swith_frame function.

class FunctionsSidebarFrame(customtkinter.CTkFrame):
    def __init__(self, master, app):
        self.app = app
        ...
    def viewGames(self):
        self.app.switch_frame(ScrollFrame)

This will also require you to give the class SidebarFrame the reference to be passed to FunctionsSidebarFrame.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What you
  • Low reputation (1):
Posted by: Yazan Al Hariri

79150385

Date: 2024-11-02 09:54:54
Score: 3
Natty:
Report link

hi i m a new user of python but i can't finalized because terminal signalized me a parsing failed why i can solve it

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

79150382

Date: 2024-11-02 09:53:54
Score: 1.5
Natty:
Report link

You need to update hilt to 2.49 or newer version:

Fixed #2287, #3523: Add support for using @AssistedInject with @HiltViewModel. (8327177). For more details visit https://dagger.dev/hilt/view-model#assisted-injection.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @AssistedInject
  • User mentioned (0): @HiltViewModel
  • High reputation (-1):
Posted by: Jan Itor

79150368

Date: 2024-11-02 09:45:52
Score: 2.5
Natty:
Report link

How about using a parsing function and matching on the return value? For example:

def get_operator(token_list):
    if '/' in token_list:
        return '/'
    ...
    return 'NUM'  # 'NUM' means numeric token 

match get_operator(c):
    case '/':
        i = c.index("/")
        before_div, after_div = c[:i], c[i+1:]
        ...
    case "NUM":
        return c[0]
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): How
  • Low reputation (0.5):
Posted by: olives

79150350

Date: 2024-11-02 09:33:49
Score: 1.5
Natty:
Report link

According to this link, there is a bug in new versions of .NET where the certificate folder is not automatically created.

The workaround is to add the following code in the aspnetcore-https.js file:

const baseFolder = 
//...
s.mkdirSync(baseFolder, { recursive: true });
Reasons:
  • Blacklisted phrase (1): this link
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Aaron

79150348

Date: 2024-11-02 09:32:49
Score: 5
Natty:
Report link

I have the same issue with my KMP project, the old code is loaded into the android emulator but the new code is loaded in the XCode iOS emulator. there is no single error in the application whatsoever.!

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Low reputation (0.5):
Posted by: Saher Al-Sous

79150343

Date: 2024-11-02 09:31:48
Score: 4
Natty:
Report link

Changing the node version helped me

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

79150319

Date: 2024-11-02 09:18:45
Score: 1
Natty:
Report link

These steps solved my issue:

As the problem was solved by fresh installation of the dependencies, Most probably I faced the issue because of some internal dependency conflict.

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

79150314

Date: 2024-11-02 09:12:44
Score: 1.5
Natty:
Report link

Use puppeteer-extra-plugin-stealth. Note that you will need to use puppeteer-extra rather than just puppeteer for this to work. Found this solution through this article.

const puppeteer = require('puppeteer-extra');
const StealthPlugin = require('puppeteer-extra-plugin-stealth');
puppeteer.use(StealthPlugin());
Reasons:
  • Blacklisted phrase (1): this article
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: lefrost

79150313

Date: 2024-11-02 09:11:44
Score: 2
Natty:
Report link

I've been struggling with how to get my user interface for filling in lots of information QUICKLY in to a form, the info comes from Different datatables and I have to build a big old Estimation type screen.

Your idea has lead me on to thinking perhaps just have a big list like yours and let them multi select JUST the rows they want. Then Build it from the Checkboxes.

Thanks

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

79150310

Date: 2024-11-02 09:09:43
Score: 3
Natty:
Report link

Holy crap this solved my issue! How ridiculous that MobileDependencyResolver doesn't actually work properly

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

79150308

Date: 2024-11-02 09:09:43
Score: 1
Natty:
Report link

Ditch express-fileupload for multer. It works flawlessly!

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

79150307

Date: 2024-11-02 09:07:43
Score: 2.5
Natty:
Report link

I have tried another library, SAP/node-hdb: SAP HANA Database Client for Node, and to my surprise with the same configuration it does work with the user logged in and not logged in.

I'll leave this one.

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

79150305

Date: 2024-11-02 09:07:42
Score: 5
Natty: 4.5
Report link

National Skills Development Authority is hosting such types of training.

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

79150298

Date: 2024-11-02 09:04:42
Score: 5.5
Natty:
Report link

NSDA adsbfgjks.bgjkbdfsjgbjfsbxcvjbxcnvbn,xcbv,xb,cnv 1

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: computer nactar

79150295

Date: 2024-11-02 09:03:41
Score: 2.5
Natty:
Report link

Following on from @Michal I used:

=TEXT(SUBSTITUTE(X2, ".", "/"), "dd/mm/yyyy")

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @Michal
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: elksie5000

79150286

Date: 2024-11-02 08:58:40
Score: 0.5
Natty:
Report link

I decide. Thanks everybody for help I use format data json_v2 and my config looks that:

[inputs]
[[inputs.http]]
# this section working and return data
  urls = [ "http://{my_api_server_ip}/monitor/system/status" ]
  method = "GET"
  name_override = "device_info"
  #json_string_fields = ["instance-id", "api-version"]
  data_format = "json_v2"
  [[inputs.http.json_v2]]
    [[inputs.http.json_v2.field]]
      path = "instance-id"
      type = "string"
      optional = true
   [[inputs.http.json_v2.field]]
      path = "api-version"
      type = "string"
  success_status_codes = [200]
  [inputs.http.tags]
    devid = "64"
[[inputs.http]]
# this section IS working NOW and return data
  urls = [ "http://{my_api_server_ip}/monitor/system/status" ]
  method = "GET"
  name_override = "device_data_status"
  tagexclude = ["url", "host"]
  data_format = "json_v2"
  [[inputs.http.json_v2]]
    [[inputs.http.json_v2.field]]
      path = "devices:cameras:status.framerates.0"
      type = "string"
      rename = "front_cam_1_framerates"
      optional = true
  success_status_codes = [200]
  [inputs.http.tags]
    devid = "64"

[[inputs.http]]
# this section working and return data
  urls = [ "http://{my_api_server_ip}/monitor/system/status" ]
  method = "GET"
  name_override = "device_data_mem"
  data_format = "json"
  json_string_fields = ["mem-active", "mem-available", "mem-free", "mem-total", "swap-free", "swap-total"]
  json_query = "system:memory:usage"
  success_status_codes = [200]
  [inputs.http.tags]
    devid = "64"
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Владимир Костяник

79150281

Date: 2024-11-02 08:56:39
Score: 4.5
Natty:
Report link

I have a class that I want to hide, this is my code:

    /*--------------------------------------------------------------
    Title & Breadcrumb
--------------------------------------------------------------*/
.main-title-section-wrapper {
    clear: both;
    float: left;
    margin: 0;
    padding: 75px 0 90px;
    width: 100%;
}

#header-wrapper .main-title-section-wrapper {
    position: relative;
}

#header-wrapper.header-top-absolute .main-title-section-wrapper {
    position: static;
}


.main-title-section {
    float: left;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    pointer-events: none;
}



.main-title-section h1 {
    font-size: calc(var(--DTFontSize_H1)/.95);
    margin: 0 0 5px;
    word-break: break-all;
    font-weight: 700;
    text-transform: initial;
    line-height: 1.25em;
    color: #1a1a1a;
}



.breadcrumb {
    clear: both;
    float: left;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: 500;
}

.breadcrumb span:not(.current) {
    display: inline-block;
    margin: 0px 12px;
    padding: 0;
}

.main-title-section-wrapper .breadcrumb-default-delimiter:before {
    content: "";
    background-color: currentColor;
    display: inline-block;
    height: 14px;
    opacity: 0.45;
    position: relative;
    top: -1px;
    vertical-align: middle;
    width: 1px;
    -webkit-transform: rotate(20deg);
    transform: rotate(20deg);
}

.main-title-section h1,
.breadcrumb {
    hyphens: auto;
    word-break: break-word;
    word-wrap: break-word;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.main-title-section-wrapper>.main-title-section-bg,
.main-title-section-wrapper>.main-title-section-bg:after {
    content: "";
    height: 100% !important;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
    pointer-events: none;
}


/*--------------------------------------------------------------
    Default Colors
--------------------------------------------------------------*/

.breadcrumb {
    color: var(--DTBodyTxtColor);
}

.main-title-section h1 {
    color: var(--DTBlackColor);
}

.breadcrumb a {
    color: var(--DTLinkColor);
    border-bottom: 2px solid transparent;
}

.breadcrumb a:hover {
    border-bottom-color: var(--DTPrimaryColor);
}

.breadcrumb span.current {
    color: var(--DTBodyTxtColor);
}

.main-title-section-wrapper>.main-title-section-bg:after {
    background-color: rgba(var(--DTBlack_RGB), 0.05);
}

.main-title-section-wrapper.dark-bg-breadcrumb>.main-title-section-bg {
    background-color: var(--DTBlackColor);
}

.dark-bg-breadcrumb .main-title-section h1,
.dark-bg-breadcrumb .breadcrumb a,
.dark-bg-breadcrumb .breadcrumb span.current,
.dark-bg-breadcrumb .breadcrumb span:not(.current) {
    color: var(--DTWhiteColor);
}

.breadcrumb a:hover,
.dark-bg-breadcrumb .breadcrumb a:hover {
    color: var(--DTLinkHoverColor);
}



/*--------------------------------------------------------------
    Accents
--------------------------------------------------------------*/


/* Primary Color */

.breadcrumb a:hover {
    color: var(--DTPrimaryColor);
}


/*--------------------------------------------------------------
    Responsive
--------------------------------------------------------------*/

@media only screen and (min-width:1281px) {
    .main-title-section-wrapper {
        padding: 75px 0 90px;
    }
}

@media only screen and (max-width: 1280px) {
    .main-title-section-wrapper {
        padding: 45px 0 50px;
    }
}

/*----*****---- << Mobile (Landscape) >> ----*****----*/


/* Common Styles for the devices below 767px width */

@media only screen and (max-width: 767px) {
    .main-title-section h1 {
        font-size: 28px;
    }
    .main-title-section,
    .main-title-section h1,
    .breadcrumb {
        text-align: center;
    }
}


/* Common Styles for the devices below 479px width */

@media only screen and (max-width: 479px) {
    .main-title-section h1 {
        font-size: 24px;
    }
}

I'm trying to hide main title section wrapper, so far I used this:

    .main-title-section-wrapper {
    display: none ;
    visibility: hidden ;
    }
    
    .main-title-section-wrapper {
       position: absolute;
       top: -9999px;
       left: -9999px; }

And it works on chrome both on desktop that on mobile, but safari on ios still shows that class

What should I do to hide this element also in safari?

Reasons:
  • Blacklisted phrase (2): What should I do
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: marko988

79150279

Date: 2024-11-02 08:55:39
Score: 1
Natty:
Report link

I am new to kotlin but you made me learn this today, thanks! was using kotlin playground..


You were asking about way to add one more argument with default value without breaking existing calls.

You can do this by using attributes after vararg like

fun foo(
    id: String,
    vararg values: Int,
    attributes: Array<String> = arrayOf("a", "b"),
){
  ...
}

But wait, that will raise error regarding type, because the attribute which you meant to convey at last of foo() will also be considered as vararg, so to use this code we will have to call the function like:

foo("id_3", 1, 2, 3,attributes=loremipsum)

wherever required you can add ,attributes=loremipsum and if not leave it.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • RegEx Blacklisted phrase (1.5): I am new
  • Long answer (-0.5):
  • Has code block (-0.5):
Posted by: redoc

79150273

Date: 2024-11-02 08:49:38
Score: 2
Natty:
Report link

I had this problem while training my ML model. The issue occurred when in the yaml configuration file I had mistakenly removed the space between one of the key and value. It got resolved after removing that.

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