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

79189778

Date: 2024-11-14 17:10:27
Score: 2
Natty:
Report link

https://www.alitajran.com/conditional-access-mfa-breaks-azure-ad-connect-synchronization/

Synchronization Service Manager Sign in on the Microsoft Entra Connect server. Start the application Synchronization Service Manager. Look at the start and end times.

In the screenshot below, the start time and end time are 4/11/2021. Today is 4/19/2021. It’s been more than a week that Azure AD Connect synced.

Conditional Access MFA breaks Azure AD Connect synchronization before Microsoft 365 admin center Sign in to Microsoft 365 admin center. Check the User management card.

We can confirm that the Azure AD Connect last sync status was more than three days ago, and there is no recent password synchronization happening.

Conditional Access MFA breaks Azure AD Connect synchronization not syncing Azure AD Connect synchronization error Run Windows PowerShell as administrator. Run a force sync Microsoft Entra Connect with PowerShell. It will show the error below.

PS C:> Import-Module ADSync PS C:> Start-ADSyncSyncCycle -PolicyType Delta Start-ADSyncSyncCycle : System.Management.Automation.CmdletInvocationException: System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application. Start-ADSyncSyncCycle : System.Management.Automation.CmdletInvocationException: System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.

The screen below shows how it looks after running the AD Sync command.

Conditional Access MFA breaks Azure AD Connect synchronization errors Event Viewer application events Start Event Viewer. Go to Windows Logs > Application. The following Error events show up:

Event 662, Directory Synchronization Event 6900, ADSync Event 655, Directory Synchronization Event ID 906, Directory Synchronization Click on Event ID 906.

Conditional Access MFA breaks Azure AD Connect synchronization Event Viewer errors Event 906, Directory Synchronization GetSecurityToken: unable to retrieve a security token for the provisioning web service (AWS). The ADSync service is not allowed to interact with the desktop to authenticate [email protected]. This error may occur if multifactor or other interactive authentication policies are accidentally enabled for the synchronization account.

Solution for AD Connect synchronization failing The solution for AD Connect synchronization breaking after implementing Azure AD MFA is to exclude the Azure AD Connect Sync Account from Azure AD MFA.

Service accounts, such as the Azure AD Connect Sync Account, are non-interactive accounts that are not tied to any particular user. They are usually used by back-end services allowing programmatic access to applications, but are also used to sign in to systems for administrative purposes. Service accounts like these should be excluded since MFA can’t be completed programmatically.

Find Azure AD synchronization account In the event log error, which we looked at in the previous step, you can copy the account you need to exclude from Azure MFA.

If you want to check the account in Synchronization Service Manager, click on Connectors. Click the type Windows Azure Active Directory (Microsoft). Click Properties.

Conditional Access MFA breaks Azure AD Connect synchronization Connectors Click Connectivity and find the UserName.

Conditional Access MFA breaks Azure AD Connect synchronization Azure AD Connect Sync Account Read more: Find Microsoft Entra Connect accounts »

Exclude MFA for Azure AD Connect Sync Account Sign in to Microsoft Azure. Open the menu and browse to Azure Active Directory > Security > Conditional Access. Edit the Conditional Access policy that’s enforcing MFA for the user accounts.

In this example, it’s the policy MFA all users.

Read more: How to Configure Microsoft Entra Multi-Factor Authentication »

Conditional Access MFA breaks Azure AD Connect synchronization Conditional Access policy Under Assignments, click Users and groups and select Exclude. Check the checkbox Users and groups. Find the synchronization account that you copied in the previous step. Ensure that the policy is On and click on Save.

Conditional Access MFA breaks Azure AD Connect synchronization exclude user Verify Azure AD Connect sync status You can wait for a maximum of 30 minutes, or if you don’t want to wait that long, force sync Microsoft Entra Connect with PowerShell.

PS C:> Import-Module ADSync PS C:> Start-ADSyncSyncCycle -PolicyType Delta The start time and end time changed to 4/19/2021.

Conditional Access MFA breaks Azure AD Connect synchronization after Green checks for Azure AD Connect sync in Microsoft 365 admin center.

