79240762

Date: 2024-12-01 01:34:05
Score: 1
Natty:
Report link

Since you do have a proper package structure layout e.g. with __init__.py files you should be able to use a relative import i.e.:

from ...common.file1 import func1

The dots (at the start, in the from statement) in a relative import go up parent directories or 'levels'

One dot is the current directory, additional dots goes however many parent directories above the current directory as there are dots.

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

79240757

Date: 2024-12-01 01:27:04
Score: 1.5
Natty:
Report link

or qegorqg brqbire qq qghhru er qrhgoh reghrehguheiu rhuh req ge rge gre ej rwo h prq hr hq rtrj rg q q q gtre g

g qe g

g r

g

grq egu8 hutw w *qt trhw tr

u 4t uerrnee grjegu834 reR re*re i t grjgre grung re gbtuuure rebgrbehuutppt q4thhgerueoppqwooiwetbrge82300re b00944556brbe tbrgtte rebre r ewrt ¨rt htrh r treth qeotgo oer eq ¨h q e qjorh h reerq r

re re

rethhhbteigoioiotegnyhy w

ihtohwt

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

79240749

Date: 2024-12-01 01:17:02
Score: 5
Natty: 6
Report link

Why do I am not able to see, edit on the blogger.com function when necessary to see it to edit and so on. But there is no options. It is the matter of interestin all of my classmates are able to see, edit and needful to something over it. So please woudl you like to guide me all over the maters, please

Reasons:
  • Blacklisted phrase (1): guide me
  • Blacklisted phrase (1): I am not able to
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): Why do I am not
  • Low reputation (1):
Posted by: user28566683

79240746

Date: 2024-12-01 01:13:01
Score: 2
Natty:
Report link

Another thing to check is that can_impersonate is set up as a string type, not a boolean. If you set it up as a boolean and set the value to 1 (instead of "1"), you'll get an error and the policy won't continue to the next screen after the initial login screen.

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

79240738

Date: 2024-12-01 01:03:59
Score: 2.5
Natty:
Report link

You need to include the new line inside the quotes

print("Name:", name,"\nAge:", age)

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

79240736

Date: 2024-12-01 01:01:59
Score: 0.5
Natty:
Report link

This is the rule for mobile problems like this-- only if you have an actual physical click on the screen, then it will accept that the client really wants to load / playback data via JavaScript. This is by design, to protect developers from wasting mobile data by autoplaying ads etc.

There are various levels you can try to get past this:

  1. Don't make your <audio> render conditionally. Render it right away with a 1-second silent audio file. Obviously, a careful OS will not let you just create and play a new sound object whenever you want. Maybe (maybe!) this will be enough.
  2. Use JavaScript to start playing the audio off of any other button, then immediately pause it again. Once you've done this, you should be able to resume playback at any time later, even if you change the audio source (which you will do later). This "catching a click" technique is very useful to understand and use.

Unfortunately, I can't test code for an Apple product, since I refuse ever to buy one again. But hopefully now you have a better understanding of WHY things mysteriously refuse to play or record on Apple devices.

Also, my understanding was that new Apple OS versions are more generous with media control. Do you have an older product? If so, you might want to see if it's a version issue.

Reasons:
  • RegEx Blacklisted phrase (2.5): Do you have an
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: Bennyboy1973

79240733

Date: 2024-12-01 01:00:58
Score: 2.5
Natty:
Report link

<InitColorSchemeScript defaultMode="system" /> accomplishes what I wanted

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

79240732

Date: 2024-12-01 01:00:58
Score: 1.5
Natty:
Report link

\n must be enclosed in quotes, like this:

>>> name = "Alice"
>>> age = 30
>>> print("Name:", name, "\nAge:", age)
Name: Alice
Age: 30
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: k24d

79240726

Date: 2024-12-01 00:53:57
Score: 4.5
Natty:
Report link

I have a similar issue and i use the await statement for the asynchronous code. For example:

    try {
        await prisma.table.findMany({});
    } catch (error) {
        await LogService.crearErrorLog(error);
        throw ClassToSendAnErrorWithPersonalization.internalServer('Some message');
    }
    

but i cant control the error, and ignore the trycatch. I'm doing some thing wrong? Some times i use the then() method to do something with the value in the sentence. But it's not generally in the app.

Reasons:
  • Blacklisted phrase (2): crear
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have a similar issue
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: sevila

79240708

Date: 2024-12-01 00:33:53
Score: 0.5
Natty:
Report link

This is for: How to copy lot of files from one s3 bucket in account A, to another in account B. I know this could be different use case, but for anyone who wants some help on this, here It is.

For small amount of files to copy yeah It could work using aws cli, aws s3 sync, but for buckets with more than 3TB of size and 12 Millions of files It just does not work well. you will deal with other issues like token expiration after 1hour, 12h after configuring the expiration time as the max value allowed.

So, for you use case, I saw by using aws DataSync you can schedule when to run the sync task, I do not think It can be right after adding a new file but It can be after, just configure the task schedule

Schedule options

Here is the documentation, just follow the steps: https://docs.aws.amazon.com/datasync/latest/userguide/tutorial_s3-s3-cross-account-transfer.html

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

79240707

Date: 2024-12-01 00:31:53
Score: 7.5
Natty: 8.5
Report link

Me gustaria saber como hacer un codigo que borre la presentación en su totalidad en una fecha definida, sin preguntar, simplemente que se borre en esa fecha. Se podrá hacer ??

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

79240705

Date: 2024-12-01 00:29:52
Score: 0.5
Natty:
Report link

Thanks, slago! I ran the algorithm using your suggested improvements and tested it with three different start and goal states.

For the first test, with the start state:

on(a, b), on(b, t), on(d, t), on(c, d), clear(a), clear(c)

and the goal state:

on(d, a), on(a, c), on(c, b), on(b, t), clear(d)

The algorithm successfully found a solution, generating a sequence of moves that transitioned smoothly from start to goal. It performed well with a depth limit of 4.

In the second test, I used the start state:

on(a, b), on(b, c), on(c, t), on(d, t), clear(a), clear(d)

and the goal state:

on(d, c), on(c, b), on(b, a), on(a, t), clear(d)

This setup also worked well, producing a valid sequence of actions. However, as the state complexity increased, I noticed slightly longer runtimes when the depth limit approached 5.

For the third test, I ran with the start state:

on(a, t), on(b, a), on(c, b), on(d, t), clear(c), clear(d)

and the goal state:

on(c, d), on(d, b), on(b, a), on(a, t), clear(c)

