79647604

Date: 2025-06-01 14:15:17
Score: 1.5
Natty:
Report link

not sure if it´s the same with next.js, but in vite for example the path needs to be edited. the font is stored in public, but somehow the path in the font-face needs to be written without public.

from:
path: "../../public/fonts/GlacialIndifference-Regular.otf"

to:
path: "../../fonts/GlacialIndifference-Regular.otf"

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

79647592

Date: 2025-06-01 14:00:13
Score: 0.5
Natty:
Report link

Is you wanted to output string:

>>> list(str(1234))
['1', '2', '3', '4']

If you want to output integers:

>>> map(int, str(1234))
[1, 2, 3, 4]

If you want to use no prebuilt methods (output int)

>>> [int(i) for i in str(1234)]

[1, 2, 3, 4]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Chase Miller

79647589

Date: 2025-06-01 13:58:12
Score: 1
Natty:
Report link

Sort in difference. This data is very useful for the students Mini

sort(machines.begin(), machines.end(), [](const pair<int, int>& a, const pair<int, int>& b) {
    return (a.second - a.first) > (b.second - b.first);});

Input = {(6,7), (3,9), (8,6)}

Output = {(3,9),(6,7),(8,6)}

Sort vector of pairs by second element ascending

vector<pair<int,int>> v = {{1, 3}, {2, 2}, {3, 1}};
sort(v.begin(), v.end(), [](const pair<int,int>& a, const pair<int,int>& b) {
    return a.second < b.second;
});

Input:
[(1,3), (2,2), (3,1)]

Output:
[(3,1), (2,2), (1,3)]

Sort vector of pairs by first ascending, then second descending

vector<pair<int,int>> v = {{1, 2}, {1, 3}, {2, 1}};
sort(v.begin(), v.end(), [](const pair<int,int>& a, const pair<int,int>& b) {
    if (a.first != b.first)
        return a.first < b.first;
    return a.second > b.second;
});

Input:
[(1,2), (1,3), (2,1)]

Output:
[(1,3), (1,2), (2,1)]

Sort vector of integers by absolute value descending

vector<int> v = {-10, 5, -3, 8};
sort(v.begin(), v.end(), [](int a, int b) {
    return abs(a) > abs(b);
});

Input:
[-10, 5, -3, 8]

Output:
[-10, 8, 5, -3]

Filter a vector to remove even numbers

vector<int> v = {1, 2, 3, 4, 5};
v.erase(remove_if(v.begin(), v.end(), [](int x) {
    return x % 2 == 0;
}), v.end());

Input:
[1, 2, 3, 4, 5]

Output:
[1, 3, 5]

Square each element in vector

vector<int> v = {1, 2, 3};
transform(v.begin(), v.end(), v.begin(), [](int x) {
    return x * x;
});

Input:
[1, 2, 3]

Output:
[1, 4, 9]

Sort strings by length ascending

vector<string> v = {"apple", "dog", "banana"};
sort(v.begin(), v.end(), [](const string& a, const string& b) {
    return a.size() < b.size();
});

Input:
["apple", "dog", "banana"]

Output:
["dog", "apple", "banana"]

Min heap of pairs by second element

auto cmp = [](const pair<int,int>& a, const pair<int,int>& b) {
    return a.second > b.second;
};
priority_queue<pair<int,int>, vector<pair<int,int>>, decltype(cmp)> pq(cmp);

pq.push({1, 20});
pq.push({2, 10});
pq.push({3, 30});

while (!pq.empty()) {
    cout << "(" << pq.top().first << "," << pq.top().second << ") ";
    pq.pop();
}

Input:
Pairs pushed: (1,20), (2,10), (3,30)

Output:
(2,10) (1,20) (3,30)

Sort points by distance from origin ascending

vector<pair<int,int>> points = {{1,2}, {3,4}, {0,1}};
sort(points.begin(), points.end(), [](const pair<int,int>& a, const pair<int,int>& b) {
    return (a.first*a.first + a.second*a.second) < (b.first*b.first + b.second*b.second);
});

Input:
[(1,2), (3,4), (0,1)]

Output:
[(0,1), (1,2), (3,4)]

Sort strings ignoring case

vector<string> v = {"Apple", "banana", "apricot"};
sort(v.begin(), v.end(), [](const string& a, const string& b) {
    string la = a, lb = b;
    transform(la.begin(), la.end(), la.begin(), ::tolower);
    transform(lb.begin(), lb.end(), lb.begin(), ::tolower);
    return la < lb;
});

Input:
["Apple", "banana", "apricot"]

Output:
["Apple", "apricot", "banana"]

Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Student

79647571

Date: 2025-06-01 13:35:08
Score: 2
Natty:
Report link

Eben. You were sold a lie. Fix the error. A + B ≠ V2K, DEW. The RNC is becoming something that only a monster would attempt. Repeat. A monster.

Trying to get by. But need help.

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

79647563

Date: 2025-06-01 13:27:06
Score: 1
Natty:
Report link

I found that the key binding needed updating -- search for editor.action.copyLinesDownAction and verify it's the correct key binding. Mine was CTRL+Shift+Alt+Down.

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

79647561

Date: 2025-06-01 13:24:05
Score: 1.5
Natty:
Report link

It was a Python build issue. I figured it out — some C-extension modules (like for pickle) were not properly built, which caused the internal server error. After rebuilding the environment properly, the issue was resolved. Thank you!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-2): I figured it out
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Adnan

79647559

Date: 2025-06-01 13:20:04
Score: 1.5
Natty:
Report link

I think this is related to php.ini configuration. I've never used herd before. In laragon you can just simply click at the php menu. then you'll see php.ini. click that and it will open a notepad

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

79647557

Date: 2025-06-01 13:17:04
Score: 2.5
Natty:
Report link

Blazor doesn’t relay messages sent within shadow elements. There’s a hack but you need to manually edit blazor.web.js and change e.target to e.composedPath().find(_=>true)

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

79647552

Date: 2025-06-01 13:10:02
Score: 3.5
Natty:
Report link

doesn't work in venv on pi5

Eddy

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Eddy Sels

79647542

Date: 2025-06-01 13:04:00
Score: 1
Natty:
Report link

try to make an assets folder outside of public /assets/fonts

and call

