79420142

Date: 2025-02-07 08:11:09
Score: 3
Natty:
Report link

Since Symfony 6.3, the correct way is using #[MapRequestPayload].

Read more here

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

79420130

Date: 2025-02-07 08:08:08
Score: 1.5
Natty:
Report link

Using GraphQl is the way to go!

To properly answer the question. Using references is the key:

$em->getReference(Entity::class, 1);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: yhu420

79420121

Date: 2025-02-07 08:02:07
Score: 5
Natty:
Report link

I'm having the same experience, and I suspect it may be a regional issue. Have you tried using a VPN and then restart your CodeGPT/VSCode to see if that resolves the problem?

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • RegEx Blacklisted phrase (1.5): resolves the problem?
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: m.musni

79420116

Date: 2025-02-07 08:00:06
Score: 0.5
Natty:
Report link

I guess you will also have to look at Cache-Control header of the page and its values, this can help vercel to return the page directly from edge network only, you might have values public, immutable, and may be the reason for revalidation not working.

I'm not 100% sure but once try changing revalidation time to 2 minutes and Cache-Control headers to never cache anything and try. also can read more here - https://vercel.com/docs/edge-network/caching

Reasons:
  • No code block (0.5):
Posted by: Ranu Vijay

79420114

Date: 2025-02-07 07:59:06
Score: 1.5
Natty:
Report link

In Chrome version 92, this flag has worked for me: chrome.exe --disable-features=OverscrollHistoryNavigation

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Muhanad Znbrakji

79420105

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

The Problem was the serial to ethernet server(brainbox) the power supply was connected to had the serial ports set to telnet protocol type, while looking for a solution on the brainbox webside:

https://www.brainboxes.com/product/ethernet-to-serial/db9/es-701

I checked their debugging video for c# and there they set the serial ports protocol to Raw TCP, after this setting was changed I was able to get the response from the power supply.

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

79420102

Date: 2025-02-07 07:55:04
Score: 2
Natty:
Report link

If you are Using android client ID or the Web client ID. If using Android Client ID you will get API exception 10, If Using Web Client Id you will get API exception 8.

You just need to go to to your credentials screen and download the json file. Then just rename it to "google-services" and put that under android/app/.

It will remove the API Exception Issue.

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

79420101

Date: 2025-02-07 07:55:03
Score: 9 🚩
Natty: 4.5
Report link

sorry to bother you, has your issue been resolved? I am facing the same problem.

Reasons:
  • Blacklisted phrase (1): m facing the same problem
  • RegEx Blacklisted phrase (1.5): resolved?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user29543664

79420099

Date: 2025-02-07 07:53:02
Score: 1
Natty:
Report link

If you are running on Python version 3.13, downgrading it to Python 3.12 might solve the problem. According to my testing, both trying to replicate the issue and fix it. I found out that there is a Deprecated API in Python 3.13 as shown below,

scient/calc_expr.c(17866): error C2198: 'int _PyLong_AsByteArray(PyLongObject *,unsigned char *,size_t,int,int,int)': too few arguments for call

While for my case it was a problem with the "Scient" Package, it might not necessarily be the same. Regardless, in my case, Py_UNICODE is deprecated in Python 3.13, causing warnings.

In order to fix this, I reccomend downgrading to Python 3.12. And installing it in a virtual environment.

It is important to note that, I tested on Python 3.11, and due to unknown reason. I was not able to make it work.

Cheers,

Reasons:
  • Blacklisted phrase (1): Cheers
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Muhammad Caessar Cizer

79420097

Date: 2025-02-07 07:51:02
Score: 1.5
Natty:
Report link

Don't worry, just paste this on your terminal, and you're good to go!

SET PATH=C:\Program Files\Nodejs;%PATH%

Actual credits: @ammarsecurity

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

79420080

Date: 2025-02-07 07:45:59
Score: 6.5 🚩
Natty:
Report link
I'm trying to do a manual signing with dnssec-signzone with this 
command:
dnssec-signzone -t -N INCREMENT -o gentil.cat -f 
/etc/bind/gentil.cat.signed 
gentil.cat Kgentil.cat.+013+17694.key Kgentil.cat.+013+06817.key

This is my zone archive (it's named gentil.cat.hosts and it is in 
/etc/bind)
Screenshot of the archive:
https://i.sstatic.net/lQUPTvy9.png

And then the result of the command is this:
https://i.sstatic.net/f55JRMh6.png

Here is a screenshot with all de archives I have in /etc/bind
https://i.sstatic.net/ziubA75n.png
Note: "signat" is "signed" in catalan

Please can you help me?
Thanks
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): can you help me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Adrià Gentil Solà

79420077

Date: 2025-02-07 07:43:58
Score: 1
Natty:
Report link

For Standalone Components:

import { CommonModule } from '@angular/common';
@Component({
templateUrl: './mycomponent.component.html',
styleUrls: ['./mycomponent.component.scss'],
standalone: true,
imports: [CommonModule, ... ]
})
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Leon1246

79420064

Date: 2025-02-07 07:40:58
Score: 1.5
Natty:
Report link

I finally found out the solution myself. The problem was that I had to extend BasicDataSourceFactory from org.apache.tomcat.dbcp.dbcp2 insted of extending BasicDataSourceFactory from org.apache.commons.dbcp2. Apparently, the both classes hace a few differences and do not manage authentication the same way. Hope it helps.

Reasons:
  • Whitelisted phrase (-1): Hope it helps
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: avitoria

79420063

Date: 2025-02-07 07:39:56
Score: 9 🚩
Natty: 5.5
Report link

I am also facing this error since last month. did you happen to find a fix for this?

Reasons:
  • Blacklisted phrase (1): also facing this
  • RegEx Blacklisted phrase (1.5): fix for this?
  • RegEx Blacklisted phrase (1): I am also facing this error
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Temporary Juxtaposition

79420061

Date: 2025-02-07 07:37:55
Score: 3.5
Natty:
Report link

Can you provide some background, why you want to have a result like this?

Actually if you want Dummy.name + List the most easiest way is to select the Dummyentities:

// Repo is a SpringData repository interface
Set<Dummy> result = repo.findAll();
final Map<String, List<SubEntity>> collect = result.stream().collect(Collectors.toMap(Dummy::getName, Dummy::getSubs));

