79572191

Date: 2025-04-14 00:22:32
Score: 1.5
Natty:
Report link

Okay, we already have an accepted answer, but let me add a few thoughts on this as well.

First of all, it's important to understand that most features in any tool or technology are introduced to solve existing challenges. This includes everything from design changes to improvements in problem-solving.

But why version catalogs?

Well, when working on projects loaded with dependencies, keeping everything healthy and consistent is a real challenge. For example, imagine a project with multiple modules—say, 3 to 10—where each one uses a different set of dependencies. Some modules might even use the same dependency, but with different versions or from different repositories. Managing this mess and keeping everything up to date can quickly become a nightmare!

Having a centralized approach to manage all these artifact references and version strings in one place is like achieving peace on earth. I say this with confidence because I’ve faced many issues while working on large, real-world projects packed with dependencies.

And that’s it—in practical terms, version catalogs help us tackle this exact problem.

Of course, for simple projects that use very few dependencies—or for quick prototypes or throwaway projects—there’s no need to worry about using version catalogs. Sometimes we create projects just to test something, and maybe they don't even have any extra dependencies or plugins. In those cases, it’s totally fine not to use a catalog.

But as your project grows, you should really consider migrating your dependency strings to a catalog.

Also, remember that Gradle is used to build environments beyond Android. Kotlin and even C++ are well-supported by Gradle!

Reasons:
  • RegEx Blacklisted phrase (1): help us
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Lucas Sousa

79572189

Date: 2025-04-14 00:21:31
Score: 10
Natty: 7.5
Report link

None of the above worked for me. I have environment variables pointed to flutter bin folder. I have android APK support enabled. I have the new 2024 version of Android Studio and nothing I have tried is working. Can someone help me please?

Reasons:
  • Blacklisted phrase (1): help me
  • Whitelisted phrase (-1): worked for me
  • RegEx Blacklisted phrase (3): Can someone help me
  • RegEx Blacklisted phrase (2): help me please
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Joseph

79572187

Date: 2025-04-14 00:10:29
Score: 1
Natty:
Report link

Each variable comes from a "context". config.toml file defines the config, frontmatter in _index.md files define section and frontmatter of every other markdown file defines a page context to be used in templates. When you are referring to a variable from a context, you should mention variable name along with the context it comes from separated with DOTs, like context.my_variable or context.extra.my_extra_variable if defined after [extra].

We are going to declare titles for different contexts, and none of them will overwrite each other.

config.toml

base_url = "https://murtezayesil.me/"
title = "Murteza Y"

config.title = Murteza Y

content/blog/_index.html

---
title = "Blog"
---
# Blog
Welcome to my corner of the internet.

section.title = Blog

content/blog/my-first-post.md

---
title = "Blogging in 2025?"
---
Of course.

page.title = Blogging in 2025?

template/index.html

{% set title = "Home" %}

{{ title }} = Home
{{ this.title }} = Home
this is a special context that refers to that file. It can be omitted. Since you didn't specify any context, Tera reasonably assumed that you were omitting this and looked for this.title.


This might be confusing early on. Luckily, Tera provides {{ __tera_context }} variable which prints out all defined variables in all known contexts. If that is hard to comb through, ShawnPConroy on Zola's Discourse Forum shared this script which organizes them.

In case of the issue you are having, here is a snippet from my theme:

<title>
  {% block window_title %}
    {% if page.title %}
      {{ page.title }} - 
    {% elif section.title %}
      {{ section.title }} - 
    {% endif %}
    {{ config.title }}
  {% endblock window_title %}
</title>

This means,
if page.title exists, print {{ page.title }} - {{ config.title }}
else if section.title exists, print {{ section.title }} - {{ config.title }}
otherwise, just {{ config.title }}

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

79572185

Date: 2025-04-14 00:08:28
Score: 2.5
Natty:
Report link

If node is installed which you can check by 'node -v' and ng is not recognized, Use this command

npm link @angular/cli

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

79572175

Date: 2025-04-13 23:53:25
Score: 1
Natty:
Report link

It looks like both do the same thing, at least in Java it does. Please see output below:

System.out.println("Stackover\rflow");
System.out.println("Stackover\nflow");

Result:

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

79572171

Date: 2025-04-13 23:46:22
Score: 6.5
Natty:
Report link

I am facing same issue , service is not able to connect to db after 15 minutes . I have added logic to generate toke every 14 minutes still no luck.

Reasons:
  • Blacklisted phrase (1): no luck
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am facing same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Vidya Karthick

79572165

Date: 2025-04-13 23:32:19
Score: 4
Natty: 4
Report link

ITS WHEN THE CORRUPT FEDS ARE MONITORING YOUR COMPUTER ILLEGALLY THAT THESE THINGS OCCURT

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

79572163

Date: 2025-04-13 23:30:18
Score: 2
Natty:
Report link

or the same as REST API, using gcloud:

gcloud organizations list

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

79572159

Date: 2025-04-13 23:22:16
Score: 3.5
Natty:
Report link

removing object-cache.php worked for me

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: robert

79572149

Date: 2025-04-13 23:09:12
Score: 3.5
Natty:
Report link

If you use google colab with the runtime T4, you may face this issue many times. Try changing your runtime. It fixes all the versioning issues.

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

79572142

Date: 2025-04-13 22:53:08
Score: 1.5
Natty:
Report link

I've realized the solution here; after listing all permissions in the directory:

$ ls -l /etc/ssl/mongo/
-rw------- 1 root root  1234 Apr  9 22:00 mongodb.pem