This scenario was more challenging but still solvable within a depth limit of 4. The algorithm performed efficiently, reinforcing the importance of choosing achievable goals and reasonable depth limits.

Some of the takeaways:

I have added comments and use cases to clarify the code.

% Block world definitions, we can add the six blocks (a, b, c, d, e, f) and the table (t)
block(X) :- 
    member(X, [a, b, c, d]).


% Define the initial state
start([
    on(a, b),
    on(b, t),
    on(d, t),
    on(c, d),
    clear(a),
    clear(c)
]).

% Define the goal state
goal([
    on(d, a),
    on(a, c),
    on(c, b),
    on(b, t),
    clear(a)
]).

/*
start([
    on(a, b),
    on(b, c),
    on(c, t),
    on(d, t),
    clear(a),
    clear(d)
]).


goal([
    on(d, c),
    on(c, b),
    on(b, a),
    on(a, t),
    clear(d)
]).


start([
    on(a, t),
    on(b, a),
    on(c, b),
    on(d, t),
    clear(c),
    clear(d)
]).

goal([
    on(c, d),
    on(d, b),
    on(b, a),
    on(a, t),
    clear(c)
]).
*/


% Main predicate for IDS, exploring depths up to the given limit
ids(Limit, Plan) :-
    % Define start and goal states
    start(Start0),
    goal(Goal0),
    % Convert states to ordered sets for easier manipulation
    list_to_ord_set(Start0, Start),
    list_to_ord_set(Goal0, Goal),
    % Incrementally explore depths from 0 to Limit
    between(0, Limit, Len),
    write('Trying depth: '), write(Len), nl,
    % Define the length of the plan corresponding to the depth
    length(Plan, Len),
    % Call Depth-First Search (DFS)
    dfs(Start, Goal, [Start], Plan).

% Base case: if the current state matches the goal state, the plan is complete
dfs(State, State, _Visited, Plan) :-
    !,
    Plan = [],
    write('Goal reached with state: '), write(State), nl.

% Recursive case: explore possible actions from the current state
dfs(State, Goal, Visited, [Action | Actions]) :-
    write('Current state: '), write(State), nl,
    write('Visited: '), write(Visited), nl,
    % Find a valid action to transition to the next state
    action(Action, State, Next),
    write('Action taken: '), write(Action), nl,
    write('Next state: '), write(Next), nl,
    % Ensure the next state has not been visited
    not(member(Next, Visited)),
    % Continue DFS with the new state
    dfs(Next, Goal, [Next | Visited], Actions).


% Action: move block X from Y to Z
action(move(X, Y, Z), S1, S3) :-
    % Preconditions for the action
    member(clear(X), S1),
    member(on(X, Y), S1),
    block(Y),
    member(clear(Z), S1),
    X \= Z,
    % Update state by removing and adding relevant facts
    ord_subtract(S1, [clear(Z), on(X, Y)], S2),
    ord_union([clear(Y), on(X, Z)], S2, S3).

% Action: move block X from Y onto the table
action(move_onto_table(X, Y), S1, S3) :-
    % Preconditions for the action
    member(clear(X), S1),
    member(on(X, Y), S1),
    block(Y),
    % Update state by removing and adding relevant facts
    ord_subtract(S1, [on(X, Y)], S2),
    ord_union([clear(Y), on(X, t)], S2, S3).

% Action: move block X from the table onto block Y
action(move_onto_block(X, Y), S1, S3) :-
    % Preconditions for the action
    member(clear(X), S1),
    member(clear(Y), S1),
    member(on(X, t), S1),
    X \= Y,
    % Update state by removing and adding relevant facts
    ord_subtract(S1, [clear(Y), on(X, t)], S2),
    ord_union([on(X, Y)], S2, S3).

Thank you :)

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

79240696

Date: 2024-12-01 00:19:50
Score: 1
Natty:
Report link

The NFC Forum Type 5 spec (NFCForum-TS-T5T), section 4.3, says:

The T5T_Area (i.e., memory containing the NDEF message) starts with the first byte following the last byte of the CC field. The size of the T5T_Area is defined by the content of the CC field.

So the MLEN does not include the memory occupied by the capability container itself, but includes all other memory available in the tag REGARDLESS OF THS SIZE OF THE NDEF MESSAGE.

