79616852

Date: 2025-05-11 19:49:56
Score: 3
Natty:
Report link

https://www.redhat.com/en/topics/ai/what-is-vllm1816 - 2018 McLaren X2https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/9.5_release_notes/overview#overview-major-changes

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

79616848

Date: 2025-05-11 19:43:54
Score: 0.5
Natty:
Report link

Run "SELECT HOST, USER, plugin FROM mysql.user" on a mysql query file to check if plugin is "mysql_native_password". If it is something else, here's what you do:

  1. use "SHOW STATUS" on a query file.

  2. Check if "mysql_native_password" status is active. If is not, or does not exists, here's what you will do:

  3. Run "INSTALL PLUGIN mysql_native_password SONAME 'authentication_mysql_native_password.dll'"; for windows and "INSTALL PLUGIN mysql_native_password SONAME 'authentication_mysql_native_password.so'" for linux/maxOs. I believe status will be set to active automatically. This if the plugin is not installed. In case if plugin is installed and you want to make it active, heres what you do:

  4. For windows: open "my.ini" file (found in C:\ProgramData\MySQL\MySQL Server 8.0\my.ini in my case, but depends where you installed mysql. ProgramData is a hidden folder set by system default.)

  5. Just under "[mysqld]" add this: mysql_native_password=ON. Don't forget to save the file.

For this to work, you need to restart the server for both scenarios.

  1. Open "run".
  2. Open "services.msc".
  3. Find "MySQL84". This is in my case. MySQL version is 8.4 at the time being. Number match your MySQL version.
  4. Stop and start the server.

Disclaimer: This is also my first time doing this. In my case, I had the plugin installed, but the status was disabled. I got the answers from chatgpt,it solved my problem, you can give a try.

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

79616847

Date: 2025-05-11 19:40:53
Score: 0.5
Natty:
Report link

на сайте tematut нашел следующее решение

public_html/modules/blocktopmenu/blocktopmenu.php

ищем функцию generateCategoriesMenu и комментируем её для сохранности оригинала

далее вставляем следующее

