79515317

Date: 2025-03-17 17:22:12
Score: 1.5
Natty:
Report link

In ASP.NET 9.x Core Blazor

The IWebHostEnvironment can be accessed from the server-side as follows:

Program.cs

var builder = WebApplication.CreateBuilder(args);
Console.WriteLine($"Content root path: {builder.Environment.ContentRootPath}.");

In this case, we are looking at the default configuration of the content root path.

If you are wanting to access the IWebHostEnvironment from the client-side, then you can follow:

https://learn.microsoft.com/en-us/aspnet/core/blazor/fundamentals/environments?view=aspnetcore-9.0#read-the-environment-in-a-blazor-webassembly-app

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

79515314

Date: 2025-03-17 17:22:09
Score: 6 đźš©
Natty:
Report link

As everything I tried provided no diagnostic information about the problem I went back to basics.

I assumed that Apache was the problem and did not have the correct permissions to access MySQL - even though it could run a .exe program. It has permission under the Local Systems account on my PC to access and run an .exe such as my c coded "Hello World" program which it did successfully.

So I gave Apache Administrators rights in:

Services->select Apache->select Log On->select 'This account-> and provide the Administrator username and password. Click Apply and stop and restart Apache.

And it worked. I can now access the MySQL data.

Thank you all for your help and suggestions.

Finally does anyone have any advice/concerns about giving Apache Administrator rights?

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1): it worked
  • RegEx Blacklisted phrase (3): does anyone have any advice
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: MichaelD

79515303

Date: 2025-03-17 17:17:08
Score: 2
Natty:
Report link

This post helped me out a lot: How to create my own component library based on Vuetify.

I think specifically changing modifying my rollupOptions in vite.config.ts is what got me there. After that I had issues with the vuetify styles not coming over, but that's because I wasn't using the right path for the import.

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

79515302

Date: 2025-03-17 17:17:05
Score: 7 đźš©
Natty: 5.5
Report link

Are you find this solution beacuse i face this same problem. Bro if you find that please help me

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): please help me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Soumitra Biswas

79515291

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

I tried the approach mentioned above but did not solve the issue

i have mentioned by root_path as my API gateway stage name but got the same error enter image description here

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

79515283

Date: 2025-03-17 17:11:03
Score: 2.5
Natty:
Report link

yarn add -D canvas worked for me.

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

79515280

Date: 2025-03-17 17:10:03
Score: 0.5
Natty:
Report link

Are you by any chance using adb via wifi?

I'm using the same setup as yours and I found that to be the culprit. In fact, I think it's an issue with adb itself and not Godot, since I get freezes if I try to manually install an apk via adb install (though maybe Godot could better handle this, as I suspect it waits for adb indefinitely instead of giving it a timeout).

Solution for me was to disconnect the device via adb disconnect <ip> and then connecting the device via USB.

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

79515276

Date: 2025-03-17 17:10:03
Score: 2.5
Natty:
Report link

