79219069

Date: 2024-11-23 23:54:28
Score: 1
Natty:
Report link

Alt bindings are supported now in VsVim

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Carlo V. Dango

79219066

Date: 2024-11-23 23:49:27
Score: 2
Natty:
Report link

logarithm-based solution does (some of) the same things the String-based one does internally, and probably does so (insignificantly) faster because it only produces the length and ignores the digits. But I wouldn't actually consider it clearer in intent - and that's the most important factor. Share

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

79219061

Date: 2024-11-23 23:47:26
Score: 0.5
Natty:
Report link

Here is some explenation on what goes on under the hood.

  1. The insertion of elements in a HashMap is not dependent on the order in which they are added. Instead, it relies on the hash code of the key and the availability of slots in the map’s internal array.
  2. If the computed slot for a key is already occupied (due to a hash collision), the HashMap resolves this by either chaining or probing. This resolution process does not preserve insertion order and can involve traversing or modifying multiple slots.
  3. When the map’s capacity is exceeded, a new, larger map is created, and all existing entries are rehashed and redistributed. This rehashing process ignores the original insertion order entirely.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: grimur82

79219048

Date: 2024-11-23 23:38:24
Score: 3
Natty:
Report link

Trying to install pmdarima and getting same issue. I solved it by unistalling py 3.13 and downgrading to 3.12.7.

Nice and smooth !!!

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): getting same issue
  • Low reputation (1):
Posted by: José Alberto De León

79219037

Date: 2024-11-23 23:32:23
Score: 2
Natty:
Report link
=DROP(REDUCE("", UNIQUE(FILTER(B2:B14, C2:C14 < 0)),
 LAMBDA(a, v, VSTACK(a, FILTER(A2:C14, B2:B14 = v)))), 1)

enter image description here

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

79219031

Date: 2024-11-23 23:23:21
Score: 1
Natty:
Report link

Configure your server app to load Azure app configurations and then expose the settings you want your Blazor WASM client to have via an API endpoint and a shared class. In the Blazor WASM app create a component that wraps the entire app and makes a call to that API. Obviously, you won't be able to read these settings using IConfiguration, so store them in another singleton service.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
Posted by: Eugene

79219017

Date: 2024-11-23 23:16:19
Score: 1.5
Natty:
Report link

So, this question is both yes and no. Can you build CMake projects directly from premake? No. However, that doesn't mean it's not possible using alternative methods.

Here are some possible solutions:

  1. Because premake is just lua, you could use os.execute(), and pass along your cmake build command, at the top of the premake file. Then, later down in the file, just link the newly generated library.
  2. Make a batch script called something like "build.bat", that builds the cmake library, and runs the premake file, which includes the newly generated library file.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Xeno

79219011

Date: 2024-11-23 23:14:19
Score: 0.5
Natty:
Report link

You could just use the tqdm library for the progress bar instead of creating your own.

def myf(row):
    row['1'] = 100
    return row

tqdm.pandas(desc="Calculating")
df = df.progress_apply(myf, axis=1)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: keithwalsh

79219001

Date: 2024-11-23 23:08:17
Score: 4
Natty:
Report link

You have an @SecurityRequirement annotation that attempts to enforce the security level of the insert method.

https://github.com/swagger-api/swagger-core/wiki/Swagger-2.X---Annotations#securityrequirement https://docs.swagger.io/swagger-core/v2.0.0-RC3/apidocs/io/swagger/v3/oas/annotations/security/SecurityRequirement.html

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @SecurityRequirement
  • Low reputation (0.5):
Posted by: anicetkeric

79218996

Date: 2024-11-23 23:02:16
Score: 0.5
Natty:
Report link

Bizarrely, I found that the pandas error has nothing to do with pytables which was the last error produced. Up higher in the stack trace, I noticed an error about Callables not being imported (typing support).

This fixed me:

 pip install --upgrade typing_extensions
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: leeprevost

79218993

Date: 2024-11-23 22:58:16
Score: 1.5
Natty:
Report link

This may be caused by the types of @Id fields not matching the types in id class. According to https://docs.oracle.com/javaee/7/api/javax/persistence/IdClass.html

The names of the fields or properties in the primary key class and the primary key fields or properties of the entity must correspond and their types must be the same.

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

79218989

Date: 2024-11-23 22:55:15
Score: 1
Natty:
Report link

I was having the same issue. Cookies were set when hitting the API directly, but not when hit from the Blazor WebAssembly app.

The accepted solution helped me a lot to fix the issue. I ended up creating a CredentialsHandler to always set the BrowserRequestCredentials.Include to my http requests, and added it to my HttpClient:

public class CredentialsHandler: DelegatingHandler
{
    protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
    {
        request.SetBrowserRequestCredentials(BrowserRequestCredentials.Include);
        return base.SendAsync(request, cancellationToken);
    }
}
Reasons:
  • Blacklisted phrase (1): helped me a lot
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hugo Oliveira Lamounier

79218988

Date: 2024-11-23 22:54:15
Score: 1
Natty:
Report link

Thanks to @Alfred Luu's idea of using keybindings.

When you are staging commits in the integrated terminal, it's useful to have copilot suggest the commit message, allow you to make any edits, and then commit- without needing the mouse and returning the focus to the terminal for further commands like git status and git log