protected function generateCategoriesMenu($categories, $is_children = 0)
{
    $html = '';

    foreach ($categories as $key => $category) {
        if ($category['level_depth'] > 1) {
            $cat = new Category($category['id_category']);
            $link = Tools::HtmlEntitiesUTF8($cat->getLink());
        } else {
            $link = $this->context->link->getPageLink('index');
        }

        /* Whenever a category is not active we shouldnt display it to customer */
        if ((bool)$category['active'] === false) {
            continue;
        }

        $html .= '<li'.(($this->page_name == 'category'
            && (int)Tools::getValue('id_category') == (int)$category['id_category']) ? ' class="sfHoverForce"' : '').'>';
        $html .= '<a href="'.$link.'" title="'.$category['name'].'">';

        //$html .= '<img src="/img/c/'.(int)$category['id_category'].'-medium_default.jpg'.'" class="imgm" height="30" /><br>';
        if($category['level_depth'] == '3' AND Tools::file_exists_cache(_PS_CAT_IMG_DIR_.(int)$category['id_category'].'-medium_default.jpg'))
            $html .= '<img src="/img/c/'.(int)$category['id_category'].'-medium_default.jpg'.'" class="imgm" height="125" /><br>';
        $html .= $category['name'];

        $html .='</a>';
        if (isset($category['children']) && !empty($category['children'])) {
            $html .= '<ul>';
            $html .= $this->generateCategoriesMenu($category['children'], 1);
            $html.= '<li class="sfHoverForce">'.$category['promo_right'].'</li>';
            $html .= '</ul>';
        }


        $html .= '</li>';
    }

    return $html;
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • No latin characters (1):
  • Low reputation (1):
Posted by: Artem S

79616842

Date: 2025-05-11 19:33:52
Score: 1
Natty:
Report link

So I've tried a few things so far.

First, I tried to use the 'free' version of LaunchControl but you can't save or clone or really do anything except view information. So, paid the $31 to get the actual tool.

  1. try was I created a shell script in /usr/local/bin that did nothing except "ls -lsatr xxx" on the mounted drive and a single file. I at first cat'd this to /dev/null. This didn't seem to affect the drive which eventually was dismounted.

  2. Did the same thing except this time my "ls -lsatr xxx" output goes to a hidden file on the mounted disk. So far the disk has remained mounted. The real test will be overnight when the system is more or less idle. I'll report back tomorrow.

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

79616841

Date: 2025-05-11 19:30:51
Score: 3
Natty:
Report link

cond_resched does not necessarily do the process switching. It only means if there are any important task ready then only task switching may happen, exactly at this point.

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

79616815

Date: 2025-05-11 18:57:43
Score: 1
Natty:
Report link

A value x of non-interface type X and a value t of interface type T can be compared if type X is comparable and X implements T. They are equal if t's dynamic type is identical to X and t's dynamic value is equal to x.

https://go.dev/ref/spec#Comparison_operators

so in the example above, everything implements any, so hello can be compared against any comparable type. but they will only be equal if the types are equal and values are equal

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

79616808

Date: 2025-05-11 18:44:41
Score: 3.5
Natty:
Report link

this did not work in JGrasp, with or without the extra " " after the \b. dont know if its a windows thing. can't run it in the command line because apparently my command line is a previous version of java (64.0) compared to my jgrasp (65.0)

Reasons:
  • Blacklisted phrase (1): did not work
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Danielle Stolys

79616807

Date: 2025-05-11 18:44:41
Score: 0.5
Natty:
Report link

You need to add the following dependency

<dependency>
    <groupId>com.google.cloud</groupId>
    <artifacId>google-cloud-storage</artifactId>
    <version>2.52.2</version>
</dependency>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: TevinS

79616806

Date: 2025-05-11 18:42:40
Score: 2.5
Natty:
Report link

typing.Self for python >=3.11, otherwise def from_bytes(cls, b: bytes) -> "User":

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

79616801

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

You could use batched from itertools (https://docs.python.org/3/library/itertools.html#itertools.batched):

from itertools import batched
connections = cmds.listConnections()
for destination, source in batched(connections, 2):
    print (source, destination)

However, this will only work in python 3.12+

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

79616799

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

Well, actually it already created an executable. I was just irritated by the message that was saying it created a DLL.

Would have closed the question, but there was no option "already solved" or similar.

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

79616796

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

I think the simplest way is:

int? myVar = null;
string test = myVar?.ToString() ?? string.Empty;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Leonardo Hernández

79616790

Date: 2025-05-11 18:31:37
Score: 2
Natty:
Report link

Dno how you are calling those, but if you create colliders, then raycast them in the same frame, it works not unless you call Physics.SyncTransforms() in between.

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

79616788

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

From Laravel 11, Laravel doesn't include an api.php by default. So we need to install it. Simply, we can create it using the below command.

php artisan install:api

This command will set everything.

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

79616785

Date: 2025-05-11 18:24:34
Score: 5.5
Natty:
Report link

NOTE : Not an answer
Is this issue resolved I am facing a similar issue with the backend i have developed it is working file with postman,
when I try to hit any endpoint with files it is failing before firebase login and once logged in i am able to hit the routes normally
before login the routes with file

Reasons:
  • Blacklisted phrase (1): Not an answer
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing a similar issue
  • Low reputation (1):
Posted by: ADITYA T

79616770

Date: 2025-05-11 18:04:30
Score: 0.5
Natty:
Report link

I was using python=3.8. Amongs the errors there was a warning that the python version was deprecated. I upgraded to python=3.9 and it started working.

For conda/miniconda:

conda create -n yt python=3.9
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: User15239563

79616768

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

According to the Jax Docs (emphasis mine):

if you’re doing microbenchmarks of individual array operations on CPU, you can generally expect NumPy to outperform JAX due to its lower per-operation dispatch overhead

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

79616748

Date: 2025-05-11 17:40:22
Score: 4.5
Natty:
Report link

It's been a long time since I did a project for the 3DS and it's cool to see people are still writing stuff for it! You're probably getting a crash due to accessing an invalid pointer. Your framebuffer looks very suspicious! You've just set it to a constant (where did you get it?)! It might be the correct value, but you should get the pointer from gfxGetFramebuffer as that will certainly be correct.

Here's how my project uses the aforementioned function: https://github.com/Gallagator/3ds-Synth/blob/master/source/waveThread.h#L63C20-L63C37

The whole repo is not a great example of how you should write C but it might serve as a guide for how to interact with 3ds.h

Reasons:
  • RegEx Blacklisted phrase (3): did you get it
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Gallagator

79616743

Date: 2025-05-11 17:32:20
Score: 3
Natty:
Report link

enter image description here
newnode -> next -> prev = newnode

is good

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

79616738

Date: 2025-05-11 17:26:18
Score: 2.5
Natty:
Report link

The easier way is:

echo. > Your\Path\File.pl

Example:

echo. > C:\Apache24\htdocs\gitweb.pl

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

79616732

Date: 2025-05-11 17:19:16
Score: 1
Natty:
Report link

The answer to your question is no but I'm not going to quote the reasons given above. On a purely conceptual level IaC is like submitting your plans for a warehouse to a master builder and your warehouse comes with fully functioning racks, employees and trolleys/forklifts wherever you want and it's configured in terms of size, shape, employees, power, racks and spacing instead of having to buy the land, build the warehouse and hire the guys and do the fit out yourself.

Docker is like having a field kitchen or a house or some other modular thing that lives inside a shipping container that you can deploy inside your warehouse and hook it up to the utilities with a modular connector. Or any warehouse no matter the shape or size provided it has the same modular connectors. Both appear similar insomuch as you can make them appear in the desired location with minimal effort. It's not a perfect analogy but it's close.

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

79616722

Date: 2025-05-11 17:10:14
Score: 1
Natty:
Report link
    typename std::list<int>::iterator first(a1.begin());
    typename std::list<int>::iterator second(a1.begin());
    std::advance(first, 1);
    std::advance(second, 3);
    std::iter_swap(first, second);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tatiana Yalovega

79616720

Date: 2025-05-11 17:09:14
Score: 0.5
Natty:
Report link

Yes, you're right. It should be: newnode->next->prev = newnode; instead of newnode->next->prev = node_to_insert_after;

Aside from this, I'm not sure whether this is a typo but where you should have a }, you have {. For example, your struct definition should be:

struct node {
    int value;
    struct node* next;
    struct node* prev;
};

What I must ask is: why are you asking this question? Why not write some tests for yourself to see if things work rather than asking on stack overflow? For example, you could write a function which prints the list:

Then you could use your insert functions and print the list to see if it works.

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

79616706

Date: 2025-05-11 16:52:10
Score: 0.5
Natty:
Report link

This is pretty easy actually

let query = supabase.from('your_table').select('*');

if (filter.houseId) {
    query.eq('house', filter.houseId);
}

if (filter.factor) {
  query.gte('factor', filter.factor)
}

const results = await query
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mpwanyi Samuel

79616702

Date: 2025-05-11 16:44:08
Score: 0.5
Natty:
Report link

Here's a reason why the undecidable grammar of C++ could be a problem. When we program using a typed programming language, we are implicitly dividing up the work that the grammar does into two components: one of which is the type system, and it's supposed to be relatively easy. The other is the input-output behaviour of the program, and that input-output behaviour is not something that we have made up, it's something that is given to us by the world, and (as we well know) there are perfectly good questions about the world which are undecidable.

The type system, on the other hand, is something that we invent, possibly motivated by some real-world problem. But we use a type system in order to tame the difficulty which raw input-output behaviour might threaten us with; it is, as it were, a pair of spectacles which, when we put them on, will show us the parts of the worlds which are comprehensible. And so when a compiler assigns types to a program, it is giving you some information about what your program will do when it is executed.So type systems should, when they are applied to a real-world problem, show us how the problem could be simplified. And in order to do this, the type system should give us a view of program which was simpler (in some way) to the program itself. C++ doesn't actually do this, because of the undecidability of the grammar of C++. And it's possible to define a type system in C++ which, when applied to an equality such as 1+1 = 2, typed the sides of this equation by types which were computationally extremely complex, and maybe even undecidable.

Now some programmers think that's just OK, because they know how to write programs in C++ which are a) valid and b) use only type expressions which happen to be decidable, but other programmers think that this is horrible. It's probably worth remarking that C++ and Java are, as it were, mirror images of each other: Java has a type system which is nice and clean and decidable, but it's a type system which will be weaker than it could be. On the other hand, C++ has a huge type system, and that type system will probably be able to come up with types which cannot be easily described by humans.

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

79616700

Date: 2025-05-11 16:42:07
Score: 1.5
Natty:
Report link

As an alternative to what OP asks, you can change the setting workbench.startupEditor from the default welcomePage to none.

enter image description here

You press Ctrl +R to open the long list of recent projects and files.

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

79616697

Date: 2025-05-11 16:39:06
Score: 5
Natty:
Report link

change port number and try again. it will work. i face the same issue that post request works perfectly but get request can't, after hours of debugging and so much frustration, then i tried by changing port number, then it works fine for all types of request

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): i face the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sujan

79616686

Date: 2025-05-11 16:32:04
Score: 4.5
Natty:
Report link

استعادة.جميع.البرامج.الا.الاساسية.الافتراضية.Android.مجاني.مدى.الحياة.بدون.مقابل.التعبئة التلقائية لنظام Android: لم يتم وضع dispatchProvideAutofillStructure()

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: حميد احمد

79616682

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

You can install previous versions:


yay -S python310

python3.10 --version
python3.10 -m venv env

Use virtual environments

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

79616677

Date: 2025-05-11 16:19:00
Score: 0.5
Natty:
Report link

Unsloth is not compatible with macOS. The docs say:

Unsloth currently only supports Windows and Linux devices.

See Unsloth Requirements

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

79616675

Date: 2025-05-11 16:15:59
Score: 1.5
Natty:
Report link

I am having this same issue and creating the C:\db_home does not work. I can use the response file with setup.exe" -silent -nowait -waitforcompletion -force -noconsole -responsefile", and it installs, but then I get a no provider error when I try to launch my application. However, if I install using an admin (not local system, because this account generates the error), it installs fine, and my app runs as expected. So, something java related is not kosha when using the local system account. I use MECM by the way, which uses the local system account for deploying apps.

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

79616674

Date: 2025-05-11 16:15:59
Score: 2.5
Natty:
Report link

Here's a solution to my problem. With a timer that acts on either of the interval limits, it works.

In the example below, I set the timer to 0.3 seconds for better understanding.

https://stackblitz.com/edit/stackblitz-starters-p4b3rgdy?file=src%2Fmain.ts

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

79616663

Date: 2025-05-11 15:57:55
Score: 1
Natty:
Report link

If you want to enable automatic recording AND support recording and transcript reading on the online meetings API:

Working May 2025

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

79616651

Date: 2025-05-11 15:45:51
Score: 2.5
Natty:
Report link

Yes, it is possible, I have published a detailed video tutorial on how to extract details from pdf attachments in Gmail and how to arrange the data in a Google sheet. The simplistic source code is here on GitHub:

https://gist.github.com/moayadhani/9bc8e4f59b2f09c574cf061127d72800

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Moayad Hani Abu Rmilah

79616648

Date: 2025-05-11 15:42:50
Score: 2
Natty:
Report link

I have published a detailed video tutorial on how to extract details from pdf attachments in Gmail and how to populate them to a Google sheet. The simplistic source code is here on GitHub:

https://gist.github.com/moayadhani/9bc8e4f59b2f09c574cf061127d72800

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Moayad Hani Abu Rmilah

79616644

Date: 2025-05-11 15:38:49
Score: 1
Natty:
Report link

If you're using OnSliderTouchListener, here’s a solution that works using reflection:

fun setValueAndClick(value: Int): ViewAction {
    return object : ViewAction {
        override fun getDescription(): String? {
            return "Set value and trigger onStopTrackingTouch."
        }

        override fun getConstraints(): Matcher<View?>? {
            return isAssignableFrom(Slider::class.java)
        }

        override fun perform(uiController: UiController?, view: View) {
            val slider = view as Slider
            slider.value = value.toFloat()

            // Slider extends BaseSlider
            val baseSliderClass = slider.javaClass.superclass

            // BaseSlider contains "List<T> touchListeners"
            val touchListenersField: Field = baseSliderClass.getDeclaredField("touchListeners")
            touchListenersField.isAccessible = true

            val listeners = touchListenersField.get(slider) as? List<*>
            val listener = listeners?.find { it is Slider.OnSliderTouchListener }

            if (listener == null) throw Exception("${Slider.OnSliderTouchListener::class.simpleName} not found.")

            for (method in listener.javaClass.declaredMethods) {
                if (method.name == "onStopTrackingTouch") {
                    method.isAccessible = true
                    method.invoke(listener, slider)
                    break
                }
            }
        }
    }
}

Usage Example:
onView(withId(R.id.set_number_slider)).perform(setValueAndClick(10))

If you want to trigger onStartTrackingTouch, just replace "onStopTrackingTouch" in the code with "onStartTrackingTouch".

I couldn't find a cleaner approach—many solutions online rely on imprecise adjustments with magic numbers. At least this one uses reflection and reliably triggers the required listener.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: CalmPerson

79616641

Date: 2025-05-11 15:36:49
Score: 1.5
Natty:
Report link

Resolved by

kotlin.native.cacheKind=none
According to https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-compatibility-and-versioning.html#jetpack-compose-and-compose-multiplatform-release-cycles

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

79616637

Date: 2025-05-11 15:35:48
Score: 3
Natty:
Report link

You must create a new theme for Magento 2. However, some themes have a version for Magento 2 with the same design, saving you a lot of time and money.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tùng Nguyễn

79616621

Date: 2025-05-11 15:23:45
Score: 2.5
Natty:
Report link

I used formatted string like this on python screen window

screen.title(f"{" " * 100} 'My title'")

Simple I create a space and multiplying by let's say by 100 will give 100 spaces rather than hitting spacebar 100 time

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

79616610

Date: 2025-05-11 15:01:40
Score: 0.5
Natty:
Report link

Most likely you will need to set the bounce and dampen properties to 0. Something like:

ParticleSystem particleSystem;
var collisionModule = particleSystem.collision;
collisionModule.bounce = 0f;
collisionModule.dampen = 0f;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Pratik Mathur

79616606

Date: 2025-05-11 14:55:38
Score: 2
Natty:
Report link

first go to kivymd\uix\behaviors and edit toggle_behavior.py. just copy and past the code in this link https://github.com/sudoevans/KivyMD/blob/05148dda1d9c697a611cb4452a07f3b9733c4f50/kivymd/uix/behaviors/toggle_behavior.py
this won't fix the bug but will help make a work around.
now the following should work:

from kivy.lang import Builder
# Version: 2.0.1.dev0
from kivymd.app import MDApp
from kivymd.uix.behaviors.toggle_behavior import MDToggleButton
from kivymd.uix.button import MDButton

KV = '''
MDScreen:

    MDBoxLayout:
        adaptive_size: True
        spacing: "12dp"
        pos_hint: {"center_x": .5, "center_y": .5}

        MyToggleButton:
            text: "Show ads"
            group: "x"

        MyToggleButton:
            text: "Do not show ads"
            group: "x"

        MyToggleButton:
            text: "Does not matter"
            group: "x"
'''


class MyToggleButton(MDButton, MDToggleButton):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.background_down = '#FF5722' # This is the trick. if you find away to get hex from self.theme_cls.primary_palette that would be better but I don't know so just give it any hex you want.


class Test(MDApp):
    def build(self):
        self.theme_cls.theme_style = "Dark"
        self.theme_cls.primary_palette = "Orange"
        return Builder.load_string(KV)


Test().run()
Reasons:
  • Blacklisted phrase (1): this link
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user30506750

79616600

Date: 2025-05-11 14:51:36
Score: 1.5
Natty:
Report link

My Odoo also same problem, but when I saw on developer mode (Chrome), it has an error.

So I switch to another browser such as Safari, then try again. It's works.

odoo.conf only admin_passwd and addons_path.

Looks like the problem at database_manager.js was browser problem

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

79616599

Date: 2025-05-11 14:51:36
Score: 2
Natty:
Report link

It looks like Visual Studio is throwing the DEP0700 error because your WinUI 3 Optional package isn't recognized as part of a RelatedSet when deploying. This happens when the optional package isn't properly linked to the parent package in the MSIX Bundle.

Possible Fixes:

  1. Ensure the Optional Package is in the Same MSIX Bundle

    • The optional package must be bundled with the main app to be considered part of the RelatedSet.
  2. Check Your AppxManifest File

    • Verify that the Main Package and Optional Package have matching Package Family Names and Publisher IDs.
  3. Use Dynamic Dependencies Instead

    • If your goal is to load extensions dynamically, consider using Dynamic Dependencies, which allow runtime package loading without requiring a RelatedSet.
  4. Verify Deployment Order

If you're still stuck, you can check out this Stack Overflow discussion or Microsoft's GitHub thread for more details.

if you need any more help i'm her [email protected]

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

79616590

Date: 2025-05-11 14:42:34
Score: 3
Natty:
Report link

Upvoting the solution by MJELVEH
pip install -U langchain-community
sorry I don't have reputation point yet

Reasons:
  • RegEx Blacklisted phrase (1.5): I don't have reputation point
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Beth W.

79616584

Date: 2025-05-11 14:37:33
Score: 1
Natty:
Report link

The issue on my end was due to an unstable internet connection during npm install. As a result, some packages might not have installed correctly. To fix it, I deleted the node_modules folder and ran npm install again once the connection was stable. After that, npm run dev worked fine.

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

79616577

Date: 2025-05-11 14:30:31
Score: 1.5
Natty:
Report link

For some reason, the shortcuts are case sensitive.

If you want System.out.println(""); then you have to type sout and not Sout!!

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

79616564

Date: 2025-05-11 14:19:27
Score: 5.5
Natty:
Report link

please can you provide me a doc and api to work with panini, ihave a project and i don't know how to connect to panini with dll,

Reasons:
  • RegEx Blacklisted phrase (2.5): please can you provide me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: AbdEnacer Djerrah

79616557

Date: 2025-05-11 14:08:24
Score: 1
Natty:
Report link

import turtle

def dibujar_flor(t, radio, angulo, lados):

for \_ in range(lados):

    t.circle(radio)

    t.left(angulo)

ventana = turtle.Screen()

ventana.bgcolor("white")

t = turtle.Turtle()

t.speed(0)

t.color("red")

dibujar_flor(t, 100, 170, 36)

turtle.done()

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

79616541

Date: 2025-05-11 13:50:21
Score: 0.5
Natty:
Report link

Go to your model folder K:\AosService\PackagesLocalDirectory\XXXXX\XXXXX\AxReport

Find your report XML and save a copy for backup.
Run notepad as administrator and open your reports XML.
Search for your design name

              MyDesign  

Search again, this time for

&lt;NoRowsMessage&gt;

You might find this

                  &lt;/TablixHeader&gt;
                  &lt;TablixMembers&gt;
                    &lt;TablixMember /&gt;
                  &lt;/TablixMembers&gt;
                &lt;/TablixMember&gt;
              &lt;/TablixMembers&gt;
            &lt;/TablixRowHierarchy&gt;
            &lt;NoRowsMessage&gt;=Labels!@SYS300117&lt;/NoRowsMessage&gt;

Replace with

                &lt;/TablixHeader&gt;
                &lt;Group Name="Details" /&gt;
                &lt;/TablixMember&gt;
              &lt;/TablixMembers&gt;
            &lt;/TablixRowHierarchy&gt;
            &lt;NoRowsMessage&gt;=Labels!@SYS300117&lt;/NoRowsMessage&gt;
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Kurt Warner

79616538

Date: 2025-05-11 13:46:20
Score: 1.5
Natty:
Report link

If you have any Field breakpoints setup in NetBeans this can slow the debugger enormously. You may easily have set a Field breakpoint involuntarily be clicking on a variable.

In NetBeans use Window > Debugging > Breakpoints to check and delete any Field breakpoints, your project will run much faster.

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

79616532

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

The simple solution is to use tensorflow.keras directly, there is no need to import it.

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jeff Xu

79616527

Date: 2025-05-11 13:30:16
Score: 3
Natty:
Report link

Samin Ali p

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

79616514

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

You need to install the Windows SDK (Software Development Kit), which includes the necessary header files like winsock2.h.

Fix Steps:

1. Install the Build Tools for Visual Studio

2. Restart your terminal/command prompt

3. Try installing pybluez again

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

79616509

Date: 2025-05-11 13:02:09
Score: 2
Natty:
Report link

Simply call GrafanaLoki() to push logs to Loki

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

79616504

Date: 2025-05-11 12:55:08
Score: 2.5
Natty:
Report link

Run the app on a specific port (e.g. flutter run -d chrome --web-port=5000).

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

79616487

Date: 2025-05-11 12:34:02
Score: 2
Natty:
Report link

In code, on each page:

NavigationPage.SetHasNavigationBar ( this, false );

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

79616483

Date: 2025-05-11 12:30:01
Score: 1
Natty:
Report link

Is this what you want?

Rename all columns to specified names, regardless of what they were to begin with?

    let  Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    NewColumnNames={"apple","banana","chocolate","dog","elephant"},
    Rename = Table.RenameColumns( Source, List.Zip( { Table.ColumnNames( Source ), NewColumnNames } ) )
    in Rename

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is this
  • High reputation (-2):
Posted by: horseyride

79616473

Date: 2025-05-11 12:20:59
Score: 3
Natty:
Report link

In my case, the keyentry was even deleted by clearing the app data. However, I don't know if keys remain if they were created by the Android security library.

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

79616470

Date: 2025-05-11 12:15:58
Score: 2
Natty:
Report link

But it doesn't work in AJAX (((

I mean PL-SQL called from apex.server.process('PROCESS'...) where PROCESS is for example just a APEX callback process

begin

RAISE_APPLICATION_ERROR(-20000, 'HERE');

end;

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

79616466

Date: 2025-05-11 12:14:57
Score: 2.5
Natty:
Report link

At Crystal Abaya Studio, we offer a stunning collection of abayas that cater to all styles and occasions. Whether you're searching for elegant black abaya, modern bisht abaya, Eid abaya or , Abaya we have something for everyone.

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

79616465

Date: 2025-05-11 12:13:57
Score: 3
Natty:
Report link

The steps below helped me fix this error.

I recommend it.

Thanks for your help.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-0.5): Thanks for your help
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Артем Шишадский

