79184856

Date: 2024-11-13 12:26:58
Score: 2
Natty:
Report link

As in the official documentation say: https://www.php.net/utf8_encode

This function has been DEPRECATED as of PHP 8.2.0. Relying on this function is highly discouraged.

I recommend you to change by

        $enconded = iconv('ISO-8859-1', 'UTF-8', $value);

Or use other way to encoded (depending on your php version) as this answer recommend: PHP utf8_en/decode deprecated, what can i use?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Cristian Scheel

79184844

Date: 2024-11-13 12:20:57
Score: 3
Natty:
Report link

Marking the directory with venv as "excluded" helped me.

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

79184840

Date: 2024-11-13 12:18:57
Score: 2
Natty:
Report link

It turned out that the problem was related to the PATH variable.

The executable was successfully linked with a DLL on the search path in MSYS2, but the PATH variable for the system (the one used for the cmd utility) did not include this folder. Fixing this led to successful execution of the code.

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

79184835

Date: 2024-11-13 12:17:57
Score: 1
Natty:
Report link

In November 2023 BigQuery gained a native Levenshtein distance calculation via the EDIT_DISTANCE() function

SELECT EDIT_DISTANCE('abc', 'adb', max_distance => 2) AS results;
results
2
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Charlotte Hadley

79184830

Date: 2024-11-13 12:16:56
Score: 4.5
Natty:
Report link

To add to @barry houdini's answer, use +1 to simulate OR.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @barry
  • Single line (0.5):
  • Low reputation (1):
Posted by: DebJ

79184825

Date: 2024-11-13 12:14:55
Score: 1
Natty:
Report link

I found a solution to reading in this data was WMTS from geoserver:

library(leaflet)
library(dplyr)

leaflet() %>%
# Set initial map view
setView(lng = -4, lat = 57, zoom = 7) %>%
# Add WMS Tiles as an overlay group
addWMSTiles(
  baseUrl = "https://geo.spatialhub.scot/geoserver/ows?authkey=b85aa063-d598-4582-8e45-e7e6048718fc",
  layers = "ext_rpth:pub_rpth",
  options = WMSTileOptions(format = "image/png", transparent = TRUE),
  attribution = "XXX",
  group = "Paths"
)
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: KirkyLady

79184818

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

I modified the function plot_dq_scatter_dropdown using the shapes argument instead of add_vline & add_hline arguments. Here is the revised function:

def plot_dq_scatter_dropdown(df):
# Initialize the figure
fig = go.Figure()

# Get columns for Y-axis options (excluding 'rows' and 'outlier_prob')
y_columns = [col for col in df.columns if col not in ["rows", "outlier_prob"]]
# Calculate median of rows (constant)
median_x = df["rows"].median()

# Create dropdown buttons with updated configuration
buttons = []
for y_col in y_columns:
    median_y = df[y_col].median()
    button = dict(
        label=y_col,
        method="update",
        args=[
            # Trace updates
            {
                "y": [df[y_col]],  # Update scatter plot Y values
                "x": [df["rows"]],
                "marker.color": [df["outlier_prob"]],
            },
            # Layout updates
            {
                "title": f"Scatter Plot: rows vs {y_col}",
                "yaxis.title": y_col,
                "shapes": [
                    # Vertical median line for rows
                    {
                        "type": "line",
                        "x0": median_x,
                        "x1": median_x,
                        "y0": 0,
                        "y1": 1,
                        "yref": "paper",
                        "line": {"color": "orange", "dash": "dash", "width": 2}
                    },
                    # Horizontal median line for selected Y variable
                    {
                        "type": "line",
                        "x0": 0,
                        "x1": 1,
                        "xref": "paper",
                        "y0": median_y,
                        "y1": median_y,
                        "line": {"color": "orange", "dash": "dash", "width": 2}
                    }
                ],
                "annotations": [
                    # Annotation for vertical median line
                    {
                        "x": median_x,
                        "y": 1,
                        "xref": "x",
                        "yref": "paper",
                        "text": "Median rows",
                        "showarrow": False,
                        "xanchor": "left",
                        "yanchor": "bottom"
                    },
                    # Annotation for horizontal median line
                    {
                        "x": 0,
                        "y": median_y,
                        "xref": "paper",
                        "yref": "y",
                        "text": f"Median {y_col}: {median_y:.2f}",
                        "showarrow": False,
                        "xanchor": "left",
                        "yanchor": "bottom"
                    }
                ]
            }
        ]
    )
    buttons.append(button)

# Add initial scatter plot
initial_y = y_columns[0]
initial_median_y = df[initial_y].median()
fig.add_trace(go.Scatter(
    x=df["rows"],
    y=df[initial_y],
    mode='markers',
    marker=dict(
        color=df['outlier_prob'],
        colorscale='viridis',
        showscale=True,
        colorbar=dict(title='Outlier Probability')
    ),
    hoverinfo='text',
    text=df.index,
    showlegend=False
))

# Update layout with dropdown menu and initial median lines
fig.update_layout(
    title=f"Scatter Plot: rows vs {initial_y}",
    xaxis_title="rows",
    yaxis_title=initial_y,
    updatemenus=[{
        "buttons": buttons,
        "direction": "down",
        "showactive": True,
        "x": 0.17,
        "y": 1.15,
        "type": "dropdown"
    }],
    shapes=[
        # Initial vertical median line
        {
            "type": "line",
            "x0": median_x,
            "x1": median_x,
            "y0": 0,
            "y1": 1,
            "yref": "paper",
            "line": {"color": "orange", "dash": "dash", "width": 2}
        },
        # Initial horizontal median line
        {
            "type": "line",
            "x0": 0,
            "x1": 1,
            "xref": "paper",
            "y0": initial_median_y,
            "y1": initial_median_y,
            "line": {"color": "orange", "dash": "dash", "width": 2}
        }
    ],
    annotations=[
        # Initial annotation for vertical median line
        {
            "x": median_x,
            "y": 1,
            "xref": "x",
            "yref": "paper",
            "text": "Median rows",
            "showarrow": False,
            "xanchor": "left",
            "yanchor": "bottom"
        },
        # Initial annotation for horizontal median line
        {
            "x": 0,
            "y": initial_median_y,
            "xref": "paper",
            "yref": "y",
            "text": f"Median {initial_y}: {initial_median_y:.2f}",
            "showarrow": False,
            "xanchor": "left",
            "yanchor": "bottom"
        }
    ]
)

# Show the plot
fig.show()

This should calculate the median values for each column and includes them in the button configuration. It also annotates the lines accordingly. I am attaching some images of the resulting outputenter image description here

enter image description here

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

79184815

Date: 2024-11-13 12:12:55
Score: 2.5
Natty:
Report link

For now, it is not possible, this is a fairly common question on the storybook github, you can see the answer of the team here https://github.com/storybookjs/storybook/discussions/24785

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

79184813

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

You have to configure posgresql config file;

Add this line to pg_hba.conf

host  all  all 0.0.0.0/0 md5

Also you can define specific config file for psql in docker like that;

command: -c config_file=/etc/postgresql.conf
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Selcuk Mollaibrahimoğlu

79184800

Date: 2024-11-13 12:08:54
Score: 1
Natty:
Report link

For me works this code

    PrimeFaces.current().executeScript("PF('widgetVarId').getPaginator().setPage(1)");
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user3175453

79184799

Date: 2024-11-13 12:07:53
Score: 0.5
Natty:
Report link

You may use a CROSS APPLY

DECLARE @json NVARCHAR(MAX) = '{ "SearchParameters": [ { "LastName": "Smith" }, { "Org": "AAA" }, { "Postcode": "SW1" } ] }';

SELECT k.[key] AS ParameterName, k.value AS ParameterValue
FROM OPENJSON(@json, '$.SearchParameters') AS p
CROSS APPLY OPENJSON(p.value) AS k;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jan Suchanek

