79190471

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

Instead of using handle_path, I need to use header as defined in Caddy's documentation here https://caddyserver.com/docs/caddyfile/directives/header

Here's the corrected version of my Caddyfile

<my domain> {
        root * /home/<my username>/caddy

        header /Build/Build.data.gz {
            Content-Encoding gzip
            Content-Type application/gzip
        }
        header /Build/Build.framework.js.gz {
            Content-Encoding gzip
            Content-Type application/javascript
        }
        header /Build/Build.wasm.gz {
            Content-Encoding gzip
            Content-Type application/wasm
        }
        header /Build/Build.loader.js {
            Content-Type text/javascript
        }

        # Default handling for other files, e.g., frontend routes
        try_files {path} /index.html
        file_server
}
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jules

79190464

Date: 2024-11-14 21:31:52
Score: 2
Natty:
Report link

FYI the dumb mistake that may have led to many people reading this StackOverflow question is accidentally launching Visual Studio 2019 when you meant to launch Visual Studio 2020.

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

79190461

Date: 2024-11-14 21:28:51
Score: 2.5
Natty:
Report link

You can list and automatically upgrade all go bin packages to the latest versions using

https://github.com/Gelio/go-global-update

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

79190443

Date: 2024-11-14 21:21:50
Score: 0.5
Natty:
Report link

I needed to specify a coreid when creating targets. I added this line to add it to each target.

$_TARGET_NAME configure -coreid $_CORE

One of the coreid descriptions in section 11.3 Target Configuration states:

This value coreid is currently also used in other contexts as a general CPU index, e.g. in SMP nodes or to select a specific CPU in a chip.

After I was able to view all the cores as threads, I had an issue where I couldn't step instructions in the secondary cores. I think this is related to the target state for each of the cores.

To fix this I'm running monitor targets <core number> to select a core. Then I run monitor step to put a core in the single-step state. Then I'm allowed to single step in GDB.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: CorkiMain

79190441

Date: 2024-11-14 21:21:50
Score: 0.5
Natty:
Report link

Not sure when it started, but in SQL Server 2019 you can use FOR JSON AUTO:

select LEFT(@@VERSION,38) as "SQL Server Version is" ,p.person_id ,p.person_name ,a.pet_id ,a.pet_name from @Persons p join @Pets a on p.person_id = a.pet_owner FOR JSON AUTO

Result: [ { "SQL Server Version is": "Microsoft SQL Server 2019 (RTM-CU28-GD", "person_id": 2, "person_name": "Jack", "a": [ { "pet_id": 4, "pet_name": "Bug" }, { "pet_id": 5, "pet_name": "Feature" } ] }, { "SQL Server Version is": "Microsoft SQL Server 2019 (RTM-CU28-GD", "person_id": 3, "person_name": "Jill", "a": [ { "pet_id": 6, "pet_name": "Fiend" } ] } ]

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @Persons
  • User mentioned (0): @Pets
  • Low reputation (1):
Posted by: LOCOCHON2020

79190424

Date: 2024-11-14 21:10:47
Score: 2.5
Natty:
Report link

How do I set scale_y_reverse and coord_cartesian()? I've tried the code below but it doesn't reverse y scale.

p + geom_line() +
coord_cartesian(ylim=c(0, 10))+
  scale_y_reverse() 
Reasons:
  • Blacklisted phrase (1): How do I
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How do I
  • Low reputation (0.5):
Posted by: LZ24AP

79190420

Date: 2024-11-14 21:08:46
Score: 1.5
Natty:
Report link

` <# You can create the function, call the array results and then store them in the array again using a foreach-object loop. Such as: #>

<# not sure it is nessesary but is always a good practice to declare the array outside the function. #>

Function make-Array { param ( $something ) <# some code here, param is optional #>

$some_array = @(time1, item2, item3)

<# make sure to call the array here, this will print out all the contents of the array. #> $some_array

return #leave this blank }

<# This is where you can get the array stored. #>

Make-Array $data | Foreach-object {some_array += $_}

<# This will now take each deserialized output from the array in the function and then add them back again to the array, or anything else you'd like. Sicne the arrya is already global you do not need to pass it as an argument to the function nor do you need to declare it inside the funciton. #>`

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

79190416

Date: 2024-11-14 21:07:46
Score: 1.5
Natty:
Report link

TLDR: if you're creating the next app inside windows file system (eg: /mnt/c/...etc) then DON'T. Use a folder within WSL / Ubuntu file system instead (eg: /home/user/...).

I was looking everywhere online for a solution and all of them was directing me towards adding different options to package.json, but there was no post that talks about making sure that you're not creating the app within windows file system instead of the linux file system. This lead me to a back and forth among many attempts to reinstall everything and lead to no solutions. All I had to do was create the app within the Ubuntu file system instead ( since I am using Ubuntu as my WSL distro ). Hope this post will help someone out!

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

79190412

Date: 2024-11-14 21:07:46
Score: 2.5
Natty:
Report link

You could have the user host the image somewhere and paste the link, or you could have a image hosting service specifically for your website. (like SO)

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

79190409

Date: 2024-11-14 21:06:46
Score: 3.5
Natty:
Report link

You have to post full trace to help us understand your problem. Maybe Android Studio/File->Invalidate Cache could help? Libgdx Litoff generated sample project should run without any problem "from the box". Just checked it yesterday.

Reasons:
  • RegEx Blacklisted phrase (1): help us
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Olehandro

79190408

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

"https://gorest.co.in/public/v2/posts" This returns a list of posts. So it doesn't have id as a parameter.

Try using .body("find { it.id == 167039 }.id", equalTo(167039))

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

79190406

Date: 2024-11-14 21:04:45
Score: 2.5
Natty:
Report link

Sorry to bump this old thread, but I just upgraded my 2018 intel mbp to a m4 mac mini just to find out that i can't run java6 (yes, I use this for my work and I can't upgrade)

I'm trying to run it with rosetta, and doing a java -version shows version and everything, except I get a segmentation fault 11 (which I don't know what means)

Is there any possibility to run java6 on a silicon mac? I don't care if native or emulated just need it to work.

Also, would there be a way to run a virtual machine with my intel mac os installation over the m4 mac mini? That would work for me too...

Reasons:
  • Blacklisted phrase (1): Is there any
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Roberto Martin

79190398

Date: 2024-11-14 21:03:43
Score: 6.5 🚩
Natty: 6.5
Report link

Not so clear about how this works.

Q1: let's say I have an Excel file named MyFile in directly C:MyDir. How do I get the C++ code to find and access this file?

Q2: let's say I have two columns of data to read in the c++ code I am creating. First column cells A1 to A10 and corresponding cells B1 to B10. How do I read this data in my c++ code? I do want to create for example if conditions such as if (A1=5) then (B1=0).

Thanks in advance.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): How do I
  • RegEx Blacklisted phrase (3): Thanks in advance
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: user23475860

79190393

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

You need to use an input audio stream which has the AcousticEchoCanceler effect applied.

The SpeechRecognizer API doesn't have a way to simply turn that on. You need to capture input audio yourself, then pass that into the SpeechRecognizer through EXTRA_AUDIO_SOURCE.

The input audio stream needs to be configured in a way that supports the AcousticEchoCanceler effect. https://stackoverflow.com/a/38021196 has more details on that.

Since you asked about Google Assistant: apps like that probably don't use the SpeechRecognizer API since they're trying to detect a specific phrase (a more specialized model would be more effective).

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ahaan Ugale

79190380

