79532492

Date: 2025-03-25 01:22:41
Score: 2
Natty:
Report link

If order_total is a variable, and it's already being calculated correctly, it should work as long as it is available in the scope of your script (for more information on scope see https://www.geeksforgeeks.org/scope-of-a-variable/#). If scope isn't the issue and it still isn't working, it may be a syntactical issue, in which case I'd try removing the curly brackets around order_total.

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

79532488

Date: 2025-03-25 01:19:40
Score: 1.5
Natty:
Report link

@Владимир Казак's answer is beautifully simplistic. All credit goes to him/her, I just further simplified & tweaked his/her design.

However, consider that the id's & classes in the are not necessary if you compare the .parentNode of dropzone's target <li>'s to the .parentNode of the original <li>. Since the .innerText ... or likewise the .innerHTML ... isn't changing either, then a check here can ensure that the code is triggered only when dropping in a new position (same as referenced answer's id comparison).

HTML

<ul>
  <li>List item 1</li>
  <li>List item 2</li>
  <li>List item 3</li>
  <li>List item 4</li>
  <li>List item 5</li>
</ul>

Javascript

let orig_list;  // original parent <ul> or <ol>
let orig_li;    // original/selected <li>
let orig_pos;   // starting position of the original/selected <li>
let new_pos;    // destination position of the original/selected <li>

document.addEventListener("dragstart", ({target}) => {
  orig_li = target;                                 // get the original <li>
  orig_list = target.parentNode.children;           // get the parent <ul>, or even <ol>
  for(let i = 0; i < orig_list.length; i += 1) {    // loop thru all <li>'s in the list
    if(orig_list[i] === orig_li){
      orig_pos = i;                                 // set the original <li>'s position
    }
  }
});
            
document.addEventListener("dragover", (event) => {
  // disable the "dragover" event ... idk why.
  // well, because we don't want the event's default bahavior.
  // idk what the event's default behavior is ... but this works.
  // ...
  // so if it works, then it wasn't stupid ... & ... if it isn't broke, then don't fix it.
  event.preventDefault();
});
            
document.addEventListener("drop", ({target}) => {
  //check to make sure that we are dropping into the same list & not in the same position
  if(target.parentNode == orig_li.parentNode && target.innerText !== orig_li.innerText) {
    orig_li.remove( orig_li );                      // remove the original <li>
    for(let i = 0; i < orig_list.length; i += 1) {  // loop thru the list again
      if(orig_list[i] === target){
        new_pos = i;                                // get the <li>'s new position
      }
    }
    // determine whether or not to drop the original before or after it's new position
    if(orig_pos > new_pos) {
      target.before( orig_li );
    } else {
      target.after( orig_li );
    }
  }
});

I hope this is legible. I hope this is usable. Now go & make some AWESOME sh... family friendly stuff !!!

(I don't have enuf rep/points to comment at the bottom of the referenced answer, so I'm commenting here. Most of this is just duplicate, but I'm trying to provide a complete answer to show a comparison. I wanted to "Edit" the referenced answer, but I could not figure out how to force a strikethrough so that differences in code would show. I included remarks to help others figure out what's going on in my code ... & also to avoid my answer being "considered low quality".)

Reasons:
  • Blacklisted phrase (1): to comment
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Владимир
  • Low reputation (1):
Posted by: DarkMain94

79532486

Date: 2025-03-25 01:17:40
Score: 0.5
Natty:
Report link

Embed RealmSwift in the App

  1. Open the App’s Xcode Project
    Open the Xcode project for your ReferenceApp.

  2. Navigate to Frameworks Section
    In the project navigator, select the ReferenceApp target, then go to the "General" tab and scroll to "Frameworks, Libraries, and Embedded Content."

  3. Add RealmSwift.framework
    Click the "+" button, select RealmSwift.framework from the list it should appear since you’re using the RealmSwift pod, and add it.

  4. Set to Embed & Sign
    Ensure RealmSwift.framework is set to "Embed & Sign" in the dropdown next to it not "Do Not Embed".

  5. Clean and Rebuild
    Go to "Product" > "Clean Build Folder," then build and run the app again.

    The error happens because RealmSwift isn’t fully embedded, so symbols like Results count are missing at runtime. The solution embeds RealmSwift in the app, making it provide the symbols your framework needs.

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

79532485

Date: 2025-03-25 01:16:39
Score: 0.5
Natty:
Report link

One update to the accepted answer from @vvvvv - the Python formatter caches the record object, so if one handler modifies it, the next handler will process the modified record rather than the original one. That caused some side effects depending on the order of the handlers. So, I passed in copies of the record object rather than the actual record to the formatter and that fixed the issue.

Here is what I've implemented. I also added a custom formatter that removed the stack trace messages but left one line showing any exception types that were raised.

class NoStackTraceFormatter(logging.Formatter):
    """Custom formatter to remove stack trace from log messages."""
    def format(self, record):
        """Removes all exception stack trace information from log messages."""
        temp_record = logging.LogRecord(record.name,
                                        record.levelno,
                                        record.pathname,
                                        record.lineno,
                                        record.msg,
                                        record.args,
                                        record.exc_info,
                                        record.funcName)
        temp_record.exc_info = None
        temp_record.exc_text = None
        temp_record.stack_info = None
        return logging.Formatter.format(self, temp_record)


class SimpleStackTraceFormatter(logging.Formatter):
    def format(self, record):
        """Remove the full stack trace from log messages but leave the lines
           in the stack trace that explicitly list the exception type raised.
        """
        temp_record = logging.LogRecord(record.name,
                                        record.levelno,
                                        record.pathname,
                                        record.lineno,
                                        record.msg,
                                        record.args,
                                        record.exc_info,
                                        record.funcName)
        if record.exc_info:
            # get rid of the stack trace except for lines that explicitly list the exception type raised
            if not record.exc_text:
                temp_record.exc_text = self.formatException(record.exc_info)
            if temp_record.exc_text:
                temp_record.exc_text = '\n'.join(
                    [f"    {line}" for line in temp_record.exc_text.splitlines()
                    if '.exceptions.' in line])
            temp_record.stack_info = None
        return logging.Formatter.format(self, temp_record)

An example of the output from the SimpleStackTraceFormatter is as follows:

2025-03-24 20:07:31,477 INFO    driver.py:439   Attempting to connect to the server
2025-03-24 20:07:34,513 ERROR   rest.py:921 Request timed out, will retry
    urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x000002989D18DC90>, 'Connection to x.x.x.x timed out. (connect timeout=3)')
    urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='x.x.x.x', port=xxxx): Max retries exceeded with url: /path/ (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000002989D18DC90>, 'Connection to x.x.x.x timed out. (connect timeout=3)'))
    requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='x.x.x.x', port=xxxx): Max retries exceeded with url: /path/ (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000002989D18DC90>, 'Connection to x.x.x.x timed out. (connect timeout=3)'))
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @vvvvv
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: DaveB

