79568422

Date: 2025-04-11 08:59:26
Score: 0.5
Natty:
Report link

I gave it a try, too.

Surface plot with 3d panes

Notes:

Code:

import numpy as np
from mayavi import mlab

# surface data
x_min, x_max = -1, 1
y_min, y_max = -1, 1
X, Y = np.mgrid[x_min:x_max:51j, y_min:y_max:51j]  # 51j means 51 steps
Z = X**2 + Y**2
z_min, z_max = Z.min(), Z.max()

# create a new figure and adjust initial view
white = (1,) * 3
lightgray = (0.75,) * 3
darkgray = (0.25,) * 3
fig = mlab.figure(bgcolor=white, fgcolor=darkgray)
fig.scene.parallel_projection = True
mlab.view(azimuth=60, elevation=60, focalpoint=(0, 0, 0), distance=5.0)
fig.scene.camera.parallel_scale = 5.0  # see https://stackoverflow.com/a/42734442/2414411

# add surface plot
mlab.surf(X, Y, Z)

# add ticks and tick labels
nticks = 5
ax = mlab.axes(xlabel='x', ylabel='y', zlabel='z', nb_labels=nticks)
ax.axes.label_format = '%.1f'

# add background panes
xb, yb = np.mgrid[x_min:x_max:nticks * 1j, y_min:y_max:nticks * 1j]
zb = z_min * np.ones_like(xb)
mlab.mesh(xb, yb, zb, color=lightgray, opacity=0.5)
mlab.mesh(xb, yb, zb, color=darkgray, representation='wireframe')

xb, zb = np.mgrid[x_min:x_max:nticks * 1j, z_min:z_max:nticks * 1j]
yb = y_min * np.ones_like(xb)
mlab.mesh(xb, yb, zb, color=lightgray, opacity=0.5)
mlab.mesh(xb, yb, zb, color=darkgray, representation='wireframe')

yb, zb = np.mgrid[y_min:y_max:nticks * 1j, z_min:z_max:nticks * 1j]
xb = x_min * np.ones_like(yb)
mlab.mesh(xb, yb, zb, color=lightgray, opacity=0.5)
mlab.mesh(xb, yb, zb, color=darkgray, representation='wireframe')

# show figure
mlab.show()
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
Posted by: John

79568419

Date: 2025-04-11 08:57:25
Score: 1
Natty:
Report link

For Gradle check: | Settings | Build, Execution, Deployment | Build Tools | Gradle | Gradle JVM

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

79568415

Date: 2025-04-11 08:55:24
Score: 4
Natty:
Report link

You can set it 'false' to prevent expiring of your cookie.

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

79568403

Date: 2025-04-11 08:50:22
Score: 3
Natty:
Report link

I found this list:

https://peter.sh/experiments/chromium-command-line-switches/

It displays options for chromium, but they might also work for other browsers.

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

79568399

Date: 2025-04-11 08:49:22
Score: 1
Natty:
Report link
  1. List all flask processes:

    pgrep -a -f flask
    
  2. Select the ones you want to stop.

  3. Kill them:

    kill -9 PROCESSID
    

    where PROCESSID is at the beginning of pgrep output.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bálint Sass

79568383

Date: 2025-04-11 08:40:20
Score: 0.5
Natty:
Report link

The ASN.1 committee discussed the idea of creating an ASN.1 type for conveying schema information, but chose not to attempt to add any such type into ASN.1. So the ASN.1 Recommendations do not include any "standard" way of encoding schema definitions.

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

79568370

Date: 2025-04-11 08:32:19
Score: 1
Natty:
Report link

Found a solution.
Forced a cleanup before Python starts tearing down the logging module.

Import this library into the code:

import atexit

and add this at the end of the code:

def cleanup():
    plc.disconnect()
    plc.destroy()

atexit.register(cleanup)

After executing the script, the original error doesn't occur, and now we can remove the atexit portion of the code and execute like normal.

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

79568366

Date: 2025-04-11 08:29:18
Score: 0.5
Natty:
Report link

James Randall has a great post on AABBTree's with accompanying C++ code. The link was broken, the salvaged content along with code can be found here

https://burakbayramli.github.io/dersblog/sk/2025/04/aabb-randall.html

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

79568357

Date: 2025-04-11 08:26:17
Score: 0.5
Natty:
Report link

I have been trying to work on this for a bit but it has been difficult since the code is just pure spaghetti. Really not trying to roast you for writing bad code and not documenting anything or removing things you're not using, but I think the combination of all of this is what is making it difficult for anyone to debug. Cleaning it up a lot and documenting it may make it significantly easier for yourself and others to fix. Anyways there's two things that stood out as I have been debugging it.

1: You're deploying nested integrations calls across multidimensional integrations at all levels. Every single time you evaluate any single part of the outer integration you are calling the inner integration to sweep across the entity of every single part of every corner of its dimensions. Mathematically that just does not make sense, but if it is being done intentionally (and I just do not understand why) then I would say that you can just calculate the integrals by hand since their boundaries appear to always be fixed for the whole file. Not sure if this is a helpful metaphor but its like asking why does using your fighter jet take more petrol to get to the market than your motorcycle. Both will get you there, but one of them makes more sense. Since the boundaries are always fixed it would be worth it to rewrite your code to a much simpler logic than abstractly calling fully nested multidimensional integrations if this calculation is in fact correct.

2: A bunch of the epsilons are never used. This may be causing some numerical issue if something is 0 but is not supposed to be. Though I do not know if this is the case since there's no documentation.

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

79568344

Date: 2025-04-11 08:21:16
Score: 1
Natty:
Report link

I used git remote set-branches --add origin develop in my case after a shallow clone only fetched me master and I couldn't checkout develop. Might not be the best solution though as it's only adding this one branch. Definitely the shallow clone was the culprit.

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

79568343

Date: 2025-04-11 08:17:15
Score: 2
Natty:
Report link

Non of the above tools worked for my SVG. I found this tool on Iconly that did the trick.

This tool helps you convert SVG strokes to fills and make your icons webfont compatible. Based on oslllo/svg-fixer library by Ghustavh Ehm.

Before using the tool. Circle is wrongfully filled.