Conditional Access MFA breaks Azure AD Connect synchronization syncing Did this help you to fix the broken Azure AD Connect synchronization after configuring Conditional Access MFA?

Keep reading: Add users to group with PowerShell »

Conclusion You learned why Azure AD Connect synchronization service stopped syncing after implementing Azure AD Multi-Factor Authentication. It’s happing because MFA is enabled on the Azure AD Connect Sync Account. Exclude the Azure AD Connect Sync Account from Azure Conditional Access policy, and it will start syncing.

A better way is to create a security group named Non-MFA and add the Azure AD Connect Sync Account as a member. This way, you will keep it organized if you need to add other service accounts in the future.

Did you enjoy this article? You may also like How to Connect to Microsoft Entra with PowerShell. Don’t forget to follow us and share this article.

Reasons:
  • Blacklisted phrase (1): this article
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Mark O'Donnell

79189777

Date: 2024-11-14 17:10:27
Score: 4.5
Natty: 5
Report link

Thanks, helped for me as well...

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ToreS

79189776

Date: 2024-11-14 17:10:27
Score: 3
Natty:
Report link

Not an answer, but an additional information. I am having the same issue with varnish. I tried a different docker image to listen on port 80 and it works:

docker run --rm -it -p 80:80 strm/helloworld-http

But varnish gives the same error as author posted. The very same varnish config/run command on a different server works just fine.

So the bottom line, it's not as simple as "requires root to acquire port 80". Cause other images use port 80 just fine. At the same time the very same varnish config on a different server work well. So it must be smth on the cross of a particular docker config and the internals of a varnish image.

Reasons:
  • Blacklisted phrase (1): Not an answer
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I am having the same issue
  • Low reputation (0.5):
Posted by: Sergey Belonozhko

79189769

Date: 2024-11-14 17:08:26
Score: 2
Natty:
Report link

The easiest way would be to use paper spigot. It got way more optimizations than normal spigot and you can access the pathfinder of every mob easily.

 Villager entity = // your entity
 Location location = // your location
 entity.getPathfinder().moveTo(location);

https://jd.papermc.io/paper/1.21.1/com/destroystokyo/paper/entity/Pathfinder.html

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

79189758

Date: 2024-11-14 17:06:25
Score: 3
Natty:
Report link

first, it's getElementsById

Then look https://dev.to/colelevy/queryselector-vs-getelementbyid-166n. This site explains better

use CanIuse too

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

79189750

Date: 2024-11-14 17:05:25
Score: 3
Natty:
Report link

Well it looks like username: root password: root works

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

79189739

Date: 2024-11-14 17:01:23
Score: 1.5
Natty:
Report link

Blockquote 0

Enable it from the Role manager option under the WPBakery (visual composer) settings. Give administrator--> Post Type---> Custom and select the required option to display.

Blockquote

I didn't work, it's not adding the editor option.

Blockquote After scratching my head for a little bit, the solution is to use the wordpress do_shortcode.

The answer is

<?php
    $desc = $product->get_description();
    echo do_shortcode($desc);
?>

With the above I get the data from visual composer to formated HTML, hope this can help other programmers. good night!

Blockquote

Can you explain a little bit more how you did?, I'm not a developer but I'll appreciate some steps of how to do it.

Reasons:
  • Whitelisted phrase (-1): hope this can help
  • Whitelisted phrase (-1): solution is
  • RegEx Blacklisted phrase (2.5): Can you explain
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Manuel Gordoa

79189733

Date: 2024-11-14 16:59:20
Score: 6.5 🚩
Natty: 4.5
Report link

I write a solution in C++.