@font-face {
  font-family: "Font-name";
  src: url("path/font.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lycawn

79647538

Date: 2025-06-01 12:58:59
Score: 3
Natty:
Report link

<meta http-equiv="Content-Security-Policy" content="default-src * 'self' data: gap: ws: https://cdn.jsdelivr.net https://cdnjs.cloudflare.com 'unsafe-inline' 'unsafe-eval'; style-src * 'self' 'unsafe-inline'; media-src *">

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

79647537

Date: 2025-06-01 12:57:59
Score: 3.5
Natty:
Report link

Use name for your cache: @Cacheable("ConcurrentMapData")

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

79647536

Date: 2025-06-01 12:55:58
Score: 1.5
Natty:
Report link

I think your SPI configuration might be incorrect. It would be great if you could show how you implemented MX_SPI1_Init(). Please ensure that you have:

Thank you!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lihan

79647535

Date: 2025-06-01 12:46:56
Score: 2
Natty:
Report link

Try to use another tag

I dont how to use link from google drive but try to upload video on Youtube and will have link like - https://www.youtube.com/watch?v=Q8nhQSp__3s. You just need id from this video it will be Q8nhQSp__3s. copy it and put in iframe.

<iframe width="420" height="315"
src="https://www.youtube.com/embed/Q8nhQSp__3s">
</iframe>

More about that look in w3schools

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (1): this video
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: fawf

79647519

Date: 2025-06-01 12:31:52
Score: 4
Natty:
Report link

I think it was the first test test

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Михаевич Игорь

79647516

Date: 2025-06-01 12:29:51
Score: 4
Natty: 4.5
Report link

Bandwidth ruler for android can do the job . It can limit tethering speed as well.

https://play.google.com/store/apps/details?id=com.bwr.free

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

79647506

Date: 2025-06-01 12:15:48
Score: 0.5
Natty:
Report link

0/1 Knapsack Problem solved Mini

#include <bits/stdc++.h>
using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int n, W;
    cout << "Enter number of items and knapsack capacity: ";
    cin >> n >> W;

    vector<int> weights(n), values(n);
    cout << "Enter weight and value of each item:\n";
    for (int i = 0; i < n; i++) {
        cin >> weights[i] >> values[i];
    }

    // dp[w] = maximum value achievable with capacity w
    vector<int> dp(W + 1, 0);

    // Process each item
    for (int i = 0; i < n; i++) {
        // Traverse backwards to avoid reuse of same item multiple times
        for (int w = W; w >= weights[i]; w--) {
            dp[w] = max(dp[w], dp[w - weights[i]] + values[i]);
        }
    }

    cout << "Maximum value achievable: " << dp[W] << "\n";

    return 0;
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user30687883

79647496

Date: 2025-06-01 12:04:45
Score: 1
Natty:
Report link

You might have outdated dependencies. Try clearing your cache and reinstalling the app:

npm cache clean —force

Then:

npm install

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

79647485

Date: 2025-06-01 11:49:42
Score: 0.5
Natty:
Report link

Usually this is how I decide in such scenarios:

Now for your scenario, I think there is something wrong in terms of UX vs Security in your flow. I would never auto-complete a password field. If password was an example and you won't really pass it to the next page, then I would go with Context or Zustand only if the other data (which should be passed) is non-sensitive.

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

79647484

Date: 2025-06-01 11:49:42
Score: 3
Natty:
Report link

Can you try writeConcern "majority" + readConcern "snapshot", so that find() reads a consistent state?

Reasons:
  • Whitelisted phrase (-2): Can you try
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (0.5):
Posted by: FranckPachot

79647472

Date: 2025-06-01 11:40:40
Score: 5
Natty: 6.5
Report link

hillllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Filler text (0.5): llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
  • Low entropy (1):
  • Low reputation (1):
Posted by: kalhara Jayathissa

79647461

Date: 2025-06-01 11:23:36
Score: 0.5
Natty:
Report link

UPDATE

I've found the solution.

  1. open laravel herd
  2. go to PHP menu
  3. right click on php version
  4. select "open php.ini directory"
  5. edit your php.ini
  6. uncomment and set your sys_temp_dir
// before
;sys_temp_dir = "/tmp"

// after
sys_temp_dir = "C:\Users\<YOUR_USERNAME>\AppData\Local\Temp"

Different operating system may have different temp folder paths too.

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

79647459

Date: 2025-06-01 11:19:35
Score: 0.5
Natty:
Report link

The issue may come from the fact that you do not have the required permissions on the entire SharePoint: https://company.sharepoint.com

Try the following:

FixedBaseURL = "https://company.sharepoint.com/sites/Finace/Reports"

RelativePath = "Q1_Report.xlsx"

This way the Oauth protocol will only try to authenticate at FixedBaseURL level.

Reasons:
  • Whitelisted phrase (-1): Try the following
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Leyth

79647435

Date: 2025-06-01 10:54:30
Score: 2
Natty:
Report link

Great question! While setuptools and the build module provide the basic functionality for creating distribution artifacts (sdist and wheel), more modern build backends like hatchling (used by Hatch) and flit-core (used by Flit) offer several advantages, including better user experience, enhanced features, and improved performance. Here’s a breakdown of their added value:


1. Simplified Configuration & Better Defaults


2. Built-in Features (Beyond Just Building)

Hatchling (Hatch)

Flit


3. Performance & Modern Tooling


4. Advanced Build-Time Features


5. CI/CD & Dev Tooling Integration


6. Documentation & Extras


When to Stick with setuptools?


Recommendation

Would you like a deeper dive into any of these features?

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

79647433

Date: 2025-06-01 10:53:30
Score: 2.5
Natty:
Report link

Technically speaking the following partial specialization will do the trick:

template <typename T>
class B<B<T> *> : public B<T> {};

but I cannot say if that makes any sense. Just remember Liskov's substitution principle: Is B<B<T> *> a B<T>??? Can it replace B<T> and still keep the program to be correct?

Reasons:
  • Blacklisted phrase (1): ???
  • Blacklisted phrase (0.5): I cannot
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Tomek

79647431

Date: 2025-06-01 10:51:29
Score: 1.5
Natty:
Report link

Here is the implementation in Clang.

https://github.com/llvm/llvm-project/blob/88aa5cbbda67857891a740dd8326f6f45f4eb6fd/clang/lib/CodeGen/CGDeclCXX.cpp#L958

    Fn = CreateGlobalInitOrCleanUpFunction(
        FTy,
        llvm::Twine("_GLOBAL__sub_I_", getTransformedFileName(getModule())),
        FI);
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: hailinzeng

79647429

Date: 2025-06-01 10:49:29
Score: 2
Natty:
Report link

I'm leaving this comment so it can be helpful to others who may encounter the same issue later on.
When creating a function in SQL Developer, a common cause of compilation errors can be related to language settings.
Switching from your local language to English can help resolve these compilation issues.
To do this, navigate to your user directory on the C drive and go to:
AppData\Roaming\SQL Developer\<your version>
There, open the product.conf file with Notepad and add the following lines if you're using a local language:
AddVMOption -Duser.language=en 
AddVMOption -Duser.country=US 
After this step, SQL Developer will launch with the English interface.
Additionally, you should check your language settings under Preferences → Database → NLS.
Once you've done that, you should be able to create your function using CREATE OR REPLACE FUNCTION without any issues.

Kind regards :)

Reasons:
  • Blacklisted phrase (1): regards
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ÇINAR TOPRAK

79647425

Date: 2025-06-01 10:44:27
Score: 1.5
Natty:
Report link

local all postgres peer

Just change above to below line

local all postgres md5

and restart the postgresql service

sudo service postgresql restart

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

79647421

Date: 2025-06-01 10:43:27
Score: 1
Natty:
Report link

JPA Structure was a part of the "JPA Buddy" plugin. When the plugin became a JetBrains pruduct, we merged or eliminated features that duplicated existing IDEA's functionality. Thereby, the "JPA Structure" toolwindow was merged with the "Persistence" one. Now you can find most of the old features there.

Link to doc: https://www.jetbrains.com/help/idea/jpa-buddy-entity-designer.html#jpa-structure

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

79647411

Date: 2025-06-01 10:34:24
Score: 1
Natty:
Report link

[ function createMouseEvent(e,t){const n=t.changedTouches[0],c=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,detail:t.detail,screenX:n.screenX,screenY:n.screenY,clientX:n.clientX,clientY:n.clientY,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,button:0,buttons:1});t.target.dispatchEvent(c)}document.addEventListener("touchstart",(e=>{createMouseEvent("mousedown",e)})),document.addEventListener("touchmove",(e=>{createMouseEvent("mousemove",e)})),document.addEventListener("touchend",(e=>{createMouseEvent("mouseup",e)}));