79184797

Date: 2024-11-13 12:07:53
Score: 0.5
Natty:
Report link

If you are browsing in Chrome try type thisisunsafe on Chrome SSL error page to make the Chrome ignore it. This solution is described here:

How to configure Chrome to ignore SSL warning on specific URLs?

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Victor

79184787

Date: 2024-11-13 12:03:53
Score: 1.5
Natty:
Report link

Specifically adding it into your environment files such as: Production.rb:

TimeZone Setting
  config.time_zone = 'Asia/Dubai'
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Umar Mahmood

79184786

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

Printing a PDF with mixed orientations is not possible with just chrome. The closest you can get would be to print one page rotated 90 degrees and then rotate the page manually in a PDF editor.

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

79184784

Date: 2024-11-13 12:03:53
Score: 3
Natty:
Report link

brilliant formula. Worked for me. Thank you

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1): Worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Michele Oliveira

79184783

Date: 2024-11-13 12:03:53
Score: 1
Natty:
Report link

Command yay -Syu flang not install package. It is upgrade system only. For install used command yay -S flang yay have param:

  1. -S for install package
  2. -Ss for search package
  3. -F for search program name in a packages
  4. yay -Syu for upgrade system
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: oditynet

79184782

Date: 2024-11-13 12:02:52
Score: 1
Natty:
Report link
   expect(
  screen.getByRole('heading', { level: 2, name: 'text of the heading' })
).toBeVisible();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Arian Al Lami

79184778

Date: 2024-11-13 12:02:52
Score: 2.5
Natty:
Report link

Have you tried using @angular/elements? I once needed to use an Angular component in React, and this package made it much easier for us.

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Data Makharashvili

79184774

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

In this case, the compiler is your friend. The answer is in the error message:

note: upstream crates may add a new impl of trait `std::error::Error` for type `anyhow::Error` in future versions

The problem is, you have these two impl blocks:

impl<E> From<E> for MyError
where
    E: std::error::Error + Into<anyhow::Error>,
{
    fn from(e: E) -> Self {
        MyError::Anyhow(e.into())
    }
}

impl From<anyhow::Error> for MyError {
    fn from(e: anyhow::Error) -> Self {
        MyError::Anyhow(e)
    }
}

Now consider what happens when you try to convert anyhow::Error into MyError. The compiler sees the first block and tries to match: anyhow::Error implements Into<anyhow::Error> (any type T trivially implements Into<T>), but doesn't implement std::error::Error, so we should be fine here (spoiler alert: we aren't, but we'll get back to this later). It also sees the second block, where we have From<anyhow::Error>, so it obviously applies and the compiler can use it.

However, you don't have any guarantee that the anyhow crate maintainers won't introduce an implementation for std::error::Error for anyhow::Error in the future. This sort of change only needs a minor SemVer bump, so your code could suddenly stop compiling without even changing your Cargo.toml. Rust compiler tries to prevent this and doesn't allow you to build your program, even though there's technically nothing wrong with it as of today.

What can you do with it? Well, sadly not that much. Your options are:

  1. Removing generic From<E> implementation and implementing From for all the error types you want to support (possibly using macros) — your code stops being generic
  2. Removing the std::error::Error bound on From<E> and removing From<anyhow::Error> block — requires you to remove your impl From<MyError> for anyhow::Error block because of conflicting blanket implementation of impl<T> From<T> for T
  3. Removing the Into<anyhow::Error> bound on From<E> and using std::error::Error + Send + Sync + 'static instead while removing the From<anyhow::Error> — you won't be able to convert from anyhow::Error to MyError.

There is a possibility this problem will be easier to tackle in the future using specialization, but it doesn't look like it will be available in stable Rust anytime soon.


See also: How do I work around the "upstream crates may add a new impl of trait" error?

Reasons:
  • Blacklisted phrase (1): How do I
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: m4tx

79184773

Date: 2024-11-13 12:00:49
Score: 8.5 🚩
Natty:
Report link

Can you provide the method that you deleted?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you provide
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: knowledge_seeker

79184772

Date: 2024-11-13 11:59:49
Score: 1
Natty:
Report link

I have resolved something like this issue by adding these dependencies

implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0")
implementation 'io.swagger.core.v3:swagger-annotations:2.2.15'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Girish G

79184762

Date: 2024-11-13 11:56:48
Score: 1
Natty:
Report link

The correct request would be:

$url =
       "https://api.dailymotion.com/collection/xxx/videos?fields=private_id&private=true";

If you want to get more than 10 items, set limit like:

$url =
   "https://api.dailymotion.com/collection/xxx/videos?fields=private_id&private=true&limit=100";

100 is maximum you can get. Also learn the following information: https://developers.dailymotion.com/guides/browse-large-catalogs/

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

79184760

Date: 2024-11-13 11:56:48
Score: 1
Natty:
Report link

To fix the "From" email issue and prevent tracking links when using Brevo with WP Mail SMTP, follow these steps:

Authenticate your domain in Brevo by adding the necessary SPF and DKIM records in your DNS settings. This ensures emails are sent from your custom domain (e.g., [email protected]) rather than Brevo’s domain.

In WP Mail SMTP, make sure the "From Email" matches the authenticated email address.

Disable link and open tracking in Brevo’s settings under Campaigns > Settings to prevent tracking links from being added to your emails.

These steps will ensure your email address is correct and improve email deliverability.

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

79184753

Date: 2024-11-13 11:54:47
Score: 2.5
Natty:
Report link

Also got the same problem after downloading XCode 16.2 beta. For now nothing works. Tried with Karol's method, but it still persist.

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

79184732

Date: 2024-11-13 11:48:45
Score: 2.5
Natty:
Report link

For me below conf was missing in Application.properties

spring.freemarker.template-loader-path=classpath:/templates/

spring.freemarker.suffix=.ftl

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

79184730

Date: 2024-11-13 11:47:45
Score: 2.5
Natty:
Report link

By default, if you use jQuery.post() with simple key-value pairs, they will be available in the FORM scope in ColdFusion.

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

79184724

Date: 2024-11-13 11:45:45
Score: 0.5
Natty:
Report link

Thanks @Markus Meyer for the comment.

As mentioned by Markus and as per this MSDoc, you need to delete the Identity provider of Username and Password.

enter image description here

That is not show the choice/username - password form on the login page, and in the current case only show the Azure EntraID login button.

For this you need to add the Azure AD Identity provider.

enter image description here

Is the only way to delete the local auth form block on the login page

If you delete the Username and password, it will not allow you to login. If you want to completely avoid the block delete both identity provider and form in login page.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @Markus
  • High reputation (-1):
Posted by: Harshitha

79184716

Date: 2024-11-13 11:42:44
Score: 1.5
Natty:
Report link

If installed with brew:

brew services restart mysql 
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: abzalassembekov

79184711

Date: 2024-11-13 11:40:44
Score: 0.5
Natty:
Report link

I have used this kind of code for years without any problems:

<cfset zurl = #cgi.SCRIPT_NAME#&'?'&#cgi.QUERY_STRING#>
<cfset arg2remove = 'LoginID='&#url.LoginID#>
<cfset q = reReplaceNoCase(cgi.query_string, arg2remove, "")>

The use of regex is not necessary.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Frédéric Peters

79184709

Date: 2024-11-13 11:40:44
Score: 1
Natty:
Report link

calling the eventbridge.putEvents(custom_Params)

or equivalent function in the language you use (ref SDK github repo)

from lambda will do after setting up things from event-bridge side

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

79184707

Date: 2024-11-13 11:39:43
Score: 3.5
Natty:
Report link

Old thread, but it looks like it's nearly impossible to pair pre 2.x tensorflow (in particular tf 1.15) with Amper architecture Nvidia GPUs, hopefully I'm mistaken.

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

