79343692

Date: 2025-01-09 18:40:23
Score: 1.5
Natty:
Report link

Have you read through the Spring docs on Multipart data? This one seems relevant (need to have webflux as a dependency):

Reactive Core::Spring Framework

The DefaultServerWebExchange uses the configured HttpMessageReader<MultiValueMap<String, Part>> to parse multipart/form-data, multipart/mixed, and multipart/related content into a MultiValueMap.

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

79343689

Date: 2025-01-09 18:40:23
Score: 3.5
Natty:
Report link

For me it was the "Indeterminate" property being "True" that caused this annoying effect

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

79343680

Date: 2025-01-09 18:35:23
Score: 3
Natty:
Report link

Make sure that the pipeline that you wants to be triggered by the PR is in the main branch of a repository.

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

79343669

Date: 2025-01-09 18:30:21
Score: 1.5
Natty:
Report link

Don't forget to add to use this prefix REACT_APP while creating the .env file for the firebase.

REACT_APP_FIREBASE_API_KEY = "YOUR_KEY"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: gourav verma

79343667

Date: 2025-01-09 18:28:20
Score: 1.5
Natty:
Report link

You need to look for in the settings of your lsp, it usually have that option. For example in my case, I use zls for zig:

lspconfig.zls.setup{
    settings = {
    zls = {
      enable_argument_placeholders = false,
    },
  },
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Javi

79343649

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

Testing and experimenting with YT playing in Brave browser as of 2025-01-09 (YYYY-MM-DD)...

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

79343647

Date: 2025-01-09 18:21:18
Score: 3.5
Natty:
Report link

Hello from the future,

Newcomers may find it helpful to learn about this package: https://www.khirevich.com/latex/microtype/ https://ctan.org/pkg/microtype

It helps with cleaning many of those warnings.

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

79343644

Date: 2025-01-09 18:21:18
Score: 1.5
Natty:
Report link

Execute both asyncFunc() and animateFunc() in parallel:

const doBothAtOnce = Promise.all([asyncFunc(), animateFunc()]);
await doBothAtOnce;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Theo Borewit

79343637

Date: 2025-01-09 18:15:17
Score: 1.5
Natty:
Report link

I just wrapped mine in a div and added the border and that worked

<div style="border: solid 3px;>

![alt-text](./your/image.png)
</div>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Boot

79343635

Date: 2025-01-09 18:15:17
Score: 1
Natty:
Report link

Middleware in ASP.NET Core is a powerful mechanism for intercepting HTTP requests and responses during their lifecycle. With custom middleware, developers can handle tasks such as logging, exception handling, and authorization in a structured and reusable manner. This blog post will guide you through creating and extending middleware in ASP.NET Core, leveraging extension methods for improved modularity and readability.

What is Middleware?

Middleware is software injected into the request-response pipeline in ASP.NET Core applications. It processes HTTP requests as they flow through the pipeline, allowing developers to manipulate them before they reach the endpoint or after the endpoint has processed them.

Why Use Custom Middleware? Centralizes logic like logging, error handling, and security checks. Enhances maintainability by keeping concerns separate. Simplifies reusability and testing.

Make sure you have the required package installed:

dotnet add package Microsoft.Extensions.DependencyInjection.Abstractions

Step 1: Setting Up Middleware Extension Methods We define a static class MiddlewareExtensions to house all our middleware extension methods:

namespace gaurav.Middleware;

public static class MiddlewareExtensions
{
    public static IApplicationBuilder UseAuthorizationMiddleware(this IApplicationBuilder builder)
    {
        return builder.UseMiddleware<AuthorizationMiddleware>();
    }

    public static IApplicationBuilder UseExceptionMiddleware(this IApplicationBuilder builder)
    {
        return builder.UseMiddleware<ExceptionMiddleware>();
    }

    public static IApplicationBuilder UseLoggingMiddleware(this IApplicationBuilder builder)
    {
        return builder.UseMiddleware<LoggingMiddleware>();
    }
}

Each method is a thin wrapper around UseMiddleware, ensuring that the middleware can be registered in the startup pipeline succinctly.

Step 2: Building the Middleware Classes

1. Authorization Middleware This middleware handles authorization checks, ensuring that only authenticated users can access protected resources.

namespace gaurav.Middleware;

public class AuthorizationMiddleware
{
    private readonly RequestDelegate _next;
    private readonly ILogger<AuthorizationMiddleware> _logger;

    public AuthorizationMiddleware(RequestDelegate next, ILogger<AuthorizationMiddleware> logger)
    {
        _next = next;
        _logger = logger;
    }

    public async Task InvokeAsync(HttpContext context, ISQLORMService sqlOrmService)
    {
        _logger.LogInformation("Processing authorization...");
        // Implement authorization logic here
        await _next(context);
    }
}

2. Exception Middleware This middleware provides a unified way to handle exceptions, log them, and return meaningful error responses to clients.

namespace gaurav.Middleware;

public class ExceptionMiddleware
{
    private readonly RequestDelegate _next;

    public ExceptionMiddleware(RequestDelegate next)
    {
        _next = next;
    }

    public async Task InvokeAsync(HttpContext context, ILogger<ExceptionMiddleware> logger)
    {
        try
        {
            await _next(context);
        }
        catch (Exception ex)
        {
            logger.LogError($"Unhandled exception: {ex}");
            await HandleExceptionAsync(context, ex, Guid.NewGuid().ToString());
        }
    }

    private async Task HandleExceptionAsync(HttpContext context, Exception exception, string traceId)
    {
        context.Response.ContentType = "application/json";
        context.Response.StatusCode = StatusCodes.Status500InternalServerError;

        await context.Response.WriteAsync(new
        {
            statusCode = context.Response.StatusCode,
            message = exception.Message,
            traceId
        }.ToString());
    }
}

3. Logging Middleware This middleware logs incoming requests and outgoing responses, providing valuable insights into the application's operation.

namespace gaurav.Middleware;

public class LoggingMiddleware
{
    private readonly RequestDelegate _next;

    public LoggingMiddleware(RequestDelegate next)
    {
        _next = next;
    }

    public async Task InvokeAsync(HttpContext context, ILogger<LoggingMiddleware> logger)
    {
        context.Request.EnableBuffering();
        logger.LogInformation($"Incoming request: {context.Request.Method} {context.Request.Path}");

        await _next(context);

        logger.LogInformation($"Outgoing response: {context.Response.StatusCode}");
    }
}

Step 3: Configuring Middleware in the Pipeline To register custom middleware in the HTTP pipeline, use the extension methods in the Program.cs or Startup.cs file.

var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();

app.UseLoggingMiddleware();
app.UseExceptionMiddleware();
app.UseAuthorizationMiddleware();

app.MapControllers();
app.Run();

Benefits of Middleware Extensions

Readability: Extension methods make pipeline configuration intuitive. Reusability: Middleware can be reused across multiple applications. Separation of Concerns: Each middleware handles a specific responsibility.

Conclusion

Custom middleware with extension methods streamlines your application's HTTP request pipeline. This approach not only enhances code readability but also aligns with the best practices of modular application design. By incorporating middlewares like logging, exception handling, and authorization, you can build robust and maintainable ASP.NET Core applications.

Feel free to extend this concept further with caching, rate-limiting, or custom headers as middleware!

Let me know in the comments how you use middleware in your projects or what custom middleware ideas you have! 🚀

Reasons:
  • Blacklisted phrase (1): This blog
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Gaurav Nandankar

79343629

Date: 2025-01-09 18:12:16
Score: 2
Natty:
Report link

Assuming you know the text content you wish to match in the first column and extract just that row, you should be able to do the following using Pandas and four lines of code.

The property pandas.DataFrame.loc allows you to, "Access a group of rows and columns by label(s) or a boolean array."

See: https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.loc.html#pandas-dataframe-loc

import pandas as pd

filename = "big.csv"
df = pd.read_csv(filename)

"""Search the CSV file by a column called 'column name' for any rows containing
your 'DataName' or 'DataValues' and return those specific rows.
"""
specific_rows = df.loc[
    (df['column name'] == 'DataName') | (df['column name'] == 'DataValues')
]

Does that help you?

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

79343623

Date: 2025-01-09 18:11:16
Score: 2.5
Natty:
Report link

To turn off color:

edit .vimrc file and enter this line as shown below - save and quit

$ vi .vimrc :syntax off

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

79343614

Date: 2025-01-09 18:08:15
Score: 1
Natty:
Report link

Fine, in between there were updates in the RDT, and the current yaml script (from https://gitlab.com/dirac/dirac/-/blob/master/.readthedocs.yaml) looks like:


version: 2

build:
  os: ubuntu-22.04
  tools:
    python: "3.12"
  apt_packages:
    - cmake
    - gfortran
    - gcc
    - g++
    - git
  jobs:    
    post_checkout: 
      - git submodule update --init --recursive
    install:
      - python3 -m venv venv
      - . venv/bin/activate
      - python3 -m pip install "sphinx<7.0.0" sphinx_rtd_theme sphinxcontrib-bibtex
      - pip list
      - lsb_release -a
    pre_build:
        - ./setup $READTHEDOCS_OUTPUT
    build:
      html:
        - cd $READTHEDOCS_OUTPUT; echo "I am in the directory:";pwd; make VERBOSE=1 html; cd html; echo "content of html:"; ls -lt; ls -lt _static
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Miro Iliaš

79343612

Date: 2025-01-09 18:07:15
Score: 1.5
Natty:
Report link

The error isn't great. I found that for a GP_Gen5 you need to specify a capacity of at least 2. If you do not specify the capacity you get the message "The tier 'GeneralPurpose' does not support the sku 'SQLDB_GP_Gen5'." which isn't helpful in this case.

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

79343607

Date: 2025-01-09 18:06:14
Score: 1
Natty:
Report link

Could the boot process be?: ZSBL (Zero-Stage bootloader) -> SBI -> Kernel

Yes. It works perfectly fine on QEMU this way, but only because QEMU already loads the kernel into RAM. OpenSBI ("fw_jump") in this case just does some firmware setup and simply jumps to the kernel.

On normal devices, your kernel is likely located in a file system. OpenSBI has no drivers to read that file system and cannot load the kernel. Here you need something like U-Boot that comes with the needed drivers.

I think these slides (from page 14) are a good resource.

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

79343606

Date: 2025-01-09 18:06:14
Score: 3
Natty:
Report link

Thanks for the advices and for the alternatives, I finally came up with a solution though. This is the Regular expression that worked for me:

{{\s*(\w*)\s*}}(?=[^%]*%})

Explanation:
{{\s*(\w*)\s*}} Matches anything inside the {{ }} delimiters including any number of leading or trailing blank spaces inside
        (\w*) matches words with common variables naming convention (i.e. letters, digits or underscores), and puts it in a capture group
(?=[^%]*%}) looks ahead to match ONLY if the condition is true (i.e. it matches only if the {{variable}} is nested inside the {% %} delimiters)
        [^%]* matches each of the rest of the characters in the string to check that ARE NOT a % (percent character)...
        %} matches the end of the {% %} code block