79616464

Date: 2025-05-11 12:13:57
Score: 3
Natty:
Report link

isLocalAddress returns true in my test for "0177.1". So if the problem still occurs, please share in which environment you're testing this.

I tried with various Java 8 and Java 21 Docker images on Windows 11.

Btw, the Java snippet in this post covers a few more SSRF protections.

Reasons:
  • RegEx Blacklisted phrase (2.5): please share
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: gebi

79616461

Date: 2025-05-11 12:10:56
Score: 2.5
Natty:
Report link

Does this help if you want to appending in list?

Snippet:

rgb_values = []

for idd in range(0, 255, 1):
    value1 = int(255 * col_map.colors[idd][0])
    value2 = int(255 * col_map.colors[idd][1])
    value3 = int(255 * col_map.colors[idd][2])
    rgb_values.append((value1, value2, value3))


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

79616459

Date: 2025-05-11 12:05:55
Score: 3.5
Natty:
Report link

Still need help on this one, maybe someone can reproduce this problem in order to at least give some advices where to dig.

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

79616457

Date: 2025-05-11 12:02:54
Score: 2
Natty:
Report link

Use lowercase controller as it is a reserved routing name

from:

[Route("api/[Controller]")]

to:

[Route("api/[controller]")]
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: roten

79616451

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