here is the link: https://khobaib529.medium.com/solving-electrical-circuits-a-graph-based-algorithm-for-resistance-calculations-921575c59946

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Blacklisted phrase (1): here is the link
  • Probably link only (1):
  • Contains signature (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Khobaib

79189729

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

There is currently a trial for this in Chrome.

To test the File System Observer API locally, set the #file-system-observer flag in about:flags. https://developer.chrome.com/blog/file-system-observer

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

79189725

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

<p style="text-align: center;">
  <iframe src="//youtube.com/embed/4liKzXo2lRM?rel=0&autoplay=1";; modestbranding=1&amp;controls=0&amp;showinfo=1" width="700" height="394" frameborder="0" allow="autoplay; allowfullscreen="allowfullscreen">
    <span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span>
  </iframe>
</p>

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Saifullah Almomani

79189724

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

Thank you for all the help! I have a solution below. I used a dictionary but stored the file as key and path as value. This allowed me to get around having duplicate paths. I also used the replace function to convert the path into the proper format.

I will look into the proposed solution of using ttk.Treeview to see if this is a better solution but as of now my program is working as hoped!

Thanks again!

import tkinter as tk
from tkinter import BOTH, LEFT, Button, Frame, Menu, Toplevel, filedialog
import os

ws = tk.Tk()
ws.title('Select Files to Import')
ws.geometry('500x200')
ws.config(bg='#456')

f = ('sans-serif', 13)
btn_font = ('sans-serif', 10)
bgcolor = '#BF5517'

dict = {}

def sort():
  global second
  second = Toplevel()
  second.geometry('800x400')
  menubar=Menu(second)
  menubar.add_command(label="Save List", command=save)
  menubar.add_command(label="Add Files", command=add)
  second.config(menu=menubar)
  global listbox
  listbox = Drag_and_Drop_Listbox(second)
  listbox.pack(fill=tk.BOTH, expand=True)
  directory = filedialog.askopenfilenames()
  n = 0
  for file in directory:
    key = os.path.basename(file)  
    value = os.path.dirname(file)  
    update_dict(key, value)
    listbox.insert(n, os.path.basename(file))
    n=n+1

def update_dict(key, value):
  if key in dict:
    dict[key].append(value)
  else:
    dict[key] = [value]

def add():
  directory = filedialog.askopenfilenames()
  n = 0
  for file in directory:
    key = os.path.basename(file)  
    value = os.path.dirname(file)  
    update_dict(key, value)
    listbox.insert(n, os.path.basename(file))
    n=n+1

def save():
  image=listbox.get(0, listbox.size())
  for x in image:
    string = str(dict[x]).replace('[','').replace(']','').replace('/','\\').replace('\'','')
    print(string + '\\' + x)

class Drag_and_Drop_Listbox(tk.Listbox):
  def __init__(self, master, **kw):
    kw['selectmode'] = tk.SINGLE
    kw['activestyle'] = 'none'
    tk.Listbox.__init__(self, master, kw)
    self.bind('<Button-1>', self.getState, add='+')
    self.bind('<Button-1>', self.setCurrent, add='+')
    self.bind('<B1-Motion>', self.shiftSelection)
  def setCurrent(self, event):
    self.curIndex = self.nearest(event.y)
  def getState(self, event):
    i = self.nearest(event.y)
    self.curState = self.selection_includes(i)
  def shiftSelection(self, event):
    i = self.nearest(event.y)
    if self.curState == 1:
      self.selection_set(self.curIndex)
    else:
      self.selection_clear(self.curIndex)
    if i < self.curIndex:
      x = self.get(i)
      selected = self.selection_includes(i)
      self.delete(i)
      self.insert(i+1, x)
      if selected:
        self.selection_set(i+1)
      self.curIndex = i
    elif i > self.curIndex:
      x = self.get(i)
      selected = self.selection_includes(i)
      self.delete(i)
      self.insert(i-1, x)
      if selected:
        self.selection_set(i-1)
      self.curIndex = i

frame = Frame(ws, padx=20, pady=20, bg=bgcolor)
frame.pack(expand=True, fill=BOTH)

btn_frame = Frame(frame, bg=bgcolor)
btn_frame.grid(columnspan=2, pady=(50, 0))

sort_btn = Button(
  btn_frame,
  text='Individual Sort',
  command=sort,
  font=btn_font,
  padx=10, 
  pady=5
)
sort_btn.pack(side=LEFT, expand=True, padx=(5,5))

# mainloop
ws.mainloop()
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ohtis

79189714

Date: 2024-11-14 16:52:18
Score: 1.5
Natty:
Report link

The solution is to add this to the editor options :

      fixedOverflowWidgets: true,

https://microsoft.github.io/monaco-editor/typedoc/enums/editor.EditorOption.html#fixedOverflowWidgets

Reasons:
  • Whitelisted phrase (-1): solution is
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Jean

79189710

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

S D:\FasoSmart\Enroulement\enrollement\next-js> npm install @mui/material --force npm warn using --force Recommended protections disabled. npm warn ERESOLVE overriding peer dependency npm warn While resolving: @mui/[email protected] npm warn Found: [email protected] npm warn node_modules/next npm warn next@"^15.0.3" from the root project npm warn npm warn Could not resolve dependency: npm warn peer next@"^13.0.0 || ^14.0.0" from @mui/[email protected] npm warn node_modules/@mui/material-nextjs npm warn @mui/material-nextjs@"^5.16.6" from the root project npm warn npm warn Conflicting peer dependency: [email protected] npm warn node_modules/next npm warn peer next@"^13.0.0 || ^14.0.0" from @mui/[email protected] npm warn node_modules/@mui/material-nextjs npm warn @mui/material-nextjs@"^5.16.6" from the root project

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

79189707

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

Check if version and release are properly set in conf.py: In Sphinx, the version and release are typically defined in the conf.py configuration file. The version represents the short version number, and the release can be the full version number (e.g., 1.0.0).

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

79189702

Date: 2024-11-14 16:47:17
Score: 4
Natty:
Report link

I created a conversation using conversation memory then asked the llm to summarize the conversation. If you use a vector database to initialize the conversation then assess the memory message chat history

conversation = [
    {"user": "Hey Louise, can you help me with something?"},
    {"ai": "Of course! What do you need help with today?"},
    {"user": "I’m trying to organize a surprise birthday party for my friend. Any ideas?"},
    {"ai": "That sounds fun! What does your friend enjoy? We can brainstorm a theme based on their interests."},
    {"user": "They love the outdoors and hiking. I was thinking of doing something in a park."},
    {"ai": "Great idea! How about a picnic party? You could set up a cozy area with blankets, snacks, and decorations that reflect nature. Maybe even some outdoor games!"},
    {"user": "I love that! What kind of snacks should I include?"},
    {"ai": "Consider packing finger foods that are easy to eat outdoors. Sandwiches, fruit skewers, veggie platters, and some homemade cookies would be perfect. Don’t forget refreshing drinks!"},
    {"user": "Good call! How about decorations? I want it to feel special."},
    {"ai": "You could use biodegradable decorations like paper lanterns, wildflower bouquets, and string lights. A nature-themed cake would also be a nice centerpiece!"},
    {"user": "These are awesome suggestions! How many people should I invite?"},
    {"ai": "It depends on the size of the park area you’ll be using. A smaller group of close friends might make it feel more intimate, while a larger group could bring more energy. What do you think?"},
    {"user": "Maybe around 10-15 people. That feels manageable."},
    {"ai": "Perfect! Just remember to send out the invites soon so everyone can mark their calendars. Do you need help with the invitation wording?"},
    {"user": "Yes, please! I want it to be fun and casual."},
    {"ai": "How about this: “Join us for a surprise outdoor adventure to celebrate [Friend’s Name]’s birthday! Bring your favorite snacks and your love for nature. Let’s make some unforgettable memories!”"},
    {"user": "I love it! Thanks, Louise. You’ve been a huge help."},
    {"ai": "Anytime! Have a blast planning the party, and let me know if you need anything else."}
]

def example_tool(input_text):
    system_prompt = "You are a Louise AI agent. Louise, you will be fair and reasonable in your responses to subjective statements. Logic puzzle the facts or theorize future events or optimize facts providing resulting inferences. Think"
    return f"{system_prompt} Processed input: {input_text}"

# Initialize the LLM
llm = LangChainChatOpenAI(model="gpt-4o-mini", temperature=0, openai_api_key=key)

# Define tools
tools = [
    Tool(
        name="ExampleTool",
        func=example_tool,
        description="A simple tool that processes input text."
    )
]

# Initialize memory
memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)