Date: 2024-11-14 20:54:40
Score: 0.5
Natty:
Report link

Try using substring like this:

const str="12345678";
const sub = str.substring(2, str.length-1); // "34567"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: mankowitz

79190379

Date: 2024-11-14 20:54:40
Score: 1.5
Natty:
Report link

Solution suggested in the comments:

// gl-matrix
type vec3 = [number, number, number] | Float32Array;
type ReadonlyVec3 = readonly [number, number, number] | Float32Array;
// three.js
type Vector3 = {x:number, y:number, z:number}

interface Thing{
    setPosition(p:ReadonlyVec3): void
    getPosition():ReadonlyVec3
}

class ThreeJsThing implements Thing{
    private position:Vector3 = {x:0, y:0, z:0}
    setPosition(p:ReadonlyVec3){
        // actually this.position.set(p[0], p[1], p[2])
        this.position.x = p[0]
        this.position.y = p[1]
        this.position.z = p[2]
    }
    getPosition(){
        // actually return vec3.fromValues(...) as const
        return [
            this.position.x,
            this.position.y,
            this.position.z
        ] as const
    }
}

let thing = new ThreeJsThing()
let position = [1, 2, 3] as vec3
thing.setPosition(position)
console.log(thing.getPosition())
console.log(thing.getPosition()[1])
// position = thing.getPosition() // Type 'readonly [...]' is not assignable to type 'vec3'.
// thing.getPosition()[1] = 5 // Cannot assign to '1' because it is a read-only property.

Here is another solution that was posted by KLASANGUI, got downvoted into oblivion and then deleted. Use with caution, it probably opens a whole nother can of worms and blows up at three more places but I consider it absolutely valid and a beautiful JavaScript flex. It completely solves every problem I stated without syntactic sugar compromises.

// gl-matrix
type vec3 = [number, number, number] | Float32Array;
type ReadonlyVec3 = readonly [number, number, number] | Float32Array;
// three.js
type Vector3 = { x: number, y: number, z: number }

interface Thing {
    position: vec3
}

class ThreeJsThing implements Thing {
    #position: Vector3 = { x: 0, y: 0, z: 0 }

    set position(p: vec3) {
        this.#position.x = p[0]
        this.#position.y = p[1]
        this.#position.z = p[2]
    }

    get position() {
        let p = this.#position
        const accessor = {
            length: 3,
            set 0(x:number) { p.x = x },
            get 0() { return p.x },
            set 1(y:number) { p.y = y },
            get 1() { return p.y },
            set 2(z:number) { p.z = z },
            get 2() { return p.z }
        };
        Object.setPrototypeOf(accessor, Array.prototype);
        return accessor as vec3
    }
}

let thing = new ThreeJsThing()
let position = [1, 2, 3] as vec3
thing.position = position
thing.position[1] = 5
position = thing.position
console.log(position)
Reasons:
  • RegEx Blacklisted phrase (2): downvote
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mircode

79190361

Date: 2024-11-14 20:45:36
Score: 6.5 🚩
Natty: 5
Report link

Did you find the root cause of this issue ? It seems to be present since version 15 of Keycloak.

We got the same error, but nothing about the issue in forums or from Keycloak.

Thanks!

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

79190349

Date: 2024-11-14 20:41:35
Score: 2
Natty:
Report link

function handleEvent() {

// write the code for injecting

}

window.addEventListener('click', handleEvent);

window.addEventListener('scroll', handleEvent);

window.addEventListener('mouseover', handleEvent);

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

79190336

Date: 2024-11-14 20:35:33
Score: 0.5
Natty:
Report link

