79482819

Date: 2025-03-04 06:39:38
Score: 0.5
Natty:
Report link

You need to use create the json with

// ways to express the empty object {}
json empty_object_implicit = json({});
json empty_object_explicit = json::object();

b/c the code checks if it's a object in the function

    ReturnType value(const typename object_t::key_type& key, ValueType && default_value) const
    {
        // value only works for objects
        if (JSON_HEDLEY_LIKELY(is_object()))
        {
            // if key is found, return value and given default value otherwise
            const auto it = find(key);
            if (it != end())
            {
                return it->template get<ReturnType>();
            }

            return std::forward<ValueType>(default_value);
        }

        JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
    }

https://github.com/nlohmann/json/blob/develop/include/nlohmann/json.hpp#L2281

The json can be a string, number, or array etc.

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

79482813

Date: 2025-03-04 06:34:37
Score: 1
Natty:
Report link

Designing a neural network for a game like Draughts involves several key decisions, and there’s no single “correct” approach. However, here are a few guiding questions that can help structure the design:

1. What should the network predict? Since Draughts is a turn-based game with many possible moves, the neural network should suggest the best move based on the current board position. This can be done in two ways:

Classification: The network picks the best move from a list of possible moves. Regression: The network assigns a score to each move, helping to choose the most effective one.

2. What inputs should the network take?

The neural network needs information about the game to decide the best move. To do this, we need to convert the board into numbers so the network can process it. Each square on the board can be represented as:

Empty (no piece) Regular piece (belongs to a player) King piece (a stronger piece that moves differently) Other helpful details include:

Whose turn it is How many pieces have been captured This way, the network gets a complete picture of the game and can make better decisions.

3. Should it be a feed-forward or recurrent network? You can use two main types of Neural Networks First one is Feed-Forward Neural Network: Feed-Forward Neural Network looks at the current board and picks the best move without considering what happened before. It treats each move as a fresh start. This works well if just looking at the board is enough to decide the best move

Another one is Recurrent Neural Network (RNN) or LSTM: Recurrent Neural Network (RNN) or LSTM remembers past moves. This is helpful if knowing previous moves changes what the best next move should be. For example, if a player is trying to avoid repeating a position or set up a long-term strategy, an RNN or LSTM can track those patterns.

So, if the game doesn’t require memory of past moves, a feed-forward network is simpler and easier to train. If remembering past moves is important, an RNN or LSTM is better.

4. Do you need hidden layers? Since Draughts is a complex game, you’ll likely need at least one hidden layer in your neural network. The number of layers and neurons depends on how detailed your board representation is and how complex you want the decision-making to be. A good approach is to start with a simple setup and then adjust based on how well it performs.

5. How will the network be trained? To train the neural network, you’ll need a dataset containing different game states and the best possible moves for each. There are two main ways to train it:

Supervised learning: The AI learns from past game data, studying moves made by skilled players. Reinforcement learning: The AI plays against itself, improving over time by learning from wins and losses. Many advanced game-playing AIs, like those used for Chess and Go, rely on deep reinforcement learning with techniques such as Deep Q-Networks (DQN) or methods inspired by AlphaZero to continuously refine their strategies.

