79627602

Date: 2025-05-18 16:02:02
Score: 1
Natty:
Report link

Why is flowing off the end of a function without a return value not ill formed?

Because maybe you can guarantee that you won't let the program execute there.

The difference between undefined behavior and ill-formed C++ programs

Undefined behavior (commonly abbreviated UB) is a runtime concept. If a program does something which the language specified as “a program isn’t allowed to do that”, then the behavior at runtime is undefined: The program is permitted by the standard to do anything it wants.
However, if your program avoids the code paths which trigger undefined behavior, then you are safe.

Even if a program contains undefined behavior, the compiler is still obligated to produce a runnable program. And if the code path containing undefined behavior is not executed, then the program’s behavior is still constrained by the standard.

By comparison, an ill-formed program is a program that breaks one of the rules for how programs are written. For example, maybe you try to modify a variable declared as const, or maybe you called a function that returns void and tried to store the result into a variable.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why is
  • Low reputation (0.5):
Posted by: 許恩嘉

79627596

Date: 2025-05-18 15:57:01
Score: 2
Natty:
Report link

Was stuck on the same issue, check the headers your application is sending. Specifically, if Cross-Origin-Opener-Policy is set to same-origin, it needs to be updated to same-origin-allow-popups

Doc reference: https://developers.google.com/identity/gsi/web/guides/get-google-api-clientid#cross_origin_opener_policy

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

79627575

Date: 2025-05-18 15:31:55
Score: 4
Natty:
Report link

Do this: Install composer require laravel/breeze --dev, and then @routes will not show as plain text anymore because Breeze sets up the route configuration."

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

79627568

Date: 2025-05-18 15:22:52
Score: 0.5
Natty:
Report link

This is certainly due to missing username and email in the global configuration of git. Easy way to solve this is through IDE:

Git settings navigation in Visual Studio

Enter name and email for git global configuration through Visual Studio


These actions performed are equivalent to CLI approach of:

git config --global user.name "Your Username"
git config --global user.email "[email protected]"

P.S.: It'd be good to set the "Default Branch Name" to main as it defaults to master.

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

79627558

Date: 2025-05-18 15:08:50
Score: 5
Natty: 6
Report link

enter image description here

Ich habe die build.gradle.kts wie im Bild bearbeitet und konnte die gewünschten Ordner auch anlegen, jedoch sehe ich diese nur im Datei-Explorer und nicht in Android Studio. Wo ist mein Fehler?

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Markus Jannek

79627556

Date: 2025-05-18 15:04:48
Score: 2.5
Natty:
Report link

I've changed it to

<InputDate class="form-control" @bind-Value="@\_tempDate" 
      @onblur="PresentedDateChanged" />

This seems to be working. But still, why not bind-value:after?

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

79627554

Date: 2025-05-18 15:03:48
Score: 1.5
Natty:
Report link

I know this is a fairly old question, but if you are still wondering there is a file called /etc/cos-package-info.json which has the installed package information. It is discussed in the vulnerability scanning section of the COS documentation.

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

79627550

Date: 2025-05-18 14:59:47
Score: 4.5
Natty:
Report link

I solve this by uploading program file (.HEX) to soil sensor module found in this link

Reasons:
  • Blacklisted phrase (1): this link
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Juma Rubea

79627541

Date: 2025-05-18 14:42:43
Score: 0.5
Natty:
Report link

keybindings.json

    {
        "key": "alt+down",
        "command": "editorScroll",
        "args": {"value": 5, "to": "down"},
        "when": "textInputFocus"
    },

argument 'value' of editorScroll command is scroll speed

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

79627534

Date: 2025-05-18 14:35:41
Score: 3
Natty:
Report link

You can also use web applications like https://mockmyapi.in for creating mocks. You can create multiple scenarios and use them in your development.

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

79627530

Date: 2025-05-18 14:30:40
Score: 1.5
Natty:
Report link

I think you're looking for the let-else construct?

let Ok(mut entries) = fs::read_dir(folder).await else {
    // log here and diverge
};
// continue here
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: cyqsimon

79627529

Date: 2025-05-18 14:29:40
Score: 1
Natty:
Report link