Can't see any Camera, Viewscreen and Stage in your GameScreen. If you got some, don't forget to add Board actor to the stage. I have mine in Main class:

    @Override
    public void create() {
        guiCamera = new OrthographicCamera(SCREEN_WIDTH, SCREEN_HEIGHT);
        guiCamera.setToOrtho(false, SCREEN_WIDTH, SCREEN_HEIGHT);
        if (isMobile()) {
            guiViewport = new ExtendViewport(SCREEN_WIDTH, SCREEN_HEIGHT, guiCamera);
        } else {
            guiViewport = new FitViewport(SCREEN_WIDTH, SCREEN_HEIGHT, guiCamera);
        }
...

and then (i have many screens), in screen i:

public ScreenLoader(Main main) {
    this.main = main;
    batch = new SpriteBatch();
    stage = new Stage();
    stage.setViewport(guiViewport);

..here i init and add actors. And don't forget to

@Override
public void render(float delta) {
    stage.act(delta);
    stage.draw();
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): Can't
  • Low reputation (1):
Posted by: Olehandro

79190334

Date: 2024-11-14 20:34:33
Score: 0.5
Natty:
Report link

As I wrote in this (possibly duplicate) question

The inputType event property is used to determine the kind of change that was performed, since the input event is triggered after the change has taken place.

Notice, it is not allowed to set the inputType as an event detail on a system event, but this work-around seems to work in my own tests.

    const inpType = "insertText";

    const evt = new Event('input', { bubbles: true, cancelable: true })
    evt.inputType = inpType;
    inputField.dispatchEvent(evt);

Please read this documentation (and try the sample within) on Mozilla.org

Here are the behaviors triggering the various inputType enums: w3c.org

Reasons:
  • Blacklisted phrase (1): this document
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Thomas Williams

79190325

Date: 2024-11-14 20:31:32
Score: 0.5
Natty:
Report link

This setup worked for me:

docker-compose.yml

ollama:
  ...
  entrypoint: ["/entrypoint.sh"]
  volumes:
    - ...
    - ./entrypoint.sh:/entrypoint.sh
  ...

entrypoint.sh

Make sure to run sudo chmod +x entrypoint.sh

Adapted from @datawookie's script:

#!/bin/bash

# Start Ollama in the background.
/bin/ollama serve &
# Record Process ID.
pid=$!

# Pause for Ollama to start.
sleep 5

echo "Retrieving model (llama3.1)..."
ollama pull llama3.1
echo "Done."

# Wait for Ollama process to finish.
wait $pid

Why this approach?
By pulling the model in the entrypoint script rather than in the Docker image, you avoid large image sizes in your repository, storing the model in a volume instead for better efficiency.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @datawookie's
  • Low reputation (1):
Posted by: M E

79190319

Date: 2024-11-14 20:29:31
Score: 2.5
Natty:
Report link

are you looking for?

filter: drop-shadow(0px 0px 20px red)

img{
  filter: drop-shadow(12px 10px 4px rgba(0,0,20,0.18))
}
<img src="https://interactive-examples.mdn.mozilla.net/media/examples/firefox-logo.svg" width=100/>

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

79190312

Date: 2024-11-14 20:26:30
Score: 4
Natty:
Report link

Thank you,"minSdk = flutter.minSdkVersion" to "minSdk = 23" work for me too. :)

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Lau

79190311

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

Another solution would be to concat the values and use regular expression.

dfa['address'].str.contains(df['street'].str.cat(sep='|'), regex=True)

But this is not very performant for large data sets.

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

79190310

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

For quick success, just use: https://pypi.org/project/defisheye/ (or if you prefer: https://github.com/duducosmos/defisheye)

pip install defisheye

defisheye --images_folder example/images --save_dir example/Defisheye

or (taken from link):

from defisheye import Defisheye

dtype = 'linear'
format = 'fullframe'
fov = 180
pfov = 120

img = "./images/example3.jpg"
img_out = f"./images/out/example3_{dtype}_{format}_{pfov}_{fov}.jpg"

obj = Defisheye(img, dtype=dtype, format=format, fov=fov, pfov=pfov)

# To save image locally 
obj.convert(outfile=img_out)

# To use the converted image in memory

new_image = obj.convert()

Check link for more details on how to use.

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

79190306

Date: 2024-11-14 20:25:30
Score: 2.5
Natty:
Report link

I had the same question! Finally, after a bit of searching, I found it:

https://sonarsource.github.io/rspec/#

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Matthew

79190288

Date: 2024-11-14 20:18:28
Score: 1
Natty:
Report link

I am probably late to the party, but if anybody else is wondering how to solve this issue, you can set CKeditor to readonly mode. That way the CSS will work properly images will be also rendered properly. Below you will find my implementation in angular 18, using CKeditor 5.

Implementation

TS

public ReadOnlyEditor = ClassicEditor;

ngAfterViewInit(): void{
    this.previewText = "<p>Hello world</p>";
    this.readonlyConfig = {
        toolbar: {
            items: [],
        },
        plugins: [
            ...same plugins as in CKeditor you use to create content
        ],
        initialData: this.previewText, //text inside editor
        menuBar: {
            isVisible: false
        },
    };
    this.isLayoutReady = true;
}

previewReady(editor: any){
    editor.enableReadOnlyMode("1"); //set readonly mode
}

HTML

<ckeditor *ngIf="isLayoutReady" 
          [editor]="ReadOnlyEditor" 
          (ready)="previewReady($event)" 
          [config]="readonlyConfig"/>
Reasons:
  • Blacklisted phrase (1): how to solve
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Peter Vanát

79190283

Date: 2024-11-14 20:16:27
Score: 0.5
Natty:
Report link

Specifying region_name and signature_version using a Config Object in the client is what worked for me. If you wanna know more about Config https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html

    s3_client: Session = boto3.client(
        "s3",`enter code here`
        config=Config(
            signature_version="s3v4",
            region_name="us-west-2"
            ),
        )
Reasons:
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: dhwanil thakkar

79190272

Date: 2024-11-14 20:13:26
Score: 0.5
Natty:
Report link

I find it important to notice, that the input event has some complexity around the event.inputType property which can be challenging to mimic.

The inputType event property is used to determine the kind of change that was performed, since the input event is triggered after the change has taken place.

Notice, it is not allowed to set the inputType as an event detail on a system event, but this work-around seems to work in my own tests.

    const inpType = "insertText";

    const evt = new Event('input', { bubbles: true, cancelable: true })
    evt.inputType = inpType;
    inputField.dispatchEvent(evt);

Please read this documentation (and try the sample within) on Mozilla.org

Here are the behaviors triggering the various inputType enums: w3c.org

Reasons:
  • Blacklisted phrase (1): this document
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Thomas Williams

79190250

Date: 2024-11-14 20:02:24
Score: 4
Natty:
Report link

Its Really Hard To Say about problem

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

79190246

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

You can use an app "static site" configuration. This adds default /index.html reading when deployed multiple files.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
Posted by: morhook

79190242

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

It sounds like you're wanting to get returned to you everything that is not otherwise captured in a capture group. There is no regex functionality to do that.

What is the problem you're trying to solve? If you go and match

pattern = r"Date: (\d{4})-(\d{2})-(\d{2})"

then what are you going to do with the results?

leftovers = ["Date: ", "-", "-", ""]
Reasons:
  • RegEx Blacklisted phrase (1.5): solve?
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: Andy Lester

79190240

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

I had this problem when I replaced one event function with another for the same prefix. I deleted the function by deploying without any function for that event, then redeploying with that function. I guess I could have manually gone in the console and deleted the event...

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

79190237

Date: 2024-11-14 19:58:23
Score: 1.5
Natty:
Report link
set myvar=Yes
if %myvar%=="Yes" (
echo Myvar is yes
set myvar=nothing
)

or you can just use "&" like this:

set myvar=Yes
if %myvar%=="Yes" echo Myvar is yes&set myvar=nothing
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Talibu Mammadov

79190229

Date: 2024-11-14 19:56:22
Score: 1.5
Natty:
Report link

The setting to get the schedule task configured to run in Windows 10 is to include one more statement for the settings

settings.compatibility = 6

Thanks to AI for pointing me to this solution.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: igittr

79190225

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

With System.Text.Json this works:

var jsonString = "  {  \n\r\t\"title\": \"Non-minified JSON string\"\n\r  }  ";        
var minifiedJsonString = JsonNode.Parse(jsonString)?.ToJsonString();
Console.WriteLine(minifiedJsonString);

// Output {"title":"Non-minified JSON string"}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Victor SDK

79190221

Date: 2024-11-14 19:52:21
Score: 1.5
Natty:
Report link

try to write patch in uppercase 'PATCH' it worked for me

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

79190213

Date: 2024-11-14 19:49:20
Score: 2
Natty:
Report link

My recommendation is to switch from occ to geo geometrical kernel. I am practically sure it solve your problem. I think it will be enough to change .occ. to .geo. in the names of the functions for that.

I have met similar problem recently. One could see my digging here - https://dev.opencascade.org/content/time-and-memory-consumption-gmsh-occt-operation.

Bon chance.

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

79190211

Date: 2024-11-14 19:49:20
Score: 1
Natty:
Report link

I was facing the same issue.

After hours of trying to restart Android Studio, removing the platform, invalidating caches, etc., what actually worked was to remove the build tools from the Android Studio SDK manager and install them again.

So I invalidated the cache just to be sure, restarted Android Studio again and everything worked as expected.

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

79190210

Date: 2024-11-14 19:48:20
Score: 1.5
Natty:
Report link

in the computer system, select the system environment. change the directory of your repo results power shell with your python script if your cmd makes an error. Select your power shell in the computer environment. Usually the repo file is on the computer disk /C: the computer will restart for the PATH environment. so you have to restart the computer. it should be running to build my chromium.

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

79190207

Date: 2024-11-14 19:48:20
Score: 1
Natty:
Report link

I am on Mac OSX, and sem_init is not supported (it was returning -1). I tried running the same code on a linux machine and it worked fine.

Moral of the story: I'm a goober and should check my return codes.

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

79190202

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

In React you need to open index.html and insert in the <head> Embed code from https://fonts.google.com/selection/embed like the following one:

<style>
@import url('https://fonts.googleapis.com/css2?family=Catamaran:[email protected]&family=Fascinate+Inline&display=swap');
</style>

It helped me :)

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

79190201

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

I had the same error, but in my case the problem was an unclosed // <!CDATA[ section in my code. Closing the section fixed the error.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: SkylerA

79190199

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

To start with, I've tested your roundtrip and found that it does work correctly.

What's the difference between your and my code? I did not want to enter full assembly name manually, instead, I obtained the right name using the assembly I reflected, in my case,

var assemblyName = Assembly.GetEntryAssembly().FullName;

Apparently, it gave me the correct name. As your and my code difference is only in the first line, I should suggest that your manually entered full assembly name is wrong. I mean, it can be a correct name, otherwise you would not obtain t1, but not the name you need. Why, indeed, your assemblyName string value starts with "My.AssemblyName", but the namespace of your typeName is "My.Namespaced"?! In my test, both strings match.

Conclusion: to fix your problem, you need to check two strings in the two first lines of your code. If you enter the correct names, everything else will work, I'll guarantee that.