4,531 visits · 6 online

1

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

79647410

Date: 2025-06-01 10:33:24
Score: 0.5
Natty:
Report link

I'm seeing this problem, running on Debian Linux, trying to download ORAS from oras.land

With go 1.24.3 installed from the golang website go mod tidy hangs indefinitely, but with go 1.19 from Debian Linux it completes in a reasonable amount of time (About 5 seconds). All other factors are the same.

I thought it could have been my PC (wifi for example) so I transferred my code into a Debian 12 VM in my proxmox cluster (Wired to my router at gigabit) and experienced the exact same issue. I have a 400Mbit/s symmetric fibre to the premis internet link, with considerable monitoring and other systems using it, so it's not an internet outage.

The issue is 100% repeatable.

This looks a lot like a bug in go's downloader, but there doesn't appear to be a lot of debugging available.

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

79647403

Date: 2025-06-01 10:23:21
Score: 3
Natty:
Report link

broo it will work first

1. use to check the link if it is a only image link as only image is supported

2.make implementation of both compiler and glide of that version

3. in Manifest use permission of internet

casually follow this seteps i had also suffer very much for this . and literaaly on my time even placeholder is going wrong and not showing and i thinks that glide is not working .

Reasons:
  • RegEx Blacklisted phrase (1): check the link
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: vaibhav

79647394

Date: 2025-06-01 10:05:16
Score: 0.5
Natty:
Report link

from moviepy.editor import VideoFileClip, concatenate_videoclips, TextClip, CompositeVideoClip from moviepy.video.fx import resize

Reload video clips after environment reset

clip1 = VideoFileClip("/mnt/data/VID20250601114023.mp4").subclip(0, 5) clip2 = VideoFileClip("/mnt/data/VID20250601114725.mp4").subclip(0, 5) clip3 = VideoFileClip("/mnt/data/VID20250601114859.mp4").subclip(0, 5)

Resize to vertical 9:16 (Instagram)

clips = [resize.resize(clip, height=1920).crop(width=1080, x_center=clip.w / 2) for clip in [clip1, clip2, clip3]]

Text content and timing

text_data = [ ("Jesús ens va ensenyar a compartir...", 0), ("...i no mirar només per nosaltres", 2.5), ("Hi ha qui passa gana...", 5), ("...mentre altres llencem el pa", 7.5), ("Foc de fe 🔥 és actuar, no només creure", 10), ("La meva comunitat cristiana", 12.5), ("Jesús ens va ensenyar a compartir el pa", 15) ]

Concatenate video clips

final_video = concatenate_videoclips(clips)

Generate overlay texts

text_clips = [ TextClip(text, fontsize=70, color='white', font='Arial-Bold') .set_position('center') .set_duration(2.5) .set_start(start) for text, start in text_data ]

Merge video and text

final = CompositeVideoClip([final_video, *text_clips])

Export final Instagram-ready video

output_path = "/mnt/data/Foc_de_fe_INSTAGRAM_FINAL.mp4" final

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jose Santiago Roberto Vegas

79647377

Date: 2025-06-01 09:30:08
Score: 1
Natty:
Report link

npx tailwindcss init -p fails because Tailwind v4 moved the CLI out of the main package.

You have two options:

  1. (Recommended ⭐️) Install @tailwindcss/cli and the command will work again or simply follow the new v4 one-liner @import "tailwindcss" workflow, like this:
npm install -D tailwindcss @tailwindcss/cli postcss autoprefixer

And then add the new @import "tailwindcss" in the first line your main css file, like this:

/* src/styles.css  — or app.css, globals.css, input.css, etc. */
@import "tailwindcss";
  1. (Not recommended 🤷) Pin to tailwindcss@3 and the command will work again, like this:
npm install -D tailwindcss@3 postcss autoprefixer
npx tailwindcss init -p

## Why?

Starting with Tailwind CSS v4 (January 2025) the CLI that used to live inside the tailwindcss package was split out into a dedicated package called @tailwindcss/cli.