What follows after the capability container is usually length bytes as @Andrew points out. However the more complete story is that there is an NDEF TLV (as prescribed by section 4.4 of the NFCForum-TS-T5T. The tag for the NDEF TLV is 0x03, and following that is a single length byte (for lengths <= 254) or 3 bytes indicating a longer (>=255) length. As per the spec:

The length field (L-field) encodes the size of the V-field in bytes. ... If the L-field is present, it may contain one or three bytes: One byte if the length to encode is between 00h and FEh. The value FFh for the first byte encodes a three-byte format. Three bytes if the length to encode is between 00FFh and FFFEh. The three-byte value FFFFFFFh is RFU.

So following the capability container must be a 0x03, followed by the length of the NDEF, followed by the NDEF message itself. Assuming the 3 records in total are < 255 bytes, following the capability container should be:

03 | {single byte length} | record 1 | record 2 | record 3

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • User mentioned (1): @Andrew
  • Low reputation (0.5):
Posted by: Papyrus

79240690

Date: 2024-12-01 00:12:48
Score: 1
Natty:
Report link

I have expanded on @Joel's answer above following the comments as what he produced seemed the closest I had found to dealing with a CSV where the data also contains commas so simply doing a split on the string does not work as splits on commas in fields too: https://stackoverflow.com/a/63202295/915426

This version uses string builder for increased performance and also adds a new line character to the end of the string if it does not end with one to ensure the last line of data gets included but is otherwise the same:

static List<List<string>> ParseCsv(string csv)
{
    var parsedCsv = new List<List<string>>();
    var row = new List<string>();
    StringBuilder field = new StringBuilder();
    bool inQuotedField = false;

    //If CSV does not end with a new line character then add one to ensure final line of data is included
    if (csv.Substring(csv.Length - 1, 1) != "\n")
    {
        csv = csv += "\n";
    }

    for (int i = 0; i < csv.Length; i++)
    {
        char current = csv[i];
        char next = i == csv.Length - 1 ? ' ' : csv[i + 1];

        // if current character is not a quote or comma or carriage return or newline (or not a quote and currently in an a quoted field), just add the character to the current field text
        if ((current != '"' && current != ',' && current != '\r' && current != '\n') || (current != '"' && inQuotedField))
        {
            field.Append(current);
        }
        else if (current == ' ' || current == '\t')
        {
            continue; // ignore whitespace outside a quoted field
        }
        else if (current == '"')
        {
            if (inQuotedField && next == '"')
            { // quote is escaping a quote within a quoted field
                i++; // skip escaping quote
                field.Append(current);
            }
            else if (inQuotedField)
            { // quote signifies the end of a quoted field
                row.Add(field.ToString());
                if (next == ',')
                {
                    i++; // skip the comma separator since we've already found the end of the field
                }
                field = new StringBuilder(); //Clear value
                inQuotedField = false;
            }
            else
            { // quote signifies the beginning of a quoted field
                inQuotedField = true;
            }
        }
        else if (current == ',')
        { //
            row.Add(field.ToString());
            field = new StringBuilder(); //Clear value
        }
        else if (current == '\n')
        {
            row.Add(field.ToString());
            parsedCsv.Add(new List<string>(row));
            field = new StringBuilder(); //Clear value
            row.Clear();
        }
    }

    return parsedCsv;
}
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Joel's
  • Low reputation (0.5):
Posted by: Robin Wilson

79240674

Date: 2024-11-30 23:50:45
Score: 0.5
Natty:
Report link

Create a property in your model. It will be incapsulated in your model and more SOLID.

class Person(models.Model):
    name = models.CharField(max_length=30)

    @property
    def name_trimmed(self):
        return self.first_name.replace('&', 'and')

Then in your template:

{{ person.name_trimmed }}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vit Amin

79240667

Date: 2024-11-30 23:39:43
Score: 1.5
Natty:
Report link

Just update gettext with the command:

pacman -S mingw-w64-x86_64-gettext

After that you can install whatever you were trying to.

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

79240654

Date: 2024-11-30 23:26:40
Score: 1.5
Natty:
Report link

According to the documentation from spatie, it is best practice to assign permission to users through roles. I.e first creating roles, then assigning permissions to these roles. Which are in turn assigned to the user by calling the assignRole method on the user model. Please see example here. But in the eventuality that you'd rather give direct permission to the user, you need to have given permission to the user using the givePermissionTo method directly on the user object. This I suppose would occur at the point of creating a new user, editing an existing user account or triggering a user event. After which you can then call the code you have written to return users and their permissions. Please see reference to an example on spatie's website on using direct permissions.

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

79240643

Date: 2024-11-30 23:11:37
Score: 1
Natty:
Report link
library (tidyverse)      
 df1 %>%
        left_join(df2 %>% mutate(present = T)) %>% 
        replace_na(list("present"= F))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: e.matt

79240637

Date: 2024-11-30 23:07:36
Score: 6.5 🚩
Natty:
Report link

can you give me your opinion about this website : https://planvoyages.com/

Reasons:
  • RegEx Blacklisted phrase (2.5): can you give me your
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): can you give me you
  • Low reputation (1):
Posted by: plan voyage

79240635

Date: 2024-11-30 23:06:35
Score: 1.5
Natty:
Report link

This error can happen if you're not using the right extension since your Home component in React should be .jsx or .tsx, did you try to renamed your test file in Home.test.tsx ?

Reasons:
  • Whitelisted phrase (-2): did you try
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: ShueiYang

79240629

Date: 2024-11-30 23:01:33
Score: 8.5 🚩
Natty:
Report link

Thanks for your suggestions. If I use .Formula it puts @ in front and if I use .Formula2 it produces a spill when I look in B330, believing it is an array. However, this is not what I want. It seems the only way I can get dynamic lables to work is to construct the formula in the actual cell B330 using: ="='"&C333&"'!G181:G"&TEXT(181+$B$176*2-1,0) and leaving calculations automatic on while I run the macro. Any thoughts ?

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1.5): Any thoughts
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Gary

79240617

Date: 2024-11-30 22:41:29
Score: 3
Natty:
Report link

I decided to create my own library, Vue Fluid DnD. It has smooth animations like react-beautiful-dnd and an API similar to that of formkit/drag-and-drop. Take a look ;)

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Carlos Jorge Rodríguez Cuello

79240616

Date: 2024-11-30 22:41:29
Score: 1
Natty:
Report link

To make it work, do in Visual Studio:

Right-click on your project in the Solution Explorer Select "Properties" Go to the "Build" tab Look for "Platform target" Change from "Any CPU" to "x64"

explanation I've followed suggestion of TessellatingHeckler to put a pause at the end of the .bat. The cmd windows paused, I did few tests and in one of them run another instance of the cmd invoked by c#. This other instance had "Administrator: C:\Windows\SysWOW64\cmd.exe in the title. Such a thing happens when c# code is intended to run on x32 rather than x64 platform.

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

79240607

Date: 2024-11-30 22:37:28
Score: 2.5
Natty:
Report link

Is the error restricted to accessing message queues through boost? If not, make sure you have a message queue server running on your QNX system.

$ pidin -p mqueue
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is the
  • Low reputation (1):
Posted by: Elad Lahav

79240601

Date: 2024-11-30 22:30:27
Score: 1.5
Natty:
Report link

Turns out Rails 8 requires both libvips AND Imagemagick.

Re-did this tutorial from RoR site exactly as he does it. This time I got this message from console when trying to create a post with an image:

LoadError (Could not open library 'vips.so.42': vips.so.42: cannot open shared object file: No such file or directory.
Could not open library 'libvips.so.42': libvips.so.42: cannot open shared object file: No such file or directory.

RoR's Active Storage Overview says we require to install libvips v8.6+ or ImageMagick but actually we need BOTH.

Here's the article where I found out

Reasons:
  • Blacklisted phrase (1): this tutorial
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ramona

79240594

Date: 2024-11-30 22:20:25
Score: 1
Natty:
Report link

Try to use constructor without naming parameters.

Student student = new Student(
                1,
                "Ramesh",
                "Fadtare"
        );
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Robert Gardziński

79240575

Date: 2024-11-30 22:04:22
Score: 3.5
Natty:
Report link

Be sure you included the service id, the template id and also the public key.

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

79240572

Date: 2024-11-30 22:01:22
Score: 0.5
Natty:
Report link

I would imagine that the approach you're suggesting is going to take many iterations to get everything connected, right? Here are a couple things you might try that could speed this up. (Although without knowing all the details, it's a little tough to make assurances.)

  1. Check that the edge connecting the centers of the two regions is collision-free. If the edge is not collision-free, then it's probably not worth trying to make a region to connect them. You can either do the checking manually, or if you have a CollisionChecker object, you can use CollisionChecker::CheckEdgeCollisionFree method.
  2. Make an initial hyperellipsoid that covers the entire edge connecting the two regions, and use that as the initial guess for IRIS-NP. If that hyperellipsoid is collision-free, then it will be contained in the polyhedron that the algorithm produces. (You may have to force IRIS-NP to terminate after a single iteration, as the hyperellipsoid changes in subsequent iterations.) Checkout IrisOptions for details -- you'll want to work with the starting_ellipse and iteration_limit fields for this. Just make sure the hyperellipsoid is "thin" around the edge.
  3. Use the new IrisZo algorithm, and leverage the containment_points option to force the region to contain the two points. This is a very new feature (just got added to drake last week), so you'll have to build from source or use the nightly build.