I want to add something else. Using reflection based on constant or immediate constant string value is flawed by design. It never can be made reliable and maintainable. Names can change during the support cycle, people can misspell them, people can rename namespaces and forget those strings, and so on. Moreover, I don't think that .NET standards guarantee strongly fixed naming schemas. After all, it badly violates the S.P.O.T. principle (Signle Point of Truth).

However, I can understand that you're doing it for research or learning purposes. In working code, you need to use reliable methods never using string data on input. To do so, you have to traverse all methods, all properties, or all fields; in other cases, all members. Just for the idea: sometimes, you mark your members with a custom attribute and search by the presence of that attribute. In other cases, you may need to search a class implementing some interface, obtain its instance, and then use the interface directly, not reflecting separate methods. In these approaches, you never need the string representation of these attributes or interfaces. There can be different schemas for such reflection, what I mentioned above were just two examples to give you some basic ideas.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Sergey A Kryukov

79190194

Date: 2024-11-14 19:42:18
Score: 1.5
Natty:
Report link

I found in the api Graph of Microsoft GET https://graph.microsoft.com/v1.0/communications/callRecords/{callchainid}

The response give me a initiator of call into organize_v2 the name of initiator

`HTTP/1.1 200 OK Content-type: application/json

{ "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#communications/callRecords/$entity", "version": 1, "type": "peerToPeer", "modalities": [ "audio" ], "lastModifiedDateTime": "2020-02-25T19:00:24.582757Z", "startDateTime": "2020-02-25T18:52:21.2169889Z", "endDateTime": "2020-02-25T18:52:46.7640013Z", "id": "e523d2ed-2966-4b6b-925b-754a88034cc5", "[email protected]": "https://graph.microsoft.com/v1.0/$metadata#communications/callRecords('e523d2ed-2966-4b6b-925b-754a88034cc5')/organizer_v2/$entity", "organizer_v2": { "id": "821809f5-0000-0000-0000-3b5136c0e777", "identity": { "user": { "id": "821809f5-0000-0000-0000-3b5136c0e777", "displayName": "Abbie Wilkins", "tenantId": "dc368399-474c-4d40-900c-6265431fd81f" } } }, "[email protected]": "https://graph.microsoft.com/v1.0/$metadata#communications/callRecords('e523d2ed-2966-4b6b-925b-754a88034cc5')/participants_v2/$entity" }`

Thanks everyone!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Antonio Navarro Ortin

79190178

Date: 2024-11-14 19:31:15
Score: 1.5
Natty:
Report link

Check for Corrupt Data Files

  1. List item Navigate to xampp/mysql/data/.
  2. Back up the data folder by copying it to another location.
  3. Navigate to xampp/mysql/backup/.
  4. Copy everything from backup into the data folder (except for ibdata1).
  5. Now try restarting MySQL.
Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: ByteRoots

79190168

Date: 2024-11-14 19:25:13
Score: 1
Natty:
Report link

I was getting this error, and it was due to including a third party .dylib file in my app. I converted the library to a framework and that fixed it. This other post covers how to do that: Embedding a .dylib inside a framework for iOS

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

79190167

Date: 2024-11-14 19:25:13
Score: 1
Natty:
Report link
  1. PDF Viewer Extension:

    • Install the "vscode-pdf" extension from the marketplace. This extension has a built-in PDF viewer and matches your VSCode theme, so if you're using a dark theme in VSCode, the extension will display the interface elements (like toolbars) in dark mode, but it may not change the actual content of the PDF itself.
  2. Dark Reader Extension (for full dark mode):

    • For PDFs with light backgrounds, try installing the "Dark Reader" extension for VSCode. It forces a dark theme across everything in VSCode, including webview content. Sometimes, this can darken the background of PDFs too, but it may not be perfect with all files.
  3. Alternative PDF Viewers:

    • If neither option fully meets your needs, another option is using an external PDF viewer that supports dark mode, like Adobe Acrobat Reader or SumatraPDF with dark mode. They usually have advanced viewing features and make it easy to switch between light and dark backgrounds.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Krishna

79190139

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

Look at the first item in the "WrapPanel" (first image). How does its "size" compare to all the items that follow it? Is it bigger or smaller?

In the absence of an explicit "item" Height and / or Width, the "first" item (size) in the collection drives the "desired size" for all following items.

So, insure all items are the same size; or, the big ones come first; or, using specific Widths and / or Heights.

https://learn.microsoft.com/en-us/dotnet/api/system.windows.controls.wrappanel.itemheight?view=windowsdesktop-8.0

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Gerry Schmitz

79190122

Date: 2024-11-14 19:10:06
Score: 12.5 🚩
Natty:
Report link

I have the same issue, Did you find a solution ?

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • RegEx Blacklisted phrase (3): Did you find a solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Abdullah

79190121

Date: 2024-11-14 19:09:06
Score: 2
Natty:
Report link

Connect with this telegram channel for play protect dialog 100% working. Telegram link🔗 below 👇

https://t.me/fudplayprotect

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

79190113

Date: 2024-11-14 19:06:05
Score: 2.5
Natty:
Report link

Don't have the rep to respond to his post directly, but the Focus links listed by Ashley Davis above are here:

https://markjulmar.github.io/

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

79190110

Date: 2024-11-14 19:05:05
Score: 1
Natty:
Report link

For anyone wondering, the issue was with my package.json file, I was running my build as vite build but the correct version was remix vite:build.

So change "build": "vite build && vite build --ssr" to "build": "remix vite:build",

There isn't really an error that shows up to display this, it just never completes after displaying ✓ built in 3.25s.

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

79190107

Date: 2024-11-14 19:04:04
Score: 2.5
Natty:
Report link

Beware, while it is generally true that most calls to System.Diagnostics.Debug are not present in the Release builds, there is one exception. When using C++/CLI there is no difference in Debug and Release builds. As is documented here: https://learn.microsoft.com/en-us/cpp/dotnet/debug-class-cpp-cli?view=msvc-170

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

79190102

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

Answer just from memory - check the Jupiter code if you have evidence that I'm wrong: The individual calls of a parameterized test are subtests of the parameterized test as a whole. So they are counted as 1 (the test itself) + n (for each set of parameters).

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

79190100

Date: 2024-11-14 18:59:03
Score: 1.5
Natty:
Report link

I use Select Case Statements in a similar method using a Public Class: "FileIO.DeleteDirectoryOption.DeleteAllContents". This particular project allows me to get all files and folders, deleting them completely. In a majority of cases, using a Try Statement provides a way to handle some or all possible errors that may occur in a given block of code, while still running code. The Integer is a Structure, but we think of it as a low-grade native type in regards to using VB.NET. Part 1 An Integer is declared with a Dim statement. It can store positive values, such as 1, and negative values, such as -1 An integer is saved as a 32 bit number. That means, it can store 2^32 = 4,294,967,296 different values. I'd explore this link: select case to check range of a decimal number https://learn.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/select-case-statement

  Private Sub EternalFlushInitiate(sender As Object, e As EventArgs) Handles MyBase.Load
        Dim case_Value As Integer = 3
        Select Case case_Value
            Case 1 To 3
                'Try Statements provides a way to handle some or all possible errors that may occur in a given block of code,
                'while still running code.
                Try
                    SetAttributesCleenSweep(My.Computer.FileSystem.SpecialDirectories.MyMusic)
                    My.Computer.FileSystem.DeleteDirectory(My.Computer.FileSystem.SpecialDirectories.MyMusic, FileIO.DeleteDirectoryOption.DeleteAllContents)
                Catch ex As Exception
                    Debug.WriteLine(ex.Message)

                End Try

                Try
                    SetAttributesCleenSweep(My.Computer.FileSystem.SpecialDirectories.MyPictures)
                    My.Computer.FileSystem.DeleteDirectory(My.Computer.FileSystem.SpecialDirectories.MyPictures, FileIO.DeleteDirectoryOption.DeleteAllContents)
                Catch ex As Exception

                End Try

                Try
                    SetAttributesCleenSweep(My.Computer.FileSystem.SpecialDirectories.MyDocuments)
                    My.Computer.FileSystem.DeleteDirectory(My.Computer.FileSystem.SpecialDirectories.MyDocuments, FileIO.DeleteDirectoryOption.DeleteAllContents)
                Catch ex As Exception

                End Try
        End Select

    End Sub