You can see from above that the certificate isn't correctly allowed; yet the directory is. To quickly solve, just:

chmod 644 /etc/ssl/mongo/*.pem
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: DeveloLongScript

79572139

Date: 2025-04-13 22:44:06
Score: 4
Natty:
Report link

I know it sucks, it really does. A sunrise at 03:44 seems out of sync

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

79572130

Date: 2025-04-13 22:30:02
Score: 2.5
Natty:
Report link

I encountered a similar problem as well and just solved it. There are two different presentation options: Projects Presentation and Package Presentation. I was automatically going to the Projects Presentation and selecting Hierarchical or checking this option. To view the hierarchical structure in packages, I selected Package Presentation - Hierarchical, and then I was able to see a properly structured hierarchy.

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

79572119

Date: 2025-04-13 22:25:01
Score: 1.5
Natty:
Report link

Is your account's encoding set to UTF-8 ?

"More Options" at http://www.paypal.com/cgi-bin/websrc?cmd=_profile-language-encoding

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-2):
Posted by: Preston PHX

79572117

Date: 2025-04-13 22:23:00
Score: 2.5
Natty:
Report link

pip install Flask-Reuploaded

try that i also tried it and worked for me

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Ronald Kisitu

79572116

Date: 2025-04-13 22:19:59
Score: 1.5
Natty:
Report link

@alek has it right. Just to show as an example:

declare -Ar array1=( [5]=true [10]=true [15]=true )
declare -Ar array2=( [20]=true [25]=true [30]=true )
declare -A array_both

eval "array_both=( ${array1[*]@K} ${array2[*]@K} )"

for key in ${!array_both[@]}; do
    echo "array_both[${key}]=${array_both[${key}]}"
done

produces

$ bash /tmp/test.sh 
array_both[30]=true
array_both[5]=true
array_both[25]=true
array_both[20]=true
array_both[10]=true
array_both[15]=true

The single line and the eval are key to this. I did it on single steps (in an attempt to make it clear) and it produces some very odd results (all keys and no values)

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @alek
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: GraemeV

79572108

Date: 2025-04-13 22:13:57
Score: 1.5
Natty:
Report link

Using switch statement, write a C# program that prompts the user to input a

student's name and mark. The program then evaluates the mark and displays the

corresponding grade based on the following criteria:

Excellent for marks 90 and above.

Very Good for marks between 80 and 89.

Good for marks between 70 and 79.

Average for marks between 60 and 69.

Passed for marks between 50 and 59.

Failed for marks below 50.

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

79572106

Date: 2025-04-13 22:11:56
Score: 4
Natty:
Report link

You can try to use my @longpress event that wraps JS library for this purpose:
https://github.com/Kebechet/Blazor.EventHandlers.LongPress

https://www.nuget.org/packages/Kebechet.Blazor.EventHandlers.LongPress

Reasons:
  • Probably link only (1):
  • Contains signature (1):
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @longpress
  • High reputation (-1):
Posted by: Kebechet

79572102

Date: 2025-04-13 22:08:55
Score: 0.5
Natty:
Report link

After some research I found several solutions to this problem:

  1. Use gradle plugins like fat-aar, however most of them are currently (07.2024) unsupported or don't give the necessary flexibility
  2. Make each module of the application a part of one big library
  3. Gradle Composite Builds but it was very slow and forced us to have all the source code (of the projects) locally, so we abandoned this option

As a prod solution, option 2 was preferred, because it would allow us to connect individual functions without depending on other unnecessary ones


For this purpose, I wrote a small plugin for publishing in buildSrc

plugins {
    `maven-publish`
}

afterEvaluate {
    publishing {
        publications {
            register<MavenPublication>("release") {
                from(components.findByName("release"))

                groupId = project.hierarchy.concatGroup()
                artifactId = project.name
                version = libs.versions.versionName.get()
            }
        }
        repositories {
            maven("...") {
                credentials {
                    username = getLocalProperty("MAVEN_USERNAME")
                    password = getLocalProperty("MAVEN_PASSWORD")
                }
            }
        }
    }
}

And some utils in buildSrc

val Project.hierarchy get(): List<Project> =
    generateSequence(this, Project::getParent).toList().reversed()

fun List<Project>.concatGroup(): String {
    return dropLast(1).joinToString(".") { it.name }
}

Thus, we get the name of the dependencies in the repository the same as the name of the modules tree of your project

And don't forget to connect your maven repository to the gradle project

Then you can connect this plugin to the modules you want to put into the repository (or another plugin as in my case)

plugins {
    id("com.android.library")
    kotlin("android")
    /* ... */
    id("publishing-plugin")
}

After that, you can call the publishAndroidReleasePublicationToMavenRepository or publishReleasePublicationToMavenRepository task, depending on the configuration of your project (KMP or Android).

After that, all modules to which the plugin has been applied will be uploaded to the specified maven repository.


The client can then download any module as a dependency, and that in turn will download all other modules required for correct work

your-app-feature = { group = "YourProject.features.feature", name = "feature", version.ref = "your-proj-version" }

Advantages:

Minuses:


upd:

After a year from the previously found solution.

I Found an article on a Russian resource on this topic using a more modern version of the fat-aar solution - Grease

It may be worth considering switching to such a solution

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

79572098

Date: 2025-04-13 21:57:53
Score: 1.5
Natty:
Report link

Yesterday I spent the whole day trying to fix this error. Today, I deleted Crashlytics from the Runner's Build Phases, and finally, my app built successfully. Hope this helps someone!

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Manuel Vivanco

79572095

Date: 2025-04-13 21:55:52
Score: 1
Natty:
Report link