Would love to hear your thoughts! Have you considered using reinforcement learning, or are you looking for a simpler approach?

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Long answer (-1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Emmimal Alexander

79482811

Date: 2025-03-04 06:33:37
Score: 0.5
Natty:
Report link

I did avoid the init block because it hurts readability.

For example:

class Foo {
Bar someObj;

{
    someObj = new Bar();
}

Foo() {}
}

Now, think about it—when exactly does the init block run? Does it execute before every constructor? What happens if you add another constructor?

You might know the answer, but the real question is: Will the next person reading your code know?

Instead, just initialize the variable directly:

class Foo {
Bar someObj = new Bar();
}

Now, it’s clear and predictable—no matter how many constructors you add, everyone knows someObj gets initialized when the object is created.

Even better? Use a constructor:

class Foo {
Bar someObj;

Foo() {
    someObj = new Bar();
}
}

This makes it explicit when and how someObj is initialized, and if needed, you can change or pass different values.

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

79482799

Date: 2025-03-04 06:23:35
Score: 1
Natty:
Report link

public static void main(String[] args) {

Scanner sc= new Scanner(System.in);
System.out.println("enter no of digits");
int n=sc.nextInt();

int var[]=new int[n];

for(int i=0;i<n;i++){
    
var[i]=sc.nextInt();
}
System.out.println("Printing Array elements using loop: ");
    for (int i = 0; i < n; i++)  
    {
        System.out.println(var[i]);
    }
}
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: C0DiFire

79482797

Date: 2025-03-04 06:22:35
Score: 0.5
Natty:
Report link

You can use the following option in your gitlab.toml file. "amazonec2-iam-instance-profile=your-ROLE-name"

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

79482786

Date: 2025-03-04 06:16:34
Score: 2.5
Natty:
Report link

To request a refund for a wrong recharge on Airtel, follow these steps: Contact Customer Support: Call Airtel customer care at 121 or 0915-327-6772. use the Airtel app for assistance.To request a refund for a wrong recharge on Airtel, follow these steps: Contact Customer Support: Call Airtel customer care at 121 or 0915-327-6772. use the Airtel app for assistance.

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

79482780

Date: 2025-03-04 06:13:33
Score: 3
Natty:
Report link

I have also same problem. Powershell Script run successfully and getting result on powershell everything is ok but when i open Local Policy Windows it is not effecting

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

79482779

Date: 2025-03-04 06:13:33
Score: 1
Natty:
Report link

It is working now. I removed log4j2.xml from the project and instead added log4j2.component.properties and pointed log4j2.xml path value in it.

log4j2.component.properties

log4j.configurationFile=/com/logs/test/log4j2.xml
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Chennai Cheetah

79482778

Date: 2025-03-04 06:12:33
Score: 0.5
Natty:
Report link

I had the same error and I don't know if my situation is related but this may help someone else who searches for the same error.

I was able to resolve this error by creating a new Pipeline, using GitHub as the source and the same repo that was referenced in the broken pipeline, and re-authorizing the repo access in the GitHub prompt. I stopped there and didn't finish creating a new pipeline because after going back to the original pipeline in a new window, it was working again.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • No code block (0.5):
  • Low reputation (1):
Posted by: Joseph Crain

79482762

Date: 2025-03-04 05:57:30
Score: 2
Natty:
Report link

Liferay 7.4 is here! Are you ready to upgrade?

Upgrading from Liferay DXP 7.x to 7.4 unlocks better performance, enhanced security, and powerful low-code features – but where do you start? 🤔

Swipe through our 6-slide carousel to discover: ✅ Why you should upgrade ✅ What’s new in Liferay 7.4 ✅ Key steps for a smooth transition

Check out the full guide here: https://www.aixtor.com/blog/how-to-upgrade-liferay-dxp-7-x-to-7-4/

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: anand-aixtor

79482756

Date: 2025-03-04 05:53:29
Score: 5.5
Natty: 5.5
Report link

Pure dart dtls implementation: https://github.com/KellyKinyama/dartls/tree/master/lib/src/dtls/examples/server

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kelly Kinyama

79482755

Date: 2025-03-04 05:53:29
Score: 2
Natty:
Report link

Most likely it is not possible to do what you want.

I suggest to post the question at

https://github.com/cvxpy/cvxpy/discussions

to get an authoritative answer.

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

79482753

Date: 2025-03-04 05:51:29
Score: 1
Natty:
Report link

some advice you value are two types 1. primitive 2. no primitive

  1. string, number, and boolean So far you’ve been working with numbers, strings, and booleans. These kinds of JavaScript values are “immutable”, meaning unchangeable or “read-only”. You can trigger a re-render to replace a value:
  2. object and array are reference values. Tips:you have to change immutably which means always give to new objects and array 3.handleChange function one
  3. Technically, it is possible to change the contents of the object itself. This is called a mutation:
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: MD Helal Uddin

79482744

Date: 2025-03-04 05:40:27
Score: 0.5
Natty:
Report link

Error was missing imports and that missing decorator.

After adding @security.context_processor above the context processor block the error filtered through the login_user.html until I finally started to see h is undefined then url_for was undefined. In transitioning my initial admin page that was made without the admin package my imports got mixed up so I was missing those two. Now that I have added those 3 things I now see the login page! Hopefully if anyone else sees the very unhelpful admin_base_plate undefined they can know to look for those smaller items which don't come out of the stack trace very clearly.

I ended up adding onto the context processor so it looks like this:

@security.context_processor
def security_context_processor():
return dict(
    admin_base_template=admin.theme.base_template,
    admin_view=admin.index_view,
    theme=admin.theme,
    h=admin_helpers,
    get_url=url_for,
)
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Aqua Darkness

79482741

Date: 2025-03-04 05:37:27
Score: 2
Natty:
Report link

Check the Theme Code – Go to your platform’s theme editor and inspect the order confirmation template for unnecessary 2️⃣ Modify the HTML/PHP/Liquid File – Locate the file handling the order confirmation page 3️⃣ Use CSS (If Needed) – If direct removal isn’t possible, hide it with CSS:

. 4️⃣ Check Plugin/Extension Settings – Some platforms (e.g., Shopify, WooCommerce) may add images via apps—Disable unwanted elements in settings. 5️⃣ Inspect JavaScript – Ensure no scripts dynamically insert the image tag post-order submission.

For expert solutions on optimizing your site, visit OpGen Dynamics 🚀 https://opgendynamics.com/

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

79482734

Date: 2025-03-04 05:32:26
Score: 0.5
Natty:
Report link

TLDR: decrease bucket size to (4,6,8 etc for each day) depending upon the files size being created. Too many small file ISSUE.

acc to my understanding: buckets : 1000 days(lets assume for 1 year): 365 thats : 365*1000 partitions(files) = 365000

now to write out those no of files and process them in parallel , you would need 1000 of cpu cores, does not make any sence. thump rule for file partitions and parallel execution: lets say for 25gb data file size: 25*1024 => 25600 MB partitions:(default 128MB): 25600/128 => 200 CPU cores needed: 200 (dialing down to 50 cores) // this is for all partitions being processed in parallel for fastest // execution, if you can give some more time for job, and data being // processed in queue with 50 cores would be enough // execution time will increase by 4x (just approxmimation, depends upon // transformations on data being performed)

executor needed(if 4 cores with each exec(2-5 rec for each exec)):50/4 =>~ 13 memory per exec: 4GB , total mem = 13* 4 = 52GB

then driver also need resource allocation (4 cores + 16 GB) rough estimates

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

79482732

Date: 2025-03-04 05:31:25
Score: 3
Natty:
Report link

my approach was to set the "credsStore" to "" on the server's .docker -> config file and it works.

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

79482731

Date: 2025-03-04 05:28:25
Score: 3.5
Natty:
Report link

Please Ensure you have cucumber-testng dependency then it works and not org.testng

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

79482727

Date: 2025-03-04 05:27:24
Score: 5
Natty: 5
Report link

This extension is no longer available because it doesn't follow best practices for Chrome extensions.

There have any alternative solution ?

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

79482725

Date: 2025-03-04 05:25:24
Score: 3.5
Natty:
Report link

Sir ji meri urx_raj_182. Ye insta wali I'd login nhi ho rahi hai 🥺 please meri ye I'd login krne ke liye aagiya dijiye

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

79482720

Date: 2025-03-04 05:22:22
Score: 6.5 🚩
Natty: 5
Report link

I have been trying to alter this Answer so that only Mondays are allowed entry (and are also highlighted). I am also trying to start the week on Sun instead of Mon and remove the week numbers. I can't seem to make the changes necessary to make this happen. Any suggestions?

Reasons:
  • RegEx Blacklisted phrase (2): Any suggestions?
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mike Emerson

79482713

Date: 2025-03-04 05:13:20
Score: 4.5
Natty: 5.5
Report link

What about public repositories? To checkout them, do one needs to create Github service connections in ADO?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: Gaurav Tandon

79482712

Date: 2025-03-04 05:13:20
Score: 3.5
Natty:
Report link

Arabic plus one arabic and English translated side by side

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

79482707

Date: 2025-03-04 05:08:19
Score: 6.5 🚩
Natty:
Report link

how to add a set amount of exponents in c++?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): how to add a
  • Low reputation (1):