The second argument of Arrays.sort() expects a java Comparator which is a functional interface that expects two arguments (a,b) and expects to return a concrete comparator logic (here Integer.compare(a[0],b[0]).
Now, the integer compare method is already a library method which returns -1,0 and 1 whenever a is less than, equal to or greater than b respectively.
If we dig deeper, this integer is fed to the internal sorting algorithm which is used by the language (here java). In the algo's comparision logic (mergesort etc), it just uses this returned integer by Integer.compare() to decide whether or not to swap two elements.

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

79627524

Date: 2025-05-18 14:24:38
Score: 5
Natty:
Report link

Here is another solution, you can check this out https://medium.com/@bassouat8/how-to-build-a-reusable-burger-menu-button-in-angular-with-animation-and-accessibility-2b67a578ddd7

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Contains signature (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: bassouat

79627514

Date: 2025-05-18 14:02:31
Score: 0.5
Natty:
Report link

A quick fix:

Change compileSdk, buildTools and ... in this file node_modules/react-native/gradle/libs.versions.toml

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

79627511

Date: 2025-05-18 14:00:31
Score: 0.5
Natty:
Report link

Unfortunately, there is no VSCode setting or JSON configuration to append custom property values to IntelliSense for CSS. As mentioned, you can create your own custom snippet. I prefer Cochin over Cambria, so I wanted to switch the order in the default snippet, but had to do the following instead in the css.json file (File > Preferences > Configure Snippets > css):

{
    // Place your snippets for css here. Each snippet is defined under a snippet name and has a prefix, body and 
    // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
    // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the 
    // same ids are connected.
    // Example:
    // "Print to console": {
    //  "prefix": "log",
    //  "body": [
    //      "console.log('$1');",
    //      "$2"
    //  ],
    //  "description": "Log output to console"
    // }
    "Cochin First Font-Family": {
        "prefix": "cff",
        "body": ["font-family: Cochin, Cambria, Georgia, Times, 'Times New Roman', serif;"],
        "description": "Default Cambria snippet with Cochin first"
    }
}

So now when I type "cff" > Tab, I get the font-family I line I want.

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

79627510

Date: 2025-05-18 13:59:30
Score: 0.5
Natty:
Report link

I was also surprised there is no way to prevent bringing it to front and loosing focus.

My workaround is to have "reusable pages" (1 if your program is simple, or X if you have a X as concurrency). You wait for a created page instance to be marked as available (with a mutex or so) to reuse it.

_Make sure to clear all listeners if you added some, or the storage if you don't want it to be shared. It's a bit more at risk... but for now that's the only viable solution when `headless: true` does not fit the use case._

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

79627502

Date: 2025-05-18 13:49:28
Score: 3.5
Natty:
Report link

usen json, it is better than mysql in many where

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

79627501

Date: 2025-05-18 13:48:28
Score: 3
Natty:
Report link

Based on https://projectlombok.org/features/Data, Data contains @ToString, @EqualsAndHashCode, @Getter, @Setter, @RequiredArgsConstructor

The use in spring is no different than elsewhere, you can also set up items that contain lombok at https://start.spring.io/

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @ToString
  • User mentioned (0): @EqualsAndHashCode
  • User mentioned (0): @Getter
  • User mentioned (0): @Setter
  • User mentioned (0): @RequiredArgsConstructor
  • Low reputation (1):
Posted by: EikoocSun

79627474

Date: 2025-05-18 13:19:22
Score: 3
Natty:
Report link

In my case, for local testing, the problem was changing from https to http. So http://localhost:8080/...

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

79627472

Date: 2025-05-18 13:13:21
Score: 2.5
Natty:
Report link

After some research I found out that it is not possible to access the Docker daemon of the underlying instance in a managed CodeBuild environment. This would require a custom EC2 instance. As I don't want to pay the cost for that I decided to go with the Docker-in-Docker approach instead.

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

79627455

Date: 2025-05-18 12:45:13
Score: 1
Natty:
Report link

I was looking for a solution and had to come up with one myself.

I wanted to use something like c#'s nameof so my func is called as such.

function nameof(obj) {
  return Object.keys(obj)[0];
}

Can be used like

const myObj = {};

nameof({ myObj }); // will return 'myObj'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Orhan Ekici

79627451

Date: 2025-05-18 12:35:10
Score: 5.5
Natty: 4.5
Report link
  1. loadstring(game:HttpGet("https://raw.githubusercontent.com/newredz/BloxFruits/refs/heads/main/Source.luau"))(Settings)
Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: FFTLMN Foithong065

79627449

Date: 2025-05-18 12:29:09
Score: 2.5
Natty:
Report link

Since this question was asked, kotlinx-io has been created to address this gap in Kotlin Multiplatform.

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

79627439

Date: 2025-05-18 12:20:06
Score: 1.5
Natty:
Report link

using make_shared<T>() is really not possible to access private and protected part of the class, to access these parts of the class you will either:

1. either you can make a function in the singleton class that will let you access the instance of the class, or

2. make a class which manages the creation of the singleton class and make it a friend the class from there you could use the std::shared_ptr<T>(arg) for creating your new objects of the your class

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

79627436

Date: 2025-05-18 12:14:04
Score: 4
Natty:
Report link
Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Pierre NEVEU

79627426

Date: 2025-05-18 11:50:59
Score: 1
Natty:
Report link

I had the same error at a 'TextBlock' within a grid cell which defined its content in the body, not in 'Text'. As soon as the content was moved to 'Text' the exception vanished. But I needed multiple lines. So I placed the TextBlock inside a 'ContentControl' or 'Border' and both worked. I guess in my case it's a bug in Visual Studio. The version is 17.13.7.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): I had the same
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: AndresRohrAtlasInformatik

79627424

Date: 2025-05-18 11:47:58
Score: 2.5
Natty:
Report link

If the pip activity is started by context.startActivity(intent, optionsBundle) and optionsBundle is created by ActivityOptions.makeLaunchIntoPip(params).toBundle(); we can detect close and maximized click event by the given solutions.

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

79627419

Date: 2025-05-18 11:38:55
Score: 3
Natty:
Report link

Problem fixed; My index.html file included a <script src=> tag to the JS file causing this issue...

Thanks to anyone who reviewed this question in despite of the lack of answers :)

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: OCS

79627415

Date: 2025-05-18 11:34:54
Score: 2
Natty:
Report link
trackOutlineColor: WidgetStateProperty.all(
                    AppColors.primaryColor,
                  ),
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Low reputation (1):
Posted by: mahmood imtiaz

79627395

Date: 2025-05-18 11:10:48
Score: 2.5
Natty:
Report link

Even I'm new to Android App development, but i think using this line would solve ur issue

This uses up all the screen space from the all the sides,

EdgeToEdge.enable(MainActivity.this);

Add this in on the top of the activity

without enabled

edge to edge enabled

i have added the images for your reference

Reasons:
  • RegEx Blacklisted phrase (1.5): I'm new
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ANIRUDH G V

79627391

Date: 2025-05-18 11:06:47
Score: 1
Natty:
Report link

You should configure service discovery by using:

Add following code in your blazor Program.cs file.

builder.AddServiceDefaults();

see https://aka.ms/dotnet/aspire/service-defaults

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

79627386

Date: 2025-05-18 11:01:46
Score: 0.5
Natty:
Report link

You have to ensure these rules.

  1. NAT Gateway are in the Public Subnet, and set to Public Connectivity Type

  2. Route Table on Private Subnet are set to Destination: 0.0.0.0/0 → Target: NAT Gateway

  3. Network ACL on both Private and Public Subnet are Set Allow for connection to 0.0.0.0/0 on both Inbound and Outbound Traffic

  4. Ensure Private Instance security group's are set Outbound to 0.0.0.0/0 on Outbound traffic or just set to specific Port and Protocol

I found that Point 3 is the solution to the similar problem that you have.

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

79627384

Date: 2025-05-18 10:56:40
Score: 7 🚩
Natty:
Report link

Did anyone fixed that in the meanwhile? I have the same Issue.

Testing with curl is running fine:
curl -i -N "http://localhost/?script=longtest.sh&path=test"

HTTP/1.1 200 OK
Server: nginx/1.26.3
Date: Sun, 18 May 2025 10:45:53 GMT
Content-Type: text/plain; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Content-Encoding: identity
Cache-Control: no-cache, no-store

STEP 1 - 10:45:54
(PAUSE)
STEP 2 - 10:45:56
(PAUSE)
STEP 3 - 10:45:58
(PAUSE)
....

I tried serval configs. This is my current one:

server {
        listen       80;
        server_name  _;

        location / {
        # Buffering global deaktivieren
            fastcgi_buffering          off;
            fastcgi_request_buffering  off;
            fastcgi_max_temp_file_size 0;
            
            # Force Flush aktivieren
            #fastcgi_force_flush        on;

            # Chunked Encoding erzwingen
            chunked_transfer_encoding  on;
            proxy_buffering            off;
            gzip                       off;

            # Keep-Alive
            fastcgi_keep_conn          on;
            fastcgi_socket_keepalive   on;

            # Timeouts
            fastcgi_read_timeout       86400;
            fastcgi_send_timeout       86400;
        
#            autoindex on;
#            alias /mnt/samba/;
            # CGI für die dynamische Verzeichnisauflistung verwenden
            root /scans;
            try_files $uri $uri/ =404;  # Wenn die Datei nicht existiert, gehe zu @cgi
            # Wenn die Anfrage auf ein Verzeichnis zeigt, führe das CGI-Skript aus
            # Wenn es ein Verzeichnis ist, rufe das CGI-Skript auf
            location ~ /$ { 
                # Füge die FastCGI-Parameter hinzu
                include fastcgi_params;
                fastcgi_param SCRIPT_FILENAME /scans/scans.sh;
                # Erlaube Übergabe der Anfrage als Query-String
                #fastcgi_param QUERY_STRING "path=$uri";  # Statt $request_uri
                fastcgi_param QUERY_STRING $query_string; 
                fastcgi_param NO_BUFFERING 1;
                fastcgi_request_buffering off; 
                fastcgi_pass unix:/var/run/fcgiwrap/fcgiwrap.socket;
            }                    
            # Deaktiviere das automatische Directory-Listing von Nginx
            autoindex off;     

        }
    }

But It´s again buffering. That´s strange because the direct curl on the wrapper is not buffering.

Reasons:
  • Blacklisted phrase (1): I have the same Issue
  • RegEx Blacklisted phrase (3): Did anyone fixed that
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same Issue
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did anyone fix
  • Low reputation (1):
Posted by: Mario TTP

79627373

Date: 2025-05-18 10:47:38
Score: 0.5
Natty:
Report link

you can call

Environment.FailFast("CRASH the process immediately and log the fatal issue")

this also Leaves a crash message in Event Log (Windows)

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

79627371

Date: 2025-05-18 10:46:37
Score: 1.5
Natty:
Report link

from reportlab.lib.pagesizes import A4

from reportlab.pdfgen import canvas

from reportlab.lib.units import cm

# Створення PDF

pdf_path = "/mnt/data/Strategiya_rozvytku_Ukrainy_2026_2030_FULL.pdf"

c = canvas.Canvas(pdf_path, pagesize=A4)

width, height = A4

# Функція для додавання заголовків і абзаців

def draw_text(title, body, y_start):

c.setFont("Helvetica-Bold", 14) 

c.drawString(2\*cm, y_start, title) 

c.setFont("Helvetica", 12) 

text = c.beginText(2\*cm, y_start - 1\*cm) 

for line in body.split('\\n'): 

    text.textLine(line) 

c.drawText(text) 

return text.getY() - 1\*cm 

y = height - 2*cm

sections = [

("Презентація командного проєкту", 

 "Керівник/Учасник – Сергій Герштанський"), 



("1. БЮДЖЕТНО-ПОДАТКОВА (ФІСКАЛЬНА) ПОЛІТИКА", 

 """Мета: Забезпечення стійкого зростання доходів державного бюджету при збереженні фіскальної дисципліни. 

Ключові напрями:

- Податкова реформа: спрощення адміністрування, боротьба з тіньовою економікою.

- Розширення бази оподаткування: залучення цифрової економіки.

- Пріоритет фінансування освіти, медицини, інфраструктури.

- Децентралізація бюджету – підсилення фінансової спроможності громад.

"""),

("2. ГРОШОВО-КРЕДИТНА (МОНЕТАРНА) ПОЛІТИКА", 

 """Мета: Забезпечення цінової стабільності, підтримка інвестиційного клімату. 

Ключові заходи:

- Збереження інфляції в межах 5% ± 1%.

- Зміцнення банківської системи: стимулювання кредитування малого бізнесу.

- Розвиток фінансових інструментів (державні облігації, страхові ринки).

- Стимулювання зелених інвестицій через пільгові ставки.

"""),

("3. СТРУКТУРНА ПОЛІТИКА (ГАЛУЗІ ТА РЕГІОНИ)", 

 """Мета: Переорієнтація економіки на інноваційні, екологічні та високотехнологічні галузі. 

Основні дії:

- Підтримка АПК, ІТ-сектору, машинобудування.

- Розвиток індустріальних парків у регіонах.

- Державні програми для слаборозвинених територій (схід та південь України).

- Стимулювання переробної промисловості та експортноорієнтованих підприємств.

"""),

("4. СОЦІАЛЬНА ПОЛІТИКА", 

 """Мета: Підвищення рівня життя громадян, зменшення соціальної нерівності. 

Ключові заходи:

- Пенсійна реформа: перехід до накопичувальної системи.

- Інвестиції в освіту та охорону здоров’я.

- Розширення програм соціального захисту вразливих груп.

- Підтримка внутрішньо переміщених осіб та ветеранів.

"""),

("ВИСНОВКИ", 

 """- Стратегія 2026–2030 спрямована на досягнення стійкого зростання та добробуту населення. 

- Гармонізація фіскальної, монетарної та структурної політики дозволить забезпечити макроекономічну стабільність.

- Ключовими чинниками успіху є політична воля, прозорість реформ та ефективне управління ресурсами.

- Необхідна постійна взаємодія центральної влади з громадами та приватним сектором.

"""),

("ХАРАКТЕРИСТИКА РОБОТИ", 

 """Робота над стратегією була поділена на чіткі напрямки з урахуванням командного підходу. Кожна команда провела аналіз поточного стану та розробила реалістичні й водночас амбітні пропозиції на період 2026–2030 років. 

Сергій Герштанський координував узгодження між командами, забезпечував інтеграцію ідей у цілісну стратегічну рамку та сприяв дотриманню дедлайнів і якості аналітики. Завдяки ефективній взаємодії вдалося створити комплексну Стратегію, яка враховує як економічні, так і соціальні потреби України на наступні 5 років.

""")

]

for title, body in sections:

if y \< 5\*cm: 

    c.showPage() 



 y = height - 2\*cm 

y = draw_text(title, body, y) 

c.save()

pdf_path

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: Serhii Hershtanskyi

79627368

Date: 2025-05-18 10:44:37
Score: 0.5
Natty:
Report link

https://doc.rust-lang.org/std/primitive.u128.html#method.div_ceil

div_ceil Calculates the quotient of self and rhs, rounding the result towards positive infinity.

assert_eq!(7_u128.div_ceil(4), 2);
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Russo

79627361

Date: 2025-05-18 10:41:36
Score: 1.5
Natty:
Report link

You can reorder the columns by using the select() function in PySpark. In the select function, you can pass the column name as a string or multiple columns as a list.

Please find the reference in the pyspark documentation

data = [("Alice", 25, "Engineer"), ("Bob", 30, "Doctor"), ("Charlie", 28, "Teacher")]
columns = ["name", "age", "occupation"]
df = spark.createDataFrame(data, columns)

new_column_order = ["occupation", "name", "age"]
reordered_df = df.select(new_column_order)

reordered_df.show()

# +----------+-------+---+
# |occupation| name|age|
# +----------+-------+---+
# | Engineer| Alice| 25|
# | Doctor| Bob| 30|
# | Teacher|Charlie| 28|
# +----------+-------+---+

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Filler text (0.5): ----------
  • Filler text (0): ----------
  • Filler text (0): ----------
  • Low reputation (1):
Posted by: Shivansh Keshari

79627358

Date: 2025-05-18 10:36:35
Score: 1
Natty:
Report link

Volumes don't work with postgres on ACA. You should use a hosted database management system:

var builder = DistributedApplication.CreateBuilder(args);

var postgres = builder.AddAzurePostgresFlexibleServer("postgres")
    .RunAsContainer();
var postgresdb = postgres.AddDatabase("postgresdb");

var exampleProject = builder.AddProject<Projects.ExampleProject>()
                            .WithReference(postgresdb);

For more information: https://learn.microsoft.com/en-us/dotnet/aspire/database/azure-postgresql-entity-framework-integration?tabs=dotnet-cli
Related issue in dotnet/aspire repo: https://learn.microsoft.com/en-us/dotnet/aspire/database/azure-postgresql-entity-framework-integration?tabs=dotnet-cli

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

79627357

Date: 2025-05-18 10:35:35
Score: 1.5
Natty:
Report link

This is what i did

def Pochhammer_func(num,pow):
    x = 1
    for k in range(pow):
        x*= num+k
        k+=1
    return x
print(Pochhammer_func(2,10))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Łegenðarý父

79627356

Date: 2025-05-18 10:35:35
Score: 1
Natty:
Report link

No. Any network device can use any IP it wishes. But you can prevent owners of this devices doing that with some kind of threats ;)