There's definitely a lot of other things you could try as well -- constructing a good set of regions for GCS is an active topic of research for us. So please let us know if any of these things work for you!

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • RegEx Blacklisted phrase (2.5): please let us know
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Thomas Cohn

79240569

Date: 2024-11-30 21:58:21
Score: 1.5
Natty:
Report link

Try to use ESLint Plugin Perfectionist: https://github.com/azat-io/eslint-plugin-perfectionist

There are options here to group imports, create custom groups and customize sorting as flexibly as possible. I think you will find it helpful.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Azat S.

79240567

Date: 2024-11-30 21:57:20
Score: 5
Natty:
Report link

On my screen it renders correctly. You want it to be like this, right?

index.html page

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Robin Aerts

79240562

Date: 2024-11-30 21:52:19
Score: 1
Natty:
Report link

Use v5 of cache-manager to fix this problem.

Using npm:

npm i @nestjs/cache-manager [email protected]
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: PiggyPlex

79240556

Date: 2024-11-30 21:47:19
Score: 0.5
Natty:
Report link

I was using Azure Private AKS cluster and facing this issue when I was trying to access the private AKS cluster using kubectl from hub Virtual Network's jump server wherein the Private AKS cluster was deployed in spoke Virtual Network. I was also using Azure Firewall for network traffic management.

In my case this happened because the Azure Private AKS uses private DNS zone and private endpoint, and my hub VNET jump box was unable to resolve the DNS for k8s control plane's kubeapi server, so in order to resolve I had manually added DNS record in jump server's C:\Windows\System32\drivers\etc\hosts file like below.

10.0.1.11 aks-xxx-test-dns-xxxxxx.xxxx-xx-axx-2xxxxxxx.privatelink.eastus.azmk8s.io

Replace the Kubernetes service IP and endpoint private DNS FQDN as per your environment. Also this is just for testing purpose, in production you should add correct firewall rules to resolve the private DNS of AKS control plan API server endpoint.

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

79240550

Date: 2024-11-30 21:45:18
Score: 2.5
Natty:
Report link

Ok, it turns out that it was a stupid mistake because as a result of copy-pasting I derived Clone trait for my enum... Removing it solved the issue.

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

79240547

Date: 2024-11-30 21:43:17
Score: 7 🚩
Natty: 4
Report link

Did you find the answer? I can find it too

Reasons:
  • RegEx Blacklisted phrase (3): Did you find the answer
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you find the answer
  • Low reputation (1):
Posted by: MRST4SIO

79240538

Date: 2024-11-30 21:36:15
Score: 1
Natty:
Report link

npm throws an error in this situation because it doesn't consider 19.0.0-rc.* to be >=16.8.0. The maintainers recommend sticking with Next.js 14 and React 18 until the stable version of React 19 is released. Check out this GitHub PR for more details.

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

79240537

Date: 2024-11-30 21:36:15
Score: 2
Natty:
Report link

I received a similar error as shown in the below image:

enter image description here

As, I was running Docker Engine using Colima, I was able to solve it by restarting colime. Command -> colima restart

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

79240534

Date: 2024-11-30 21:35:15
Score: 2.5
Natty:
Report link

Also you go into the preferences and select "Use Teracopy as default copy handler" and you should also go into default apps in your Windows settings and select this as your default app instead of file explorer.

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

79240530

Date: 2024-11-30 21:31:14
Score: 2.5
Natty:
Report link

I met with this problem today and for me it worked just dragging folder to VS Code. :D

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

79240529

Date: 2024-11-30 21:30:14
Score: 1
Natty:
Report link

You can try to use sumOver()

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

79240527

Date: 2024-11-30 21:28:13
Score: 4
Natty: 4.5
Report link

As far as I know there is official library for that: https://www.microsoft.com/en-us/download/details.aspx?id=56617

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Михаил Харитонов

79240526

Date: 2024-11-30 21:28:13
Score: 1
Natty:
Report link

If your project is written in JavaScript or TypeScript, you can try this to view TODO comments:

https://github.com/azat-io/todoctor

Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Azat S.

79240502

Date: 2024-11-30 21:16:11
Score: 1
Natty:
Report link

I managed to do it using these examples:

But there should be examples in Svelte native :/ The Svelte Native implementation was way better since you didn't even need to import anything: https://svelte-native.technology/docs#bottom-navigation. They should keep it! :( Also, docs were centralized and now that they deprecated their implementation you need to try to find examples that most times do not exist :/

<script>
    import { registerNativeViewElement } from "svelte-native/dom";
    import {
        BottomNavigation,
        TabStrip,
        TabStripItem,
        TabContentItem,
      } from "@nativescript-community/ui-material-bottom-navigation";

    registerNativeViewElement("bottomNavigation", () => BottomNavigation);
    registerNativeViewElement("tabStrip", () => TabStrip);
    registerNativeViewElement("tabStripItem", () => TabStripItem);
    registerNativeViewElement("tabContentItem", () => TabContentItem);
</script>

<page>


  <bottomNavigation selectedIndex="1">
    <!-- The bottom tab UI is created via TabStrip (the containier) and TabStripItem (for each tab)-->
    <tabStrip backgroundColor="#C8F7C5">
      <tabStripItem>
        <label text="Home"></label>
        <image src="font://&#xf015;" class="fas"></image>
      </tabStripItem>
      <tabStripItem class="special">
        <label text="Account"></label>
        <image src="font://&#xf007;" class="fas"></image>
      </tabStripItem>
      <tabStripItem class="special">
        <label text="Search"></label>
        <image src="font://&#xf00e;" class="fas"></image>
      </tabStripItem>
    </tabStrip>

    <!-- The number of TabContentItem components should corespond to the number of TabStripItem components -->
    <tabContentItem>
      <gridLayout>
        <label text="Home Page" class="h2 text-center"></label>
      </gridLayout>
    </tabContentItem>
    <tabContentItem>
      <gridLayout>
        <label text="Account Page" class="h2 text-center"></label>
      </gridLayout>
    </tabContentItem>
    <tabContentItem>
      <gridLayout>
        <label text="Search Page" class="h2 text-center"></label>
      </gridLayout>
    </tabContentItem>
  </bottomNavigation>