Your keys shouldn't be readable by everyone on your system.
Your problem should be that Mosquitto switches to a different user.

Your mosquitto.conf omits user, which defaults to the user "mosquitto".
Either ensure the certificate files can be read by that user, or configure to use a different user 👍

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

79572094

Date: 2025-04-13 21:53:51
Score: 1.5
Natty:
Report link

This adds nuance to the other answers:

d = {}.fromkeys(s,0)

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

79572091

Date: 2025-04-13 21:48:50
Score: 1.5
Natty:
Report link

Have you tried disabling the usb hub/root device?

I'm on Arch Linux using the Linux Editor obviously.
And I had a similar issue.
I have a faulty USB hub that I use, it is mostly ok 90% of the time.
But it does this stupid thing where it like tries to detect weather you plugged something into it and show you an indicator light.
Which that feature didn't work right from the get go.
Point being turning it off fixed it for me.
Thanks, you gave me a clue as to what was wrong!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): Have you tried
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Rafael López

79572081

Date: 2025-04-13 21:39:48
Score: 3.5
Natty:
Report link

Love and sympathy and confidence. It is a place where kindly affections exist among all the members of the family

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

79572075

Date: 2025-04-13 21:34:46
Score: 3
Natty:
Report link

My problem was I had to run

ng build --configuration production

With this action I could publish my project! Thank you everyone for your help!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Fabian Rico

79572067

Date: 2025-04-13 21:25:43
Score: 1.5
Natty:
Report link

Do view Binding and databinding both true for this, and check this again.

android {
buildFeatures {
     dataBinding = true
     viewBinding = true
}
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ali Hamza

79572051

Date: 2025-04-13 21:11:39
Score: 4
Natty: 6
Report link

Niczem Olaske how would I grab an access key from duck duck go maps page? Please and thank you.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: x x

79572048

Date: 2025-04-13 21:08:38
Score: 1
Natty:
Report link

If you're sending information over the internet, get yourself a free SSL cert from browser-approved Let's Encrypt. There's no excuse not to be at least this secure in 2025.

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

79572039

Date: 2025-04-13 20:59:36
Score: 1.5
Natty:
Report link

I'm not sure about it, but I think when doing socc.recv() the code will wait untill it gets something from the socket. thats why it won't move when it is not getting any data, and it would stay stuck in the recv (inside of the while loop).

Are you coding both server and client? If you do - before you send the data you can add the size of it (like 5 first bytes that the data size will be sent at). Than - do a recv for the first 5 bytes, get the data size, and do a recv for the data using this size.

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

79572036

Date: 2025-04-13 20:53:35
Score: 3.5
Natty:
Report link

Same for me, I submitted a bug report to Apple.

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

79572030

Date: 2025-04-13 20:45:33
Score: 1.5
Natty:
Report link

Facebook filters out messages sent to an Instagram tester account from users who don’t have a role on the app. To see conversations via the Conversations API, the messages must come from an Instagram account linked to a Facebook account with a role (e.g., Admin, Developer, Tester) on the app.

Just add your Instagram account as a tester in the Facebook app, and you'll start seeing the messages in the API.

See: Instagram Messaging API – Rollout

enter image description here

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

79572027

Date: 2025-04-13 20:40:32
Score: 2.5
Natty:
Report link

You can log the user out of their Cognito session by using the logout endpoint. You can redirect the user to this URL after logging them out of your app.

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

79572023

Date: 2025-04-13 20:36:31
Score: 3.5
Natty:
Report link

I was sure pleased to see you site deals with Seniors from 60 + & not 50. Between 50 - 60 l never thought of myself as a Senior Citizen, not that it's bad, just seems a little young, particularly if your in that age category.

Reasons:
  • RegEx Blacklisted phrase (1): I was sure please
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Frank Mead

79572022

Date: 2025-04-13 20:34:30
Score: 1.5
Natty:
Report link

After @Eljay's suggestion of using std::array instead of a C-style array, I changed it and got a new error of Globals::MAX_COL not being a constant variable.

Hence, after changing back to the C-style array, I changed the variable MAX_COL in the namespace to a constant and now it compiles properly.

New Code: namespaces.h

#ifndef namespaces_h
#define namespaces_h

namespace Globals {
    const int MAX_COL = 10;
};

#endif
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Eljay's
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: ImDarkk

79572018

Date: 2025-04-13 20:31:29
Score: 5
Natty:
Report link

What about replacing matrix with &matrix [0] in the call, please ?

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: adder_2003

79572004

Date: 2025-04-13 20:15:25
Score: 1.5
Natty:
Report link

The problem is incompatibility between LVGL, LVGL driver and ESP-IDF version I have.

I had ESP-IDF v5.3.2 and seems like the basic code of LVGL driver is compatible with v4.*

For that, I had to port part of the code to match the new version of esp-idf.

That solved my issue above, however, still failing on different sizes issue :)

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

79572001

Date: 2025-04-13 20:14:24
Score: 2.5
Natty:
Report link

Instead of Dissable, you should write disable. Instead of desplay, you should write display.

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

79571987

Date: 2025-04-13 20:00:21
Score: 0.5
Natty:
Report link

i have three solutions to this (starting with a column containing Records):

  1. custom function to expand the record column and from the new table, expand all underlying record columns and lists

    1. with dynamic rename of columns of new tables if the column-name already exists
  2. custom function to expand only the record column

  3. custom function to expand all records and all underyling records and lists RECURSIVELY

    1. takes ages

    2. with dynamic rename of columns of new tables if the column-name already exists -> FAILS SOMETIMES xD