The only way to prevent your network - configure the switch to which all the network cables come. If you are using some home router - read documentation if it can solve such a problem.

The first thing - to configure ports not to forward traffic to each other, exception - your server port.

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

79627345

Date: 2025-05-18 10:21:30
Score: 6 🚩
Natty: 4
Report link

No such file or directory: '/Users/.../Library/Developer/Xcode/DerivedData/.../Build/Products/Debug-iphonesimulator/PackageFrameworks/AlamofireDynamic.framework/AlamofireDynamic'

Using Xcode 16.3, have a trouble building and keep getting this error message. Tried to clean build, delete the DerivedData folder nothing works until i saw the solution by Daniel and it works!! I got the same problem with DGCharts too regarding the dynamic thing. The solution was just to not add "dynamic" into your target as per Daniel said.

Just curious, since I'm a beginner, what's the 'dynamic' package for?

Reasons:
  • Blacklisted phrase (1): I got the same problem
  • RegEx Blacklisted phrase (2): I'm a beginner
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: random

79627337

Date: 2025-05-18 10:12:28
Score: 1.5
Natty:
Report link

jNQ is a Java-based SMB client that supports ACL retrieval.

You can try it for free at visualitynq.com/products/jnq

Hope this helps!

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Raphael Barki

79627332

Date: 2025-05-18 10:01:25
Score: 1
Natty:
Report link