This is the final SINGLE LINE preg_replace() statement achieving the originally desired output:

echo preg_replace('#{{\s*(\w*)\s*}}(?=[^%]*%})#', '\$$1', $string);

You can confirm the regex here and the replacements here

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): worked for me
  • RegEx Blacklisted phrase (3): Thanks for the advices
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jod

79343601

Date: 2025-01-09 18:04:13
Score: 3.5
Natty:
Report link

I am currently using the output element as suggested by one of the commentators. It works well.

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

79343581

Date: 2025-01-09 17:57:11
Score: 1.5
Natty:
Report link

For me the issue was a programming error, strange how the error i got. Instead of List on the ORM for the many to one field, i mistakenly wrote Item[].

Coming from JS background.

Reasons:
  • Low length (1):
  • No code block (0.5):
Posted by: Shamsul Arefin

79343580

Date: 2025-01-09 17:57:11
Score: 0.5
Natty:
Report link

The send pipeline is not part of the control flow path for send, same with publish.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Chris Patterson

79343571

Date: 2025-01-09 17:54:10
Score: 3
Natty:
Report link

In case you can't upgrade your project to use @angular/cli > v12, you can install [email protected] in your project.

You can find more details about that in this link https://github.com/willmendesneto/ngx-skeleton-loader/issues/150#issuecomment-1638612329