79184706

Date: 2024-11-13 11:39:43
Score: 4
Natty:
Report link

Try to use this GET request:

https://gmailpostmastertools.googleapis.com/v1/domains/YOURDOMAIN_HERE/trafficStats/20241102

works fine foe me

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

79184698

Date: 2024-11-13 11:37:42
Score: 3.5
Natty:
Report link

For me, it was due to errors with prexisting dependencies not being in the correct updated version. Removing them, adding the new dependency and then adding those back solved it.

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

79184697

Date: 2024-11-13 11:37:42
Score: 2.5
Natty:
Report link

You can select the code that you want to unwrap and then use the ctrl + shift+ delete shortcut

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

79184682

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

In case anyone stumbles upon this, i've finally understood my mistake: turns out that, while my @ActivityContext injection into my AuthModule was OK, I was still trying to inject the module in ViewModel, which means it would indirectly hold a reference to the Activity, and thus Hilt wouldn't allow me to inject it.

My somewhat ugly solution was to just inject my module into the Activity itself, since I have only one, and then pass the module as a reference down to other composables, and THEN finally pass it down to the ViewModel so it could make its things

@AndroidEntryPoint
class MainActivity : ComponentActivity() {
  @Inject lateinit  var authService: AuthService
  // ....
  AuthScreen(authService = authService, ...)
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @ActivityContext
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: KaduCmK

79184670

Date: 2024-11-13 11:28:41
Score: 5
Natty: 4.5
Report link

contact xperlet web development company they will help you.

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

79184665

Date: 2024-11-13 11:28:40
Score: 1.5
Natty:
Report link

Here is one example which i tried and successfully run in my android studio

1. Main Timer Widget

import 'dart:math';
import 'package:flutter/material.dart';

class CircularTimerWithTaxi extends StatefulWidget {
  final int durationInSeconds;
  final VoidCallback? onTimerComplete;
  final double size;
  final Color trackColor;
  final Color progressColor;

  const CircularTimerWithTaxi({
    Key? key,
    required this.durationInSeconds,
    this.onTimerComplete,
    this.size = 300,
    this.trackColor = const Color(0xFFE0E0E0),
    this.progressColor = const Color(0xFF1A237E),
  }) : super(key: key);

  @override
  State<CircularTimerWithTaxi> createState() => _CircularTimerWithTaxiState();
}

class _CircularTimerWithTaxiState extends State<CircularTimerWithTaxi>
    with SingleTickerProviderStateMixin {
  late AnimationController _controller;
  late Animation<double> _animation;

  @override
  void initState() {
    super.initState();
    _setupAnimation();
  }

  void _setupAnimation() {
    _controller = AnimationController(
      vsync: this,
      duration: Duration(seconds: widget.durationInSeconds),
    );

    _animation = Tween<double>(
      begin: 0.0,
      end: 2 * pi,
    ).animate(_controller);

    _controller.addStatusListener((status) {
      if (status == AnimationStatus.completed) {
        widget.onTimerComplete?.call();
      }
    });

    _controller.forward();
  }

  @override
  void dispose() {
    _controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return AnimatedBuilder(
      animation: _animation,
      builder: (context, child) {
        return Stack(
          alignment: Alignment.center,
          children: [
            // Track and Progress
            CustomPaint(
              size: Size(widget.size, widget.size),
              painter: TrackPainter(
                progress: _controller.value,
                trackColor: widget.trackColor,
                progressColor: widget.progressColor,
              ),
            ),
            
            // Moving Car
            Transform(
              alignment: Alignment.center,
              transform: Matrix4.identity()
                ..translate(
                  (widget.size / 2) * cos(_animation.value - pi / 2),
                  (widget.size / 2) * sin(_animation.value - pi / 2),
                )
                ..rotateZ(_animation.value),
              child: const Icon(
                Icons.local_taxi,
                color: Colors.amber,
                size: 30,
              ),
            ),
            
            // Timer Text
            Text(
              '${((1 - _controller.value) * widget.durationInSeconds).ceil()}s',
              style: const TextStyle(
                fontSize: 40,
                fontWeight: FontWeight.bold,
              ),
            ),
          ],
        );
      },
    );
  }
}

2. Custom Track Painter

class TrackPainter extends CustomPainter {
  final double progress;
  final Color trackColor;
  final Color progressColor;

  TrackPainter({
    required this.progress,
    required this.trackColor,
    required this.progressColor,
  });

  @override
  void paint(Canvas canvas, Size size) {
    final center = Offset(size.width / 2, size.height / 2);
    final radius = size.width / 2;
    const strokeWidth = 20.0;

    // Draw base track
    final trackPaint = Paint()
      ..color = trackColor
      ..style = PaintingStyle.stroke
      ..strokeWidth = strokeWidth
      ..strokeCap = StrokeCap.round;

    canvas.drawCircle(center, radius - (strokeWidth / 2), trackPaint);

    // Draw progress
    final progressPaint = Paint()
      ..color = progressColor
      ..style = PaintingStyle.stroke
      ..strokeWidth = strokeWidth
      ..strokeCap = StrokeCap.round;

    canvas.drawArc(
      Rect.fromCircle(
        center: center,
        radius: radius - (strokeWidth / 2),
      ),
      -pi / 2,
      2 * pi * (1 - progress),
      false,
      progressPaint,
    );

    // Draw track markers
    final markerPaint = Paint()
      ..color = Colors.white
      ..style = PaintingStyle.stroke
      ..strokeWidth = 2;

    const markersCount = 40;
    for (var i = 0; i < markersCount; i++) {
      final angle = (2 * pi * i) / markersCount;
      final start = Offset(
        center.dx + (radius - strokeWidth) * cos(angle),
        center.dy + (radius - strokeWidth) * sin(angle),
      );
      final end = Offset(
        center.dx + radius * cos(angle),
        center.dy + radius * sin(angle),
      );
      canvas.drawLine(start, end, markerPaint);
    }
  }

  @override
  bool shouldRepaint(TrackPainter oldDelegate) {
    return oldDelegate.progress != progress ||
        oldDelegate.trackColor != trackColor ||
        oldDelegate.progressColor != progressColor;
  }
}

3. Example Usage

class TimerScreen extends StatelessWidget {
  const TimerScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: CircularTimerWithTaxi(
          durationInSeconds: 30,
          size: 300,
          trackColor: Colors.grey[300]!,
          progressColor: Colors.blue[900]!,
          onTimerComplete: () {
            // Handle timer completion
            print('Timer finished!');
          },
        ),
      ),
    );
  }
}

Key Features

  1. Smooth Car Animation

    • Car rotates realistically while moving
    • Follows the circular path precisely
    • Maintains correct orientation throughout the animation
  2. Custom Track Design

    • Dashed line markers for visual interest
    • Configurable track and progress colors
    • Smooth progress indication
    • Round stroke caps for polished look
  3. Timer Functionality

    • Countdown display in the center
    • Customizable duration
    • Completion callback
    • Visual progress tracking

Customization Options

You can customize various aspects of the timer:

CircularTimerWithTaxi(
  durationInSeconds: 60,              // Duration in seconds
  size: 400,                          // Overall size
  trackColor: Colors.grey[200]!,      // Background track color
  progressColor: Colors.blue[800]!,   // Progress track color
  onTimerComplete: () {
    // Custom completion handling
  },
)

Advanced Customization

  1. Modify Track Appearance
// In TrackPainter class
const strokeWidth = 20.0;  // Change track thickness
const markersCount = 40;   // Change number of dash marks
  1. Change Car Icon
// Replace the Icon widget with custom widget
Transform(
  ...
  child: Image.asset(
    'assets/car_icon.png',
    width: 30,
    height: 30,
  ),
)
  1. Customize Timer Text