It happens when JSON data couldn't deserialize properly, probably its about ObjectMapper configuration or @Cacheable useage.

Make sure you are using right serializer of RedisTemplate & doing the right ObjectMapper configuration

Like this:

@Bean
public RedisTemplate<String, Object> redisTemplate(RedisConnectionFactory connectionFactory) {
    RedisTemplate<String, Object> template = new RedisTemplate<>();
    template.setConnectionFactory(connectionFactory);
    template.setDefaultSerializer(new GenericJackson2JsonRedisSerializer());
    return template;
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Cacheable
  • Low reputation (1):
Posted by: Abdurrahman

79627329

Date: 2025-05-18 09:59:24
Score: 0.5
Natty:
Report link

There might be cases where you're willing to accept the error, would like to go on and just suppress the warning message (example: moving average of a column that starts with zeros...).

In case you just want to suppress these warnings, just write

np.seterr(invalid='ignore')

after the numpy import statement.

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

79627328

Date: 2025-05-18 09:58:24
Score: 3
Natty:
Report link

thanks to TwelvePointFive it fix my problem by Downgrading to mysql-connector-python 9.0.0

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bashar

79627327

Date: 2025-05-18 09:58:24
Score: 3
Natty:
Report link

it was related with order of draw objects on map. First i must to draw all untransparent objects. Then a must be to sort all transparent/semi-transparent in order of increasing/decreasing distance from the camera. It need to DEPTH_TEST was work correct.. (look to result)...

enter image description here

If anyone needs it, here is the link to the article.

Reasons:
  • Blacklisted phrase (1): here is the link
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: St_rt_la

79627326

Date: 2025-05-18 09:58:24
Score: 1
Natty:
Report link

You can configure a Static IP for that machine and you can add specific MAC addresses to some routers, in order to share specific services or IP informatrion. Adding the MAC address to a router, is normally used for Wireless, to limit the access of Wifi, or to limite the access of admin-panel-login-page.

For what I can understand, you only need to configure a static IP for your NodeJS server.

If you setup your machine to use that IP, your router "reserv" that IP for that machine, which means, the DHCP service will not attribute that IP to another device.

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

79627320

Date: 2025-05-18 09:47:21
Score: 4.5
Natty: 5
Report link

I created a guide that solves most common llama-cpp-python CUDA issues on Windows: https://github.com/Granddyser/windows-llama-cpp-python-cuda-guide

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Noah F.

79627309

Date: 2025-05-18 09:39:19
Score: 2
Natty:
Report link

This no longer seems to be an issue.

Re-tested with the following and worked perfectly well:

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

79627305

Date: 2025-05-18 09:33:17
Score: 0.5
Natty:
Report link

It turned out I need to compile all modules as separate library and link that library to executables. With such modifications i don't get errors as above.

function(get_file_range output_var)
    set(result "")
    foreach(path IN LISTS ARGN)
        file(GLOB_RECURSE temp CONFIGURE_DEPENDS ${path})
        list(APPEND result ${temp})
    endforeach()
    set(${output_var} ${result} PARENT_SCOPE)
endfunction()
# =============================================
# Build modules
# =============================================
get_file_range(ISPA_MODULES
        ${CONVERTERS_DIR}/*.cppm
        ${SRC_DIR}/*.cppm
)
add_library(ispa-modules STATIC)
target_sources(ispa-modules
        PUBLIC
        FILE_SET cxx_modules TYPE CXX_MODULES FILES
        ${ISPA_MODULES}
)
target_include_directories(ispa-modules PRIVATE ${INCLUDE_DIRS})

# =============================================
# Link Dependencies
# =============================================
target_link_libraries(ispa PRIVATE
    ispa-converter-cpp
    ispa-modules
)
target_link_libraries(ispa-converter-cpp PRIVATE
        ispa-converter
        ispa-modules
)
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sinfolke

79627302

Date: 2025-05-18 09:31:17
Score: 1.5
Natty:
Report link

Yes, Python has a ternary conditional operator.
The syntax is:

python

CopyEdit

x = a if condition else b

Example:

python

CopyEdit

status = "Adult" if age >= 18 else "Minor"

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

79627299

Date: 2025-05-18 09:30:16
Score: 7
Natty: 7
Report link

If the list contains role definitions, use the direct path to extract roles instead of relying on nested claims. Could you provide an example of the list format? That would help me give a more precise extraction method. Also check Azure B2C section is allowing how may claims to be exposed. Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (2.5): Could you provide
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Irfan Ali Zaidi

79627294

Date: 2025-05-18 09:22:14
Score: 1.5
Natty:
Report link

After ejecting the Expo app, you have to set the icon manually, on both iOS and Android platforms. On iOS, you have to open Xcode and go to AppIcon and change the icon size, and on Android, you have to go to the mipmap folder and change the launcher icon. Then, when you rebuild the app, you can see the new icon sparkling. It's just like water ejection—you have to manually tweak it a little to understand how water plays in a simulation game, it's just as fun as playing! Similarly, setting the icon also takes some effort and fun!

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

79627287

Date: 2025-05-18 09:10:10
Score: 8.5 🚩
Natty: 6.5
Report link

I’m using sparse vectors with about 10 features out of a possible 50 million. However, the conversion to dense vectors is causing heap exhaustion. Is there a way to disable the sparse-to-dense conversion?

Right now, I can’t even train on a small batch of vectors without running into memory issues — but I ultimately need to train on 200 million rows.

Any help would be greatly appreciated. I’m using XGBoost4j-Spark version 3.0.0 with the Java.

Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): Any help
  • Blacklisted phrase (1): Is there a way
  • RegEx Blacklisted phrase (3): Any help would be greatly appreciated
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Kristijan Stepanov

79627285

Date: 2025-05-18 09:06:09
Score: 2
Natty:
Report link

Much easiest way is use straight requests and text it.

terminal >> pip install requests

URL_link = "HTTP link"

response = requests.get(URL_link)

print(response.text) #output it to see HTML codes in python output

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

79627281

Date: 2025-05-18 08:56:08
Score: 1.5
Natty:
Report link
using word = Microsoft.Office.Interop.Word;

word.Application app = new word.Application();
word.Document doc = app.Documents.Add(this.Name);

app.ActiveWindow.ActivePane.View.Type = WdViewType.wdPrintView;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: m.norouzi

79627277

Date: 2025-05-18 08:51:06
Score: 2
Natty:
Report link

shema is now different

see example here:

https://github.com/caddyserver/ingress/blob/main/kubernetes/sample/example-ingress.yaml

it is this part that changed:

spec:
  rules:
  - host: example1.kubernetes.localhost
    http:
      paths:
      - path: /hello1
        pathType: Prefix
        backend:
          service:
            name: example1
            port:
              number: 8080
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Василий Пу

79627271

Date: 2025-05-18 08:46:05
Score: 2
Natty:
Report link

Your `exclude: ^generated/` only matches if the file path *starts* with `generated/`. To exclude any `generated` folder at any depth, use:

```yaml

exclude: (^|/)generated/

Test it with-->pre-commit run --all-files --verbose

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

79627262

Date: 2025-05-18 08:27:01
Score: 1.5
Natty:
Report link

and there might be somecase where the app may be open for a while and you close it, that would resutl to skip the intialzaiton page of the app, which will return the absent of the access token in your memory so as a fall back do a ckeck in the interceptor to check if a token is there first, and if no, try to call that function which is executed in the intialzation state, and also do check in that function if no token found to redirect the user to the login page, and also do 1 last thing. update the secure store or async storage for to update the access token.

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

79627249

Date: 2025-05-18 08:14:57
Score: 2.5
Natty:
Report link

OK, I think I found the problem.

First problem is edge detection is not right. Because I use vulkan which default coordinate system is y flip. So I need `#define SMAA_FLIP_Y 0` to make SMAA rightly processing.

Second problem is blend weight not clear. It is because I use UNORM color format rather than sRGB format. Use later will make blend output color is clear. Well this is not influence the result output image I thinking.

Reasons:
  • Blacklisted phrase (0.5): I need
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: guruguru

79627244

Date: 2025-05-18 08:07:55
Score: 3.5
Natty:
Report link

Found a problem. I had to set endpoint_mode to dnsrr for db.

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

79627241

Date: 2025-05-18 08:01:54
Score: 4
Natty:
Report link

Ultra late comer. In 2025, there are heaps and you can find them here: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/rel

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

79627240

Date: 2025-05-18 07:56:52
Score: 2
Natty:
Report link

Bro, your question is unclear. You should ask exactly what you want. Do you want that first BG should be fixed & other BGs get scrolled by user? Or wanted to make all those static (then you should add set top property to height of the previous BG).

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Zarostha

79627236

Date: 2025-05-18 07:40:48
Score: 1
Natty:
Report link

I haven't personally had this problem, but I know better solutions. The InMemoryOrderModuleList already contains user32.dll and ws2_32.dll, so there's no need to perform a LoadLibrary operation—doing so only draws unnecessary attention.

I used to use LoadLibrary, and here’s how I did it:

xor r12, r12
mov r12, 0x6C             ; Push 'l'
push r12
mov r12, 0x6C642E6970617370 ; Push 'psapi.dll' backwards
push r12
mov rcx, rsp              ; RCX points to the DLL string
sub rsp, 0x30             ; Shadow space for the call
call r14                  ; Call LoadLibrary (pointer in r14)
add rsp, 0x30             ; Clean up the stack

In other words, I first pushed the "dll" part, then pushed the rest of the string "psapi", then set rcx to point to the full DLL path on the stack. That way, I could call LoadLibrary easily.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): user32
  • Low reputation (1):
Posted by: Kinezi

79627233

Date: 2025-05-18 07:36:47
Score: 2
Natty:
Report link

Yeah, you *could* try 'hacking' it with a calculated column(dont do it Nehad I got something else for you) , but l got to cut in — that’s static and doesn’t even handle `Today` dynamically. Cute, but useless.

And here is the proper way-->

- Trigger: “When item is created or modified”

- Condition: `AssignedTo` is not empty **and** `AssignedDate` is empty

- Action: Set `AssignedDate` to `utcNow()`

And boom!?. Auto-fills the moment you assign someone. No nonsense.

You're welcome.

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

79627220

Date: 2025-05-18 07:09:41
Score: 3
Natty:
Report link

Thanks @jo-totland for the solution. I modified the condition to use automatically provided environment variable CHEZMOI_OS (source). Because the original answer uses uninitialized $isWindows variable.

If ($env:CHEZMOI_OS -eq "windows") {
    If (-Not (Test-Path $env:LOCALAPPDATA\nvim)) {
        New-Item -Path $env:LOCALAPPDATA\nvim -ItemType Junction -Value $env:USERPROFILE\.config\nvim
    }
}

Just for the reference, there's an open issue about this on GitHub: https://github.com/twpayne/chezmoi/issues/2273

I wanted to post it as a comment under the original answer, but don't have enough reputation :\

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (1.5): don't have enough reputation
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @jo-totland
  • Low reputation (1):
Posted by: John Smith

79627215

Date: 2025-05-18 06:59:39
Score: 1
Natty:
Report link

in my case of "Some services are not able to be constructed" Error in .NET 8

service A inject service B

service B inject service A

a circular dependency was detected for the service of type A

to solve the problem, remove one side of dependency ...

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

79627211

Date: 2025-05-18 06:54:37
Score: 1.5
Natty:
Report link

Yes, you can absolutely use a string variable instead of a hardcoded string — just make sure you're passing it as a list of strings, not a literal string.

The key is: `labelIds` expects a list, not a string. So you must use square brackets `[]` around the variable, not quotes around a list-shaped string.

Go for:

```python

label_id = 'INBOX'

results = service.users().messages().list(userId='me', labelIds=[label_id]).execute()

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

79627208

Date: 2025-05-18 06:48:36
Score: 1.5
Natty:
Report link

Bhitarkanika National Park

Bhitarkanika National Park http://tourmyodisha.com/wp-content/uploads/2025/04/Bhitarkanika-National-Park.webp

Welcome to The Majestic Crocodiles Bhitarkanika National Park, a hidden gem located in the heart of Odisha, India. This pristine national park, covering around 672 square kilometers, is not just a sanctuary for various flora and fauna but is also a UNESCO World Heritage Site, recognized for its ecological importance.

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

79627207

Date: 2025-05-18 06:45:35
Score: 1.5
Natty:
Report link

DB is directive, not instruction, which might bring confusion. Because instructions are executed by cpu, and directives like db just result in you program assembled with data before runtime. it doesnt raesult in any actual cpu instructions.

I don't have any sources for that, but that's how it works, and making that distinction helped my understanding a lot.

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

79627200

Date: 2025-05-18 06:34:32
Score: 0.5
Natty:
Report link

Ah, found it. PG::Interval has a .to_span method available.

https://github.com/will/crystal-pg/blob/master/src/pg/interval.cr#L13

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

79627194

Date: 2025-05-18 06:25:30
Score: 0.5
Natty:
Report link

I think you should use label['id'] rather than label['name']. Sometimes, these two have the same value; sometimes, they don't.

Ref: https://developers.google.com/workspace/gmail/api/reference/rest/v1/users.messages/list#http-request

for label in labels:
    if label['type'] == 'user':
        label_id = label['id']  # Use the label ID, not the name
        results = service.users().messages().list(
            userId='me',
            labelIds=[label_id],  # This works!
            maxResults=2
        ).execute()

        # Do something with results here
        print(f"Messages with label {label['name']}:", results.get('messages', []))
        break  # Remove break if you want to process all labels
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Raymond

79627191

Date: 2025-05-18 06:23:30
Score: 2.5
Natty:
Report link

I have created an automation script that uses Selenium to load YouTube channel ‘About’ pages and extract email addresses. The script integrates a third-party CAPTCHA-solving service. Simply start the script, and it will collect all the email addresses and save them to a CSV file. Let’s discuss.

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

79627190

Date: 2025-05-18 06:21:29
Score: 4.5
Natty:
Report link

I followed this guide: https://repost.aws/knowledge-center/cognito-okta-oidc-identity-provider

One tricky note is the email is case-sensitive

enter image description here

Reasons:
  • Blacklisted phrase (1): this guide
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Hugh Bui

79627181

Date: 2025-05-18 05:54:24
Score: 1
Natty:
Report link

If you are using Yarn of recent versions (such as Berry), the modules are most likely located in a shared cache and Vite can't link them properly.

It is enough to place a .yarnrc.yml file in the root folder of the project, with just one line:

nodeLinker: node-modules

and run yarn install again

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

79627165

Date: 2025-05-18 05:06:14
Score: 4
Natty: 5.5
Report link

necesito eso pero en el actual visual

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

79627164

Date: 2025-05-18 05:02:13
Score: 3.5
Natty:
Report link

Thanks For This Solution I have a sam problem it STEAMRIP

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jafer Jaan

79627163

Date: 2025-05-18 05:02:13
Score: 0.5
Natty:
Report link

In your project directory, go to android folder, Then run these commands:

$ ./gradlew clean
$ ./gradlew wrapper --gradle-version latest
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: xirehat

79627145

Date: 2025-05-18 03:59:02
Score: 0.5
Natty:
Report link

In symfony 6 or higher, this can be handled without managing multiple doctrine connections:

$isolatedEm = new EntityManager(
    conn: $entityManager->getConnection(),
    config: $entityManager->getConfiguration(),
    eventManager: $entityManager->getEventManager(),
);

// get original data using $isolatedEm
// do what you need with data

$isolatedEm->close();

I needed this to accurately compare normalized data before and after changes. I don't know if this will work with all DBs, I am using postgres.

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

79627142

Date: 2025-05-18 03:46:58
Score: 4.5
Natty: 5
Report link

@Arthur Tacca thank you for your comment but I don't see how that could solve my problem of sharing locally reserved data on the heap of a process using functions like: malloc, calloc, ... Suppose that the instruction mySharedStruct.pData = (void*) calloc (1, 10); returns the address 0x000e7c80 which symbolizes a void * (or more complicated a : void **) in P1 Heap. How to make the address 0x000e7c80 usable by P2 ?! because this address is not part of its heap and any access attempt will generate a memory access violation

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Arthur
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Supolaliko

79627137

Date: 2025-05-18 03:36:56
Score: 1
Natty:
Report link

Honestly, I don’t believe your StackOverflowError is caused by cookies—especially since it happens sporadically and is “fixed” by a reboot. It’s far more likely that the JVM simply doesn’t have enough stack space. I’d start by increasing the thread stack size with the -Xss option, or even try a different JVM distribution.

It’s also possible that you have excessively deep call chains—either through recursion or deeply nested method calls—that exhaust the stack. I recommend reviewing your code for any deep recursion or long chains of method invocations and refactoring them (for example, converting recursive algorithms to iterative ones) to prevent the error.

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

79627135

Date: 2025-05-18 03:31:54
Score: 1
Natty:
Report link

https://github.com/LouayAlsakka/embeddedlib/blob/main/sort4_v3.c

this new sort algorithm beet numpy on same machine by more than 10%

SORTED!!!! 8.924534 sec

vs numpy

l=np.loadtxt("/tmp/unsorted.txt")
>>> cProfile.run("l.sort()")
         4 function calls in 10.193 seconds

   Ordered by: standard name

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
        1    0.000    0.000   10.193   10.193 <string>:1(<module>)
        1    0.000    0.000   10.193   10.193 {built-in method builtins.exec}
        1    0.000    0.000    0.000    0.000 {method 'disable' of '_lsprof.Profiler' objects}
        1   10.193   10.193   10.193   10.193 {method 'sort' of 'numpy.ndarray' objects}

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

79627133

Date: 2025-05-18 03:30:54
Score: 5.5
Natty:
Report link

not active since 2023, taken over account smh?

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

79627128

Date: 2025-05-18 03:19:51
Score: 1
Natty:
Report link

Thanks a lot for the detailed answers. I got that the the size of the array was initially fixed at a size of [10], and that it couldn't be extended. Guess the way I described it was a bit weird. Also noted my misuse of 'allocate' vs 'assign' re: arrays.

For the sake of messing around with this little program, I just set it at size 10 and was inputting values for num <= 10 that were only ints. I understand now that

printf("&d", arr);

will only display the address of arr, converted to a signed int. Hence why it didn't change before and after going through foo. I changed the code to

printf("array addr: %p", arr);

before and after foo, as well as adding

printf("arr pos %d is %d\n", i, arr[i]);

to foo; also added void as an argument to foo for better form.

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

79627122

Date: 2025-05-18 03:05:48
Score: 0.5
Natty:
Report link

The OP's question points out that a sentence in the C standard regarding pointer declarators does not make sense in isolation and argues that the sentence is inappropriate.

On the other hand, in latest public working draft of C (n3550), the sentence in question remains unchanged but has been augmented by a newly added sentence reinforcing the same point - that type qualifiers or attributes are applied to the pointer itself, not the data being pointed to. Also, as user17074451 pointed out, the sentence has been there since the begining. Possible reasons why people accept this sentence might be:

  1. A worse mistake as user17074451 explained, could overshadow the ambiguity of the sentence.

  2. The sentence might simply have become familiar to everyone.

  3. There might be nothing wrong with the sentence.

Since the OP finds the previous sentence understandable, we can start from there.

... the type specified for ident is “derived-declarator-type-list type-qualifier-list pointer to T”.

This specifies the type of ident as "... pointer to T".

Now, examining the sentence in question.

... ident is a so-qualified pointer.

OP argues that because the sentence states that ident is so-qualified pointer, ident's type should explicitly be a pointer, meaning the qualifier should be applied directly to ident's type.

However, as user17074451 mentioned array declarator, this interpretation clearly does not hold when the declarator includes both a pointer declarator and an array declarator.


Example: Let's consider the declaration int * const foo[10].

T D1 : int * const foo[10]

T: int

D1: * const foo[10]

D: foo[10]

type-qualifier-list: const

derived-declarator-type list: derived from T D for ident, which is "size-10 array of".

ident type: size-10 array of const pointer to int.

clarification: the pointer to int is const-qualified.

If the sentence in question really implies that ident itself must be a pointer type, the sentence is incorrect, because ident in this case is an array.

Instead, the intended meaning of the sentence is clarification - it specifies that qualification is applied to the pointer, aligining with both user17074451's answer and the OP's own analysis. The clarification is essential because the previous sentence is lengthy and might be challenging for some readers, including my self, to fully grasp.


Example: int * const * foo (OP's Example).

Now, let's analyze the example brought up by the OP:

T D2 : int * const * foo

T: int

D2: * const * foo

D1: * foo

type-qualifier-list: const

derived-declarator-type list: derived from T D1 for ident, which is "pointer to".

ident type: pointer to const pointer to int.

clarification: the pointer to int is const-qualified.


When I first read the question, I agreed with the OP's point. However, after discovering that current C standard had augmented the clarification regarding newly introduced attribute, I realized there must be a reason for the clarification.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): user17074451
  • User mentioned (0): user17074451
  • User mentioned (0): user17074451
  • User mentioned (0): user17074451
  • Low reputation (1):
Posted by: kcb

79627121

Date: 2025-05-18 03:03:48
Score: 3
Natty:
Report link

Please install python through https://www.python.org/downloads/ https://www.python.org/ftp/python/3.13.3/python-3.13.3-macos11.pkg despite of your existing python version. I had python3 in my mac (I have used brew install python earlier). Now I have again installed python using the above URL and after I ran the below command (refer https://docs.aws.amazon.com/cli/v1/userguide/install-macos.html#install-macosos-bundled-sudo) and successfully installed sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: logamurugan p

79627111

Date: 2025-05-18 02:43:42
Score: 9.5 🚩
Natty: 5.5
Report link

Hey Brian Clozel, did you get this worked out?

Reasons:
  • RegEx Blacklisted phrase (3): did you get this
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Uday Yarlagadda

79627110

Date: 2025-05-18 02:43:42
Score: 5
Natty: 5
Report link

i made a guide may be it could help https://github.com/Granddyser/windows-llama-cpp-python-cuda-guide

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

79627104

Date: 2025-05-18 02:24:37
Score: 5
Natty: 5.5
Report link

use Color Shades Generator and set the shades to 9.

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

79627098

Date: 2025-05-18 02:01:32
Score: 3.5
Natty:
Report link

I can't comment @chwarr's thread because I'm lower than 50 reputation, so I just post here. Sorry for the inconvenience.

I found that an undocumented option called /linkermember was used by /all option. It provides the function of show members in library files.

TL;DR

Inspired by @chwarr, I reverse analyzed dumpbin.exe and link.exe. dumpbin.exe just simply invokes link.exe with additional /DUMPoption and all of its options. I found that the entry point function of COFF dumper named DumperMain(int,ushort * * const) and the command line parser function named ProcessDumperSwitches(void) in link.exe. After a few attempts, I found the above I mentioned option.

Reasons:
  • RegEx Blacklisted phrase (1): can't comment
  • RegEx Blacklisted phrase (1.5): 50 reputation
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @chwarr's
  • User mentioned (0): @chwarr
  • Low reputation (1):
Posted by: omikrun

79627097

Date: 2025-05-18 01:57:31
Score: 1.5
Natty:
Report link
import sys

python_version = sys.version.split()[0]

print(f"Python version: {python_varsion}"

'''
    Output:

    Python version: 3.12.0  
'''
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: grippnault

79627089

Date: 2025-05-18 01:27:20
Score: 6 🚩
Natty:
Report link

Do you have a git for this. I would love to see how you managed to get an android device to appear as an ANCS device to a bluetooth peripheral.

Reasons:
  • RegEx Blacklisted phrase (2.5): Do you have a
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Christopher White

79627088

Date: 2025-05-18 01:23:19
Score: 1
Natty:
Report link

What you can do is to use the values you got from your figma as Dp in your Android XML or compose.
Still if you are experiencing those issues that is why the Figma design is based on a specific screen density and your test device is it using a different screen density.
That's all about it screen density. You can't do much about it since if you manage to have a bigger design for your specific device and settings then it will look too big for other user settings.

Also, consider to test your UI in a "standard" setting scenario even if you like your text size and display sise so little or so bigger.

If you can post a specific sample I can help you more, but there is no right answer here.

If you need to have a consistend spacing and element disposition in the screen space you should use a container which let you have proportion and constraint like a contraintLayout. (or use weight, but I do not reccoment doing that)

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Starts with a question (0.5): What you can
  • Low reputation (0.5):
Posted by: alex_au

79627086

Date: 2025-05-18 01:20:18
Score: 0.5
Natty:
Report link

Have you added ACF's header to your page ? If not, add this at the very top : <?php acf_form_head(); ?>. It will load their JS script. Then, change your script :

<script>
(function($) {
  $(document).ready(function() {
    acf.unload.active = false;
  });
})(jQuery);
function onSubmit(token) {
        document.getElementById("acf_testi").submit();
}
</script>
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Marianne

79627084

Date: 2025-05-18 01:16:17
Score: 3
Natty:
Report link

We replaced scattered values.yaml files with a centralized Root Values file, organized by network topology, not apps. It keeps configs clean, consistent, and super easy to update across environments.

Check this out: https://medium.com/@francescocambi/enhancing-helm-values-management-a-scalable-approach-with-root-values-d6fed3e6f258

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Contains signature (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Francesco

79627082

Date: 2025-05-18 01:14:17
Score: 3.5
Natty:
Report link

Is it not clear what the issue is. In the image I see the emulator running.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is it not
  • Low reputation (0.5):
Posted by: alex_au

79627080

Date: 2025-05-18 01:14:17
Score: 3
Natty:
Report link

We replaced scattered values.yaml files with a centralized Root Values file, organized by network topology, not apps. It keeps configs clean, consistent, and super easy to update across environments.

Check this out: https://medium.com/@francescocambi/enhancing-helm-values-management-a-scalable-approach-with-root-values-d6fed3e6f258

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Contains signature (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Francesco

79627079

Date: 2025-05-18 01:14:17
Score: 3
Natty:
Report link

We replaced scattered values.yaml files with a centralized Root Values file, organized by network topology, not apps. It keeps configs clean, consistent, and super easy to update across environments.

Check this out: https://medium.com/@francescocambi/enhancing-helm-values-management-a-scalable-approach-with-root-values-d6fed3e6f258

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Contains signature (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Francesco

79627078

Date: 2025-05-18 01:13:16
Score: 3
Natty:
Report link

We replaced scattered values.yaml files with a centralized Root Values file, organized by network topology, not apps. It keeps configs clean, consistent, and super easy to update across environments.

Check this out: https://medium.com/@francescocambi/enhancing-helm-values-management-a-scalable-approach-with-root-values-d6fed3e6f258

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Contains signature (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Francesco

79627074

Date: 2025-05-18 00:31:08
Score: 4
Natty:
Report link

<application android:hardwareAccelerated="true" ...>

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sir Arroyo