</page>

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

79240496

Date: 2024-11-30 21:11:10
Score: 1.5
Natty:
Report link

The proxy_pass approach is correct, but please consider private connection between your EC2 instance and S3 bucket, so the content can be available only through established tunnel in AWS VPC network. Not doing that will result in bad things as:

The full answer on how to achieve that you can find in my response on similar question here :)

Reasons:
  • Blacklisted phrase (1): how to achieve
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Павел Лозовиков

79240494

Date: 2024-11-30 21:10:09
Score: 2.5
Natty:
Report link

The thing that worked for me was going throw the installation process on this form https://discordjs.guide/preparations/

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Tenki

79240486

Date: 2024-11-30 21:07:09
Score: 2
Natty:
Report link

I'm facing the same issue also, I was trying to run strapi cms in cpanel and got the below error, have got a solution.

stdout:

stderr:
#
# Fatal error in , line 0
# Fatal process out of memory: Failed to reserve memory for new V8 Isolate
#
#
#
#FailureMessage Object: 0x7ffd46fd3be0
1: 0x8c1e35  [/opt/alt/alt-nodejs14/root/usr/bin/node]
2: 0x11535e6 V8_Fatal(char const*, ...) [/opt/alt/alt-nodejs14/root/usr/bin/node]
3: 0x9bcb08  [/opt/alt/alt-nodejs14/root/usr/bin/node]
4: 0xc1ffc3 v8::internal::IsolateAllocator::InitReservation() [/opt/alt/alt-nodejs14/root/usr/bin/node]
5: 0xc202fd v8::internal::IsolateAllocator::IsolateAllocator(v8::internal::IsolateAllocationMode) [/opt/alt/alt-nodejs14/root/usr/bin/node]
6: 0xb10a9a v8::internal::Isolate::New(v8::internal::IsolateAllocationMode) [/opt/alt/alt-nodejs14/root/usr/bin/node]
7: 0x8a534e node::NodeMainInstance::NodeMainInstance(v8::Isolate::CreateParams*, uv_loop_s*, node::MultiIsolatePlatform*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<unsigned long, std::allocator<unsigned long> > const*) [/opt/alt/alt-nodejs14/root/usr/bin/node]
8: 0x828dca node::Start(int, char**) [/opt/alt/alt-nodejs14/root/usr/bin/node]
9: 0x7f7df88295d0  [/lib64/libc.so.6]
10: 0x7f7df8829680 __libc_start_main [/lib64/libc.so.6]
11: 0x7a69e5 _start [/opt/alt/alt-nodejs14/root/usr/bin/node]

Out of memory error may be caused by hitting LVE limits
or "Max data size", "Max address space" or "Max resident set" process limits
Please check LVE limits and process limits. Readjust them if necessary
More info: https://docs.cloudlinux.com/shared/cloudlinux_os_components/#known-restrictions-and-issues