Text(
  '${((1 - _controller.value) * widget.durationInSeconds).ceil()}s',
  style: TextStyle(
    fontSize: 40,
    fontWeight: FontWeight.bold,
    color: Colors.blue[900],
  ),
)

Common Issues and Solutions

  1. Car Rotation Issues

    • Ensure transform origin is centered
    • Use correct mathematical calculations for rotation
    • Consider device pixel ratio
  2. Performance Optimization

    • Use shouldRepaint efficiently
    • Minimize widget rebuilds
    • Use const constructors where possible
  3. Animation Smoothness

    • Use vsync properly
    • Handle disposal correctly
    • Consider using curves for natural movement

Additional Tips

  1. State Management

    • Consider using a state management solution for complex implementations
    • Handle timer state properly when navigating
  2. Responsive Design

    • Use MediaQuery for responsive sizing
    • Consider different screen orientations
    • Handle edge cases for small screens
  3. Testing

    • Test with different durations
    • Verify completion callback
    • Check animation smoothness

Example with State Management (using Provider)

class TimerState extends ChangeNotifier {
  bool isRunning = false;
  int remainingSeconds = 0;

  void startTimer(int duration) {
    remainingSeconds = duration;
    isRunning = true;
    notifyListeners();
  }

  void stopTimer() {
    isRunning = false;
    notifyListeners();
  }
}

Remember to add necessary dependencies in your pubspec.yaml:

dependencies:
  flutter:
    sdk: flutter
  provider: any  # If using provider for state management

This implementation provides a solid foundation for a circular timer with car animation. You can build upon this base to add more features or customize it further based on your specific needs.

Would you like me to explain any part in more detail or add specific customizations?

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Darshan Parmar

79184659

Date: 2024-11-13 11:27:40
Score: 1.5
Natty:
Report link

The program requires the installation of an emulator. To do this, select:

Try invalidate caches of Android Studio

Settings => Language & Frameworks => Android SDK.

In SDK Tools, you can install the missing tools.

If it happens that despite the emulator being installed, an error message is displayed, uninstall and reinstall the emulator.

If this does not help, uninstall and reinstall Android Studio.

Finally, click Finish.

The virtual device we created should appear in the Device Manager window.

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

79184656

Date: 2024-11-13 11:26:40
Score: 3
Natty:
Report link

Ok found the issue was that I had the default conf nginx with location / that was overlapping my location /admin/

Might help anyone stuck

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

79184655

Date: 2024-11-13 11:26:40
Score: 3
Natty:
Report link

cosmos db for mongodb api is extremely slow. go with the Original mongodb server or atlas offerings. its lot cheaper and faster

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

79184653

Date: 2024-11-13 11:26:40
Score: 1
Natty:
Report link

Let's say "vertical-center" is the name of your div class, And the content you want to center is inside the div.
This is the CSS code:

.vertical-center {
display: flex;
align-items: center;
height: 100px; /* Adjust the height as needed */
}

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

79184651

Date: 2024-11-13 11:25:39
Score: 0.5
Natty:
Report link

Have you tried passing the parameter like this?

router.push({
    pathname: '../routes/workoutDetail',
    params: {
        id: workout.id
    }
})

Also, using ../routes may not be the best approach for defining the pathname. It’s better to use the global namespace"

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Data Makharashvili

79184647

Date: 2024-11-13 11:24:39
Score: 1
Natty:
Report link

The best way to accomplish this is to use needs more info on needs

Example below:

stages:
  - 📼 start-main-job
  - 📎 start-main-job-2


DEV before-main-job:
  stage: 📼 start-main-job
  needs: []
  when: manual

DEV start-main-job:
  stage: 📼 start-main-job
  needs: ["DEV before-main-job"]
  when: on_success

DEV before-main-job-2:
  stage: 📎 start-main-job-2
  needs: []
  when: manual

DEV start-main-job-2:
  stage: 📎 start-main-job-2
  needs: ["DEV before-main-job-2"]
  when: on_success

Example pipeline

enter image description here

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

79184642

Date: 2024-11-13 11:23:39
Score: 2
Natty:
Report link

check out at [web hosting promo][1]

[1]: https://webhostingpromo.com . For a reliable and budget-friendly web host that supports Java in a Windows environment, here are some solid options:

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

79184620

Date: 2024-11-13 11:15:36
Score: 1.5
Natty:
Report link

I fixed the issue by using the StaticDatePicker MUI instead of DesktopDatePicker MUI. Not really a fix, more a workaround.

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rolandas Dovydėnas

79184609

Date: 2024-11-13 11:11:36
Score: 1.5
Natty:
Report link

String _mapStyle = "..."

@override
  Widget build(BuildContext context) {
    ...
     GoogleMap(
        style:  _mapStyle,
    )
}

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

79184607

Date: 2024-11-13 11:10:35
Score: 3
Natty:
Report link

There are some server libraries available like https://github.com/vjeantet/ldapserver/blob/master/packet.go and https://github.com/Authentick/LdapServerLibrary/tree/main/Sample

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

79184606

Date: 2024-11-13 11:10:35
Score: 3
Natty:
Report link

websockets version 14.0 has some issues in handling connections. downgrading to a version e.g. - 12.0 solves the issue.

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

79184605

Date: 2024-11-13 11:10:35
Score: 4
Natty: 4
Report link

THis does not work. If something has been changed, the Save prompt is still popping up!

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

79184597

Date: 2024-11-13 11:07:34
Score: 0.5
Natty:
Report link

Project Type: ASP.NET Core Web API.
This issue is caused by a duplicate attribute, as AssemblyInfo is automatically generated.
To resolve this issue, simply edit [ProjectName].csproj and add the following tag:

<PropertyGroup>
    <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Kelvin Castro

79184595

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

You should be able to write your own ldap server. Similar to https://github.com/Authentick/LdapServerLibrary/tree/main/Sample. There are ldap server libraries available in python and golang as well.

Once you write the server, sky is the limit as to what you do with the messages.

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

79184593

Date: 2024-11-13 11:06:34
Score: 5.5
Natty: 5.5
Report link

And if you don't have ManagedBean, use Component instead?

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

79184590

Date: 2024-11-13 11:05:33
Score: 1
Natty:
Report link

I just made a silly mistake ...instead of installing socket.io I installed outdated socketio which doesn't have support for TS.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: Wahab Khan Jadon

79184589

Date: 2024-11-13 11:05:33
Score: 4
Natty: 4.5
Report link

I don't understand of your answer. How can I link my Access database with Xampp server, my database already prepared I try link to database to show me , you can't using odbc .

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Iftikhar Ahmed

79184587

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

Some embedded systems need old databases although one can often get around the requirement by using a programmable database proxy. (eg Businesses are not going to replace an expensive machine tool just because it needs an old database.)

Linked servers tend to be slow. Try

  1. writing a program/script to copy the table. Powershell should be adequate.

or

  1. run the process from the SQL2022 server and use Polybase.
Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Aardvark

79184579

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

Use \newline for creating a new line

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

79184576

Date: 2024-11-13 11:03:32
Score: 1
Natty:
Report link

Another way some one might help in Spring Boot 3 is way of adding these two dependencies

implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0")
implementation 'io.swagger.core.v3:swagger-annotations:2.2.15'

make sure to exclude it from other SDKs if its referencing.

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

79184572

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

This looks to still be the case that this option is disabled for Azure database connections. I can confirm that MarcelDevG's option is correct. You can also right click in the window and select 'connection/disconnect' and then the option is available. When you click it, you then need to reselect your connection, but the editor also appears.

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

79184571

Date: 2024-11-13 11:02:32
Score: 10.5
Natty: 7
Report link

Same issue here. Did you find any solutions? I also need to allow everything again after building the solution. Is very frustrating when you run multiple projects configuration.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (3): Did you find any solution
  • RegEx Blacklisted phrase (1): Same issue
  • RegEx Blacklisted phrase (2): any solutions?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Vlad Toma