In case you want to use criteria queries for filtering by subentity-property, just add this to the findAll, might look like this:

 // Not really tested...            
 Set<Dummy> result = repo.findAll( (root, query, cb) -> 
    query.where(cb.equal(root.get(Dummy_.SUBS).get(Sub_.SOMEPROP), cb.literal("some-value"));

final Map<String, List<SubEntity>> collect = result.stream().collect(Collectors.toMap(Dummy::getName, Dummy::getSubs));

Alternatively use entity-manager + create query etc. to const

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you provide some
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: Peter Vigier

79420059

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

Just to vent my frustration - simple things like these make me hate all this Microsoft databinding. Why can't life just be easy by default, like checkbox being true of false, 1 or 0. If someone wants to complicate things with implementing tristates etc. that should be the extra option, not the default option.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Maris Mols

79420045

Date: 2025-02-07 07:29:54
Score: 2.5
Natty:
Report link

Obviously, It is not a good idea to store the images in the room db, as it size increase with it's quality and the cursor limit of room db is 2mb so it could cause runtime exceptions. Rather you should save the image in cache or files Directory and save it's path as a String in the Room Database

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

79420040

Date: 2025-02-07 07:25:53
Score: 1.5
Natty:
Report link

why can't you use @Environment(.presentationMode) var presentationMode this it's easy to navigate using Environment variables

not much complex and just need to add one variable rather than passing it to all along

this is the very simple example to use @Environment variable to navigate

struct HomeView: View {
    var body: some View {
        NavigationStack {
            NavigationLink("Go to Detail", destination: DetailView())
        }
    }
}

struct DetailView: View {
    @Environment(\.presentationMode) var presentationMode
    
    var body: some View {
        Button("Go Back") {
            presentationMode.wrappedValue.dismiss()
        }
    }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Environment
  • Starts with a question (0.5): why can't you use
  • Low reputation (1):
Posted by: HeWhoRemains

79420037

Date: 2025-02-07 07:24:52
Score: 4
Natty: 5
Report link

I am currently in the same boat with setting up egress gateway using mTLS at origination. In our case we want to terminate ssl connection at gateway and then establish new mTLS connection via destination rule and following the doc doesn’t seems to be working. Currently setting this in GKE ASM managed and using gateway api for gateway deployment. When test http://externalservixe.com errors out 503 server unavailable error. Openssl vtls1.3 failed to verify certificate. Any tips or steps is appreciated. Istio documentation is very confusing. Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): Any tips
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ash

79420033

Date: 2025-02-07 07:23:51
Score: 3
Natty:
Report link

I agree with Eric Aya and SOuser, also in addition you will need to close your browser and open another one and then re-enter Kaggle.

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

79420029

Date: 2025-02-07 07:22:51
Score: 2.5
Natty:
Report link

Just add #import <WebKit/WebKit.h> before #import "Runner-Swift.h" in your Objc file. :)

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

79420024

Date: 2025-02-07 07:19:51
Score: 2
Natty:
Report link

The reason Entity Framework Core (EF Core) scaffolds your model with null for string properties, even though the database columns are NOT NULL, is because in C#, strings are reference types, and EF Core doesn’t assume a default value unless explicitly told to. This means even if your database enforces NOT NULL, EF Core won't automatically assign an empty string (string.Empty); it just ensures the column can't be null when stored in the database.

This happens because

  1. C# Default Behavior: Since strings are reference types, they default to null unless initialized explicitly.

  2. EF Core Doesn't Assume Defaults: It only respects the database constraint but doesn’t enforce a default value in your C# model.

  3. Flexibility for Developers: Some prefer handling default values in their application logic instead of having EF enforce it.

How to Fix This?

If you don’t want null values in your C# objects, here are a few ways to handle it:

  1. Use Default Initialization in the Model

    Modify your model to initialize string properties with string.Empty:

    public class StudyInvitation { public int Id { get; set; } public string Name { get; set; } = string.Empty; public string Subject { get; set; } = string.Empty; public string Body { get; set; } = string.Empty; }

    This ensures the properties are never null in your C# objects.

  2. Use a Constructor

Another approach is to initialize them inside a constructor:

public class StudyInvitation
{
    public int Id { get; set; }
    public string Name { get; set; }
    public string Subject { get; set; }
    public string Body { get; set; }

    public StudyInvitation()
    {
        Name = string.Empty;
        Subject = string.Empty;
        Body = string.Empty;
    }
}
  1. Configure EF Core to Use Default Values

You can also configure EF Core using Fluent API inside your DbContext class:

protected override void OnModelCreating(ModelBuilder modelBuilder)
{
    modelBuilder.Entity<StudyInvitation>()
        .Property(e => e.Name)
        .IsRequired()
        .HasDefaultValue(string.Empty);

    modelBuilder.Entity<StudyInvitation>()
        .Property(e => e.Subject)
        .IsRequired()
        .HasDefaultValue(string.Empty);

    modelBuilder.Entity<StudyInvitation>()
        .Property(e => e.Body)
        .IsRequired()
        .HasDefaultValue(string.Empty);
}

This ensures that even if you forget to initialize these properties, the database will automatically use an empty string.

Which One Should You Use?

If you want to prevent null in your C# code, go with Option 1 (Default Initialization) or Option 2 (Constructor).

If you want to enforce it at the database level too, use Option 3 (Fluent API).
Reasons:
  • RegEx Blacklisted phrase (1.5): How to Fix This?
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
Posted by: BSG

79420016

Date: 2025-02-07 07:15:50
Score: 0.5
Natty:
Report link

The issue is because of ecj jar file. I had two jar files in my tomcat 9. ecj-4.2.2 and ecj-4.20. ecj-4.20 is tomcat 9 default jar file and i have copied ecj-4.2.2 from my tomcat 7 while upgradation. Once i removed ecj-4.2.2 from my tomcat 9 lib folder it worked for me.

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

79420015

Date: 2025-02-07 07:15:50
Score: 3
Natty:
Report link

TL;DR

use flutter run --no-enable-impeller instead of flutter run. This bug has been observed on an Oppo Reno 2F running Android 11 (API level 30).

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Hayashing only simp Kiana

79420014

Date: 2025-02-07 07:15:50
Score: 1
Natty:
Report link

Go to Cost Explorer

Open Filters (right side)

Select Usage Type

Type RDS:ChargedBackupUsage in the search bar

Select all matching entries (e.g., EUC1-RDS:ChargedBackupUsage (GB-Month))

Click Apply

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

79420005

Date: 2025-02-07 07:11:49
Score: 2.5
Natty:
Report link

Android Studio Ladybug Feature Drop | 2024.2.2

Changing kotlin version from 1.8.0 to 2.0.0 saves my life

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

79419991

Date: 2025-02-07 07:03:47
Score: 2
Natty:
Report link

In my case the problem was at user properties (Microsoft.Cpp.Win32.user props). Missed inheritance at "Executable Directories". Fix it with change "Executable Directories" on "$mydirs;$(ExecutablePath)".

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

79419990

Date: 2025-02-07 07:02:47
Score: 2
Natty:
Report link

Если я Вас правильно понял вам необходимо работать в третьем ноутбуке с переменными из первых двух имеющие одинаковые название, я при своей работе использовал модуль nbparameterise Выглядеть примерно так:

from nbparameterise import extract_parameters, parameter_values, run_notebook

Откройте блокнот sub.ipynb

with open('sub.ipynb') as f:

nb = read(f, as_version=4)

Извлеките параметры из sub.ipynb

orig_parameters = extract_parameters(nb)

Создайте новый набор параметров с измененными значениями

params = parameter_values(orig_parameters, x=x_main)

Запустите блокнот sub.ipynb с новыми параметрами

new_nb = run_notebook(nb, parameters=params)

Извлеките результат из sub.ipynb

y_sub = new_nb.cells[-1]['outputs'][0]['data']['text/plain']

Надеюсь Помог вам )

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: Руслан Танташев

79419989

Date: 2025-02-07 07:02:47
Score: 0.5
Natty:
Report link

Verify Running Processes: Double-check that no other applications or processes are using files in the directory C:\Users\victo\OneDrive\Desktop\expense_tracker\expense_tracker_backend\build\classes\java\main. Sometimes files can remain locked by applications running in the background.

Restart Your Computer: Occasionally, a restart can help clear out any lingering processes that might be holding onto files or directories.

Exclude Build Directories from Antivirus Scans: Sometimes antivirus software can lock files temporarily while scanning them. Try excluding your project's build directories from real-time scans.

Gradle Clean Task: Before running bootRun again, try running gradle clean to clean up any previously compiled files and directories.

Check IDE and Terminal: Ensure that no terminals or IDE instances are still holding onto files in the build directory. Close and reopen them if necessary.

File Permissions: Ensure that your user account has sufficient permissions to delete files in the build directory.

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

79419986

Date: 2025-02-07 07:00:47
Score: 3.5
Natty:
Report link

For Flutter Web, it's simple; you just need to paste the script in index.html and follow the instructions suggested on the Microsoft clarity site. Are you specifically looking for Android?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: rsDhirendra

79419977

Date: 2025-02-07 06:53:45
Score: 1
Natty:
Report link

Solutions for Android Studio Issues

I've had the same problem, and here are the solutions I've tried. If you've already tried some of these alternatives, you can disregard them.

Uninstall and reinstall Android Studio.

Check the installed environment variables (one important variable is the SDK).

This error usually occurs due to a malfunctioning emulator. Verify that your graphic drivers are properly installed.

Check your hard drive space, as Android Studio only works if there is sufficient space as requested in the documentation.

Install Microsoft Visual C++, as the Android emulator has some functionalities that are written in C++.

Remember, if you've already tried some of these alternatives, skip to the next step and leave a message here stating which solution worked for you.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Cassio Luciano da silva

79419976

Date: 2025-02-07 06:53:45
Score: 0.5
Natty:
Report link

You're missing Authorization header with valid token in GetModelAssets function:

url = baseUrl & "/modeldata/" & urn & "/scan",

input = "{""families"": [ ""n"", ""z"" ], ""includeHistory"": false, ""skipArrays"":true}",
response = Web.Contents(
  url,
  [
    Headers = [#"Authorization" = "Bearer " & accessToken, #"Content-Type"="application/json"],
    Content = Text.ToBinary(input)
  ]
),

Every call to the Tandem REST API needs to be authenticated - see here.

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

79419960

Date: 2025-02-07 04:59:29
Score: 2
Natty:
Report link

getDotProps={(dataPoint, index) => { return { r: "6", strokeWidth: "2", stroke: chartData.indexOf(index) == -1 ? rgba(0, 0, 0, 0) // make it transparent : 'red', fill: chartData.indexOf(index) == -1 ? rgba(0, 0, 0, 0) // make it transparent : 'red', }; }} can we pass or get anyother props from to control

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Venkatesh

79419954

Date: 2025-02-07 04:32:25
Score: 1.5
Natty:
Report link

You should try to enable developer mode.

Check status

DevToolsSecurity -status

Enable it

sudo DevToolsSecurity -enable

Check it again

DevToolsSecurity -status

Reference from this answer

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

79419940

Date: 2025-02-07 03:56:20
Score: 1
Natty:
Report link

for git bash, add/modify like that in c:/Users/YOUR_NAME/.bash_profile:

export PATH="$HOME/AppData/Roaming/pypoetry/venv/Scripts:$PATH"

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

79419917

Date: 2025-02-07 03:18:14
Score: 0.5
Natty:
Report link

I wrote a longer solution based on @musbach answer. I was only able to do this after reading his code. Thank you. P.S., I don't know why my code won't paste properly; I seem to always have this problem. :-(

Function datSetFileDateTime(stFullFilePath As String, datNew As Date) As Date ' ' Requires reference to shell32.dll, scrrun.dll ' Dim oShell As Shell Dim oFolder2 As Folder2 Dim stPath As String Dim fle As Scripting.File Dim stDrive As String Dim stPathWithoutDrive As String

Set oShell = New Shell
Set fle = vfso.GetFile(stFullFilePath)  ' vfso is a global object for scripting.FileSystemObject that I create a load time.
stDrive = fle.Drive

Set oFolder2 = oShell.nameSpace(stDrive)
If (Not oFolder2 Is Nothing) Then
    Dim oFolderItem As FolderItem
    
    Set oFolderItem = oFolder2.ParseName(Mid(stFullFilePath, Len("c:\") + 1)) ' Need to remove drive name for ParseName
        If (Not oFolderItem Is Nothing) Then
            Dim szReturn As String
            
            szReturn = oFolderItem.ModifyDate
            oFolderItem.ModifyDate = CStr(datNew)
        Else
            'FolderItem object returned nothing.
        End If
    Set oFolderItem = Nothing
Else
    'Folder object returned nothing.
End If

Set oFolder2 = Nothing
Set oShell = Nothing
datSetFileDateTime = vfso.GetFile(stFullFilePath).DateLastModified

End Function

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @musbach
  • Low reputation (0.5):
Posted by: SixSigmaGuy

79419912

Date: 2025-02-07 03:11:13
Score: 2
Natty:
Report link

Based on the answer from @KamilCuk (https://stackoverflow.com/a/64393146/5430476), finally, I got this version:

#!/bin/bash

count=0
maxcount=5

for ((i=0; i<10; ++i)); do
    { sleep 0.$i; echo "Job $i done"; } &
    count=$((count + 1))

    if ((count >= maxcount)); then
        wait
        count=0
    fi
done

# Wait for remaining background processes
wait

Maybe life would get easier if I installed the GNU parallel like the comments suggested, but what I want to do is to finish a simple backup job in a container. I don't want to install extra commands other than bash as much as possible.

So I wrapped this into a function, like:

#!/bin/bash

job() {
    local i=$1  # Job index
    shift
    local extra_args=("$@")
    echo "Job $i started with args: ${extra_args[*]}"
    sleep $((RANDOM % 5)) # some works
    echo "Job $i finished"
}

parallel_spawn_with_limits() {
    local max_limit_per_loop=$1; shift
    local job=$1; shift
    local count=0

    for ((i=0; i<10; ++i)); do
        { "$job" "$i" "$@" & }  # Run job in background with arguments
        count=$((count + 1))

        if ((count >= max_limit_per_loop)); then
            wait
            count=0
        fi
    done

    wait  # Ensure remaining jobs finish
}

Then call like this:

# example usage
parallel_spawn_with_limits 3 job "extra_arg1" "extra_arg2"
[1] 13199
[2] 13200
[3] 13201
Job 1 started with args: extra_arg1 extra_arg2
Job 2 started with args: extra_arg1 extra_arg2
Job 0 started with args: extra_arg1 extra_arg2
Job 0 finished
[1]   Done                    "$job" "$i" "$@"
Job 2 finished
Job 1 finished
[2]-  Done                    "$job" "$i" "$@"
[3]+  Done                    "$job" "$i" "$@"

# added blank lines for readability

[1] 13479
[2] 13480
Job 3 started with args: extra_arg1 extra_arg2
[3] 13481
Job 4 started with args: extra_arg1 extra_arg2
Job 5 started with args: extra_arg1 extra_arg2
Job 4 finished
Job 5 finished
Job 3 finished
[1]   Done                    "$job" "$i" "$@"
[2]-  Done                    "$job" "$i" "$@"
[3]+  Done                    "$job" "$i" "$@"

# added blank lines for readability

[1] 14004
[2] 14005
[3] 14006
Job 6 started with args: extra_arg1 extra_arg2
Job 7 started with args: extra_arg1 extra_arg2
Job 8 started with args: extra_arg1 extra_arg2
Job 7 finished
Job 6 finished
[1]   Done                    "$job" "$i" "$@"
[2]-  Done                    "$job" "$i" "$@"
Job 8 finished
[3]+  Done                    "$job" "$i" "$@"

# added blank lines for readability

[1] 14544
Job 9 started with args: extra_arg1 extra_arg2
Job 9 finished
[1]+  Done                    "$job" "$i" "$@"

Depending on your needs, you may need to add a trap function or abstract the 10 in the for loop into a new variable.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @KamilCuk
  • Low reputation (0.5):
Posted by: ktc

79419905

Date: 2025-02-07 03:07:11
Score: 5
Natty: 4
Report link

I have the same problem, and I think it is caused by the fact that I had Spyder installed separately before I installed Anaconda. The solution for me was to select the anaconda python path. In Spyder, click on the pyhton icon and make sure it points to anaconda and un-check the separate spyder installation root.

Spyder Python Icon

Then go to file and from the drop down click restart to restart the Sypedr application. This seems to solve the problem.

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Low reputation (1):
Posted by: Abdou

79419903

Date: 2025-02-07 03:06:11
Score: 1
Natty:
Report link

I asked myself the same question, "what do I need to do for my app to continue using the Apple Push Notification service (APNs)?" For me, the answer was "nothing". Here is the the key question that led me to this conclusion:

Do you run a server that sends push notifications by POSTing directly to APNs?

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

79419899

Date: 2025-02-07 03:04:10
Score: 4
Natty:
Report link

As @grekier mentioned in the comments, the solution is: https://vercel.com/guides/custom-404-page#what-if-i-need-to-name-my-404-file-something-different

Reasons:
  • Whitelisted phrase (-1): solution is
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @grekier
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: Broda Noel

79419892

Date: 2025-02-07 02:59:09
Score: 2.5
Natty:
Report link

I see what’s happening! The issue is that your script is trying to modify styles using element.style, but that only works for inline styles—and most of the time, user-select: none is applied through CSS stylesheets, not inline styles. That’s why your changes aren’t sticking.

Why isn’t it working?

  1. element.style.userSelect only affects inline styles. If user-select: none comes from an external CSS file, element.style.userSelect won’t see it at all.
  2. Even element.style.cssText.replace(...) won’t help, because it doesn’t affect styles defined in a stylesheet.
  3. DevTools (F12) shows "computed styles," not inline styles. You might see user-select: none in DevTools, but that doesn’t mean it’s an inline style.

How to Fix

Instead of modifying styles element-by-element, you should inject a new global CSS rule that overrides the existing one.

const style = document.createElement('style');
style.innerHTML = `* { user-select: contain !important; }`;
document.head.appendChild(style);
Reasons:
  • RegEx Blacklisted phrase (2): working?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Kai Brooks

79419880

Date: 2025-02-07 02:49:07
Score: 2
Natty:
Report link

+1 on this issue

DataConnect generates insertMany but it is straight-up not accessible from the Data Connector SDK...you can't pass data to it.

It somewhat defeats the point of having a relational db if you can't ever send a batch of the same records to it at once.

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

79419876

Date: 2025-02-07 02:47:06
Score: 2.5
Natty:
Report link

It seems to be adding the backticks as it would when presenting code when used through the OpenAI GUI. It may be faster to just programmatically remove the backticks yourself when parsing its responses than ask ChatGPT to change its ways.

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

79419875

Date: 2025-02-07 02:46:06
Score: 12.5
Natty: 7.5
Report link

tengo el mismo problema, pudiste solucionarlo?

Reasons:
  • Blacklisted phrase (2): tengo
  • Blacklisted phrase (2.5): solucion
  • RegEx Blacklisted phrase (2.5): mismo
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Good Shape

79419870

Date: 2025-02-07 02:45:05
Score: 2
Natty:
Report link

If you want exists to work like subquery, use Limit on the exists query, because the exists scans the entire table and then check if a match exists. If you have good indexes in case the table was large then both will work fine, if not both then both will work slowly.

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

79419867

Date: 2025-02-07 02:40:03
Score: 6 🚩
Natty: 5.5
Report link

Have you already find the solution?

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

79419862

Date: 2025-02-07 02:37:02
Score: 3
Natty:
Report link

Just change the "https://api.perplexity.ai" to "https://api.perplexity.ai/v1"

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

79419852

Date: 2025-02-07 02:30:01
Score: 1
Natty:
Report link

This is what worked for running this app with Maven. I had to provide the -Dliquibase.changeLogFile path to mvn command:

mvn liquibase:rollback -Dliquibase.changeLogFile=/c/Projects/github/amitthk/myapp-db-updates/src/main/resources/db/changelog/db.changelog-master.yaml -Dliquibase.rollbackCount=1 -Dliquibase.rollbackId=8
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Amit Thakur

79419847

Date: 2025-02-07 02:28:00
Score: 2.5
Natty:
Report link

Idk why but there is a probleme with symfony serve buffer when u try your script with a php server it will work correctly as expected

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

79419840

Date: 2025-02-07 02:21:59
Score: 4.5
Natty: 5
Report link

CloudFormation just launched Stack refactoring feature: https://aws.amazon.com/blogs/devops/introducing-aws-cloudformation-stack-refactoring/

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

79419838

Date: 2025-02-07 02:20:58
Score: 7 🚩
Natty: 5
Report link

https://www.youtube.com/@Tazeem2Tazeem bhai is chanel po video dekhna bohot peyare video melege aapka bada ahsan hoga agar aap is chanelnpo video dekhe ge❤️❤️❤️❤️😂❤️❤️

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (1): 😂
  • RegEx Blacklisted phrase (2): bhai
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Amjad2 Amjad2

79419837

Date: 2025-02-07 02:19:57
Score: 0.5
Natty:
Report link

My sonar download for macOS AArch64 didn't include anything in jre/bin. I need to make a symbolic link to my actual java location from JAVA_HOME in jre/bin.

cd jre/bin
ln -s /Users/user/Library/Java/JavaVirtualMachines/corretto-21.0.3/Contents/Home/bin/java java

Other users reported they needed to grant more permissions to their java executable. From here: https://community.sonarsource.com/t/could-not-find-java-executable-in-java-home/36504

chmod 755 .../sonar-scanner-#.#.#.####-linux/jre/bin/java
Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: user1689987

79419834

Date: 2025-02-07 02:19:57
Score: 2.5
Natty:
Report link

I got same error. I have already pasted Croppie links from the CDN but still receiving an error. The error said it came from jQuery but I also pasted it in Layout.cshtml with 3.6.0 and 3.5.1

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

79419831

Date: 2025-02-07 02:18:57
Score: 3.5
Natty:
Report link

Use the function =minute(C3-C2) in D2, and copy it down.

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

79419829

Date: 2025-02-07 02:17:57
Score: 3
Natty:
Report link

I had the same issue when the source image was corrupted

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Arty

79419826

Date: 2025-02-07 02:15:56
Score: 0.5
Natty:
Report link

Here is my solution, Elegant and Native-like Usage:

RadioButtonGroup(value: $selection) {
    Text("radio A")
        .radioTag("1")
    Text("radio B")
        .radioTag("2")
}

Snapshot: enter image description here

Here is the code:

//
//  RadioButtonGroup.swift
//
//  Created by Frank Lin on 2025/1/21.
//

import SwiftUI

struct Radio: View {
    @Binding var isSelected: Bool
    var len: CGFloat = 30
    private var onTapReceive: TapReceiveAction?
    
    var outColor: Color {
        isSelected == true ? Color.blue : Color.gray
    }
    var innerRadius: CGFloat {
        isSelected == true ? 9 : 0
    }

    var body: some View {
        Circle()
            .stroke(outColor, lineWidth: 1.5)
            .padding(4)
            .overlay() {
                if isSelected {
                    Circle()
                        .fill(Color.blue)
                        .padding(innerRadius)
                        .animation(.easeInOut(duration: 2), value: innerRadius)
                } else {
                    EmptyView()
                }
            }
            .frame(width: len, height: len)
            .onTapGesture {
                withAnimation {
                    isSelected.toggle()
                    onTapReceive?(isSelected)
                }
            }
    }
}

extension Radio {
    typealias TapReceiveAction =  (Bool) -> Void
    
    init(isSelected: Binding<Bool>, len: CGFloat = 30) {
        _isSelected = isSelected
        self.len = len
    }

    init(isSelected: Binding<Bool>, onTapReceive: @escaping TapReceiveAction) {
        _isSelected = isSelected
        self.onTapReceive = onTapReceive
    }
}

struct RadioButtonGroup<V: Hashable, Content: View>: View {
    private var value: RadioValue<V>
    private var items: () -> Content

    @ViewBuilder
    var body: some View {
        VStack {
            items()
        }.environmentObject(value)
    }
}

fileprivate
extension RadioButtonGroup where V: Hashable, Content: View {
    init(value: Binding<V?>, @ViewBuilder _ items: @escaping () -> Content) {
        self.value = RadioValue(selection: value)
        self.items = items
    }
}

fileprivate
class RadioValue<T: Hashable>: ObservableObject {
    @Binding var selection: T?

    init(selection: Binding<T?>) {
        _selection = selection
    }
}

fileprivate
struct RadioItemModifier<V: Hashable>: ViewModifier {
    @EnvironmentObject var value: RadioValue<V>
    private var tag: V
    init(tag: V) {
        self.tag = tag
    }
    func body(content: Content) -> some View {
        Button {
            value.selection = tag
        } label: {
            HStack {
                Text("\(tag):")
                content
            }
        }
    }
}

extension View {
    func radioTag<V: Hashable>(_ v: V) -> some View {
        self.modifier(RadioItemModifier(tag: v))
    }
}

struct RadioButtonGroup_Preview: View {
    @State var selection: String? = "1"
    var body: some View {
        RadioButtonGroup(value: $selection) {
            Text("radio A")
                .radioTag("1")
            Text("radio B")
                .radioTag("2")
        }
    }
}

#Preview {
    RadioButtonGroup_Preview()
}

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

79419819

Date: 2025-02-07 02:10:55
Score: 0.5
Natty:
Report link

As per Resolve a 500 error: Backend error:

A backendError occurs when an unexpected error arises while processing the request.

To fix this error, retry failed requests.

To Retry failed requests to resolve errors:

You can periodically retry a failed request over an increasing amount of time to handle errors related to rate limits, network volume, or response time. For example, you might retry a failed request after one second, then after two seconds, and then after four seconds. This method is called exponential backoff and it is used to improve bandwidth usage and maximize throughput of requests in concurrent environments.

Start retry periods at least one second after the error.

@Phil's comment is correct that the error is on the side of Google. If you already did what was previously mentioned and it's still not working, it's time to reach out to their support channels.

I recommend that you submit a bug report to let Google know about the unusual behavior that the code does not work on the original account when there's an attachment but works perfectly fine without an attachment and works perfectly fine with another email address with or without attachments since I haven't found a report when I searched the Google Issue Tracker.

You may Find support for the Gmail API directly on Developer product feedback and through Contact Google Workspace support.

Reasons:
  • Blacklisted phrase (2): still not working
  • Long answer (-1):
  • Has code block (-0.5):
Posted by: Saddles

79419815

Date: 2025-02-07 02:07:54
Score: 1
Natty:
Report link

Just use NULLIF:

SELECT
    id,
    SUBSTRING_INDEX(NULLIF(SUBSTRING_INDEX(field, 'QF=', -1), field), 'RF=', 1) AS gscore
FROM tablename
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: gzzz

79419812

Date: 2025-02-07 02:02:54
Score: 1.5
Natty:
Report link

For dynamic configuration management in Scala applications, Apache Zookeeper is a solid choice. It provides distributed coordination and configuration management. You might also consider using Consul or etcd, which offer similar functionalities and can help manage service configurations effectively. Each has its own strengths, so it may depend on your specific use case and infrastructure needs.

Make sure to evaluate the ease of integration with your current stack and the community support available for each tool.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Victoria Mitchell

79419811

Date: 2025-02-07 02:02:54
Score: 2.5
Natty:
Report link

The direct answer is not, the last topic Limitations in the doc says that.

Maybe the best for you is to apply some architectural pattern in your project and keep the logic in an entity method.

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

79419794

Date: 2025-02-07 01:46:51
Score: 2.5
Natty:
Report link

Failed to resolve: ly.img.android.pesdk:video-editor Show in Project Structure dialog Affected Modules: app

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

79419792

Date: 2025-02-07 01:45:50
Score: 1.5
Natty:
Report link

I defined both SQLAlchemy and Django ORMs for the same table. I use SQLAlchemy in my code and register the Django one for the admin. Very limited experience on a very simple table but seems to work so far.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: g.a

79419789

Date: 2025-02-07 01:43:50
Score: 2.5
Natty:
Report link

Having your online account disabled can feel frustrating and scary. Understanding why it happened and knowing what to do next is crucial. Whether it's on social media platforms or other online services, recovering your account is possible. marie can assist ,reach her [email protected] and whatsapp :+1 712 759 4675

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

79419777

Date: 2025-02-07 01:33:48
Score: 3.5
Natty:
Report link

Found different module supporting different language, svgtofont, does exactly what i want, without having to create tables or some really advanced python script

Reasons:
  • RegEx Blacklisted phrase (1): i want
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: The Heavy

79419773

Date: 2025-02-07 01:28:47
Score: 1
Natty:
Report link

Just use a @staticmethod per the advice in https://pylint.pycqa.org/en/latest/user_guide/messages/refactor/no-self-use.html

class Example:
    @staticmethod
    def on_enter(dummy_game, dummy_player):
        """Defines effects when entering area."""
        return None
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @staticmethod
  • High reputation (-1):
Posted by: Thomas Grainger

79419769

Date: 2025-02-07 01:24:45
Score: 8.5 🚩
Natty: 6.5
Report link

did you find answer to this question? I have been searching about it too

Reasons:
  • Blacklisted phrase (1): answer to this question?
  • RegEx Blacklisted phrase (3): did you find answer to this
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did you find answer to this
  • Low reputation (1):
Posted by: Sunny S

79419758

Date: 2025-02-07 01:10:42
Score: 2
Natty:
Report link

Collision Mask -- Select your Character, and find 'Collision' in the inspector. Choose the Collision Mask corresponding to the Walls (e.g. Layer 3). -- Also, select the Walls, and set the Collision Layer (e.g. Layer 3).

Collision Mask

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

79419754

Date: 2025-02-07 01:03:40
Score: 3.5
Natty:
Report link

Flex Consumption deployment is now supported in Visual Studio, VS Code, Azure Functions Core Tools, Azure Developer CLI (AZD), AZ CLI, GitHub Actions, Azure Pipelines task, and Java tooling like Maven.

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

79419751

Date: 2025-02-07 01:02:40
Score: 2.5
Natty:
Report link

If you want load testing + analysis, use LoadForge. Easy to write tests, affordable, scales well, and has a focus on analysis where other tools don't. Datadog not specifically designed for load (concurrent users).

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

79419748

Date: 2025-02-07 00:59:39
Score: 1.5
Natty:
Report link

The RESULT_LIMIT parameter applies to rows returned by the information_schema.query_history function. The WHERE clause then further filters the resultset. The reason no records were returned when time range was expanded is that more queries qualified, and no query in the top 10,000 results contained the string 'TABLE_NAME'. The WHERE clause is applied after the resultset is returned by the function.

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

79419741

Date: 2025-02-07 00:54:38
Score: 1
Natty:
Report link

Thank you everyone for the time and suggestions you took with this question.

It appears this problem seemed from the Sphinx version used during the first build.The documents were built using Sphinx 4.X back in 2020 or so.

I knew this, so I upgraded my Sphinx before trying to publish my updated documents into readthedocs. I believe here is where the problem lies, although I cannot pinpoint precisely where/why, but it may be the case that the the structure and elements of Sphinx 4.X are fully supported/ported to the latest Sphinx version.

Long Story short, I simply rebuilt my documentation from scratch by running a sphinx-quickstart in a new folder and then copying the documentation .rst files and configurations into the new folder.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): I cannot
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Lisdengard

79419730

Date: 2025-02-07 00:50:37
Score: 0.5
Natty:
Report link

For debugging, add console.log(nuqs) before your mediaSearchParamsParsers declaration. Inspect the output in your browser's console (or server logs if it's running on the server). Does it contain parseAsString? If so, what does it look like? Does it have the withDefault method?

import * as nuqs from 'nuqs';

console.log("nuqs object:", nuqs); // Inspect the nuqs object
export const mediaSearchParamsParsers = {
  search: nuqs.parseAsString.withDefault(''),
  view: nuqs.parseAsString.withDefault('grid'),
};

Use your browser's developer tools (or a server-side debugger if applicable) to set breakpoints and step through the code. Examine the value of parseAsString at runtime.

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

79419729

Date: 2025-02-07 00:50:36
Score: 8.5 🚩
Natty: 5.5
Report link

I would want to do the same. Were you able to find how to do this?

Reasons:
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Virales

79419723

Date: 2025-02-07 00:45:35
Score: 1.5
Natty:
Report link

I ran across this when many of the above answers were at one time working and then suddenly stopped and felt there was a need here to help understand why. This change was caused by a Microsoft security update. Using -ExecutionPolicy bypass "anything" within a script actually gives a PowerShell error indicating scripts are disabled and it cannot run. You have to run your powershell with -noexit or within the Windows PowerShell ISE utility to see it.

Now correct me if I'm wrong please, but as I understand it, the reason for this is an update from Microsoft that changed the default security settings for PowerShell to be defaulted as Restricted in the default LocalMachine, which takes precedence, and not allow scripts to elevate themselves with -ExecutionPolicy bypass "anything"... you now must now set the execution policy prior to running the script, such as in an elevated .bat file that can set the execution policy and then also call the powershell script, and that's IF it's NOT completely blocked by a group policy setting.

Read more here: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.5&viewFallbackFrom=powershell-7.1

and also read more here:

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.5&viewFallbackFrom=powershell-7.1

So while you CAN preemptively change the execution policy (although not recommended to set as unrestricted), the change in security defaults that Microsoft has set into play are for a good reason, so I would stick with the answer by @TechyMac and @DTM gave but mixed together. For security reasons the answer from @DTM is actually partially better practice as it only changes it while that one script runs with "-scope process", then goes back to normal defaults. I would upvote their answers, but I have a level 13 profile, and upvoting requires a level 15.

Also keep in mind that any external scripts from the internet or a usb drive will be considered Blocked. Use the Unblock-File cmdlet to unblock the scripts so that you can run them in PowerShell.

In my findings for best security practices, you don't want to change the default execution policy for a workstation to "unrestricted" or completely bypass it when you're just running a one-off script, change it only for your script that one time to RemoteSigned. Remote signed allows "local" scripts to run and also remote signed. "Local" includes mapped drives or UNC paths if a computer is part of the same domain, and scripts stored locally on the %systemdrive%.

Start with (PowerShell set-executionpolicy -executionpolicy remotesigned -scope process) from an elevated command prompt or batch script that way you're not lowering the security level of a pc and end up allowing users to run scripts that can potentially cause havoc:

Here's an example of a .bat file that can do this:

`:::::::::::::::::::::::::::::::::::::::::

:: Automatically check & get admin rights :::::::::::::::::::::::::::::::::::::::::

ECHO Running Admin shell :checkPrivileges NET FILE 1>NUL 2>NUL if '%errorlevel%' == '0' ( goto gotPrivileges ) else ( goto getPrivileges )

:getPrivileges if '%1'=='ELEV' (shift & goto gotPrivileges)
ECHO. ECHO ************************************** ECHO Invoking UAC for Privilege Escalation ECHO **************************************

setlocal DisableDelayedExpansion set "batchPath=%~0" setlocal EnableDelayedExpansion ECHO Set UAC = CreateObject^("Shell.Application"^) > %temp%\OEgetPrivileges.vbs" ECHO UAC.ShellExecute "!batchPath!", "ELEV", "", "runas", 1 >> "%temp%\OEgetPrivileges.vbs" "%temp%\OEgetPrivileges.vbs" exit /B

:gotPrivileges ::::::::::::::::::::::::::::

::Change Powershell execution policy prior to running a script

powershell -Command "Set-ExecutionPolicy RemoteSigned

::call said script now that policy will allow it to run

powershell -noexit "& ""C:\my_path\yada_yada\run_import_script.ps1"""

::end of batch file `

Reference: How to run a PowerShell script

Reasons:
  • Blacklisted phrase (0.5): upvote
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @TechyMac
  • User mentioned (0): @DTM
  • User mentioned (0): @DTM
  • Filler text (0.5): :::::::::::::::::::::::::::::::::::::::::
  • Filler text (0): **************************************
  • Filler text (0): **************************************
  • Filler text (0): ::::::::::::::::::::::::::::
  • Low reputation (1):
Posted by: Joshua C. Rucker

79419721

Date: 2025-02-07 00:41:34
Score: 2.5
Natty:
Report link

local PlayList = {

"72440232513341", "92893359226454", "75390946831261", "75849930695926", "124928367733395", "88094479399489", "89269071829332", "89992231447136",

return PlayList

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sebastião Weverton

79419718

Date: 2025-02-07 00:39:34
Score: 3
Natty:
Report link

I am polluting juste a little because Mon Chauffeur VTC offers hybrides vehicles with chauffeur. And for the routes i hope you did arrive safe since you ask for.

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

79419713

Date: 2025-02-07 00:37:33
Score: 2
Natty:
Report link

Found a terrible workaround which is to clone README.md into the docs directory and move the figures directory into the docs directory.

If anyone with a more foolproof solution, while maintaining the rendering on Github and Readthedocs, please do.

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

79419709

Date: 2025-02-07 00:33:32
Score: 5
Natty: 5
Report link

hey i see you've fixed the problem maybe mine is similar, i want to know what is the FQDN for wazuh manager

Reasons:
  • Blacklisted phrase (1): i want to know
  • RegEx Blacklisted phrase (1): i want
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: linuxuser

79419708

Date: 2025-02-07 00:33:31
Score: 0.5
Natty:
Report link

This was my code that passed the test! :)

def print_all_numbers(numbers):
    # Print numbers
    print('Numbers:',end=' ')
    for num in numbers:
        print(num,end=' ')
    print()

def print_odd_numbers(numbers):
    # Print all odd numbers
    print('Odd numbers:',end=' ')
    for num in numbers:
        if num % 2 != 0:
            print(num,end=' ')
    print()

def print_negative_numbers(numbers):
    # Print all negative numbers
    print('Negative numbers:',end=' ')
    for num in numbers:
        if num < 0:
            print(num,end=' ')
    print()
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Anjelica Moran

79419704

Date: 2025-02-07 00:32:31
Score: 1
Natty:
Report link

I think that artifact is caused by a long-standing bug that was fixed a while ago. It is not present in the current gnuplot stable (6.0.2) or development (6.1) versions. In gnuplot 6.0.2 output

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

79419699

Date: 2025-02-07 00:28:30
Score: 1
Natty:
Report link

Please ensure that you follow this for the plan creation:

resource flexFuncPlan 'Microsoft.Web/serverfarms@2024-04-01' = {
  name: planName
  location: location
  tags: tags
  kind: 'functionapp'
  sku: {
    tier: 'FlexConsumption'
    name: 'FC1'
  }
  properties: {
    reserved: true
  }
}

Here's a full example: https://github.com/Azure-Samples/azure-functions-flex-consumption-samples/blob/main/IaC/bicep/core/host/function.bicep

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

79419697

Date: 2025-02-07 00:25:30
Score: 0.5
Natty:
Report link

With the formula which you found you can move both minuend and subtrahend to the column "C" the second under the first. Thus, you'll get the required formula. Then you can copy this formula along column C to calculate other differences.

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

79419696

Date: 2025-02-07 00:23:30
Score: 1
Natty:
Report link

You have two installations of python installed one is python3.10 and the other is python3.11 while the wikipedia package is installed it's installed for the python3.10 while your pyenv.cfg says python3.11 is being used. Just use the python version you installed the package for rather than using a different version.

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

79419695

Date: 2025-02-07 00:22:29
Score: 1.5
Natty:
Report link

I am new to node.js and am confused as to how to get started.

Fair enough. Just to explain a little bit about stackoverflow: contributors will expect you to be specific with your questions. You will not get anyone to basically write your entire code.

I am briefly answering, as you wanted to know where to get started with your project.

For a project like yours, you need to learn Java Script DOM, the Document Object Model.

The key commands (properly called methods) to learn here, as a beginner, are:

document.getElementById()
document.querySelector()
document.querySelectorAll()
element.getAttribute
element.setAttribute
element.InnerHTML

Variations of these will allow you to manipulate any (node) element, field, text, values, styles aso. on your frontend / website, as well as read them and generate a list (nodeList) for saving to your backend.

For this I also recommend you to learn the basics on arrays, objects and loops in Java Script, or you will not be able to structure your data before and after transfer.

Lastly; you need to build a server on your backend. You could learn how to write this in vanilla (plain / native) Java Script, but most would (at least initially) instal a library like Express. There are some Express tutorials on YT, that could get you up to a running server in half an hour.

To round up the experience, you may want to be able to permanently store the data, which is transmitted to your backend. There are many databases around. A basic start for many is MySQL. It is a relational database, which means it works with structured tables, like your favorite spreadsheet.

Please feel free to post some followup questions, accompanied by some code that you tried, some errors you got etc.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • RegEx Blacklisted phrase (1.5): I am new
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: IoT-Practitioner

79419694

Date: 2025-02-07 00:21:29
Score: 0.5
Natty:
Report link

My app currently needs Xcode 14.3 for compiling. But MacOS suquoia does not support Xcode 14.3. So I tried the steps previously mentioned here regarding using command line in terminal

/Applications/Xcode\ 14.3.app /Contents/MacOS/Xcode

but it kept on saying, permission denied. Then I tried adding administrative privileges to my command using

sudo /Applications/Xcode\ 14.3.app /Contents/MacOS/Xcode

Now it kept on saying , command not found.

So I found another way to run XCode 14.3 in my mac. Once you unzip the XCode 14.3 and put it on applications folder it is not going to run it directly. You right click the XCode 14.3 > Show package Contents > Contents > MacOS > XCode and run it. It will direct the terminal and run the Xcode for you. From there you open file>Settings>Locations. And in there in command line tools you select XCode 14.3.

enter image description here

enter image description here

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

79419692

Date: 2025-02-07 00:18:28
Score: 2.5
Natty:
Report link

Yes, the move semantic is relatively faster than copying. You can always benchmark it if you are not sure. For example https://quick-bench.com/q/aJTHVE5uIXgY2cvG4LJYr28tXKY

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

79419668

Date: 2025-02-07 00:06:26
Score: 0.5
Natty:
Report link

Solved by removing:

excludes += "/*.jar"

from packaging {} options

with:

packaging {
    resources {
        excludes += ["/META-INF/{AL2.0,LGPL2.1}"]
        merges += ["META-INF/LICENSE.md", "META-INF/LICENSE-notice.md"]
    }
}

working fine to me

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

79419662

Date: 2025-02-07 00:02:25
Score: 4
Natty:
Report link

There are several other options in the create:

https://learn.microsoft.com/en-us/sql/t-sql/statements/alter-table-column-constraint-transact-sql?view=sql-server-ver16&redirectedfrom=MSDN

You probably want "NO ACTION".

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

79419660

Date: 2025-02-07 00:01:24
Score: 1.5
Natty:
Report link

Maybe you could use line.new() as it can work in local scope but cannot really deliver what you probably want. Otherwise, use "brute force" and conditional plotting if needed (to control how many plots are active). Probably that is the best but not the best looking solution.

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

79419659

Date: 2025-02-07 00:01:24
Score: 1.5
Natty:
Report link

I eventually got this to work after a while. I had to create two roles manually, a service role and an instance role both with the following policies. AWSElasticBeanstalkMulticontainerDocker AWSElasticBeanstalkWebTier AWSElasticBeanstalkWorkerTier

AWSElasticBeanstalkManagedUpdatesCustomerRolePolicy (for the service role only or you will get a warning after environment creation)

See screenshots below ...

Permissions

Setup

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

79419644

Date: 2025-02-06 23:53:23
Score: 0.5
Natty:
Report link

Following up on this question I asked, I found the solution here

Basically, DeepSeek is not a model supported by HuggingFace's transformer library, so the only option for downloading this model is through importing the model source code directly as of now.

Reasons:
  • Whitelisted phrase (-2): I found the solution
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: θ_enthusiast

79419643

Date: 2025-02-06 23:52:22
Score: 3
Natty:
Report link

one way is to add # type: ignore at the end of line

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

79419641

Date: 2025-02-06 23:51:22
Score: 3
Natty:
Report link

you can add # type: ignore at the end of line

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

79419638

Date: 2025-02-06 23:50:21
Score: 3
Natty:
Report link

just at the very end of line add # type: ignore

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

79419625

Date: 2025-02-06 23:44:20
Score: 1.5
Natty:
Report link

in the Dropdown.jsx you forgot to get the pic that you passed to it. you just imported the DropPic component that is totaly useles beacuse you are not giving it any data (the pic) so I just get the pic in the props and add <img src={pic} alt="lolo" /> to show it. (I forked to your stackblitz)

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

79419621

Date: 2025-02-06 23:42:19
Score: 1.5
Natty:
Report link

Your idea for a status is common enough that a variant of it is used in the ngrx/signals documentation. The docs gives an example of how all the status related state and patching functions can be wrapped into a custom signalStoreFeature called withRequestStatus() that can be dropped into any store.

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

79419617

Date: 2025-02-06 23:38:18
Score: 1.5
Natty:
Report link

^[a-zA-Z0-9!.*'()_-]+(\/)?$

That seems to do the trick.

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

79419616

Date: 2025-02-06 23:38:18
Score: 0.5
Natty:
Report link

Is there a way to add a calculated ( generated ) column in the database of a typo3 extension ext_tables.sql

No, this is not possible. TYPO3 has a own SQL parser to build a virtual schema, supporting "part syntax" which gets merged. The language of the ext_tables.sql files is a MySQL(/MariaDB) sub-set, and was mainly written at a time generated columns did not exists.

I have it on my personal list to check if this can be implemented, but did not looked into it yet. The parser part would be the easiest on this, but the next things would be if Doctrine DBAL supports that with the schema classes.

But the major point is, that we need a strategy how to deal with it for

And other points - cross database support is a thing here. At least it must be implemented in a way it can be used safely - special when used within TYPO3 itself then.

Another way would be to ensure that the calcualted value is persisted when the record changes, as DataHandler hook or within your controler when using QueryBuilder. For Extbase persisting there are PSR-14 which may be used.

That means, adding a simple "combined" value field, but do the calculation when changing one or both of the fields which needs to be calculated.

CREATE TABLE tx_solr_indexqueue_item (
    ...
    `changed` int(11) DEFAULT '0' NOT NULL,
    `indexed` int(11) DEFAULT '0' NOT NULL,
    `delta` int(11) DEFAULT '0' NOT NULL,
    INDEX `idx_delta` (`delta`), 

When updating the index item, calculate the detla - for example on update using QueryBuilder:

$queryBuilder
  ->update('tx_solr_indexqueue_item')
  ->where(
    $queryBuilder->expr()->eq(
      'uid',
      $queryBuiler->createNamedPlaceholder($uid, Connection::PARAM_INT),
    ),
  )
  ->set(
     'changed',
     sprintf(
       '%s + 1',
       $queryBuilder->quoteIdentifier('changed')
     ),
     false,
  )
  ->set(
     'delta',
     sprintf(
       '%s - %s',
       $queryBuilder->quoteIdentifier('indexed'),
       $queryBuilder->quoteIdentifier('changed'),
     ),
     false,
  )
  ->executeStatement();

If you persists exact values / from a full record simply do the calcualation on the PHP side

$indexed = $row['indexed'];
$changed = $row['changed'] + 1;
$delta = $indexed - $changed;
$queryBuilder
  ->update('tx_solr_indexqueue_item')
  ->where(
    $queryBuilder->expr()->eq(
      'uid',
      $queryBuiler->createNamedPlaceholder($uid, Connection::PARAM_INT),
    ),
  )
  ->set('changed', $changed)
  ->set('delta', $delta)
  ->executeStatement();

Direct value setting (last example) is adoptable to be used within a DataHandler hook (if total and/or changed is changed and delta not, calculate it and add it). If extbase models are used (which does not make much sense in my eyes for performance critical tables like queue items) set the calculated detla directly to the model. Or do a recalculation of delta within the setIndexed() and setChanged() method (extbase itself does not set values based on setters anyway so it can set the delta read from database without doing the recalculation).

On item creation (INSERT) you can calculate the values directly and persist it (delta) as the values are static in this case - at least if you proide them and not using db defaults. Counts for all techniques.

Reasons:
  • Blacklisted phrase (1): Is there a way
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is there a
Posted by: Stefan Bürk

79419612

Date: 2025-02-06 23:34:18
Score: 1
Natty:
Report link

I'm actually trying to figure this out as well at the moment, but my research so far shows the plugin doesn't support that.

It seems like our only 2 options is to either.

  1. Use a Maven Post-Processing Step
  2. Extend the generator to include the templates we need.

I'm leaning towards #2 which seems more complicated but it's a lot more flexible and it allows your files to be generated.

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

79419610

Date: 2025-02-06 23:32:17
Score: 2
Natty:
Report link

In case this is appropriate... Drag and drop hyperlinking of text or image, perhaps click on a target URL first, hold down and drag to the wanted element (text or image) and drop or release the mouse (or track device) on element of webpage. A space must be provided for a list of URFs. Text lists could be pasted in on page with or without images in advance of drag and drop. (New user in 2025)

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