Before using the SVG tool

After using the SVG strokes to fill tool

After using the SVG tool

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

79568341

Date: 2025-04-11 08:16:14
Score: 2.5
Natty:
Report link

You can refer this IEEE paper which talks about the details: "VRTX: A Real-Time Operating System for Embedded Microprocessor Applications"

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

79568334

Date: 2025-04-11 08:10:13
Score: 0.5
Natty:
Report link

Can't you just .replace() the values?

df.sort(pl.col("a").replace(l, range(len(l))))
shape: (5, 2)
┌─────┬─────┐
│ a   ┆ b   │
│ --- ┆ --- │
│ i64 ┆ str │
╞═════╪═════╡
│ 1   ┆ x   │
│ 3   ┆ z   │
│ 5   ┆ f   │
│ 2   ┆ y   │
│ 4   ┆ p   │
└─────┴─────┘
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Can't you
  • High reputation (-2):
Posted by: jqurious

79568331

Date: 2025-04-11 08:08:12
Score: 1
Natty:
Report link

I don't see where you call useEffect, but first of all you should call just after it:

await fixture.whenStable();

also, for Debug purpose, try replacing visibilityTime: 0

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

79568317

Date: 2025-04-11 08:02:10
Score: 11.5
Natty: 10
Report link

Same issue, opened an issue in https://github.com/flutter/flutter/issues/166967

Did you solve it?

Reasons:
  • RegEx Blacklisted phrase (3): Did you solve it
  • RegEx Blacklisted phrase (1.5): solve it?
  • RegEx Blacklisted phrase (1): Same issue
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Rachid Azizi

79568315

Date: 2025-04-11 08:02:10
Score: 0.5
Natty:
Report link

Executive Summary

The short-term rental market in Kuala Lumpur is experiencing significant growth, driven by the rise of tourism and the high demand from expatriates and business travelers. Our company positions itself within this market by offering an innovative and optimized alternative to traditional accommodations. By combining artificial intelligence for dynamic pricing analysis with an advanced marketing strategy to maximize visibility, we ensure optimal occupancy rates and increased profitability.

Our business model is based on the acquisition and management of strategically located apartments in the heart of Kuala Lumpur, particularly in the KLCC area, with a primary focus on international travelers and foreign students living in shared accommodations. We also provide a property management service aimed at owners who wish to maximize their income without dealing with the daily responsibilities of property management.

One of our major strengths lies in the exclusive services we offer to our clients, including partnerships with restaurants, clubs, and local attractions that provide discounts, as well as a food service offering that includes breakfasts delivered to the apartment and access to negotiated-rate buffets. We will also collaborate with travel agencies to attract a diverse clientele and generate bookings outside traditional platforms such as Airbnb and Booking.com.

Our company is led by a team of four experienced co-founders, who are contributing an initial capital of $2,000,000. This capital will be used for the acquisition of apartments through direct cash purchases and bank financing, ensuring a hybrid strategy that balances short-term profitability with the development of a strong real estate portfolio.

We rely on rigorous cost management, advanced digitalization, and a differentiated service offering to establish ourselves as a key player in the short-term rental market in Kuala Lumpur. With a robust business model, an optimized acquisition strategy, and strategic partnerships, our project aims to maximize profitability and ensure sustained growth, while maintaining the flexibility to explore future expansion opportunities in other tourist destinations such as Semporna and Bali.

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

79568312

Date: 2025-04-11 07:59:09
Score: 0.5
Natty:
Report link

if flutter clean didn't work

delete pubspec.lock

run flutter pub cache clean and then run flutter pub get if it not work

fix this

camera: ^0.11.0

to this and then clean pub cache again

camera: 0.11.0
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Lightn1ng

79568309

Date: 2025-04-11 07:58:07
Score: 9 🚩
Natty:
Report link