# Loop through the conversation and add messages to memory
for message in conversation:
    if "user" in message:
        memory.chat_memory.add_user_message(message["user"])
    elif "ai" in message:
        memory.chat_memory.add_ai_message(message["ai"])

# Initialize the agent with memory
agent = initialize_agent(
    tools,
    llm,
    agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
    verbose=True,
    handle_parsing_errors=True,
    memory=memory
)

# Query to recall previous discussion
query = "Tell me in detail about our previous discussion about the party. Louise enumerate the foods that will be served at the party."
response = agent.run(query)

# Print the response
print(response)


print(memory.chat_memory.messages)
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): Any ideas
  • RegEx Blacklisted phrase (3): can you help me
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: ListenSoftware Louise Ai Agent

79189699

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

Sure! Here's a more detailed step-by-step manual for setting up Django in a virtual environment for a new project:


Django Installation in a Virtual Environment: Step-by-Step Guide

When working with multiple Django projects, it's best practice to create a new virtual environment (virtualenv) for each project to keep dependencies isolated and avoid conflicts. This guide walks you through the steps to install Django in a virtual environment.

Steps to Set Up Django in a Virtual Environment

1. Install virtualenv (if you haven’t already)

If you don’t have virtualenv installed, you can install it globally using pip:

pip install virtualenv