To add this functionality:

  1. In VSCode open your keyboard shortcuts to add a new shortcut. You can do this by pressing f1 and then type Preferences: Open Keyboard Shortcuts (JSON). This will open your keybindings.json file where you can save your custom keybinds.

  2. Inside, paste these three new keybindings:

    {
        "key": "ctrl+oem_1",
        "command" : "runCommands",
        "args": {
            "commands": [
                "workbench.view.scm",
                "github.copilot.git.generateCommitMessage",
            ]
        }
    },
    {
        "key" : "ctrl+oem_7",
        "command" : "runCommands",
        "args": {
            "commands": [
                "git.commit",
                "workbench.action.focusActiveEditorGroup",
            ]
        },
        "when": "!terminalFocus"
    },
    {
        "key": "ctrl+oem_7",
        "command": "runCommands",
        "args": {
            "commands": [
                "git.commit",
                "workbench.action.terminal.focus",
            ]
        },
        "when": "terminalFocus"
    }
  1. Replace the "key" with the keyboard shortcut you want for the two behaviours.

    • E.g.: "key": "ctrl+m"
  2. Save keybindings.json

How to use

My defaults are:

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Alfred
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: SWA

79218985

Date: 2024-11-23 22:51:14
Score: 2
Natty:
Report link

And also you can use a functional options and this code generator: https://github.com/kazhuravlev/options-gen

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Contains signature (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: kazhuravlev

79218984

Date: 2024-11-23 22:49:14
Score: 0.5
Natty:
Report link
  1. Make sure you've added /root to virtual file shares. It's not there by default (docs). You said you already did this.
  2. In my case, this was not enough, but switching from VirtioFS to gRPC FUSE in Docker desktop > Settings > General > Virtual Machine Options fixed it.
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Faiz Farouk

79218982

Date: 2024-11-23 22:48:14
Score: 2
Natty:
Report link

Here are the steps to resolve this:

  1. First, close Visual Studio if it's running, as it might be locking these files
  2. Delete the .vs folder (it will be recreated automatically by Visual Studio)
  3. Add .vs/ to your .gitignore file if it's not already there
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: appsPoint Co

79218978

Date: 2024-11-23 22:44:12
Score: 1.5
Natty:
Report link

When trying the function in my use case:

model <- mlogit(choice ~ attr_1+attr_2+attr_3, ewc_df2,
            child.var="DealerCode",
            alt.var='altkey',
            choice='choice',
            shape='long')

I am getting the following error:

Error in $<-: ! Assigned data value must be compatible with existing data. ✖ Existing data has 18329 rows. ✖ Assigned data has 18300 rows. ℹ Only vectors of size 1 are recycled. Caused by error in vectbl_recycle_rhs_rows(): ! Can't recycle input of size 18300 to size 18329.

Can't seem to find the reason why it's happening.

Reasons:
  • RegEx Blacklisted phrase (1): I am getting the following error
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Gaurav Pathak

79218977

Date: 2024-11-23 22:44:12
Score: 2
Natty:
Report link

Brett Montgomery has stalked me via VoIP phone services since 2016. Please stop using my family's devices for control for the narcissistic supply people who gather on this in secret gather. I wouldn't mind if it didn't result in editing of messages, conditional calling on all 12 devices.Montybrett and Monzey of Richmond, Melbourne not Virginia fraudster and time wasting of mine is my main concern which needs to be stopped. Not to mention the fraud involved. [email protected]

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

79218966

Date: 2024-11-23 22:37:10
Score: 1.5
Natty:
Report link

gRPC over HTTP/2 is generally faster than REST over HTTP/2, and the reasons come down to how each is designed. gRPC uses Protocol Buffers (protobuf), which is a compact and efficient binary format, unlike REST, which typically relies on JSON—a text-based format that's slower to process and takes up more space. Another advantage of gRPC is its built-in support for bidirectional streaming, allowing the client and server to send data back and forth in real-time. REST, on the other hand, sticks to the traditional request-response model, which isn’t as efficient for streaming. While both gRPC and REST benefit from HTTP/2 features like multiplexing and header compression, gRPC is designed to make the most of these features, resulting in lower latency and better performance, especially in high-throughput scenarios.

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

79218963

Date: 2024-11-23 22:34:10
Score: 4.5
Natty: 7.5
Report link

I am in need if assistance locating PIN2... my search results suggested/ recommended inputting 0000 ...it DID NOT WORK! I am now weary of inputting wrong info because of limited attempts. Someone said last four of phone number.... ALSO...DID NOT WORK!!Any info is appreciated. I have a lost device and trying to reset and change all info links pws etc.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): DID NOT WORK
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Veronica Acuña Cortez

79218960

Date: 2024-11-23 22:32:09
Score: 5.5
Natty: 5.5
Report link

kinda off topic but, what ascii is that?

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

79218958

Date: 2024-11-23 22:30:08
Score: 2.5
Natty:
Report link

I just ran into the same issue. It seems to be a bug with visual studio, as if you continue past the exception while debugging it seems to progress as normal.

Some discussion of the issue here:

https://github.com/dotnet/aspnetcore/issues/58967

https://github.com/dotnet/aspnetcore/issues/53996

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

79218956

Date: 2024-11-23 22:28:07
Score: 1.5
Natty:
Report link

Experiencing the same issue editing a typescript file with Visual Studio 2022 version 17.12.1. Found the issue to be related to the GitHub Copilot feature. I was able to stop the issue occurring by clicking GitHub Copilot, shown in the top-right corner of the editor, selecting Settings, then disabling Enable Copilot Completions.

I could not find any other condition that causes this issue. It seems to happen after some time developing when Enable Copilot Completions is enabled.

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

79218950

Date: 2024-11-23 22:21:05
Score: 1
Natty:
Report link

Old question, posting the update as I was searching for it. The images are updated periodically, but can be applied immediately via following command

multipass find --force-update
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Harish Kumar

79218946

Date: 2024-11-23 22:19:05
Score: 0.5
Natty:
Report link

I had to combine Craig Kelly's response with this one: https://stackoverflow.com/a/77911668/3776765