[RECOMMENDATION]: Go for option 1. Why? -> Overall least effort and Power Query does it fastest.

  1. look for the record columns in your table and paste them into the function like this by nesting muiltiple functions:
    =expandRecordColAndFirstLevel(expandRecordColAndFirstLevel(#"Previous step","components"),"hotel")

  2. ENTER

  3. in the new table, search for more record columns and nest them with functions around your original query:
    =expandRecordColAndFirstLevel(expandRecordColAndFirstLevel(expandRecordColAndFirstLevel(expandRecordColAndFirstLevel(expandRecordColAndFirstLevel(expandRecordColAndFirstLevel(#"Expanded components1","components"),"hotel"),"payment_term"),"location"),"stages"),"address")

  4. and so on...

  5. In terms of query performance, it's better to nest the queries into 1 step even as well. This query took 45 seconds. Doing the expandRecordColAndFirstLevel(...) function in seperate steps takes 1,5x-2x of time.

here's the m-code for the custom functions (paste in the advanced editor of your function):

1 expandRecordColAndFirstLevel

(inputTable as table, columnName as text) as table =>
let
    NonNullValues = List.Select(Table.Column(inputTable, columnName), each _ <> null and _ <> ""),
    SampleValue = try NonNullValues{0} otherwise null,

    ExpandedStep =
        if SampleValue is record then
            let
                // Step 1: Get inner fields
                ColumnsToExpand = try Table.ColumnNames(Table.FromRecords(NonNullValues)) otherwise {},
                ExistingCols = Table.ColumnNames(inputTable),
                RenamedCols = List.Transform(ColumnsToExpand, (c) =>
                    if List.Contains(ExistingCols, c) then c & "." & columnName else c
                ),
                Step1 = Table.ExpandRecordColumn(inputTable, columnName, ColumnsToExpand, RenamedCols),

                // Step 2: Check for list fields among newly added columns
                NewListColumns = List.Select(RenamedCols, (col) =>
                    let sample = try Table.Column(Step1, col){0} otherwise null
                    in sample is list
                ),

                // Step 3: Expand those list fields
                Final = List.Accumulate(NewListColumns, Step1, (state, col) => 
                    Table.ExpandListColumn(state, col)
                )
            in
                Final

        else if SampleValue is list then
            Table.ExpandListColumn(inputTable, columnName)

        else
            inputTable
in
    ExpandedStep

2 expandRecordCol

(inputTable as table, columnName as text) as table =>
let
    NonNullRecords = List.Select(
        Table.Column(inputTable, columnName),
        each _ <> null and _ <> ""
    ),
    ColumnsToExpand = Table.ColumnNames(Table.FromRecords(NonNullRecords)),
    ExistingColumns = Table.ColumnNames(inputTable),

    RenamingMap = List.Transform(
        ColumnsToExpand,
        (col) =>
            if List.Contains(ExistingColumns, col)
            then {col, col & "." & columnName}
            else {col, col}
    ),

    Expanded = Table.ExpandRecordColumn(inputTable, columnName, ColumnsToExpand, List.Transform(RenamingMap, each _{1}))
in
    Expanded

3 expandRecordColRecursive

let
    RecursiveExpandColumn = (inputTable as table, columnName as text, optional path as text) as table =>
    let
        // Defaults
        currentPath = if path = null then columnName else path & "." & columnName,

        // Record Expansion with Safe Naming
        ExpandRecordColumn = (tbl as table, colName as text, fullPath as text) as table =>
            let
                nonNulls = List.Select(Table.Column(tbl, colName), each _ <> null and _ <> ""),
                colsToExpand = try Table.ColumnNames(Table.FromRecords(nonNulls)) otherwise {},
                existingCols = Table.ColumnNames(tbl),
                newNames = List.Transform(colsToExpand, (c) =>
                    if List.Contains(existingCols, c) or List.Contains(existingCols, fullPath & "." & c) then
                        c & "." & fullPath
                    else
                        c
                ),
                expanded = Table.ExpandRecordColumn(tbl, colName, colsToExpand, newNames)
            in
                expanded,

        // List Expansion
        ExpandListColumn = (tbl as table, colName as text) as table =>
            Table.ExpandListColumn(tbl, colName),

        // Step 1: Expand the root column based on its type
        sample = try Table.Column(inputTable, columnName){0} otherwise null,
        firstExpanded =
            if sample is record then ExpandRecordColumn(inputTable, columnName, currentPath)
            else if sample is list then ExpandListColumn(inputTable, columnName)
            else inputTable,

        // Step 2: Recursively process any new complex columns
        FullyExpand = (tbl as table) as table =>
            let
                // Get columns that are still records/lists
                complexCols = List.Select(Table.ColumnNames(tbl), (col) =>
                    let v = try Table.Column(tbl, col){0} otherwise null
                    in v is record or v is list
                ),
                // Skip if no complex columns left
                nextStep =
                    if List.IsEmpty(complexCols) then
                        tbl
                    else
                        List.Accumulate(complexCols, tbl, (state, col) =>
                            let v = try Table.Column(state, col){0} otherwise null in
                            if v is record then
                                @RecursiveExpandColumn(state, col, col)
                            else if v is list then
                                @RecursiveExpandColumn(state, col, col)
                            else
                                state
                        )
            in
                nextStep

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

79571974

Date: 2025-04-13 19:48:17
Score: 3
Natty:
Report link

basically @bnaul 's answer, but updated

purrr::reduce(list(a,b,c), intersect)

[1] 3 9

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • User mentioned (1): @bnaul
  • Low reputation (1):
Posted by: Bogdan Micu

79571938

Date: 2025-04-13 19:16:09
Score: 1
Natty:
Report link

casting the usize as f32 during the declaration solved the issue

let len_of_arr = arr.len() as f32;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Anand Vidvat

79571937

Date: 2025-04-13 19:15:08
Score: 2.5
Natty:
Report link

react-photo-view is a client-only library and you are using it in a server component (marked as async). You could try to convert it to a client component by removing async and adding 'use client' before the imports.

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

79571933

Date: 2025-04-13 19:12:07
Score: 2
Natty:
Report link

Did you pipe stdout? console.log is synchronous when running on a terminal, but when using pipes console.log becomes asynchronous, and your program can proceed before the output is fully written.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (0.5):
Posted by: Tom Weiss

79571928

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

Include bg = "white" as an argument in the ggsave() function.

ggsave("myPlot.png", p, units = "cm", dpi = 600, bg = "white")
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Zachary

79571907

Date: 2025-04-13 18:50:01
Score: 1.5
Natty:
Report link

I stumbled across a similar "incompatible hardward" error, along with "incompatible on this iPad", in TestFlight on my iPad. The problem was that I had set UIRequiredDeviceCapabilities to both 'location-service' and 'gps' (thinking I needed both) in my app. Turns out, iPads don't support 'gps', only 'location-service'. Removed 'gps', and was able to install. Hope this helps someone!

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): Hope this helps
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Brad Serbus

79571904

Date: 2025-04-13 18:49:01
Score: 1.5
Natty:
Report link

leaflet is using transform: translate3d for map container (.leaflet-map-pane) which is placed inside #map div section. Translate3d encapsulate child contents positon, z-index. So css will not help you in anyway. Reference

Your only option is render the popup outside the #map div section. And it can be only done using js.

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

79571897

Date: 2025-04-13 18:40:59
Score: 1.5
Natty:
Report link

I also ran into this issue. In my case, the problem was caused by old versions of node that were still installed (via nvm). After cleaning the old installation the issue was resolved.

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

79571893

Date: 2025-04-13 18:38:58
Score: 2
Natty:
Report link

I was tripped by this too. Please check your business settings in Apple connect. You need to sign the agreement and enter bank information before the subscriptions be available. Once you finish the information in business, you have to wait a couple of hours.

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

79571871

Date: 2025-04-13 18:17:53
Score: 1.5
Natty:
Report link

With the hint of the comments I found a working solution! Thank you for this.

Maybe this is not the best, but a good working solution.

ListProperty<File> listProperty = new SimpleListProperty<>();
listProperty.bind(listView.itemsProperty());

btnRun.disableProperty().bind(areTextFieldsEmpty.or(listProperty.emptyProperty()));

Short enough to understand and working.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: ryanthara

79571864

Date: 2025-04-13 18:08:51
Score: 2
Natty:
Report link

If you paste a sub into the VBA editor whose name matches the convention for an event handler (e.g. Form_BeforeUpdate), Access will silently wire up that sub to the matching event on the form, without telling you. This applies even if there was already a sub with the same name in the file that wasn't wired up to the corresponding event.

Opening a form class module, and typing Ctrl-A, Ctrl-C, Ctrl-V is sufficient to trigger this. I cannot find any documentation for this behaviour.

Reasons:
  • Blacklisted phrase (1.5): I cannot find
  • Blacklisted phrase (0.5): I cannot
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Hugh W

79571857

Date: 2025-04-13 18:02:49
Score: 1
Natty:
Report link

So after MANY days talking w/AWS support they finally did get it to work, but it was due to my mono-repo. Once I took my code out of the mono-repo and put just the UI code in it's own repository then amplify deployed the code.

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

79571849

Date: 2025-04-13 17:48:44
Score: 6.5 🚩
Natty: 4
Report link

I'm also facing same issue with aani app in UAE

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm also facing same issue
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ananth

79571848

Date: 2025-04-13 17:46:44
Score: 1
Natty:
Report link

Digitalocean blocks SMTP entirely and won't open it even if you request them to. I have solved the problem by using the resend api, like they (resend) recommend, instead of using nodemailer.

Reasons:
  • Whitelisted phrase (-2): I have solved
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: sam

79571839

Date: 2025-04-13 17:40:42
Score: 2.5
Natty:
Report link

Issue is that the server was serving content via http and srw.cert.sabre.com is running https, and the browser refuses to load in the mixed content. The options are set up the nodejs server to run https including adding in a self signed cert or for a quick fix changed the site settings on the chrome browser to allow for Insecure content.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: James McCarthy

79571828

Date: 2025-04-13 17:23:37
Score: 2.5
Natty:
Report link

Instead of centering your div with "align-items: center;", you could use the "flex-start" values of the same property instead. Better still, make use of "position: relative", to have full control over the position of the div, without making it overflow

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

79571826

Date: 2025-04-13 17:19:36
Score: 2.5
Natty:
Report link

PHPStorm seems to need more RAM.

  1. In the main menu, go to Help | Change Memory Settings.
  2. Set the necessary amount of memory that you want to allocate and click Save and Restart

PHPStorm RAM Increase Tutorial

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

79571822

Date: 2025-04-13 17:17:36
Score: 1
Natty:
Report link

In a case of directus. When you started node js app using pm2. You have to do the following:

cd {{folder of directus app}}
rm -rf node_modules
rm package_lock.json

npm i
pm2 delete {{process_name}}
pm2 start npx --name "{{process_name}}" -- directus start
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ильяс Умурбеков

79571803

Date: 2025-04-13 17:03:32
Score: 3
Natty:
Report link

you can simply use round() function forexample:
number = 1.15666
print(round(number, 2)

#output 1,15

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

79571789

Date: 2025-04-13 16:54:29
Score: 2.5
Natty:
Report link

Do this...

type tParams = Promise<{ slug: string }>;

export default async function ProjectPage(props: { params: tParams }) { const { slug } = await props.params;

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

79571779

Date: 2025-04-13 16:41:26
Score: 2.5
Natty:
Report link

For everyone experiencing the same issue as me: I was using PayPal with Shopify, and when I activated PayPal payments, Shopify automatically requested automatic payments. Unfortunately, these automatic payments conflict with the PayPal "Pay in 3 installments" banner. To resolve this, you need to contact PayPal support and explicitly ask them to disable automatic payments (also known as "reference transactions").

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

79571778

Date: 2025-04-13 16:40:26
Score: 4
Natty:
Report link

you can style only the first child check how using tailwind: https://tailwindcss.com/docs/hover-focus-and-other-states#first-last-odd-and-even

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

79571768

Date: 2025-04-13 16:31:23
Score: 3
Natty:
Report link

I found that using the command that another user mentioned works well, but instead of using xxd I find it better to use od since it seems to be pre-installed on linux.

code --folder-uri vscode-remote://attached-container+$(printf "$CONTAINER_NAME_OR_ID" | od -An -tx1 | tr -d ' \n')

Edit: I created a new answer instead of commenting because I don't have enough reputation to comment.

Reasons:
  • Blacklisted phrase (1): to comment
  • RegEx Blacklisted phrase (1.5): I don't have enough reputation to comment
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Luciano

79571763

Date: 2025-04-13 16:28:23
Score: 0.5
Natty:
Report link

Test your optimization by passing the result directly to the function

optimizee(result.x)

rather than by copying the values of result.x printed to the console into a new function call.

When the values of result.x are printed to the console, they are not printed with all significant digits and if your function is very sensitive to its inputs, you could get an unexpected result, as described above.

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

79571760

Date: 2025-04-13 16:27:22
Score: 4
Natty:
Report link

The answer is using supervisor. Thank you for your help and guidance

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-0.5): Thank you for your help
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Arthur Cervania

79571759

Date: 2025-04-13 16:27:22
Score: 1
Natty:
Report link

you can do:
final keyboardHeight = MediaQuery.of(context).viewInsets.bottom;

and edit the bottom padding to be like that:

  bottom: AppSizes.medium + keyboardHeight,

or you can add Sizedbox at the bottom with fixed height so it always appears

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

79571758

Date: 2025-04-13 16:23:20
Score: 5.5
Natty: 6.5
Report link

Установил все. import * as Location from 'expo-location' import * as TaskManager from 'expo-task-manager' Программа скомпилировалась и запустилась. Но ничего не делает. В чем может быть проблема?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • No latin characters (1):
  • Low reputation (1):
Posted by: Andrew Vishnenko

79571753

Date: 2025-04-13 16:18:19
Score: 1.5
Natty:
Report link

if you want to remove it, even without windows.h, you can SIMPLY just add -mwindows to your compiler flags (gcc), so
gcc examplefile.c -mwindows -o example.exe

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

79571750

Date: 2025-04-13 16:16:18
Score: 1
Natty:
Report link

You should use astype after generating an array

x = np.random.randn(1000, 2).astype(np.float64)
ess = tfp.mcmc.effective_sample_size(x)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: poisoned_monkey

79571745

Date: 2025-04-13 16:10:17
Score: 3.5
Natty:
Report link

same process is valid for Windows 11, as of April 2025

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

79571743

Date: 2025-04-13 16:08:16
Score: 1.5
Natty:
Report link

For anyone searching in the future:

You can find the answer in the telegram docs page: https://core.telegram.org/bots/features#deep-linking

A-Z, a-z, 0-9, _ and - are allowed. 
We recommend using base64url to encode parameters with binary and other types of content. 
The parameter can be up to 64 characters long.
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ThexBasic

79571734

Date: 2025-04-13 16:01:15
Score: 0.5
Natty:
Report link

finally found out i need to disable compression, it prevents the ssr.

// app.use(compression());
Reasons:
  • Blacklisted phrase (0.5): i need
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: user824624

79571732

Date: 2025-04-13 15:59:14
Score: 0.5
Natty:
Report link

Since https://github.com/mcarton/rust-derivative is not under maintenance.

I found this https://github.com/ModProg/derive-where

use derive_where::derive_where;
use std::sync::Arc;

struct Unclonable {}

struct A<T>(Arc<T>);
impl<T> Clone for A<T> {
    fn clone(&self) -> Self {
        Self(self.0.clone())
    }
}

#[derive_where(Clone)]
struct B<T>(Arc<T>);

fn main() {
    let a = A(Arc::new(Unclonable {}));
    let b = B(Arc::new(Unclonable {}));

    // Works
    a.clone();
    // Works
    b.clone();
}

Another crate also works: https://github.com/magiclen/educe

This is the Github issue about this question: https://github.com/rust-lang/rust/issues/26925

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

79571731

Date: 2025-04-13 15:59:14
Score: 2.5
Natty:
Report link

If you are using Vue.js, you can give a try to @text-middle-ellipsis/vue. It does exactly this: dynamically adapts string to a parent element every time windows size changes.

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

79571730

Date: 2025-04-13 15:59:14
Score: 2
Natty:
Report link

Ensure ADK is installed with pip install adk and the Python environment’s bin directory is in your PATH.

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

79571723

Date: 2025-04-13 15:49:12
Score: 1
Natty:
Report link

In vite based frameworks (vue, react, sveltekit, ...), you can directly import schema from a file as string:

import Schema from './schema.graphql?raw';
const schema = buildSchema(Schema);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: innomatic

79571722

Date: 2025-04-13 15:46:11
Score: 1
Natty:
Report link

Try which adk to find out where the adk is located now

Then add this path to PATH variable

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

79571720

Date: 2025-04-13 15:43:11
Score: 1
Natty:
Report link

If it is static, you don't have to put it public, Use vite static asset trick

// Load assets as strings
import assetAsString from './shader.glsl?raw'
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: innomatic

79571716

Date: 2025-04-13 15:39:10
Score: 2.5
Natty:
Report link

🚀 Design 2 Liferay is a powerful Chrome extension that helps developers analyze and convert web designs into Liferay Client Extensions and Fragment Collections effortlessly.

https://design2liferay.com

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

79571707

Date: 2025-04-13 15:25:05
Score: 6.5 🚩
Natty: 5
Report link

I like to cancel my subscription for Favoread but I forget which payment I use.When I send email to them they asking my stripe account. Which I not sure and I being email them to give solution. What should I do?

Reasons:
  • Blacklisted phrase (2): What should I do
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sandra CJ

79571703

Date: 2025-04-13 15:20:04
Score: 1
Natty:
Report link

In my case i have current package uiand in ui.screen.py i have this code where scanner is another package parallel to ui. And I am running my screen.py as : python -m src.ui.screen

from tkinter import filedialog
from ..indexing import scanner
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Aniruddha Meher

79571681

Date: 2025-04-13 14:59:59
Score: 2
Natty:
Report link

The reason why executable files made from python (notably PyInstaller) are marked as malware is because of the way they are compressed.

For instance, PyInstaller uses the "--onefile" command in the terminal in order to take all your essential assets and scripts and compress them into one file, your executable file.

If anyone would like to whitelist their software, they can use this link: https://www.microsoft.com/en-us/wdsi/filesubmission

The link above will redirect the user to a Microsoft page asking them to fill out a form. After that, you just have to wait for a response from Microsoft. It may take a while, but if you truly care about your Python project then it may be worth it.

I really hope this answer helped you. Have a great rest of your day!

Reasons:
  • Blacklisted phrase (1): this link
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Praneel Srinivasan

79571680

Date: 2025-04-13 14:58:59
Score: 2.5
Natty:
Report link

I don't know if you guys are still here, but
in c++ 23, typeof is available;
and c++ 20, std::reflect is also available.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: sharp-0077CC

79571674

Date: 2025-04-13 14:48:57
Score: 1
Natty:
Report link

The error was due to declaring these dependencies in dependencies.gradle:

String scalaVersion = "2.12.15"
dependencySet(group: "org.scala-lang", version: scalaVersion) {
    entry "scala-library"
    entry "scala-reflect"
    entry "scala-compiler"
}

Once I removed the section above and replace it with this section in buid.gradle, error is gone. Thx

String scalaVersion = "2.12.15"
dependencies {
    compileOnly "org.scala-lang:scala-library:$scalaVersion"
    compileOnly "org.scala-lang:scala-reflect:$scalaVersion"
    compileOnly "org.scala-lang:scala-compiler:$scalaVersion"
}
Reasons:
  • Blacklisted phrase (1): Thx
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Frank

79571665

Date: 2025-04-13 14:42:55
Score: 1
Natty:
Report link
Get-VM | ForEach-Object { 
    $name = $_.Name
    $_.VMId | Get-VHD | Select-Object @{Name = 'Name'; Expression = {$name}}, *
} | Format-Table -AutoSize
Get-VM | Select-Object -PipelineVariable vm | ForEach-Object { 
    $vm.VMId | Get-VHD | Select-Object @{Name = 'Name'; Expression = {$vm.Name}}, *
} | Format-Table -AutoSize

both are great.

Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: kahlumil

79571663

Date: 2025-04-13 14:40:54
Score: 0.5
Natty:
Report link

Your first example will exit immediately because you don't call any of the WaitForExit functions. Process.Start starts a process but doesn't stick around until it ends.

Your second example is a little more nuanced. There are 2 probable scenarios

In most (all?) cases you can find the actual game executable and launch it directly (for example, I can find many of my steam games in C:\Program Files (x86)\Steam\steamapps\common\<Name of Game>. If you find the appropriate .exe file and launch it directly you can probably achieve what you want.

Note that if Steam launches the app with command line arguments you may need to replicate those in your program. You can discover the arguments in the Details pane of the Task Manager if you enable the "Command Line" column

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

79571661

Date: 2025-04-13 14:39:54
Score: 3
Natty:
Report link

lol been there — we tried writing our own scheduling logic for on-call, but it got out of hand real quick. Ended up switching to iLert just to save the headache. It handles weird shift patterns way better than anything we came up with tbh

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

79571654

Date: 2025-04-13 14:28:51
Score: 3.5
Natty:
Report link

I could find that we could make softlink for sdkman jdk and use that Softlink for the sdkman jdk path in App or Web Server configs.

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

79571653

Date: 2025-04-13 14:27:51
Score: 3
Natty:
Report link

If you're wondering the reason for why your executable file is marked as malware by your PC, it's because of the way that PyInstaller compresses all your files into one file (With the --onefile command)

If you would like to get your software whitelisted by Microsoft, you should use this link: https://www.microsoft.com/en-us/wdsi/filesubmission

This link will redirect you to a page on the Microsoft website. All you have to do is fill out a form and just wait until you get a response. It may be a lengthy response, but if you really care about your project, then it's probably worth it.

Hope this solution helped!

Reasons:
  • Blacklisted phrase (1): this link
  • Blacklisted phrase (1): This link
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Praneel Srinivasan

79571650

Date: 2025-04-13 14:24:50
Score: 1.5
Natty:
Report link
var a = 10;

function Obj() {
  console.log(a);
  let a = 10;
}

Obj()

var a = 10;

function Obj() {
  console.log(a);
  let a = 10;
}

Obj()

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

79571643

Date: 2025-04-13 14:16:48
Score: 3
Natty:
Report link

ah ok thats how I have it. So i create 2 lists:

COLOR_NAMES = ["RED", "BLUE", "YELLOW", "GREEN"]
COLOR_LIST = ["0,1,1,1", "0,0,1,1", "1,1,1,1", "1,0,0,1"]

instead of the name "Red" he just gives me the first letter "R". Thats because of this line?
random_index = random.randrange(len(self.COLOR_NAMES))

should I get rid of len funktion?
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Tim Fuhrmann

79571642

Date: 2025-04-13 14:13:47
Score: 2.5
Natty:
Report link

WorkManager.getInstance(...)
.beginWith(Arrays.asList(workA, workB))
.then(workC)
.enqueue();(dpl10000)

header 1 header 2
cell 1 cell 2
cell 3 cell 4
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Da Ra

79571631

Date: 2025-04-13 14:05:45
Score: 2
Natty:
Report link

go file in Gradle Scripts -> libs.versions.toml

[versions]
agp = "8.7.1"

Change the version as require and

File -> Invalidate Caches

that will do the Job

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

79571613

Date: 2025-04-13 13:49:40
Score: 0.5
Natty:
Report link

I actually found the answer now. All was ok, but the TestBase still needs to reset the Recorder of the inherited RulesTestFixture class. The Recorder counds the amount of invocations for the rule and is also used as reference when verifying the rules execution count using x.Rule().Fired(). So the Setup method of the TestBase must look like this:

    [SetUp]
    public void SetUp()
    {
        Recorder.Clear();
    }
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Chris

79571612

Date: 2025-04-13 13:49:40
Score: 1
Natty:
Report link

While I can help you with the code solution, you might also be interested in checking out a ready-to-use random animal generator at https://randomgenerator.pro/random-animal-generator if you need quick inspiration or testing data.

For the coding solution, here's how you can implement the random animal classification system:

#include <iostream>

#include <cstdlib>

#include <ctime>

using namespace std;

int getRandomAnswer() {

return rand() % 2; // Returns 0 or 1 randomly

}

int main() {

// Seed the random number generator

srand(time(0));

cout << "Random Animal Generator\n\n";

// First question

cout << "Is the animal a vertebrate? ";

int answer = getRandomAnswer();

cout << (answer ? "Yes" : "No") << " - ";

if (!answer) {

cout << "The animal is an Insect!\n";

} else {

// Second question (only if vertebrate)

cout << "Not Insect\nIs the animal warm-blooded? ";

answer = getRandomAnswer();

cout << (answer ? "Yes" : "No") << " - ";

if (!answer) {

cout << "The animal is a Reptile!\n";

} else {

// Third question (only if warm-blooded)

cout << "Not Reptile\nCan the animal fly? ";

answer = getRandomAnswer();

cout << (answer ? "Yes" : "No") << " - ";

if (answer) {

cout << "The animal is a Bird!\n";

} else {

cout << "The animal is a Mammal!\n";

}

}

}

return 0;

}

The code above implements a basic random animal classifier. However, if you need a more comprehensive solution with actual animal data and characteristics, the online generator I mentioned above might be helpful alongside your code implementation.

Let me know if you need any clarification on the code!

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

79571611

Date: 2025-04-13 13:49:40
Score: 3.5
Natty:
Report link

Need to install pwa module to your magento instance:

https://github.com/magento/magento2-pwa/

From step 2 to the end

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

79571605

Date: 2025-04-13 13:43:38
Score: 1.5
Natty:
Report link

If you are using Spring Cloud Config and getting -org.springframework.beans.factory.BeanCreationException: Error creating bean with name '***Controller': Injection of autowired dependencies failed

try checking the spring.application.name property in yml/properties file of your application. The name of the application should be in double quotes ("") . This resolved my exception.

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

79571584

Date: 2025-04-13 13:30:34
Score: 5
Natty:
Report link

This issue has been resolved
click here

Reasons:
  • Contains signature (1):
  • Low length (2):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Keei

79571579

Date: 2025-04-13 13:25:33
Score: 3.5
Natty:
Report link

You can read all messages, and then do some processing by queuing by timestamp.

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

79571572

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

The solution was to upgrade to V12 & enable the logging-jul-capture module.

The question now is how to remove the default Jetty SLF4J binding & force jetty's internal logs to use logaback instead of the default Jetty SLF4J provider ?

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

79571570

Date: 2025-04-13 13:07:28
Score: 1
Natty:
Report link

You're missing the converter type in your url, try these:
path('post/<str:slug>/', post, name='post')

path('post/<slug:slug>/', post, name='post')

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

79571569

Date: 2025-04-13 13:07:28
Score: 1
Natty:
Report link

Next.js expects the config to be either CommonJS (module.exports) or ESM (export default in .mjs files).

Keep your file name as next.config.js and change its content (for export) like this - module.exports = nextConfig;

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