Because the binary is no longer bundled, npx tailwindcss init -p can’t find anything to execute and npm shows the cryptic error.

Reasons:
  • Blacklisted phrase (0.5): Why?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: t4dhg

79647375

Date: 2025-06-01 09:29:07
Score: 1
Natty:
Report link

If someone landed here because of recursive population in Strapi v5 I recommend to use strapi-plugin-populate-all. It does the same job but better.

GET /api/articles?populate=all
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jan Fässler

79647372

Date: 2025-06-01 09:29:07
Score: 0.5
Natty:
Report link

Try this command to create react native cli project: npx @react-native-community/cli init ProjectName

Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Shaikh Faizan

79647370

Date: 2025-06-01 09:22:06
Score: 2.5
Natty:
Report link

So, the final answer is:

tcpdump -l ... | grep --line-buffered ... | tee dest_file

That works.

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

79647360

Date: 2025-06-01 09:09:03
Score: 3.5
Natty:
Report link

Solved turning off "Occurrences Highlight" in VS Code preferences.

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

79647359

Date: 2025-06-01 09:09:03
Score: 0.5
Natty:
Report link

Why doesn't the background color change with the color variable value?

Tailwind generates classnames at compile time, so you can't use arbitrary classname in runtime. This is also a very bad practicie. If you need to change background color often, you should not use a class for each of them.

Instead, use inline styling:

<div className="w-20 h-20 mx-auto mb-4" style={{backgroundColor: color}}>{color}</div>
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why do
Posted by: Jurakin

79647349

Date: 2025-06-01 08:51:58
Score: 2
Natty:
Report link
print("unedited text", end="", flush=True)
print("\rEdited text", flush=True)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Joshua Hall

79647345

Date: 2025-06-01 08:44:57
Score: 0.5
Natty:
Report link

Found the problem, all i had to do was pass port parameter in the initialization of my server

from mcp.server.fastmcp import FastMCP

mcp = FastMCP("Linux", port = 8082)

This would start the port on the desired address

INFO:     Started server process [29007]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8083 (Press CTRL+C to quit)
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Vivek

79647337

Date: 2025-06-01 08:33:54
Score: 1
Natty:
Report link

Using showCloseButton={false} is the clean, recommended way to hide the top-right close icon without breaking modal accessibility or functionality.

<DialogContent showCloseButton={false}>
    ...
</DialogContent>

This is the best way to hide ("X") button in the top-right corner

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

79647334

Date: 2025-06-01 08:28:53
Score: 0.5
Natty:
Report link

I have faced this problem recently, you can try the following 2 methods :- Method 1:-

  1. make sure you are exiting out of the previous server or stopping the previous server by pressing CTRL+C.
  2. Now restart the server by 'node index.js' or 'nodemon index.js' Method 2:- 1.If above method is not working you can Try closing the terminal and again opening it 2.Now start the server ,Most prbably your issue will get resolve.
Reasons:
  • Whitelisted phrase (-1): try the following
  • No code block (0.5):
  • Low reputation (1):
Posted by: Saawal Sharma

79647332

Date: 2025-06-01 08:25:53
Score: 3
Natty:
Report link

Unfortunately doing so(using Date.ToText) for changing culture in PowerQuery makes the developer switch to Import mode and can not continue in DirectQuery storage mode!!

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

79647330

Date: 2025-06-01 08:20:51
Score: 3.5
Natty:
Report link

I am using Android Studio Android Studio Meerkat Feature Drop | 2024.3.2 Patch 1.

Was getting error when tried to run KMP/KMM Project from Android studio while same could able to run from xcode.

Error was -

build/ios/Debug-iphonesimulator/null.app

Process spawn via launchd failed.

Process finished with exit code 0

Below answer helped me

Can't reproduce, please provide screenshots step by step what you are doing.

  1. image.png

  2. restart AS

  3. Switch to my config image1.png

  4. run it image2.png

Referred -

https://youtrack.jetbrains.com/issue/KTIJ-30024/Null-app-when-launching-ios-with-custom-scheme#focus=Comments-27-9840653.0-0

Reasons:
  • RegEx Blacklisted phrase (2.5): please provide
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: swapnil jadhav

79647329

Date: 2025-06-01 08:18:51
Score: 3.5
Natty:
Report link

I am using Android Studio Android Studio Meerkat Feature Drop | 2024.3.2 Patch 1.

Was getting error when tried to run KMP/KMM Project from Android studio while same could able to run from xcode.

Error was -

build/ios/Debug-iphonesimulator/null.app

Process spawn via launchd failed.

Process finished with exit code 0

Below answer helped me

Can't reproduce, please provide screenshots step by step what you are doing.

  1. image.png

  2. restart AS

  3. Switch to my config image1.png

  4. run it image2.png

Referred -

https://youtrack.jetbrains.com/issue/KTIJ-30024/Null-app-when-launching-ios-with-custom-scheme#focus=Comments-27-9840653.0-0

Reasons:
  • RegEx Blacklisted phrase (2.5): please provide
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: swapnil jadhav

79647321

Date: 2025-06-01 08:01:47
Score: 0.5
Natty:
Report link
To configure GitHub Copilot to authenticate using a personal GitHub.com account instead of a GitHub Enterprise (GHE) account, you generally need to remove any GHE specific authentication settings and ensure you are signed in with your GitHub.com account in your IDE. 
Here's a breakdown of how to achieve this in different IDEs:
1. VS Code:
Remove the authProvider setting:
1. Open your VS Code settings (File > Preferences > Settings or Code > Preferences > Settings on macOS).
2. Search for "copilot" and locate "GitHub > Copilot: Advanced".
3. Click on "Edit in settings.json".
4. Inside the github.copilot.advanced section, remove the line that specifies "authProvider": "github-enterprise".
5. Save the settings.json file.
6. Sign out and sign in with your GitHub.com account:
   * Click on your account icon in the bottom left of VS Code.
   * Sign out of any existing GitHub account.
   * Sign in with your personal GitHub.com account.

2. JetBrains IDEs (IntelliJ IDEA, PyCharm, etc.):
Remove the Authentication Provider setting:
1. Open your IDE settings (File > Settings on Windows/Linux, or > Preferences on macOS).
2. Navigate to "Languages & Frameworks" > "GitHub Copilot".
3. Remove any value entered in the "Authentication Provider" field.
4. Click "OK" to save the changes.