79184564

Date: 2024-11-13 11:01:31
Score: 1
Natty:
Report link

The trick for me was to add:

indent: false

to TinyMCE configuration. No more automatic <br> added when saving your code!

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

79184558

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

This has been changed to ui.tooltip.delay_ms, which you can set to 0 to display them instantly.

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

79184548

Date: 2024-11-13 10:56:29
Score: 4
Natty:
Report link

Redgate is moving from SQL Source Control to their new product Flyway Desktop, so this check-in problem could be a moot point:

https://documentation.red-gate.com/fd/moving-from-sql-source-control-to-flyway-desktop-152109390.html

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

79184542

Date: 2024-11-13 10:54:29
Score: 3.5
Natty:
Report link

just type > composer require ImageMagick then import it in your desire controller

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

79184531

Date: 2024-11-13 10:53:29
Score: 1
Natty:
Report link

Assuming User is defined somewhere else, just write User | None without quotes:

user: User | None = Relationship(back_populates="oauth_accounts")
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: thomask

79184527

Date: 2024-11-13 10:52:28
Score: 0.5
Natty:
Report link
  1. Set Up Django Backend First, make sure your Django backend is set up and running.

  2. Set Up React Frontend with Vite Next, create your React frontend using Vite

  3. Enable CORS in Django To allow your React frontend to communicate with your Django backend, you need to enable Cross-Origin Resource Sharing (CORS). You can use the django-cors-headers package:

pip install django-cors-headers

Then, add it to your settings.py:

python INSTALLED_APPS = [ ... 'corsheaders', ... ]

MIDDLEWARE = [ ... 'corsheaders.middleware.CorsMiddleware', ... ]

CORS_ALLOW_ALL_ORIGINS = True # For development only. Use a whitelist in production.

  1. Create API Endpoints in Django Set up your Django REST framework to create API endpoints that your React app can consume. You can follow the Django REST framework documentation for this.

  2. Fetch Data from Django API in React In your React app, use the fetch API or a library like Axios to fetch data from your Django backend

  3. Build and Deploy When you’re ready to deploy, build your React app using Vite

integrating React-Vite with Django. https://www.youtube.com/watch?v=NJVaySJAbw0&form=MG0AV3

Django React Integration with Vite -https://gist.github.com/sudarshan24-byte/ded3236d38b15787729de86c6cb420e3?form=MG0AV3

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Whitelisted phrase (-1.5): You can use
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Ganesh Gandhi

79184517

Date: 2024-11-13 10:50:27
Score: 2
Natty:
Report link

Several factors can contribute to poor real-time EMG (electromyography) classification performance, including noisy signals, insufficient feature extraction, and low-quality electrodes. A limitation in classification algorithms, inability to adapt to individual users, or interference from the environment can also hinder accurate muscle activity detection and performance in real time.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Paul's creations

79184513

Date: 2024-11-13 10:49:27
Score: 1.5
Natty:
Report link

Turns out the solution was indeed to define the __cxa_pure_virtual as a dummy function due to https://bugs.llvm.org/show_bug.cgi?id=49839 , the issue is that I wasn't adding the __device__ attribute at the front. The function should then be something like:

extern "C" __device__ void __cxa_pure_virtual() {
  while (1) {
  }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: glowl

79184509

Date: 2024-11-13 10:49:27
Score: 2.5
Natty:
Report link

It turns out it is related with

spring-cloud-starter-bootstrap dependency, when I remove that, I have successfully

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Alpcan Yıldız

79184506

Date: 2024-11-13 10:47:27
Score: 1.5
Natty:
Report link

You have a GetRoles function that assigns roles to a user based on their primary and additional groups. However, currently, only the roles from the primary group are being considered, which limits user access by ignoring roles from additional groups.

To fix this, u need to:

Merge roles from all groups (both primary and additional) to create a unique list of accessible roles and update the GetAccess function to iterate over all groups instead of only the primary group.

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

79184505

Date: 2024-11-13 10:47:27
Score: 0.5
Natty:
Report link

You've to create the config.toml file containing the Secrets Config including the connection URL of your postgres database and the Keystore password.

Please refer to the official documentation for the exact steps and configuration.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: SYED ASAD KAZMI

79184495

Date: 2024-11-13 10:43:26
Score: 1.5
Natty:
Report link

I found a solution thanks mainly to @Teodor (and a bit of ChatGPT). My code is quite similar but still somewhat different. Also, there is a lot of customization concerning my plots following the solution. As I oriented myself very closely to a graph from a scientific publication, I decided to post it in case someone wants the code for a (hopefully) publication-worthy looking plot (Fig. 1). I also attached the code for a simple version of the same graph but using ordibar to generate error bars that take covariance into account as proposed by @JariOksanen (Fig. 2).

Teodor's approach:

library(vegan)
library(dplyr)
library(ggplot2)
library(ggvegan)
library(ggrepel)
library(ggpubr)
#Load data
data <- read.csv2("comSFdata.csv", header = TRUE, check.names = FALSE)
#Create new dataframe w/o 1. column
com = data[,2:ncol(data)]
#Turn data from dataframe to matrix format
mcom = as.matrix(com)
#Run NMDS - set.seed for reproducibility
set.seed(123)
nmds1 <- metaMDS(mcom, distance = "bray", k = 2, trymax = 10000)

#Prepare data for, and calculate means + se --> Summarize into single points
nmds_coords <- as.data.frame(scores(nmds1, display = "sites"))
nmds_coords['Treatment'] <- data['Treatment']
nmds_summary <- nmds_coords %>%
  group_by(Treatment) %>%
  summarise(
    NMDS1_mean = mean(NMDS1),
    NMDS2_mean = mean(NMDS2),
    NMDS1_sd = sd(NMDS1),
    NMDS2_sd = sd(NMDS2),
    NMDS1_se = NMDS1_sd / sqrt(n()),
    NMDS2_se = NMDS2_sd / sqrt(n()))

#Prepare data for 2. plot
fort <- fortify(nmds1)

#Generate 2 plots:
p1 <- ggplot(data = nmds_summary, mapping = aes(x = NMDS1_mean, y = NMDS2_mean, colour = Treatment, shape = Treatment)) +
#Customizes samples & plot error bars
  geom_errorbar(mapping = aes(xmin = NMDS1_mean - NMDS1_se, xmax = NMDS1_mean + NMDS1_se), width = 0.05, colour = "black", size = 1) +
  geom_errorbar(mapping = aes(ymin = NMDS2_mean - NMDS2_se, ymax = NMDS2_mean + NMDS2_se), width = 0.14383561643835616438356164383562, colour = "black", size = 1) +
  geom_point(size = 6, alpha = 1) +
  scale_colour_manual(values = c("#C77CFF", "#00BFC4", "#F8766D", "#7CAE00")) +
  scale_shape_manual(values = c(16, 16, 15, 17)) +
#Set axis range and force rendering of objects "outside" the range
  coord_cartesian(ylim = c(-0.4, 0.4), xlim = c(-1.15, 1.15), clip = 'off') +
#Remove legend
  theme(legend.position="none") +
#Add custom legend
  annotate("text", x = 1.1, y = 0.365, size = 4, fontface = "bold", hjust = 1, colour = "#C77CFF",
           label = ("Control start")) +
  annotate("text", x = 1.1, y = 0.34, size = 4, fontface = "bold", hjust = 1, colour = "#00BFC4",
           label = ("Control end")) +
  annotate("text", x = 1.1, y = 0.315, size = 4, fontface = "bold", hjust = 1, colour = "#F8766D",
           label = ("1% substrate addition")) +
  annotate("text", x = 1.1, y = 0.29, size = 4, fontface = "bold", hjust = 1, colour = "#7CAE00",
           label = ("4% substrate addition")) +
#Generates coordinate system axis at the origin
  geom_abline(intercept = 0, slope = 0, linetype = "dotted", linewidth = 0.65, colour = "black") +
  geom_vline(aes(xintercept = 0), linetype = "dotted", linewidth = 0.7125, colour = "black") +
#Removes grids & background & adds a frame
  theme(panel.grid.major = element_blank(),
        panel.grid.minor = element_blank(),
        panel.background = element_blank(),
        panel.border = element_rect(colour = "black", fill = "NA", linewidth = 1, linetype = "solid")) +
#Add title as label so it is in the foreground
  annotate("label", x = -1.15, y = 0.36, size = 5.5, label.size = 0, fontface = "bold", hjust = 0, colour = "black",
           label = ("(a) Slump Floor (SF)")) +
#Add custom axis titles
  xlab("NMDS1") + ylab("NMDS2") +
#Customize left plot axis
  theme(axis.ticks.length = unit(-3, "mm"),
        axis.ticks = element_line(linewidth = 1.05),
        axis.title.x = element_text(color="black", size=14, face="bold", vjust = -0.6),
        axis.title.y.left = element_text(color="black", size=14, face="bold", vjust = 10),
#Set custom margin for better scale readability           
        plot.margin = margin(10, 10, 10, 35)) +
  scale_x_continuous(expand = c(0, 0), breaks = c(-1, -0.5, 0, 0.5, 1), labels = c("", "", "","",""), sec.axis = sec_axis(~ ., breaks = c(-1, -0.5, 0, 0.5, 1), labels = c("", "", "","",""))) +
  scale_y_continuous(expand = c(0, 0), breaks = c(-0.2, 0 , 0.2), labels = c("", "",""), sec.axis = sec_axis(~ ., breaks = c(-0.2, 0 , 0.2), labels = c("", "",""))) +
#Set custom x-axis labels
  annotate("text", x = -0.95, y = -0.425, size = 4.5, fontface = "bold", hjust = 1, colour = "black",
           label = ("-1")) +
  annotate("text", x = -0.43, y = -0.425, size = 4.5, fontface = "bold", hjust = 1, colour = "black",
           label = ("-0.5")) +
  annotate("text", x = 0.025, y = -0.425, size = 4.5, fontface = "bold", hjust = 1, colour = "black",
           label = ("0")) +
  annotate("text", x = 0.57, y = -0.425, size = 4.5, fontface = "bold", hjust = 1, colour = "black",
           label = ("0.5")) +
  annotate("text", x = 1.025, y = -0.425, size = 4.5, fontface = "bold", hjust = 1, colour = "black",
           label = ("1")) +
#Set custom y-axis labels  
  annotate("text", x = -1.2, y = 0.4, size = 4.5, fontface = "bold", hjust = 1, colour = "black",
           label = ("0.4")) +
  annotate("text", x = -1.2, y = 0.205, size = 4.5, fontface = "bold", hjust = 1, colour = "black",
           label = ("0.2")) +
  annotate("text", x = -1.2, y = 0, size = 4.5, fontface = "bold", hjust = 1, colour = "black",
           label = ("0")) +
  annotate("text", x = -1.2, y = -0.195, size = 4.5, fontface = "bold", hjust = 1, colour = "black",
           label = ("-0.2")) +
  annotate("text", x = -1.2, y = -0.395, size = 4.5, fontface = "bold", hjust = 1, colour = "black",
           label = ("-0.4"))

p2 <- ggplot() +
#Add custom x-axis label
  geom_point(data = subset(fort, score == 'species'),
             mapping = aes(x = NMDS1, y = NMDS2), alpha = 0) +
#Set axis range and force rendering of objects "outside" the range
  coord_cartesian(ylim = c(-0.4, 0.4), xlim = c(-1.15, 1.15), clip = 'off') +
  geom_segment(data = subset(fort, score == 'species'),
#Adds & customizes vectors for PLFAs
               mapping = aes(x = 0, y = 0, xend = NMDS1, yend = NMDS2),
               arrow = arrow(length = unit(0, "npc"), type = "closed"),
               colour = "black", size = 0.8, alpha = 1)+
#Enable custom label colours and set to bold text
  geom_text_repel(data = subset(fort, score == 'species'),
                  mapping = aes(label = label, colour = label, x = NMDS1 * 1.025, y = NMDS2 * 1.025),
                  alpha = 1, size = 3, fontface = "bold") +
#Remove legend
  theme(legend.position="none") +
#Add custom legend
  annotate("text", x = 1.1, y = 0.365, size = 4, fontface = "bold", hjust = 1, colour = "black",
           label = ("Non-specific")) +
  annotate("text", x = 1.1, y = 0.34, size = 4, fontface = "bold", hjust = 1, colour = "#ff0000",
           label = ("Gram-positive bacteria")) +
  annotate("text", x = 1.1, y = 0.315, size = 4, fontface = "bold", hjust = 1, colour = "#ff8800",
           label = ("Gram-negative bacteria")) +
  annotate("text", x = 1.1, y = 0.29, size = 4, fontface = "bold", hjust = 1, colour = "#00b300",
           label = ("Fungi")) +
#Customize label colours
  scale_colour_manual(values=c("i15:0" = "#ff0000", "a15:0" = "#ff0000", "i16:0" = "#ff0000", "16:1ω7c" = "#ff8800", "16:1ω7t" = "#ff8800", "16:1ω5c" = "#ff8800", "16:0" = "black", "10Me 16:0" = "#ff0000", "i17:0" = "#ff0000", "a17:0" = "#ff0000", "17:1ω7c" = "#ff8800", "cy17:0" = "#ff8800", "17:0" = "black", "10Me 17:0" = "#ff0000", "18:2ω6c" = "#00b300", "18:1ω7c" = "#ff8800",  "18:1ω7t" = "#ff8800", "18:0" = "black", "10Me 18:0" = "#ff0000",  "cy19:0" = "#ff8800", "20:0" = "black")) +
#Generates coordinate system axis at the origin
  geom_abline(intercept = 0, slope = 0, linetype = "dotted", linewidth = 0.65, colour = "black") +
  geom_vline(aes(xintercept = 0), linetype = "dotted", linewidth = 0.7125, colour = "black") +
#Removes grids & background & adds a frame
  theme(panel.grid.major = element_blank(),
        panel.grid.minor = element_blank(),
        panel.background = element_blank(),
        panel.border = element_rect(colour = "black", fill = "NA", linewidth = 1, linetype = "solid")) +
#Add title below grid customization so it is in the foreground
  annotate("label", x = -1.15, y = 0.36, size = 5.5, label.size = 0, fontface = "bold", hjust = 0, colour = "black",
           label = ("(b) Slump Floor (SF)")) +
#Customize right plot axis
  theme(axis.title.y = element_blank(),
        axis.text.y = element_blank(),
        axis.ticks.length = unit(-3, "mm"),
        axis.ticks = element_line(linewidth = 1.05),
        axis.title.x = element_text(color="black", size=14, face="bold", vjust = -0.6),
#Set custom margin for better scale readability        
        plot.margin = margin(10, 10, 10, 10)) +
  scale_x_continuous(expand = c(0, 0), breaks = c(-1, -0.5, 0, 0.5, 1), labels = c("", "", "","",""), sec.axis = sec_axis(~ ., breaks = c(-1, -0.5, 0, 0.5, 1), labels = c("", "", "","",""))) +
  scale_y_continuous(expand = c(0, 0), breaks = c(-0.2, 0 , 0.2), labels = c("", "",""), sec.axis = sec_axis(~ ., breaks = c(-0.2, 0 , 0.2), labels = c("", "",""))) +
#Set custom x-axis labels
  annotate("text", x = -0.95, y = -0.425, size = 4.5, fontface = "bold", hjust = 1, colour = "black",
           label = ("-1")) +
  annotate("text", x = -0.43, y = -0.425, size = 4.5, fontface = "bold", hjust = 1, colour = "black",
           label = ("-0.5")) +
  annotate("text", x = 0.025, y = -0.425, size = 4.5, fontface = "bold", hjust = 1, colour = "black",
           label = ("0")) +
  annotate("text", x = 0.57, y = -0.425, size = 4.5, fontface = "bold", hjust = 1, colour = "black",
           label = ("0.5")) +
  annotate("text", x = 1.025, y = -0.425, size = 4.5, fontface = "bold", hjust = 1, colour = "black",
           label = ("1"))

#Generate multi-panel plot with 2 columns & add/customize labels
ggarrange(p1, p2, ncol = 2, nrow = 1, widths = c(1.06, 1), align = "h")

Fig. 1

JariO's approach:

library(vegan)
library(dplyr)
library(ggplot2)
library(ggvegan)
library(ggrepel)
library(ggpubr)
#Load data
data <- read.csv2("comSFdata.csv", header = TRUE, check.names = FALSE)
#Create new dataframe w/o 1. column
com = data[,2:ncol(data)]
#Turn data from dataframe to matrix format
mcom = as.matrix(com)
#Run NMDS - set.seed for reproducibility
set.seed(123)
nmds1 <- metaMDS(mcom, distance = "bray", k = 2, trymax = 10000)
#Prepare data for plotting
fort <- fortify(nmds1)
#Add workaround for adding back Treatment groups
fort['Treatment'] <- wa['Treatment']
#Remove rows without Treatment info
newfort <- na.omit(fort)

label <- c("#C77CFF","#C77CFF","#C77CFF","#C77CFF","#00BFC4","#00BFC4","#00BFC4","#00BFC4","#F8766D","#F8766D","#F8766D","#F8766D","#7CAE00","#7CAE00","#7CAE00","#7CAE00")
label2 <- c("#C77CFF","#00BFC4","#F8766D","#7CAE00")

#Ordibar
ordiplot(nmds1, display = "sites", type = "none", main = "Ordibar NMDS")
ordibar(nmds1, display = "sites", groups = data$Treatment, col = label2, length = 0.2)
points(newfort[, 3], newfort[, 4], pch = 16, cex = 1.5, col = label)
ordiellipse(nmds1, groups = data$Treatment, draw = "lines", col = label2, alpha = 1)

Fig. 2

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Teodor
  • User mentioned (0): @JariOksanen
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: André Faust

79184493

Date: 2024-11-13 10:43:26
Score: 0.5
Natty:
Report link

Hardly a solution (more like turn it on and off again) and most likely overkill but here's what I did:

  rm -rf ~/.vscode*
  rm -rf ~/Library/Application\ Support/Code
  rm -rf ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState
  rm -rf ~/Library/Preferences/com.microsoft.VSCode.helper.plist 
  rm -rf ~/Library/Preferences/com.microsoft.VSCode.plist 
  rm -rf ~/Library/Caches/com.microsoft.VSCode
  rm -rf ~/Library/Caches/com.microsoft.VSCode.ShipIt
  sudo rm -rf /Applications/Visual\ Studio\ Code.app

Reinstalled VScode and Code Runner.

The instead of messing with JSON directly. Just used default checkboxes

enter image description here

JSON output of this:

    {
    "code-runner.executorMap": {

        "javascript": "node",
        "java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
        "c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
        "zig": "zig run",
        "cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
        "objective-c": "cd $dir && gcc -framework Cocoa $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
        "php": "php",
        "python": "python3 -u",
        "perl": "perl",
        "perl6": "perl6",
        "ruby": "ruby",
        "go": "go run",
        "lua": "lua",
        "groovy": "groovy",
        "powershell": "powershell -ExecutionPolicy ByPass -File",
        "bat": "cmd /c",
        "shellscript": "bash",
        "fsharp": "fsi",
        "csharp": "scriptcs",
        "vbscript": "cscript //Nologo",
        "typescript": "ts-node",
        "coffeescript": "coffee",
        "scala": "scala",
        "swift": "swift",
        "julia": "julia",
        "crystal": "crystal",
        "ocaml": "ocaml",
        "r": "Rscript",
        "applescript": "osascript",
        "clojure": "lein exec",
        "haxe": "haxe --cwd $dirWithoutTrailingSlash --run $fileNameWithoutExt",
        "rust": "cd $dir && rustc $fileName && $dir$fileNameWithoutExt",
        "racket": "racket",
        "scheme": "csi -script",
        "ahk": "autohotkey",
        "autoit": "autoit3",
        "dart": "dart",
        "pascal": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt",
        "d": "cd $dir && dmd $fileName && $dir$fileNameWithoutExt",
        "haskell": "runghc",
        "nim": "nim compile --verbosity:0 --hints:off --run",
        "lisp": "sbcl --script",
        "kit": "kitc --run",
        "v": "v run",
        "sass": "sass --style expanded",
        "scss": "scss --style expanded",
        "less": "cd $dir && lessc $fileName $fileNameWithoutExt.css",
        "FortranFreeForm": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
        "fortran-modern": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
        "fortran_fixed-form": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
        "fortran": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
        "sml": "cd $dir && sml $fileName",
        "mojo": "mojo run",
        "erlang": "escript",
        "spwn": "spwn build",
        "pkl": "cd $dir && pkl eval -f yaml $fileName -o $fileNameWithoutExt.yaml",
        "gleam": "gleam run -m $fileNameWithoutExt"
    },
    "code-runner.clearPreviousOutput": true,
    "code-runner.showExecutionMessage": false
}
Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Nick

79184472

Date: 2024-11-13 10:36:24
Score: 3
Natty:
Report link

require "sinatra" require "dotenv/load" require "net/http" require "json"

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

79184461

Date: 2024-11-13 10:34:24
Score: 1
Natty:
Report link

There is a circular dependency.

constructor(@Inject(forwardRef(() => UserService)) private readonly userService: UserService) {}

add this line in your service of auth. (Auth.service.ts)

and try to share the code of AuthServices too.

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

79184448

Date: 2024-11-13 10:32:23
Score: 0.5
Natty:
Report link

If you are adding breakpoint on a package, make sure that package is linked to the flutter project. Sometime we might have linked the package from git, and expecting the brake-point on local to work.

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

79184441

Date: 2024-11-13 10:31:18
Score: 14.5 🚩
Natty: 5.5
Report link

Recently on october 2024 I updraded my laptop to 24H2 from 23H2, since then I couldn't login with domain user and while readding with domain I get the same error The following error occurred when DNS was queried for the service location (SRV) resource record used to locate an Active Dire

The error was: "DNS name does not exist." (error code 0x0000232B RCODE_NAME_ERROR)

The query was for the SRV record for _ldap._tcp.dc._msdcs.domain.com

Common causes of this error include the following:

.

How did you solve this issue?

Thanks in advance..

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Thanks in advance
  • RegEx Blacklisted phrase (3): did you solve this
  • RegEx Blacklisted phrase (1.5): solve this issue?
  • RegEx Blacklisted phrase (1): I get the same error
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I get the same error
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Surendranadh

79184440

Date: 2024-11-13 10:31:16
Score: 8 🚩
Natty:
Report link

could you provide more code or details? I'm having trouble understanding your issue as it stands.

Reasons:
  • RegEx Blacklisted phrase (2.5): could you provide
  • RegEx Blacklisted phrase (2): I'm having trouble
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Amine Takdenti

79184435

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

You can use "Python Getter Setter" extension: Marketplace

Python Getter Setter extension capture

0 -> Install extension

1 -> Select args

2 -> Command Pallete (Ctrl + Shift + P)

3 -> Generate Getter Setter for Python

4 -> Done

With images:

Select args

Command Pallete

Generate Getter Setter for Python

Done

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Iker Leñena

79184431

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

Now I had actually installed multiple environments from where I'd launch jupyter randomly, there was the problem even when I tried the pip install or !pip install it didn't work, turned out that it was the python location issue so while using the note before you begin on the first cell type

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

79184400

Date: 2024-11-13 10:23:13
Score: 2
Natty:
Report link

in the file .graphqlrc.ts change

module.exports = getConfig();

to

export default getConfig();

then in the Schemas and Project Structure tab click on the root icon and press Restart Schema discovery button.

enter image description here

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

79184396

Date: 2024-11-13 10:21:13
Score: 0.5
Natty:
Report link

I faced the same issue and the issue was the using wrong cron expression. As an example, if I use */2 * * * * to schedule every 2 minutes, it fires multiple times but not with 0 0/2 * 1/1 * ? *.

I used cronmaker to build the schedules, it uses the so-called Quartz format.

Thanks @jitender.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @jitender
  • High reputation (-1):
Posted by: Sanka Sanjeeva

79184394

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

To restrict access on the project level, you may:

  1. Update permissions of your project area level:

work item area permissions

  1. Update permissions on the root of pipelines

builds permissions

  1. The same for the repos:

repos permissions

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

79184393

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

If your PostgreSQL data is being deleted automatically in a local Kubernetes cluster, this typically points to an issue with the storage configuration. In Kubernetes, the default storage type, emptyDir, is ephemeral. When emptyDir is used, the data is deleted each time the pod is terminated or recreated, leading to data loss. To resolve this, use a PersistentVolume (PV) and PersistentVolumeClaim (PVC) for your PostgreSQL data. This setup ensures that data persists even if the pod restarts or is replaced. also visit: Best ott apps

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

79184376

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

The aws configure command only requests for the Access Key Id and secret access key. To solve the issue open the credentials file, located at C:\Users\YOURUSER.aws then add aws_session_token=YOUR TOKEN to the credentials file under default. This should solve the issue

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

79184372

Date: 2024-11-13 10:13:11
Score: 1.5
Natty:
Report link

It seems the problem you are trying to set the PATH environment variable.

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

79184369

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

It can even handle 2009 digit numbers as integeres flawless.

number = 0 for i in range(0,2010): number += 9*10**i print(str(number))

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Miklós Soós

79184366

Date: 2024-11-13 10:11:11
Score: 1.5
Natty:
Report link

I encountered the same issue after installing @react-native-firebase/app version 21.4.0. To resolve it, I downgraded @react-native-firebase/app, @react-native-firebase/auth, and @react-native-firebase/firestore to version 19.0.0. After the downgrade, everything worked fine for me.

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

79184361

Date: 2024-11-13 10:11:11
Score: 0.5
Natty:
Report link

I found this question today when looking for such a diagram for WPF controls.

When searching for wpf controls inheritance diagram or wpf controls class hierarchy diagram, it shows that there are a couple of diagrams for WPF control inheritance:
https://medium.com/wpf-windows-presentation-foundations-by-peculia/wpf-overview-controls-class-hierarchies-d8f373a3a62f (only a few classes)
https://kittencode.wordpress.com/2011/02/03/wpf-class-hierarchy-diagram/ (seems to be complete)
http://www.japf.fr/2010/01/wpf-internals-how-the-wpf-controls-are-organised/ (many classes, but likely not complete; shows properties)

I have not checked any of them, thus I cannot tell whether they are complete or correct.

When searching quickly for uwp controls class hierarchy diagram, I was not able to find something similar. But I did not put much effort in this search, because I needed the diagram for WPF.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (0.5): medium.com
  • Blacklisted phrase (0.5): I cannot
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Tobias Knauss

79184356

Date: 2024-11-13 10:09:08
Score: 12.5 🚩
Natty: 6
Report link

Having the same issue using a clean setup with yarn create next-app --typescript

Did you find any solution?

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (3): Did you find any solution
  • RegEx Blacklisted phrase (2): any solution?
  • Low length (1):
  • Has code block (-0.5):
  • Me too answer (2.5): Having the same issue
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Valleywood

79184353

Date: 2024-11-13 10:08:07
Score: 0.5
Natty:
Report link

Found solution by adding path of chrome to the chrome options. (using options.binary_location)

import undetected_chromedriver as uc
options = webdriver.ChromeOptions()
options.binary_location = "/usr/bin/google-chrome"
driver = uc.Chrome(options=options)

For above to work, chrome and chromedriver have to have matching versions.

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

79184346

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

Thank you heaps, I had the same behaviour and it was driving me nuts ... Weirdly though, my colleguaes used the same image and it w

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Benedikt Schöffmann

79184334

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

In my case, I simply updated the Git plugin in Jenkins and then restarted Jenkins to apply the changes.

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

79184332

Date: 2024-11-13 10:01:05
Score: 3
Natty:
Report link

Like this?

library(ggplot2)

df <- data.frame(
  location = c(1, 2, 2, 1),
  year = c(22, 23, 24, 22),
  measurement = c("parameter1", "parameter2", "parameter1", "parameter3"),
  value = c(3, 2, 4, 2),
  treatment = c("A", "B", "A", "C")
)

ggplot(df, aes(x = factor(year), y = value, fill = treatment)) +
  geom_bar(stat = "identity", position = "stack") +
  facet_wrap(~ location) +
  labs(x = "Year", y = "Value", fill = "Treatment") +
  theme_minimal()

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Jóhann Páll Hreinsson

79184329

Date: 2024-11-13 10:01:05
Score: 1
Natty:
Report link

the value of u you are calculating needs to be fixed with proper use of braces

here's the correct version:

u = ((a + math.sqrt(a**2 - 1))**2) * ((b + (math.sqrt(b**2 - 1)))**2) * (c + (math.sqrt(c**2 - 1))) * (d + (math.sqrt(d**2 - 1)))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Prathamesh Pawar

79184328

Date: 2024-11-13 10:01:05
Score: 1
Natty:
Report link

enter image description here

Easy, use the excellent nirsoft portable tool to disable context menu items that you don't want.

Changes take effect immediately.

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

79184323

Date: 2024-11-13 10:00:05
Score: 0.5
Natty:
Report link

For those using poetry this might help

CFLAGS="-I$(brew --prefix graphviz)/include/ -L$(brew --prefix graphviz)/lib/" poetry install
Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: krisgeus

79184317

Date: 2024-11-13 09:58:02
Score: 6 🚩
Natty:
Report link

We are facing the same problem, we opened an issue on the roadmap

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): facing the same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: pmbi10231

79184310

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

So after I understood that the issue was just in vscode, I found that is a know issue of Intelephense due the fact that in older php versions, constants could not be declared in php traits

https://github.com/bmewburn/vscode-intelephense/issues/2024

the solution is to suppress the message using /** @disregard P1012 */ on top like this

MyTrait.php

<?php

namespace App;

class MyTrait {
    
    public function myTraitMethod() {
        /** @disregard P1012 */
        return self::MY_CONST;
    }
}
Reasons:
  • Whitelisted phrase (-1): solution is
  • Has code block (-0.5):
  • User mentioned (1): @disregard
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: silvered.dragon

79184300

Date: 2024-11-13 09:54:01
Score: 2
Natty:
Report link

Have you already tried a higher learning rate? I would maybe go up to 0.02.

And what could also help would be normalizing the data. The values are very high, so for the model the step between 82000 and 90000 is not that big. Maybe try min/max normalization.

Neuronal networks are often try and error - so just try it out and play with the parameters.

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

79184297

Date: 2024-11-13 09:53:01
Score: 1
Natty:
Report link

Checking for amount of found locators should work

def is_element_present(selector):
    if page.locator(selector).count == 0:
        // No elements were found by this selector
        returns False
    return True
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: KinderAndry