Posted by: Amazon Amazon

79482701

Date: 2025-03-04 05:06:18
Score: 0.5
Natty:
Report link

It sounds like you are asking a question about the CAP Theorem. This says you can have two of these three properties in a distributed system: consistency, availability, and partition tolerance.

If your system prioritizes availability, the theorem says you need to give up consistency (i.e. deliver something eventually consistent instead) or partition tolerance (i.e. if some of your nodes split-brain but availability is super important so writes to the same object are accepted in both partitions, some of the writes will be lost when the split is healed).

Scalability is sortof related, but also sortof orthogonal to the CAP tradeoffs. Scalability relates more to things like parallelization (how many req/s can be handled) and minimizing latency (requests at volume are still fast). Scaling a system depends quite a lot on what kind of requests you expect. For example, if you expect writes to be rare but reads to be frequent, a cache might be a good approach to scale (support more parallel requests). If your application is write-heavy and you need writes to scale you might investigate how to parallelize the writes (sharding, for example). In both cases, there are some availability tradeoffs (what happens if a cache node is down, what happens if a primary node is down, etc). So solutions touch back on CAP theorem again.

There are also approaches using specialized data structures like CRDT that help applications navigate tradeoffs like this. CRDT-structured data is commutative by definition, so in the case of a partition the application can "heal" without data loss. While this seems to optimize for consistency, availability, and partition tolerance all at once, your app would need to constrain its data models and UX to conform to data that can be modeled as CRDT. Operational Transformation is a related approach used for collaborative text editors, etc.

Ultimately, your solution to scaling an app relates to expected behavior (what kind of requests are you scaling) and acceptable CAP tradeoffs.

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

79482692

Date: 2025-03-04 04:54:16
Score: 12.5 🚩
Natty: 6
Report link

I'm in this exact situation, did you find any solution? If so please post the solution. I'm using react.js

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (2.5): please post the solution
  • RegEx Blacklisted phrase (3): did you find any solution
  • RegEx Blacklisted phrase (2): any solution?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ryal amanna

79482685

Date: 2025-03-04 04:46:14
Score: 1
Natty:
Report link

Unfortunatelly for now you can't deploy java project (Springboot) to vercel. Refer to this thread

Hope it will help

Reasons:
  • Whitelisted phrase (-1): Hope it will help
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Risqi Ardiansyah

79482676

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

A possible approach is to use multipart uploads (https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html). This could allow you to map the chunks you receive as input (or some buffered, related object) as multipart chunks for the S3 API.

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

79482675

Date: 2025-03-04 04:31:12
Score: 2.5
Natty:
Report link

Thank you. It seemed to me that I managed to create a static agent in Anylogic. I created a parent MyObject agent, as well as a MyStatic agent, and placed the MyStatic in the MyObject agent. Then I went to the custom modifiers menu of the MyStatic agent (which is hosted in the Myobject environment), and wrote static. If you further inherit all agents from MyObject and even assign some MyStatic agent variables values, then all instances of MyStatic will have these values the same, which is the implementation of static classes.

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

79482672

Date: 2025-03-04 04:29:12
Score: 2.5
Natty:
Report link

For anyone using 'cmd' instead of 'pwsh' (such as me)

I discovered that for Windows 'cmd' shell that

ECHO SOME_ENV_VAR=Some Value >> %GITHUB_ENV%

is what you need

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

79482665

Date: 2025-03-04 04:24:11
Score: 4.5
Natty:
Report link

use "break;" statement.

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Chris Ma

79482662

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

Some cases the while read from file get "exhausted"

Then I map the the file to an array before using while loop

mapfile -t lines < "$file"
for line in "${lines[@]}"; do
    printf "${line}"
done
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tirsvad

79482659

Date: 2025-03-04 04:18:09
Score: 5.5
Natty: 7.5
Report link