Sign out and sign in with your GitHub.com account:
1. Go to Tools > GitHub Copilot > Logout from GitHub.
2. Go to Tools > GitHub Copilot > Login to GitHub.
3. Follow the prompts to sign in with your GitHub.com account.

3. Xcode:
Remove the Auth provider URL:
1. Open the "GitHub Copilot for Xcode" application.
2. Click the "Advanced" tab.
3. Remove any value in the "Auth provider URL" field.

Sign in with your GitHub.com account:
Follow the instructions in Signing in to GitHub Copilot within Xcode to sign in with your GitHub.com account. 
Reasons:
  • Blacklisted phrase (1): how to achieve
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: EDRIS AMIR

79647320

Date: 2025-06-01 07:59:46
Score: 1.5
Natty:
Report link

Great question! Using another animation purely as a reference (without copying or reusing assets directly) is generally acceptable and common in the creative process. Just make sure your final animation is your original work and not a direct replica.

By the way, if you're into game-style characters like in fighting games, check out some cool ideas and character inspiration at Shadow Fight 2 Characters. It might spark some creativity for your next animation!

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

79647318

Date: 2025-06-01 07:57:46
Score: 5
Natty:
Report link

I resently got this problem but i tried everything i deleted the github shit on credential manager set chrome as default browser and reinstalled VS code but still get the error message when trying to login. Does someone know what to do???

2025-06-01 09:48:54.472 [info] [certificates] Removed 11 expired certificates
2025-06-01 09:49:29.241 [error] [default] github.copilot.signIn: TokenResultError [CopilotAuthError]: Timed out waiting for authentication provider to register
    at getSessionHelper (c:\Users\jaja\.vscode\extensions\github.copilot-1.326.0\extension\src\session.ts:84:42)
    at signInCommand (c:\Users\jaja\.vscode\extensions\github.copilot-1.326.0\extension\src\auth.ts:24:5)
    at c:\Users\Mac\.vscode\extensions\github.copilot-1.326.0\extension\src\telemetry.ts:23:13
    at Wb.h (file:///c:/Users/Mac/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:119:41516) {
  result: {
    reason: 'NotSignedIn',
    message: 'Timed out waiting for authentication provider to register'
  },
  vslsStack: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ],
  [cause]: undefined
}
Reasons:
  • Blacklisted phrase (1): ???
  • RegEx Blacklisted phrase (2): Does someone know
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Mac

79647310

Date: 2025-06-01 07:49:43
Score: 1
Natty:
Report link

One way to disable bounces for specific ScrollView is to access the underlying UIScrollView from a SwiftUI hierarchy.

check this link, and this link

struct UIKitPeeker: UIViewRepresentable {
    let callback: (UIScrollView?) -> Void

    func makeUIView(context: Context) -> MyView {
        let view =  MyView()
        view.callback = callback
        return view
    }

    func updateUIView(_ view: MyView, context: Context) { }

    class MyView: UIView {
        var callback: (UIScrollView?) -> () = { _ in }

        override func didMoveToWindow() {
            super.didMoveToWindow()

            var targetView: UIView? = self
            while if let currentView = targetView {
                if currentView is UIScrollView {
                    break
                } else {
                    currentView = currentView.superView
                }
            }
            callback(targetView as? UIScrollView)
        }
    }
}

To use it:

struct ContentView: View {
    var body: some View {
        ScrollView {
            VStack(spacing: 8) {
                Foreach(0..<100, id: \.self) { i in
                    Text("Scroll bounces disabled \(i)")
                }
            }
            .background {
                UIKitPeeker { scrollView in
                    scrollView?.bounces = false
                }
            }
        }
    }
}
Reasons:
  • Blacklisted phrase (1): this link
  • RegEx Blacklisted phrase (1): check this link
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: M_Khater

79647305

Date: 2025-06-01 07:43:41
Score: 5
Natty: 5.5
Report link

Thanks for your sharing. Is the Python code you provided above confirmed to be functional? Without using the ZhiJinPower app, can this Python code continuously connect directly to and read data from the MPPT controller?

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Wes Wu

79647299

Date: 2025-06-01 07:37:40
Score: 1.5
Natty:
Report link

You are asking for a formatter which generates unuseful 'whitespaces' in your code!!!

But the expert recommendation is to avoid useless 'whitespacing' as much as possible, and that is what the formatters out there follows while formatting your code.

But if there's a formatter like that, which u want, and that is a BIG IFFFF, that's gotta be a hell of a development mistake...

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

79647293

Date: 2025-06-01 07:29:37
Score: 5
Natty: 6.5
Report link

for next js 15 all the steps are mentioned in this article

https://tarunnayaka.me/Blog/68348f2ccdf34b578f3bdd8e/how-to-deploy-a-nextjs-15-app-to-azure-app-service-easy-deployment-guide

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

79647291

Date: 2025-06-01 07:23:36
Score: 0.5
Natty:
Report link

Prettier intentionally avoids formatting styles that involve alignment for aesthetic purposes, such as aligning = signs or colons, because its philosophy emphasizes consistency over visual alignment, which can be fragile and harder to maintain.

However, there are other tools and workarounds that can achieve what you're asking for:

✅ Option 1: align-yaml or align-js via custom scripts These are not official tools, but small CLI scripts or packages that parse and align JavaScript objects or variable declarations.

You could write a simple script or use a small utility like:

cli-align

columnify

align-code (not well-maintained but a starting point)

✅ Option 2: Use ESLint with custom rule or plugin Some ESLint plugins support alignment features. For example:

eslint-plugin-align-import

eslint-plugin-sort-destructure-keys

But aligning = in variable declarations isn’t supported out of the box. You could:

Write a custom ESLint rule

Use eslint --fix with tailored rules to preprocess code, then reformat with Prettier

✅ Option 3: Editor Macros / Align Plugins For manual or semi-automated formatting:

VSCode:

Extension: "Align"

Shortcut: Select lines → Ctrl+Shift+P → "Align" → Choose =

Sublime Text:

Plugin: AlignTab or built-in Find > Replace using regex

✅ Option 4: Use ast-grep or code mods For power users, tools like ast-grep or jscodeshift let you match and rewrite code structurally — useful for automating style changes like aligning assignments

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

79647286

Date: 2025-06-01 07:16:34
Score: 1
Natty:
Report link

Here is the tool and approaches that can help:

ESLint + plugin or manual rules While ESLint is mainly for linting, some plugins can help with alignment, like:

eslint-plugin-align-assignments This plugin aligns = and : in variable declarations and object literals.

Install:

npm install --save-dev eslint eslint-plugin-align-assignments

Add to your .eslintrc.js:

module.exports = {
  plugins: ['align-assignments'],
  rules: {
    'align-assignments/align-assignments': ['error', { requiresOnly: false }],
  },
};

Then run:

npx eslint --fix yourfile.js
Reasons:
  • Blacklisted phrase (1): This plugin
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mazin Ali

79647285

Date: 2025-06-01 07:15:33
Score: 1.5
Natty:
Report link
// PropertyChanged Event Handler
    private void thirdLevel_PropertyChanged(object? sender, PropertyChangedEventArgs e)
    {
        // other relevant updates on thirdLevel object's PropertyChanged Event
        ...

        // *** Update StartTime value of subsequent Items in the Collection ***
        if (e.PropertyName == "Duration")
        {
            var index = ThirdLevels.IndexOf(sender as ThirdLevelViewModel);
            for (int i = index + 1; i < ThirdLevels.Count...
        }
    }

It's super easy, any problem?

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

79647283

Date: 2025-06-01 07:11:32
Score: 2
Natty:
Report link

Please disregard the error related to dotnet1; setting useLegacyV2RuntimeActivationPolicy = true is the key.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: JORGE ADRIAN VARGAS GRANDA

79647277

Date: 2025-06-01 07:06:31
Score: 3.5
Natty:
Report link

one's and two's compliment of a positive number is its binary equivalent .

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

79647275

Date: 2025-06-01 06:59:28
Score: 4
Natty: 4.5
Report link

Timer Countdown with progress bar C#

header 1 header 2
cell 1 cell 2
cell 3 cell 4
Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ai developer

79647255

Date: 2025-06-01 06:31:21
Score: 1
Natty:
Report link

tf.keras.preprocessing.text.Tokenizer is deprecated in recent versions of TensorFlow. The recommended alternative is to use TextVectorization from tf.keras.layers

USE: from tensorflow.keras.layers import TextVectorization

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

79647254

Date: 2025-06-01 06:25:20
Score: 0.5
Natty:
Report link

I recently came across MagicWords’ cataloguing solution and wanted to share it here for anyone looking to improve their product listings. MagicWords specialises in creating well-structured, detailed, and accurate product catalogues that help businesses showcase their products effectively.

Their cataloguing service covers everything from collecting product data—like names, descriptions, prices, and images—to classifying products into clear categories and subcategories. This makes it easier for customers to find what they need, improving user experience and boosting sales.

What sets MagicWords apart is their focus on quality and consistency. They write engaging product descriptions that highlight key features and benefits, and they add metadata like keywords and tags to improve searchability. Plus, they manage data entry meticulously and perform thorough quality checks to ensure error-free catalogues.

Whether you run an e-commerce store, print catalogue, or digital platform, MagicWords can tailor their service to fit your needs. They also offer ongoing updates to keep your catalogue current.

If you want to streamline your product listings and enhance customer engagement, check out their service here: https://magicwords.in/solution/cataloguing/

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

79647252

Date: 2025-06-01 06:24:20
Score: 2.5
Natty:
Report link

This IS a race condition. Use Assembly Fixtures (https://xunit.net/docs/shared-context#assembly-fixture) or locking mechanism to have an atomic RMW DB operation.

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

79647249

Date: 2025-06-01 06:23:19
Score: 1.5
Natty:
Report link

To find the coordinate of the eye corner using color differences, you'd typically analyze the contrast between the skin and the sclera (white of the eye) or the surrounding areas in a photo. Eye corners often appear as sharp points where color or brightness changes suddenly. This process is commonly used in computer vision or facial recognition. If you're interested in eye-related analysis like this, you might also want to explore tools like baby Eye Color Calculator, which uses genetic and visual data to predict or explore potential eye color outcomes — it's a fun and helpful way to learn more about eyes and how traits like color are passed down!

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

79647235

Date: 2025-06-01 06:05:14
Score: 2
Natty:
Report link

🚀 Discover Cartovia – Your Global Shopping Partner!

🔒 100% Secure | 🌍 Worldwide Shipping | ✅ Verified Products

Join thousands who trust Cartovia for safe, fast, and reliable shopping on Telegram.

🛒 Tap to explore the deals → Cartovia

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

79647233

Date: 2025-06-01 06:01:13
Score: 3.5
Natty:
Report link

check android/gradlew.bat may be deleted by mistake put it back it will work as usual.

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

79647222

Date: 2025-06-01 05:45:08
Score: 0.5
Natty:
Report link

Download and install the nVidia cuDNN library. You may also need the nVidia CUDA Toolkit. For my app, which uses the Microsoft Semantic Kernel, I had to copy the DLL files into the folder with the EXE to make it work.

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

79647220

Date: 2025-06-01 05:42:06
Score: 6 🚩
Natty: 5.5
Report link

Samyar ghodrati bass Samyar ghodrati bass mizanam

Reasons:
  • Probably link only (1):
  • Contains signature (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Samyar ghodrati bass

79647207

Date: 2025-06-01 05:07:57
Score: 13.5 🚩
Natty: 6.5
Report link

I'm currently facing the same issue with the Bosch GLM 50 C using flutter_blue_plus. I was able to connect and read static data like device name, but I'm not receiving live distance measurements either. Did you manage to solve this problem? Any guidance would be greatly appreciated. Thanks in advance!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): appreciated
  • RegEx Blacklisted phrase (3): Thanks in advance
  • RegEx Blacklisted phrase (3): Did you manage to solve this problem
  • RegEx Blacklisted phrase (1.5): solve this problem?
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ebrahim Elnemr

79647203

Date: 2025-06-01 05:00:55
Score: 2.5
Natty:
Report link

It's available under UNIX environment for windows MYSYS2 https://www.msys2.org/docs/pkgconfig/

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

79647202

Date: 2025-06-01 04:59:55
Score: 1
Natty:
Report link

I understood the problem!

Cocos converts the mouse event to the touch event automatically, so events are propagated to the cc.layer, which are touch events.

Event listeners, in the cc.layer, listen for the mouse event.

So, basically, when I trigger the onMouseDown event on the screen, there are 2 events (onMouseDown and onTouchBegan) that are triggered.

There are several approaches to solving this problem. We can manually end mouse events in the ccui.layout. Or we can use the touch events in the cc.layer instead.

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

79647199

Date: 2025-06-01 04:49:53
Score: 3.5
Natty:
Report link

I found patterns of FedEx tracking numbers and many other companies here

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

79647198

Date: 2025-06-01 04:48:53
Score: 2.5
Natty:
Report link

How about using LAST_VALUE() ?

SELECT 
    Country, 
    LAST_VALUE(Date) OVER (PARTITION BY Country ORDER BY Date 
        ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS Last_Date, 
    LAST_VALUE(Rate) OVER (PARTITION BY Country ORDER BY Date 
        ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS Last_Rate 
FROM my_tab;
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): How
  • Low reputation (0.5):
Posted by: Nanomachines Son

79647193

Date: 2025-06-01 04:45:52
Score: 2
Natty:
Report link

Javascript:javascript:function createMouseEvent(e,t){const n=t.changedTouches[0],c=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,detail:t.detail,screenX:n.screenX,screenY:n.screenY,clientX:n.clientX,clientY:n.clientY,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,button:0,buttons:1});t.target.dispatchEvent(c)}document.addEventListener("touchstart",(e=>{createMouseEvent("mousedown",e)})),document.addEventListener("touchmove",(e=>{createMouseEvent("mousemove",e)})),document.addEventListener("touchend",(e=>{createMouseEvent("mouseup",e)}));

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Shankar Poojary

79647187

Date: 2025-06-01 04:36:49
Score: 0.5
Natty:
Report link

Just freshening @Charlie Martin's answer for 2025,

let array = [UInt8](repeating: 0, count: 16)

// or if you're into Data

let data = Data([UInt8](repeating: 0, count: 16))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @Charlie
  • High reputation (-1):
Posted by: orion elenzil

79647173

Date: 2025-06-01 04:07:42
Score: 3.5
Natty:
Report link

They haven't yet migrated and my project is built upon ktor 3.x.x

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

79647172

Date: 2025-06-01 04:05:42
Score: 3
Natty:
Report link

There is an app called lunar which might solve your issue. https://lunar.fyi/
Can you check the below links. m1ddc works for M1 macs and the even non M1s
https://github.com/waydabber/BetterDisplay
https://github.com/waydabber/m1ddc

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

79647165

Date: 2025-06-01 03:55:39
Score: 0.5
Natty:
Report link

For those who do need a type also filtering out properties that can be explicitly undefined, there is a simpler solution than the one suggested in the comments:

type PickDefined<T> = {
  [K in keyof T as undefined extends T[K] ? never : K]: T[K];
};
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: aweebit

79647161

Date: 2025-06-01 03:52:38
Score: 1.5
Natty:
Report link

I was able to find a solution based on the PR that is mentioned https://github.com/ng-bootstrap/ng-bootstrap/issues/4828#issuecomment-2925667913

As of today I am running ng-bootstrap in Angular v20

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

79647157

Date: 2025-06-01 03:44:36
Score: 0.5
Natty:
Report link

I ran into something really similar after upgrading Emacs—my ediff setup suddenly felt broken, and I couldn't figure out why the control window was missing. Turned out it was some theme or face setting that didn’t play well with the new frame behavior in Emacs 29. Digging into set-face-attribute calls and checking what lsp-ui was doing helped me fix it eventually. Funny enough, during one of my many debugging breaks, I stumbled across this weird little game called crazy cattle 3d. It’s basically sheep bumping into each other in glorious chaos. Totally random, but weirdly relaxing after wrestling with Emacs config for hours.

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

79647143

Date: 2025-06-01 03:12:27
Score: 1.5
Natty:
Report link

To trim only trailing slashes use rules from Trailing Slash Problem Apache's guide:

RewriteCond    %{REQUEST_FILENAME}  -d
RewriteRule    ^(.+[^/])$           $1/  [R]

To removes all trailing and duplicates slashes in the path, includes a root of the path, see this post I described: https://stackoverflow.com/a/79647129/6243733

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

79647139

Date: 2025-06-01 03:03:25
Score: 3
Natty:
Report link

use uint32_t irrelevant[4] instead of uint32_t irrelevant[3].

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

79647138

Date: 2025-06-01 03:02:25
Score: 1
Natty:
Report link

Wow, that was fast. Thanks to @STerliakov for finding a related post!

The solution is generics. So the BusinessMan declaration becomes

class BusinessMan[BriefcaseType: Briefcase]:
    # snip

    @classmethod
    def from_briefcase(cls, briefcase: BriefcaseType) -> Self:
        # snip

which indicates that from_briefcase() takes a BriefcaseType, which is any subclass of Briefcase.

The declaration for BiggerBusinessMan becomes

class BiggerBusinessMan(BusinessMan[BiggerBriefcase]):
    # snip

    @classmethod
    def from_briefcase(cls, briefcase: BiggerBriefcase) -> Self:
        # snip

which says that BiggerBusinessMan inherits from the variant of BusinessMan where BriefcaseType is BiggerBriefcase.

Type annotations are sublime.

Pleasure doing business!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): solution is
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @STerliakov
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Quantasm