2. Create a New Virtual Environment

Navigate to the directory where you want to create your new project, and then create a new virtual environment. Replace myprojectenv with your desired virtual environment name.

virtualenv myprojectenv

This will create a new folder called myprojectenv containing the isolated environment.

3. Activate the Virtual Environment

Once the environment is created, activate it. The method to activate depends on your operating system:

When activated, your command prompt will change to show the name of the virtual environment (e.g., (myprojectenv)).

4. Install Django

With the virtual environment active, install Django using pip. This will install the latest stable version of Django:

pip install django

5. Create a Django Project

Once Django is installed, you can create your new Django project using the django-admin tool. Replace myproject with the name of your project.

django-admin startproject myproject

This will create a new myproject directory with the necessary files to get started with Django.

6. Verify Django Installation

To make sure Django was installed successfully, you can check the version of Django by running:

django-admin --version

This should output the installed version of Django.

7. Create a requirements.txt File (Optional but Recommended)

To keep track of your project’s dependencies, you can generate a requirements.txt file. This file can later be used to recreate the environment.

Run the following command to generate a requirements.txt file for your project:

pip freeze > requirements.txt

This will list all the installed packages in the environment, including Django, in a file named requirements.txt.

8. Deactivate the Virtual Environment (When Done)

Once you’re done working in the virtual environment, you can deactivate it by running:

deactivate

This will return you to your system's default Python environment.


Why Use Virtual Environments?


How to Reinstall Django for Future Projects

If you start a new Django project and want to set up a new virtual environment:

  1. Create a New Virtual Environment (repeat Step 2).
  2. Activate the Environment (Step 3).
  3. Install Django (Step 4).
  4. Generate requirements.txt (Step 7) if needed.

Each time you create a new virtual environment, you'll need to reinstall Django and other dependencies, but this ensures your projects remain isolated and have their own specific package versions.


Common Issues and Tips


This workflow ensures each Django project has a clean, isolated environment with the correct dependencies, providing better stability and compatibility across different projects.

Reasons:
  • Blacklisted phrase (1): This guide
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Kritika Singh

79189684

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

Create your table with NOT NULL primary key constraint

create table if not exists inx_test_table
(
    id int unsigned NOT NULL auto_increment primary key,
    ...
)

And add $fillable in your model

protected $fillable = [
    'name'
];
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Payal Desai

79189681

Date: 2024-11-14 16:42:15
Score: 1.5
Natty:
Report link

I had the same question and it turns out that the figure needs to be in it's own paragraph (preceded and followed by a newline and two spaces) in order to show the caption, as described here.

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