79189343

Date: 2024-11-14 15:08:37
Score: 0.5
Natty:
Report link

I don't think it's a good idea to "ignore" warnings.

Tracking expression caused re-creation of the DOM structure.

The identity track expression specified in the @for loop caused re-creation of the DOM corresponding to all items. This is a very expensive operation that commonly occurs when working with immutable data structures. For example:

@Component({
  template: `
    <button (click)="toggleAllDone()">All done!</button>
    <ul>
    @for (todo of todos; track todo) {
      <li>{{todo.task}}</li>
    }
    </ul>
  `,
})
export class App {
  todos = [
    { id: 0, task: 'understand trackBy', done: false },
    { id: 1, task: 'use proper tracking expression', done: false },
  ];
  toggleAllDone() {
    this.todos = this.todos.map(todo => ({ ...todo, done: true }));
  }
}

In the provided example, the entire list with all the views (DOM nodes, Angular directives, components, queries, etc.) are re-created (!) after toggling the "done" status of items. Here, a relatively inexpensive binding update to the done property would suffice.

Apart from having a high performance penalty, re-creating the DOM tree results in loss of state in the DOM elements (ex.: focus, text selection, sites loaded in an iframe, etc.).

Fixing the error : Change the tracking expression such that it uniquely identifies an item in a collection, regardless of its object identity. In the discussed example, the correct track expression would use the unique id property (item.id):

@Component({
  template: `
    <button (click)="toggleAllDone()">All done!</button>
    <ul>
    @for (todo of todos; track todo.id) {
      <li>{{todo.task}}</li>
    }
    </ul>
  `,
})
export class App {
  todos = [
    { id: 0, task: 'understand trackBy', done: false },
    { id: 1, task: 'use proper tracking expression', done: false },
  ];
  toggleAllDone() {
    this.todos = this.todos.map(todo => ({ ...todo, done: true }));
  }
}

https://angular.dev/errors/NG0956

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

79189342

Date: 2024-11-14 15:08:37
Score: 0.5
Natty:
Report link

I'm posting this answer for anyone that stumbles here in the future.

Currently (2024) you can enable address sanitizer in godbolt by passing in the -fsanitize=address limit. It works!

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

79189340

Date: 2024-11-14 15:07:36
Score: 1
Natty:
Report link

One year later, the issue still seems not to be fixed. I am using node v22.11.0. The problem comes from whatwg-url node module

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Philippe Corrèges

79189326

Date: 2024-11-14 15:04:36
Score: 2.5
Natty:
Report link

I finally got a working example from the Azure ResourceManager github project:

https://github.com/Azure/azure-sdk-for-net/issues/46369#issuecomment-2469693141

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

79189317

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

As phd said in his comment what was missing was this:

unset $(git rev-parse --local-env-vars)

before

test=$(cd ../../; git remote -vv | grep 'my_special_repo')

so that environment variables like GIT_DIR are reset and therefore the hook's script works as expected. This is based on this answer.

PS: Now that it works I reworked my script to its more appropriate form (in my opinion):

test=$(git -C ../../ remote -vv | grep 'my_special_repo')
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: GiatManos

79189316

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

You can wrap your method into something new and add ReSharper instruction. E.g. make a log wrapper like this:

public static class BDebug
{
        public static void LogException(Exception e)
        {
            _logException(e);
        }

        // THIS WILL DISABLE PERFORMANCE ANALYS

        // ReSharper disable Unity.PerformanceAnalysis
        private static void _logException(Exception e)
        {
            UnityEngine.Debug.LogException(e);
        }
}

Actually. I don't recommend you disabling it. I have seen Unity profiler log samples, and when stack traces are enabled it causes enormous CPU spikes, specially on weak devices (mobile).

ZTE Blade L9:

ZTE Blade L9, Unity.Log(), 4ms

The code behind: enter image description here

For comparison. This is bush-made gizmo render, rendering 1k shapes, the same ZTE Blade L9: enter image description here

The code behind:

using System.Collections.Generic;
using Beast.Claw.Common;
using Beast.Claw.Debug;
using Beast.Claw.GameCycle;
using Beast.Claw.Graphic;
using Beast.Claw.Mathematics;
using Cysharp.Threading.Tasks;
using Unity.Collections;
using Unity.Mathematics;
using UnityEngine;
using UnityEngine.Profiling;
using UnityEngine.Rendering;

namespace Beast.Claw.Gizmo
{
    public class GizmoRender : Controller, IGizmoManager, IGameCycleListener
    {
        private struct HandleInfo
        {
            public GizmoHandle handle;
            public IController owner;
        }

        private const int MAX_TEXTURE_SIZE = 128;
        
        private readonly ICameraTransform _camera;
        private readonly IScreen _screen;
        private readonly GizmoConfig _config;

        private RenderTexture _canvas;
        private int2 _canvasSize;
        private List<HandleInfo> _handles;
        private Material _canvasMaterial;
        private Material _shapeMaterial;

        private Texture2D[] _texturePool;
        private NativeArray<ushort> _floatBuffer;

        private CommandBuffer _commandBuffer;

        private int _prevTexturePower;
        private int _prevShapeCount;

        public GizmoRender(
            ICameraTransform camera, 
            IScreen screen,
            GizmoConfig config)
        {
            _camera = camera;
            _screen = screen;
            _config = config;
        }
        
        public void Register(IGameCycleHandle handle)
        {
            handle.ListenConcurrent(ActionID.WARMUP, _warmup);
            handle.ListenBlocking(ActionID.RENDER, _render);
            handle.ListenBlocking(ActionID.DISPOSE, _dispose);
        }
        
        public IGizmoHandle CreateHandle(IController owner)
        {
            owner.ValidateNotNullThrowException(nameof(owner));

            HandleInfo info = new ()
            {
                handle = new GizmoHandle(),
                owner = owner,
            };

            _handles.Add(info);

            return info.handle;
        }
        
        private UniTask _warmup(ConcurrentContext context)
        {
            Texture2DParameters textureData = new()
            {
                createInitialized = false,
                format = TextureFormat.RGBAHalf,
                isLinear = true,
                mipChain = false,
                texture = new PlanarTextureData
                {
                    filterMode = FilterMode.Point,
                    wrapMode = TextureWrapMode.Clamp
                }
            };
            
            int maxTexturePower = BMath.CeilToInt(BMath.Log2(MAX_TEXTURE_SIZE));
            _texturePool = new Texture2D[maxTexturePower + 1];
            
            for (int i = 0; i <= maxTexturePower; i++)
            {
                _texturePool[i] = BGraphic.CreateTexture2D(this, textureData.WithSize(1 << i));
            }
            
            _handles = new List<HandleInfo>(64);
            
            _canvasMaterial = BGraphic.CreateMaterial(this, _config.canvasShader);
            _shapeMaterial = BGraphic.CreateMaterial(this, _config.shapeShader);
            _commandBuffer = new CommandBuffer();

            _canvas = _setupCanvas(_screen.Size);
            
            return UniTask.CompletedTask;
        }