79647124

Date: 2025-06-01 02:15:14
Score: 1.5
Natty:
Report link

You need to import FirebaseFirestore. Importing it will fix the error.

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

79647119

Date: 2025-06-01 02:11:12
Score: 10.5 🚩
Natty: 6.5
Report link

I am looking for something similar. I want my monitor settings to go dim after sunset and be back to normal after sunrise. Can anyone help on this ?

Reasons:
  • Blacklisted phrase (2): I am looking for
  • RegEx Blacklisted phrase (3): Can anyone help
  • RegEx Blacklisted phrase (1): I want
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: justnisar

79647118

Date: 2025-06-01 02:08:11
Score: 5
Natty: 4.5
Report link

You can take a look at [SwiftlyUI](https://github.com/CoderLineChan/SwiftlyUI)

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

79647115

Date: 2025-06-01 02:08:11
Score: 4.5
Natty:
Report link

Look like I needed this variant of Glib::Value<...>:

https://gnome.pages.gitlab.gnome.org/glibmm/classGlib_1_1Value_3_01Glib_1_1RefPtr_3_01Glib_1_1Bytes_01_4_01_4.html

Reasons:
  • Blacklisted phrase (0.5): I need
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: xBACP

79647086

Date: 2025-06-01 00:33:49
Score: 2
Natty:
Report link

Do you know what a multidimensional array looks like in a high level language? It is the same in Assembly language, you just navigate it with a different syntax. Just remember, it will be a fixed-size, single variable type (all ints or doubles or pointers, etc.) From a language like C for example. Not something like JavaScript...

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: SE Foulk

79647081

Date: 2025-06-01 00:26:46
Score: 7.5 🚩
Natty: 6.5
Report link

Did you figure it out? Having this issue as well

Reasons:
  • RegEx Blacklisted phrase (3): Did you figure it out
  • 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: Waykzen

79647077

Date: 2025-06-01 00:12:43
Score: 0.5
Natty:
Report link

It's not currently possible as the implementation only supports a subset of what's available through the ICU/Unicode library. However, there is an open issue on tc39's (ECMAScript Technical Committee 39) GitHub repository to support unit prefixes like square, cubic, etc: https://github.com/tc39/ecma402/issues/767

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

79647071

Date: 2025-05-31 23:50:38
Score: 1.5
Natty:
Report link
=XLOOKUP(Analysise!B2,INDIRECT("'"&B3&"'!$B:$B"),INDIRECT("'"&B3&"'!$A:$G"))

This formula works in my sample file with the dropdown for the sheet name in cell B3 of sheet "Analysise".

Result for "Background" in cell B3:

enter image description here

Result for "sheet2" in cell B3:

enter image description here

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

79647057

Date: 2025-05-31 23:27:31
Score: 1.5
Natty:
Report link

OK I was able to get this to work finally!! I just had to follow this guide.

I just updated the Bucker police to the one mentioned in the guide and updated my IAM role to the following:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "chime:*",
                "s3:GetBucketPolicy",
                "s3:GetBucketLocation"
            ],
            "Resource": "*"
        }
    ]
}
Reasons:
  • Blacklisted phrase (1): this guide
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Boubaker Kalfat