@pytest.fixture(scope='session')
def event_loop():
    try:
        loop = asyncio.get_running_loop()
    except RuntimeError:
        loop = asyncio.new_event_loop()

    yield loop

    pending = asyncio.tasks.all_tasks(loop)
    if pending:
        loop.run_until_complete(asyncio.gather(*pending))
    loop.run_until_complete(asyncio.sleep(1))

    loop.close()
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: M.Vanderlee

79218944

Date: 2024-11-23 22:15:04
Score: 1.5
Natty:
Report link

However, if you just want to run python programs, all you need is the python binary (and the libraries your script wants to use). The binary is usually at /usr/bin/python3 or /usr/bin/python3.9

This is incorrect, python depends on a number of Linux c libs which must be present. This is particularly important if you're looking to build distroless python images as they will not be present by default.

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

79218942

Date: 2024-11-23 22:12:04
Score: 2.5
Natty:
Report link

Answer found on Tooljet community support: Docker Compose file has been updated since the 3.0 version (Seems to be a Postgresql version change mostly)

Correct version of the docker compose file correct the issue.

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

79218941

Date: 2024-11-23 22:11:03
Score: 2.5
Natty:
Report link

You might use elasticlone for that. It supports bulk copying from a server to another server, with timeouts and retry. It also has couple useful options. It is also written in Go so ships to a single binary that can be used directly in most operating systems.

Reasons:
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: medunes

79218936

Date: 2024-11-23 22:06:02
Score: 1
Natty:
Report link

Apparently this is caused by the default MenuItem style, which wasn't adapted yet, as I only redefined the ControlTemplates for the different types of MenuItems.

I got rid of these messages by adding this to my application-wide styles:

    <Style TargetType="{x:Type MenuItem}">
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
    </Style>
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: miss programmer

79218935

Date: 2024-11-23 22:04:01
Score: 10.5
Natty: 7.5
Report link

Anybody still having issues here? I get the same failed to serialize error with timetable class not being able to register. Any help is greatly appreciated. TIA.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): Any help
  • RegEx Blacklisted phrase (3): Any help is greatly appreciated
  • RegEx Blacklisted phrase (2): TIA
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Raghu K Para

79218927

Date: 2024-11-23 21:59:00
Score: 1
Natty:
Report link

This is kind of a slide out but still helpful. I realized that if you have a "Content-type": "multipart/form-data" or "Content-type": ""application/x-www-form-urlencoded" been set in the header, removing it will solve the issue, the form submits and passes it own headers content-type.

Enjoy ✌

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

79218925

Date: 2024-11-23 21:56:59
Score: 3.5
Natty:
Report link

https://colab.research.google.com/drive/1Lmbkc7v7XjSWK64E3NY1cw7iJ0sF1brl#scrollTo=Rvk8mHQ1UTbN

%%shell set -x dockerd -b none --iptables=0 -l warn & for i in $(seq 5); do [ ! -S "/var/run/docker.sock" ] && sleep 2 || break; done

include this before your docker call to start the daemon

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

79218923

Date: 2024-11-23 21:55:59
Score: 9
Natty: 8
Report link

Hi having the same problem on Galaxy S24. I don't know how to update the webview component. Sounds like that is for the techie people...what about us regulars, how do you do this? Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): how do you
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): having the same problem
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: i90chick

79218922

Date: 2024-11-23 21:55:58
Score: 3.5
Natty:
Report link

Set the Y pivot to 1, you will see that the panel will start growing to the bottom instead of both sizes simultaneously

Pivot = 1

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: João Pedro Andrade Marques

79218921

Date: 2024-11-23 21:54:58
Score: 2.5
Natty:
Report link

You have not defined "x"

start by defining the variable "x"

x = 2

if x > 3: print("case1") else: print("case2")

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: S.T.R.Y.K.E.R

79218917

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

Solved it by updating id "com.android.application" version "8.1.0" apply false to id "com.android.application" version "8.7.2" apply false in android/settings.graddle

android studio didn't told me there was a newer version

(got that info here)

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

79218908

Date: 2024-11-23 21:45:56
Score: 3.5
Natty:
Report link

 1- Click : https://github.com/protocolbuffers/protobuf/releases

  1. Download the ZIP file from https://github.com/protocolbuffers/protobuf/releases.

2- Extract the contents of the folder.

3-Add the path (e.g., C:/protoc) to the environment variables.

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

79218907

Date: 2024-11-23 21:45:56
Score: 1
Natty:
Report link

Yeah, the transformer needs a wildcard on the input data. Mine looks like this.

"transformers": [
    {
      "inputPath": "list[*].speechText",
      "outputName": "listSpeak",
      "transformer": "textToSpeech"
     }
]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tom Bruner

79218900

Date: 2024-11-23 21:41:55
Score: 5.5
Natty: 4.5
Report link