Reasons:
  • Blacklisted phrase (1): this link
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Will Mendes

79343563

Date: 2025-01-09 17:51:09
Score: 2.5
Natty:
Report link

For anyone who visit this question at this time(2025), I confirm that installing a older version solve the problem, apparently microsoft updated it too frequently and never test it properly, so just try the older versions one by one until one of them works.

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

79343560

Date: 2025-01-09 17:49:09
Score: 1
Natty:
Report link

Its hard to tools to inspect pygobject but this repo contains generated stubs that should work: https://github.com/pygobject/pygobject-stubs

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

79343559

Date: 2025-01-09 17:49:07
Score: 7 🚩
Natty: 6
Report link

How to add a function call to it now?

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How to add a
  • Low reputation (1):
Posted by: Gautam

79343542

Date: 2025-01-09 17:41:05
Score: 2
Natty:
Report link

I found this article that shows how to do the encryption part. https://medium.com/@mattgillard/how-to-enforce-encryption-on-aws-rds-the-correct-way-4c55251ce40e

{
  "Version": "2012-10-17",
  "Statement": [
{
      "Action": [
        "rds:CreateDBInstance"
      ],
      "Condition": {
        "StringNotLike": {
          "rds:DatabaseEngine": "aurora*"
        },
        "Bool": {
          "rds:StorageEncrypted": "false"
        }
      },
      "Effect": "Deny",
      "Resource": [
        "*"
      ],
      "Sid": "DenyUnencyptedRDS"
    },
    {
      "Sid": "DenyUnencyptedAurora",
      "Effect": "Deny",
      "Action": [
        "rds:CreateDBCluster"
      ],
      "Resource": [
        "*"
      ],
      "Condition": {
        "Bool": {
          "rds:StorageEncrypted": "false"
        }
      }
    }
  ]
}
Reasons:
  • Blacklisted phrase (1): this article
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: toppledwagon

79343537

Date: 2025-01-09 17:39:04
Score: 0.5
Natty:
Report link
  1. Build and Run the App on Simulator .

  2. Open the Finder on your Mac and press Cmd + Shift + G to open the "Go to Folder" dialog.

  3. Enter path ~/Library/Developer/CoreSimulator/Devices -> This show Devices folder

  4. Inside the Devices folder, you'll see a list of folders named with UUIDs. Each of these represents a simulator instance.

  5. Navigate to data/Containers/Bundle/Application. There you see application type file and the size.

NOTE -> This give basic idea of app Size . For Know actual size we need .ipa file(Using apple developer account).

Like in my case my project size is 381.8 MB(which include 10+ pod). and By using above method It show size is 82.2 MB . But when I get .ipa file the my actual app size is 29.7 MB.

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

79343536

Date: 2025-01-09 17:39:04
Score: 3.5
Natty:
Report link