79647055

Date: 2025-05-31 23:24:30
Score: 7.5 🚩
Natty: 6.5
Report link

I have a similar question to this.

I am also doing a similar project and I would like the volume HUD from apple to display whenever I increase the volume so that the user can know what their volume is at now. How do I do this?

Reasons:
  • Blacklisted phrase (1): How do I
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have a similar question
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: AK Chithra Sathish

79647054

Date: 2025-05-31 23:19:28
Score: 1
Natty:
Report link

Let me say I love this question! I was an Assembly language officianado back in the day for my company, and there was nothing I loved more than tweaking ASM code down to a gnats ass in size and speed in light years (relative to the 80's and 90's). This would be great question for a college level C or Assembly Language class to explore. The idea that you can look at the actual code generated by the compiler has always been a fantastic tool for learning the voodoo these compiler writers create. These compilers are also the reason us old Assembly language coders are out of business - nowadays there is no time to tweak so much before getting your product out the door. Let there be no doubt, this kind of optimization is fun stuff! The mention of Michael Abrash brought back my old memories, and the mindset he inspired in order to dissect ASM code still works today in higher level languages. Kudos for this question and the example code used to test it.

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

79647040

Date: 2025-05-31 22:47:19
Score: 2.5
Natty:
Report link

for me when change my DNS address this error fixed, probably for proxy or ip or in my case was dns. pls check your network connection.

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

79647017

Date: 2025-05-31 21:48:04
Score: 7.5 🚩
Natty: 6
Report link

enter image description here Объясните почему ошибка? Вроде делаю все по инструкции. Самое интересное не один скрипт не работает от слова вообще, какой бы не вставил.

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • No latin characters (3):
  • Low reputation (1):
Posted by: Владимир Горнухин

79646999

Date: 2025-05-31 21:19:56
Score: 1.5
Natty:
Report link

To make your API receive the custom claim (ahNumber), you need to add it to the access token in the API's app registration, not just to the SPA's ID token.

Quick steps:

  1. Go to Azure Portal > Entra ID > App registrations > your API app

  2. Open Token Configuration and click "+ Add Optional Claim"

  3. Select Access token, choose Custom, and add:

    • Name: ahNumber

    • Source: Attribute

    • Value: user.employeeid

  4. Save and accept the claim policy if prompted

  5. In the API app's Manifest, set "acceptMappedClaims": true

Now the claim will appear in the API’s ClaimsPrincipal and can be accessed like this:
User.FindFirst("ahNumber")?.Value

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

79646998

Date: 2025-05-31 21:19:56
Score: 2
Natty:
Report link

Function works correctly, it changes 0x0001 to 0x0100. And you program shows this. You are taking high byte 01 shifting it right and printing as First byte of course you'll see 1. So what is wrong?

By the way what & 0xff gives here?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
Posted by: Solt

79646993

Date: 2025-05-31 21:08:53
Score: 1
Natty:
Report link

The issue happens because the column has both cellRenderer and editable: true. When the checkbox is clicked, AG Grid enters edit mode, which interferes with the custom cell layout and causes misalignment or style issues.

To fix this, remove editable: true from the column definition and handle the value update manually inside the cellRenderer's onClick event. This way, the checkbox stays centered and the UI remains stable.

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

79646990

Date: 2025-05-31 21:06:53
Score: 1
Natty:
Report link
  1. Qt and Qwt should be compiled with the same compiler to be abi compatible (same major version of said compiler), if linker complains that it cannot find library it might mean that he ignores provided library because it's not abi-compatible. In c++ you cannot just download library and expect it to work unless you're using package manager like vcpkg or conan or msys2. If you're not using package manager, I recomend you to compile qwt instead of installing it, the process is straightforward and compilation only takes about 10-20 minutes.

Canonical gcc way to specify libraries is with -Ldirectory -lname

LIBS += -LC:/dev/qwt/qwt-6.3.0/lib -lqwt

Where should I define, that I want a static binding of qwt libraries?

You should not, if you link to static library it will be linked statically if you link to dynamic library it will be linked dynamically.

Reasons:
  • Blacklisted phrase (1.5): Where should I
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: mugiseyebrows

79646987

Date: 2025-05-31 21:02:51
Score: 2.5
Natty:
Report link

What worked for me is to create new business.
I know it's probably not ideal - but the important part it works.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: Ilan Ts