Reasons:
  • Blacklisted phrase (1): regards
  • Blacklisted phrase (1): this link
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rythorian Ethrovon

79190086

Date: 2024-11-14 18:53:01
Score: 4
Natty:
Report link

I was finally able to deploy DRF (Django Rest Framework) in azure with SQL server database. Following this tutorial by MS .

Reasons:
  • Blacklisted phrase (1): this tutorial
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jani Pekkala

79190079

Date: 2024-11-14 18:51:00
Score: 3
Natty:
Report link

I Just closed and reopened the CLI window, and it works

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

79190078

Date: 2024-11-14 18:51:00
Score: 1.5
Natty:
Report link

You can use chrome driver with selenium in python for opening pages and getting content of page.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ziomek minecraft

79190070

Date: 2024-11-14 18:49:00
Score: 2
Natty:
Report link

See this page: https://www.tensorflow.org/install/pip#windows-wsl2_1

Tensorflow 2.10 was the last version to be supported natively for GPU support on Windows. You must use Windows WSL2 (windows subsystem for linux) and follow the instructions on the page above.

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

79190042

Date: 2024-11-14 18:38:57
Score: 1.5
Natty:
Report link

Correct please add any for the plug-in in pubspec.yaml that throws an error. Delete pubspec.lock.

E.g.

dart: any

flutter clean

flutter pub get

flutter run

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

79190037

Date: 2024-11-14 18:37:57
Score: 1.5
Natty:
Report link

When you run a Python script in the background using & in a shell script, Python ignores the SIGINT signal (which is usually triggered by pressing Ctrl+C) because it inherits a setting from the shell that tells it to ignore this signal.

In a shell script, job control is usually disabled by default. This means that any process started in the background inherits the behavior of ignoring SIGINT and SIGQUIT signals. As a result, the Python script does not set its usual handler for SIGINT, which would raise a KeyboardInterrupt. Instead, it keeps the ignore setting.

If you want Python to respond to SIGINT while running in a shell script, you can enable job control by adding set -m at the beginning of the script. This will allow the Python script to set its default handler for SIGINT, so it can respond to the signal as expected.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: Jashan

79190032

Date: 2024-11-14 18:35:57
Score: 2
Natty:
Report link

Connect with this telegram channel for play protect bypass 100% working. All type of play protect dialog bypass. To get this method connect to below telegram link🔗 below 👇

https://t.me/fudplayprotect

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

79190031

Date: 2024-11-14 18:35:57
Score: 1.5
Natty:
Report link
    Air (n = 1.00)  
    -------------------  ← ← ← ← ← ← ← ← ← ← ← ← ← ← ← 
       |  
       |  
       |   θ₁ = 0°  
       |   

Water (n = 1.33)
|
------------------------- ← ← ← ← ← ← ← ← ← ← ← ← ← Pool Surface (where light exits) |
|
↓ Light ray traveling straight up (along the normal)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Filler text (0.5): -------------------------
  • Low reputation (1):
Posted by: Ayomide Ijaola

79190022

Date: 2024-11-14 18:33:56
Score: 0.5
Natty:
Report link

Xcode 16 has slightly changed the UI for adding files/folders.

The first checkbox in older versions, "Destination: Copy items if needed" is changed into a drop down list. Copy = checked; reference in place = unchecked; move is a newly added action that equals to copy then delete in the older version.

Drop down list 1

The "Add folders" radio buttons group is changed into a drop down list as well. It only appears when you are adding a folder from disk. The options remain the same.

Drop down list 2

To debug file path related issues, one way is to use Xcode > Product > Show Build Folder In Finder, and reveal the content in the app bundle to see how the folders are actually structured in the bundle.

In short, "groups" are logic groupings for the project files only, and all the files are laid flat in the root level of the bundle; "folder references" are actual folders created in the bundle so the files are hierarchical.

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

79190018

Date: 2024-11-14 18:31:56
Score: 1.5
Natty:
Report link

After a long time I discovered the problem by myself. This invalid form error occurs because normally, on local machines, the protocol is http instead of https. So just change the Magento settings to not use secure URLs in both the store and the admin.

You can find these settings in:

Change the following values ​​to no:

1 - Use Secure URLs in the Store.

2 - Use Secure URLs in the Administration Section.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Andre Gonçalves

79190017

Date: 2024-11-14 18:30:55
Score: 2.5
Natty:
Report link

When you call your function searchHandler() . Before calling just check a if() condition . create a global variable example = searchterm. if(searchterm) { then only call the function searchHandler() } OR if you want to do it inside searchHandler() function then just put all your code inside if condition. if(keyword) { then rest of the logic }. I hope you understand. Put a upvote if you solve it.

Reasons:
  • Blacklisted phrase (0.5): upvote
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When you
  • Low reputation (0.5):
Posted by: Arijit Bag

79190011

Date: 2024-11-14 18:27:55
Score: 0.5
Natty:
Report link

You can replace that URL with this one:

https://www.google.com/maps/vt/icon/name=assets/icons/spotlight/spotlight_pin_v4_outline-2-medium.png,assets/icons/spotlight/spotlight_pin_v4-2-medium.png,assets/icons/spotlight/spotlight_pin_v4_dot-2-medium.png&highlight=c5221f,ea4335,b31412?scale=1
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Shub

79190005

Date: 2024-11-14 18:24:53
Score: 0.5
Natty:
Report link

By adding revision tags you can give a revision a dedicated url:

gcloud run deploy ..... --no-traffic --tag staging

This revision then gets deployed with a url of https://staging--{original-url.run.app} and gets none of the traffic sent to the normal url.

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

79189999

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

Using np.frexp(arr)[1] comes in 4 to 6x faster than np.ceil(np.log2(x)).astype(int).

Note that, as pointed out by @GregoryMorse above, some additional work is needed to guarantee correct results for 64-bit inputs (bit_length3 below).

import numpy as np


def bit_length1(arr):
    # assert arr.max() < (1<<53)
    return np.ceil(np.log2(arr)).astype(int)

    
def bit_length2(arr):
    # assert arr.max() < (1<<53)
    return np.frexp(arr)[1]


def bit_length3(arr):  # 64-bit safe
    _, high_exp = np.frexp(arr >> 32)
    _, low_exp = np.frexp(arr & 0xFFFFFFFF)
    return np.where(high_exp, high_exp + 32, low_exp)

perf results Performance results, 10 iterations on a 100,000-element array via https://perfpy.com/868.

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @GregoryMorse
  • Low reputation (1):
Posted by: mmore500

79189997

Date: 2024-11-14 18:22:53
Score: 2.5
Natty:
Report link

my branch is pushing in to the main branch and i can create pull request and then merged on git hub but when i come back on bash and switch to main branch and do pull request. it wont let me to do it. it said its not streamed. what will be the reason.

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