process limits "/proc/1436440/limits":
Limit                     Soft Limit           Hard Limit           Units     
Max cpu time              unlimited            unlimited            seconds   
Max file size             unlimited            unlimited            bytes     
Max data size             unlimited            unlimited            bytes     
Max stack size            8388608              unlimited            bytes     
Max core file size        0                    0                    bytes     
Max resident set          4294967296           4294967296           bytes     
Max processes             unlimited            unlimited            processes 
Max open files            1073741816           1073741816           files     
Max locked memory         unlimited            unlimited            bytes     
Max address space         4294967296           4294967296           bytes     
Max file locks            unlimited            unlimited            locks     
Max pending signals       unlimited            unlimited            signals   
Max msgqueue size         unlimited            unlimited            bytes     
Max nice priority         unlimited            unlimited            
Max realtime priority     unlimited            unlimited            
Max realtime timeout      unlimited            unlimited            us  ```      
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I'm facing the same issue
  • Low reputation (1):
Posted by: Fuad Mohammed

79240483

Date: 2024-11-30 21:06:08
Score: 1
Natty:
Report link

I was having the same problem with a number of pdf readers, including PyPDF2. I was able to eventually find one that works 'out of the box', pdfplumber.

import pdfplumber
pdf = pdfplumber.open('myfile.pdf')
page = pdf.pages[0]
text = page.extract_text()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: r_user_293582

79240482

Date: 2024-11-30 21:06:08
Score: 0.5
Natty:
Report link

I was parsing the Playwright JSON report using a separate script. In that script, I used the regex \x1B\[(?:;?[0-9]{1,3})+[mGK], mentioned in a comment to this StackOverflow answer, to replace the ANSI color characters.

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: devatherock

79240481

Date: 2024-11-30 21:06:07
Score: 11 🚩
Natty:
Report link

thank you for your answer but i tried this before and it doesn't work because if i add

@bot.command()

i have this error :

NameError: name 'bot' is not defined

Can you help me please ?

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Can you help me
  • RegEx Blacklisted phrase (1): i have this error
  • RegEx Blacklisted phrase (2): help me please
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Toniixav

79240474

Date: 2024-11-30 20:57:06
Score: 2.5
Natty:
Report link

Here's what I'd recommend for you to verify. Are you certain that your events are correctly returned from your prod environment? What happens if you try to open the GET endpoint in your browser directly? What do you see in your browser's dev console? Are you using any rewrite rules in your prod environment? If yes, is your events endpoint routed the right way? Also, in such cases it's worth to double check that you built and deployed your app correctly.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Gabor Dicso

79240473

Date: 2024-11-30 20:57:06
Score: 2
Natty:
Report link

We got it working again 🤙🏻 It was the AWSCompromisedKeyQuarantineV2 and worked by disabling it.

Not being the Aws user administrator is a real headache. I had to convince the admin and the PM to give it a try. Maybe I should convince them to give me full access to the account. Anyway, I'll investigate if someone activated the policy or if it just got an automated update.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jose Luis Delgado Carrillo

79240471

Date: 2024-11-30 20:56:05
Score: 3
Natty:
Report link

I have the same problem, I'm using

val addEventToCalendarLauncher =
    rememberLauncherForActivityResult(ActivityResultContracts.StartActivityForResult()) { result ->
        if (result.resultCode == Activity.RESULT_OK) {
            viewModel.onEventAddedToCalendar()
        } else {
            viewModel.onEventAddToCalendarFailed()
        }
    }

But same as you, I'm always getting resultCode = 0 and data = null

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same problem
Posted by: Analizer

79240470

Date: 2024-11-30 20:55:04
Score: 11 🚩
Natty:
Report link

Hi @Sami Ullah can you help me please i am getting the same error QRCodeScanner ref={(node) => { this.scanner = node }} onRead={(e) => { setShowDialog(true) setQrValue(e.data) }} flashMode={light ? RNCamera.Constants.FlashMode.torch : RNCamera.Constants.FlashMode.auto} topContent={<></>} bottomContent={ <Button title={Flash ${light ? 'OFF' : 'ON'}} icon={{ ...styles.iconButtonHome, size: 20, name: 'qr-code-scanner' }} iconContainerStyle={styles.iconButtonHomeContainer} titleStyle={{ ...styles.titleButtonHome, fontSize: 20 }} buttonStyle={{...styles.buttonHome, height: 50}} containerStyle={{...styles.buttonHomeContainer, marginTop:20, marginBottom:10}} // onPress={() => {this.scanner.reactivate()}} onPress={() => {setLight(!light)}} /> } />

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): can you help me
  • RegEx Blacklisted phrase (1): i am getting the same error
  • RegEx Blacklisted phrase (2): help me please
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): i am getting the same error
  • Contains question mark (0.5):
  • User mentioned (1): @Sami
  • Low reputation (1):
Posted by: RADHAKRISHNAN Amaranth

79240467

Date: 2024-11-30 20:54:04
Score: 3
Natty:
Report link

I had a similar problem, namely I needed to remove the _total and _seconds suffixes. I did it with the help: EndpointWebExtension for PrometheusScrapeEndpoint.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Павел Зирюкин

79240457

Date: 2024-11-30 20:48:02
Score: 7
Natty: 9.5
Report link

What if shadow-root is closed? How do I make it open or reach the element under closed shadow-root?

Reasons:
  • Blacklisted phrase (1): How do I
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What if
  • Low reputation (1):
Posted by: Aksel Akbulut

79240452

Date: 2024-11-30 20:43:01
Score: 2.5
Natty:
Report link

I'm not sure but probably (according with the official doc.)

Into your yaml: require-authorization-consent: true

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

79240447

Date: 2024-11-30 20:40:01
Score: 2
Natty:
Report link

If someone still has the same problem, adjust the speed to 100 $('.your-slider').slick({ speed: 100, infinite: true, });

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

79240442

Date: 2024-11-30 20:38:00
Score: 0.5
Natty:
Report link

This happens because you're accessing the project as the add-on user and not the user in context. To perform a user context request, you should use the impersonation JWT token, which you should generate before accessing the endpoint you want to return. The explanation is here and always ensure you have the scope ACT_AS_USER to enable this to work

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

79240432

Date: 2024-11-30 20:32:59
Score: 1.5
Natty:
Report link

I think FlowRow is what you're looking for.

Example

FlowRow {
    lodgingPropertyList.forEach {
        CustomeChipElement(
            text = it.name,
            isSelected = false,
            onClick = {}
        )
    }
}

Result: enter image description here

You read more about Flow layout in Jetpack Compose here: https://developer.android.com/develop/ui/compose/layouts/flow#features-flow

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

79240429

Date: 2024-11-30 20:30:57
Score: 6.5 🚩
Natty:
Report link

I tried same piece of code with different image i.e., https://cp.cute-cursors.com/uploads/cursors/283/1.png instead happy.png and it's not working, Does anyone know why it's not working ?

        html {
  background-color: lightgray;
  /* cursor: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/9632/happy.png"), auto; */
  cursor: url("https://cp.cute-cursors.com/uploads/cursors/283/1.png"), auto;
}
<html>

</html>

Reasons:
  • RegEx Blacklisted phrase (2): Does anyone know
  • RegEx Blacklisted phrase (2): working ?
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Faizal Khan

79240418

Date: 2024-11-30 20:21:55
Score: 5.5
Natty:
Report link

I get the same issue - trying to find the answer, including passing instructions to the task, but so far, nothing.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I get the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kevin Berry

79240414

Date: 2024-11-30 20:16:54
Score: 0.5
Natty:
Report link

Thanks to @topaco 's comment the solution is found. The code was quite close, it simply did not need the key to be decoded as Base64.

Here's the result code:

use aes::cipher::{block_padding::Pkcs7, BlockDecryptMut, KeyInit};
use base64::Engine;
use base64::engine::general_purpose;

type Aes128EcbDec = ecb::Decryptor<aes::Aes128>;
async fn test_decryption() {
    let key = "KeyIs16CharsLong";
    let plaintext = "nFWwLNMi2toxug1hDb/HGg==";

    // Decode key 
    let key_bytes = key.as_bytes();

    // Convert ciphertext from hex to bytes
    let mut ciphertext = general_purpose::STANDARD.decode(plaintext).expect("Invalid Base64 ciphertext");

    let pt = Aes128EcbDec::new_from_slice(key_bytes)
        .unwrap()
        .decrypt_padded_mut::<Pkcs7>(&mut ciphertext)
        .unwrap();

    // Convert decrypted plaintext to a string
    let decrypted_plaintext = String::from_utf8(pt.to_vec()).expect("Decryption produced invalid UTF-8");
    println!("Decrypted plaintext: {}", decrypted_plaintext);
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): solution is
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @topaco
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Captain Ildar

79240404

Date: 2024-11-30 20:11:52
Score: 0.5
Natty:
Report link

Seems like this is due to me using fish as my shell. I changed my shell to bash and now this works...

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

79240400

Date: 2024-11-30 20:08:51
Score: 2.5
Natty:
Report link

I know nothing about mybats and I am not sure if my suggestion will go against your desire of going "without creating multiple entityclasses", but you might want to take a look on Spring Data JPA Projections.

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

79240394

Date: 2024-11-30 20:00:50
Score: 9
Natty: 7.5
Report link

hello I have the same problem, can anyone reply?

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: The Travel Office US

79240391

Date: 2024-11-30 20:00:49
Score: 1.5
Natty:
Report link

To work with emulator devices:

In your Visual Studio code, install this extension: Android iOS Emulator.

Prerequisites for using Android emulator devices:

I considered it a GENERAL RULE:

The API level of the target device is important, because your app doesn't run on a system image with an API level that's lower than the one required by your app, as specified in the minSdk attribute in the app manifest file. For more information about the relationship between system API level and minSdk, see Version your app.

To learn more, visit this link: Create and manage virtual devices

Reasons:
  • Blacklisted phrase (1): this link
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: DevQt

79240390

Date: 2024-11-30 19:58:49
Score: 1
Natty:
Report link

None of the above answers helped me cause it turns out that there is a page config that is set by default so that it is in a vertical layout. You can change it using this:

st.set_page_config(layout="wide")

You can also change this from the settings button at the top right of every Streamlit app that shows when developing the app. enter image description here enter image description here

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

79240384

Date: 2024-11-30 19:56:48
Score: 0.5
Natty:
Report link

I know I am playing a thread necromancer right here but I was researching this myself and just ended up reading the source code for ThreadLocal here, on mscorlib.

In the source code we can see that ThreadLocal is using a [ThreadStatic] attribute on ts_slotArray field. While this attribute has no implementation, the compiler upon encountering it on some field creates a thread specific storage slot for that variable and thus even if your ThreadLocal is static, it doesn't matter as compiler will disregard this and generate code that still creates a thread specific storage slot for that value.

If you want to keep your values reusable, you could use a ConcurrentBag/Dictionary or create your own thread safe collection.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Karol Haliński

79240382

Date: 2024-11-30 19:55:48
Score: 3.5
Natty:
Report link

In my case, I installed 'git.exe' from https://git-scm.com/downloads, and that solved my problem!

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

79240370

Date: 2024-11-30 19:47:46
Score: 1
Natty:
Report link

For Ubuntu 24.04 where Android Studio 2024.1.1 is installed through Snap Store, the JAVA_HOME value should be like the following:

export JAVA_HOME=/snap/android-studio/current/jbr
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: muvaf

79240369

Date: 2024-11-30 19:46:46
Score: 1
Natty:
Report link

When typeid(animal).name() returns the base class name and not the actually instantiated type then the base class is not polymorphic (i.e. in common has no virtual destructor), which would be the solution.

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

79240368

Date: 2024-11-30 19:46:46
Score: 3.5
Natty:
Report link

Similar problem. Exporting from 2022 to Excel. On the wizard I tell it to export to X:\MyFolder\MyFile.XLS but when I select the datasource qryExportThis it gives a destination of 'qryExportThis'. I have to overwrite the destination with the path and name of the Excel file. On the Edit Settings popup screen it comes up with the Create Destination table option only. It is still assuming that I am exporting to a table. It has forgotten about Excel. Roughly translated: it is broken. I cannot (so far) run the DTSX file I have created. I have to do the export manually each time.

Reasons:
  • Blacklisted phrase (1): I have to do
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (1): Similar problem
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: TimF

79240363

Date: 2024-11-30 19:43:45
Score: 1
Natty:
Report link

see this link: https://livewire.laravel.com/docs/navigate#dont-rely-on-domcontentloaded

you should use livewire:navigated instead of DOMContentLoaded

the DOMContentLoaded only triggered once after page hard refresh. but when you navigate between pages using wire:navigate, the DOMContentLoaded is not triggering anymore, instead you can use livewire:navigated event. it's triggered in both page hard refresh (like DOMContentLoaded) and after navigating between pages

Reasons:
  • Blacklisted phrase (1): this link
  • Whitelisted phrase (-1.5): you can use
  • RegEx Blacklisted phrase (1): see this link
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: llBestBoyll

79240358

Date: 2024-11-30 19:41:44
Score: 0.5
Natty:
Report link

I got this message when apperently I already had a folder named "venv" in my directory, after removing it it soleved the problem. But also just creating one manualy worked:

rm -rd venv
python3.11 -m virtualenv venv
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Matan Dobrushin

79240347

Date: 2024-11-30 19:33:42
Score: 5.5
Natty:
Report link

I am also having same issues. I do not think ChatGoogleGenerativeAI works with tool calling. I think it is hallucinating, hence no content even though it calls the tools

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am also having same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Davidsonity

79240344

Date: 2024-11-30 19:31:41
Score: 1.5
Natty:
Report link

Very dumb mistake in my part

use Livewire\Component;
- use livewire\Attributes\On;
+ use Livewire\Attributes\On;

no errors were being thrown, so I have to figure that out.

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

79240342

Date: 2024-11-30 19:28:40
Score: 1.5
Natty:
Report link

you can use the following to copy a map Map map1 = {}; map1.addAll(map2);

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: UappE Mall

79240325

Date: 2024-11-30 19:16:37
Score: 0.5
Natty:
Report link

You are missing the name attribute in the <input> element.

You should add the following line :

<input type="file" id="file" name="file">
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: AVTUNEY

79240320

Date: 2024-11-30 19:09:36
Score: 2
Natty:
Report link

In my case, after trying many of the above solutions, I found an import that ended in .R

import android.os.Build.VERSION_CODES.R

Deleting it solved the problem. Somewhat similar to SmokeyTBear's answer above.

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

79240319

Date: 2024-11-30 19:09:36
Score: 1
Natty:
Report link

In my case: Upgrading room with the latest version "2.6.1" works.

configuration:

def room_version = "2.6.1"
implementation "androidx.room:room-runtime:$room_version"
implementation "androidx.room:room-ktx:$room_version"
kapt "androidx.room:room-compiler:$room_version"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mohd Sufiyan

79240316

Date: 2024-11-30 19:08:36
Score: 1
Natty:
Report link

Simple solution: Browse your unsecure site from a Private Window. it will work in any browser.

Reasons:
  • Whitelisted phrase (-2): solution:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Fran Navas

79240308

Date: 2024-11-30 19:01:35
Score: 0.5
Natty:
Report link

To truncate one string to a shorter one I had to use:

let truncated_string = original_string.chars().take(16).collect:<String>();

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

79240300

Date: 2024-11-30 18:57:34
Score: 0.5
Natty:
Report link

In my case, I had a Capacity Reservation in place (presumably I'd unwittingly clicked on the wrong box when launching it) .... once I changed it to 'None' I was able to change the instance type to anything (and not being locked to t2.micro).

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

79240286

Date: 2024-11-30 18:47:31
Score: 1
Natty:
Report link

When this question was posted MAMP did not support MySQL 8.

There is support for MySQL 8 now and with Mamp PRO I was able to get things configured properly directly in MAMP.

First MAMP Pro Settings > Server > MySQL tab. I selected the following settings: enter image description here

Then to open my local DB I go to the MAMP Pro Databases tab, highlight a database, and then click "Open In" and choose my desired DB program.

enter image description here

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • Starts with a question (0.5): When this
  • High reputation (-1):
Posted by: Dan

79240282

Date: 2024-11-30 18:46:31
Score: 1.5
Natty:
Report link

add data-navigate-once to all your javascript on the page

<script data-navigate-once src="{{ url('/') }}/assets/js/app.js"></script>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Muhammed Yakubu

79240276

Date: 2024-11-30 18:42:30
Score: 0.5
Natty:
Report link

For B::foo to override A::foo, it must have the exact same method signature as defined in the Java Language Specification. This means the parameter type must be Building, not Skyscraper. If B::foo uses Skyscraper as the parameter type, it's actually creating a new overloaded method rather than overriding A::foo. When the code calls building.foo(skyscraper), the compile-time type of 'building' is Building, so it looks for foo(Building), and since B::foo(Skyscraper) is a different method signature, it doesn't override A::foo(Building). Therefore, A::foo gets called.

This is different from what you might expect because method overriding requires exact signature matching, while method overloading (which is what happens if you use Skyscraper in B::foo) is resolved at compile-time based on the static types. The runtime type of the object doesn't matter for overloaded methods - only for overridden methods. That's why none of the given options are correct - using any type other than Building in B::foo would result in method overloading rather than overriding, and A::foo would still be called.

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

79240275

Date: 2024-11-30 18:41:29
Score: 1.5
Natty:
Report link

AWS ECS, by default, uses the default bridge network when selecting "bridge" for the network settings on an ECS Task Definition. Per Docker Docs, "User-defined bridges provide automatic DNS resolution between containers. Containers on the default bridge network can only access each other by IP addresses, unless you use the --link option, which is considered legacy. On a user-defined bridge network, containers can resolve each other by name or alias."

When defining a network in a dockercompose.yml, specifying "bridge" specifies a user-defined bridge network, which is why DNS Resolution resolved between my local containers.

Unfortunately and from the information I was able to gather, AWS does not currently support for the user-defined bridge networking option. Switching to awsvpc is likely to best move at the moment.

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

79240262

Date: 2024-11-30 18:33:27
Score: 1.5
Natty:
Report link

Endpoint URL Format for Cloud Function should be in proper format and also @ somethingsomething already mentioned authentication might be turned on for the function, in which case you'll need to configure that for the push subscription as well (and confirm that the pubsub agent SA has rights to trigger the function) .

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Sourav Dutta

79240256

Date: 2024-11-30 18:31:27
Score: 1.5
Natty:
Report link

I've fixed with :

pip uninstall opencv-python opencv-python-headless

then

pip install opencv-python
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mohamed Amin Naimi

79240254

Date: 2024-11-30 18:30:26
Score: 13 🚩
Natty: 4.5
Report link

did u fix it? i have the same issue

Reasons:
  • Blacklisted phrase (1): i have the same issue
  • RegEx Blacklisted phrase (3): did u fix it
  • RegEx Blacklisted phrase (1.5): fix it?
  • Low length (2):
  • No code block (0.5):
  • Me too answer (2.5): i have the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did
  • Low reputation (1):
Posted by: milad Nicolas

79240253

Date: 2024-11-30 18:30:25
Score: 3
Natty:
Report link

As in the comments, the issue was on cookie management. Moreover, I discovered the problem was on the default user agent in another case. Specifying it would fix the issue.

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

79240233

Date: 2024-11-30 18:19:23
Score: 2
Natty:
Report link

I solve problem with delete finalizator in manifest in k8s claster directly.

kubectl edit application grafana -n cd
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Алексей Телепин

79240229

Date: 2024-11-30 18:17:22
Score: 2.5
Natty:
Report link

I have created a simple C++ wrapper around these environment variable functions for POSIX aiming for a thread-safety in the first place: safe-env.

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

79240225

Date: 2024-11-30 18:13:22
Score: 2.5
Natty:
Report link

Alternatively, try Python 3.12.1 and tensorflow 2.18.0

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

79240220

Date: 2024-11-30 18:13:22
Score: 1.5
Natty:
Report link

I know this is an old question but I landed here for the same reason. This is working for me. Note that I only wanted to capture the last line of ffmpeg output to a textbox. I'm using this to convert .ts files to .mp4. It's very quick because it copies to a new file while encoding. Very fast. Takes only a couple of minutes for a 6GB file...

Here's an example in action: https://www.youtube.com/watch?v=45iBOx8eFcs

Cheers everyone

Using process As New Process()

argConvert = "-i " &
    """D:\" & VODFileName & ".ts""" &
    " -c:v copy -c:a copy  " &
    """D:\" & VODFileName & ".mp4"""

process.StartInfo.FileName = "ffmpeg.exe"
process.StartInfo.Arguments = argConvert
process.StartInfo.UseShellExecute = False
process.StartInfo.RedirectStandardError = True
process.StartInfo.CreateNoWindow = True

process.Start()

Dim reader As StreamReader = process.StandardError
Dim output As String = ""

While Not process.StandardError.EndOfStream
    output = process.StandardError.ReadLine()
    Label1.Text = output
    Application.DoEvents()
End While

Label1.Text = "Done"
Label1.Refresh()

End Using

Reasons:
  • Blacklisted phrase (1): Cheers
  • Blacklisted phrase (1): youtube.com
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dom

79240214

Date: 2024-11-30 18:11:21
Score: 1
Natty:
Report link

I missed the docs on Wix's website. This is very simply done using the following code:

<BootstrapperApplication>
    <bal:WixInternalUIBootstrapperApplication LogoFile="..\Resources\LogoFile.bmp" />
</BootstrapperApplication>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mike

79240211

Date: 2024-11-30 18:08:20
Score: 2.5
Natty:
Report link

My issue was that I was using Image.asset instead of Image.file to retrieve user uploaded images. It turns out you have to use the latter for dynamically uploaded images. https://api.flutter.dev/flutter/widgets/Image-class.html

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

79240207

Date: 2024-11-30 18:07:20
Score: 1
Natty:
Report link

The data_vars attribute of a dataset is a dictionry mapping data variable names to data variables.

for var_name, var in dset.data_vars.items():
    print(type(var_name)) # type: str
    print(type(var)) # type:xarray.DataArray
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Janukan Sivajeyan

79240198

Date: 2024-11-30 18:02:18
Score: 4
Natty:
Report link

I face the same issue and what I do is that I added android:windowSoftInputMode="adjust resize in the activity section of the AndroidManifest.xml

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Me too answer (2.5): I face the same issue
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Abdulfattah

79240184

Date: 2024-11-30 17:52:15
Score: 2.5
Natty:
Report link

Use can use record oriented processors like to update the record try update records.to merge the records use merge record try to configure the bin age correlation attributes etc to handle .Then partition record,split record,convert records, validate records are record oriented processors

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

79240181

Date: 2024-11-30 17:51:15
Score: 2
Natty:
Report link

i use this code working fine:

from moviepy import VideoFileClip
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: YULIANG WANG