There is no reason to have downvoted the above answer. It does indeed give an excellent example of doing a bounding box accurately with COCO-SSD, and the link is still valid. (I just did the tutorial in the link).

Reasons:
  • RegEx Blacklisted phrase (2): downvote
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Greg Gum

79616448

Date: 2025-05-11 11:57:52
Score: 2.5
Natty:
Report link

Set the text of the TextView in the custom view.

((TextView)((LinearLayout)getSupportActionBar().getCustomView()).getChildAt(0)).setText("title");

https://developer.android.com/reference/android/widget/TextView#setText(java.lang.CharSequence)

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

79616442

Date: 2025-05-11 11:48:50
Score: 9.5 🚩
Natty: 5.5
Report link

I have the same question have you found the solution⁉️

Reasons:
  • Blacklisted phrase (1): I have the same question
  • RegEx Blacklisted phrase (2.5): have you found the solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same question
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ahmad

79616438

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

I fixed it by changing import createSagaMiddleware from 'redux-saga'; to const createSagaMiddleware = require('redux-saga').default; as as mentioned here link.

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Alexandre HOUESSOU

79616437

Date: 2025-05-11 11:40:48
Score: 1.5
Natty:
Report link

I have figured out the problem thanks to this SO post. I used

androidx.core.content.FileProvider