Thanks @Hilory - this post really helped me. There was another post that came in but for some reason appears to have been deleted that also helped (sorry I didn't catch the name to give credit). Since I decide that I'd rather have the entire form's background color changed and also needed to monitor any changes that may affect the overflowing, I updated Hilory's and the other poster's together to come up with the following:

<script>
    const overflowContainer = document.getElementById('overflow');
    const entryForm = document.getElementById('entry');

    function checkOverflow() {
        const isOverflowing = overflowContainer.scrollHeight > overflowContainer.clientHeight;
        entryForm.classList.toggle('overflowing', isOverflowing);
    }

    // Initial check
    checkOverflow();

    // Add event listeners for dynamic content changes
    entryForm.addEventListener('input', checkOverflow);
    window.addEventListener('resize', checkOverflow); //checks when text-area is resized.
    window.addEventListener('change', checkOverflow); //need this bc of the font-resizing functionality on the page.
</script>

Note that using the above also requires the following CSS class:

.overflowing {
    background-color: #F77 !important; // Redish background for overflow
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Hilory
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: dDubs

79515264

Date: 2025-03-17 17:06:02
Score: 0.5
Natty:
Report link

Have you at any point registered the commands as global commands? If so, you may have a global command AND a local command both showing up in your server, because Discord treats them as separate. (I believe this is intended to make testing easier so you can test new commands in a private dev server before pushing test commands globally: Global command documentation)

I tested some of the code and it's working as expected for me - I don't see anything wrong there, unless you've got duplicates in your command files somewhere.

I'd recommend trying to clear the global commands and see if that gets rid of the duplicates:

await client.application.commands.set([]);

Good luck!

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

79515255

Date: 2025-03-17 17:03:01
Score: 1
Natty:
Report link

The way to fix it can be found at below github issue

Github issue

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

79515234

Date: 2025-03-17 16:56:59
Score: 0.5
Natty:
Report link

So...

<IfModule mod_headers.c>
    Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0"
    Header set Pragma "no-cache"
    Header set Expires 0
</IfModule>

...does work but you have to empty the browsers cache or it saves the previous cache settings!

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Guesser

79515231

Date: 2025-03-17 16:56:59
Score: 1.5
Natty:
Report link

It looks like the problem was the two calls to asyncio.run(...). If I wrap the entire process loop with a single asyncio.run(...) call and await for the calls to process_signal then everything works fine.

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

79515225

Date: 2025-03-17 16:54:58
Score: 2
Natty:
Report link

I solved this by using knex-postgis rather than custom types.

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

79515224

Date: 2025-03-17 16:54:58
Score: 1
Natty:
Report link

Did this work ? I'm trying a similar thing to scale deployment based on AWS MSK consumer group but even after Admin role to keda operator it it still throwing errors:

Warning  KEDAScalerFailed    17m (x6 over 20m)    keda-operator  error getting metadata: kafka.(*Client).Metadata: unexpected EOF
Warning  FailedGetExternalMetric       9s (x80 over 20m)   horizontal-pod-autoscaler  unable to get external metric sowct/s0-kafka-breach_data_n_s/&LabelSelector{MatchLabels:map[string]string{scaledobject.keda.sh/name: kso,},MatchExpressions:[]LabelSelectorRequirement{},}: unable to fetch metrics from external metrics API: rpc error: code = Unknown desc = error when getting metric values metric:s0-kafka-breach_data_n_s encountered error
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did this
  • Low reputation (1):
Posted by: Zeeshan

79515220

Date: 2025-03-17 16:52:58
Score: 2.5
Natty:
Report link

I uninstalled the MAMP local server on my Windows 10 computer because the server would not start. Upon attempting to reinstall it, I encountered the same issue. After researching potential solutions, I implemented a recommended fix, which resolved the problem entirely.

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

79515217

Date: 2025-03-17 16:51:57
Score: 2
Natty:
Report link

well, if you mean decrypt the data, then now we have webusb, it allows almost any usb device to be used by web script. i still making some research on it so about this i have no sample or idea.

but if you mean just encrypt via OpenPGP, that just require a public key...

you can refer to https://key.stevezmt.top/tools/encrypt_sample.html

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

79515197

Date: 2025-03-17 16:41:55
Score: 2.5
Natty:
Report link

Used within a ASP.NET Core Blazor Project:

In Program.cs

var builder = WebApplication.CreateBuilder(args);

Use Console.WriteLine($"Content root path: {builder.Environment.ContentRootPath}."); to show the default configuration for the content root path of the builder environment.

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

79515183

Date: 2025-03-17 16:36:54
Score: 0.5
Natty:
Report link

Solved - the issue was never directly with poetry or with pyproject.toml. Every repo I tried to install also contained a build.py file that imported numpy first. Poetry runs this before anything else, hence the error was generated. The solution was to modify build.py so that it does not import at the top level.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: Darina

79515173

Date: 2025-03-17 16:33:53
Score: 1
Natty:
Report link

We have examples of what you are trying to do in the Quarkus Superheroes Sample application: https://github.com/quarkusio/quarkus-super-heroes

Specifically this service layer: https://github.com/quarkusio/quarkus-super-heroes/blob/main/rest-heroes/src/main/java/io/quarkus/sample/superheroes/hero/service/HeroService.java

And these tests: https://github.com/quarkusio/quarkus-super-heroes/blob/main/rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/service/HeroServiceTests.java

I think they key is https://github.com/quarkusio/quarkus-super-heroes/blob/main/rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/service/HeroServiceTests.java - Injecting a mock of your repository (or using PanacheMock if you are using the active record pattern.

If you are using the "real" database in your tests then yes you will need @TestReactiveTransaction, like in https://github.com/quarkusio/quarkus-super-heroes/blob/main/rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/repository/HeroRepositoryTests.java

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

79515158

Date: 2025-03-17 16:27:52
Score: 0.5
Natty:
Report link

It turned out to be quite simple: I just have to specify the size of the matplotlib figure:

fig = figure.Figure(fig_size=(6, 8), dpi=100)

will generate a plot that is 600 by 800 pixels. Replacing 6 and 8 by the width and height (each divided by the dpi) of the parent canvas solves the problem.

For more information on how to work with exact pixels in matplotlib see Specifying and saving a figure with exact size in pixels

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

79515138

Date: 2025-03-17 16:20:50
Score: 1.5
Natty:
Report link

This is happening because you're generating newId in a subquery; there's no reason to do this.

Here's what you want instead:

SELECT *, gen_random_uuid() AS newId FROM tblCustomer;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: PJM

79515135

Date: 2025-03-17 16:19:50
Score: 0.5
Natty:
Report link

How about moving this to something like `table_config.js`?

e.g. declare/create the variables for <table_database>/ <table_schema>/<table_name> in includes/table_config.js:

var table_database="tb_db";
var table_schema="tb_sch";
var table_name="tb_nm";

module.exports = {
table_database,
table_schema,
table_name
}

config then have a definition for the table that uses table_config to run it e.g.

definitions/source/final_table01.sqlx

config {
    type: "declaration",
    database: table_config.table_database,
    schema: table_config.table_schema,
    name: table_config.table_name
}

Then whenever you want to call it you use:

SELECT * FROM ${ref(table_config.table_name)}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How
  • Low reputation (0.5):
Posted by: aclong

79515119

Date: 2025-03-17 16:13:49
Score: 2
Natty:
Report link

this might be an old question but I didn't find a lot by online search,

my problem was tat I used to build in debug and create setup out of build from debug folder

but this was an issue when I encrypted my dlls using tool I have, but after doing this out of release folder the issue was gone

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

79515095

Date: 2025-03-17 16:07:48
Score: 2
Natty:
Report link

=?UTF-8?B?IF9fTGlua1Ug8J2XqvCdl7LwnZe58J2XsPCdl7zwnZe68J2XsiDwnZen8J2XvPCdl6zwnZe88J2YgvCdl7/wnZen8J2XsvCdl7/wnZe6IPCdl5/wnZe28J2Xs/Cdl7LwnZec8J2Xu/CdmIDwnZiC8J2Xv/Cdl67wnZe78J2XsPCdl7LwnZei8J2Xs/Cdl7PwnZey8J2XvyBfX1JhbmRvbV9hbm1bMixsXSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbXQ==?=

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Afaz Uddin

79515084

Date: 2025-03-17 16:05:47
Score: 2
Natty:
Report link

And I cannot prevent the user from doing it [...]

Yes, you can.

#ifdef __FAST_MATH__
#error -ffast-math is not supported
#endif

Try on godbolt

See also how to use the gcc preprocessor macro __FAST_MATH__?

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: Nate Eldredge

79515082

Date: 2025-03-17 16:04:47
Score: 1
Natty:
Report link

Change the version of your maps sdk, your current version is alpha which shows you this message.

{
  key: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  v: "weekly", // Changed from 'alpha'
}

As google states in their docs:

Use the 'v' parameter to indicate the version to use (weekly, beta, alpha, etc.).

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

79515079

Date: 2025-03-17 16:03:46
Score: 3.5
Natty:
Report link

This error can be due to not passing in the SOAP Action, or could be due to incorrect ValidConsmName/ValidConsmProd/InstRtId/InstEnv grouping. Please make sure you are following the values provided by Jack Henry and that you are following the guidance found here https://jackhenry.dev/open-enterprise-api-docs/enterprise-soap-api/getting-started/development/development-using-soap/#jxchange-header.

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

79515074

Date: 2025-03-17 16:00:46
Score: 1.5
Natty:
Report link

My solution was to return 401 in ensureAuthenticated function and handles the 401 in React.

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

79515069

Date: 2025-03-17 15:56:45
Score: 2
Natty:
Report link

I was facing the same issue... I was able to resolve it using Pip install issue with egg fragments that lead to an UNKNOWN installation of a package

create a file called setup.py inside your .tar.gz package with the following content:

from setuptools import setup, find_packages

setup(name='netboxlabs-diode-netbox-plugin',
      version='0.6.0',
      packages=find_packages(),
     )
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: The_Freakquency

79515055

Date: 2025-03-17 15:50:44
Score: 2
Natty:
Report link

No Reset: Since the array wasn't reset back to its original state, the modifications to the array during the first execution affected the state of the array in subsequent executions, leading to different outputs.

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

79515052

Date: 2025-03-17 15:48:44
Score: 2
Natty:
Report link

I have you same problem ,then I try the command pip install albucore==0.0.16 ,finally it success!

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

79515049

Date: 2025-03-17 15:47:43
Score: 2.5
Natty:
Report link

I like kubectl get nodes | awk '{ print $1,$5}'. Works on anything with columns.

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

79515040

Date: 2025-03-17 15:43:43
Score: 1
Natty:
Report link

Apparently it worked, even if the values were not exactly the same due to the extra trailing dot. I originally thought it didn't work because AWS SES verified 4 or 5 times without noticing the domain was verified, and even though the records were well published.

Whatever, it has worked !

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: SimStuch

79515038

Date: 2025-03-17 15:43:43
Score: 1
Natty:
Report link

Here is the code:

from collections import defaultdict

li = [['a', 10], ['a', 20], ['a', 20], ['a', 40], ['a', 50], ['a', 60],
      ['b', 10], ['b', 20], ['b', 30], ['b', 40],
      ['c', 10], ['c', 10], ['c', 20]]

grouped = defaultdict(lambda: float('inf'))

for key, value in li:
    grouped[key] = min(grouped[key], value)

result = [[key, min_val] for key, min_val in grouped.items()]

print(result)

Output:

enter image description here

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

79515034

Date: 2025-03-17 15:41:42
Score: 0.5
Natty:
Report link

I've always used -1 to be true in VSTO and in a few places it seems to matter compared to using 1 for true.

I needed to disable spell check on all endnotes. The answer of using NoProofing worked, but I later found an easier way to change the "Endnote Text" style to add NoProofing as -1.

In my code this is:

wordDocument.Styles[Word.WdBuiltinStyle.wdStyleEndnoteText].NoProofing = -1;

This can be done with other styles as well.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Herb F

79515033

Date: 2025-03-17 15:41:42
Score: 2
Natty:
Report link

Use the property searchCallback to compute your search logic.

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

79515022

Date: 2025-03-17 15:36:41
Score: 3
Natty:
Report link

Have you changed the cluster's datestyle parameter? Is it not set to ISO?

See: https://docs.aws.amazon.com/redshift/latest/dg/r_datestyle.html

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: Bill Weiner

79515015

Date: 2025-03-17 15:33:40
Score: 4.5
Natty:
Report link

Thanks, JonasH, attentive colleague, that was it!

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

79515012

Date: 2025-03-17 15:31:40
Score: 1
Natty:
Report link

You can:

  1. Add schedule to your build: Configure schedules for pipelines

  2. Configure your agent as a service: Run as a service - Windows

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

79515006

Date: 2025-03-17 15:29:39
Score: 3
Natty:
Report link

So i have this set up and it works fine (though, i want to implement some more fine tuning but that's not related to your question). Make sure when you save your rules to set them to run as well.

First - Like you I have 2 rules with the General at the top.

enter image description here

For the Github General - make sure " Stop Processing more rules" is not checked.

enter image description here

Lastly - The Prs rules should just be to review_requested and on this one you can check stop processing more rules.

enter image description here

Reasons:
  • RegEx Blacklisted phrase (1): i want
  • Probably link only (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Michael Crowley

79515003

Date: 2025-03-17 15:28:39
Score: 2
Natty:
Report link

Let's say your integer variables are: x_1, x_2, and x_3. You want a binary indicator variable y such that:

y = 0 if x_1 + x_2 + x3 == 0,

y = 1 if x_1 + x_2 + x3 > 0

You know that x_1 + x2 + x3 is always <= 5. In this case, I would use this constraint:

y <= x_1 + x_2 + x_3 <= 5*y

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

79515001

Date: 2025-03-17 15:27:39
Score: 2
Natty:
Report link

Try below code in tsconfig.json

"declarationDir": "dist",
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: W A J Amasara

79514997

Date: 2025-03-17 15:21:38
Score: 3
Natty:
Report link

first you have to console req.headers in your protecroute function

then const token = req.headers.cookie.split("=")[1];

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

79514992

Date: 2025-03-17 15:20:37
Score: 0.5
Natty:
Report link

The recursive query you are using is correct only need to modify 2 things:

  1. Join - COALESCE(e.ManagerID, e.TeamLeadID)

  2. Parameter - DECLARE @EMPId INT = 1

here is the query you required:

DECLARE @EMPId INT = 1

;WITH Hierarchy AS 
(
    SELECT *  
    FROM dbo.Employee  
    WHERE employeeid = @EMPId

    UNION ALL  

    SELECT e.*
    FROM dbo.Employee e 
    INNER JOIN Hierarchy h 
        ON h.employeeid = COALESCE(e.ManagerID, e.TeamLeadID)
)  
SELECT *
FROM Hierarchy H
ORDER BY COALESCE(ManagerID, TeamLeadID)
OPTION (MAXRECURSION 1000);

this will give output as per your requirements:

  1. If Employee ID = 1 ('M1')

    EmployeeId = 1

  2. If Employee ID = 2 ('M2')

    EmployeeId = 2

  3. If Employee ID = 10 ('T2_2')

    EmployeeId = 10

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

79514987

Date: 2025-03-17 15:19:37
Score: 2.5
Natty:
Report link

Procedurally generated is a convenient alternative to doing foley.

Because the sounds are really good, ppl get tricked into thinking its foley, even if its proc gen. some people dont even believe in it I imagine.

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

79514975

Date: 2025-03-17 15:14:36
Score: 3
Natty:
Report link

Recently had this issue while learning RN. I am using Expo. Expo has some documentation for this. Please see Advanced keyboard handling with Keyboard Controller. Much more modern answer as this is a 8 yr old question. Cheers!

Reasons:
  • Blacklisted phrase (1): Cheers
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Martin Sing

79514972

Date: 2025-03-17 15:13:36
Score: 2
Natty:
Report link

You are using older version of TypeScript (below 4.0.5), type interpolation was introduced from version 4.1.5 onwards.

https://www.typescriptlang.org/play/?ts=4.1.5#code/KYDwDg9gTgLgBDAnmYcBiAbUARAllYAYxlwgDs4BeOAciggHca4AfW+hgWgIDdgoAzsGZsahCBgCuAWzIja4qbO7A+g4QG4AUKEiwEyVJlAB1KAEMwVWmUYWw8mg3uPnllWqE1tu6PCQo6FggmIzWAAYAJADexiB4BMSkZAC+cDFxZpYp4dpAA

You can change version on the left to 4.0.5 to see the same error.

For the best results, you can add typescript as a dev dependency in your project or install new version of typescript globally on your machine.

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • Me too answer (2.5): see the same error
  • High reputation (-2):
Posted by: Akash Kava

79514961

Date: 2025-03-17 15:06:34
Score: 1
Natty:
Report link

No, this is not possible with any supported API's. Also, please don't. Topmost and similar things are reviled by users and run afoul of the "What if two programs did this?" principle.

Historical windows were ordered based on their Z-Index, and the Z-Index could be held above other windows with the Topmost style. Windows 8 added a new layering system called bands, which are not exposed to developers and require the caller of the API's to be cryptographically signed by Microsoft. These layers exist on-top of the desktop windows (which is where Z-Index lies). The topmost band is ZBID_UIACCESS since it represents soft-input panels that are meant to be the user's means of controlling other applications.

ADeltaX has a great summary on his blog of what has been reverse engineered about the bands system.

ADeltaX Blog header image

(Yes, ZBID_UIACCESS is accessible with signing and uiAccess="true" manifest, but that's still not supported for non-assistive technologies)

Related: Is it possible through the Windows API to place a window on top of jump list windows?

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Looks like a comment (1):
  • High reputation (-2):
Posted by: Mitch

79514954

Date: 2025-03-17 15:05:34
Score: 1.5
Natty:
Report link

For mac :

1. Install Abseil using Homebrew: Bash L brew update brew install abseil

2. Try installing google-re2 without explicitly setting compiler flags
first: Bash python3 -m pip install google-re2 Often, the build system will automatically detect and use a suitable C++ standard if Abseil is found.

3. If you still face build issues and suspect the C++ standard is the problem, try setting CXXFLAGS : Bash CXXFLAGS='-std=c++17' python3 -m pip install google-re2

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

79514951

Date: 2025-03-17 15:04:32
Score: 11.5 đźš©
Natty:
Report link

I have the same question, did you manage to do it?

Reasons:
  • Blacklisted phrase (1): I have the same question
  • RegEx Blacklisted phrase (3): did you manage to
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same question
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Miguel Angel GarcĂ­a MartĂ­nez

79514949

Date: 2025-03-17 15:03:31
Score: 2.5
Natty:
Report link

I'm not sure if this helps, but you can delete the schema from the Schema Designer when publishing it.

When you click "Publish", there's an option "Disable future changes by the Schema Designer?". If you check this box, the schema will be published and automatically removed from the Schema Designer.

Remove schema from designer

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

79514936

Date: 2025-03-17 14:59:30
Score: 1
Natty:
Report link

While trying to fix this problem on my machine, I opened the File > Invalidate Caches dialog that @Olivia suggested. I noticed that the dialog had an option to "Just restart":RubyMine File > Invalidate Caches dialog, with freehand red arrow pointing to the "Just restart" link button on that windowI went ahead and restarted RubyMine (without actually otherwise invalidating any caches), and then retried my "Find in Files" search that previously hadn't been working. This time, it did return the expected results!

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • User mentioned (1): @Olivia
  • Single line (0.5):
  • High reputation (-2):
Posted by: Jon Schneider

79514935

Date: 2025-03-17 14:58:30
Score: 4.5
Natty:
Report link

It is a pdf related issue.
with pdfgrep the pattern is found.

muchas gracias for your help

Reasons:
  • Blacklisted phrase (2): gracias
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Heiko Wiesner

79514929

Date: 2025-03-17 14:58:30
Score: 3.5
Natty:
Report link

This article presents a very reliable and practical workaround: (export templates ARM and deploy them with gitlab ci, approaches the problem as if it were an infrastructure as code challenge.
https://medium.com/p/3474348cf032

Reasons:
  • Blacklisted phrase (1): This article
  • Blacklisted phrase (0.5): medium.com
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Rabii Khammassi

79514926

Date: 2025-03-17 14:55:29
Score: 2
Natty:
Report link

I encountered the same issue after upgrading Solr from 9.7 to 9.8: Error loading class 'solr.extraction.ExtractingRequestHandler' .

The solution in 9.8+ is to activate the module with an environment variable (see docs):

SOLR_MODULES=extraction

While in 9.7 and prior this was done in the solrconfig.xml, as stated in the older answers here (9.7 docs):

  <lib dir="${solr.install.dir:../../..}/modules/extraction/lib" regex=".*\.jar" />

Hope this helps people who face the same problem.

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Has code block (-0.5):
  • Me too answer (2.5): face the same problem
  • Low reputation (1):
Posted by: stoff

79514924

Date: 2025-03-17 14:54:29
Score: 1
Natty:
Report link

You need to upgrade the setuptool first

pip install -U setuptools
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: link89

79514918

Date: 2025-03-17 14:51:28
Score: 1.5
Natty:
Report link

For ITK-NiBabel conversions, you might want to take a look at this Jupyter notebook.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: DĹľenan

79514914

Date: 2025-03-17 14:51:28
Score: 2.5
Natty:
Report link

I found that is much simple than it looks, you only have to use lvh or svh instead of using vh or dvh, using this your items should not try to automaticlly try to be centered when you scroll on your website.

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

79514910

Date: 2025-03-17 14:48:27
Score: 0.5
Natty:
Report link

TMixing different RAM brands and capacities can sometimes lead to compatibility issues, even if the basic specifications (DDR4, 3200MHz, C16) match. Here are some possible reasons why your system isn’t booting:

1. Memory Timing & Voltage Mismatch

2. Dual-Channel vs. Mixed RAM Issues

3. XMP Profile Conflicts

4. BIOS Update Required

5. Faulty or Unstable RAM Stick

Suggested Fixes:

  1. Try swapping the order: Kingston together, Corsair together.

  2. Disable XMP and manually set RAM speed to 2933MHz.

  3. Update BIOS to the latest version.

  4. Test each kit separately to rule out a faulty stick.

If none of these work, your motherboard or memory controller might not handle mixed RAM well. In that case, using only one RAM kit (either Corsair or Kingston) is the best option.

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

79514905

Date: 2025-03-17 14:44:26
Score: 3.5
Natty:
Report link

As I found out that my workaround solution has a very unstable connection, I have written a small application, that solves this problem for me:

SMBrowser1.0.zip

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

79514902

Date: 2025-03-17 14:44:26
Score: 1
Natty:
Report link

The findOneAndUpdate() operation is ensured to be atomic at the document level, so you are safe, no race conditions will happen.

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

79514886

Date: 2025-03-17 14:38:25
Score: 1
Natty:
Report link

Adding to @matino's answer - if you want to maintain the order of the middleware (which you typically want to do). You can splice the original middleware tuple and make a new one with the new order. Let's say you want your debug middleware sitting just in front of your session middleware, you'd use the following in your dev.py:

sessionMiddlewareIndex = MIDDLEWARE_CLASSES.index('django.contrib.sessions.middleware.SessionMiddleware')
MIDDLEWARE = MIDDLEWARE[:sessionMiddlewareIndex] \
    + ('debug_toolbar.middleware.DebugToolbarMiddleware',) \
    + MIDDLEWARE[sessionMiddlewareIndex:]
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @matino's
  • Low reputation (1):
Posted by: Candace Wong

79514882

Date: 2025-03-17 14:35:24
Score: 5
Natty: 5
Report link

My code worked by changing the route just like your solution @Hazzaldo. Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @Hazzaldo
  • Single line (0.5):
  • Low reputation (1):
Posted by: lanceoli

79514879

Date: 2025-03-17 14:34:24
Score: 1
Natty:
Report link

I switched the Python version from 3.13 to 3.12 in my virtual environment (venv), it worked.

(Remember to refresh or restart the project)

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Josie Koay

79514872

Date: 2025-03-17 14:33:23
Score: 1
Natty:
Report link

We worked with the Microsoft support team to get some insights on this. We concluded that there is no way to access or move custom models that are trained outside the container environment inside the container environment.

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

79514866

Date: 2025-03-17 14:29:22
Score: 5
Natty:
Report link

Yop, the problem can come from many sources, first, are you sure that in prod mode, the cookies are correctly stocked in chrome?

And for your prod mode, do you have a valid certificate? I know there are various problems between cookies and self-signed/invalid certificates.

Cookies no longer save for insecure sites in Google Chrome

Reasons:
  • RegEx Blacklisted phrase (2.5): do you have a
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Wenree

79514863

Date: 2025-03-17 14:29:22
Score: 4.5
Natty: 4
Report link

Actually, when you will use MultiThreadedExecutor it will work without specifying callback groups. But from the official documentation, it should also cause deadlock like in your case. Anyone has an idea why this can work?

Reasons:
  • Whitelisted phrase (-1): in your case
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: RocketFan

79514858

Date: 2025-03-17 14:27:21
Score: 1
Natty:
Report link

my error was calling videoCapture twice, once outside of my function, plus an error with image path witch caused the

 ERROR in app: Exception on /detect_faces [POST]

making the whole program stop

-fixing the image path and deleting video capture outside of the function fixed the error, and for this situation cv2.VideoCapture(0,cv2.CAP_DSHOW) was correct :)

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

79514857

Date: 2025-03-17 14:26:21
Score: 2
Natty:
Report link

Closing the project and reopening in Vscode might help. The plugin/extension might be stuck due to invalid cache.

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

79514846

Date: 2025-03-17 14:21:20
Score: 3
Natty:
Report link

This is how I use TSLint:

import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";

export default tseslint.config(
  pluginJs.configs.recommended,
  tseslint.configs.recommended, // note the change in this line

  {
    ignores: [],
    rules: {},
  }

);

Link to the full config file: https://github.com/Jay-Karia/jqlite/blob/main/eslint.config.mjs

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

79514840

Date: 2025-03-17 14:19:19
Score: 2
Natty:
Report link

I understand you're trying to download Firestore collections to your local PC. I created a simple Node.js script that exports Firestore collections to JSON files, which you can easily use for local backups and later re-upload to Firestore.

Here’s the link to the script I made: firestore-export-local

This script:

Just follow the instructions in the README, and it should work smoothly for your purpose!

Let me know if you need any help with it.

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

79514835

Date: 2025-03-17 14:17:19
Score: 1
Natty:
Report link

If you've tried all the previous solutions and the issue still persists, simply restarting Android Studio may resolve it—it worked for me!

Reasons:
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nada Ezzat

79514827

Date: 2025-03-17 14:15:18
Score: 0.5
Natty:
Report link

Recently .internal was formally accepted and reserved by ICANN for private-use applications. It can be used like *.subdomain.internal as opposed to *.subdomain.home.arpa.

The Chromium project also addresses this issue in Chrome fails to recognize wildcard SSL certs for sites xxx.home.arpa

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

79514825

Date: 2025-03-17 14:14:18
Score: 3
Natty:
Report link
you just need to install libstdc++-devel
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Andrew

79514823

Date: 2025-03-17 14:13:18
Score: 2.5
Natty:
Report link

try these things:

  1. disable your antivirus software
  2. run cmd with admin privilege
  3. try to use pnpm to avoid conflict
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: KT Li

79514822

Date: 2025-03-17 14:12:18
Score: 0.5
Natty:
Report link
main()
 set og_NameRng = rRng
 If CorrectRangeForHeaderRows(rRng) Then
   If CorrectForTotalRow(rRng) Then
    Set og_Rng = rRng
          bFound = True
    End If
 End If
Private Function CorrectRangeForHeaderRows(ByRef rRng As Range) As Boolean
  rRng.Select
  Dim lCorrection As Long: lCorrection = 0
  Dim vVar As Variant

  ActiveSheet.rRng.Offset(-(lCorrection + 1)).Range(Cells(1, 1), Cells(1,          ActiveSheet.rRng.Columns.Count)).Select

  vVar = Application.Match("", ActiveSheet.rRng.Offset(-(lCorrection + 1)).Range(Cells(1, 1), Cells(1, ActiveSheet.rRng.Columns.Count)), 0) 

  If Not IsError(Application.Match("", ActiveSheet.rRng.Offset(-(lCorrection + 1)).Range(Cells(1, 1), Cells(1, ActiveSheet.rRng.Columns.Count)), 0)) Then _
    Debug.Print vVar
  CorrectRangeForHeaderRows = True
  Set rRng = rRng.Resize(lCorrection)
End Function
Private Function CorrectForTotalRow(ByRef rRng As Range) As Boolean
  'The problem is that the position we want to search for do not have content in first Column but later
  rRng.Select
  Dim lCorrection As Long: lCorrection = rRng.Rows.Count
  Dim vVar As Variant
    
  ActiveSheet.rRng.Offset(lCorrection - 1).Range(Cells(1, 1), Cells(1, ActiveSheet.rRng.Columns.Count)).Select

  vVar = Application.Match("", ActiveSheet.rRng.Offset(lCorrection - 1).Range(Cells(1, 1), Cells(1, ActiveSheet.rRng.Columns.Count)), 0)

  If Not IsError(Application.Match("", ActiveSheet.rRng.Offset(lCorrection - 1).Range(Cells(1, 1), Cells(1, rRng.Columns.Count)), 0)) Then _
    Debug.Print vVar
  Set rRng = rRng.Resize(lCorrection)
  rRng.Select
  CorrectForTotalRow = True

I just want to let you know, that this is only some test code to find out how it works, more testing and error-checking has to come
I'will just tell you that I have to leave now and will be back tomorow, but I hope you have a kind of solution to the problem. I tested my self and got to the errormessage 2042 and might be I have to add sheetname
Thanks.
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jo-Helge Rorvik

79514818

Date: 2025-03-17 14:11:17
Score: 2.5
Natty:
Report link

like sebastien I started to use pytest_easyMPI, but sadly this module does not seem to be maintained. I prefer to use pytest-isolate-mpi (https://github.com/dlr-sp/pytest-isolate-mpi) which is more up-to-date

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

79514806

Date: 2025-03-17 14:05:16
Score: 1
Natty:
Report link

The problem is that grep -r -H -P "2\.897" . doesn’t find matches because your files likely lack the exact string "2.897". The working command, grep -r -H -P "2.897" ., succeeds by matching a wider range of strings where the dot is any character (e.g., "2,897", "2-897"). Check your files to see what they actually contain, and adjust your pattern or data accordingly to meet your regex goal

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

79514783

Date: 2025-03-17 13:56:14
Score: 1
Natty:
Report link

I'm no expert of Harmony so I couldn't explain the difference between the 2 approach unfortunately but this line does work for me :

from ToonBoom import harmony

harmony.session().project.scene.clipboard.paste_template_into_group("C:\\my\\super\\path\\towards\\the\\template.tpl", 1,"Top") # (beware, the double backslashes are mandatory if you are on windows)

Hope this is helpful

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

79514782

Date: 2025-03-17 13:56:14
Score: 2
Natty:
Report link

This error occurs because you paste a second JSON after the first JSON.

What you should do is remove the last bracket of the first JSON and the first bracket of your second JSON, to have a single JSON in your JSON file (which is the indented use for .json files).

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

79514781

Date: 2025-03-17 13:56:14
Score: 1.5
Natty:
Report link

This has a solution. Extension is in using Microsoft.Azure.WebJobs.Hosting;

using Microsoft.Extensions.DependencyInjection;.

It will be called automatically on startup. It ran migrations.

EF Core Migrations in Azure Function startup

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

79514778

Date: 2025-03-17 13:55:14
Score: 0.5
Natty:
Report link

Calling functions from the template is not possible in Django normally, however this call templatetag provides this capability for any method you would like to evaluate. It is available in the dj-angles library and can be installed via pip install dj-angles.

{% call obj.get_something(...) as something %}

{{ something }}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: adparadox

79514766

Date: 2025-03-17 13:50:12
Score: 0.5
Natty:
Report link

You can just add wsl before the command you want to run, for example

wsl ln -sf  /mnt/wslg/runtime-dir/wayland-* $XDG_RUNTIME_DIR/ 
wsl SDL_VIDEODRIVER="wayland" code .
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: link89

79514761

Date: 2025-03-17 13:49:12
Score: 3
Natty:
Report link

Have each "running_batch" at its conclusion add 1 to a variable and when the variable = 4 start the next set after resetting the variable to 0

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

79514760

Date: 2025-03-17 13:49:12
Score: 1.5
Natty:
Report link

To make the text inside the box wrap when it exceeds the box's width (and not the screen), you can modify the CSS in the following way:

  1. Use word-wrap (or overflow-wrap) to ensure the text wraps properly.
  2. Remove overflow: hide and adjust the box model properly to ensure content wraps without clipping.
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Anto Navis

79514752

Date: 2025-03-17 13:46:11
Score: 2.5
Natty:
Report link

If you are facing this issue in IntelliJ try unchecking "SkipTests" from Settings -> Build, Execution, Deployment -> Maven -> Runner

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

79514750

Date: 2025-03-17 13:45:11
Score: 1
Natty:
Report link

In order to set the column witdh in ApexCharts, just add the width as follows (only percentages are allowed):

plotOptions: {
      bar: {
          columnWidth: '70%',
      }
}

More configurations on the plotOptions Apexcharts Bar

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

79514745

Date: 2025-03-17 13:42:11
Score: 3.5
Natty:
Report link

Here is my demo. It is NOT efficient and I am looking forward to better solutions.

#! /usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import cv2

myImage = cv2.imread(sys.argv[1])
(my_h, my_w, _) = myImage.shape
gray = cv2.cvtColor(myImage, cv2.COLOR_BGR2GRAY)
for h in range(my_h-3):
    for w in range(my_w-3):
        slice=gray[h:h+3, w:w+3]
        if (slice[0,0]==255 and slice[0,1]==255 and slice[0,2]==255 \
        and slice[1,0]==255 and slice[1,1]< 255 and slice[1,2]==255 \
        and slice[2,0]==255 and slice[2,1]==255 and slice[2,2]==255 ):
            myImage[h+1,w+1]=[255,255,255]
cv2.imwrite(sys.argv[1]+".denoise.png", myImage)

I tried imagemagick with no luck.

sample.png, sample.png.denoise.png, sample.Erode.png, sample.Dilate.png, sample.Open.png, sample.Close.png, sample.Smooth.png

From left to right:

#sample.png
python denoise.py sample.png #sample.png.denoise.png
magick sample.png -morphology Erode  Ring:1.5 sample.Erode.png
magick sample.png -morphology Dilate Ring:1.5 sample.Dilate.png
magick sample.png -morphology Open   Ring:1.5 sample.Open.png
magick sample.png -morphology Close  Ring:1.5 sample.Close.png
magick sample.png -morphology Smooth Ring:1.5 sample.Smooth.png
Reasons:
  • Blacklisted phrase (2): I am looking for
  • Blacklisted phrase (1): no luck
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Schezuk

79514740

Date: 2025-03-17 13:40:10
Score: 1
Natty:
Report link

I found the answer to my own question by accident shortly after posting this last year.

The bash script is still technically SSHed onto our main working server, and without manually exiting the script, the connection will go stale and wreak havoc on the Docker container behavior. I do not know WHY the Docker container misbehaves so badly when this connection goes stale. I believe it may be because that script is still trying to run and maintain an SSH connection despite being long disconnected from our main server.

If you are doing any kind of remote connections from your container to another server/environment, make sure you cleanly sever those connections after you perform your tasks. Alternatively check your server's ssh timeout.

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

79514725

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

You can implement a simple function to calculate the overlap between two time ranges similar to how it's done here: Efficient date range overlap calculation?

Then the number of hours worked in each shift is just the overlap between the employee's working time with that specific shift working hours.

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

79514721

Date: 2025-03-17 13:35:08
Score: 0.5
Natty:
Report link

This is quite an interesting problem.

In such cases where I want to implement a functionality similar to the one of a loop, I usually group all the rows together in an ordered array of arrays, and then I perform aggregation, where for every element (equivalent to row) I update the state based on some logic and save it afterwards.

I will guide you through the process. I managed to make it work for the example you sent, with one slight difference, which is actual median calculation instead of percentile_approx() function which doesn’t give us the exact median, but in a variation of this solution you can also use percentile_approx.

I’ll guide you through my solution, showing the example you used:

Algorithm:
Input: df(id, value)
Output: df(id, median_of_last_5_values)
Step 1: Combine the data frame into one row (id_array, values_array)
Step 2: Iterate through values using an aggregator that checks every new value in the list and decides whether we keep it
    array = last_array_of_accumulator
    We have two cases:
        if size(array) <= 5: try_array = array + next_element
        else: try_array = remove_first_element(array) + next_element
    We compute the median for the try_array, and:
        if median > 35: add array to accumulator
        else:  add try_array to accumulator
    // Then this returned value will be used on the next step.
Step 3: Post-processing of the result

How would it look like in your example: 
Step 1: Combining values in one row:

Combined values

Step 2:
First iteration: Value 10, accumulator=[[]]
array = []
try_array = [] + 10 = [10]
median < 35 => return [10] => accumulator = [[], [10]]
Second iteration: Value 20
array = [10]
try_array = [10] + 20 = [10,20]
Median < 35 => return [10,20] => accumulator = [[],[10],[10,20]]
…. skipping to iteration nr 7
Seventh iteration: Value 70,  accumulator = [[],[10],[10,20],[10,20,30],[10,20,30,40],[10,20,30,40,50],[10,20,30,40,50,60]]
array = [10,20,30,40,50,60]
try_array = [20,30,40,50,60] + 70 = [20,30,40,50,60,70]
Median > 35 => return [10,20,30,40,50,60] 
=> accumulator = [[],[10],[10,20],[10,20,30],[10,20,30,40],[10,20,30,40,50],[10,20,30,40,50,60],[10,20,30,40,50,60]]

Now, the implementation:

Step 1:

df = df.withColumn("dummy", lit(1)).groupBy("dummy").agg(
    collect_list("id").alias("id_list"),
    collect_list("value").alias("values_list")
)

Step 2: I used this calculation for median (in Spark SQL):

CASE WHEN size(preceding_values) % 2 == 0 then (array_sort(preceding_values)[cast(size(preceding_values)/2 as int)]  + array_sort(preceding_values)[cast(size(preceding_values)/2 as int)-1])/2
ELSE array_sort(preceding_values)[cast(size(preceding_values)/2 as int)]
END

But using this inside the aggregation generates messy code, so I would do the median calculation of an array using a UDF, such as:

def median(arr):
    if not arr:
        return None
    n = len(sorted_arr)
    if n%2 == 1:
        return float(sorted_arr[n // 2])
    else:
        return float((sorted_arr[n // 2 - 1] + sorted_arr[n // 2]) / 2)

median_udf = udf(calculate_median, FloatType())

and then only use this function directly in the calculations. The code:

aggregation_logic = expr("""
    aggregate(
        values_list,
        cast(array(array()) as array<array<int>>),
        (acc, x) -> 
            CASE 
                WHEN size(acc[size(acc) - 1]) > 5 
                THEN (
                    CASE 
                        WHEN {median_udf}(array_append(array_remove(acc[size(acc) - 1], acc[size(acc) - 1][0]), x)) > 35 
                        THEN array_append(acc, acc[size(acc) - 1])
                        ELSE array_append(acc, array(array_append(array_remove(acc[size(acc) - 1], acc[size(acc) - 1][0]), x)))
                    END
                )
                ELSE (
                    CASE 
                        WHEN {median_udf}(array_append(acc[size(acc) - 1], x)) > 35
                        THEN array_append(acc, acc[size(acc) - 1]) 
                        ELSE array_append(acc, array(array_append(acc[size(acc) - 1], x))
                    END
                )
            END
    )
""".format(median_udf=median_udf))

result_df = df.withColumn("considered_arrays", aggregation_logic)

Your result at this stage should look like this (in the example):

Arrays to be considered

Step 3:
We have 12 id's and 12 values, but 13 elements in the considered_arrays, because of the initial empty array in the accumulator. We remove that:

df = df.withColumn(“considered_arrays”, expr(“array_remove(considered_arrays, array())”))

Then to flatten the results, use the following:

df = df.select(“id_list”, “considered_arrays”)
       .withColumn(“result_struct”, expr(“arrays_zip(id_list, considered_arrays)”)
       .select(“result_struct”)

And finally, calculate medians:

result_df = df.withColumn(“id”, “result_struct.id_list”)
              .withColumn(“median”, median_udf(“result_struct.considered_arrays”))

This is just a solution with mostly Spark built-in functionality and it’s not efficient, especially in terms of huge datasets. Keep in mind, that although I’m reducing to one row, the sizes of these arrays will be huge, and the execution will be sequential. Since we have only one row, there is no parallelization among multiple workers, so scale-out won’t be much help in this case, maybe only scale-up in cases of memory issues.

If you want a more scalable solution, try implementing a similar logic completely using udf’s, or e.g. partitioning data using dummy column, and then finding a way to keep data continuity between different groups - depending on your data. The latter would be very hard, but also extremely beneficial as you would have smaller arrays to work with on one machine, and distributed execution - each worker is assigned a group.

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

79514707

Date: 2025-03-17 13:27:04
Score: 6 đźš©
Natty: 5.5
Report link

I'm having the same problem now and none of these suggestions worked for me.

Reasons:
  • Blacklisted phrase (1): I'm having the same problem
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: CHARLES ROBINSON

79514697

Date: 2025-03-17 13:21:03
Score: 2.5
Natty:
Report link

Someone might ask, "Why does element 24 have to go to the top of the series?" The answer is simply that this is just a basic example.

The test I conducted aimed to move the element with key 24 to the top while leaving the rest unchanged. As I mentioned, in my test, I was able to achieve what I wanted, so now I just need to recreate the initial situation.

The question, therefore, is: how can I place the associative array inside an array that contains everything?

To answer another question, the keys in the desired result are actually supposed to be 0, 1 and 3 and so on, yes.

Reasons:
  • Blacklisted phrase (1): another question
  • Blacklisted phrase (0.5): how can I
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Franco Giambalvo

79514693

Date: 2025-03-17 13:19:02
Score: 0.5
Natty:
Report link

Try unicode:

up_arrow = '\u2197'  # Up arrow
down_arrow = '\u2198'  # Down arrow
right_arrow = '\u2192'  # Right arrow

Comment out (or delete) the following:

#Set font properties for the first three rows
#for (i, j), cell in rect.get_celld().items():
#    if i < 3:  # First three rows
#        cell.set_fontsize(12)
#        cell.set_text_props(fontname='Arial')  # Change to your desired fon    t
#    else:  # Last row with Wingdings
#        cell.set_fontsize(12)
#        cell.set_text_props(fontname='Wingdings 3')

The output:

enter image description here

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

79514692

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

You can go through the documents available at GitHub. Correlating traces with logs

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

79514687

Date: 2025-03-17 13:16:02
Score: 2
Natty:
Report link

I was having the same issue even if all the settings was okay. The only issue I found out was comments. If your piece of code (to be copied and pasted) starts with any commented line, it will only paste the first line correctly and rest of the lines will be pasted at the start

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

79514685

Date: 2025-03-17 13:16:02
Score: 2.5
Natty:
Report link

Regarding the error with applying the Ehlers Roofing Filter on SMI, we've identified and fixed a configuration conflict that was causing the issue. The filter is now being applied successfully. If you experience any further problems, feel free to reach out.

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

79514679

Date: 2025-03-17 13:14:01
Score: 0.5
Natty:
Report link

Calling functions from the template is not possible in Django normally, however this call templatetag provides this capability for any method you would like to evaluate. It is available in the dj-angles library and can be installed via pip install dj-angles.

{% call obj_customer.get_something(...) as something %}

{{ something }}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: adparadox

79514678

Date: 2025-03-17 13:14:01
Score: 3.5
Natty:
Report link

If it can be useful to someone else, try changing x-ms-version to 2020-07-15

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

79514677

Date: 2025-03-17 13:14:01
Score: 0.5
Natty:
Report link
  1. Run the Visual Studio 2022 Installer

    Find the program you use to add new frameworks to your Visual Studio 2022 installation and run it

  2. Click on Modify

    You will see three buttons namely Modify, Repair and Uninstall.

    Click on Modify

  3. Check the Workload ticked in blue like in the screenshot below

    enter image description here

    Click on Install while downloading to start thedownload and installation process.

4. Wait for Visual Studio Installer to download the workload and then launch Visual Studio 2022 Community

After the installer installs the workload then close it and restart Visual Studio Community 2022 and you will now be able to Create a new Windows Forms Project using .NET Framework

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