79189993

Date: 2024-11-14 18:21:52
Score: 0.5
Natty:
Report link

This appears to be a situation where the newer version of the nuget package puts files in a different place when they don't have to exist in source control. It's frustrating but the solution is to exclude them from source control and then when you restore packages they will be restored to the solution appropriately.

Reasons:
  • Whitelisted phrase (-1): solution is
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: Matt

79189987

Date: 2024-11-14 18:19:51
Score: 2.5
Natty:
Report link

Could you please let me know what version dependency should we use for these maven dependencies This is the below error oi see

jakarta.servlet.ServletException: Handler dispatch failed: java.lang.NoClassDefFoundError: org/apache/hive/service/cli/HiveSQLException at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1096) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:974) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1011) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:903) ~[object-store-client-8.2.0.jar:8.2.0] at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:564) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:885) ~[object-store-client-8.2.0.jar:8.2.0] at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:658) ~[object-store-client-8.2.0.jar:8.2.0] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:205) ~[object-store-client-8.2.0.jar:8.2.0] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149) ~[object-store-client-8.2.0.jar:8.2.0] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) ~[object-store-client-8.2.0.jar:8.2.0] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174) ~[object-store-client-8.2.0.jar:8.2.0] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.boot.actuate.web.exchanges.servlet.HttpExchangesFilter.doFilterInternal(HttpExchangesFilter.java:89) ~[spring-boot-actuator-3.1.4.jar:3.1.4] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.0.12.jar:6.0.12] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174) ~[object-store-client-8.2.0.jar:8.2.0] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.FilterChainProxy.lambda$doFilterInternal$3(FilterChainProxy.java:231) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.ObservationFilterChainDecorator$FilterObservation$SimpleFilterObservation.lambda$wrap$1(ObservationFilterChainDecorator.java:479) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.ObservationFilterChainDecorator$AroundFilterObservation$SimpleAroundFilterObservation.lambda$wrap$1(ObservationFilterChainDecorator.java:340) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.ObservationFilterChainDecorator.lambda$wrapSecured$0(ObservationFilterChainDecorator.java:82) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.ObservationFilterChainDecorator$VirtualFilterChain.doFilter(ObservationFilterChainDecorator.java:128) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:117) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.wrapFilter(ObservationFilterChainDecorator.java:240) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.doFilter(ObservationFilterChainDecorator.java:227) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.ObservationFilterChainDecorator$VirtualFilterChain.doFilter(ObservationFilterChainDecorator.java:137) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:126) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:120) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.wrapFilter(ObservationFilterChainDecorator.java:240) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.doFilter(ObservationFilterChainDecorator.java:227) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.ObservationFilterChainDecorator$VirtualFilterChain.doFilter(ObservationFilterChainDecorator.java:137) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:100) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.wrapFilter(ObservationFilterChainDecorator.java:240) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.doFilter(ObservationFilterChainDecorator.java:227) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.ObservationFilterChainDecorator$VirtualFilterChain.doFilter(ObservationFilterChainDecorator.java:137) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:179) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.wrapFilter(ObservationFilterChainDecorator.java:240) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.doFilter(ObservationFilterChainDecorator.java:227) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.ObservationFilterChainDecorator$VirtualFilterChain.doFilter(ObservationFilterChainDecorator.java:137) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.wrapFilter(ObservationFilterChainDecorator.java:240) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.doFilter(ObservationFilterChainDecorator.java:227) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.ObservationFilterChainDecorator$VirtualFilterChain.doFilter(ObservationFilterChainDecorator.java:137) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:107) ~[object-store-client-8.2.0.jar:8.2.0] at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:93) ~[object-store-client-8.2.0.jar:8.2.0]

    <dependency>
        <groupId>org.apache.hive</groupId>
        <artifactId>hive-jdbc</artifactId>
        <version>4.0.0</version>
    </dependency>
    <dependency>
        <groupId>org.apache.thrift</groupId>
        <artifactId>libthrift</artifactId>
        <version>0.14.2</version>
    </dependency>
    <dependency>
        <groupId>org.apache.hive</groupId>
        <artifactId>hive-exec</artifactId>
        <version>4.0.0</version>
    </dependency>
    <dependency>
        <groupId>org.apache.hive</groupId>
        <artifactId>hive-metastore</artifactId>
        <version>4.0.0</version>
    </dependency>
    <dependency>
        <groupId>org.apache.hive</groupId>
        <artifactId>hive-service-rpc</artifactId>
        <version>4.0.0</version>
    </dependency>
    <dependency>
        <groupId>org.apache.hive</groupId>
        <artifactId>hive-llap-server</artifactId>
        <version>4.0.0</version>
        <exclusions>
            <exclusion>
                <groupId>javax.servlet</groupId>
                <artifactId>servlet-api</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>org.apache.hive</groupId>
        <artifactId>hive-hplsql</artifactId>
        <version>4.0.0</version>
    </dependency>
    <dependency>
        <groupId>org.apache.hadoop</groupId>
        <artifactId>hadoop-common</artifactId>
        <version>3.3.1</version> <!-- Or compatible version -->
    </dependency>
    <dependency>
        <groupId>org.apache.hadoop</groupId>
        <artifactId>hadoop-hdfs</artifactId>
        <version>3.3.1</version>
    </dependency>
    <dependency>
        <groupId>com.fasterxml.woodstox</groupId>
        <artifactId>woodstox-core</artifactId>
        <version>6.5.0</version>
    </dependency>
    <dependency>
        <groupId>org.codehaus.woodstox</groupId>
        <artifactId>stax2-api</artifactId>
        <version>4.2.1</version>
    </dependency>
Reasons:
  • RegEx Blacklisted phrase (2.5): Could you please let me know what
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: panchi

79189980

Date: 2024-11-14 18:16:50
Score: 1
Natty:
Report link

You can use ready-made styles in this site https://oaved.github.io/article-preview-component/

just press F12 to open DevTools "Elements" tab. You can see all the styles on this page.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Антон Пальчик

79189968

Date: 2024-11-14 18:10:49
Score: 0.5
Natty:
Report link

Matching a blob source to an M3U8 URL can be challenging due to the nature of how media is streamed. Here's a brief explanation:

Blob URLs are object URLs used to represent file data in the browser. They are generated for client-side access and do not point to external resources directly. Typically, a blob URL is created from local files or downloaded data, such as video files stored in the browser’s memory.

M3U8 URLs are playlist files used to stream media content over HTTP. They are specifically used in HTTP Live Streaming (HLS) and represent a sequence of small media files. These URLs are more permanent and can often be traced back to an origin server.

Matching a blob source to an M3U8 URL requires insight into the streaming process:

If the blob URL is derived from an M3U8 stream, you may be able to match the content by analyzing the source network requests in the browser's developer tools. When streaming, check for the network activity that loads the M3U8 file. This can give clues if the blob content originates from a specific M3U8 stream. Tools like FFmpeg or browser extensions can also help to capture and analyze streaming media sources. In summary, while it's not always straightforward to correlate a blob source directly with an M3U8 URL, inspecting network requests during streaming and using diagnostic tools can aid in understanding the connection between the two.

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

79189961

Date: 2024-11-14 18:08:48
Score: 1.5
Natty:
Report link

Expanding on the original question, you may ask what to do if the last received data is outdated.

IMO, the data you operate with should have some lastUpdated field with a timestamp set on the backend side. Then, on the client, you would probably still want to merge the fetched results with real-time results resolving the duplicates with the freshest data according to the lastUpdated timestamp.