in my java file, but used the following in my manifest: android.support.v4.content.FileProvider.

I have now changed the manifest to match the java file. Things work now.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Arnab Chakraborty

79616436

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

And this worked fine for me, now visitng the second app on button click and it's working fine.

In the custom command, urlKey is the url of the second app i was visiting before and faced that error.

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

79616431

Date: 2025-05-11 11:33:46
Score: 1
Natty:
Report link

There is now an elegant solution to this problem; reportedly.

Its a SaaS service (but free to use for smaller usages) that enables you to:

- Create a form for issue collection with a few clicks (select project, issuetype, initial status)
- Integrate or link to the form from webpage, email etc.
- Users enter their e-mail and fill in the form to register issues.
- When issues are updated or commented on, the user receives an update by e-mail, and can click a link to open the issue and comment (without needing access to Azure DevOps).

See information here:
Reportedly homepage

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

79616430

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

Do you have New-AzContainerGroup? Read more
https://learn.microsoft.com/en-us/powershell/module/az.containerinstance/new-azcontainergroup?view=azps-13.5.0

It provisions the container group to run the container instance.
Eample
New-AzContainerGroup -ResourceGroupName myResourceGroup -Name mycontainer1 -Image mcr.microsoft.com/azuredocs/aci-wordcount:latest

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: Richard Rublev