But in my case, im fetching aws s3 busket image which can be png or jpeg, but image not rendering on pdf??? hereenter code here is code to review yo`enter code here

useEffect(() => {
    const fetchLogo = async () => {
      const logoUrl = await getLogoUrl();
      setLogoUrl(logoUrl.data.logo);
      setStampUrl(logoUrl.data.salaryStamp);
    };

    fetchLogo();
  }, []);
{stampUrl && (
              <Image
                src={`${stampUrl}?noCache=${Math.random().toString()}`}
                  style={{
                  width: "80px",
                  height: "auto",
                  opacity: 0.7,
                  marginBottom: "5px",
                  }}
                />
              )}
any one know how to solve this isuue?? please help
Reasons:
  • Blacklisted phrase (1): ???
  • Blacklisted phrase (1): how to solve
  • RegEx Blacklisted phrase (3): please help
  • RegEx Blacklisted phrase (1.5): how to solve this isuue??
  • RegEx Blacklisted phrase (2): know how to solve
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Rameshwar

79568308

Date: 2025-04-11 07:58:07
Score: 2
Natty:
Report link

Appears to be a GCC bug reported in 2018.

Odd that it's not fixed as it's IMHO quite severe, it seems any attempt to provide variadic values for a template-struct member of a given variadic-type-template outer struct will fail. Sounds tricky to fix, though.

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

79568303

Date: 2025-04-11 07:56:06
Score: 8
Natty: 7.5
Report link

I have the same problem when connecting to an Epson Receipt printer from inside docker container. It is not able to claim the printer and I get the error that "port is already open". any resolution found from you already? From the host computer it is working fine.

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (1): I get the error
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Florian

79568302

Date: 2025-04-11 07:56:06
Score: 2.5
Natty:
Report link

It's simply Visual Studio parsing error...

Just chose another dotNet Framework version and then can back again.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Valdis Bērziņš

79568300

Date: 2025-04-11 07:55:06
Score: 2
Natty:
Report link

You can use the reraise=True on the retry as documented here: https://tenacity.readthedocs.io/en/latest/#error-handling

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ian

79568272

Date: 2025-04-11 07:43:03
Score: 1
Natty:
Report link

Go to the directory where your "venv" folder is located and type the below command.

activate venv

This should activate your environment in CMD. I am currently running Python 3.12 and it is working but I am not sure about the older Python versions.

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

79568269

Date: 2025-04-11 07:43:03
Score: 1
Natty:
Report link

I experienced the same issue with a Flutter build using Xcode 15.3. In my case, I went to the Xcode menu in Xcode, then Settings, then Accounts. My Apple ID was showing a "Your session has expired. Please log in." error. Unclear why because I don't recall experiencing this before. Signing in with my Apple ID again then fixed the issue and allowed the build to complete successfully.

enter image description here

Reasons:
  • No code block (0.5):
  • Single line (0.5):
Posted by: most200

79568266

Date: 2025-04-11 07:40:02
Score: 1.5
Natty:
Report link

This is the right solution. Works 100%!

Simply change this parameter (EnableCSPHeaderForPage) from true to false using the script below.

Add-PSSnapin Microsoft.SharePoint.PowerShell
$farm = Get-SPFarm
$farm.EnableCSPHeaderForPage = $false
$farm.Update()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: VaaToo

79568263

Date: 2025-04-11 07:38:01
Score: 1.5
Natty:
Report link
#!/bin/bash
# you know colours
cyan="\e[38;2;0;255;255m"
blue="\e[48;2;0;0;255m"
clear="\e[0m"
# etcetera, but borders?
line="\e(0"
end="\e(B"
# now play your cards.
echo -e "${blue}${cyan}${line}lqwqk"
echo -e "tqnqu"
echo -e "mqvqj${end}Words here.${clear}"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Unoheaken

79568261

Date: 2025-04-11 07:35:01
Score: 0.5
Natty:
Report link

Thanks for LittleDuck sharing the root cause.

I have faced the same issue as d4redevil, my VideoToolBox generated data is

SPS.pic_order_cnt_type = 0, 
VUI.max_dec_frame_buffering not exits in SPS.

Solution 1:

on Chrome you could set VideoDecoder to prefer-software to get 1 in 1 out. But does not work for Safari.

Solution 2, (I used):

I end up solving it by manipulating the raw SPS data. I parsed the original SPS data, and updated vui_parameters_present_flag = 1, and carefully appended about 5 bytes of VUI data at the end of SPS(right after bit position of vui_parameters_present_flag). The VUI data contains this key value to avoid decoder frame buffering.

VUI.max_dec_frame_buffering=1

Also on VideoToolBox side, I used this autoLevel

kVTProfileLevel_H264_Baseline_AutoLevel: CFString
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Have Fang

79568256

Date: 2025-04-11 07:30:59
Score: 4
Natty:
Report link

try using
NtQueryInformationProcess

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Low reputation (1):
Posted by: Hariharan K

79568248

Date: 2025-04-11 07:27:59
Score: 2
Natty:
Report link

You can't use both this() and super() in the same constructor because both must be the first statement.

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

79568247

Date: 2025-04-11 07:27:59
Score: 1
Natty:
Report link

default is sorted
rysnc

-r -> recursive

-i -> states what is happening

-n -> dry run not actual copy

  1. first do rsync -r from/ to/ -i -n
    check for the contents

  2. then do rsync -r from/ to/ -i

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

79568244

Date: 2025-04-11 07:26:58
Score: 5
Natty: 6
Report link

ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok

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

79568240

Date: 2025-04-11 07:24:57
Score: 5
Natty: 4
Report link

same problem there, i changed the network to host mode and still not working. My issue is that i've a software running inside the docker container which uses UDP for gstream pipeline RTSP Camera, and i tried to have all in the same container (front and backend services) and still not working, like, UDP packets are not sending/recieving.

Reasons:
  • Blacklisted phrase (2): still not working
  • RegEx Blacklisted phrase (1): same problem
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rafa Garcia

79568232

Date: 2025-04-11 07:21:56
Score: 4.5
Natty:
Report link

I tried the same code in VS Code and I got the answer as 370, whereas on online compiler I got 153.

Is this related to the compiler/ version I am using on laptop?

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

79568221

Date: 2025-04-11 07:18:55
Score: 2.5
Natty:
Report link

You should switch back to Xcode 16.2 — I faced the same issue with Xcode 16.3 recently, but after reverting to 16.2, everything started working fine.

You can refer it - https://github.com/facebook/react-native/issues/50411

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

79568214

Date: 2025-04-11 07:14:54
Score: 3
Natty:
Report link

Another way is to rely on branches, so create 2 branches for release and not for release, so you can delete either one, then choose the branch to use in the settings

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

79568208

Date: 2025-04-11 07:14:54
Score: 1
Natty:
Report link

If you know the length of the vector, you can also use [T;N]'s TryFrom<Vec<T>> implementation.

let (name, score) = <[(String, i32); 1]>::try_from(items).unwrap();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Cyrill

79568198

Date: 2025-04-11 07:06:52
Score: 1
Natty:
Report link

The Problem This link:

<a href="/Home/FreeCoffee">

…generates a GET request to /Home/FreeCoffee, but your controller method only accepts POST:

[HttpPost]
[Route("Home/FreeCoffee")]

public async Task<IActionResult> FreeCoffee(...)

So when you click the "Coffee" link in your dropdown menu, it tries to access that URL with a GET request — and the server replies with 405 Method Not Allowed because no GET endpoint exists for /Home/FreeCoffee.

Option 1: Move the form to a separate view (recommended for better UX) If the "Coffee" dropdown item is meant to open a page with the form, then you should do this:

Create a GET action that renders a view with the phone number form:

[HttpGet]
public IActionResult FreeCoffee()

{
    return View();
}
Reasons:
  • Blacklisted phrase (1): This link
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rahul K Suthan

79568183

Date: 2025-04-11 06:57:50
Score: 2
Natty:
Report link

:has still doesn't work for me in jsdom 25.0.0 for complex selectors. Although, I tried a workaround that worked for me:

I faced issue with

.test-div:not(:has(.special-div))

and I replaced with

.test-div:not(:scope:has(.special-div))
Reasons:
  • Whitelisted phrase (-1): worked for me
  • RegEx Blacklisted phrase (2): doesn't work for me
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dimitris Misailidis

79568174

Date: 2025-04-11 06:52:49
Score: 2
Natty:
Report link

git diff file1, file2, file3 ... > temp.patch

and

git apply temp.patch

worked perfectly for me... thanks Enrico for the answer.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: vishal-testcollab

79568165

Date: 2025-04-11 06:46:48
Score: 2.5
Natty:
Report link

Update 2025:

When you have the same problem like me and you are using property sources with user managed identity the config should look like that:

spring:
  cloud:
    azure:
      keyvault:
        enabled: true
        secret:
          property-source-enabled: true
          property-sources[0]:
            endpoint: <your-key-vault-uri>
            credential:
              managed-identity-enabled: true
              client-id: <your-azure-client-id>

If your're using a system managed identity you can remove the client-id.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): have the same problem
  • Low reputation (1):
Posted by: Greg

79568153

Date: 2025-04-11 06:40:46
Score: 1
Natty:
Report link

Like I wrote in my Edit 2 my app.config somehow was not ok. I added the libraries manually into app.config assemblyBinding which resolved the "WARNING: unable to find dependency...". I have no clue why this was missing.

Resolving Warning 2:

WARNING: 'System.IO.Compression.dll' should be excluded because its source file....

I exclud all the dlls manually in my setup project by setting exclude=true. Maybe a filter to exclude this dlls is also an option, because sometimes the dlls get readded to my project and the warning shows up again. Excluding the dlls seems to be save, because those are part of the .NET Framework 4.8 runtime, which the target machine should already have.

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

79568145

Date: 2025-04-11 06:37:45
Score: 3
Natty:
Report link

You can do it with this regex

let str = '24?22?3'

digitsOnly = str.replace(/\D/g, '');

//digitsOnly='24223'

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

79568144

Date: 2025-04-11 06:36:45
Score: 0.5
Natty:
Report link

I don’t have one log() call in my code. I have 1000 different ones logging 1000 different things. How does what you are trying scale?

So you won’t need one function pointer, you need at least 2,000. Enjoy. Especially when the next developer runs to your boss and says “I can’t believe…”

There is a perfectly fine solution that works very well and doesnt produce any clutter in your source code. Why exactly don’t you want to use it?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: gnasher729

79568143

Date: 2025-04-11 06:35:44
Score: 5
Natty: 4.5
Report link

this is my syntax

alter table p12 modify column Address char(15);

this doesnt give me an error but it doesnt work

when i change modify to alter it gives me an error what should i do

Reasons:
  • Blacklisted phrase (1): doesnt work
  • Blacklisted phrase (2): what should i do
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Lavanya Mathur

79568138

Date: 2025-04-11 06:33:44
Score: 0.5
Natty:
Report link

I've been using visual studio since the early 90s and it used to be able to do this. You had to turn on the BSC option in your C++ compile and then you got a nice fast class hierarchy that looked similar to a folder hierarchy in file explorer. Quick and simple. I remember object orientated programming becoming absolutely second nature in that environment.

Then Microsoft introduced .net and C++ has felt like a second class citizen in visual studio ever since. Many times I've been deep in call hierarchies ever since and that easy OOP experience that I used to have is never quite there. I do jump between many more huge projects these days.

Like the OP, as soon as I was in an Eclipse environment, I thought - there it is! A nice class hierarchy viewer. If you have never lived with this, maybe you don't know what's missing as I suspect a lot of the replies indicate.

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

79568135

Date: 2025-04-11 06:31:43
Score: 0.5
Natty:
Report link
#include <iostream>
using namespace std;

int reduce(int& num, int& denom);
int gcd(int a, int b);

int main() {
        int m, n;
        char choice;
    do{
    cout << "Enter numerator: ";
    cin >> m;
    cout << "Enter denominator: ";
    cin >> n;

    if (reduce(m, n))
        cout << m << '/' << n << endl;
    else
        cout << "fraction error" << endl;
        
    cout << "Do you want to reduce another fraction? (y/n): ";
     cin >> choice;
        
    }while(choice == 'y' || choice == 'Y');

    return 0;
}

int reduce(int& num, int& denom)
{
    if (num <= 0 || denom <= 0) {
        return 0;
    }
    int divisor = gcd(num, denom);
    num /= divisor;
    denom /= divisor;
    return 1;
}
int gcd(int a, int b) 
{
    while (b != 0) {
        int temp = b;
        b = a % b;
        a = temp;
    }
    return a;
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: hussaan

79568133

Date: 2025-04-11 06:30:43
Score: 3
Natty:
Report link

If nothing described in other answers helped, create the file again and copy the previous contents into it, and then grant execution rights

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

79568130

Date: 2025-04-11 06:27:42
Score: 5
Natty: 5
Report link

I am also run into some similar issue with my maven project, but not normal Java project. Have you know why this happens?

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

79568123

Date: 2025-04-11 06:20:40
Score: 1
Natty:
Report link

Just to add an "edge" case for the comparison. In case you are converting bigint to number type you should use parseInt() or even Number(), because unary plus like +1n would throw an error:

Uncaught TypeError: Cannot convert a BigInt value to a number
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kit

79568120

Date: 2025-04-11 06:19:39
Score: 1.5
Natty:
Report link

I had the same problem when connected to a VPN. When I disconnect everything seems to work again. Not a solution, unfortunately, if you need to use a VPN. But can be a workaround for others who see this.

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

79568116

Date: 2025-04-11 06:17:39
Score: 3
Natty:
Report link

swiper.el.scrollTop = 0; tried with React

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

79568115

Date: 2025-04-11 06:17:39
Score: 3
Natty:
Report link

There is a pull request pending on this issue. Also, you can check out the docs to further debug the issue you are facing.

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

79568114

Date: 2025-04-11 06:17:39
Score: 0.5
Natty:
Report link
try this  tez:upi://pay?pa=&pn=&am=&cu=
pa = upiID
pn = payee name
am = amount
cu = currency 
Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: akhilkp

79568103

Date: 2025-04-11 06:09:36
Score: 5.5
Natty:
Report link

don't jpa use jdbc template interally, too?

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

79568089

Date: 2025-04-11 05:57:34
Score: 1.5
Natty:
Report link

Step 1: Store a bool value using shared preferences like isDark or isLight.

Step 2: fetch the bool value from shared preferences on click of the button

Step 3: Change the theme as per the received boolean value.

Step 4: Define the light and dark theme data in MaterialApp widget.

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

79568069

Date: 2025-04-11 05:43:29
Score: 4
Natty: 3.5
Report link

yes that is very possible like I saw in the biggest food trade show website

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

79568064

Date: 2025-04-11 05:38:28
Score: 0.5
Natty:
Report link

As of 2025, GitHub's documentation no longer explicitly states the per-repository hard limit. However, it is safe to assume that the previously documented limit of 100 GB per repository still applies unless otherwise confirmed by GitHub Support. The current documentation only specifies the per-file hard limit of 100 MB, as shown in the excerpts below.

For developers interested in modern AI, interactive platforms can provide valuable insights and hands-on experience. These tools combine entertainment with AI-driven concepts, offering practical learning opportunities. Below are some notable resources:

  1. 1v1.LOL Unblocked: A fast-paced shooter game that demonstrates real-time decision-making algorithms.
    http://1v1lolunblockedonline.gitlab.io/

  2. Cookie Clicker Unblocked: An incremental game that highlights resource management and automation.
    https://cookieclicker-unblocked-online.github.io/

  3. Unblocked Games G Plus: A collection of games that serve as case studies for AI behavior in diverse scenarios.
    https://unblocked-games-g-plus.gitlab.io/

  4. Mario 64 Unblocked: A classic platformer that showcases AI pathfinding and interaction with environments.
    https://mario64unblocked.github.io/

  5. Obsidian Unblocked: A knowledge management tool that explores AI-driven organization techniques.
    https://obsidianunblocked.github.io/

  6. Retro Bowl Unblocked: A sports simulation game useful for analyzing AI in strategic planning.
    https://retrobowl-unblocked.neocities.org/

  7. Roblox Unblocked Online: A platform offering user-generated games that illustrate diverse AI implementations.
    https://robloxunblockedonline.gitlab.io/

  8. Spotify Unblocked: An application that demonstrates AI in music recommendation systems.
    https://spotifyunblocked.gitlab.io/

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

79568063

Date: 2025-04-11 05:38:28
Score: 2
Natty:
Report link

im a rookie, but I tired this and it works lol:

def swap(alist):
    first = alist[0]
    last = alist[-1]
    alist[0] = last
    alist[-1] = first
    return alist
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: hehe

79568061

Date: 2025-04-11 05:37:27
Score: 2
Natty:
Report link

I have found that if all target frameworks are conditional, the ios emulators do not show up. To remedy, I had to include ios as target framework without condition. This was on VS 17.12 and 17.13

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

79568059

Date: 2025-04-11 05:33:27
Score: 3
Natty:
Report link

Right Clicked on the stash file that you need to recover and click apply stash. after that you can delete the stash

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

79568042

Date: 2025-04-11 05:19:23
Score: 1.5
Natty:
Report link

I think by default this line navigator.mediaDevices.getUserMedia({ audio: true }) like fetches microphone audio , I do not actually know how to make it so that speakers audio is fetched , but ya the "issue" in ur code is this line .Hope it helps

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

79568032

Date: 2025-04-11 05:08:21
Score: 3.5
Natty:
Report link

Try to divide each functionality into modules with their respective router.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sergio Andres Carvajal

79568023

Date: 2025-04-11 04:57:19
Score: 2
Natty:
Report link

I've discovered that the achievements are displayed in alphabetical order based on the ID (not achievement name) you entered for them.

Use your ID naming convention to introduce an order to the achievements (only affects the order they're displayed in on the Steam client).

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

79568021

Date: 2025-04-11 04:57:19
Score: 0.5
Natty:
Report link

Hello! 👋

You’ve installed Ruff and added linting settings in your settings.json, but VS Code is not recognizing them (the lines are dimmed), and Ruff is not working as expected. The settings like "python.linting.ruffEnabled" may be dimmed because.. VS Code’s Python extension doesn’t officially support Ruff as a linter, or The Ruff extension is missing, or You’re using settings not recognized by your current extension setup.


First, Install Required Extensions. Make sure you have the Ruff extension (charliermarsh.ruff or ruff-lsp) installed and enabled. Also install the Python extension (ms-python.python) if you want to use Ruff through Python’s linting system.

Second, Use Correct Settings. If you’re using the Ruff extension directly,

"editor.formatOnSave": true,
"editor.defaultFormatter": "charliermarsh.ruff",
"ruff.enable": true

If you’re using Ruff with the Python extension (only works if supported),

"python.linting.enabled": true,
"python.linting.lintOnSave": true,
"python.linting.ruffEnabled": true

Third, Check via Command Palette. Open Command Palette → “Python: Select Linter”. If Ruff is not listed, it means it’s not supported by the Python extension.

Finally, Some settings don’t apply until you reload or restart VS Code.


Some Example Codes

vscode/settings.json The settings.json file is used for project-specific settings in VS Code. You can configure Ruff as follows.

{
    // Enable automatic formatting on save
    "editor.formatOnSave": true,

    // Set Ruff as the default formatter
    "editor.defaultFormatter": "charliermarsh.ruff",

    // Python linting enabled (if supported by Python extension)
    "python.linting.enabled": true,
    "python.linting.lintOnSave": true,
    "python.linting.ruffEnabled": true,

    // Ruff extension enabled separately (if installed)
    "ruff.enable": true
}

pyproject.toml The pyproject.toml file defines Python project-specific settings, including Ruff-specific rules.

[tool.ruff]
# Set maximum line length
line-length = 88

# Rules Ruff will check (errors, warnings, etc.)
select = ["E", "F", "W", "C90"]

# Exclude specific files or folders
exclude = [
    ".git",
    "__pycache__",
    ".venv",
    "env",
    "venv"
]

# Ignore specific error codes
ignore = ["E501"] # Ignore long lines (example)

With these configurations, Ruff will automatically handle formatting and linting for your project code.


Thx, Have a good one!

Reasons:
  • Blacklisted phrase (1): Thx
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Gabriel

79568004

Date: 2025-04-11 04:41:15
Score: 0.5
Natty:
Report link

The difference is:

SELECT * needs all the columns, not just the customer_id.

idx_state_point is good for filtering the rows but it does not include all columns, so MySQL has to do a "bookmark lookup" (i.e. "row lookup") to fetch the rest of the row from the actual table.

MySQL might decide it's faster to use just the state index to fetch all matching rows and then do lookups or it might use a full table scan depending on the row distribution and statistics.

The optimizer thinks idx_state_point is not covering, so it switches to the simpler index or access pattern (in this case, index on state only) which is causing a larger scan (122 rows).

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

79568003

Date: 2025-04-11 04:39:14
Score: 1.5
Natty:
Report link

The issue is with the Row ID. we just pass the GUID in row ID not in the format as you have specified.

remove the /budgetreports() from your Row ID and pass simple guid as string. (can be your compose.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Laviza Falak Naz

79568000

Date: 2025-04-11 04:37:14
Score: 0.5
Natty:
Report link

So we do splitting considering the fact that data is repeating in format 'UID' 'Date' 'Time' 'Name'. Every data is in sets of 4 values. Here's how you can extract the useful information and then use it for whatever use case.

Here's a simple flow

enter image description here

Here i have stored your data in a Compose for reference.

enter image description here

First, we use this expression to break down to sets of 4 values.

chunk(split(outputs('RawUserData'),' '),4)

enter image description here

Then we use the extracted information to parse into an array of object names. (this is optional. the main array can be accessed directly as well. This step just makes the values more accessible.

enter image description here

Here's the mapping of the select as per our case.

{
  "UID": "@item()?[0]",
  "Name": "@item()?[3]",
  "DateTime": "@{item()?[1]} @{item()?[2]}"
}

So as you see, the final array is a well extracted and structured data.

enter image description here

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

79567996

Date: 2025-04-11 04:34:13
Score: 3.5
Natty:
Report link

git installed tell me next step how can you check front end and use this

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

79567995

Date: 2025-04-11 04:34:13
Score: 0.5
Natty:
Report link

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

android:layout_width="match_parent"

android:layout_height="match_parent"

android:paddingLeft="16dp"

android:paddingRight="16dp"

android:orientation="vertical" \>

\<EditText

    android:layout_width="match_parent"

    android:layout_height="wrap_content"

    android:hint="@string/to" /\>

\<EditText

    android:layout_width="match_parent"

    android:layout_height="wrap_content"

    android:hint="@string/subject" /\>

\<EditText

    android:layout_width="match_parent"

    android:layout_height="0dp"

    android:layout_weight="1"

    android:gravity="top"

    android:hint="@string/message" /\>

\<Button

    android:layout_width="100dp"

    android:layout_height="wrap_content"

    android:layout_gravity="end"

    android:text="@string/send" /\>

</LinearLayout>

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: MD Alamin

79567990

Date: 2025-04-11 04:25:11
Score: 0.5
Natty:
Report link

Hello! 😁

Your issue is that the plots are overlapping because you’re using the same figure for each iteration. To solve this problem, please follow these steps.

First, Create a New Figure. Inside your loop, call plt.figure() to create an independent canvas for each species.

plt.figure()

Second, Plot the Data. Filter the data for the specific species and draw your plot (for example, using error bars).

Third, Save the Figure. Use plt.savefig() to save the current figure to a file. It helps to include the species name in the filename for easy identification.

Finally, Close the Figure. Call plt.close() to close the current figure. This prevents subsequent plots from being drawn on top of it.

plt.close()

Example Code

import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt

iris = sns.load_dataset('iris')

species_sum = iris['species'].value_counts().rename_axis('species').reset_index(name='counts')

for row in range(len(species_sum)):
    species = species_sum['species'].iloc[row]
    print(species)
    species_data = iris.loc[iris['species'] == species]

    # Create a new Figure
    plt.figure()

    xerror = [species_data['sepal_length'] * 0.3, species_data['sepal_length'] * 0.5]
    plt.errorbar(
        x=species_data['sepal_length'],
        y=species_data['petal_length'],
        xerr=xerror,
        fmt='o'
    )
    plt.xlabel('Sepal L')
    plt.ylabel('Petal L')

    # Save the figure with the species name in the filename
    plt.savefig(species + '.png')

    # Close the figure to free memory and avoid overlap with the next iteration
    plt.close()

Thx, Have a good one!

Reasons:
  • Blacklisted phrase (1): Thx
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Gabriel

79567982

Date: 2025-04-11 04:20:10
Score: 0.5
Natty:
Report link

I was able to calculate the same hash using the rawBody using Nethereum's Sha3Keccack. The Sha3 function used by web3 (and thus Moralis) is Keccack256, not the same SHA3 used by .NET's System.Security.Cryptography. The implementation looks like:

var hashString = Sha3Keccack.Current.CalculateHash(rawBody + "<streams secret>");
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ethan

79567978

Date: 2025-04-11 04:14:09
Score: 3.5
Natty:
Report link

!sudo apt install msttcorefonts -qq

!rm ~/.cache/matplotlib -rf

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

79567974

Date: 2025-04-11 04:06:07
Score: 1
Natty:
Report link

Not possible right now. sorry. None of the Google Maps Platform API's are available for offline use. At most you're allowed to save a few of the data points like LatLng and Place_id, but for instance not addresses.

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

79567968

Date: 2025-04-11 03:59:06
Score: 1.5
Natty:
Report link
  1. Can you use CeleryExecutor on Kubernetes?

Yes, you can. It’s supported and works fine in k8s. You’ll just need:

But most people go with the KubernetesExecutor with KubernetesPodOperator instead, because they:

  1. Should you avoid DockerOperator in Kubernetes?

Yes, generally.

Why?

Alternatives: Use KubernetesPodOperator instead. It:

  1. Does this mean you shouldn’t use CeleryExecutor?

Not necessarily. You can continue using it, but you might consider migrating to:

It depends on your workloads. If you’re already comfortable with Celery, and need specific control over parallelism, queues, or workers—keep it.

Read more about KubernetesPodOperator.

Reasons:
  • Blacklisted phrase (0.5): Why?
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can you use
  • Low reputation (0.5):
Posted by: enchant3dmango

79567963

Date: 2025-04-11 03:56:05
Score: 3
Natty:
Report link

The config seems fine. I've been in a stuck for a while with this setup because "Enable/Disable" control so pale colors, don't forget to turn it on in "MCP Servers" section

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

79567950

Date: 2025-04-11 03:48:02
Score: 2
Natty:
Report link

..Happy loan app CUSTOME.R. car.e. NUMBE.R -)7894720560--l · ..Happy loan app CUSTOME.R. car.e. NUMBE.R -)7894720560--l · ..Happy loan app CUSTOME.R. car.e. NUMBE.R -)7894720560--l · ..Happy loan app CUSTOME.R. car.e. NUMBE.R -)7894720560--l · ..Happy loan app CUSTOME.R. car.e. NUMBE.R -)7894720560--l · ..Happy loan app CUSTOME.R. car.e. NUMBE.R -)7894720560--l · ..Happy loan app CUSTOME.R. car.e. NUMBE.R -)7894720560--l · ..Happy loan app CUSTOME.R. car.e. NUMBE.R -)7894720560--l · ..Happy loan app CUSTOME.R. car.e. NUMBE.R -)7894720560--l · ..Happy loan app CUSTOME.R. car.e. NUMBE.R -)7894720560--l ·

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

79567931

Date: 2025-04-11 03:29:58
Score: 1.5
Natty:
Report link

Shopee don't allow redirect localhost. So you need to config this redirect url in app config.
You can change this to redirectUrl="https://www.google.com/" for the test.

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

79567929

Date: 2025-04-11 03:26:57
Score: 5
Natty:
Report link

Thank you! I give it a try soon.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (2):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Wayland

79567926

Date: 2025-04-11 03:22:56
Score: 2
Natty:
Report link

Update for 2025!

There's an exit button in the Chargebee portal now! Clicking it does in fact return the user to the redirect page as requested.

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

79567925

Date: 2025-04-11 03:22:56
Score: 2.5
Natty:
Report link

I'm not sure if this has been written in the doc or somewhere. Yet, I just want to share that I have just figured it out and get this worked by adding "AppDelegate.swift" file into XCode project. Not sure if it's Xcode cache or bug. I've found out this when I initiate a new RN0.78 project running on XCode.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Pirun Seng

79567921

Date: 2025-04-11 03:16:55
Score: 3
Natty:
Report link

<a href="#" onclick="document.body.innerHTML = '<h1>Acies loves Supriya mommy</h1>'">Click me</a>

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

79567920

Date: 2025-04-11 03:15:54
Score: 3.5
Natty:
Report link

The kirpan is a significant article of faith in Sikhism, often misunderstood. Here's how to educate someone:

_Explaining the Kirpan's Significance_

1. _Spiritual significance_: The kirpan represents a Sikh's commitment to defending their faith, standing up for justice, and protecting the weak.

2. _Symbolism_: It's a symbol of courage, self-discipline, and the struggle against evil.

3. _Not a weapon_: Emphasize that the kirpan is not meant for violence or aggression but serves as a reminder of spiritual obligations.

_Historical Context_

1. _Origins_: The kirpan was introduced by Guru Gobind Singh, the tenth Sikh Guru, as part of the Sikh identity.

2. _Role in Sikh history_: It played a significant role in Sikh history, representing resistance against oppression.

_Addressing Misconceptions_

1. _Separating fact from fiction_: Clarify that the kirpan is not used for personal defense or aggression.

2. _Respect and understanding_: Encourage respect for the kirpan as a sacred symbol.

_Promoting Understanding and Respect_

1. _Open dialogue_: Encourage open and respectful conversations about Sikhism and its practices.

2. _Education and awareness_: Share resources and information to promote a deeper understanding of Sikhism.

By sharing this information, you can help dispel misconceptions and foster greater understanding and respect for the kirpan and Sikhism.

Reasons:
  • RegEx Blacklisted phrase (3): you can help
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: M Rafeeq norani

79567917

Date: 2025-04-11 03:11:53
Score: 2.5
Natty:
Report link

Use service message!

https://www.jetbrains.com/help/teamcity/service-messages.html#Canceling+Build+via+Service+Message

No need to fail a build (causing confusion) or add a condition to dozens of build steps.

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

79567914

Date: 2025-04-11 03:09:53
Score: 2
Natty:
Report link

on vscode remote webbrowser, if you have opened a huge file in a folder like http://xxx:xxxxx/?folder=/yourfolder, next time you open this folder, it will remember opening this huge file, then crash again. the best way you can do is opening vscode with another folder like http://xxx:xxxxx/?folder=/anotherfolder, rename that huge file, then you can open your folder with http://xxx:xxxxx/?folder=/yourfolder, since it can't find that file, it will not open huge file. after everything is ok, rename that huge file back.

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

79567913

Date: 2025-04-11 03:09:53
Score: 1
Natty:
Report link

You could also use a `delayed` job. See: Delayed Jobs

For e.g., your verify job could become:

verify:
  stage: verify
  script: echo 'Verifying ...'
  when: delayed
  start_in: 5 minutes
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Rajiv

79567911

Date: 2025-04-11 03:06:52
Score: 2.5
Natty:
Report link

Try Emacs and https://ess.r-project.org/, which is in every way better than Rstudio in my opinion. For tons of themes, you can refer to https://emacsthemes.com/ and https://melpa.org/#/?q=theme&sort=downloads&asc=false. More importantly, the ESS package in Emacs allow you to edit R code in an extremely smooth way, once you get used to the keybindings.

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

79567903

Date: 2025-04-11 02:59:50
Score: 1
Natty:
Report link

If your Laravel version 10+ use

php artisan vendor:publish --tag=assets

in your public directory you'll see vendor folder with ass assets from packages

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

79567882

Date: 2025-04-11 02:33:45
Score: 1
Natty:
Report link
    await _sendAlbum(client, targetChannel, {
      file: [file1, file2, ...],
      caption: combinedCaption,
      forceDocument: false,
      workers: 1,
    });

Upload each media as a CustomFile, collect them into an array, then use _sendAlbum to send them as a single album with a shared caption.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tiến Đạt Hoàng

79567880

Date: 2025-04-11 02:30:44
Score: 0.5
Natty:
Report link

Just use flex-wrap: wrap on the flex container to force the content to a new line, and make the title and the button fixed width to not leave any space for the content if the title is present.

https://codepen.io/Lubomyr-Pryt/pen/EaxBGNy

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

79567878

Date: 2025-04-11 02:30:44
Score: 3
Natty:
Report link

the answer is already write in github gist ,because stack overflow have not supper chinese,http address is :https://gist.github.com/Aurorxa/c975b40b3bbf98fedddefc6fdbadeec8

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

79567877

Date: 2025-04-11 02:29:43
Score: 4.5
Natty: 4.5
Report link

Did you guys end up finding a solution to this? I am facing the same exact error.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: leapingllama

79567863

Date: 2025-04-11 02:09:39
Score: 0.5
Natty:
Report link

In any screen, wrap popBackStack() like this:

if (navController.backQueue.size > 1) {
    navController.popBackStack()
}

or

if (navController.previousBackStackEntry != null) {
    navController.popBackStack()
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Elie Danhash

79567854

Date: 2025-04-11 01:58:37
Score: 0.5
Natty:
Report link

Here's what you need.

1.Purchase a domain name: theres a services like Namecheap, GoDaddy, or Google Domains

  1. Get Web Hosting: you'll need to move from your local XAMPP to a production hosting service.

  2. Export your Database use phpMyAdmin in XAMPP to export your MySQL databases.

  3. Transfer your files upload your website files to the hosting server using FTP or hosting control panel

  4. Configure the server: set up APACHE, PHP, and mySQL on your production server similar to your XAMPP configuration

6.Test Throughly

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

79567852

Date: 2025-04-11 01:57:36
Score: 3
Natty:
Report link

There may be a bug with Chrome.

Try disabling and enabling this:
Settings > Autofill > Password Manager > Auto sign-in

Have you tried restarting Chrome? How about a different profile?

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: user7215

79567848

Date: 2025-04-11 01:52:35
Score: 1.5
Natty:
Report link

Open an issue at https://github.com/eclipse-servertools/servertools/issues . I think I see what the problem is.

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

79567847

Date: 2025-04-11 01:50:35
Score: 1
Natty:
Report link

Yes. If you want to just test the created web pages you can host them on Git-hub or 000webhostapp.com, otherwise you can use Lonos web hosting, Hostinger web hosting, those are allow you to make your website or web application publicly accessible on the internet.

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: Vidzshan

79567842

Date: 2025-04-11 01:44:33
Score: 1.5
Natty:
Report link

There are a few approaches that might work, and per the comments: the best approach would be buying a system from someone else.

Google "machine vision rice sorter" and related terms and you'll find some systems that strike me as fairly inexpensive.

Canny, Sobel, Laplacian, etc and also

Those kernel-based techniques will generate edge data, but don't segment. That is, they don't separate foreground (rice) from background (everything else).

morphological operations like erosion, dilation, opening and closing.

Those algorithms can help if the overlap between grains were always much smaller than the grains themselves.

There are a bunch of other techniques that will kinda work much of the time, but presumably you want an approach that's robust and will work nearly all of the time. Pick a specific value for the acceptable percentage of recognition failures over a large number of cases.

What failure rate is acceptable? 5%? 1%? 0.1%? If you won't buy an existing system, you might still call the equipment manufacturer and ask for performance specs. Assume you won't achieve specs as good.

The rice grains aren't occupying the full width of the image. It'd help if they occupied the middle 80%, with a bit of allowance for flyaway grains. It looks to me like you might even want the long axis of the image to be vertical.

Robust pattern matching

Different vision libraries give different names to an algorithmic approach that finds objects based on edge content. This typically works well only for rigid objects of fixed outline, but with "wide open" parameter settings it might work for rice grains.

HALCON software from mvTec has this. Here's a video on the subject (which I've only skimmed, since I already know about the feature):

https://www.youtube.com/watch?v=QUAasLJhGng

A few other companies offer similar algorithms in commercial image processing software. It's a royal pain to implement--we're talking developer-years of effort, back in the day--although there are some simpler, related techniques like "chamfer-based matching" (or some other such term with "chamfer" in it).

I'd stress: don't try this until you've work in vision at least 2+ years, and have implemented a few other algorithms from scratch.

The wonders of curve completion

OpenCV has a lot of useful image processing functions, but it doesn't offer curve fitting and curve completion, at least not that I recall, and not in the sense that you may need.

Before I go on, I want to make clear that implementing curve fitting for small, irregularly shaped objects would increase the complexity of your code enormously. There'd be more failure modes. You might make a better mechanical sorter from raw materials in less time than it would take to code up a solution based on curve completion.

If you can make a lot of assumptions about the consistency of objects in view, then when you have two or more grains of rice that are overlapping, there's a (not great) chance you could distinguish the grains of rice by fitting curves where there are overlapping grains. (You'd have to first determine which grains are overlapping. That'd take some effort.)

The best, fastest method I know about relevant to fitting curves to natural shapes is the Euler spiral a.k.a. aesthetic curve a.k.a. clothoid. And for that, and as my final comment, I'll direct you to some old replies of mine.

How to draw clothoids graphically in Qt?

Only semi-related:
How to smooth hand drawn lines?

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Whitelisted phrase (-1): try this
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • No code block (0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Rethunk

79567840

Date: 2025-04-11 01:39:32
Score: 2.5
Natty:
Report link

In case anyone else comes from a search and shares my issue:
Even without anything running, having Visual Studio open gave this error. Closing it fixed it.

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

79567834

Date: 2025-04-11 01:34:31
Score: 1.5
Natty:
Report link

I'm stuck with an ancient version of gdb

No, you are not. You can build a newer version; it's (usually) not hard.

Anybody know of another method of disabling these messages?

If you really can't use newer version for some reason, you should be able to rebuild the older version and simply comment out these messages.

Reasons:
  • Blacklisted phrase (1): Anybody know
  • RegEx Blacklisted phrase (1.5): I'm stuck
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-2):
Posted by: Employed Russian

79567833

Date: 2025-04-11 01:30:30
Score: 2
Natty:
Report link

This question was asked in 2024, but as of April 2025, Apire .NET 9.2 has been release and can now publish to a docker compose. the following link explains it more.

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