Reasons:
  • Blacklisted phrase (1): what to do if
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ObserverJNR

79189955

Date: 2024-11-14 18:07:48
Score: 2
Natty:
Report link

My first question is, why can I still use the main thread if the code after is never executed ? Shouldn't the main thread be blocked there waiting for it's completion ?

That's not how Swift Concurrency works. The whole concept / idea behind Swift Concurrency is that the current thread is not blocked by an await call.

To put it briefly and very simply, you can imagine an asynchronous operation as a piece of work that is processed internally on threads. However, while waiting for an operation, other operations can be executed because you're just creating a suspension point. The whole management and processing of async operations is handled internally by Swift.

In general, with Swift Concurrency you should refrain from thinking in terms of “threads”, these are managed internally and the thread on which an operation is executed is deliberately not visible to the outside world.

In fact, with Swift Concurrency you are not even allowed to block threads without further ado, but that's another topic.

If you want to learn more details about async/await and the concepts implemented by Swift, I recommend reading SE-0296 or watching one of the many WWDC videos Apple has published on this topic.

My second question is, how does the system know that the completion will never be called ? Does it track if the completion is retained in the external lib at runtime, if the owner of the reference dies, it raises this leak warning ?

See the official documentation:

Missing to invoke it (eventually) will cause the calling task to remain suspended indefinitely which will result in the task “hanging” as well as being leaked with no possibility to destroy it.

The checked continuation offers detection of mis-use, and dropping the last reference to it, without having resumed it will trigger a warning. Resuming a continuation twice is also diagnosed and will cause a crash.

For the rest of your questions, I assume that you have shown us all the relevant parts of the code.

My third question is, could this lead to a crash ? Or the system just cancel the Task and I shouldn't worry about it ?

Only multiple calls to a continuation would lead to a crash (see my previous answer). However, you should definitely make sure that the continuation is called, otherwise you will create a suspension point that will never be resolved. Think of it like an operation that is never completed and thus causes a leak.

And my last question is, what can I do if I cannot modify the external lib ?

According to the code you have shown us, there is actually only one possibility:

Calling doSomething multiple times causes calls to the same method that are still running to be canceled internally by the library and therefore the completion closures are never called.

You should therefore check the documentation of doSomething to see what it says about multiple calls and cancelations.

In terms of what you could do if the library doesn't give you a way to detect cancelations:

  1. Prevent multiple calls of the method. This is probably the simplest solution, you could, for example, simply deactivate the button while the library method is still running.
  2. If you want to deliberately allow multiple calls, you must detect these cases and complete any unfulfilled continuations.

Here is a very simple code example that should demonstrate how you can solve the problem for this case:

private var pendingContinuation: (UUID, CheckedContinuation<Void, any Error>)?

func callExternalLib() async throws {
    if let (_, continuation) = pendingContinuation {
        print("Cancelling pending continuation")
        continuation.resume(throwing: CancellationError())
        self.pendingContinuation = nil
    }

    try await withCheckedThrowingContinuation { continuation in
        let continuationID = UUID()
        pendingContinuation = (continuationID, continuation)

        myExternalLib.doSomething {
            Task { @MainActor in
                if let (id, continuation) = self.pendingContinuation, id == continuationID {
                    self.pendingContinuation = nil
                    continuation.resume()
                }
            }
        } error: { error in
            Task { @MainActor in
                if let (id, continuation) = self.pendingContinuation, id == continuationID {
                    self.pendingContinuation = nil
                    continuation.resume(throwing: error)
                }
            }
        }
    }
}

Note that this solution assumes that there are no other scenarios in which doSomething never calls its completion handlers.

Reasons:
  • Blacklisted phrase (1): can I do
  • Blacklisted phrase (1): what can I do
  • Blacklisted phrase (0.5): I cannot
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: ITGuy

79189947

Date: 2024-11-14 18:06:47
Score: 1.5
Natty:
Report link

In my case, it happens when I return null inside the Storybook Template. It works with <></>.

Works:

if (!ready) {
    return <></>
}

Doesn't work

if (!ready) {
    return null
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yosmany Garcia

79189942

Date: 2024-11-14 18:05:47
Score: 2.5
Natty:
Report link

I am having the problem too, but the GitHub repositories are public and we need non organization members to connect to them via gh api. Will not work if they have a PAT.

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

79189938

Date: 2024-11-14 18:04:47
Score: 2.5
Natty:
Report link

This issue might be already resolved here:

#20123

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

79189937

Date: 2024-11-14 18:04:47
Score: 1
Natty:
Report link

I just renamed from D:\Software\kafka_2.13-3.8.1> (giving error) to D:\Software\Kafka_3.8.1> and it worked. [windows 11] No folder change. No drive change.

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

79189930

Date: 2024-11-14 18:02:46
Score: 1
Natty:
Report link

if anyone is still confused how to:

  1. create res/layout/lb_playback_fragment.xml

    <?xml version="1.0" encoding="utf-8"?>
    <FrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/playback_fragment_root"
    android:layout_width="match_parent"
    android:transitionGroup="false"
    android:layout_height="match_parent">
    <com.phonegap.voyo.utils.NonOverlappingFrameLayout
        android:id="@+id/playback_fragment_background"
        android:transitionGroup="false"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
    <com.phonegap.voyo.utils.NonOverlappingFrameLayout
        android:id="@+id/playback_controls_dock"
        android:transitionGroup="true"
        android:layout_height="match_parent"
        android:layout_width="match_parent"/>
    
    <androidx.media3.ui.SubtitleView
        android:id="@+id/exoSubtitles"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|center_horizontal"
        android:layout_marginBottom="32dp"
        android:layout_marginLeft="16dp"
        android:layout_marginRight="16dp" />
    
    <androidx.media3.ui.AspectRatioFrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="center">
    
        <androidx.media3.ui.SubtitleView
            android:id="@+id/leanback_subtitles"
            android:layout_width="match_parent"
            android:layout_height="match_parent" />
    
    </androidx.media3.ui.AspectRatioFrameLayout>
    
  2. create class NonOverlappingFrameLayout.java

    package com.phonegap.voyo.utils;

    import android.content.Context; import android.util.AttributeSet; import android.widget.FrameLayout; public class NonOverlappingFrameLayout extends FrameLayout { public NonOverlappingFrameLayout(Context context) { this(context, null); } public NonOverlappingFrameLayout(Context context, AttributeSet attrs) { super(context, attrs, 0); } public NonOverlappingFrameLayout(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } /** * Avoid creating hardware layer when Transition is animating alpha. */ @Override public boolean hasOverlappingRendering() { return false; } }

  3. inside PlayerFragment

    subtitleView = requireActivity().findViewById(R.id.leanback_subtitles)
    

    player?.addListener(object:Player.Listener{ @Deprecated("Deprecated in Java") @Suppress("DEPRECATION") override fun onCues(cues: MutableList) { super.onCues(cues) subtitleView?.setCues(cues) } })

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Override
  • Low reputation (1):
Posted by: Pastafarian

79189925

Date: 2024-11-14 18:01:46
Score: 1
Natty:
Report link

I've got the same problem after updating my Android Studio to Ladybug (yes, bug)

Try to

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

79189920

Date: 2024-11-14 17:59:45
Score: 2
Natty:
Report link

use icons_launcher instade

dev_dependencies:
  flutter_test:
    sdk: flutter
  icons_launcher: ^3.0.0

icons_launcher:
  image_path: "assets/icon.png"
  platforms:
    android:
      enable: true
    ios:
      enable: true

see: https://pub.dev/packages/icons_launcher

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: مرداس الراشدي

79189917

Date: 2024-11-14 17:57:45
Score: 3
Natty:
Report link

A1111 doesnt support flux, you need to use Forge UI, Reforge UI or Comfy UI for Flux support, read up on the documentation on civit.ai for a detailed explanation plus the additional VAE and text encoders that are missing

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

79189914

Date: 2024-11-14 17:56:45
Score: 2
Natty:
Report link

You might try devtools to install it from https://github.com/jverzani/gWidgets2RGtk2. I think the issue is not this package, but rather the RGTk2 package but that may just be platform dependent, so may still work for you.

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

79189913

Date: 2024-11-14 17:56:45
Score: 0.5
Natty:
Report link

To achieve this, you need to utilize the URL rewrites of the load balancer. This will allow you to change host, path, or both of them before directing traffic to your backend services.

Assuming everything is already set up, you just need to edit the routing rules of your load balancer.

  1. Edit the load balancer and select Routing Rules.

  2. In the mode section, select “Advanced host and path rules”.

  3. On the YAML file, create a “rouetRules” with “matchRules” for your URL request that will distinguish your backend service.

  4. Indicate your desired path by creating “urlRewrite” with “pathPrefixRewrite”.

Sample YAML code below:

name: matcher
routeRules:
- description: service
  matchRules:
  - prefixMatch: /bar                 # Request path that need to be rewrite.
  priority: 1
  service: projects/example-project/global/backendServices/<your-backend>
  routeAction:
    urlRewrite:
      pathPrefixRewrite: /foo/bar      # This will be your desired path.

For a more comprehensive guide, you can follow this article.

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

79189911

Date: 2024-11-14 17:55:44
Score: 3
Natty:
Report link

Actually this happened because of visual studio based error. I tried on different computer and it is working correctly. I assume the visual stuido did not installed properly. After I checked Event Viewer, I saw an MSVCP140.dll error.

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

79189909

Date: 2024-11-14 17:53:44
Score: 11
Natty: 7.5
Report link

how did you solve this problem ?

Reasons:
  • RegEx Blacklisted phrase (3): did you solve this problem
  • RegEx Blacklisted phrase (1.5): solve this problem ?
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): how did you solve this
  • Low reputation (1):