rdd = df .select (уҿы ӷәӷәахоит, арӷьарахь) KMeans. амаҵурҭа (рдд избан уажәгьы шәхы шәзыргәаҟуа) шәара шәеицынхалар шәылшоит шәхы ӷәӷәаны ишәымаз шәара шәԥҳәысуп шәсацәажәар шәылшоит текстк шәҩыргьы шәызҭаху шәысҭоит мчыда еизга #desertnaut @Yamur

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Yamur
  • Single line (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: Jan Toybits

79218896

Date: 2024-11-23 21:37:54
Score: 1
Natty:
Report link

WHY?

In .NET, structs are value types, and when you mark a struct as readonly, it promises that the struct's internal state cannot change after it’s created. However, structs can have methods that modify their fields or internal state.

When a readonly struct is accessed, .NET needs to make sure this immutability promise is kept. If you call a method on a readonly struct that could modify its internal state, the runtime creates a defensive copy to protect the original struct.

Immutability Guarantee: Without the defensive copy, calling a method like MutatingMethod could break the immutability contract of a readonly struct.

Safety for Consumers: It protects the developer from unintended side effects caused by struct methods.

For example:

readonly struct MyStruct
{
    public int X { get; }

    public MyStruct(int x) => X = x;

    public void MutatingMethod()
    {
        // Hypothetically mutating the state
        Console.WriteLine("Mutating...");
    }
}

readonly MyStruct myStruct = new MyStruct(10);
myStruct.MutatingMethod(); // Defensive copy happens here

When myStruct.MutatingMethod() is called, a defensive copy of myStruct is made before invoking MutatingMethod. This ensures that the original myStruct stays unchanged, preserving its immutability.

  1. Readonly Fields Accessing methods or properties on a readonly struct field triggers a copy:

    class Example { private readonly MyStruct _myStruct;

     public void DoSomething()
     {
         _myStruct.MutatingMethod(); // Defensive copy is created
     }
    

    }

  2. Readonly Parameters Passing a readonly struct as an in parameter can also result in defensive copies if the struct’s method or property mutates the struct:

     void ExampleMethod(in MyStruct myStruct)
    

    { myStruct.MutatingMethod(); // Creates a copy of myStruct }

Read more about on Microsoft Docs on readonly structs which explains how readonly enforces immutability and when defensive copies occur -> https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/struct#readonly-struct

Reasons:
  • Blacklisted phrase (0.5): WHY?
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): WHY
  • Low reputation (1):
Posted by: Naman Madharia

79218894

Date: 2024-11-23 21:37:54
Score: 0.5
Natty:
Report link

Thanks @Carmelo Scandaliato for the answer.

I'm the original question poster. I gave up at that time because waiting on an update to verify just not ideal. It has been 2 years, now I encounter the same issue. (shoulda just waited lol) Here's my current config without installing gotify-cli:

[emitters]
emit_via = command

[command]
command_format = "curl 'https://<server-address>/message?token=<app-token>' -F 'title=DNF Automatic' -F 'message='{body}''"

stdin_format = "{body}"

PS. I don't know why I posted in python, it's not really a python question lol.

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

79218882

Date: 2024-11-23 21:30:52
Score: 5.5
Natty: 5
Report link

Quốc Đoàn's solution worked for me, but this solution seemed a bit silly, any idea why this happens and why the repetation solves it?

Reasons:
  • Whitelisted phrase (-1): worked for me
  • RegEx Blacklisted phrase (1.5): solves it?
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: scg

79218875

Date: 2024-11-23 21:26:51
Score: 2.5
Natty:
Report link

it works changing snapshotContentContainer: true to snapshotContentContainer: false

with expo 52

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

79218870

Date: 2024-11-23 21:23:50
Score: 1.5
Natty:
Report link

You can submit a file to Microsoft for analysis, and if it's deemed safe, they should then exclude it from malware detection. You can submit your file here: https://www.microsoft.com/en-us/wdsi/filesubmission To check the status of your submission, go here: https://www.microsoft.com/en-us/wdsi/submissionhistory Before submitting, temporarily configure your PC to ignore the detected malware type and recover the file from quarantine. After submission, set your PC to ignore the specific file or folder and re-enable detection for that type of malware to ensure protection against actual threats.

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

79218865

Date: 2024-11-23 21:21:50
Score: 3
Natty:
Report link

You can make a rectangular rMQR code to save on vertical space. You can also use a less supported multi-color alternative like https://github.com/jabcode/jabcode.

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

79218831

Date: 2024-11-23 21:12:48
Score: 2.5
Natty:
Report link

The root is an exception from the rule of splitting two nodes into three nodes. Root can have 2 subtrees. So when root is full, and doesn't have any children, you should split it, take middle key and put it as the only key in the new root, and split other keys into two leaves.

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

79218828

Date: 2024-11-23 21:09:47
Score: 0.5
Natty:
Report link

I found convenient to remap Copilot: Apply Completions to Editor from tab to shift+` in IntelliJ/PyCharm settings (see screenshot below). Hope it helps!

Settings Screenshot

Reasons:
  • Whitelisted phrase (-1): Hope it helps
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: DharmaBum

79218812

Date: 2024-11-23 21:00:46
Score: 2.5
Natty:
Report link

This no longer seems to work. Google recent withdrew this feature and it appears that they have deleted all user's location data, possibly in breach of GDPR regulations.

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

79218811

Date: 2024-11-23 20:59:46
Score: 2.5
Natty:
Report link

you can create your own sign url

path_cloud = COMPANY + "/" + url_image + ".jpg" storage_bucket = "https://firebasestorage.googleapis.com/v0/b/" +bucket_name new_url="{0}/o/{1}?alt=media&token={2}".format(storage_bucket, quote(path_cloud, safe=''), user_idToken)

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Cristian M

79218807

Date: 2024-11-23 20:57:45
Score: 2.5
Natty:
Report link

Is there an existing REST API or endpoint provided by Atlassian that allows for the creation of API tokens programmatically on behalf of a user?

Nope.

There are no API endpoints to generate user access tokens. Users must use the GUI to generate their own tokens.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is there an
  • Low reputation (0.5):
Posted by: David Bakkers

79218805

Date: 2024-11-23 20:56:44
Score: 1.5
Natty:
Report link

Not sure if this was your issue (not enough info in the post to know), but I found this post while trying to solve my issue, so I'm answering.

It's silly but the problem was that I was trying to run my task right after beginning a debug session, but that was opening a fresh vscode instance which had no workspace open. This will cause no tasks to show up if your tasks are scoped to Workspace (set using the Task constructor).

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

79218799

Date: 2024-11-23 20:54:44
Score: 0.5
Natty:
Report link

what we are going to do is to install the cocopods with arch arm compatible version in your project terminal

flutter pub get

then navigate to iOS folder using

cd ios

then

sudo arch -x86_64 gem install ffi

and last thing

arch -x86_64 pod install

Alternatively you could remove pod file then

pod init

the last option you may delete the whole IOS folder then the below command will recreate the IOS folder again

flutter create --platforms=iOS .
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): what we are
  • Low reputation (0.5):
Posted by: ayman omara

79218796

Date: 2024-11-23 20:49:43
Score: 0.5
Natty:
Report link

The BUG you're dealing with usually occurs because Angular doesn't recognize the router-outlet directive. This issue happens when the AppRoutingModule or the routing module containing the RouterModule isn't properly imported into the AppModule.You can solve this issue in the following way.

Ensure the AppRoutingModule is properly import in your AppModule like show below:

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module'; // Import your routing module here 
import { AppComponent } from './app.component'; 
import { LoginComponent } from './components/pages/login/login.component';
import { BeszerzesEszkozSelectorComponent } from './components/pages/beszerzes-eszkoz-selector/beszerzes-eszkoz-selector.component'; 

@NgModule(
{ 
  declarations: [ 
    AppComponent, 
    LoginComponent,
    BeszerzesEszkozSelectorComponent 
  ], 
  imports: [ 
    BrowserModule,
    AppRoutingModule // Make sure this is imported
  ], 
  providers: [], 
  bootstrap: [AppComponent] 
}) 
export class AppModule {}

You can find more about how to configure routing in Angular v16 and lower by following this link

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

79218786

Date: 2024-11-23 20:41:42
Score: 1
Natty:
Report link
  1. Decode the JWT: Use a library like jwt-decode to extract the expiration timestamp from the token.

  2. Setup hook: Create a hook to compare the current time with the expiration time and use a setInterval in a useEffect to periodically check the token's expiration..

  3. Logout: Automatically logout and return user to login page as your app requires.

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

79218779

Date: 2024-11-23 20:39:41
Score: 1.5
Natty:
Report link

Late answer here, I ran into the same issue where it would use the 2 GPUs I have so I made a simple shell utility that allows to specify the numbers of servers you want to launch with a specific port range and it works very well!

https://github.com/theodufort/ollama-server-scaler

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Ted's Projects

79218776

Date: 2024-11-23 20:37:41
Score: 2.5
Natty:
Report link

Not typical. I’d suggest contacting Plaid support.

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

79218775

Date: 2024-11-23 20:36:41
Score: 0.5
Natty:
Report link

on Debian 9, just now, 2024-11-23 :-), run into the same problem, was fixed by replacing

cgi.assign = ( "cgi" => "" ) 

by just

cgi.assign = ( "" => "" ) 

in /etc/lighttpd/conf-available/10-cgi.conf

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

79218771

Date: 2024-11-23 20:33:40
Score: 2
Natty:
Report link

I also asked on github (https://github.com/keras-team/keras/issues/20369). It seems there is no simple solution to this problem, only workarounds. XLA-compilation would mean too much coding in my case, as this has to be implemented at very low abstraction level. Using buckets is something I already tried with somewhat feasible results and will be my go to approach: I pad the flexible input dimension to have a size, of a multiple of 10. Thus, I am reducing the retracing by a factor of 10 times, making the GPU somewhat feasible.

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

79218766

Date: 2024-11-23 20:31:39
Score: 1.5
Natty:
Report link

Levan explain it right: there are syntax errors in ports and volumes - to define list in yaml you need to have a space after dash (- something) and not -something.

But I want to add that if you want to check your configuration before start you should use command docker compose config which would catch schema issues like this:

validating /path/to/docker-compose-linter/docker-compose.yml: services.app.volumes must be a list

Or special docker compose linter which also catch schema issues, but additionally could provide recommendations for improving your Compose file:

   1:1     error  ComposeValidationError: instancePath="/services/app/ports", schemaPath="#/properties/ports/type", message="Validation error: must be array".  invalid-schema

✖ 1 problems (1 errors, 0 warnings)
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: zavoloklom

79218762

Date: 2024-11-23 20:28:39
Score: 3
Natty:
Report link

Some programmer dude solved the problem. Thank you! The problem was that I had a '\n' new line in resultChar I deleted the '\n' and now it works.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Trebor

79218747

Date: 2024-11-23 20:18:35
Score: 7 🚩
Natty:
Report link

I tried to add the code above on my taxonomy php file but it does not work. Does anyone have suggestion for me? The page that I want to add comment on: https://wisetoclick.com/store/webinarpress-coupon-codes/ The theme I use: WP coupon

Reasons:
  • RegEx Blacklisted phrase (3): Does anyone have
  • RegEx Blacklisted phrase (1): I want
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: trangnv91

79218744

Date: 2024-11-23 20:17:35
Score: 4
Natty: 4.5
Report link

To deploy your Docusaurus site online using GitHub Pages: https://tw-docs.com/docs/static-site-generators/docusaurus-search/#deploy-your-site-to-github-pages

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

79218743

Date: 2024-11-23 20:16:34
Score: 1.5
Natty:
Report link

I have followed what Marc said; yes, you can scrape products using their frontend API.

For easier access, try the API: Shopee Working API

The only limitation with this API is that there is no search endpoint right now.

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

79218738

Date: 2024-11-23 20:13:34
Score: 2
Natty:
Report link

When do do:

?NOLIST, SOURCE =util(term_write_int)

You are telling the TAL compiler to look for a TACL DEFINE called "=UTIL". If you want to do it in this way, you should add the DEFINE to TACL environment before calling the TAL compiler for compiling your main, otherwise you will receive that error "No file system DEFINE exists for this logical file name: =util"

you can reference your file directly:

?NOLIST, SOURCE $vol.subvol.util(term_write_int)

Or, previously calling the compiler:

ADD DEFINE =UTIL, FILE $VOL.SUBVOL.UTIL

TAL /IN MAIN/ ....

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): When do
  • Low reputation (1):
Posted by: Agustín Metz

79218729

Date: 2024-11-23 20:09:33
Score: 0.5
Natty:
Report link

No, this is not how modules are used. You are trying to use CommonJS syntax with its require and module.exports. With classes, you rather need ES6 syntax, that is, defined by ECMAScript standards starting v.6. Please see this Stackoverflow answer. If by some reason you have to use CommonJS way (one case where it is still required is the Visual Studio Code extension API), you can restructure your code to do so, we can discuss it. Let's see how to do it with ES6.

In one module, you can define and export a class, for example,

export class Movie { /* ... */ }

Alternatively, you can export several objects in one line:

export { Movie, AnotherClass, SomeFunction, someObject };

To use the class Movie outside this module, you need to import it

import { Movie } from "relative path to your module file name";
const movieInstance = new Movie(/* ... */);
// ...
movieInstance.displayMovieDetails();

Note that you can selectively choose what to import. You can also use alias names for your imported objects.

Please see the MDN Guide JavaScript modules.

Reasons:
  • Blacklisted phrase (1): Stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sergey A Kryukov

79218727

Date: 2024-11-23 20:08:33
Score: 2
Natty:
Report link

@Charlieface has already shared great options.Here is another one using Case statements only.I have used postgres as an example but let me know which db you are using so if needed syntax can be changed.

Fiddle

SELECT DISTINCT ON (Organization) 
    Organization,
    Year,
    Target
FROM manufacturer_status
WHERE Target IN ('Achieved', 'Partial')
ORDER BY Organization, 
    CASE 
        WHEN Target = 'Achieved' THEN 1
        WHEN Target = 'Partial' THEN 2
    END;

enter image description here

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

79218719

Date: 2024-11-23 20:06:32
Score: 4
Natty: 4
Report link

just a little side note if you want to search about other hot keys for vscode you can find it here: https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf

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

79218717

Date: 2024-11-23 20:04:31
Score: 2
Natty:
Report link

I had a similar "issue" found out that the chat box moved places, it is now at the right pane of vscode instead of the left pane. If it isnt there, in the top bar you can find a small icon, clic on it and you'll have the option to show the chat. (see image bellow)

vscode copilot chat

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

79218710

Date: 2024-11-23 20:02:31
Score: 1.5
Natty:
Report link

@Versus answer works, but has a few peculiar behaviors. It causes CustomView to intercept taps outside its frame, and it prevents buttons in the cover view (view5) from working. This version of hitTest fixes those cases:

override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
    if view1.point(inside: self.convert(point, to: view1), with: event) {
        // inside view1
        return view1
    } else if self.point(inside: point, with: event) {
        // inside CustomView (but outside view1)
        return super.hitTest(point, with: event)  // superview's tapped view  
    } else {
        // outside CustomView
        return nil
    }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Versus
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: P. Stern

79218690

Date: 2024-11-23 19:57:29
Score: 1.5
Natty:
Report link

You can distribute Javadocs file directly from a .jar in your Spring Boot app by developing a custom controller that can use the JarFile API to read and run files dynamically without unzipping. This helps you to access Javadoc files through URLs like /myapp/javadoc/index.html, making sure a clean and structured solution customized to your needs.. Optional Optimizations Cache Javadoc Files: If you expect high traffic, you can extract the Javadoc files into a temporary directory on startup and serve them from there for better performance. Add Security Filters: Validate the filePath parameter to avoid directory traversal attacks or unauthorized access to other files in the

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

79218683

Date: 2024-11-23 19:54:29
Score: 3.5
Natty:
Report link

I bumped jakarta.xml.bind-api to 4.0.2 and jaxb-runtime to 4.0.05 and the issue was fixed

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

79218673

Date: 2024-11-23 19:47:28
Score: 0.5
Natty:
Report link

I use Cypress 13.15.1, the following codes work for me.

npm install cypress-lighthouse;

Update cypress.config.js:

const { lighthouse, prepareAudit } = require('@cypress-audit/lighthouse');
module.exports = defineConfig({  
  e2e: {        },    
    setupNodeEvents(on, config) {
      // implement node event listeners here 
      on("task", {
       lighthouse: lighthouse(), // Registers the Lighthouse task
      });     
      on("before:browser:launch", (browser = {}, launchOptions) => {
        prepareAudit(launchOptions); // Prepares the browser for Lighthouse audits
      }); },  },
});

Testing Script:

import "@cypress-audit/lighthouse/commands";
describe('cypress test using lighthouse', () => {
    it('Lighthouse check scores on Home Page', ()=>{ 
        cy.once('uncaught:exception', () => false);              
        cy.visit("https://www.admlucid.com")            
        cy.lighthouse({
          performance: 80,      
          accessibility: 85,      
          "best-practices": 95,      
          seo: 75,      
          pwa: 30,      
          'first-contentful-paint': 2900,      
          'largest-contentful-paint': 3000,      
          'cumulative-layout-shift': 0.1,      
          'total-blocking-time': 500,           
        }); 
    });  })

https://www.youtube.com/channel/UCjJRU4qQ8FcRxruCia5CfJQ

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ADM Lucid Solution Inc.

79218668

Date: 2024-11-23 19:41:27
Score: 0.5
Natty:
Report link

In my quick test, the disabled "Active" button indicates that the plugin is already activated on the WordPress install. Go to the Plugins screen (/wp-admin/plugins.php) and see if the plugin is listed there and activated.

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

79218664

Date: 2024-11-23 19:36:25
Score: 5
Natty: 5.5
Report link

How do I return with a non-blurry higher-resolution image for thumbnail

Reasons:
  • Blacklisted phrase (1): How do I
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How do I
  • Low reputation (1):
Posted by: ryand32

79218661

Date: 2024-11-23 19:36:25
Score: 1
Natty:
Report link

I know that this is old question, but for people who also search authentication library for Play Framework: https://silhouette.readme.io/

Silhouette is an authentication library for Play Framework applications that supports several authentication methods, including OAuth1, OAuth2, OpenID, CAS, Credentials, Basic Authentication or custom authentication schemes.

Last version of Silhouette for now is 7.0 and it’s available for Scala 2.12/.13 and Play Framework 2.8.

https://silhouette.readme.io/docs/providers - here is info about authentifacation schemas that Silhouette provides.

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

79218660

Date: 2024-11-23 19:35:25
Score: 0.5
Natty:
Report link

For raw HTML in inline context, you can generate a custom role based on the "raw" role:

.. role:: HTML(raw)
   :format: html

and use it like

你\ :HTML:`<ruby>好<rt>hǎo</rt></ruby>`\ 呀!

The backslash-escaped spaces are required so that the inline markup is recognized. (Alternatively, set the character-level-inline-markup configuration setting to True.)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: G. Milde

79218647

Date: 2024-11-23 19:27:24
Score: 2.5
Natty:
Report link

Store the state in the URL or in local storage (I would recommend the URL) Store the stage of the setup and any dialogues they are open, put them in an object JSON stringify them and put them in window.location.hash

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

79218646

Date: 2024-11-23 19:27:24
Score: 2.5
Natty:
Report link

First make the app image executable using:

chmod +x appimage-file

Then run it using:

./appimage-file

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

79218641

Date: 2024-11-23 19:26:23
Score: 5
Natty: 4.5
Report link

https://www.youtube.com/watch?v=Wthmab2pI-o&ab_channel=IntelliLogics

in this video solution is given and it works perfectly

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (1): this video
  • Whitelisted phrase (-1): solution is
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Harsh Dubey

79218640

Date: 2024-11-23 19:25:23
Score: 2.5
Natty:
Report link

The error is due to the Event object not being defined in your code. In Python, the Event object comes from the threading module, but it seems that you haven't imported it in your Object_Avoidence.py script.

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

79218634

Date: 2024-11-23 19:21:22
Score: 0.5
Natty:
Report link

I had a similar problem, and the problem was in position: sticky, it looks like you're using tailwindCSS. I see class sticky in navbar. Try to change styles on position fixed, and add z-index. I hope this helps.

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Anton Palchyk

79218627

Date: 2024-11-23 19:15:21
Score: 0.5
Natty:
Report link

Thanks to this GitHub thread, I was able to solve this. This basically helps Snyk to remove scanning issue on the nth-check.

"dependencies": {
    "react-scripts": "^5.0.1",
    "web-vitals": "^2.1.4",
    "nth-check": "^2.1.1"
  },
  "overrides": {
    "nth-check": "^2.1.1",
    "postcss":"^8.4.38"
  }

See more : GitHub Answer

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Faizan Ahmad

79218615

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

Issue https://github.com/flutter/flutter/issues/15953 it works:

AspectRatio(
  aspectRatio: 1,
  child: ClipRect(
    child: FittedBox(
      fit: BoxFit.cover,
      child: SizedBox(
        width: _controller!.value.previewSize.height,
        height: _controller!.value.previewSize.width,
        child: CameraPreview(_controller!),
      ),
    ),
  ),
)
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bombicode

79218614

Date: 2024-11-23 19:07:19
Score: 4.5
Natty:
Report link

I have some suggestions to improve you training results.

These are general tips, but would help if we get more information about your use case:

Reasons:
  • RegEx Blacklisted phrase (2.5): Could you share some
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Farouk GHALLABI

79218611

Date: 2024-11-23 19:05:19
Score: 3.5
Natty:
Report link

just add a file in the.venv folder and use that file

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

79218606

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

The input line is too long and the syntax of command is incorrect while running the zookeeper in window.: Solution :- 1. Make sure the JAVA_NOME path is set. 2. Direct download and extract under c drive and rename the folder as kafka. C:\kafka>.\bin\windows\zookeeper-server-start.bat .\config\zookeeper.propertiesenter image description here

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

79218597

Date: 2024-11-23 18:58:17
Score: 5.5
Natty:
Report link

Para activar el modo silencio del dispositivo desde tu aplicación en Android, necesitas usar la clase AudioManager y solicitar el permiso Do Not Disturb. Aquí te muestro cómo hacerlo: 1. Solicitar el permiso "No molestar" (Do Not Disturb) Primero, debes agregar el permiso android.permission.ACCESS_NOTIFICATION_POLICY en tu archivo AndroidManifest.xml:

<uses-permission android:name="android.permission.ACCESS_NOTIFICATION_POLICY" />

Luego, en tiempo de ejecución, debes solicitar el permiso al usuario si aún no lo has hecho. Puedes usar la función ActivityCompat.requestPermissions() para esto. 2. Activar el modo silencio Una vez que tengas el permiso, puedes usar el siguiente código para activar el modo silencio:

val audioManager = getSystemService(Context.AUDIO_SERVICE) as AudioManager
val notificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && !notificationManager.isNotificationPolicyAccessGranted) {
    // Solicitar permiso al usuario
    val intent = Intent(Settings.ACTION_NOTIFICATION_POLICY_ACCESS_SETTINGS)
    startActivity(intent)
} else {
    // Activar modo silencio
    audioManager.ringerMode = AudioManager.RINGER_MODE_SILENT 
}

Explicación: Obtener instancias de AudioManager y NotificationManager: Se obtienen las instancias necesarias para controlar el audio y las notificaciones.

Verificar el permiso y la versión de Android: Se comprueba si la aplicación tiene el permiso "No molestar" y si la versión de Android es compatible.

Solicitar permiso (si es necesario): Si no se tiene el permiso, se redirige al usuario a la configuración para que lo otorgue.

Activar modo silencio: Si se tiene el permiso, se establece el modo de timbre del AudioManager en RINGER_MODE_SILENT.

Consideraciones:

Permiso "No molestar": Este permiso es necesario para modificar el modo de timbre del dispositivo en Android 6.0 (Marshmallow) y versiones posteriores.

Modos de timbre: AudioManager tiene otros modos de timbre como RINGER_MODE_NORMAL (normal) y RINGER_MODE_VIBRATE (vibración). Puedes usarlos según tus necesidades.

Manejo de errores: Es recomendable agregar manejo de errores para casos en los que no se pueda obtener el permiso o acceder al AudioManager. Espero que esto te ayude a activar el modo silencio del dispositivo desde tu aplicación.

Saludos.

Reasons:
  • Blacklisted phrase (2): Espero
  • Blacklisted phrase (1): cómo
  • Blacklisted phrase (2): código
  • Blacklisted phrase (1.5): Saludos
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Luis

79218589

Date: 2024-11-23 18:57:16
Score: 3
Natty:
Report link

Why this program is not showing reverse number?

Learners Institute of Modern Studies

var n, t, rev; n=parseInt(prompt("Enter a number")); rev=0; t=n; while(t!=0) { rev=10*rev+t%10; t=t/10; } document.write("Actual Number = "+ n+"
"); document.write("Reverse Number = "+ rev+"
");
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why this
  • Low reputation (1):
Posted by: Asif Ayaz

79218587

Date: 2024-11-23 18:56:16
Score: 0.5
Natty:
Report link

This feels like not an issue with the strip-api-prefixes middleware not stripping the prefix, but some other issue with the IngressRoute configuration.

Why? Because, the 404 you are describing: "404 - page not found" sounds a lot like the Traefik default 404 page, which would mean the web traffic is not even getting to your service.

You should try the port-forward to service again (kubectl port-forward svc/api-golang -n demo-app 8000:8000) and browsing (or curling) the address with the bad prefix (http://127.0.0.1:8000/api/golang) and compare the 404 coming back from the app vs the 404 coming back from Traefik. Do they look different? If so, then the 404 with the Traefik port-forward is likely coming from Traefik due to a route issue, and not from your Go pod, because of an unstripped prefix.

There is a bunch of other things to look at that can help troubleshoot this:

I would be happy to help out more, but without any error messages from the live objects or the API / ingress pods, I'm just guessing, based on my own Traefik experience.

Reasons:
  • Blacklisted phrase (0.5): Why?
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jason Snouffer

79218586

Date: 2024-11-23 18:56:16
Score: 3.5
Natty:
Report link

I know, this is old, but I have to thank Marcin for his very detailed answer.

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

79218582

Date: 2024-11-23 18:52:15
Score: 2
Natty:
Report link

The process to provision your information can be found here in-depth, you can skip right to the create a certificate profile step. But like you said, you are still awaiting public trust identity validation. You could potentially test using a private trust model

Regarding where is the certificate store, it's not on an AKV, its stored on an hsm.

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

79218570

Date: 2024-11-23 18:46:14
Score: 2
Natty:
Report link

in the excel function call:

MAX(D11:D23)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dan

79218548

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

I found one however it might not be wise to go this way. Reason is code maintenance. This class lib is done once and OS upgrades are not well handled. Another reason against that approach is one of the biggest strengths of ThreadX - (A)SIL compliance. If SIL compliance will be needed, the wrapper creates unnecessary increase of complexity.

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

79218517

Date: 2024-11-23 18:16:09
Score: 1
Natty:
Report link

We can't do linky.set("shazoo"), can we?

We can.

To me, it appears that the only difference is the verbose multi-line syntax is required.

By the way, the simple form is also available:

linky = linkedSignal(() => this.siggy() * 2));
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Tortila

79218500

Date: 2024-11-23 18:04:07
Score: 5
Natty: 4.5
Report link

How does this work inside a package? I am guessing my sub private($self, $args){$self->global_method($args)..} will not work?

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

79218492

Date: 2024-11-23 17:57:05
Score: 3.5
Natty:
Report link

OK, I tried running hello.c and got a can't find cc1 error. Decided to try same with a fresh OS install. It works AND, which cc1 returns nothing? Anyway, something I installed must have messed up gcc so I'll close this issue.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Quentin Meek

79218491

Date: 2024-11-23 17:57:05
Score: 3
Natty:
Report link

As Hett replied above creating a cast is indeed the best solution if you have access to the database.

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

79218481

Date: 2024-11-23 17:51:04
Score: 1
Natty:
Report link

In my case this error popped up when I was trying to use a Pinia store in another store's action.

Moving the line const overviewStore = useOverviewStore() into a component instead solved the issue

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

79218479

Date: 2024-11-23 17:51:04
Score: 3
Natty:
Report link

dict1 = {'a': 1, 'b': 2} dict2 = {'b': 3, 'c': 4}

dict1.update(dict2)

print(dict1)

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sai Jahnavi

79218475

Date: 2024-11-23 17:50:04
Score: 4
Natty:
Report link

There is proposal for a solution to add support for array columns to all agg functions: https://github.com/trinodb/trino/issues/22445

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