79616426

Date: 2025-05-11 11:24:45
Score: 2
Natty:
Report link

The actual cause was my old custom admin theme. It was still referencing UI extensions (like the unmanagedAttributes tab) from the older version. Even though the backend provider was gone, the theme's JS and metadata were still triggering the frontend to request that route.

Fix: I completely removed the custom theme, restarted Keycloak, and the issue was resolved. The Admin UI no longer tried to load the missing route, and user detail pages worked normally again.

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

79616425

Date: 2025-05-11 11:22:44
Score: 2.5
Natty:
Report link

If you're trying to understand how cookies work for educational or development purposes, I can help explain that in a general, legal way — would you like an educational post idea on how cookies work in web browsers or apps

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

79616409

Date: 2025-05-11 11:00:35
Score: 3
Natty:
Report link

I observed the same issue while testing on a real device using VS Code. Everything had been working fine, then suddenly I started getting the exact same error:

Error: Flutter could not connect to the Dart VM service.
SocketException: Send failed (OS Error: No route to host, errno = 65), address = 0.0.0.0, port = 5353

There were no relevant setting changes, and the system’s Local Network permissions looked fine.

Not sure about the root cause, but here is what fixed it for me:

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): getting the exact same error
  • Low reputation (0.5):
Posted by: ingdc

79616388

Date: 2025-05-11 10:30:27
Score: 4.5
Natty:
Report link

You wrote in /etc/hosts the IP address and domain name (like nocturnal.htb)?

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

79616381

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

In my case, none of the other solutions worked, and the issue was due to enabling mixed precision training with PyTorch's AMP (Automatic Mixed Precision).

The fix was to disable AMP entirely, as no other workaround resolved the NaNs. One potential solution if you still want to use AMP is to adjust the gradient scaling, as discussed in this post. However, I tried various scaling values, and it still didn't work correctly in my setup.

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

79616380

Date: 2025-05-11 10:24:25
Score: 1
Natty:
Report link

Set header off and create your own header.

SET HEADING OFF
Select 'ID', 'Name' from Dual
Union All
Select ID, Name from myTable
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sai A

79616376

Date: 2025-05-11 10:17:23
Score: 1
Natty:
Report link

The centers of 3 tangent circles constitute a triangle.

To simplify the explanation, we set our circles in a referential which help us, then it will be up to you to reorient according your real position.

Circle radiuses are named r1,r2 and r3.

Consider that circle 1 and 2 are on an horizontal line and coordinate of the first circle are [0,0] and the second circle are [c,0].

There are two solutions in mirror, third circle tangent on the bottom or the top of the others.

We choose to tangent on bottom to have the third triangle point on top.

The left side of the triangle length which we call ‘b’ is equal to r3-r1.

The right side of the triangle length which we call ‘a’ is equal to r3-r2.

Now to position the c3 center, we shall calculate one of the triangle angle.

This problem is known under the ‘law of cosines’ (see Wikipedia page on the topic)

The angle between the c side (horizontal) and b side (left) will be named ‘alpha’.

alpha = arccos ((b^2+c^2-a^2)/2bc) .

Now, to have the position of the third triangle, do simple trigonometry:

Third circle coordinates = [b cos(alpha), b sin(alpha)].

I did tested the stuff on OpenScad for my own use (finding this thread was of great help), just using rotation instead of trigonometric references.

Reasons:
  • RegEx Blacklisted phrase (1): help us
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Pierre

79616372

Date: 2025-05-11 10:08:21
Score: 3
Natty:
Report link

I got this error because the PORT I was trying my application to run on was already in use.

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

79616371

Date: 2025-05-11 10:07:21
Score: 1
Natty:
Report link

This is very old, but I also struggled with this bug.

The following eventually worked: Set minimum-scale=1;

 <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />

renderer.setSize( window.innerWidth, window.innerHeight ) somehow messes up the innerWidth and innerHeight. This also happens if the 3rd argument is false (updateStyle) and you set renderer.domElement styles manually.

setting minimum-scale=1 prevents scaling to accommodate the canvas.

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

79616360

Date: 2025-05-11 09:48:17
Score: 1.5
Natty:
Report link

You can compare two different branches by choosing "GitLensInspect" > "Search & Compare"

If you can't see it on sidebar do the below:

  1. Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac).

  2. Type Git: Compare Branches.

  3. Select the two branches you want to compare.

enter image description here

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

79616354

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

Try deleting node_modules folder and running yarn again.

I had the same error, and that fixed it for some reason, might work for you.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • No code block (0.5):
Posted by: Tayyab Mazhar

79616352

Date: 2025-05-11 09:40:14
Score: 4.5
Natty:
Report link

file:///C:/Users/ASUS/OneDrive/Documents/arsip%20new/website-project/src/images/background.jpgenter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ardhan Hernanda

79616343

Date: 2025-05-11 09:35:13
Score: 3
Natty:
Report link

Add into metro.config.js:

config.resolver.unstable_enablePackageExports = false;

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

79616330

Date: 2025-05-11 09:14:08
Score: 1
Natty:
Report link

Store the SENTRY_AUTH_TOKEN exclusively as a secret within your CI/EAS build environment (avoid using any EXPO_PUBLIC_* variable). The Sentry plugin accesses it during build time, ensuring it does not reach the client. Refer to Expo’s environment variable and Sentry guides for more information.

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

79616318

Date: 2025-05-11 09:03:05
Score: 3.5
Natty:
Report link

For few versions PFA snap for enabling the document list

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

79616305

Date: 2025-05-11 08:54:02
Score: 2
Natty:
Report link

I've been facing the same issue for a long time, and unfortunately the only working resolution was to disable HLS generation by nginx-rtmp-module itself and switch to ffmpeg instead (previously suggested by @sasuke-uchiha).

Relevant excerpts from nginx configuration:

rtmp {
    server {
        listen 127.0.0.1:1935;
        application cctv {
            allow publish 127.0.0.0/24;
            deny publish all;
            allow play all;

            live on;

            # HLS fragments generation
            hls off;

            # maintain HLS via ffmpeg instead of nginx-rtmp-module
            exec_push /home/cctv/bin/rtmp2hls $name;
            exec_kill_signal term;

            # rest of RTMP configuration (recorders etc)
        }
    }
}

The rtmp2hls script is a simple shell script which is intended to run ffmpeg for every connected publisher and ensure to kill it once SIGTERM is received from nginx (pasting here with minor edits):

#!/bin/bash -e

SPOOL="/var/spool/cctv"
LOGS="/var/log/cctv"

SELF=$(basename "$0")
_ffmpeg_pid=

log () {
    logger --id $$ "$SELF: $*"
}

_teardown() {
    if [ -n "${_ffmpeg_pid}" ]; then
        if ! kill "${_ffmpeg_pid}"; then
            log "ffmpeg (${_ffmpeg_pid}) was not running"
        else
            log "ffmpeg ${_ffmpeg_pid} killed"
        fi
        _ffmpeg_pid=
    fi
    log "stopped rtmp-to-hls ffmpeg for ${CAMERA_ID}"
    exit 0
}