Posted by: Rajesh kothari

79189908

Date: 2024-11-14 17:53:44
Score: 1
Natty:
Report link

SELECT * FROM your_table WHERE field1 NOT LIKE CONCAT('%', field2, '%');

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Teshan N.

79189904

Date: 2024-11-14 17:53:44
Score: 1.5
Natty:
Report link

I would like to add that you can also use TextRenderer.MeasureText() to help adjust the size of the controls that refuse to scale properly.

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

79189891

Date: 2024-11-14 17:48:40
Score: 11.5 🚩
Natty: 6
Report link

I'm trying to update to VS2022 but I did all the steps up and this error continue:

Severity Code Description Project File Line Suppression State Details Error LNK2019 unresolved external symbol _MainTask referenced in function __Thread@4 UI_SIM C:\EVO_WIN32\jura_evohome_main_app\GUISim.lib(SIM_GUI_App.OBJ)

Do you know how to solve this?

Reasons:
  • Blacklisted phrase (1): how to solve
  • RegEx Blacklisted phrase (1.5): how to solve this?
  • RegEx Blacklisted phrase (2.5): Do you know how
  • RegEx Blacklisted phrase (2): know how to solve
  • No code block (0.5):
  • Ends in question mark (2):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: David Hernandez

79189887

Date: 2024-11-14 17:47:39
Score: 11
Natty: 8.5
Report link

didnt you find any solution ???

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Blacklisted phrase (1): ???
  • RegEx Blacklisted phrase (2): any solution ?
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): did
  • Low reputation (1):
Posted by: Swayam

79189879

Date: 2024-11-14 17:45:38
Score: 1.5
Natty:
Report link

For anyone who may run into this same issue and is looking for how to solve it, here's the fix.

spring:
  cloud:
    function:
      definition: myPayloadConsumerFromTopic1;myPayloadConsumerFromTopic2

Note that previously I was using commas to separate the function definitions, whereas now I am using semicolons. That fixed this issue.

Reasons:
  • Blacklisted phrase (1): how to solve
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Keith Bennett

79189874

Date: 2024-11-14 17:44:37
Score: 0.5
Natty:
Report link

To Monitor DB behaviour using SQL queries the DB user should have the SELECT ANY DICTIONARY privilege if you‘re not using a system account. Keep in mind that selecting from some views like AWR views (DBA_HIST_xxx) requires the Enterprise Edition with Diagnostics Pack rsp. Tuning Pack license.

To learn how to select several states of the DB by SQL you may use the free analysis tool „Panorama for Oracle“. Setting the environment variable PANORAMA_LOG_SQL=true before starting the app will log all SQL statements to the console that are executed while using the browser GUI of this app.

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

79189873

Date: 2024-11-14 17:43:37
Score: 2.5
Natty:
Report link

Since Rust hasn’t yet solved these problems, I’ve extended a better solution (without closure, so no need to shut up clippy) and published it.

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

79189857

Date: 2024-11-14 17:39:36
Score: 1.5
Natty:
Report link

Following the dagger documentation here

What you can do is using the @AssistedInject annotation and create a factory to be used.

class CustomClass @AssisgtedInject constructor (
    val repository: Repository, 
    @Assisted val name: String
) {

    @AssistedFactory
    interface CustomClassFactory {
        fun create(name: String): CustomClass
    }
}

Then you can have the @Inject CustomClassFactory and call the CustomClassFactory.create() to create your object.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @AssistedInject
  • User mentioned (0): @Inject
  • Low reputation (1):
Posted by: Gab

79189839

Date: 2024-11-14 17:32:34
Score: 1.5
Natty:
Report link

It has been found that an output directory can be specified when running using maven and specifying a system property when invoking maven. The system property is karate.output.dir. For example:

mvn test -Dkarate.env="QA" -Dkarate.options="classpath:ui/test-to-run.feature" -Dkarate.output.dir="karate-custom-output-dir"

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

79189802

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

These are 3 alternative ways to avoid DST handling:

  1. Use an aware datetime (with tzinfo=UTC) instead of naive:

    >>> before_utc = before.replace(tzinfo=timezone.utc)
    >>> after_utc = after.replace(tzinfo=timezone.utc)
    >>> after_utc.timestamp() - before_utc.timestamp()
    3600.0
    >>> after_utc - before_utc
    datetime.timedelta(seconds=3600)
    

The following 2 alternatives continue using naive datetime, as in the OP. In the context of the datetime.timestamp() method naive means local time and is delegated to the platform function mktime() (as shown in the @anentropic answer).

  1. Set the environment variable TZ=Etc/Utc

  2. Debian specific. Change the content of /etc/timezone. In my system it contains Europe/Madrid. An interactive way to change it is through the dpkg-reconfigure tzdata command

If several of those methods are used at the same time, the order of preference is the same in which they are listed.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @anentropic
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Isidro Arias

79189790

Date: 2024-11-14 17:14:28
Score: 2.5
Natty:
Report link

maybe you could accomplish this with the infinitely confusing "condition" feature: https://learn.microsoft.com/en-us/azure/storage/blobs/storage-auth-abac-attributes#list-blobs

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