        private void _render(BlockingContext context)
        {
            if (!_canvasSize.Equals(_screen.Size))
            {
                BGraphic.Dispose(_canvas);

                _canvas = _setupCanvas(_screen.Size);
            }

            int shapeCount = 0;
            
            Profiler.BeginSample("CreateFloatBuffer");
            for (int i = 0; i < _handles.Count; i++)
            {
                HandleInfo handle = _handles[i];

                if (handle.handle.IsDisposed)
                {
                    _handles.RemoveAtSwapBack(i--);
                    continue;
                }

                int handleShapeCount = handle.handle.shapeCount;
                if (handleShapeCount == 0)
                {
                    continue;
                }
                
                GizmoUtil.EnsureCapacity(ref _floatBuffer, shapeCount + handleShapeCount);
                
                _floatBuffer.Slice(shapeCount * GizmoUtil.FLOAT_PER_SHAPE, handleShapeCount * GizmoUtil.FLOAT_PER_SHAPE)
                    .CopyFrom(handle.handle.buffer.Slice(0, handleShapeCount * GizmoUtil.FLOAT_PER_SHAPE));

                shapeCount += handleShapeCount;
            }
            Profiler.EndSample();

            if (shapeCount == 0)
            {
                return;
            }

            int textureSize = BMath.CeilToInt(BMath.Sqrt(_floatBuffer.Length / 4.0f));
            if (textureSize > MAX_TEXTURE_SIZE)
            {
                BDebug.LogError(this, $"Too big gizmo buffer: ({textureSize * textureSize})");
                return;
            }

            int texturePower2 = BMath.CeilToInt(BMath.Log2(textureSize));
            Texture2D texture = _texturePool[texturePower2];
                
            Profiler.BeginSample("SetPixelData");
            texture.SetPixelData(_floatBuffer, 0);
            texture.Apply();
            Profiler.EndSample();

            if (_prevTexturePower != texturePower2)
            {
                Profiler.BeginSample("SetShapeMaterialParams #2");
                _shapeMaterial.SetTexture("_DataTexture", texture);
                _shapeMaterial.SetFloat("_DataTextureSize", 1 << texturePower2);
                _prevTexturePower = texturePower2;
                Profiler.EndSample();
            }

            _setupMaterialsRare();
            
            Profiler.BeginSample("SetShapeMaterialParams #1");
            _shapeMaterial.SetFloat2("_RenderCenter", _camera.Position);
            _shapeMaterial.SetFloat("_RenderDistance", _camera.ViewDistance);
            Profiler.EndSample();
            
            Profiler.BeginSample("SetRenderTarget");
            Graphics.SetRenderTarget(_canvas);
            Profiler.EndSample();
            
            GL.Clear(true, true, Color.clear);

            if (_prevShapeCount != shapeCount)
            {
                Profiler.BeginSample("SetCommandBufferParams");
                _commandBuffer.Clear();
                _commandBuffer.SetRenderTarget(_canvas);
                _commandBuffer.DrawMeshInstancedProcedural(_config.quadMesh, 0, _shapeMaterial, 0, shapeCount);
                Profiler.EndSample();
                _prevShapeCount = shapeCount;
            }

            Profiler.BeginSample("ExecuteCommandBuffer");
            BGraphic.ExecuteBuffer(_commandBuffer);
            Profiler.EndSample();

            Graphics.SetRenderTarget(null);
            
            Profiler.BeginSample("DrawCanvas");
            BGraphic.DrawMeshDelayed(new DrawMeshTask
            {
                material = _canvasMaterial,
                matrix = new Float4x4TRS
                {
                    rotation = Quaternion.identity,
                    scale = new float3(_screen.Aspect, 1, 1),
                    translation = new float3(0, 0, RenderOrderZ.Gizmo)
                },
                mesh = _config.quadMesh
            });
            Profiler.EndSample();
        }

        private RenderTexture _setupCanvas(int2 screenSize)
        {
            RenderTexture canvas = BGraphic.CreatePermRenderTexture(this, new RenderTextureData
            {
                format = RenderTextureFormat.ARGB32,
                texture = new PlanarTextureData
                {
                    filterMode = FilterMode.Point,
                    wrapMode = TextureWrapMode.Clamp,
                    size = screenSize
                },
                temp = new TempRenderTextureData
                {
                    antiAliasing = 1
                }
            });
            
            _canvasSize = screenSize;
            
            _setupMaterialsRare();

            return canvas;
        }

        private void _setupMaterialsRare()
        {
            Profiler.BeginSample("_setupMaterialsRare");
            
            _shapeMaterial.SetFloat2("_ScreenSize", _canvasSize);
            _canvasMaterial.SetTexture("_Texture", _canvas);

            float rollCos = BMath.Cos(_camera.RotationRad.roll);
            float pitchCos = BMath.Cos(_camera.RotationRad.pitch);
            
            float2x2 rotation = float2x2.Rotate(_camera.RotationRad.roll * -1);
            float2x2 scale = float2x2.Scale(1, pitchCos);
            
            _shapeMaterial.SetFloat2x2("_ViewMatrix0", rotation);
            _shapeMaterial.SetFloat2x2("_ViewMatrix1", scale);
            
            _shapeMaterial.SetFloat("_ProjectionScale", 1f / (rollCos * pitchCos));
            
            Profiler.EndSample();
        }
        
        private void _dispose(BlockingContext context)
        {
            BGraphic.Dispose(_canvas);

            foreach (Texture2D texture in _texturePool)
            {
                BGraphic.Dispose(texture);
            }

            _floatBuffer.Dispose();
            _commandBuffer.Dispose();

            BGraphic.Dispose(_canvasMaterial);
            BGraphic.Dispose(_shapeMaterial);
        }
    }
}

Particularly, I have been googling for this question, because I needed to disable it in the very specific case, where it is allowed:

        // ReSharper disable Unity.PerformanceAnalysis
        public static string ToStringNonAlloc(this int value)
        {
            if (value < 0 && -value <= _negativeBuffer.Length)
            {
                return _negativeBuffer[value * -1 - 1];
            }

            if (value >= 0 && value < _positiveBuffer.Length)
            {
                return _positiveBuffer[ value];
            }

            if (!_allocationReported)
            {
                _allocationReported = true;
                
                Debug.LogError("ToStringNonAlloc() Failed. Not withing range: " + value);
            }
            
            return value.ToString();
        }

Note, that log can be produced only once: enter image description here

Reasons:
  • Blacklisted phrase (0.5): I need
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Victor

79189312

Date: 2024-11-14 15:03:35
Score: 3
Natty:
Report link

ThinkGeo recently formalized GeoPackage support using the GdalFeatureLayer. There is a blog post and samples here.

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

79189308

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

Be careful that you haven't restricted a property like this

owner: String @auth(rules: [{allow: owner, operations:[read, create]}])

And try to delete the parent, when a property doesn't have the delete operation, which will prevent the parent from being deleted.

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

79189304