79532482

Date: 2025-03-25 01:14:39
Score: 4
Natty:
Report link

Make sure your xcode version in 16.0 selected.

enter image description here

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

79532481

Date: 2025-03-25 01:13:38
Score: 0.5
Natty:
Report link

How about including the state codes within the option values for each institution option?

Say you encode your "institution" field along these lines:

I001AZ, Institution 1, Phoenix, AZ
I002MS, Institution 2, Minneapolis, MS
I003MI, Institution 3, Detroit, MI
...

You can then just grab the state from the right two characters of the field value:

@CALCTEXT(right[institution,2))

Just be aware that non-integer values can't be labelled if you want to export to Stata. Otherwise they don't tend to cause any drama.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How
  • Low reputation (0.5):
Posted by: Luke Stevens

79532480

Date: 2025-03-25 01:11:38
Score: 2.5
Natty:
Report link

I encountered the same problem as you, and later found that in the older documents, there was no indication of the need for "package registration", https://reactnative.dev/docs/next/turbo-native-modules-introduction, you can refer to this for details

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

79532475

Date: 2025-03-25 01:08:38
Score: 2.5
Natty:
Report link

In Vue, i just put the gesture function call in the finally braces of my api call and it worked. The Api call was in the OnMounted lifecycle hook

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kamal

79532469

Date: 2025-03-25 01:03:37
Score: 4
Natty:
Report link

https://thewebtoolspro.com provide unit conversion, currency conversion, color codes like color to hex

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

79532467

Date: 2025-03-25 01:01:35
Score: 10 🚩
Natty: 6.5
Report link

I am also facing the same issue. And my AZDO service connection is using federated credentials from Azure App registration.

Could you please advise where to find the configuration for token max time, and how could I change it ?

Reasons:
  • Blacklisted phrase (1): I am also facing the same issue
  • RegEx Blacklisted phrase (2.5): Could you please advise
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am also facing the same issue
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Riley910

79532459

Date: 2025-03-25 00:54:34
Score: 1.5
Natty:
Report link

One way to do this is to set the enabled prop for the picker item to false

 <Picker.Item key="none" label="Placeholder Text" value="none"  enabled={false}/> 
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Arthur Menezes

79532455

Date: 2025-03-25 00:51:32
Score: 6.5 🚩
Natty: 6
Report link

Any other way for windows please?

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

79532437

Date: 2025-03-25 00:32:28
Score: 1.5
Natty:
Report link

For powers of 10 there's a very silly method, but it's probably the easiest to remember?

x=1234;
nearest10=(("" + x).length - 1) * 10;

although this returns 0 for, eg: 3.5, I guess you could go:

nearest10_1 =(("" + x).length - 1) * 10
nearest10=nearest10_1 === 0 ? 1 : nearest10_1;

You asked for the "most efficient". I don't know what axis you were measuring that on. CPU time? Heat? Programmer time?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
Posted by: nic ferrier

79532420

Date: 2025-03-25 00:16:25
Score: 1
Natty:
Report link

Use the JavaScript .toLowerCase() function to convert everything in the message to lower-case and .includes() to check for the matching string in the message when comparing the message to your desired text (read more toLowerCase and includes):

// the time of the last help message
let lastHelpTime = 0

client.on('message', (channel, tags, message, self) => {
    const send = message.toLowerCase().includes("!help")

    if (!send ) return;

    // get the current time
    const timeNow = new Date().getTime()
    // check if at least 1 minute has elapsed since the last help message
    if (timeNow - lastHelpTime > 60 * 1000) {
        // update the last help message time
        lastHelpTime = timeNow
        // post the help message in chat
        client.say(channel, `This is the help message`)
    }

    console.log(`${tags['display-name']}: ${message}`);
});

Example

console.log("!HELP".toLowerCase().includes("!help"))
console.log("!HeLp".toLowerCase().includes("!help"))
console.log("!help".toLowerCase().includes("!help"))
console.log("!hElp mE Bot".toLowerCase().includes("!help"))

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): hElp mE
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jacques Rossouw

79532415

Date: 2025-03-25 00:14:24
Score: 6 🚩
Natty:
Report link

Есть ли какие-либо оговорки относительно конечной точки временной шкалы, о которых мне следует знать?

Будет ли проверка /questions/{id}?filter=!BhNhTkF7J7vS1yZYE0 и сравнение last_activity_date более надежными?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: Алёна Петрова

79532414

Date: 2025-03-25 00:13:24
Score: 2
Natty:
Report link

The bot-studio library is no longer present on PyPi's servers. It was discontinued in 2022.

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

79532412

Date: 2025-03-25 00:05:22
Score: 1
Natty:
Report link

The issue might happen if the URLs are not complete. Check that goCardlessAPIUrl and lexOfficeAPIUrl are full URLs and not just the endpoints in the input.

To troubleshoot easier, I recommend splitting up the API requests you're making in the code and running them one at a time (aka removing all requests you have in the code step apart from the first GET request and testing the step). If it runs correctly, try adding the next and going one at a time to find the problematic one.

You could also look into using Webhook step to make those API requests instead of the code step.

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

79532410

Date: 2025-03-25 00:03:22
Score: 0.5
Natty:
Report link

Awk would be useful for this:

awk -F, 'NR>1 { print $1 ",(" $5 "," $6 ")"}' your_file.txt

Not sure if you want these to go to another file or location, but this should get you going.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Douglas Korinke

79532409

Date: 2025-03-25 00:03:22
Score: 2.5
Natty:
Report link