if [ $# -lt 1 ]; then
    echo "usage: $(basename "$0") camera_id" >&2
    exit 1
fi

CAMERA_ID="$1"
PULL_URL="rtmp://127.0.0.1/cctv/${CAMERA_ID}"

while read -r fname; do
    log "removing stale stream: ${fname}"
    rm -f "${fname}"
done < <(find "${SPOOL}/hls" -type f -name "${CAMERA_ID}*.ts" | sort)

# see also:
# https://ffmpeg.org/ffmpeg-formats.html#hls-2
# https://www.martin-riedl.de/2020/04/17/using-ffmpeg-as-a-hls-streaming-server-overview/

ffmpeg \
    -i "${PULL_URL}" \
    -nostats \
    -c copy \
    -sc_threshold 0 \
    -f hls \
    -hls_time 6 \
    -hls_list_size 6 \
    -hls_delete_threshold 1 \
    -hls_start_number_source epoch \
    -hls_flags independent_segments+delete_segments+program_date_time \
    "${SPOOL}/hls/${CAMERA_ID}.m3u8" 2>>"${LOGS}/${CAMERA_ID}.ffmpeg-hls.log" &

_ffmpeg_pid=$!

log "started rtmp-to-hls ffmpeg (pid=${_ffmpeg_pid}) for ${CAMERA_ID} from ${PULL_URL} to ${SPOOL}/hls/${CAMERA_ID}.m3u8"

trap "_teardown" INT TERM

wait "${_ffmpeg_pid}"

I've been testing this with nginx/1.27.1, nginx-rtmp-module/1.2.2, and ffmpeg/5.1.6 for a few weeks, and everything works just fine. With this setup I was able to get almost clean report from Apple's mediastreamvalidator tool:

enter image description here

For comparison, here's what I was getting with plain nginx-rtmp-module:

enter image description here

Interestingly enough, even with nginx-rtmp-module's HLS browsers (Safari on macOS or iPad) were regularly fetching playlists and stream data, but never show anything except a spinning wheel.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same issue
  • User mentioned (1): @sasuke-uchiha
Posted by: Andrei Belov

79616302

Date: 2025-05-11 08:47:01
Score: 1
Natty:
Report link

Fix:
Force the environment to use Python 3.9, which is the latest compatible version.

1. Using Docker (Recommended)

dockerfile

FROM python:3.9.22-slim  # Explicitly use Python 3.9
RUN pip install absl-py==0.9.0

2. Locally (Without Docker)

bash

python3.9 -m pip install absl-py==0.9.0

Why Python 3.9?

No Workarounds Needed → Just use Python 3.9 and it will work.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: danial shafeiee

79616296

Date: 2025-05-11 08:37:59
Score: 0.5
Natty:
Report link

On windows-
1. Locate where the local applications' resources are stored. Typically they will be in
C:\Users\<your-user-name>\AppData\Local\Programs\ folder
2. You should see two identical files code.cmd and cursor.cmd.
3. You should delete code.cmd and a file named code
4. Now try both commands- code . should open VS code whereas cursor . should open the cursor AI editor.enter image description here

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

79616290

Date: 2025-05-11 08:34:58
Score: 2
Natty:
Report link

I've found that you can use the C++ <vector> library, which is a lot less complicated than my previous method.

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

79616285

Date: 2025-05-11 08:22:55
Score: 0.5
Natty:
Report link

You can use the alternate connection mechanism using the Cluster object, see https://tinkerpop.apache.org/docs/current/reference/#connecting-via-drivers

To pass configuration parameters a ClusterBuilder is available, see https://tinkerpop.apache.org/javadocs/3.7.3/core/org/apache/tinkerpop/gremlin/driver/Cluster.Builder.html

Also the gremlin-drivers for other software languages provide an option to pass configuration parameters in code instead of using a yaml file, see https://tinkerpop.apache.org/docs/current/reference/#gremlin-drivers-variants

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
Posted by: HadoopMarc

79616278

Date: 2025-05-11 08:11:53
Score: 2
Natty:
Report link

Following are two sollutions you can try out

  1. Try by uninstalling it and reinstall it

  2. Create python virtual environment, activate vitual environment and then install "itk" in venv. Finally run your python script

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

79616275

Date: 2025-05-11 08:03:51
Score: 1.5
Natty:
Report link

You need to send value from enum's list

Instead of 4 - send catastrophic

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

79616261

Date: 2025-05-11 07:47:47
Score: 0.5
Natty:
Report link

I'm not usually use GHCP on a remote server and I'm not quite sure whether GHCP retrieves context from remote or local, but the self-signed issue I was encountering on local could be fixed by adding self-signed cert into trusted root CA and configuring win-ca:

- Request your DevOps team to provide the self-signed certificate and add it to the trusted root CA on the remote server (and potentially on the local machine, if needed).
- Secondly, use win-ca (or mac-ca) extension in VS Code (both remote and local?) with "append mode" to access windows trusted certificate store: https://stackoverflow.com/a/71826748/3789481

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: Alfred Luu

79616258

Date: 2025-05-11 07:38:45
Score: 3.5
Natty:
Report link

Exports are supported since Expo SDK 53. Update to SDK 53 to make tree shaking work.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Štěpán Zavadil

79616255

Date: 2025-05-11 07:28:42
Score: 2
Natty:
Report link

Write a program to print the week day.

there are seven weekdays.

the first week day is Sunday and the last week day is Saturday respectively if the week day is not in between 1 to 7,print Invalid.

input:

1

output:

Sunday

input:

24

output:

Invalid

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

79616242

Date: 2025-05-11 07:02:37
Score: 1.5
Natty:
Report link

make sure to add the line below inside gradle.properties

kotlin.mpp.enableCInteropCommonization=true
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ismail

79616239

Date: 2025-05-11 06:53:35
Score: 1.5
Natty:
Report link

Below I am answering my own question. There is a possibility that the answer is not correct. So, I request you to point out any errors or inadequacies.

I am still unable to read the binary file and I could not locate the py2lcov so that I could try to try out the idea given by @Henry. However answer to my primary question, I have been able to figure out. Two passes of trace command were enough.

While running the module(s) with trace command <SomeFile>.cover files will be produced. This will be the original code that gets executed. The beginning of each line has a number associated (which tells the number of invocations of that line). An empty or ">>>>>>" at the beginning shows that that line did not get called. You can write a simple parser program to produce a detailed coverage output and write it to an html or xml to produce 'coverage' module like output (or you can customise it to your needs). The ">>>>>>" is produced if "--missing" option is passed in both the steps otherwise a blank is produced for the lines not covered by the unittest.

In both the passes, if you don't include the "--ignore-dir" or "--ignore-module", all the core python modules that get called while executing your actual python file (TempDelete.py in the above example). Thus for example the python is located as "/usr/lib/python3.12" then passing "/usr/lib" will suppress producing the coverage of those files. For details see the official docs.

I am writing below the contents of the test_foo.py and the two commands/passes that I had to execute.

## Contents of test_foo.py
import unittest

class TestStringMethods(unittest.TestCase):

    def test_upper(self):
        self.assertEqual('foo'.upper(), 'FOO')

    def test_isupper(self):
        self.assertTrue('FOO'.isupper())
        self.assertFalse('Foo'.isupper())

    def test_split(self):
        s = 'hello world'
        self.assertEqual(s.split(), ['hello', 'world'])
        # check that s.split fails when the separator is not a string
        with self.assertRaises(TypeError):
            s.split(2)

    def not_covered(self):
        print("This will never be printed.")

loader = unittest.TestLoader()
tests = loader.discover('.')
testRunner = unittest.runner.TextTestRunner()
testRunner.run(tests)

Pass 1

$ python3.12 -m trace --count --file ./coverage/coverage --ignore-dir=/usr/lib --missing -C ./coverage/ ./test_foo.py

The first pass printed the output as below, as expected

...
----------------------------------------------------------------------
Ran 3 tests in 0.001s

OK
...
----------------------------------------------------------------------
Ran 3 tests in 0.001s

OK
Skipping counts file './coverage/coverage': [Errno 2] No such file or directory: './coverage/coverage'

Pass 2

$ python3.12 -m trace --report --file ./coverage/coverage --ignore-dir=/usr/lib --missing --summary -C ./coverage/ ./test_foo.py

The second pass gave me the summary I was looking for.

lines   cov%   module   (path)
   18    94%   test_foo   (/home/somefolder/test_foo.py)

I am also pasting the test_foo**.cover** file to show how a .cover file looks like.

    1: import unittest
       
    2: class TestStringMethods(unittest.TestCase):
       
    1:     def test_upper(self):
    2:         self.assertEqual('foo'.upper(), 'FOO')
       
    1:     def test_isupper(self):
    2:         self.assertTrue('FOO'.isupper())
    2:         self.assertFalse('Foo'.isupper())
       
    1:     def test_split(self):
    2:         s = 'hello world'
    2:         self.assertEqual(s.split(), ['hello', 'world'])
               # check that s.split fails when the separator is not a string
    4:         with self.assertRaises(TypeError):
    2:             s.split(2)
       
    1:     def not_covered(self):
>>>>>>         print("This will never be printed.")
       
    1: loader = unittest.TestLoader()
    1: tests = loader.discover('.')
    1: testRunner = unittest.runner.TextTestRunner()
    1: testRunner.run(tests)

I think my main query is resolved but I still do not know how to read/decode the binary file. May be we are not meant to. We can however print the contents with binascii module using ascii.b2a_uu as below.

import binascii
with open("coverage/coverage", "rb") as file_handle:
    while(read_content:=file_handle.read(45)):
        binascii.b2a_uu(read_content)

It produces the output as below.

b'M*\'UQ "@H6 T    N+W1E<W1?9F]O+G!Y<0%+ 71Q DL!*&@!2P-T<0-+ BAH\n'
b'M 4L%=\'$$2P$H: %+"\'1Q!4L!*&@!2PQT<09+ 2AH 4L3=\'$\'2P$H: %+%G1Q\n'
b'M"$L!*&@!2Q=T<0E+ 2A8+0   "]H;VUE+W!A<G1I8VQE+T1E<VMT;W O5&5M\n'
b'M<$1E;&5T92]T97-T7V9O;RYP>7$*2P%T<0M+ 2AH"DL#=\'$,2P(H: I+!71Q\n'
b'M#4L!*&@*2PAT<0Y+ 2AH"DL,=\'$/2P$H: I+$W1Q$$L!*&@*2Q9T<1%+ 2AH\n'
b'M"DL7=\'$22P$H: I+&\'1Q$TL!*&@*2QET<11+ 2AH"DL)=\'$52P(H: I+"G1Q\n'
b'M%DL"*&@*2PUT<1=+ BAH"DL.=\'$82P(H: I+$\'1Q&4L$*&@*2Q%T<1I+ BAH\n'
b'G"DL&=\'$;2P(H: %+&\'1Q\'$L!*&@!2QET<1U+ 75]<1Y]<1]T<2 N\n

However I still do not know how to decode it. If you happen to know the trick, please share.

Reasons:
  • RegEx Blacklisted phrase (2.5): please share
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Henry
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Amit