Date: 2024-11-14 15:02:35
Score: 2
Natty:
Report link

The same, as @John Nyingi's answer, but just with async test method

 [Fact]
public async Task Test()
{
    Task createUserTask = service.CreateUser(user);
    await createUserTask; // there is no lock of the current thread here

    Assert.True(createUserTask.IsCompletedSuccessfully);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @John
  • Low reputation (1):
Posted by: VladimirK

79189298

Date: 2024-11-14 15:01:33
Score: 7.5 🚩
Natty: 4.5
Report link

How did you get on using the API? Was this before they put it behind a paywall? If not do you mind me asking what the fees are?

I really appreciate any help you can provide.

Reasons:
  • Blacklisted phrase (1): any help
  • RegEx Blacklisted phrase (3): did you get
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How did you
  • Low reputation (1):
Posted by: user28300818

79189295

Date: 2024-11-14 15:00:32
Score: 2
Natty:
Report link

The problem is that i don't have configured the jdk-dir in flutter

flutter config --jdk-dir /Library/Java/JavaVirtualMachines/jdk-20.jdk/Contents/Home
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Luis Alberto Murcia Solivella

79189281

Date: 2024-11-14 14:57:31
Score: 4.5
Natty:
Report link

I am facing the same issue, I created the NCC, I am able to reach from onprem. yet, when not able to send traffic to the internet, thus I created a VPN tunnel between HUB-SPOKE, and a default route using the tunnel from the spoke and a reverse route to the nodes subnet on the HUB, yet the Traffic is intermittent, return traffic is lost somewhere. I really appreciate to share the best practice, so the solution proposed will be able to assist all possible traffic scenarios (will the DNS-based endpoint solve it) rather than using a mix of NCC+VPN

Thanks,

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same issue
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Ayman

79189234

Date: 2024-11-14 14:48:28
Score: 1.5
Natty:
Report link

one year too late, but maybe it will help someone. Fastify library binds by defualt to localhost interface only. So if you have dockerized enviroment and the app is not visible from outside, try specify the ip address to bind to, ie

await app.listen(port, '0.0.0.0')

to listen on all interfaces ...

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

79189218

Date: 2024-11-14 14:44:27
Score: 2.5
Natty:
Report link

Is this what you mean?

import numpy as np
import matplotlib.pyplot as plt
from matplotlib.colors import LinearSegmentedColormap

x = [1, 2, 3, 4, 5]
y1 = [1, 1, 2, 3, 5]
y2 = [0, 4, 2, 6, 8]
y3 = [1, 3, 5, 7, 9]

y = np.vstack([y1, y2, y3])

labels = ["Fibonacci", "Evens", "Odds"]

fig, ax = plt.subplots()

# Create a custom colormap
cmap = LinearSegmentedColormap.from_list("custom_cmap", ["green", "transparent"])

# Plot the first two areas normally
ax.stackplot(x, y1, y2, labels=labels[:2])

# Plot the "Odds" area with a gradient
for i in range(len(x) - 1):
    ax.fill_between(x[i:i+2], y1[i:i+2] + y2[i:i+2], y1[i:i+2] + y2[i:i+2] + y3[i:i+2], 
                    color=cmap(i / (len(x) - 1)))

ax.legend(loc='upper left')
plt.show()
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is this
  • Low reputation (1):
Posted by: GaTe

79189209

Date: 2024-11-14 14:42:26
Score: 0.5
Natty:
Report link

Ionic and Capacitor generally aim to support a wide range of Android versions, but there can be limitations based on the libraries and plugins you are using, as well as the minimum SDK version specified in your project.

  1. Minimum SDK Version: Check the build.gradle file in your Android project (usually located at android/app/build.gradle). Look for the minSdkVersion setting. If it's set to a value higher than 24 (which corresponds to Android 7), your app won't run on Android 7 devices.

  2. Plugin Compatibility: Some Capacitor plugins may require a minimum version higher than Android 7. Review the documentation for any plugins you are using to ensure they support Android 7.

  3. WebView Compatibility: Older Android versions use older WebView implementations, which may not support newer JavaScript features or CSS. Ensure that your app's code is compatible with older browsers. Testing on Real Device: Sometimes, emulators can behave differently than real devices. If possible, test on a physical Android 7 device to see if the issue persists.

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

79189200

Date: 2024-11-14 14:40:25
Score: 4.5
Natty:
Report link

I am not sure why my previous answer was hidden.

There is a possibility to report the issue in this window. Please send me an ID of the reported issue.

If you are unable to do it, then please create a ticket via YouTrack: https://youtrack.jetbrains.com/newIssue

Thank you!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (2.5): Please send me
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Anton Mefodichev

79189193

Date: 2024-11-14 14:39:25
Score: 3
Natty:
Report link

Search for "@builtin" in extension list and enable basic extensions. This resolved my issue.

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

79189187

Date: 2024-11-14 14:38:25
Score: 1
Natty:
Report link
Modifier.clickable(
    interactionSource = null,
    indication = null,
    onClick = {})
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user2912087

79189168

Date: 2024-11-14 14:33:24
Score: 1.5
Natty:
Report link

I found the setting and the name of the bar. It is the Results: Show Action Bar.

screenshot snippet of settings showing the showActionBar toggle

You can add "queryEditor.results.showActionBar": false, to your settings.json to hide it.

Have a nice day!

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Daniel 'Dang' Griffith

79189164

Date: 2024-11-14 14:32:23
Score: 2.5
Natty:
Report link

shnf r 84jn [3oijh3we6rt235pj3nwreg y24 phfg uwya th 43eqw5t bgrtfwe8ytfnewrg6yt43085j 4yt 743564895y87345873495y874t834 y438976y439y598746y598349875y435y87qa1239y4393458yt43597y43976y4396y30459345897y349y y43t3 4 4y8 tg34t7y529ay pyt eptghe344 to44 tli45tyhjj

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

79189162

Date: 2024-11-14 14:31:20
Score: 6 🚩
Natty:
Report link

Answer from @xtermi2 worked for me. i can't upvote so

Reasons:
  • Blacklisted phrase (0.5): upvote
  • Whitelisted phrase (-1): worked for me
  • RegEx Blacklisted phrase (2): can't upvote
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @xtermi2
  • Single line (0.5):
  • Low reputation (1):
Posted by: yashas r

79189157

Date: 2024-11-14 14:28:19
Score: 2
Natty:
Report link

i was facing same issue, but in my case i was papulating the 'user' object in the requests collection, so i had to import the usermodal , in the api of the next js , like in route.js file, code image

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

79189151

Date: 2024-11-14 14:26:19
Score: 1
Natty:
Report link

Launching lib\main.dart on Android SDK built for x86 in debug mode... main.dart:1 Parameter format not correct -

FAILURE: Build failed with an exception.

File google-services.json is missing. The Google Services Plugin cannot function without it. Searched Location: C:\Users\DELL\Desktop\ahmed1\student management\android\app\src\debug\google-services.json C:\Users\DELL\Desktop\ahmed1\student management\android\app\src\google-services.json

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

79189134

Date: 2024-11-14 14:23:18
Score: 1
Natty:
Report link
<script src="flutter_bootstrap.js?v=1.1" async></script>

Add the ?v=1.1 to the index.html file and update the version as needed and it will do the job. I used it for Flutter web and for others !DOCTYPE html> <html> <head> <title>Your App Title</title> <link rel="stylesheet" href="styles.css?v=1.1"> </head> <body> <script src="app.js?v=1.1"></script> </body> </html> ?v=1.1" add this to stylesheet and js file

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Mashud Ahmed Talukdar

79189133

Date: 2024-11-14 14:23:18
Score: 3
Natty:
Report link

To rewrite as you wish use the following text and duplicate it with the good argument each time i.e :

RewriteCond %{QUERY_STRING} ^url_query=my-article$ RewriteRule ^page$ https://www.website.com/page/my-article? [R=301,L]

Or with automation

RewriteCond %{QUERY_STRING} url_query=(.) RewriteRule ^(.)/url_query=$ $1?page=%{QUERY_STRING} [R=301,L]

R=301 : Type of redirection permanent means after SEO and all stuf you will "maybe" delete the old url. In any case the good url is this one ...

Have a good day...

Reasons:
  • Blacklisted phrase (1): good day
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Grimoun

79189132

Date: 2024-11-14 14:22:17
Score: 4
Natty: 4
Report link

Access error, Run in admin access and reinstall the base files again.

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

79189129

Date: 2024-11-14 14:21:17
Score: 5
Natty:
Report link

I am facing similar issue, and when I appended "voip" to the app bundle (e.g., bundleID.voip), the server-side error changed from 500 to 200, indicating success. However, I am still not receiving the VOIP push notifications in my app.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing similar issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Muhammad Wazzah Iftikhar

79189126

Date: 2024-11-14 14:21:16
Score: 1
Natty:
Report link

These are excellent best practices for incorporating SQL queries in Python projects. They provide a robust foundation for building scalable and maintainable code. Here’s a brief summary of each point, along with some additional insights:

Separate SQL Files/Directory: Storing SQL queries in a dedicated directory (queries/ or sql/) keeps the project organized. Clear file naming (e.g., create_table.sql, fetch_data.sql) ensures quick access to specific queries.

Dynamic Query Loading: Using a function like load_query to read from .sql files keeps Python code uncluttered and focuses Python scripts on logic rather than SQL syntax.

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

79189125

Date: 2024-11-14 14:21:16
Score: 2
Natty:
Report link

You can have a look at the DNS Firewall. For me it provided the best tradeoff between easy configuration and a acceptable level of security. A good tutorial can be found here

Reasons:
  • Blacklisted phrase (1.5): A good tutorial
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: gratinierer

79189124

Date: 2024-11-14 14:20:16
Score: 1.5
Natty:
Report link

Apparently MailChimp want users to use the HTML: prefix when printing a full URL. The URL: prefix is for adding query arguments. Weird.

*|HTML:MERGE12|*
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Tommizzy

79189120

Date: 2024-11-14 14:19:16
Score: 1
Natty:
Report link

Building on the answer by @David Faure, I have the following simpler method:

find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module NumPy)

find_package(Boost 1.82 REQUIRE COMPONENTS 
             python${Python_VERSION_MAJOR}${Python_VERSION_MINOR} 
             # uses the versions found by find_package(Python3 ...) above,
             # without string parsing silliness

The CMake documentation for finding Python3 helped me know to use the variables Python_VERSION_MAJOR and Python_VERSION_MINOR.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @David
  • Low reputation (0.5):
Posted by: ofloveandhate

79189118

Date: 2024-11-14 14:18:15
Score: 2.5
Natty:
Report link

Do not use overflow: hidden property for below two. that will hide the -webkit-slider-thumb. input[type='range'] input[type='range']::-webkit-slider-runnable-track

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Rajesh Pandian G

79189115

Date: 2024-11-14 14:18:15
Score: 3
Natty:
Report link

Here is a simple base R implementation, see my comment for details.

I will leave it to you to work out a version which works well with {dplyr} syntax. The data masking is different. "dplyr-style" is close to subset(). If you need assistance, do not hesitate to comment.

Data

data3 = data.frame(
  customer = c(1,2,3),
  frequency = c(30,32,36),
  recency = c(72,71,74),
  TX = c(74,72,77),
  monetary_value = c(35.654,47.172187,30.603611))

Implementation

of log_div_mean() (do you have a reference for the calculation?)

log_div_mean = \(.data, # data 
                 .x, .y, .z, # columns of interest
                 a = .6866195, b = 2.959643,  # default values 
                 r = .2352725, alpha = 4.289764 # which can be overwritten
                 ) {
  .u = .data[[.x]]
  r1 = r + .u  
  r2 = log( (alpha + .data[[.y]]) / (alpha + .data[[.z]]) )
  r3 = log(a / (b + max(c(.u, 1)) - 1)) # typo in your max?
  rr = r1 * r2 + r3
  1 / (1 + exp(rr))
}

where we use the variable naming routine present in the {tidyverse}.

Application

> log_div_mean(.data = data3, .x = "frequency", .y = "TX", .z = "recency")
[1] 0.9619502 0.9730688 0.9340070

Correct results?

Reasons:
  • Blacklisted phrase (1): to comment
  • RegEx Blacklisted phrase (2.5): do you have a
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Friede

79189114

Date: 2024-11-14 14:17:15
Score: 0.5
Natty:
Report link

You are required to include the specified icon library (even when using the default icons from Material Design Icons ). This can be done by including a CDN link or importing the icon library into your application.

npm install @mdi/font -D

And then then add to the src/plugins/vuetify.js

import '@mdi/font/css/materialdesignicons.css' // Ensure you are using css-loader import { createVuetify } from 'vuetify'

export default createVuetify({ icons: { defaultSet: 'mdi', // This is already the default value - only for display purposes }, })

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

79189099

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

In iOS development, when the debugger takes you directly into the lower-level code (such as assembly) that may be inherent to a particular system or native code, while using the breakpoints and the "Skip Over" functionality, albeit inadvertently. The iOS debugger is not highly effective in mapping the high-level function calls and sometimes, Android makes the process easier. It is possible to get to the following function call, like in Android, by, for example, using the command "Step Over" (F6) instead of "Skip Over," and in this way staying within the high-level code thereby avoiding assembly. Moreover, you can set breakpoints precisely at the onset points of the next function to be called, or "Step Into" (F7) to do careful navigating through the function call chain, step-by-step. If you are still seeing architecture code surprisingly, perhaps because of debugging optimizations or the uses of system-level codes, which are harder to be stepped through.

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

79189095

Date: 2024-11-14 14:12:11
Score: 13.5 🚩
Natty: 5.5
Report link

i have the same issue, did you resolve it ?

Reasons:
  • Blacklisted phrase (1): i have the same issue
  • RegEx Blacklisted phrase (3): did you resolve it
  • RegEx Blacklisted phrase (1.5): resolve it ?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): i have the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: madiskou

79189090

Date: 2024-11-14 14:11:11
Score: 1
Natty:
Report link

Reading the documentation shows that Before you provision a server for the first time, you should add your SSH keys to your account. You can do this from the your accounts SSH Keys page in the Forge dashboard.

So you need to go to the copy you public key from you computer and the paste into the Forge ssh add key session, once this is added and saved, and you go back to tableplus to use the database link it then becomes a breeze at this point. Documentation can be found here: https://forge.laravel.com/docs/accounts/ssh.html[enter image description here]1

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

79189089

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

The answer was to do a pip install . again after writing the tests. And the code worked

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

79189082

Date: 2024-11-14 14:07:09
Score: 0.5
Natty:
Report link

I know this is old, but stumbled here when googling for the issue. The approach mentioned by @Ch'nycos actually works here:

One can use the 'finished' event to turn the positions into static coordinates. So the basic approach (we use this in a Vue-Echarts setting, so all the 'this' references refer to the Vue component data):

on_finished: function() {
    // getting the coordinate data from the rendered graph:
    const model = this.chart.getModel()
    const series = model.getSeriesByIndex(0);
    const nodeData = series.getData();
    
    // set the active layout to 'none' to avoid force updating:
    this.active_layout = 'none'
    
    // loop over node data to set the coordinates to the fixed node Data
    this.graph_data.nodes.forEach((node, nodenum) => {
      [node.x, node.y] = nodeData.getItemLayout(nodenum)
    })
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Ch'nycos
  • Low reputation (0.5):
Posted by: T. Altena

79189075

Date: 2024-11-14 14:03:08
Score: 5
Natty:
Report link

I can't say anything based on this information. Did you remember to run npm install? Which command are you using to start the application?

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

79189072

Date: 2024-11-14 14:03:08
Score: 2.5
Natty:
Report link

I found It. I needed to use the job class, not consumer class

cfg.Options<JobOptions<JobConsumer>>

working code

cfg.Options<JobOptions<TestJob>>
Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: alspirkin

79189071

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

As of WordPress 6.7 SCRIPT_DEBUG, true enables the React StrictMode. This causes an js-error which breaks the block(s).

Just set define('SCRIPT_DEBUG', false); in your wp-config.php as a temporary workaround. As mentiond here the ACF-Team should is working on a permanent fix.

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

79189064

Date: 2024-11-14 14:01:07
Score: 2.5
Natty:
Report link

Honestly.. i find this is pretty annoying too. And thats not the only one where its restricted.. i cant even use @auth directives with tokens.

But.. if you do it from your cloud functions, and basically generate your query as a string, instead of passing that array as a variable.. it works.

ugly workaround :/

Reasons:
  • No code block (0.5):
  • User mentioned (1): @auth
  • Low reputation (1):
Posted by: artanis99

79189056

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

For my Svelte 3 app this was needed:

  1. Upgrade VSCode for latest;

  2. Add eslint.validate in Extensions > ESLint > settings.json

    "eslint.validate": [ "javascript", "svelte" ]

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Dima Dorogonov

79189055

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

Updated answer 2024

FROM amazoncorretto:8-alpine-jdk

# Install AWS CLI v2
RUN apk update && \
    apk add --no-cache \
    aws-cli \
    && rm -rf /var/cache/apk/*

# Verify installations
RUN java -version && aws --version
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: montss

79189044

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

Not sure if this is related but...

In this case some of the workspace file and git metadata files were on a cloud drive (i.e., One Drive) which seemed to cause some conflicting access issues.

As mentioned, make sure and commit or stash any changes to avoid any lose

May also need to close and reopen any Visual Studio code terminals if in use.

From filesystem the .git/rebase-merge folder was deleted then git rebase --quit (or --abort) doesn't find it and then finished.

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

79189036

Date: 2024-11-14 13:55:05
Score: 2
Natty:
Report link

I figured it out, my bad! I had intellisense turned off

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

79189034

Date: 2024-11-14 13:55:05
Score: 3
Natty:
Report link

After a lot of searching I found a plugin that was built on the same framework as the Tao Schedule Update and works just as easily--Content Update Scheduler. If you need to schedule changes to an already-published page without a lot of hoops to jump through, this is what you are looking for.

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

79189027

Date: 2024-11-14 13:54:02
Score: 8 🚩
Natty: 6
Report link

Did you find the solution to this problem? The above solution did not work.

Reasons:
  • Blacklisted phrase (1): did not work
  • RegEx Blacklisted phrase (3): Did you find the solution to this problem
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you find the solution to this
  • Low reputation (1):
Posted by: harshit mishra

79189014

Date: 2024-11-14 13:50:01
Score: 2
Natty:
Report link

Use JavaScript to Open/Close the Popover: For browsers that support popover, the popover attribute can be controlled via JavaScript as follows:

To show the popover: element.showPopover(); To hide the popover: element.hidePopover();

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

79189008

Date: 2024-11-14 13:47:00
Score: 4.5
Natty: 4.5
Report link

The meta comment:

Why is this so muddled? One wonders why bother using submodules at all?

Reasons:
  • RegEx Blacklisted phrase (0.5): Why is this
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: user2901351

79189006

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

Since Livewire 3, the attribute is not updated immediately. You need to change wire:model to wire:model.live.

<input type="radio" wire:model.live="payment" name="payment" value="balance">

You can read about that here: https://livewire.laravel.com/docs/upgrading#wiremodel

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

79189005

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

Yes, you can use bitwise operations in TypeScript as a method of converting floating-point numbers to integers! The bitwise OR operation (| 0) is commonly used to truncate a floating-point number to an integer.

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

79189004

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

Unfortunately, it doesn't seem like this is possible based on the AttachArtifactMojo and Artifact source code. The attachArtifact method they use always expects a type.

The best alternative is to use the maven-assembly-plugin to package your executable and install/deploy a tarball.

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

79188978

Date: 2024-11-14 13:38:58
Score: 1
Natty:
Report link

Add this command in your style.xml file before closing the style tag.

<item name="android:windowIsTranslucent">true</item>

Path to style.xml file: [YourProjectName]\android\app\src\main\res\values\styles.xml

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

79188966

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

You want a sparkline. Sadly, it's not available in Tensorboard at the moment. See this discussion

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

79188955

Date: 2024-11-14 13:33:56
Score: 0.5
Natty:
Report link

@Kushal Billaiya's solution didn't work for me, as it overrides existing manifestPlaceholders. What I did instead was the following:

First, still set your Google Maps API Key as an environment variable named MAPS_API_KEY. I do this via the run configuration, but other ways exist.

Then in the android/app/build.gradle file (Important: There are 2 build.gradle files. You want the one inside the android > app folder), add one line to the defaultConfig:

defaultConfig {
    ...
    manifestPlaceholders["mapsApiKey"] = "$System.env.MAPS_API_KEY"
}

And in the android/app/src/main/AndroidManifest.xml file, you can add this line inside the <application> tag:

<meta-data android:name="com.google.android.geo.API_KEY" android:value="${mapsApiKey}"/>
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Kushal
  • Low reputation (0.5):
Posted by: timlg07

79188954

Date: 2024-11-14 13:33:56
Score: 2
Natty:
Report link

The property is being called CONNECT_SCHEDULED_REBALANCE_MAX_DELAY_MS for docker image and scheduled.rebalance.max.delay.ms as property.

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

79188953

Date: 2024-11-14 13:32:56
Score: 1.5
Natty:
Report link

Do you have an all-in-one setup or a distributed setup?

If its a distributed setup, you will see some logs in the gateway instance whenever an API is deployed in the Gateway. If you do not see such logs that means that API deploy notification is not sent to the gateway properly from the control plane. This could happen if the event_listening_endpoints available under eventhub config isnot properly defined in the deployment.toml of the gateway.

[apim.event_hub]
enable = true
username = "$ref{super_admin.username}"
password = "$ref{super_admin.password}"
service_url = "https://[control-plane-host]:${mgt.transport.https.port}/services/"
event_listening_endpoints = ["tcp://control-plane-host:5672"]

Please note that the above is a sample configuration taken from the WSO2 docs. But if you have a distributed setup, you need to have this configuration in the gateway to connect the gateway to the control plane to receive notifications. Please refer the official documentation [1] for more info on this.

This issue should not be ideally there if you have an all-in-one setup. But you can still check the hostnames and verify whether something is wrong there.

Another thing you can do is restarting the gateway to see whether the issue is resolved. If that is the case, you can narrow it down as an issue with the notification sending between the gateway and the control plane.

[1] - https://apim.docs.wso2.com/en/4.2.0/install-and-setup/setup/distributed-deployment/deploying-wso2-api-m-in-a-distributed-setup-with-tm-separated/

Reasons:
  • RegEx Blacklisted phrase (2.5): Do you have an
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: RrR-

79188947

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

Nowadays you can set GIT_SUBMODULE_UPDATE_FLAGS: --remote in your gitlab ci file. This will check out the latest tip of your branch defined in .gitmodules.

See gitlab ci doc

Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: mr.wolle

79188938

Date: 2024-11-14 13:28:54
Score: 0.5
Natty:
Report link

A possible workaround I found:

If instead of CTRL+F, I use CTRL+SHIFT+F, to get the full search window, I get the option to uncheck "Include miscellaneous files":

enter image description here

This has the effect of returning only source code results instead of the "SourceServer" duplicates.

No such option exists for quick find.

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

79188924

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

There is an includePaths option that can be used to specify where the node_modules are located:

sass(
   {
    output: 'dist/styles.css',
    options: {
        includePaths: ['node_modules']
    }
})
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Cyril

79188917

Date: 2024-11-14 13:22:52
Score: 2
Natty:
Report link

To add on to fartem's answer, you might also have to call the function with which you load the data with

Navigator.push(context, secondScreen).then((result) => setState(() { getAddress(); }));

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

79188903

Date: 2024-11-14 13:18:51
Score: 2.5
Natty:
Report link

Since you're using a FIPS yubikey, you need to use FIPS algorithms. Try generating an ssh key using rsa or ecdsa instead.

Solution source? I run fips openshift clusters, and our authentication to github using deploykeys fails unless we use fips compatible ciphers (rsa/ecdsa).

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

79188895

Date: 2024-11-14 13:16:51
Score: 2.5
Natty:
Report link

Microsoft Excel can’t force comma formatting across different regions, because it relies on each user’s system locale for number formats, so it's not possible to force a certain comma style from the Highcharts side.

Reference: https://support.microsoft.com/en-us/office/change-the-character-used-to-separate-thousands-or-decimals-c093b545-71cb-4903-b205-aebb9837bd1e

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

79188894

Date: 2024-11-14 13:16:51
Score: 0.5
Natty:
Report link

For installing java 8 in any alpine image you need to replace https by http in file /etc/apk/repositories

FROM anyImage:alpine
RUN apk update && \
    sed -i 's/https/http/' /etc/apk/repositories && \
    apk update && \
    apk add openjdk8-jre
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Frank Escobar

79188891

Date: 2024-11-14 13:15:50
Score: 4
Natty:
Report link

I took a peek at the source for requests and found this comment:

https://github.com/psf/requests/blob/23540c93cac97c763fe59e843a08fa2825aa80fd/src/requests/certs.py#L10C1-L12C20


If you are packaging Requests, e.g., for a Linux distribution or a managed environment, you can change the definition of where() to return a separately packaged CA bundle

This is supported by the docs as well: https://requests.readthedocs.io/en/stable/user/advanced/#ca-certificates which states that requests merely relies on the certifi package.

so, you can look at the certifi source and figure out how to monkey patch the where function.

https://github.com/certifi/python-certifi/blob/master/certifi/core.py

I don't see anything in the certifi source that reads from a place other than the pem file packaged with it.

Perhaps you and your client have different versions of python/certfi installed on your systems and aligning them would help?

Thanks, Mark

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Contains signature (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Mark

79188871

Date: 2024-11-14 13:10:49
Score: 5.5
Natty:
Report link

Any other solution how to make nextjs with next-auth working with laravel sanctum using CSRF cookie based authentication?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Renars Kilis

79188870

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

It is solution also when using @JsonFormat to parse date:

@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd.MM.yyyy HH:mm:ss") private Date scheduledTime;

when default constructor is not provided then default parser for date is used and default patterns (but are provided @AllArgsConstructor and getters/setters). What is interesting it works during serialization, but not during deserialization. If you want to avoid manual ObjectMapper configuration then provide default constructor for the class, I suppose that @Andreas answer is coupled also with this issue.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @JsonFormat
  • User mentioned (0): @AllArgsConstructor
  • User mentioned (0): @Andreas
  • Low reputation (0.5):
Posted by: Damian JK

79188864

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

Colorgram picks whites and greys from images with white background. To avoid I used a simple color_check :D

import colorgram as cg
color_list = cg.extract("image.jpg", 30)

color_palette = []
# from stackoverflow
for i in range(len(color_list)):
    r = color_list[i].rgb.r
    g = color_list[i].rgb.g
    b = color_list[i].rgb.b
    new_color = (r, g, b)

    # Remove colours close to RGB 255 to exclude background grays
    colorcheck = r+g+b
    # set sensitivity 600-700
    if colorcheck < 700:
        color_palette.append(new_color)

print(color_palette)
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: kardosan

79188860

Date: 2024-11-14 13:08:48
Score: 0.5
Natty:
Report link

In my particular case, this piece of XML in the .csproj file was causing the problem:

<ExcludeFromPackageFolders Include="TestFolder">
  <FromTarget>Some message</FromTarget>
</ExcludeFromPackageFolders>

"Sync with Active Document" wouldn't work for any of the files in the TestFolder folder. Commenting that bit out seems to make it work again.

Obviously in certain cases that bit might be there for a reason so just deleting it might not be the proper solution so whoever might be reading this, you have to be the judge of that obviously.

Just writing this answer down just in case someone is having a similar problem, 'cause I definitely was getting annoyed for a long time because of this.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): having a similar problem
  • High reputation (-1):
Posted by: TKharaishvili

79188854

Date: 2024-11-14 13:07:48
Score: 1.5
Natty:
Report link

Add @ref="GridRef" to the SfGrid, and then call GridRef.PreventRender(false); in the places when you need to refresh the template (some onValuechange etc). This issue is caused by the Syncfusion team trying to optimize performance.(they are preventing rendering for those changes) I have encountered the same problem right now.

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

79188851

Date: 2024-11-14 13:06:48
Score: 0.5
Natty:
Report link

If you're having trouble building and accessing the dependency in your Flutter plugin project, here are some steps that could help:

1- Double-check Dependency Inclusion: Ensure the dependency's group:artifact:version string is correct. Any typo here would cause build issues.

2- Build and Sync Gradle Files: Sometimes, simply syncing and rebuilding can solve issues with using android studio

3- Dependency Scope: Ensure that your dependency is being imported in the correct scope in your plugin code. You may need to import the SDK in the plugin’s main class, typically located under android/src/main/kotlin.

4- Ensure Compatibility: Make sure that the dependency is compatible with the SDK version and min SDK version in your build.gradle.

5- Examine Build Output: Sometimes, the error messages in the build output provide clues. Check for specific error lines indicating missing classes, incompatible Java versions, or build process issues.

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

79188848

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

Try to use markerGroupRef.current as effect hook dependency.

useEffect(() => {
    if(markerGroupRef.current) {
      //here I want to access a method called getBounds() which is in the markerGroupRef.current object 
      //but markerGroupRef.current has null value and so it doesn't execute
      //when making a save change and react app reloads it has the FeatureGroup class as value as expected
      console.log(markerGroupRef.current)
    }
  }, [markerGroupRef.current])
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Filip Michałowski

79188845

Date: 2024-11-14 13:04:45
Score: 6 🚩
Natty: 5.5
Report link

How does one get this to work in python code?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): How do
  • Low reputation (1):
Posted by: zoagold

79188843

Date: 2024-11-14 13:04:45
Score: 2
Natty:
Report link

There is a known bug for recent versions of PyCharm and other JetBrains IDEs which has not been yet solved.

For the time being, you must configure the console after each restart.

You can follow the issue here:

https://youtrack.jetbrains.com/issue/PY-58570/Unable-to-update-Python-Django-Console-settings

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

79188835

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

Yet another way to write traces to the "Output" window of debugger is to use System.Diagnostics.Debugger.Log method:

public static void WriteToDebugger(String message)
{
    Debugger.Log(0, null, message);
    Debugger.Log(0, null, Environment.NewLine);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vurdalakov

79188826

Date: 2024-11-14 12:59:44
Score: 1.5
Natty:
Report link

You are updating data before removing the image so when you trying to remove image the path will be empty so that is causing error.

Check this code:

public function updateConcert(Request $request, Concert $concert)
    {
        $request->validate([
            'name' => 'required|max:30',
            'description' => 'required|max:200',
            'date' => 'required|date',
            'duration' => 'required|date_format:H:i:s',      
            'id' => 'required|numeric',
        ]);
    
        $concert = Concert::find($request->id);
        if ($request->hasFile('image')) {
            Storage::disk('public')->delete($concert->image);
            $imgName = microtime(true) . '.' . $request->file('image')->getClientOriginalExtension();
            $request->file('image')->storeAs('public/storage/img', $imgName);
            $concert->image = '/img/' . $imgName; // Cambiado para que sea idéntico al código de libros
            $concert->save();
        }
        $concert->update($request->input([specify here inputs needs to update]));
        $concert->artists()->sync($request->artists);
        return redirect('concerts')->with('success', 'Concert updated');
    }
Reasons:
  • Blacklisted phrase (2): código
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Payal Desai

79188820

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

AWS RDS doesn't provide granular details about the source IP addresses of incoming connections directly within the console.

However you could try few indirect methods like -

Enable VPC Flow Logs: If you have Configured VPC Flow Logs for the VPC where your RDS instance resides,This will capture information about network traffic, including source and destination IP addresses, port numbers, and protocol.

Check Ingress rules : Ingress rules of the security group associated with your RDS instance will reveal the IP address ranges that are allowed to connect to the database.

Also check the AWS CloudWatch Logs Insights.

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

79188814

Date: 2024-11-14 12:56:43
Score: 2.5
Natty:
Report link

You need to check

  1. Minimum deployment target 2.Inside Xcode -> Device and Simulator tab -> Select any simulator -> -> See details of simulator -> Inside details check for "Show run destination" --> Make it "Always" instead of "Automatic". enter image description here
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Vinod Supnekar

79188808

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

When using VB6 (Visual Basic 6) with ADODB Recordsets to display Chinese characters, it is common for the characters to appear as garbled text (like ?????? or ñ’è). This typically happens because the proper character encoding is not being used or handled correctly. Here's how you can address this issue:

1. Set the Correct Character Set in the Database

Ensure that your database is configured to store Chinese characters using an encoding like UTF-8 or GB2312. If the database is using a different encoding, you will need to either:

2. Configure ADODB to Handle Unicode

In VB6, ADODB's Recordset may not handle Unicode data properly unless the correct character set is specified. Here are the steps to ensure proper handling:

3. Setting the Locale in VB6

If your data comes from a text source (e.g., a file or external service), ensure that the locale in VB6 is set to support Chinese characters:

4. Ensure Font Support

Make sure that the font you're using in the VB6 form or control supports Chinese characters. Common fonts like SimSun or Microsoft YaHei should display Chinese characters correctly.

5. ADODB Recordset Handling

After configuring the connection and locale, make sure you're retrieving and displaying the data correctly:

6. Consider Using Unicode

If your application needs to support a wide range of characters, consider upgrading to VB.NET where Unicode support is native, or use a third-party library to handle encoding conversions.

Troubleshooting

By ensuring proper character encoding at both the database level and within your VB6 application, you should be able to display Chinese characters correctly in ADODB Recordsets.

Let me know if you need more detailed steps or examples for a specific database (like MySQL or SQL Server).

Reasons:
  • Blacklisted phrase (1): ???
  • Long answer (-1):
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Karim boutbouqalt

79188807

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

The "buckets" you provide are actually boundaries. When you provide 1, 2 and 3, then you get the buckets ~1, 1~2, 2~3, 3~ So, zero would be placed in your first bucket. The upper boundary is inclusive, while the lower boundary is exclusive. This is why the tag for the bucket is le (less equal) with the value of this tag being the upper boundary of the bucket.

https://stackoverflow.com/a/69938239/5773994

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

79188805

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

if you are not in the correct namespace you can do:

kubectl delete ingress ingress-nginx --namespace=<insert-namespace-name-here>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ibrahim Halici

79188800

Date: 2024-11-14 12:53:42
Score: 1.5
Natty:
Report link
#include <chrono>
#include <iostream>
#include <iomanip>

template <typename Duration, typename Clock>
Duration get_duration_since_epoch()
{
    const auto tp = std::chrono::time_point_cast<Duration>(Clock::now());
    return tp.time_since_epoch();
}

int main()
{
    using float_sec_t = std::chrono::duration<double, std::chrono::seconds::period>;

    // integer seconds
    std::cout <<                          get_duration_since_epoch<std::chrono::seconds, std::chrono::system_clock>() << std::endl;

    // double seconds
    std::cout << std::setprecision(15) << get_duration_since_epoch<float_sec_t         , std::chrono::system_clock>() << std::endl;
}

https://wandbox.org/permlink/HULwKXGyc5m0pIVQ

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

79188795

Date: 2024-11-14 12:52:41
Score: 2.5
Natty:
Report link

the ages are the original values. The select-expression of <xsl:variable name="older-children" /> however seems to reference the maps inside the $children-variable, at least when looking at the code at face-value:

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

79188790

Date: 2024-11-14 12:51:41
Score: 2
Natty:
Report link

I just solved it by inserting the missing import statement:

import java.lang.String;
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: D-Sava

79188784

Date: 2024-11-14 12:48:40
Score: 0.5
Natty:
Report link

Solved!

Although it is supposedly undocumented by Microsoft (or possibly a bug in Azure App Service), I added the following statement to my startup script:

cp /home/site/wwwroot/<path to your custom ini>/<custom ini>.ini /usr/local/etc/php/conf.d/extensions.ini

Setting the PHP_INI_SCAN_DIR environment variable was not enough to customize the PHP settings. Therefore, I had to manually copy the ini file to the PHP settings location.

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

79188777

Date: 2024-11-14 12:46:39
Score: 0.5
Natty:
Report link
ScrollViewReader { proxy in
    ScrollView {
        content
            .id("content")
    }
    .onChange(of: store.step) { // some state change triggers scroll
        proxy.scrollTo("content", anchor: .top)
    }
}

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

79188775

Date: 2024-11-14 12:44:38
Score: 4.5
Natty:
Report link

int x = (int)Char.GetNumericValue(char)

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: levan jabua

79188767

Date: 2024-11-14 12:41:37
Score: 5.5
Natty: 5
Report link

I have still same problem and putting locale as last paramter in query string did not help, any updates ?

Reasons:
  • RegEx Blacklisted phrase (0.5): any updates
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Y.Yuksel

79188766

Date: 2024-11-14 12:40:37
Score: 1
Natty:
Report link

Issue solved. I asked a former teacher of mine, and they gave me a few commands to run in the terminal that fixed the issue, which were the following:

echo "export BROWSER=\"/mnt/c/Program Files/Google/Chrome/Application/chrome.exe\"" >> ~/.zshrc
echo "export GH_BROWSER=\"'/mnt/c/Program Files/Google/Chrome/Application/chrome.exe'\"" >> ~/.zshrc

Thanks Yann!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jason Sturgeon

79188757

Date: 2024-11-14 12:39:36
Score: 3
Natty:
Report link

this was an interesting question to solve Hope this answer helps

Select left(datename(month,date_col),3)+'-'+right(datename(year,date_col),2) from table_name

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

79188749

Date: 2024-11-14 12:37:35
Score: 3
Natty:
Report link

Use a uniform grid.

See a duplicate question on game dev stack here

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Göktürk

79188742

Date: 2024-11-14 12:35:34
Score: 1
Natty:
Report link

You can import Katex. I got here via https://stackoverflow.com/a/65540803/5599595. Running in shinylive

from shiny.express import ui
from shiny import render

with ui.tags.head():
    # Link KaTeX CSS
    ui.tags.link(
        rel="stylesheet",
        href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css"
    ),
    ui.tags.script(src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js"),
    ui.tags.script(src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js"),
    ui.tags.script("""
        document.addEventListener('DOMContentLoaded', function() {
            renderMathInElement(document.body);
        });
    """)

with ui.card():
    ui.p("Here's a quadratic formula: \\[x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}\\]")
    ui.p("And an inline equation: \\(E = mc^2\\)")
    ui.p("\\[3 \\times 3+3-3 \\]")
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
Posted by: smartse

79188735

Date: 2024-11-14 12:33:34
Score: 1.5
Natty:
Report link

As data: belongs to standard, so I decided to keep it as it is, and in the client, it can replace that data: by empty string when it received the message.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: Bằng Rikimaru

79188734

Date: 2024-11-14 12:33:34
Score: 1.5
Natty:
Report link

If you want to store a connection token, use "keytar", it's more secure.

const keytar = require('keytar');

And use this like this :

await keytar.setPassword('app-id', 'authToken', token);

and :

await keytar.getPassword('app-id', 'authToken');

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

79188732

Date: 2024-11-14 12:32:34
Score: 0.5
Natty:
Report link

You can use CloudCompare.

  1. Load your .obj file to CloudCompare (it will search for your mkl file and jpg files automatically).
  2. Edit -> Mesh -> convert texture/material to RGB.
  3. Select your cloud on the DB Tree and then File -> Save.
  4. Choose .ply and save.

Done :)

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

79188725

Date: 2024-11-14 12:28:33
Score: 1.5
Natty:
Report link

We can break down the problem into two steps:

  1. Length Comparison: The number with more digits is guaranteed to be larger. So, if one string is longer than the other, it is the larger number.
  2. Lexicographical Comparison: If the two numbers have the same length, we can compare them lexicographically (i.e., just as we compare normal strings), because for two strings of the same length, the one that is lexicographically greater is the numerically greater number.

std::cout<<a.length()==b.length()?a>b:a.length()>b.length();

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

79188722

Date: 2024-11-14 12:27:30
Score: 10 🚩
Natty: 4
Report link

uhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Filler text (0.5): hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
  • Low entropy (1):
  • Low reputation (1):
Posted by: Rohana

79188713

Date: 2024-11-14 12:24:29
Score: 0.5
Natty:
Report link

I went with DavidMoye's approach (but using defaults channel instead) to update the base env for Anaconda 2020.07

conda update -n base -c defaults --all
## Package Plan ##

  environment location: C:\ProgramData\Anaconda3


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    conda-env-2.6.0            |       haa95532_1           3 KB
    navigator-updater-0.5.1    |   py38haa95532_0         2.3 MB
    ------------------------------------------------------------
                                           Total:         2.3 MB

The following packages will be UPDATED:

  navigator-updater                            0.2.1-py38_0 --> 0.5.1-py38haa95532_0

The following packages will be DOWNGRADED:

  conda-env                                         2.6.0-1 --> 2.6.0-haa95532_1


Proceed ([y]/n)? y
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Filler text (0.5): ---------------------------
  • Filler text (0): -----------------
  • Filler text (0): ------------------------------------------------------------
  • High reputation (-1):
Posted by: prusswan