@Conman_123 answer is correct but you might need to go further with the 'Switch Depth' drop down to 'Only this item'.
Major bug from bad window size caches. Tortoise could just resize these but this problem has been going on for years :(

Reasons:
  • Blacklisted phrase (1): :(
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Conman_123
  • Low reputation (0.5):
Posted by: Andrew Day

79343532

Date: 2025-01-09 17:37:04
Score: 0.5
Natty:
Report link

There is a way that ArrayFormula can work with sparkline. I have been using this formula in my spreadsheets. You don't need to have sparkline formula in every cell. With only one formula to one header cell, it can generate sparklines across all the rows. Let's say you have data in column B2:D. You can copy this formula to cell A1. This will generate sparkliness across all the rows from row 2 in column A.

=ArrayFormula(MAKEARRAY(ROWS(A2:A),1, LAMBDA(row,col, IFNA(sparkline(OFFSET(A2,row-1,0,1,3), {"charttype","column";"color","green";"negcolor","red"})))))

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

79343530

Date: 2025-01-09 17:36:04
Score: 1.5
Natty:
Report link

Do not create a custom Redshift driver cause in dbeaver it's going to create a Postgres driver and not a real Redshift driver

so create directly a new database connection and select Redshift and you will be able to see the external table ( spectrum )

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

79343528

Date: 2025-01-09 17:35:03
Score: 1.5
Natty:
Report link

I had the exact same issue with the SupportPixelFold message. I have resolved it thanks to this answer.

To summarize, I had to update the Android Emulator SDK in the Android Studio settings. See the image below for further details. Android Studio settings for Android Emulator SDK

Hope it will help you !

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Whitelisted phrase (-1): Hope it will help
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: LBF38

79343527

Date: 2025-01-09 17:35:03
Score: 1.5
Natty:
Report link

I did some research, and I found that you can transfer your package to a verified publisher, but I haven't found anything like verifying an existing uploader/publisher.

Here's the official documentation where you can find these details: Official Documentation

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

79343523

Date: 2025-01-09 17:34:03
Score: 2
Natty:
Report link

I'm assuming based on your wording that by generate you mean it's not appearing as available in hybris rather than the class is not being generated in your files. If that's the case, make sure to run "Update running system" from the hac in order to update the database with your changes.

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

79343522

Date: 2025-01-09 17:32:02
Score: 0.5
Natty:
Report link

I'll answer my own question:

The only necessary fix was to append log volume mount point to RequiresMountsFor in systemd-journal-flush service's unit file:

RequiresMountsFor=/var/log/journal /log

In yocto, that required patching systemd recipe to make a change in units/systemd-journal-flush.service.

After this change, new boot is correctly recognized every time, and no more unmount failures during poweroff.

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

79343516

Date: 2025-01-09 17:30:02
Score: 0.5
Natty:
Report link

If you need to get only one file from git without cloning the whole project you can use the next commands:

git clone --no-checkout

It will clone repo metadate, but not the data.

git checkout origin/ -- {FILE_PATH}

As said above - just clone the necessary File.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Алексей

79343511

Date: 2025-01-09 17:28:01
Score: 0.5
Natty:
Report link

Make sure that the developer account you use in Xcode has an "Apple Distribution Certificate" on your computer by following these steps:

  1. Accept all developer agreements by signing in to your account at https://developer.apple.com first as others have suggested
  2. Start Xcode and select "Settings..." from the Xcode menu
  3. Select the "Accounts" tab
  4. Select the Apple ID you want to use on the left pane (or add it if you don't already have it listed)
  5. Select the Team you want to use for distribution on the right pane (this would usually be your company/business name or your own name I guess if you're not incorporated)
  6. Click the "Manage Certificates..." button
  7. If you don't see an Apple Distribution certificate, click the + button on the bottom left corner, and select Apple Distribution

Doing these steps fixed the crash issue for me and I was finally able to make a new release.

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

79343510

Date: 2025-01-09 17:28:01
Score: 3.5
Natty:
Report link

I do not know, but using the hints on this thread, I install spyder-kernels and still not working. But, I restarted the computer and works perfectly.

conda install spyder-kernels
Reasons:
  • Blacklisted phrase (2): still not working
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Raphael Barcelos

79343509

Date: 2025-01-09 17:28:01
Score: 1
Natty:
Report link

Two solutions

1.

const data = XLSX.read(byteArray, { type: 'array' });

changed to

const data = XLSX.read(byteArray, { type: 'buffer' });

The answer from HernanATN also solved my problem and seemed to be more trustworthy to go with a different version of xlsx that is more compatible with GAS

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

79343501

Date: 2025-01-09 17:26:00
Score: 1
Natty:
Report link

Following Muhammad Danial Shauket's thinking, I realized I could lower just the JSON array that I was extracting from the column, like so.

select * from events where lower("Key1:VaLuE1") member of(lower(meta->"$.tags"));

This works perfectly! Thanks to samhita for the fiddle: https://dbfiddle.uk/k8lT4DRg

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: hackel

79343500

Date: 2025-01-09 17:26:00
Score: 3.5
Natty:
Report link

Solved!  Brought in the XML requests into the script and this prevents the issue from occuring.

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

79343490

Date: 2025-01-09 17:20:59
Score: 0.5
Natty:
Report link

I was having the same exact problem.

The solution is to not override onReceive() within the DeviceAdminReceiver subclass. Once I removed that code, I started to receive callbacks to my onNetworkLogsAvailable() and onSecurityLogsAvailable()

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: iammyr

79343489

Date: 2025-01-09 17:20:59
Score: 2
Natty:
Report link

From your post it sounds like you might want to use qz for your browser printing needs, its easy to setup. Browsers behave differently when it comes to printing.

It can allow you to detect your printers, and connect using a small Javascript that can be embedded on your web page.

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

79343483

Date: 2025-01-09 17:17:58
Score: 2.5
Natty:
Report link

Added withoutSuffixFor(JVMPlatform) and changed sbt project name to scalamock-zio?

Checked with publishLocal, it works

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Georgii Kovalev

79343482

Date: 2025-01-09 17:17:58
Score: 2.5
Natty:
Report link

I've found a partial answer, to what is causing the issue: it is a directive used in HTML of my component, that injects MatSelect in its constructor. Now question is how to fix the error. Maybe passing MatSelect as an @Input to the directive would do the trick? I'll be updating my answer once I find the complete solution

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Input
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: ilya.chepurnoy

79343478

Date: 2025-01-09 17:15:58
Score: 1.5
Natty:
Report link

Is the +layout.svelte safely in the same folder as the +layout.server.js and the +page.svelte? That would be the first thing that comes to mind, because I once had a case where I didn't see that because the file manager in the code editor had such extremely small indentations. If they are, have you tried building the application (npm run build) and running it in the production version (npm run preview)? Otherwise, I would also try deleting the .svelte-kit folder and deleting and reinstalling node_modules.

Reasons:
  • Whitelisted phrase (-1): have you tried
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is the
  • Low reputation (1):
Posted by: ipnator

79343472

Date: 2025-01-09 17:11:56
Score: 0.5
Natty:
Report link

Changing auto.text = FALSE does work, but it does make your plot title bold, with no obvious way to unbold. A bit frustrating since I have to make these plots for multiple communities and keep them consistent, but I guess I'll be using auto.text = FALSE for all the communities to make all the titles bold.

test <- as.data.frame(airquality)
test$date <- NA
test$date <- paste(test$Month,"-",test$Day,"- 2024")
test$date <- mdy(test$date)
calendarPlot(test, 
             pollutant = "Ozone",
             month = 5,
             statistic = "mean", 
             annotate = "value",
             main = "'Delta' Junction Air Quality Index"
             auto.text = FALSE
)

screenshot of the generated figure from the code above

Additionally I tried saving the title I desire as an object and then feeding it into the main = in calendarPlot() which still produced the delta symbol not the word delta.

title <- "Delta Junction Air Quality Index"
calendarPlot(test, 
             pollutant = "Ozone",
             month = 5,
             statistic = "mean", 
             annotate = "value",
             main = title)

Screenshot of the figure generated from above code

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

79343471

Date: 2025-01-09 17:11:56
Score: 4.5
Natty: 4.5
Report link

Add a Delay step Delay step in Power Automate

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

79343470

Date: 2025-01-09 17:10:55
Score: 6.5 🚩
Natty: 4.5
Report link

pleae run the code on your android physical device, crashlytics only works on real device, it doesn't work with simulator or emultaor.

but for .net maui iOS, Xamarin.firebase.iOS.Crashlytics seams to be incomplatible, because i am facing exception at line - Firebase.Crashlytics.Crashlytics.SharedInstance.Init(); as System.nullreferenceException has been thrown ;- object reference not set to an instance of an object.

working with xamarin.forms

please help if anyone find any solution for iOS

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (3): please help
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Ashish Gupta

79343461

Date: 2025-01-09 17:07:53
Score: 1.5
Natty:
Report link

Google Search Console is the best tool to check and validate XML Sitemaps if you have access to it. However, you can check the errors only after submitting the XML Sitemaps. If you want to validate them before submitting them to Google, you have to use other free online tools. There are a few famous tools you can check. All the URLs shared by other members are no longer available except this. https://xmlsitemaps.app/xml-sitemap-validator.html

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

79343450

Date: 2025-01-09 17:04:52
Score: 0.5
Natty:
Report link

In the .csproj file of your WinUI 3 application, add:

<PropertyGroup>
   <PublishTrimmed>false</PublishTrimmed>
</PropertyGroup>

Open your project in VS 2022 and right click project in solution explorer: Properties > Build > Publish > Uncheck Publish trimmed.


The trimming optimization feature of VS 2022 (which only runs in release mode) trims necessary methods in the MongoDB.Driver dll file which causes the connection to the database to fail.

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

79343444

Date: 2025-01-09 17:01:51
Score: 1
Natty:
Report link

if you have an ActiveRecord class, SomeClassWithRegdate, you can let Rails do the conversion.

regdate = SomeClassWithRegdate.new(params).regdate
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Yoav Epstein

79343441

Date: 2025-01-09 16:59:50
Score: 4.5
Natty:
Report link

That is done via the cppcheck-htmlreport Python tool.

It is possible that it available/packaged on every system. In that case you can simply pull the latest version from the official repository: https://github.com/danmar/cppcheck/tree/main/htmlreport. The script is standalone.

This was already pointed out by @howlger in a previous comment: How to generate a readable report from the xml output of Cppcheck/Cppcheclipse?.

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @howlger
  • Low reputation (0.5):
Posted by: Firewave

79343434

Date: 2025-01-09 16:57:50
Score: 0.5
Natty:
Report link

From the docs on network_mode:

When [network mode is] set, the networks attribute is not allowed and Compose rejects any Compose file containing both attributes.

Further, networks: must be set to one of the following:

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

79343433

Date: 2025-01-09 16:56:49
Score: 2
Natty:
Report link

I think what you need to do is to ensure you're getting a structured Json output. Then once you get that, you can flatten it can convert it to python with some python codes.

Expecting agents to give you direct dataframe as output might not work well.

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

79343412

Date: 2025-01-09 16:48:46
Score: 4.5
Natty:
Report link

localStorage.setItem('toggleState', $(this).attr("id"));

by @Roy Bogado

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @Roy
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user28928120

79343406

Date: 2025-01-09 16:45:46
Score: 1.5
Natty:
Report link

Try to do something like:

"=\"#{your_line_here}\""

This will tell to excel to act as formula, can be a solution.

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

79343399

Date: 2025-01-09 16:41:45
Score: 1.5
Natty:
Report link

You can combine message offset and message identifier into a single integer (let's call it moi - message offset and id): moi=message_offset*n+message_id, where n is a constant high limit of message identifiers.

Now, to register a new message you should atomically read moi and add new_message_length*n+1 to it. To get offset use moi/n, to get id - moi%n.

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

79343393

Date: 2025-01-09 16:40:45
Score: 1.5
Natty:
Report link

From this post by AWS [1]

AWS UI is built using react but they utilize Cloudscape Design System which is an open source design system for building intuitive, engaging, and inclusive user experiences at scale. It consists of an extensive set of guidelines to create web applications, along with the design resources and front-end components to streamline implementation.

This is a link to cloudscape website [2] and this is a link to its github repo [3]

Ref

[1] https://aws.amazon.com/about-aws/whats-new/2022/07/cloudscape-design-system-open-source-solution-building-intuitive-web-applications/

[2] https://cloudscape.design/

[3] https://github.com/cloudscape-design/components

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

79343392

Date: 2025-01-09 16:39:44
Score: 4
Natty: 4
Report link

You can set the task property ForceExecutionResult to Success and MaximunErrorCount=0 You can find solution here: https://www.mssqltips.com/sqlservertip/3575/continue-a-foreach-loop-after-an-error-in-a-sql-server-integration-services-package/

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

79343391

Date: 2025-01-09 16:38:43
Score: 2.5
Natty:
Report link

Not a proper answer but i got round the issue by importing the data into another part of the spreadsheet and then using a secondary macro to copy that data and paste it into the table and then delete the original import.

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

79343389

Date: 2025-01-09 16:38:43
Score: 3
Natty:
Report link

also add the chromedriver location to PATH variables, this makes sure driver is available globally.

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

79343386

Date: 2025-01-09 16:37:42
Score: 5.5
Natty: 6.5
Report link

what about backend configuration in this case, separate config for each file or only one that can have single state file for both?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): what
  • Low reputation (1):
Posted by: kaliyappan

79343376

Date: 2025-01-09 16:34:41
Score: 3.5
Natty:
Report link

A found much better online service for this purpose: https://evercoder.github.io/clipboard-inspector/

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

79343374

Date: 2025-01-09 16:31:40
Score: 2.5
Natty:
Report link

It's because you are using double quotations in your .env file; just remove them and use "process.env.JWT_SECRET" as usual. Another option is to have them and use ${process.env.JWT_SECRET_KEY}.

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

79343367

Date: 2025-01-09 16:29:40
Score: 2
Natty:
Report link

This is a way of using sapply(). I am wondering if there is a way to store the result for each outcome somehow. I saw a solution using lapply() which allows storing the result for each outcome, but I am not sure how to make it work for my situation. Any advice would be appreciated.

varlist <- grep("num_weeks_", names(crao2), value=TRUE)
sapply(varlist, function(my){
  f <- as.formula(paste(my, "~ tx", sep=""))
  summary(aov(f, data=crao2))
  TukeyHSD(aov(f, data=crao2))
})
Reasons:
  • Blacklisted phrase (1): appreciated
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: brainupgraded

79343366

Date: 2025-01-09 16:29:40
Score: 0.5
Natty:
Report link

MemoryMappedViewAccessor.SafeMemoryMappedViewHandle denotes the virtual memory page the respective part of the file is mapped to. Typically, a page is 4 KB in size.

Your two view accessors represent parts of the file that are within the same 4 KB region. Therefore, the virtual memory pages you are using here essentially map to the very same 4 KB region in the file. (Note how the block1 and block2 pointer values differ in exactly one 4 KB page size.

If you want to use separate view accessors, what you need to do is to calculate the start offset of the view. MemoryMappedViewAccessor.PointerOffset might be helpful in that, but note that MemoryMappedViewAccessor.PointerOffset is the offset from the start of the mapped file, not the offset from the (first) page of the view.

Or work just with a single view accessor and pointer arithmetic, as Sergei's answer demonstrates. This would be much simpler...

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

79343365

Date: 2025-01-09 16:29:40
Score: 1
Natty:
Report link
h2 {
  --lighten: 50%;
  color: hsl(240, 100%, var(--lighten, 50%));
}

h2.darker {
  --lighten: 80%;
}

And to be able to animate --lighten with transition, you need to add this:

@property --lighten {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 50%;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nerdrage

79343364

Date: 2025-01-09 16:29:40
Score: 2
Natty:
Report link

Add the base url (https://dataservice.accuweather.com) of the API endpoint:

const url = `https://dataservice.accuweather.com/locations/v1/cities/search?apikey=${apiKey}&q=${city}`;
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ak Ab

79343362

Date: 2025-01-09 16:28:40
Score: 0.5
Natty:
Report link

I found a simpler but cruder way of doing this:

public ConcurrentBag<string> Errors { get; set; }

public string[] ErrorsForSerialization
{
    get { return Errors.ToArray(); }
    set {  Errors = new ConcurrentBag<string>(value); }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: fortyCakes

79343357

Date: 2025-01-09 16:24:39
Score: 2
Natty:
Report link

I encountered same error as well. During the installation, you might see an option to select or specify a locale.By default, it will use your system locale. However, you can override it manually. Seting Locale to English, United States (en_US). This solved my problem. I think my error reason was related with character encoding. A conflict happened with my locale' language.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Erkan Çetinyamaç

79343352

Date: 2025-01-09 16:22:38
Score: 3.5
Natty:
Report link

Because i have found this article and did it myself, i want to add this:

https://wiki.servarr.com/docker-arm-synology

By executing a single command (using the script) it successfully installed docker on my nas without issues.

And just in case this link is one day no longer available, maybe the github, that was the execution of the script:

curl https://gist.githubusercontent.com/ta264/2b7fb6e6466b109b9bf9b0a1d91ebedc/raw/b76a28d25d0abd0d27a0c9afaefa0d499eb87d3d/get-docker.sh | sh```
Reasons:
  • Blacklisted phrase (1): this article
  • Blacklisted phrase (1): this link
  • RegEx Blacklisted phrase (1): i want
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Proximo

79343349

Date: 2025-01-09 16:20:38
Score: 2
Natty:
Report link

It seems like your GitHub account is partially blocked, possibly because it's flagged. To resolve this, I'd recommend reaching out to GitHub support. You can contact them via this link: GitHub Support.

Hope this helps!

Reasons:
  • Blacklisted phrase (1): this link
  • Whitelisted phrase (-1): Hope this helps
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: rivka weiss

79343348

Date: 2025-01-09 16:20:38
Score: 3
Natty:
Report link

n^2*log(n) because the for loop it n and while is log(n) becuse counter *= 2 and the nested for in while loop we take the woest case is n finaly we hava n^2log(n)

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

79343342

Date: 2025-01-09 16:17:37
Score: 2.5
Natty:
Report link

The setting can also be changed via GUI. In Windows Security -> Device Security -> Core isolation details, disable Microsoft Vulnerable Driver Blocklist, reboot

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

79343340

Date: 2025-01-09 16:16:37
Score: 1.5
Natty:
Report link

yes in group a you only have 2 entries and not 3 (as you boolean vector)

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

79343339

Date: 2025-01-09 16:16:37
Score: 0.5
Natty:
Report link

It is important to understand that the usual flow of a production application is not to open and close connections several times, as that is an expensive / slow operation.

Ideally, you would use some form of connection pooling - you keep some connections to the server open, and when you need to perform a query you pick one of the connections that is idle, perform the query, and return the connection to the pool. If no connections are idle, usually you can set a configuration to either wait for one to be idle or to open a new one (that will belong to the pool once it becomes idle).

There are several libraries that can perform connection pooling for you on Java; a quick search returned this result https://www.baeldung.com/java-connection-pooling

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

79343337

Date: 2025-01-09 16:15:37
Score: 0.5
Natty:
Report link

According to this community response, it is possible, but you cannot easily ingest and index the data from the on-premises SQL Server from the Azure Portal UI (Import Data Wizard). Instead, you'd have to create a process to use their API to get that on-premises data into the Azure Search indexes.

If you want to do this today in SQL 2022, you would have to roll quite a bit on your own. For the calls to Open AI, you can implement REST calls with help of CLR procedures. To make use of the data that comes back, you would have to implement your own vector-handling.

If you can be little patient, there are several new features in this space in the upcoming SQL 2025. There is a built-in stored procedure for the REST calls, and there is also vector support, so that you can match the response to the user query with what you have previously have received for whatever you had in your database.

https://learn.microsoft.com/en-us/answers/questions/2141323/connecting-an-on-premises-sql-server-database-with

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

79343335

Date: 2025-01-09 16:15:36
Score: 4
Natty: 5
Report link

w,h = pyautogui.size() W is integer width, H is integer height

Per https://www.askpython.com/python/examples/retrieve-screen-resolution-in-python

Took me a while to find it.

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

79343327

Date: 2025-01-09 16:13:35
Score: 2
Natty:
Report link

this is most common example

imagine a restaurant, where kitchen is backend, dinning place is frontend, waiter is API, ordering food is request, where the plate, spoons are interface like (button, clicks,)

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

79343325

Date: 2025-01-09 16:13:35
Score: 1.5
Natty:
Report link

Thanks to sympy, this task would be easy for it.

from sympy import solve, Symbol
x = Symbol('x')
a, b, c, d = (1, 0, -0.8, -0.14) #(0.2 - 1.0 = -0.8), (-0.7 * 0.2 = -0.14)
print(solve(a * x ** 3 + b * x ** 2 + c * x + d))
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tegah D Oweh

79343324

Date: 2025-01-09 16:13:34
Score: 4
Natty:
Report link

Ok i get that. The ElementType in the function template( iterateAccessorWithIndex ) need to have a ElementTraits specialization. So just use #include <fastgltf/glm_element_traits.hpp> and done. For details, you can check this link

Reasons:
  • Blacklisted phrase (1): this link
  • RegEx Blacklisted phrase (1): check this link
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: qiyuewuyi2333

79343316

Date: 2025-01-09 16:11:34
Score: 1
Natty:
Report link

Using Windows+Alt+k (on Windows 11) seems to work nicely to globally toggle mute/unmute, even if Teams is not the active app.

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

79343314

Date: 2025-01-09 16:10:34
Score: 0.5
Natty:
Report link

Just to add a new comment here to confirm. I was trying to use --ignore-engines, but it was not working properly.

When I globally added, it worked in my case.

Command: yarn config set ignore-engines true

Reasons:
  • Blacklisted phrase (0.5): not working properly
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Pedro T.

79343312

Date: 2025-01-09 16:10:34
Score: 2
Natty:
Report link

Yes it can. I use it to boot whit an M2 SSD. My mother board dont have native ports so is on an pci adapter. The sistem have native uefi but it cant boot from the M2 sdd by itsdelf.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Aarón Cárdenas

79343305

Date: 2025-01-09 16:07:33
Score: 2.5
Natty:
Report link

An alternative to the previous answer is to clone your environment (juste look for the button). It will asks for the new name of the environment in a pop window. Then you can simply delete the former environment.

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

79343304

Date: 2025-01-09 16:07:32
Score: 11.5
Natty: 7
Report link

I'm having the same error right now, it started yesterday. Did you manage to solve this for your app?

Reasons:
  • RegEx Blacklisted phrase (3): Did you manage to solve this
  • RegEx Blacklisted phrase (1): I'm having the same error
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same error
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Guilherme Edington

79343286

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

you need to be aware of whitelisting the Apple servers: https://developer.apple.com/documentation/apple_pay_on_the_web/setting_up_your_server Also, the initiativeContext must match the domain in the browser otherwise it won't work

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

79343278

Date: 2025-01-09 16:02:30
Score: 2.5
Natty:
Report link

Each session in TestRigor is treated as an independent execution. so the login process needs to be used before each step where required. You can create a reusable login rule for this.

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

79343273

Date: 2025-01-09 16:01:30
Score: 0.5
Natty:
Report link

The issue is with the svg format. You can use a free validator to check for errors. (such as https://validator.w3.org/check)

I put your snippet into this validator and is shows that has no attributes "xmlns", "height", or "width". I changed the symbol tag to a tag and it passed.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: F Horm

79343272

Date: 2025-01-09 16:00:30
Score: 3.5
Natty:
Report link

Okay, I've been away for a little while. I've been watching the discussion here but also working at the function on my end. This is a solution that seems to work. The event handlers were being erased (rather, not copied over in the first place) by the cloneNode function, so that when the options were copied back over, the event handlers were missing.

My function might not be the most efficient one. I have a white belt in Javascript-fu, to be honest, while some solutions here look like they're at a black belt level. So my function might be primitive.

But I modified my idea to be able to (a) order by either innerHTML or by value, (b) be case sensitive or not, and (c) ignore the first option child (in case that first option is "Select one of the following" or some version of that phrase).

function orderSelectListItems(theSelectList, property = 'innerHTML', caseSensitive = false, ignoreFirstOption = false) {
    var startHere = ignoreFirstOption ? 1 : 0;  //if we skip the first option, start with the second (i.e. element 1)
    var comparisonOutcome;                      //for localeCompare
    var theDummyList = document.createElement('select');
    while(theSelectList.options.length > startHere) {
        theDummyList.appendChild(theSelectList.options[startHere]);
    }
    while(theDummyList.options.length > 0) {        //while there are still elements in the dummy list, keep comparing and moving back to the real list
        comparisonOutcome = null;                   //reset the comparison outcome for a new test
        for(var optionCounter = startHere; optionCounter < theSelectList.options.length; optionCounter++) {
            if((property == 'innerHTML') && (caseSensitive == true)) {
                comparisonOutcome = theDummyList.options[0].innerHTML.localeCompare(theSelectList.options[optionCounter].innerHTML);
            } else if((property == 'innerHTML') && (caseSensitive == false)) {
                comparisonOutcome = theDummyList.options[0].innerHTML.toLocaleUpperCase().localeCompare(theSelectList.options[optionCounter].innerHTML.toLocaleUpperCase());
            } else if((property == 'value') && (caseSensitive == true)) {
                comparisonOutcome = theDummyList.options[0].value.localeCompare(theSelectList.options[optionCounter].value);
            } else if((property == 'value') && (caseSensitive == false)) {
                comparisonOutcome = theDummyList.options[0].value.toLocaleUpperCase().localeCompare(theSelectList.options[optionCounter].value.toLocaleUpperCase());
            }
            if(comparisonOutcome < 0) {             //if the current comparison comes before the next element in the select list, insert the current one before it
                theSelectList.insertBefore(theDummyList.options[0], theSelectList.options[optionCounter]);
                break;
            }
        }
        if(comparisonOutcome >= 0) {                //if the current comparison hasn't found its place, that means it's the last one in order, so add it to the end
            theSelectList.appendChild(theDummyList.options[0]);
        }
    }                                               //we exit when all the options in theDummyList have been moved over
    theDummyList.remove();                          //delete the dummy list
}

Two things I could see that might make this more efficient, but I wasn't sure how to do it:

  1. Is there a way to refer to a dynamic property? For instance, if I passed an argument to the function where property = innerHTML or property = value, can I then refer to it later by saying theSelectList.property?

  2. Can I also pass a function by argument, so instead of having an if/else branch for both innerHTML.toLocaleUpperCase().localeCompare() and one without toLocaleUpperCase(), I can just use innerHTML.passedFunction().localeCompare() where passedFunction() is either toLocaleUpperCase()` or blank?

Being able to do these both would reduce my if/else block greatly.

Anyway, this is my working function so far. :?

Reasons:
  • Blacklisted phrase (1): Is there a way
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Steve G.

79343261

Date: 2025-01-09 15:57:29
Score: 2
Natty:
Report link

Ok so I managed to solve the issue. It turns out that I am an idiot.

The url I was using was "jdbc:mysql://192.168.56.1:3306/my_database"

The actual IP address shown on MySQL workbench for the server is 192.168.1.60

I have no idea how the program was even connecting to the database when it was given the wrong IP address, but when I corrected it, my program was connecting instantly and returning all queries straight away!

Thank you for trying to help, guys. For the future, if you see me posting about a problem I am having, just tell me I'm an idiot and you will most likely be correct!

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

79343260

Date: 2025-01-09 15:57:29
Score: 2
Natty:
Report link

You can look into the docs of shadcn. There is a component named combo box which serves your purpose. You can check out here. I will also implement it after sometime so I will share my code here after that.

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

79343258

Date: 2025-01-09 15:56:28
Score: 3
Natty:
Report link

Any chance you can post an example of your 'glatos_detections' object, ideally with some rows that convert correctly and some that don't?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Chris Holbrook

79343246

Date: 2025-01-09 15:54:27
Score: 5
Natty: 6.5
Report link

This is a ridiculous endless loop! I have deleted all EC2 instances and RDS databases. I get errors no matter what order I attempt to delete the network interfaces, subnets, vpc. Is there not a way to just force delete everything!!!??

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

79343241

Date: 2025-01-09 15:53:27
Score: 2.5
Natty:
Report link

I also have problem as I want to make like this functionality

http://localhost:3000/developer-skills/gg/how-it-work -> it should open [slug]/page

http://localhost:3000/developer-skills/gg/ -> it should open [...category]/page

http://localhost:3000/developer-skills -> it should open [...category]/page

http://localhost:3000/developer-skills/what-is-aws/ -> it should open [slug]/page

How can I make like this for my file is

src/app/[...category]/page.tsx

src/app/[...category]/[slug]/page.tsx

as I created blog website as what-is-aws and how-it-work is the slug of blog and another is category and sub-category

but problem is that

/developer-skills/what-is-aws → [...category]/[slug]/page.tsx /developer-skills/gg/how-it-work → [...category]/[slug]/page.tsx

when I open it it will open a [...category]/page.tsx

Reasons:
  • Blacklisted phrase (0.5): How can I
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: priyank sutariya

79343240

Date: 2025-01-09 15:53:27
Score: 3.5
Natty:
Report link

@BigBen and @Paul provided an answer in the comments. I was forgetting to concatenate the original parts of the string back.

=HYPERLINK("smb://server/companyName/"&E45&"/"&F45&", "&G45&" "&H45,"See more")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @BigBen
  • User mentioned (0): @Paul
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Chase Franse

79343229

Date: 2025-01-09 15:49:26
Score: 1.5
Natty:
Report link

Go to settings and find terminal.integrated.shellIntegration.enabled, on workspace tab uncheck the setting. This worked for me

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

79343216

Date: 2025-01-09 15:46:25
Score: 1
Natty:
Report link

Update from future (2025):

You can simply generate the mocha report as JSON, which will include all the failed and successful ones (even the file name and titles of failing/successful cases - and not just their count).

mocha --reporter=json --reporter-option output=filesData.json testCases.js

You can then read this JSON output and do the needful (eg. exporting to monitoring server)

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Abhinav Saini

79343208

Date: 2025-01-09 15:44:24
Score: 0.5
Natty:
Report link

I have found the issue: the problem was inside the pom.xml of the ear module

<dependencies>
        <dependency>
            <groupId>com.example</groupId>
            <artifactId>APPNAME-ejb</artifactId>
            <version>${project.version}</version>
            <type>ejb</type>
        </dependency>
        <dependency>
            <groupId>com.example</groupId>
            <artifactId>APPNAME-web</artifactId>
            <version>${project.version}</version>
            <type>war</type>
        </dependency>
    </dependencies>

these dependencies after build block in the xml file were not added; after the edit the error disappeared.

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

79343207

Date: 2025-01-09 15:44:24
Score: 3
Natty:
Report link

You could add a scroll width if you don't want it to overflow the parent element. Add this to your datatable: scrollHeight = "300px"

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

79343199

Date: 2025-01-09 15:41:23
Score: 2
Natty:
Report link

Currently PhysX4 supports mobile devices in O3DE. PhysX 5 supports Windows/PC and probably Mac. There is no GPU support yet. What is more physics engine is optional. There is no problem to build a project without any Physics engine. What is more it is relatively easy to integrate other physics engine. Take a look here: https://www.youtube.com/watch?v=qPvBjliKJb8

Reasons:
  • Blacklisted phrase (1): youtube.com
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: MichałPełka

79343197

Date: 2025-01-09 15:41:23
Score: 1
Natty:
Report link

On iOS 17, SwiftUI has a view modifier called .scrollClipDisabled()

Before this version, you can do

public extension UIScrollView {
    override var clipsToBounds: Bool { 
        get { false } 
        set {}
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lucas Lacerda