So, it turns out I had an unrelated bug and was accessing the wrong struct instance - this was why the "error" case was all 0-values 0_o

It looks like this struct definition actually is correct - hopefully this question helps anyone in the future who needs to handle c unions via C# code

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

79532405

Date: 2025-03-25 00:01:21
Score: 2
Natty:
Report link

If execution context's strictly needed, then Interceptors & not Filters.

Despite docs say Filters are better for exception handling, they lack execution context which's needed for several use-cases (ex: handling exceptions based on custom decorators)

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

79532401

Date: 2025-03-24 23:56:21
Score: 0.5
Natty:
Report link

For me what worked is to add an attribute [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseDeclaredVarsMoreThanAssignments', 'foo')] (where foo is the variable to supress) to the script scope (i.e. at the very top of the file, before anything else) and add an empty param() to the top of the file for the attribute to bind to.

You can't assign attributes to variables, and PSScriptAnalyzer doesn't understand the concept of Pester's named script blocks, so it has to be done up top.

Before:

An image showing a variable that VSCode's PSScriptAnalyzer run thinks isn't being used

After:

An image to show how to get PSScriptAnalyzer in VSCode to supress the unused variable. Notice how $foo is supressed but $bar isn't as there's no Attribute for that.

Notice how $foo is now being suppressed as intended, but $bar doesn't get suppressed as there is no attribute for it.

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

79532394

Date: 2025-03-24 23:45:18
Score: 2.5
Natty:
Report link

You need to iterate through the list adding the each asset to your array.

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

79532391

Date: 2025-03-24 23:44:18
Score: 2
Natty:
Report link

Using @CALCDATE() with datediff() and min() or max() is the way to go, as per @Louis Martin's answer.

Here's an example I did a while back, if you want to have a play: https://redcap.mcri.edu.au/surveys/?s=MXCETWDFD4. It's easy to extend to however many dates you need to handle.

E.g., for the min of 5 dates d1 to d5:

@CALCDATE(
    [d1],
    min(
        0,
        datediff([d1],[d2],"d",true),
        datediff([d1],[d3],"d",true),
        datediff([d1],[d4],"d",true),
        datediff([d1],[d5],"d",true)
    )
    ,"d"
)

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • User mentioned (1): @Louis
  • Low reputation (0.5):
Posted by: Luke Stevens

79532390

Date: 2025-03-24 23:43:18
Score: 1.5
Natty:
Report link

Open DevTools and open the Autofill panel. There's a setting "Show test addresses in autofill menu" which you can disable.

I see that Autofill panel is currently behind an expreiment flag so if you can't find the panel, check DevTool's Settings -> Experiments and enable "Autofill panel".

enter image description here

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

79532389

Date: 2025-03-24 23:42:18
Score: 3.5
Natty:
Report link

I've downgraded to 3.12.9 and it seems to be working as expected again.

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

79532388

Date: 2025-03-24 23:42:18
Score: 2
Natty:
Report link

Finally someone has explained it properly – thank you Mr_and Mrs_D!
Everyone keeps reading the accepted post and assumes it's just about directory structure or Python paths, completely missing the actual reason: how Python treats modules and packages depending on how they're executed.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: The Rabbit

79532384

Date: 2025-03-24 23:34:16
Score: 0.5
Natty:
Report link

Reason

You're trying to use a package of one Python version with another, and that causes a conflict.

Solution

Install virtualenv on the version you want to use it with and call the interpreter of that version directly.

Windows

py -3.10 -m virtualenv

Linux

python3.10 -m virtualenv
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Lubomyr Pryt

79532379

Date: 2025-03-24 23:30:15
Score: 4
Natty:
Report link

Yes you right
Stack Overflow (новые ответы/комментарии) и мне нужен наиболее эффективный способ обнаружения любых изменений с момента последней проверки. Я использую конечную точку /questions/{id}/timeline с этими параметрами

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: Алёна Петрова

79532377

Date: 2025-03-24 23:30:15
Score: 3.5
Natty:
Report link

you have to download "test runner" in the extensions in vscode. than there should be a flask icon that appears

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

79532357

Date: 2025-03-24 23:13:12
Score: 3.5
Natty:
Report link

I had exactly the same problem and tried the two solutions given here. Neither worked. What did work was unticking the box in this picture. enter image description here. I am assuming you are using the default debugger for java by microsoft

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user29980463

79532356

Date: 2025-03-24 23:12:11
Score: 2
Natty:
Report link

only use

docker compose up

even though your docker compose file is docker-compose.yml

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

79532355

Date: 2025-03-24 23:12:11
Score: 1
Natty:
Report link
COPY Directory.Build.props ./ this worked for me 
Reasons:
  • Whitelisted phrase (-1): this worked for me
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: cold

79532354

Date: 2025-03-24 23:12:11
Score: 0.5
Natty:
Report link

Another way to pipe the string to openssl without a trailing NL is

printf "password" | openssl dgst -sha512
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Scott Centoni

79532346

Date: 2025-03-24 23:08:10
Score: 1.5
Natty:
Report link

// منع الكوكيز document.cookie = "cookie_name=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";enter code here

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

79532345

Date: 2025-03-24 23:05:10
Score: 1
Natty:
Report link

This is now fixed in GitLab 17.0+ with GitLab Runner 16.9 and above.

https://about.gitlab.com/releases/2024/05/16/gitlab-17-0-released/#always-run-afterscript-commands-for-canceled-jobs

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

79532339

Date: 2025-03-24 23:01:09
Score: 2.5
Natty:
Report link

What happened is that the collectList returned a Mono with an empty list, but not a Mono.empty, so we have:

...
.collectList()
.filter(list -> !list.isEmpty())

or

...
.collectList()
.flatMap(list -> !list.isEmpty() ? Mono.just(list) : Mono.empty())

With this we successfully force a Mono.empty() that will trigger your switchIfEmpty().

I show you an example testing with StepVerifier.

<dependency>
    <groupId>io.projectreactor</groupId>
    <artifactId>reactor-test</artifactId>
    <scope>test</scope>
    <version>3.7.0</version>
</dependency>

You can decomment the flatMap to see how it works as well.

class ReactiveTest {

    @Test
    @DisplayName("expecting lowerCase names when filter(__ -> names.size() > 5)")
    void expectingLowerCase() {
        List<String> names = Arrays.asList("google", "abc", "fb", "stackoverflow");

        StepVerifier.create(Flux.fromIterable(names)
                        .filter(name -> name.length() > 5)
                        .collectList()
                        .flatMap(commonAppliedFilters ->
                                Mono.just(commonAppliedFilters)
                                        .filter(__ -> names.size() > 5)
                                        .flatMapIterable(list -> list)
                                        .map(String::toUpperCase)
                                        .collectList()
                                        //.flatMap(list -> !list.isEmpty() ? Mono.just(list) : Mono.empty())
                                        .filter(list -> !list.isEmpty())
                                        // If the list is not empty, a Mono.empty() is returned which will force switchIfEmpty
                                        .switchIfEmpty(Mono.defer(() -> Mono.just(commonAppliedFilters)))
                        ))
                .expectNext(List.of("google", "stackoverflow"))
                .verifyComplete();
    }

    @Test
    @DisplayName("expecting upperCase names when filter(__ -> names.size() > 3) ")
    void expectingUpperCase() {
        List<String> names = Arrays.asList("google", "abc", "fb", "stackoverflow");

        StepVerifier.create(Flux.fromIterable(names)
                        .filter(name -> name.length() > 5)
                        .collectList()
                        .flatMap(commonAppliedFilters ->
                                Mono.just(commonAppliedFilters)
                                        .filter(__ -> names.size() > 3)
                                        .flatMapIterable(list -> list)
                                        .map(String::toUpperCase)
                                        .collectList()
//                                        .flatMap(list -> !list.isEmpty() ? Mono.just(list) : Mono.empty())
                                        .filter(list -> !list.isEmpty())
                                        .switchIfEmpty(Mono.defer(() -> Mono.just(commonAppliedFilters)))
                        ))
                .expectNext(List.of("GOOGLE", "STACKOVERFLOW"))
                .verifyComplete();
    }

}

enter image description here

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Blacklisted phrase (1): STACKOVERFLOW
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: 0x52

79532338

Date: 2025-03-24 23:00:09
Score: 1
Natty:
Report link

Arrays are stored in contiguous memory, and this applies to Python lists as well (which are implemented as dynamic arrays under the hood).

When analyzing time complexity we generally focus on the worst-case scenario, which in this case is inserting or deleting the first element of an array, i.e. index 0.

Imagine you have a sequence of boxes filled with values, and you add one to the first index of the array, what you will need to do is shift one space to the right of all the elements that are already there, assuming that there are memory slots available. Now if you remove the first element, then you have to shift all the values to the left one unit, which again is linear time.

You're absolutely right when you analyze the last element of the array, adding or removing an element at the end is a constant time operation, as it only affects 1 element. However, when analyzing time complexity, it's important to consider the worst-case cost, which is usually what Big O notation refers to.

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

79532323

Date: 2025-03-24 22:49:05
Score: 1
Natty:
Report link

In my case, this started happening after I installed coreutils. Uninstalling it made the issue disappear:

brew uninstall coreutils
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nicolapps

79532322

Date: 2025-03-24 22:48:04
Score: 0.5
Natty:
Report link

The sync flag is only considered for a single local cache. As per Javadoc, the sync flag is a hint for the cache provider that may or may not synchronize.
Please check this thread:
https://github.com/spring-projects/spring-data-redis/issues/1670?utm_source=chatgpt.com

Documentation:
This is an optional feature, and your favorite cache library may not support it. All CacheManager implementations provided by the core framework support it. See the documentation of your cache provider for more details.
https://docs.spring.io/spring-framework/reference/integration/cache/annotations.html

Reasons:
  • Blacklisted phrase (1): Please check this
  • Has code block (-0.5):
Posted by: sanurah

79532312

Date: 2025-03-24 22:42:03
Score: 2
Natty:
Report link

If the file has Microsoft Sensitivity Labels, Apache POI cannot decrypt it, as this requires Microsoft's Information Protection SDK.

You can download the java wrapper and try:
https://www.microsoft.com/en-us/download/details.aspx?id=106361

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Low length (1):
  • No code block (0.5):
Posted by: sanurah

79532308

Date: 2025-03-24 22:41:02
Score: 6.5 🚩
Natty: 4
Report link

I need help!

Title: Clearing Site Data with JavaScript

Hi everyone, how's it going? So... if I try to clear those options in the console, I'm not able to remove all of them. Is there any JavaScript code that can trigger the "Clear site data" button? Thank you all.

Some can't be deleted by code. Therefore, a function that specifically presses that button would be necessary.

https://linustechtips.com/topic/1605402-title-clearing-site-data-with-javascript/#comment-16685403

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (2.5): I need help
  • Blacklisted phrase (1): Is there any
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Arthur Melo

79532304

Date: 2025-03-24 22:38:01
Score: 1.5
Natty:
Report link

You could try and remove /public

COPY --chown=nextjs:nodejs --from=builder /app ./public

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

79532303

Date: 2025-03-24 22:37:01
Score: 3
Natty:
Report link

If I use pymupdf 1.24.12 it works fine with the Kofax Power PDF app, but if I use pymupdf 1.25.4 it doesn't allow me to move / edit annotations etc.

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

79532302

Date: 2025-03-24 22:37:01
Score: 3
Natty:
Report link

just .... uninstall this gem , may be you did it globally and dont use sudo for that just install inside your ruby folder

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

79532300

Date: 2025-03-24 22:36:00
Score: 5.5
Natty:
Report link

recently spent a lot of time, and finally I found solution from this video https://youtu.be/XFVrIyAzsk4?si=qP7ZZUKedRvVhmb_

and also here on GitHub. https://github.com/CommunityToolkit/Maui/issues/1993 you can find working code

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Blacklisted phrase (1): this video
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: tima kozlov

79532299

Date: 2025-03-24 22:35:00
Score: 1
Natty:
Report link

Array variable Array Variable

the expression

@concat(concat('''',replace(join(variables('CurrentObjects'), ''''),'''',''',''')),'''')

Output

Output

I Hope this helps.

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: SQL006

79532287

Date: 2025-03-24 22:27:59
Score: 3
Natty:
Report link

Named Ranges have their own references.

Try :

ThisWorkbook.Names("MyArray").RefersToRange.Columns.Count

ThisWorkbook.Names("MyArray").RefersToRange.rows.Count

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

79532283

Date: 2025-03-24 22:25:58
Score: 1.5
Natty:
Report link

This API has been changed to

import { getMessaging } from "firebase-admin/messaging";
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Rohit

79532272

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

Just upgrade the version and update VS code to the last version

{
  "engines": {
    "vscode": "^1.97.0"
  }
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: of code

79532258

Date: 2025-03-24 22:08:54
Score: 3
Natty:
Report link

You can include repositories and services in a class diagram, and it's often very beneficial to do so, but it isn't strictly required in the most basic sense of a class diagram.

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

79532251

Date: 2025-03-24 22:04:53
Score: 0.5
Natty:
Report link

You can make your python code into a REST API (using flask, it's super simple) and configure your custom chatbot to send over http requests to that API.
Your API could be on the same server as your wordpress app and under a different subdomain or on another server, so you can install python and all its dependencies there.

That's what I did in my case, I hope this helps.

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • No code block (0.5):
  • Low reputation (1):
Posted by: Arij Thabet

79532243

Date: 2025-03-24 21:58:52
Score: 1.5
Natty:
Report link

OP's OG message is truncated. npm ERR! Error: EPERM: operation not permitted, unlink ...

There will be a specific file shown. Delete that one file. As others have suggested, you could delete your entire node_modules directory, but that would be overkill when you only need to delete one file.

Run your install command, and it should work.

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

79532233

Date: 2025-03-24 21:53:51
Score: 2
Natty:
Report link

You should be able to add answer_data to your schema and then set the initial value in the defaultValue in useForm. The value begins as undefined because it's not being set by defaultValue.

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

79532227

Date: 2025-03-24 21:51:50
Score: 1.5
Natty:
Report link

Not arguing performance, nowadays you can wrap a dict.TryAdd(foo, bar) followed by dict[foo] = bear in your AddOrUpdate extension.

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

79532218

Date: 2025-03-24 21:46:48
Score: 2
Natty:
Report link
.uri("/repos/{owner}/{repo}/commits", owner, repo)
    .header(HttpHeaders.AUTHORIZATION, "token YOUR_GITHUB_TOKEN")
    .retrieve()
    .bodyToFlux(CommitDto.class);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Алёна Петрова

79532210

Date: 2025-03-24 21:41:47
Score: 3
Natty:
Report link

Go to Project settings-> Player -> Publishing Option -> Minify and select "debug" if u are still producing the game and finally when you need the official release set it to "release"... FINALLY

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

79532200

Date: 2025-03-24 21:36:46
Score: 1.5
Natty:
Report link

It is 2025 and we have new possibilities.

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

79532192

Date: 2025-03-24 21:30:44
Score: 4.5
Natty:
Report link

You need to untick the box in the picture. enter image description here. No idea how this setting survived an uninstall and reinstall but there you have it.

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user29980463

79532189

Date: 2025-03-24 21:29:44
Score: 3
Natty:
Report link

Try to open another project and copy the missing file from it to your current project. It works just well

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

79532188

Date: 2025-03-24 21:29:44
Score: 2.5
Natty:
Report link

As @Saddles pointed out in the comments, the WHERE clause should go before the lablel like this =QUERY(earnings!A:J, "SELECT A, B, C, YEAR(C), toDate(C) where A = 'Brooklyn' label YEAR(C) 'Year', toDate(C) 'Month' format toDate(C) 'MMM'", 1)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Saddles
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: martin schwartz

79532171

Date: 2025-03-24 21:22:42
Score: 0.5
Natty:
Report link

Using the scric's code base, which I thank very much, I developed the following code that suits my needs well. I post it here for common use.

First, to simulate the 8 processes, I wrote a small code that, before exiting, waits for a number of seconds passed from the command line and that returns 0 or 1 depending on whether the number of seconds waited is even or odd. The code, saved in test_process.c, is the following:

#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>


int main (int argc, char** argv)
{
    int i, duration, quiet=0;

    if (   (argc < 2)
        || ( (duration = atoi(argv[1]))  <= 0 ))
        return -1;

    for (i=2; i<argc && !quiet; i++) 
        quiet = (0 == strcmp(argv[i], "quiet"));

    if (! quiet) for (i=2; i<argc; i++) printf("par_%d='%s' ", i, argv[i]);

    if (! quiet) printf("\nStart sleep for %d sec!\n", duration);
    sleep(duration);
    if (! quiet) printf("END sleep for %d sec!\n", duration);

    return duration & 1;
}

and it is compiled with:

cc test_process.c -o test_process

Secondly, I took the scric's code and put it in a python script called parallel.py

#!/usr/bin/python3

import concurrent.futures
import subprocess
from datetime import datetime 
from datetime import timedelta

class process :

    def __init__ (self, cmd) :
        self.invocation     = cmd
        self.duration       = None
        self.return_value   = None

    def __str__(self) :
        return f"invocation = '{self.invocation}', \tduration = {self.duration} msec, \treturn_value = {self.return_value}\n"

    def __repr__(self) :
        return f"<process: invocation = '{self.invocation}', \tduration = {self.duration} msec, \treturn_value = {self.return_value}>\n"

pars = [process("1 quiet tanks 4 your support!"),
        process("2 quiet 0xdead 0xbeef"  ),
        process("3 quiet three params here" ),
        process("4 quiet 2 parameters "   ),
        process("5 quiet many parameters here: one two three" ),
        process("6 quiet --1-- --6--"     ), 
        process("7 quiet ----- -----"    ),
        process("8 quiet ===== =====")]


def run_process(string_command, index):
    start_time = datetime.now()
    process    = subprocess.run((f'{string_command}'), shell=True, universal_newlines=True, stderr=subprocess.STDOUT)
    end_time   = datetime.now()
    delta_time = end_time - start_time 
    return process.returncode, delta_time, index

def main():
    with concurrent.futures.ThreadPoolExecutor(max_workers=8) as executor:
        futures = {executor.submit(run_process, f"./test_process {pars[i].invocation}", f"{i}"): i for i in range(8)}
        
        for future in concurrent.futures.as_completed(futures):
            result, time_taken, index       = future.result()
            pars[int(index)].duration       = time_taken / timedelta(milliseconds=1)
            pars[int(index)].return_value   = result
            print(f"{index}: result={result}, time_taken={time_taken}")

main()
print(pars)

Running parallel.py from the command line you get the following output:

./parallel.py 
0: result=1, time_taken=0:00:01.006900
1: result=0, time_taken=0:00:02.003389
2: result=1, time_taken=0:00:03.013232
3: result=0, time_taken=0:00:04.003463
4: result=1, time_taken=0:00:05.002579
5: result=0, time_taken=0:00:06.002372
6: result=1, time_taken=0:00:07.021016
7: result=0, time_taken=0:00:08.003653
[<process: invocation = '1 quiet tanks 4 your support!',    duration = 1006.9 msec,     return_value = 1>
, <process: invocation = '2 quiet 0xdead 0xbeef',   duration = 2003.389 msec,   return_value = 0>
, <process: invocation = '3 quiet three params here',   duration = 3013.232 msec,   return_value = 1>
, <process: invocation = '4 quiet 2 parameters ',   duration = 4003.463 msec,   return_value = 0>
, <process:  futures = {executor.submit(run_process, f"./test_process {pars[i].invocation}", f"{i}"): i for i in range(8)}
 = '5 quiet many parameters here: one two three',   duration = 5002.579 msec,   return_value = 1>
, <process: invocation = '6 quiet --1-- --6--',     duration = 6002.372 msec,   return_value = 0>
, <process: invocation = '7 quiet ----- -----',     duration = 7021.016 msec,   return_value = 1>
, <process: invocation = '8 quiet ===== =====',     duration = 8003.653 msec,   return_value = 0>
]

In this way all the information I need is saved in the <pars> object.

If you need to call different processes, just put the name of the process in self.invocation and change the line

 futures = {executor.submit(run_process, f"./test_process {pars[i].invocation}", f"{i}"): i for i in range(8)}

in

 futures = {executor.submit(run_process, f"{pars[i].invocation}", f"{i}"): i for i in range(8)}

obviously changing the definition of pars in this way

pars = [process("./test_process 1 quiet tanks 4 your support!"),
        process("./test_process 2 quiet 0xdead 0xbeef"  ),
        process("./test_process 3 quiet three params here" ),
        process("./test_process 4 quiet 2 parameters "   ),
        process("./test_process 5 quiet many parameters here: one two three" ),
        process("./test_process 6 quiet --1-- --6--"     ), 
        process("./test_process 7 quiet ----- -----"    ),
        process("./test_process 8 quiet ===== =====")]

Thanks to everyone!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Pax to You

79532170

Date: 2025-03-24 21:20:42
Score: 2
Natty:
Report link

Instead of grid-template-columns: 1fr;, consider grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); for better responsiveness.

If images look off, adjust their height with object-fit: cover; or remove fixed height constraints.

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

79532167

Date: 2025-03-24 21:19:41
Score: 1
Natty:
Report link

Are you trying to produce the same as your current queries, except to only include the entityCode instead of the complete vertices?

If so, I believe the solution you're looking for is tree().by('entityCode'). There are some relevant examples in the reference docs for the tree step: https://tinkerpop.apache.org/docs/3.7.3/reference/#tree-step

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

79532134

Date: 2025-03-24 20:59:37
Score: 2
Natty:
Report link

You should try out Hyperbrowser (https://hyperbrowser.ai)

It does everything you need like browsers, captcha solving, proxies, stealth mode etc and also has AI agents built-in like Anthropic's claude computer use and OpenAI's CUA

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

79532129

Date: 2025-03-24 20:57:36
Score: 2
Natty:
Report link

All works as expected when renaming the file to hooks.server.ts

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: Riël

79532126

Date: 2025-03-24 20:56:36
Score: 2.5
Natty:
Report link

Go to Project settings-> Player -> Publishing Option -> Minify and select "debug" if u are still producing the game and finally when you need the official release set it to "release"

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

79532120

Date: 2025-03-24 20:53:35
Score: 1.5
Natty:
Report link

Layers

Best when used internally. I believe they use modules under the hood.

Modules

Better for sharing publicly with others (e.g. via npm package). There is a much better sharing ecosystem around modules.

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

79532112

Date: 2025-03-24 20:49:34
Score: 2.5
Natty:
Report link

Apparently the specific version of micro-meter (1.14.2) was problematic. Both downgrading or upgrading (1.14.5) solved the issue.

Indeed no manual registration (meaning using AspectJ explicitly is no more was required.
Once I got off the offending micro-meter version, both @Timed and @Counted worked fine out of the box.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @Timed
  • User mentioned (0): @Counted
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Gil Shapir

79532111

Date: 2025-03-24 20:49:34
Score: 0.5
Natty:
Report link

When you call enfold() method on a datetime object it actually set its fold attribute to 1 which means that this datetime is the one after the shifting has occurred.
Actually python wont make any special interpretation for this, but this is very useful when adjusting the datetime back to utc using <datetime-object>.astimezone(timezone.utc) let's clarify with an example

from dateutil import tz
from datetime import datetime

first_1am = datetime(2017, 11, 5, 1, 0, 0, tzinfo=eastern) # Ambiguous datetime object
# tz.datetime_ambiguous(first_1am) # Outputs: True

second_1am = tz.enfold(first_1am)

# If you simply try to subtract both
(second_1am - first_1am).total_seconds # outputs: 0.0

# However try shifting both to utc
(second_1am.astimezone(timezone.utc) - first_1am.astimezone(timezone.utc)).total_seconds()
# outputs: 3600.0
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: Ahmed Shehab

79532109

Date: 2025-03-24 20:48:34
Score: 0.5
Natty:
Report link

Answer was to change send to send_message and to import time so I can use delta time for the duration of the poll

Fixed Code:

import time 
import datetime

@client.tree.command(name="repo", description="Create a poll to see who's free for REPO", guild=GUILD_ID)
async def repo(interaction: discord.Interaction):

    p = discord.Poll(question="Are you free for REPO?", duration=datetime.timedelta(hours=4))
    p.add_answer(text="Yes")
    p.add_answer(text="No")
    
    await interaction.response.send_message(poll=p)
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Gankick

79532107

Date: 2025-03-24 20:46:30
Score: 0.5
Natty:
Report link

I was facing the same issue which was cause of cache and litespeed via htaccess. I have fixed by rename my .htaccess file to .htaccess-disabled and created new .htaccess file and add code from
https://developer.wordpress.org/advanced-administration/server/web-server/httpd/#basic-wp

I used WP Basic code for my website as it is not subdomain:

# BEGIN WordPress

RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Choose htaccess code accordingly, Thank you!

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

79532105

Date: 2025-03-24 20:45:29
Score: 5.5
Natty:
Report link

I just ran your code in github codespaces and the logback works like charme there. So do you get the logs when executing locally but not when running in docker?

enter image description here

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

79532094

Date: 2025-03-24 20:37:27
Score: 1.5
Natty:
Report link

You need to call your venv's python executable from your subprocess as subprocess ignores venv. Add the full path of the venv's python (usually /your/path/here/Scripts/python or your/path/here/bin/python). You may also use sys.executable to reference your python.

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

79532091

Date: 2025-03-24 20:35:26
Score: 4
Natty:
Report link

You need to enable long filenames

https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry

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

79532088

Date: 2025-03-24 20:31:25
Score: 4
Natty: 5
Report link

If you are using Windows install Microsoft redistributable package. here https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170. This will help you solve the issue.

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

79532080

Date: 2025-03-24 20:30:25
Score: 1.5
Natty:
Report link

There is actually a easy way to do this without using any external tools:

:'<,'>g/^/norm yy'>p'<dd
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Relph Bridgman

79532076

Date: 2025-03-24 20:30:25
Score: 3.5
Natty:
Report link

Do you need explanation how static classes work or do you know how they work now?

The way you wrote it only 1 User credentials can be saved at a time. If you have multiple users it would be better to have some data structure as storage of your users and pass reference to this structure in constructor of Form or you could have this structure as static attribute in your current Credentials class (this would be easier so you don't have to change a lot of your existing code)

for example you could use "public static List<(string, string)> list = new List<(string, string)>();"

to add items you just use "list.Add(("userEmail","userPassword"));". To get data you would have to iterate using loop of your choice. If you choose anything that isn't foreach you have to access data using indexer (like array) => list[indexOfUser].Item1/list[0].Item2; -with Item1 and Item2 you access each individual string, so for you Item1 is userEmail and Item2 is userPassword.

and for validation you can check if inserted email is in your list using loop and checking Item1. If you find a match check password.

Reasons:
  • RegEx Blacklisted phrase (2.5): do you know how
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Martin Václavík

79532071

Date: 2025-03-24 20:27:24
Score: 2.5
Natty:
Report link

You need to use ModelMetadataType instead of MetdataType attribute and the partial classes should be in the same namespace.

Answer here - https://stackoverflow.com/a/37375987/955688

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (1):
  • No code block (0.5):
Posted by: Shiva Naru

79532069

Date: 2025-03-24 20:26:24
Score: 0.5
Natty:
Report link

URLSearchParams is an iterable. If you log it with your example you should see something like URLSearchParams {size: 2} in the console.

To get a plain object you can do Object.fromEntries(params) to get an object with the values (or empty if there are no params).

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Fernando Flores

79532067

Date: 2025-03-24 20:26:24
Score: 4.5
Natty:
Report link

You need to use ModelMetadataType and not MetadataType attribute. Answered here: https://stackoverflow.com/a/37375987/955688

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Shiva Naru

79532064

Date: 2025-03-24 20:24:23
Score: 2.5
Natty:
Report link

Please consider uploading small demo project on our forum so we can run it and reproduce the problem directly.

Disclosure: I work as Aspose.CAD developer at Aspose.

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

79532058

Date: 2025-03-24 20:20:22
Score: 2
Natty:
Report link

Using the binding.irb tool mentioned by @mechnicov, I was able to determine that instead of routing to the new method, I was getting an unauthorized viewer message. Turns out there was some legacy authorization code that I needed to account for in my tests.

Specifically, I added the pry gem to my Gemfile, updated the test to this:

describe 'GET #new' do
  it 'simplified test' do
    get :new
    binding.pry
    expect(assigns(:map_id)).to eq(1)
  end
end

Then I ran the test, and examined the response object (which is what this controller is for), then investigated its contents.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @mechnicov
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Dennis Christman

79532048

Date: 2025-03-24 20:14:20
Score: 0.5
Natty:
Report link

Running privileged containers in Kubernetes introduces serious security concerns. Privileged containers can access the host system almost without restriction, which violates container isolation principles and opens the door to cluster takeovers.

---

### Why It's Dangerous

Setting `privileged: true` gives a container:

- All Linux kernel capabilities

- Access to the host's devices

- The ability to modify the host filesystem

- Potential to escape the container and take over the host

These risks are explained in more depth in this article:

[Privileged Container Escape – Attack Vector](https://k8s-security.geek-kb.com/docs/attack_vectors/privileged_container_escape)

---

### How to Mitigate

1. Block Privileged Containers with Admission Controllers

Use policy engines like:

- [Kyverno](https://k8s-security.geek-kb.com/docs/best_practices/cluster_setup_and_hardening/api_server_security/kyverno)

- [OPA Gatekeeper](https://k8s-security.geek-kb.com/docs/best_practices/cluster_setup_and_hardening/api_server_security/opa_gatekeeper)

You can write policies that deny any workload with `privileged: true`.

---

2. Apply Pod Security Standards (PSS)

Kubernetes 1.25+ comes with a built-in [Pod Security Admission (PSA)](https://k8s-security.geek-kb.com/docs/best_practices/cluster_setup_and_hardening/pod_security/pod_security_standards) controller.

Use the `restricted` profile to prevent privileged containers and many other unsafe configurations at the namespace level.

---

3. Audit Your Cluster

Use tools to scan for security issues, including privilege escalations:

- [kubeaudit](https://k8s-security.geek-kb.com/docs/best_practices/cluster_setup_and_hardening/pod_security/kubeaudit)

- [kubescape](https://k8s-security.geek-kb.com/docs/best_practices/cluster_setup_and_hardening/configuration_validation/kubescape)

- [Polaris](https://k8s-security.geek-kb.com/docs/best_practices/cluster_setup_and_hardening/configuration_validation/polaris)

---

### Summary

Avoid using privileged containers unless absolutely necessary. If you must, isolate them in separate namespaces with tight controls. For most workloads, it’s better to enable specific capabilities rather than granting full privileges.

For more Kubernetes security content:

[K8s Security Knowledge Base](https://k8s-security.geek-kb.com/)

Reasons:
  • Blacklisted phrase (1): this article
  • Probably link only (1):
  • Long answer (-1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Itai Ganot

79532046

Date: 2025-03-24 20:12:20
Score: 0.5
Natty:
Report link

Your question: What does it do and how does the code sample work?

Code translation:

if !ErrorHasOccured() || HandleError();

that code is equivalent to:

if (ErrorHasOccured()) HandleError();

How does it work? : In C trigraph,

??! is equal to |. So, ??!??! means ||

P.S: This type of code was used when some of the keyboard did not have | key.

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

79532044

Date: 2025-03-24 20:11:19
Score: 2.5
Natty:
Report link

result = sum(int(num) for num in numbers))

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

79532021

Date: 2025-03-24 19:54:16
Score: 1.5
Natty:
Report link

Try to take a look at:
https://grails.github.io/grails2-doc/2.3.2/guide/conf.html#configurationsAndDependencies

Especially the sub section "Disabling transitive dependency resolution".

I have been using newer version of Grails that uses Gradle, so I can't exactly remember the Gant way...

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

79532017

Date: 2025-03-24 19:53:15
Score: 0.5
Natty:
Report link

Use additional parameters extras to work around this.

For example:

extras: "--inventory 'environments/dev/inventory-dev' --inventory 'environments/int/inventory-int'"

https://github.com/jenkinsci/ansible-plugin/issues/239#issuecomment-2427062898

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

79532008

Date: 2025-03-24 19:48:14
Score: 2.5
Natty:
Report link

While it isn't a warning (and it isn't a super uncommon practice for people to use local variables to shadow class fields), this should get picked up by code Code Analyzer CA1500.

This article explains how to enable code analyzers.

Reasons:
  • Blacklisted phrase (1): This article
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Jeremy Richards

79532001

Date: 2025-03-24 19:44:13
Score: 2
Natty:
Report link

You can create your own custom identity verification workflows which can have it's own configuration but any of the ones provided by Docusign will be identical across accounts. Not all workflows may be available on all accounts, however.

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

79531997

Date: 2025-03-24 19:42:13
Score: 3
Natty:
Report link

Very odd, but I did the same exact thing you suggested and it fixed everything for me too!

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

79531988

Date: 2025-03-24 19:36:12
Score: 2.5
Natty:
Report link

I have a LG tv, but where I can find apps to install in this tv, the apps that appears in this list, don't be enough

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Mau España

79531987

Date: 2025-03-24 19:36:12
Score: 2.5
Natty:
Report link

I get this error when trryig to preview reports/layouts :

Unable to cast COM object of type 'System.__ComObject' to interface type 'Sage.Reporting.Engine.Integration.IBackupNotificationService'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{61552EBA-29AA-4A8B-8E77-0E8375943D7A}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

What to do

Reasons:
  • RegEx Blacklisted phrase (1): I get this error
  • No code block (0.5):
  • Low reputation (1):
Posted by: John Smith

79531977

Date: 2025-03-24 19:30:10
Score: 2
Natty:
Report link

Soluction: https://github.com/twbs/bootstrap/issues/33636#issuecomment-2088899114

.table-responsive {
  overflow: auto;
  .dropdown {
    @extend .position-static;
  }
}
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Érycson Nóbrega

79531973

Date: 2025-03-24 19:27:10
Score: 1.5
Natty:
Report link

It turned out that newer versions of Windows (10 and 11) apparently do not allow showing mapped drives unless specifically set.

To address this, navigate in registry to:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

Create a new DWORD value called EnableLinkedConnections and set its value to 1.

Restart the computer and then the mapped network drives will show in the dialog box with correct drive letters.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Farhät

79531965

Date: 2025-03-24 19:22:08
Score: 5
Natty:
Report link
Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: PRATAP SENEVASAM

79531963

Date: 2025-03-24 19:22:08
Score: 3.5
Natty:
Report link

Yes 'ridk enable ucrt64' not being run before EVERY 'tebako press' was my problem.

Closing this and reopening with a new set of problems

Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user3285799

79531962

Date: 2025-03-24 19:21:07
Score: 8.5 🚩
Natty:
Report link

Did you ever get an answer to this? I've been having the same problem. If I comment out the following it does not crash.

  .backgroundTask(.appRefresh("backgroundTask")){ 
    //run task in background
}
Reasons:
  • Blacklisted phrase (1): answer to this?
  • RegEx Blacklisted phrase (3): Did you ever get an answer to this
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): having the same problem
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Paul Boyce

79531960

Date: 2025-03-24 19:21:07
Score: 2
Natty:
Report link

Follow the link in you error to see a list of potential issues. Did you verify that a connection to jfrog artifactory can be established from your build server and the dependency is hosted by your artifactory?

BTW the mentioned artifact org.apache.activemq:activemq-pool:jar:5.7.0 was released on Oct 02, 2012. Are you sure you want to build on such an outdated library instead of using a newer version (like 6.1.6)?

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

79531953

Date: 2025-03-24 19:18:06
Score: 2.5
Natty:
Report link

Its finally fixed , but i have anther issue , maybe you will have
this is the solution

Failed to find Platform SDK with path: platforms;android-35

FAILURE: Build failed with an exception.

* What went wrong:

Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

\> Failed to find Platform SDK with path: platforms;android-35

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

79531940

Date: 2025-03-24 19:12:05
Score: 0.5
Natty:
Report link

You can also deserialize to System.Text.Json.Nodes.JsonObject which supports indexers, allowing you to access any property:

var json = """{ "token": "ab123" }""";
var jsonObj = JsonSerializer.Deserialize<JsonObject>(json);
var token = y?["token"]?.GetValue<string>();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Thowk