Why don`t u try RSC in Expo its promissing , https://docs.expo.dev/guides/server-components/

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Why do
  • Low reputation (1):
Posted by: Mayank

79482650

Date: 2025-03-04 04:11:08
Score: 2
Natty:
Report link

i was having the same error but all answers and videos in youtube don't give me anyhing and chatgpt or deepseek all them don't give me useful answer

so the answer is make ur connection string manually in program.cs or ur context

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

79482648

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

I very strangely found the same error. The other answer is a workaround not a direct answer. In my case the solution was to initialize MemoryPreference = MediaCaptureMemoryPreference.Cpu in the MediaCaptureInitializationSettings passed to InitializeAsync. I think the issue lay that it used GPU memory by default which made the SoftwareBitmap unavailable. Why there is not better documentation as to the necessity of this, or an example showing how to move the GPU memory to CPU is beyond me.

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

79482642

Date: 2025-03-04 04:04:06
Score: 3.5
Natty:
Report link

Pasting the actual glut32.dll file to the current solution path works.

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

79482635

Date: 2025-03-04 04:00:06
Score: 2
Natty:
Report link

Since iOS 17.4 this is a one-liner. Content offsets or insets are not needed for centering.

scrollView.contentAlignmentPoint = CGPoint(x: 0.5, y: 0.5)

See https://stackoverflow.com/a/79482632/1046740

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dave Robertson

79482621

Date: 2025-03-04 03:45:03
Score: 1
Natty:
Report link
labels = ['your', 'labels', 'here']
ax.set_xticks(ax.get_xticks(), labels=labels)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: vahndi

79482617

Date: 2025-03-04 03:44:02
Score: 1
Natty:
Report link

This is also a very common problem that I stumbled upon, and I want to share a solution that seems to be a better fit with Svelte 5. To generalize the problem a bit: you have a visual data (VD) and some kind of intermediate state (IS), which you want to two-way bind over a transformation: VD <-f-> IS.

Check out getters/setters. The tutorial is really more complicated than it should be. Here's a simple version:

<script>
    let a = $state(13)
    const f = x => JSON.stringify({x});
    const fInv = x => {try{return JSON.parse(x).x} catch(err){return NaN}};
    let internal = {
        get value() { return f(a)},
        set value(newV) { a = fInv(newV) }
    }

</script>
<input bind:value={internal.value} />
<input bind:value={a} />
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Danylo Lykov

79482612

Date: 2025-03-04 03:38:01
Score: 5.5
Natty:
Report link

Biraj Verma [email protected]

Reasons:
  • Contains signature (1):
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Biraj Verma

79482610

Date: 2025-03-04 03:37:01
Score: 1
Natty:
Report link

Simple. Each input must connect to a 3 input AND gate and also a 3 input OR gate. The output of the AND gate and the output of the OR gate must connect to the inputs of a 2 input XNOR gate. If all inputs are 0 then the outputs of the AND and OR gates are the same being 0. If all inputs are 1 then the outputs of the AND and OR gates are the same being 1. If any input is different to the other inputs then the output of the AND gate will always be 0 and the output of the OR gate will always be 1 and therefore are not the same. If the inputs of the XNOR gate are the same, the output is 1 and if the inputs of the XNOR gate are different, the output is 0!

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

79482608

Date: 2025-03-04 03:36:01
Score: 2.5
Natty:
Report link

If you have a new website, it will first be listed on Google, and then the favicon will appear after a few days. So don't worry.

The same thing happened to me.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Art of Healing

79482599

Date: 2025-03-04 03:24:59
Score: 1.5
Natty:
Report link

Seems like SF 6.4.11 introduced a global --profile option to the console component, so I'd assume that the option isn't needed in this bundle anymore.

References: https://github.com/symfony/symfony/pull/52434 and https://github.com/symfony/symfony/issues/52433

I see you posted an issue on their repo; I haven't created a PR yet. I'm just using a local fork for now.

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

79482588

Date: 2025-03-04 03:18:58
Score: 1
Natty:
Report link

Most likely your SqlException has _doNotReconnect = true. Here you can see how the provider checks if an exception is transient: https://github.com/dotnet/SqlClient/blob/9450fde6e79c0197dbf8189e578078549ad5fee0/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/Reliability/SqlConfigurableRetryFactory.cs#L113

if (retriableConditions != null && e is SqlException ex && !ex._doNotReconnect)

To control it, you can create your custom provider and implement your own TransientErrorsCondition() as you want. See a sample at https://learn.microsoft.com/en-us/sql/connect/ado-net/configurable-retry-logic-core-apis-sqlclient

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

79482586

Date: 2025-03-04 03:17:57
Score: 1.5
Natty:
Report link

Reset conda configuration conda config --remove-key channels conda config --set show_channel_urls True

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

79482584

Date: 2025-03-04 03:16:56
Score: 7.5 🚩
Natty:
Report link

Since you've already tried Defender Exclusions, can you share your logs with loglevel verbose? Here is the docs for current npm

Reasons:
  • RegEx Blacklisted phrase (2.5): can you share your
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Vesta Tian

79482572

Date: 2025-03-04 03:04:53
Score: 4.5
Natty:
Report link

I was using Gmail and facing same issues. Changed port to 465 and secure set to true. Works for now. Would do more testing regarding this.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Me too answer (2.5): facing same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Raphael Fadimu

79482570

Date: 2025-03-04 03:03:52
Score: 2
Natty:
Report link

You need to check the global settings of the extension and if you use workspaces you need to check their settings as well.

VSCode removes infromaton from global settings only.

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

79482566

Date: 2025-03-04 02:58:50
Score: 7 🚩
Natty: 4.5
Report link

Did you ever figure this out? I have a very similar use case in mind and I too am stumped.

Reasons:
  • RegEx Blacklisted phrase (3): Did you ever figure this out
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Peter Nolan

79482553

Date: 2025-03-04 02:44:47
Score: 1
Natty:
Report link

I would recommend against the init block because it hurts readability.

For example:

class Foo {
  int x;

  {
    x = 1;
  }

  Foo() {}
}

When a new Foo is instantiated, does the init block run? If I add another constructor, does the init block run for both constructors, or only the no-arg one?

If you just answered these questions with ease, and that made you feel good about using the init block, this should cause you to check yourself. That certainty that you feel? That's bad.

It's bad because you shouldn't make decisions about style based on how you feel, you should make them based on what is most readable. When you use an init block, other developers that come along and add another constructor—if they even notice the init block—are going to go, uhhhh, when does this thing run?

Just because the answer exists and you know it is not a good reason to write code a certain way. It should be obvious to others. This is not.

Better is:

class Foo {
  int x = 1;
}

Most people have no issue with this. Now no matter how many constructors you add, most Java developers are going to know that x is initialized to 1.

Not forcing your peers to look stuff up is appreciated.

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

79482552

Date: 2025-03-04 02:42:46
Score: 8.5 🚩
Natty: 6
Report link

Okay so I'm trying to do a kernel build from a make file board config and I so I'm trying to do it with three options in that order okay so if the first option fails or the directory doesn't exist it defaults to the second and then with the second directory if it fails or doesn't exist I'm trying to default to the third to a pre-built kernel directory so how would I do that exactly? because it's driving me nuts .. please help me out with this

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): please help me
  • RegEx Blacklisted phrase (2): help me out
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rog

79482544

Date: 2025-03-04 02:38:45
Score: 9
Natty: 7.5
Report link

would like to ask how you did the azure data factory pipeline that copies a file from sftp folder and drops to azure blob storage? Could you please share the specific steps and configurations? Please, thank you in advance.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • RegEx Blacklisted phrase (2.5): Could you please share
  • RegEx Blacklisted phrase (3): thank you in advance
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Shuqi

79482527

Date: 2025-03-04 02:19:41
Score: 0.5
Natty:
Report link

Solution found

SELECT phonebook-bad.Nome from phonebook-bad where phonebook-bad.telefono='102004' union all SELECT phonebook-good.Nome from phonebook-good where phonebook-good.telefono='102004'

In this case if phonebook.good contain the number 102004 return me "Giulio" if missing I can take it from other table.

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

79482524

Date: 2025-03-04 02:15:40
Score: 0.5
Natty:
Report link

The issue with OpenCV.js in your React app is that it's a large file (13MB), and bundling it with Webpack causes extremely long compilation times. Instead of importing OpenCV.js directly into your source code, you should load it dynamically in the browser so Instead of bundling OpenCV.js in your React app, you can use a CDN (Content Delivery Network) to load it dynamically. This will significantly reduce build times and improve efficiency.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sabari sabu

79482523

Date: 2025-03-04 02:14:40
Score: 0.5
Natty:
Report link

To many individuals' dismay, playing your games in full screen can be a pain, especially if your character's movement is continuous and controlled by the position of your cursor.

Each browser seems to have its own variant of this issue. Some show a dropdown X while others drop their address and title bars. In each case, you lose control of your game or character during the dropdown phase. In many browser based games this makes moving "up" more challenging as you have to keep the cursor away from the top of your screen.

That being said, there isn't any HTML that can prevent this and in the case of Chrome, for security reasons Chrome extensions lack the ability to directly communicate with the operating system's API.

For Windows users specifically, this can be done using the ClipCursor API.

I have recently written and released a tool for Windows called Browser Cursor Lock that does just this. Its written in Autoit, is free to use and also open source.

Have fun playing!

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

79482522

Date: 2025-03-04 02:14:40
Score: 2
Natty:
Report link

Now I want to know that after the pipeline is successfully run where is the output displayed?

The output can be seen in the pipeline log whether it's a command line script or another language (such as python). For example,

steps:
- script: |
    echo 'Hello from CICD'
  displayName: 'Print in script'

- task: PythonScript@0
  displayName: 'Print in python'
  inputs:
    scriptSource: 'filePath'
    scriptPath: 'print.py'

print.py:

print("Hello from CICD")

Result:

enter image description here

Reasons:
  • Blacklisted phrase (1): I want to know
  • RegEx Blacklisted phrase (1): I want
  • Probably link only (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: Ziyang Liu-MSFT

79482519

Date: 2025-03-04 02:12:39
Score: 1
Natty:
Report link

I have found the answer to all my questions. The final source code is here: GitHub

In this project, I wanted to support only the linux 64 bit target. Here's what I got to know:

There were some source conflicts due to various targets. I removed all of them and just used the linuxX64() source set which is one of the predefined sets.

Most of the issues were due to the usage of non-standard source sets (I'd have to redefine everything in that case).

All the headers and defs are kept in the nativeInterop folder. The cinterop block picks these up and generates the bindings.

However, in my case, nativeInterop doesn't seem to be a default folder(I had to configure some things manually to get it working), but regardless, it works pretty well.

A point to note is that, you need to configure a linker option named "rpath" for the executable to detect the shared library at runtime. This rpath variable is the absolute path of the shared library.

Use the runReleaseExecutableLinuxX64 task to run the final executable.

Here's the kotlin section of build.gradle.kts.

kotlin {
    //Defines the folders where the .def and headers are kept
    val nativeLinuxResDir = "src/nativeInterop/cinterop"
    //Defines the folders where native libraries are kept
    val nativeLinuxLibsDir = "$nativeLinuxResDir/libs"

    //Add Linux 64 bit target
    linuxX64() {
        binaries {
            //Produces a native linux executable file
            executable {
                //The entry point of the program
                entryPoint = "main"

                //Configure Runtime Path of the executable
                linkerOpts = mutableListOf(
                    "-rpath=${project.projectDir}/$nativeLinuxLibsDir",
                    "-ldemo"
                )
            }
        }

        /* All the headers and .def files should be kept in src/nativeInterop/cinterop/
         * All shared and static libs should be kept in src/nativeInterop/cinterop/libs/
         * This is done to maintain good practices.
         */

        //Settings for Main compilation process
        compilations.getByName("main") {
            cinterops {
                //Create a Cinterop process
                val demo by creating {
                    //Sets the .def file
                    definitionFile.set(project.file("$nativeLinuxResDir/demo.def"))

                    //Sets the package name where the generated bindings will be kept
                    packageName("demo")

                    //Directory to find headers
                    includeDirs(nativeLinuxResDir)
                }
            }
        }

        //Settings for Test compilation process
        compilations.getByName("test") {
            cinterops {
                //Create a Cinterop process
                val demo by creating {
                    //Sets the .def file
                    definitionFile.set(project.file("$nativeLinuxResDir/demo.def"))

                    //Sets the package name where the generated bindings will be kept
                    packageName("demo")

                    //Directory to find headers
                    includeDirs(nativeLinuxResDir)
                }
            }
        }
    }
        sourceSets {
        //Dependencies for Linux 64 bit target
        linuxX64Main.dependencies {
        }
    }
}

Hope the answer helps.

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

79482513

Date: 2025-03-04 02:07:38
Score: 1.5
Natty:
Report link

I faced the same issue. So I worked around using hint from here

 filebase64("${path.module}/hello.txt")
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: kb20

79482504

Date: 2025-03-04 01:59:37
Score: 2
Natty:
Report link

Use this command in the "Commands" tab - it helped me

php artisan db:seed --force
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Роман Кобзарьов

79482490

Date: 2025-03-04 01:44:34
Score: 3.5
Natty:
Report link

I'm facing same issues as yours, now have been fixed. As per explaining from the comment array is 2d array. you need to make it your array to 2d array.

For Each myCell In Rng
 ReDim Preserve arr(i,1)
 arr(i,1) = myCell
 i = i + 1
Next myCell
.Range("H10").Resize(UBound(arr, 1),1).Value = arr
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I'm facing same issue
  • Low reputation (1):
Posted by: Beans

79482483

Date: 2025-03-04 01:39:33
Score: 2.5
Natty:
Report link

I was able to resolve this. When i was disabling my anti-virus it was not disabling my HTTPS protection. once i went in and turned the HTTPS protection off every started working again.

So in short check to see if your antivirus uses HTTPS protection if so make sure you disable or turn off then test.

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

79482477

Date: 2025-03-04 01:32:32
Score: 2
Natty:
Report link

Chrome has removed the "--remote-debugging-address" flag, it appears.

https://issues.chromium.org/issues/40242234

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

79482472

Date: 2025-03-04 01:22:30
Score: 4
Natty: 4
Report link

Disgusting. A sent notification should not be possible to remove

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

79482469

Date: 2025-03-04 01:19:30
Score: 3
Natty:
Report link

Okay, I found the answer to this issue, on Reddit...

I needed to add the -municode linker option, then it built successfully.

Mind you, my console output routines don't work at all, in UNICODE mode... but that's a separate discussion...

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

79482465

Date: 2025-03-04 01:16:29
Score: 2
Natty:
Report link

Make sure your .so files are built with debug symbols (NDK_DEBUG=1 in Application.mk). Run ndk-gdb from the project root while the app is running. Don't manually copy .so files—let the APK package them. If symbols are missing, check with readelf to ensure they aren’t stripped. Try manually loading symbols in GDB with sharedlibrary /path/to/yourlib.so. Run ndk-gdb --verbose for more details in YoWhatsapp.

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

79482457

Date: 2025-03-04 01:06:27
Score: 3
Natty:
Report link

I just resized my image to 24x24 and it worked

https://imageresizer.com

Reasons:
  • Whitelisted phrase (-1): it worked
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Felipe

79482452

Date: 2025-03-04 00:59:27
Score: 0.5
Natty:
Report link

use:

killall -9 chrome

on Linux to kill all processes running.

Use the answer from ggorlen to prevent the processes from staying alive.

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

79482451

Date: 2025-03-04 00:56:26
Score: 1
Natty:
Report link

Alternate @for solution w/Pipes

@Naren Murali has some great info on his issue link regarding the issue of nested @if or @for constructs within templates. <mat-error> is problematic because it's moved within the DOM in order to render it "beneath" the MaterialFormField outline boundaries instead of inside of it.

As for addressing this...I put a 3rd example together in the following Stackblitz for how a pipe can be used to conditionally handle scenarios like touched, submitted, and using @for to loop through the list of errors as well as customize the displayed error message.

Stackblitz @for <mat-error> with Angular Pipe

As a side note: For performance reasons it's also preferential to use pipes and not a getErrorMessages( ) call that is always executed for any change-detection cycle.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @for
  • User mentioned (0): @Naren
  • User mentioned (0): @for
  • User mentioned (0): @for
Posted by: Matthew Erwin

79482444

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

interpreter

I did a CTRL-Shift-P and this brought up a dropdown menu. I chose Python - Select Interpreter Picked Global, Ran the Program, Same error. then I Switched to Recommended Interpreter and voila, it worked!

Reasons:
  • Whitelisted phrase (-1): it worked
  • RegEx Blacklisted phrase (1): Same error
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: likejudo

79482443

Date: 2025-03-04 00:47:25
Score: 1.5
Natty:
Report link

You are using "fixed versioning" and want to use "independent versioning". See here. Fixed will have one single version number for all packages and release all packages if a single package or more are changed. Independent versioning will release individual versioned packages.

Check your configuration.

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

79482439

Date: 2025-03-04 00:45:24
Score: 2
Natty:
Report link

That would be "$XDG_RUNTIME_DIR" Though it might not survive reboots, user session logoff/relog.

"$XDG_STATE_HOME" for persistent stuff

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Beige The Color

79482434

Date: 2025-03-04 00:41:24
Score: 0.5
Natty:
Report link

This can be fixed by changing raw = raw.decode('utf-8') to raw = raw.decode('utf-8-sig'). This will make the Byte Order Mark not be treated as part of your file and instead as metadata which tells it how the file should be interpreted. This should mean that it won't print the u+feff anymore. You can also learn more about utf-8-sg from Python documentation.

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

79482428

Date: 2025-03-04 00:34:23
Score: 2
Natty:
Report link

I'm not sure why your program doesn't stop training, but it shouldn't be related to the warnings. Those are what you would expect, since you are training the model with new classes, and can be safely ignored.

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

79482425

Date: 2025-03-04 00:31:22
Score: 1.5
Natty:
Report link

Try putting it in another folder and then importing from your_folder/transformers and it will find transformers in your_folder first.

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

79482417

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

You could use a for instead of while to run through all your questions.

With the while loop you are probably restarting the question.

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

79482415

Date: 2025-03-04 00:20:19
Score: 8.5 🚩
Natty:
Report link

Did you find the answer to this @jack

Reasons:
  • RegEx Blacklisted phrase (3): Did you find the answer to this
  • Low length (2):
  • No code block (0.5):
  • User mentioned (1): @jack
  • Single line (0.5):
  • Starts with a question (0.5): Did you find the answer to this
  • Low reputation (1):
Posted by: Sagar Jain

79482412

Date: 2025-03-04 00:18:17
Score: 7 🚩
Natty: 4
Report link

Having the same problem. A simple link beginning with "tel:" doesnt open inside a TMA, but on a regular web page it does.

The link: +46777111111

Using this for webapp:

script src="https://telegram.org/js/telegram-web-app.js">

It works on Android, though. Is there a way to force the mini-app to use the newest TMA update?

Reasons:
  • Blacklisted phrase (1): Is there a way
  • No code block (0.5):
  • Me too answer (2.5): Having the same problem
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Staffay Kayser

79482411

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

The short answer is no you cannot do this natively in VSCode unless you leverage an extension.

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

79482408

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

This should be faster than looping:

# Using boolean indexing to find the cutoff index
cutoff_index = df[df['stage'] != 0].index.min()

# Slice and reset index
df = df.iloc[cutoff_index:].reset_index(drop=True)
print(df)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Forneims

79482406

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

Indeed the issue only exists on my emulator in Android Studio.

On real devices the network operations in the background work flawlessly, too. The WorkManager work even "works" when the app is completely closed.

So the reason for this issue seems to be that emulators might handle network access differently than real devices when apps are in the background.

This is weird and not officially documented as far as I know.

So, when in doubt, test your app on a real device to check whether the problem also exists in the field and not just in the emulated development environment.

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

79482392

Date: 2025-03-04 00:07:16
Score: 3
Natty:
Report link

Unfortunately, you'll need to developer documentation. They charge about $10k for it. Let me know if you get your hands on it. I'd like to take a peek at it as well.

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

79482373

Date: 2025-03-03 23:51:12
Score: 3
Natty:
Report link

try to remove it, 'coz is no longer required or recommended. The Firebase SDK handles the channel as needed.

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

79482358

Date: 2025-03-03 23:39:10
Score: 4
Natty: 4.5
Report link

Hey Tamdim was there any resolution to this? I'm experiencing the same issue.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: AAndis

79482349

Date: 2025-03-03 23:32:08
Score: 1
Natty:
Report link

Problem resolved.

TBH, after pouring over configuration properties on two machines and some minor code refactoring (and I mean really minor) the "Can't find std.ixx" problem is gone. I can't put my finger on what exactly I did that solved it but could easily have been inconsistent configuration settings across the 3 modules and 7 other compilation units combined with MS's confusing array of module implementation guidance.

I'm glad this is over. Sorry, that doesn't help the community much :-( Back to productive work.

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

79482341

Date: 2025-03-03 23:26:06
Score: 0.5
Natty:
Report link

"Function do_something_1() As String" is better OOP, as it is better encapsulation and abstraction, two pillars of OOP. However it depends on the actual real life usecase as always. From the given usecase the first option is clearly better OOP.

TLDR: You don't want the second option in this case, as it means you are telling the function the name and surname from where ever you are calling it from. Not only is this redundant, but you're also bypassing whatever names are already in the class.

In a bit more detail: If you needed to call the second function, first you'd have to get the name and surname, and only then can you call the second function externally; which is messy and poor abstraction. While from within the function you are just redundantly passing variables the function already has, also messy, and adds more parameters to your function. (Some functions already have a bunch of parameters, so the last thing you want is even more). Secondly if you make a mistake and passed your function the wrong name (regardless of if called externally or from within the class), it would use that instead of the classes variable.

Only if you wanted to call the function with a different name and surname from the ones inside the class, would you have a function like your second option.

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

79482333

Date: 2025-03-03 23:14:04
Score: 2
Natty:
Report link

Go to the folder of your submodule and run:

$ git submodule update --init -- .

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

79482332

Date: 2025-03-03 23:13:04
Score: 1.5
Natty:
Report link

Same problem, but with PHP8.3 on Ubuntu 24.04.1 and managed to fix it with updating libgd3.

apt-get install libgd3

It updated from libgd3 2.3.3-9ubuntu5 to 2.3.3-12+ubuntu24.04.1+deb.sury.org+1

You can check library version with apt-cache policy libgd3

see issue for the refernce: https://github.com/oerdnj/deb.sury.org/issues/2183#issuecomment-2695764167

Reasons:
  • RegEx Blacklisted phrase (1): Same problem
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tymoteusz Motylewski

79482331

Date: 2025-03-03 23:13:03
Score: 0.5
Natty:
Report link

How can I overload a method with @QueryParam in Jersey/Spring?

This may not be feasible in Jersey, but Spring supports it. Here is your example code modified to work in Spring:

@GetMapping(value = "/test", produces = MediaType.TEXT_PLAIN_VALUE, params = "PID")
public String getText(@RequestParam("PID") String pid) {
    return pid;
}

@GetMapping(value = "/test", produces = MediaType.TEXT_PLAIN_VALUE, params = { "PID", "NAME" })
public String getText(@RequestParam("PID") String pid, @RequestParam("NAME") String name) {
    return pid + name;
}

See also: Overload path functions with different @QueryParams.

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @QueryParam
  • Starts with a question (0.5): How can I
  • High reputation (-1):
Posted by: shelley

79482326

Date: 2025-03-03 23:10:02
Score: 3
Natty:
Report link

Got it figure out. Databricks File System (DBFS) does not support random writes, which are required for writing Excel files. This limitation necessitates workarounds like writing to a local disk first and then copying files to DBFS. I leveraged the cluster, then copied the files to the storage account.

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

79482310

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

If there is no way to do this with Jersey is there a way to do it with any other frame work?

Spring is capable of achieving this desired mapping: https://docs.spring.io/spring-framework/reference/web/webmvc/mvc-controller/ann-requestmapping.html#mvc-ann-requestmapping-params-and-headers

This can be accomplished using the params element of the request mapping annotation. For example:

@GetMapping(value = "/tagSets", produces = MediaType.APPLICATION_JSON_VALUE, params = "entityId")
public TagSets getTagSets(@RequestParam("entityId") Integer entityId) {
    ...
}

@GetMapping(value = "/tagSets", produces = MediaType.APPLICATION_JSON_VALUE)
public TagSets getTagSets() {
    ...
}
Reasons:
  • Blacklisted phrase (1): is there a way
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: shelley

79482309

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

Autoload and declare IOFactory before calling it

**require 'vendor/autoload.php';

use PhpOffice\PhpSpreadsheet{SpreadSheet, IOFactory};

use PhpOffice\PhpSpreadsheet\Writer\Xlsx; //Csv, Xls**

Before

$reader = IOFactory::createReader($inputFileType);

This solves your issues. Most of the tutorials on their site are not elaborate. Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Igweze Ebele Mark

79482298

Date: 2025-03-03 22:46:58
Score: 2.5
Natty:
Report link

In my situation, the problem was fixed by updating the Android API and Android Emulator in Android Studio.

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

79482294

Date: 2025-03-03 22:41:57
Score: 1
Natty:
Report link

Using lombok? Take a look at @FieldNameConstants

https://projectlombok.org/features/experimental/FieldNameConstants

Found solution here in response to similar question: Use Enum type as a value parameter for @RolesAllowed-Annotation

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

79482286

Date: 2025-03-03 22:34:56
Score: 0.5
Natty:
Report link

Using winget worked for me:

winget install Microsoft.msmpisdk

This lets you build

winget install Microsoft.msmpi

This lets you run

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Daniel Gordon

79482282

Date: 2025-03-03 22:31:55
Score: 5.5
Natty:
Report link

This all depends on packages, code, etc. There is nowhere near enough information here to provide a sufficient answer. Please provide more information and I will get back to you!

Reasons:
  • RegEx Blacklisted phrase (2.5): Please provide
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Cole Bauml

79482279

Date: 2025-03-03 22:30:54
Score: 0.5
Natty:
Report link

I faced the same issue despite followin the migration guide from v3. Reading this answer, I created a .postcssrc.json file instead of postcss.config.[js|mjs] and it solved it !

// .postcssrc.json
{
   "plugins": {
      "@tailwindcss/postcss": {}
   }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: TCH

79482278

Date: 2025-03-03 22:30:54
Score: 7.5 🚩
Natty: 5
Report link

can you post listener code also @ofithch79

Reasons:
  • RegEx Blacklisted phrase (2.5): can you post
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @ofithch79
  • Single line (0.5):
  • Starts with a question (0.5): can you post
  • Low reputation (1):
Posted by: AK_R

79482277

Date: 2025-03-03 22:29:53
Score: 3
Natty:
Report link

Found out myself, added basicConstraints = critical,CA:TRUE to config file used when generating CA root certificate and all is ok

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

79482270

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

Based on CanIUse the GetDisplayMedia method is not yet implemented for Safari browser

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

79482263

Date: 2025-03-03 22:18:51
Score: 2
Natty:
Report link

You can easily update your data in Excel spreadsheets manually or using a program, then drop the file https://www.updatedeck.com/ to have your deck updated. Disclaimer: I created the tool to help anyone looking for a way to automatically update their PowerPoint decks.

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