79186729

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

For client to server RPCs, the Owner must be the client attempting to call the RPC.

In general, actors that are placed in a level (such as doors) are never owned by any particular player.

I see you are attempting to SetOwner from the Interact function, but the Owner cannot be set from client-side, it has to be set from Authority, so it has no effect there. It may appear to work (as in, it you print owner after calling SetOwner it will show) but since the Owner is not modified on server-side it will not accept the RPC.

Instead of trying to modify the Owner of level-placed actors, you should rework your code a bit to route the RPCs through a real player-owned class (such as Character), then forward to actor code once you’re on server side.

You can adjust your code pretty easily to do so.

AInteractiveActor does not do the RPC, it just needs an entry point

UFUNCTION()
virtual void OnInteract(APawn* Sender)
{
    if (HasAuthority())
    {
        // server interaction
    }
    else
    {
        // client interaction (optional - can be used for prediction)
    }
}

Move the RPC logic to your Character class instead

UFUNCTION(Server, Reliable, WithValidation)
virtual void ServerInteract(AInteractiveActor* Target);
virtual void ServerInteract_Implementation(AInteractiveActor* Target);
virtual void ServerInteract_Validate(AInteractiveActor* Target);

// in function Interact()
    if (Hit.GetActor()->IsA(AInteractiveActor::StaticClass()))
    {
        AInteractiveActor* InteractiveActor = Cast<AInteractiveActor>(Hit.GetActor());

        if (!HasAuthority())
            InteractiveActor->OnInteract(this);  //optional, can be used for prediction
        
        ServerInteract(InteractiveActor);
    }
// end function Interact

void AEscapeGameCharacter::ServerInteract_Implementation(AInteractiveActor* Target)
{
    if (Target)
        Target->OnInteract(this);
}

This answer was written by Chatouille from UE5 official forum. Thanks to him for his help.

Final character.h

// Handle all interact action from player
void Interact();
UFUNCTION(Server, Reliable)
void ServerInteract(AInteractiveActor* Target);
void ServerInteract_Implementation(AInteractiveActor* Target);

Final character.cpp

void AEscapeGameCharacter::Interact()
{
    UE_LOG(LogTemp, Warning, TEXT("AEscapeGameCharacter::Interact"));


    FVector StartLocation = FirstPersonCameraComponent->GetComponentLocation();
    FVector EndLocation = FirstPersonCameraComponent->GetForwardVector() * 200 + StartLocation;
    FHitResult Hit;
    
    GetWorld()->LineTraceSingleByChannel(Hit, StartLocation, EndLocation, ECC_Visibility);
    DrawDebugLine(GetWorld(), StartLocation, EndLocation, FColor::Red, false, 5, 0, 5);

    if (!Hit.bBlockingHit) { return; }
    
    if (Hit.GetActor()->IsA(AInteractiveActor::StaticClass()))
    {
        AInteractiveActor* InteractiveActor = Cast<AInteractiveActor>(Hit.GetActor());
        
        UE_LOG(LogTemp, Warning, TEXT("Net Rep Responsible Owner: %s"), (HasNetOwner() ? TEXT("Yes") : TEXT("No")));
        ServerInteract(InteractiveActor);
        
    } else
    {
        UE_LOG(LogTemp, Warning, TEXT("Hitted something"));
    }
    
}

void AEscapeGameCharacter::ServerInteract_Implementation(AInteractiveActor* Target)
{
    if (Target)
    {
        Target->OnInteract(this);
    }
}

Final InteractiveActor.h

UFUNCTION(BlueprintCallable)
    virtual void OnInteract(APawn* Sender);

Final Door.h

// Handle interaction
    virtual void OnInteract(APawn* Sender) override;

    virtual void GetLifetimeReplicatedProps(TArray<class FLifetimeProperty>& OutLifetimeProps) const override;

    UFUNCTION()
    bool ToggleDoor();

    UFUNCTION()
    void OnRep_bOpen();

Final Door.cpp

bool ADoor::ToggleDoor()
{
    UE_LOG(LogTemp, Warning, TEXT("ToggleDoor : This actor has %s"), ( HasAuthority() ? TEXT("authority") : TEXT("no authority") ));
    
    bOpen = !bOpen;

    if (HasAuthority())
    {
        // if bOpen changed to true play opening animation if it changed to false play closing animation.
        DoorSkeletalMesh->PlayAnimation(bOpen ? DoorOpening_Animation : DoorClosing_Animation, false);
    }
    
    return bOpen;
}

void ADoor::OnRep_bOpen()
{
    UE_LOG(LogTemp, Warning, TEXT("OnRep_bOpen Has authority : %s"), (HasAuthority() ? TEXT("yes") : TEXT("no")));
    UE_LOG(LogTemp, Warning, TEXT("bOpen : %s"), (bOpen ? TEXT("yes") : TEXT("no")));

    // if bOpen changed to true play opening animation if it changed to false play closing animation.
    DoorSkeletalMesh->PlayAnimation(bOpen ? DoorOpening_Animation : DoorClosing_Animation, false);
}

void ADoor::OnInteract(APawn* Sender)
{
    Super::OnInteract(Sender);

    UE_LOG(LogTemp, Warning, TEXT("Server : ServerInteract"));
    
    ToggleDoor();
}

void ADoor::GetLifetimeReplicatedProps(TArray<class FLifetimeProperty>& OutLifetimeProps) const
{
    Super::GetLifetimeReplicatedProps(OutLifetimeProps);

    DOREPLIFETIME(ADoor, bOpen);
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: thacaout

79186728

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

After 10 years I had the same problem. In my case what helped was: saving the slider in SmartSlider component without changing anything.

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

79186726

Date: 2024-11-13 21:28:12
Score: 5
Natty:
Report link

I am experiencing the same thing. I also get an error by credentials (under the error by credential chart at the same time as the API method error). Is this purely a google related server issue or is there a problem with my API usage?

https://i.sstatic.net/ixPnitj8.png

Reasons:
  • RegEx Blacklisted phrase (1): I also get an error
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Jamie Abrahams

79186720

Date: 2024-11-13 21:25:11
Score: 2.5
Natty:
Report link

For somebody tried the above answer and still code does not run, maybe pay attension to how you named the file. I left click and create a txt file and named it temp.txt and it show in explorer as normal like this https://i.sstatic.net/lQET8YR9.png. Now guess the file real name, it's temp.txt.txt, wasted 1h of my life for this🙄

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

79186719

Date: 2024-11-13 21:25:11
Score: 2.5
Natty:
Report link

Enter the command like this:

CMD ["poetry", "run", "uvicorn", "app.main:application", "--host", "0.0.0.0", "--port", "8000"].

It helped me

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

79186714

Date: 2024-11-13 21:24:11
Score: 1.5
Natty:
Report link

To access the dimensions, you must access the first one with observation_space[0].n to access the first Disceret and observation_space[1].n to access the second Disceret

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

79186711

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

I had a similar issue with Liquibase needing the library in order to do integrated authentication. I followed some of the suggestions here.

  1. Download the newest sqljdbc from Microsoft (I used the zip file)
  2. Extract the zip and look for the 'enu/auth/x64/mssql-jdbc-auth-.x64.dll', copy this file.
  3. Place the copied file into your Liquibase installation folder (C:\Program Files\liquibase\jre\bin)

I hope that this helps someone who came across this thread during Liquibase installation and needed an assist with integratedAuth

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

79186699

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

I was able to solve this issue by simply setting directConnection: true in the connect function by mongoose, like so:

await connect(process.env.LOCAL_DB_URL!, {
            directConnection: true,
            replicaSet: "rs0",
        });
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Davide Aprea

79186698

Date: 2024-11-13 21:19:10
Score: 3.5
Natty:
Report link

or you can just increase the line-height of the input to what ever the height of the input is.

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

79186687

Date: 2024-11-13 21:15:09
Score: 1
Natty:
Report link

To do this with the current link structure use this script:

// ==UserScript==
// @name         YouTube Channel Homepage Redirect to Videos
// @version      1.0
// @description  Redirects YouTube channel homepages to the Videos tab
// @author       You
// @match        https://www.youtube.com/@*
// @match        https://www.youtube.com/c/*
// @match        https://www.youtube.com/user/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

     if (/^https:\/\/www\.youtube\.com\/(c|user|@)[^\/]+\/?$/.test(window.location.href)) {
        window.location.href = window.location.href + "/videos";
    }
})();
Reasons:
  • Blacklisted phrase (1): youtube.com
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shrank1858

79186681

Date: 2024-11-13 21:14:06
Score: 6 🚩
Natty: 6
Report link

Error Message 1 error has occurred Session state protection violation: This may be caused by manual alteration of protected page item P3_TOTAL_AMOUNT. If you are unsure what caused this error, please contact the application administrator for assistance. how can i resolve it?

Reasons:
  • Blacklisted phrase (0.5): how can i
  • RegEx Blacklisted phrase (1.5): how can i resolve it?
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: M huzaifa Shiekh

79186669

Date: 2024-11-13 21:09:04
Score: 1
Natty:
Report link

Assuming you're using a UVM testbench, your test lives outside of a package, and can access the testbench hierarchy, as well as the parameters of instantiated modules. Simply extract them and assign to a config class object in your package. I personally put them in an associative array keyed off the param name.

That said, if these are the parameters of a top-level DUT, then they should already be under your DV control. If you instead maintain defines, those can be used to assign to your TB instances and uvm classes, rather than have to extract from hierarchy. Also, if your parameter list changes, your edits will now be centralized in one file.

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

79186661

Date: 2024-11-13 21:08:04
Score: 1
Natty:
Report link

Here is an approach you could use:

Create an ImageSlider component, which takes a list of images as in an input, and keeps track of the current slide

export class ImageSliderComponent {
  @Input() images: string[];

  slideIndex: number = 0;

  changeSlide(n: number) {
    this.slideIndex += n;
  }
}
In the template, display only the active slide (refer to the img src binding):

<div class="slideshow-container" #myDiv>
  <div class="mySlides fade">
    <div class="numbertext">{{ slideIndex + 1}} / {{ images.length }}</div>
    <img
    [src]="images[slideIndex]" 
    style="width:100%"
  />
    <div class="text">Caption Text</div>
  </div>

  <a class="prev" (click)="changeSlide(-1)">&#10094;</a>
  <a class="next" (click)="changeSlide(1)">&#10095;</a>
</div>

Use your component like:

<app-image-slider [images]="[
  'http://images.com/image1.jpg',
  'http://images.com/image1.jpg',
  'http://images.com/image3.jpg']"></app-image-slider>

https://stackblitz.com/edit/angular-ivy-xppajp?file=src%2Fapp%2Fimage-slider.component.ts

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

79186649

Date: 2024-11-13 21:06:04
Score: 1
Natty:
Report link

Use the package test_screen. It loads automatically the fonts used in your project.

https://pub.dev/packages/test_screen

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

79186641

Date: 2024-11-13 21:01:03
Score: 1
Natty:
Report link

Can you try to update your packages? This was a bug that was solved with mlr3 0.21.1 and mlr3fselect 1.2.1.

Reasons:
  • Whitelisted phrase (-2): Can you try
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can you
Posted by: be-marc

79186634

Date: 2024-11-13 20:59:02
Score: 2.5
Natty:
Report link

The problem was that my MainWindow (the container of the PlotView) has a LayoutTransform:

Me.Scrll.LayoutTransform = New ScaleTransform(ScaleX, ScaleY)

So, I put to the PlotView:

Plot.LayoutTransform = New ScaleTransform(1 / ScaleX, 1 / ScaleY)

And with that the plots are not deformed in both monitors.

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

79186633

Date: 2024-11-13 20:58:02
Score: 1
Natty:
Report link

I was with the same problem and managed to solve.

I'm using poetry-pyinstaller-plugin, i just put the chromadb inside the collect section and did the trick

[tool.poetry-pyinstaller-plugin.collect]
all = [..., "chromadb"]

I guess if you put --collect-all chromadb in your pyinstaller command, will solve it.

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

79186606

Date: 2024-11-13 20:47:59
Score: 0.5
Natty:
Report link

Good start panthro,

You could salt the hash in a couple of ways:

  1. Like how Aranxo is surmising, add the date_created to the filename and then the hash after, maybe with or without some delineator.
  2. Keep the filename, create some sort of hash (MD5, sha256, etc), and then truncate the hash to a length where it and the filename are constant across all records.

Point two could be more interesting, since it would stop the collision case in Aranxo's answer where two MD5 hashes collide at the same time, making the timestamps equal (down to the lowest integer) and the MD5 hashes equal.

HPC might see this use case for large(n) file storage requests.

Also, point two would implicitly enforce a character limit on the filename length, which could prevent malicious or accidental failures on the system.

Salting the hash more, with perhaps additional metadata like IP where the request was made, or even the username if the user agrees to this in a Privacy Policy.

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

79186604

Date: 2024-11-13 20:47:59
Score: 1.5
Natty:
Report link

Update : I juste forgot to include JPA dependency !

<dependency>
     <groupId>io.helidon.integrations.cdi</groupId>
     <artifactId>helidon-integrations-cdi-jpa</artifactId>
</dependency>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sid-Ali

79186601

Date: 2024-11-13 20:46:59
Score: 1
Natty:
Report link

I've had the same issue. It turned out that my function variable names were the same as column names in the table (i.e. lat and lon), and ST_Distance was using the row's values rather than values passed in to the function. This meant it was calculating the distance from itself, which was 0 in each case, so returning the first rows of the table.

Your function has variables called lat and lon too, and you mention you have a "db of city geocode value like lat: 55.8652, lon: -4.2514" so I suspect your column names are also lat and lon, in which case this would be the same issue.

The simple solution was to rename the function variables so they weren't the same as the column names (e.g. to latitude and longitude), and update the variable names in the select statement accordingly.

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

79186597

Date: 2024-11-13 20:44:56
Score: 6 🚩
Natty: 4.5
Report link

Good afternoon,

I am not trained in VBA. But I am trying to use it, similar to the request above, to export unique Excel files to a folder for each unique Vendor Code in a data set. I have the data in a Table, Query and a Form.

Bascially, I any section of the above VBA showing "QueryName" and "CustomerName" to match my database. I also added the file path where I want the files placed after the "EXPORT. Lastly, I even made a "MyTempQuery" even though I am not aware of the function.

I tried the above but it is not working. Is there anyone that could walk me through it since I may not know all of the modifications I may need to make to match my database?

Happy to get on a Teams call or anything at this point...

Reasons:
  • Blacklisted phrase (1): I am trying to
  • Blacklisted phrase (1): Good afternoon
  • Blacklisted phrase (1): Is there any
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: BHayes123

79186594

Date: 2024-11-13 20:44:55
Score: 1
Natty:
Report link

The problem is with the file owner's permission. Use the below command in Linux:

sudo chmod -R 777 .next
rm -rf .next
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tofazzal haque

79186585

Date: 2024-11-13 20:41:55
Score: 1
Natty:
Report link

It looks good ,but you could just reduce 64 to 10 for dayName, and 30 for dayMonth and monthYear so you could optimize the storage (remember this is an ESP wich is not a very powerful chip so optimizing the memory usage is necessary),and also you could add a log statement to keep you informed for example ESP_LOGI(TAG, "DST: %s", DST ? "true" : "false");.

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

79186578

Date: 2024-11-13 20:39:54
Score: 4
Natty: 4.5
Report link

Use Xcodes https://github.com/XcodesOrg/XcodesApp/releases/tag/v2.4.1b30 Download Xcodes app and use whatever Xcode version is required.

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

79186575

Date: 2024-11-13 20:38:53
Score: 0.5
Natty:
Report link

I know this is salesy, but you need to have a tool that monitors all this for you, using both Lighthouse (like you just did), but also RUM and CrUX data. Once you have that in place, you can establish a baseline of the current performance, and then gradually improve it.

Lighthouse is a lab tool so you can't rely on it for real-world performance. Let me recommend PageVitals (https://pagevitals.com) - i'm the founder - which gives you continuous Lighthouse, RUM and CrUX monitoring and alerting.

Reasons:
  • No code block (0.5):
Posted by: lasseschou

79186565

Date: 2024-11-13 20:35:52
Score: 1
Natty:
Report link
import numpy as np
import matplotlib.pyplot as plt
cyan = np.array([(x*0, x*1, x*1, 255) for x in range(256)])
input_array = np.arange(0, 0.8, 0.05).reshape(4, 4)
input_array = (input_array * 256).astype(int)
colour_array = cyan[input_array]
plt.imshow(colour_array)
plt.show()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hrishabh Kumar Singh

79186562

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

If you have the luxury of working in .NET rather than VBA, and after reading nicely reading outlook mailitem properties I realised that two of these properties can have different values depending on whether the message is in Unicode or not:

//PR_ATTACH_CONTENT_ID          0x3712001E (0x3712001F for Unicode) 
//PR_ATTACH_CONTENT_LOCATION    0x3713001E (0x3713001F for Unicode) 

which means I should include these in my testing for values:

        Dim oPR As Outlook.PropertyAccessor = Nothing

        Try
            oPR = oAtt.PropertyAccessor
            If Not String.IsNullOrEmpty(oPR.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x3712001E")) _
            Or Not String.IsNullOrEmpty(oPR.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x3712001F")) _
            Or Not String.IsNullOrEmpty(oPR.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x3713001E")) _
            Or Not String.IsNullOrEmpty(oPR.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x3713001F")) Then
                If CInt(oPR.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x37140003")) = 4 Then
                    Return True
                End If
            End If
        Catch
        Finally
            If Not oPR Is Nothing Then
                Try
                    Marshal.ReleaseComObject(oPR)
                Catch

                End Try
            End If
            oPR = Nothing
        End Try

        Return False

I hope that, between this and @Gener4tor 's answer which may be better suited to VBA code (?) a reader can find a solution to their question around this.

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

79186557

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

The result of an interaction with an AI model (LLM style) may vary (they can also hallucinate in some situations). This is normal behavior in the context of an LLM usage.

This could be avoided if the tool you are using would support for example a seed number.

Copilot must not be viewed as a 'pilot' it must be viewed as a 'copilot' which can help you but like a human it can be wrong sometimes.

The best to do here (given no seed) is to do what your bot suggest, simply to 'rephrase' and provide additional details to your request.

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

79186556

Date: 2024-11-13 20:33:51
Score: 2.5
Natty:
Report link

Just use this in a Private Sub ComboBox1_Change() event:

ActiveCell.Select

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

79186553

Date: 2024-11-13 20:33:51
Score: 3
Natty:
Report link

function Get-DesktopApps { Get-Process | Where-Object { $_.MainWindowTitle } | Format-Table ID,Name,Mainwindowtitle –AutoSize }

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

79186550

Date: 2024-11-13 20:32:50
Score: 2
Natty:
Report link

So, it requires some amount of work, but it is possible to implement this yourself.

All steps would be too much to explain here, but I've encountered the exact same problem. I wanted to sanitize HTML contents as whole documents, and had to find out the hard way, how the library works under the hood.

In short:

I've explained the approach in detail for a use-case based on shopware on my blog: https://machinateur.dev/blog/how-to-sanitize-full-html-5-documents-with-htmlpurifier.

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

79186549

Date: 2024-11-13 20:32:50
Score: 1
Natty:
Report link

I was able to get my use case to work, following these examples and tips from June Choe and Cara Thompson:

Using a combination of systemfonts::register_font() for the TTF I wanted to register and systemfonts::registry_fonts() to confirm it's existence, I could then load the font without impacting emoji rendering. Even can combine the two in the same plot:

df <- cars |>
  mutate(
    glyph = case_when(speed > 16 ~ "✅",
                      .default = fontawesome("fa-car")),
    label = case_when(speed > 16 ~ "Fast",
                      .default = "Slow"),
    color = case_when(speed > 16 ~ "red",
                      .default = "green")
  ) |>
  tibble::tibble()

ggplot() +
  geom_swim_marker(
    data = df,
    aes(x = speed, y = dist, marker = label),
    size = 5, family = "FontAwesome"
  ) +
  scale_marker_discrete(glyphs = df$glyph,
                        colours = df$color,
                        limits = df$label)

enter image description here

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

79186542

Date: 2024-11-13 20:29:49
Score: 4
Natty:
Report link

I have written a Sparx repository query to obtain "data element lineage". I have a source model in XML and the target is imported from Oracle. We have mapped the source XSDelement(s) to the destination database columns in Sparx using connector_type = 'Information Flow' as the base class and a custom stereotype = 'ETLMapping'. Below is the query/view I am using.

[Near the top of the query you will see a literal package name, 'Workday ETL Mapping'. This package defines the scope for the query; it contains the several diagrams which have the ETL source/target mappings defined.]

The Sparx view definition script follows...

USE [SparxProjects]
GO

/****** Object:  View [dbo].[vSparx_Workday_ETL_Source_Target_Object_Element_Mapping]    Script Date: 11/13/2024 2:26:02 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

create    view [dbo].[vSparx_Workday_ETL_Source_Target_Object_Element_Mapping]
as

With cte_workday_etl_package_diagram    as
(select distinct 
    p.Package_ID
    ,p.Name         Package_Name
    ,d.Diagram_ID   
    ,d.Name         Diagram_Name
from t_diagram    d
    inner join t_package p      on (d.Package_ID = p.Package_ID )
where p.Name    = 'Workday ETL Mapping'
)                       

,   cte_workday_etl_package_diagram_object      as
(select     distinct 
    pd.Package_ID                                               
    ,do.Diagram_ID  
    ,do.Object_ID
    ,o.Name         Object_Name
    ,o.Object_Type
    ,o.Stereotype   Object_Stereotype                                               
    ,pd.Package_Name                                
    ,pd.Diagram_Name                        
from t_diagramobjects       do
inner join  cte_workday_etl_package_diagram     pd
        on  (pd.Diagram_ID  =   do.Diagram_ID)
inner join  t_object    o   
        on  (o.Object_ID    =   do.Object_ID)
where
(o.Object_Type  =   'Class'
        and o.Stereotype    in  ('XSDComplexType', 'Table')
)
)       

,   cte_workday_etl_diagram_object_element  as
(select         distinct
                pdo.Object_ID       ETL_Object_ID
                ,pdo.Object_Name    ETL_Object_Name
                ,attr.Name          ETL_Element_Name
                ,attr.ea_guid       ETL_Element_guid    --will be used to join connector end info
                
from        cte_workday_etl_package_diagram_object      pdo
inner join  t_attribute attr    on  (attr.Object_ID =   pdo.Object_ID)
)    

, cte_conn_end_guids    as
(select conn.connector_id
    ,conn.StyleEx
    ,SUBSTRING(conn.StyleEx  
        ,CHARINDEX('{' ,SUBSTRING(conn.StyleEx,1,100))          --start
        ,(CHARINDEX('}', SUBSTRING(conn.StyleEx,1,100))         --right_curly_bracket                       
            -   CHARINDEX('{',SUBSTRING(conn.StyleEx,1,100))    --first left_curly_bracket
            + 1 )                                               --length
    )                       "first_guid_value"  
    ,SUBSTRING(
        conn.StyleEx                                    --expression
        ,CHARINDEX(';' , SUBSTRING(conn.StyleEx,1,100)) + 6                 --start of guid substring
        ,len(conn.StyleEx) - CHARINDEX(';' , SUBSTRING(conn.StyleEx,1,100)) - 7  --length of substring 
    )                       "second_guid_value" 

    ,case 
        when    (SUBSTRING(conn.StyleEx , 1, 2 ) =  'LF'
                and     SUBSTRING(conn.StyleEx , 3, 1 ) =   'S')
        then    'START_CONN_GUID'
        when    (SUBSTRING(conn.StyleEx , 1, 2 ) =  'LF'
                and     SUBSTRING(conn.StyleEx , 3, 1 ) =   'E')
        then    'END_CONN_GUID'
        else    null
    end     "FirstConnEndDirection"

    ,case 
        when    (SUBSTRING(conn.StyleEx 
                        ,CHARINDEX(';' ,conn.StyleEx,1 ) + 1
                        , 2
                        )   =   'LF'                
                and     
                    (SUBSTRING(conn.StyleEx 
                        ,CHARINDEX(';' ,conn.StyleEx,1) + 3
                        , 1
                        )   =   'E'             
                    )
                )
        then    'END_CONN_GUID'
        when    (SUBSTRING(conn.StyleEx 
                        ,CHARINDEX(';' ,conn.StyleEx,1 ) + 1
                        , 2
                        )   =   'LF'                
                and     
                    (SUBSTRING(conn.StyleEx 
                        ,CHARINDEX(';' ,conn.StyleEx,1) + 3
                        , 1
                        )   =   'S'             
                    )
                )
        then    'START_CONN_GUID'
        else    null
    end     "SecondConnEndDirection"

from    dbo.t_connector  conn   
where   conn.StyleEx is not null
    and     conn.Connector_Type =   'InformationFlow' 
    and     conn.Stereotype     =   'ETLMapping'
    and     conn.Start_Object_ID    in (select pdo.object_id  
                from     cte_workday_etl_package_diagram_object pdo)
    and     conn.End_Object_ID      in (select pdo.object_id  
                from     cte_workday_etl_package_diagram_object pdo)
)

, cte_start_conn_elements       as
(   select conn.connector_id
,sattr.Name             Start_Element_Name
,sattr.Type             Start_Element_Type
,sattr.Stereotype       Start_Element_Stereotype
,sattr.ea_guid          Start_Element_guid
,sattr.ID               Start_Element_ID
,sattr.Object_ID        Start_Element_Object_ID
,sattr.Notes            Start_Element_Notes
from cte_conn_end_guids     conn
inner join t_attribute  sattr   on (sattr.ea_guid   =   conn.first_guid_value
                                    and conn.FirstConnEndDirection  =   'START_CONN_GUID'
                                    )
UNION
select conn2.connector_id
,eattr.Name             Start_Element_Name
,eattr.Type             Start_Element_Type
,eattr.Stereotype       Start_Element_Stereotype
,eattr.ea_guid          Start_Element_guid
,eattr.ID               Start_Element_ID
,eattr.Object_ID        Start_Element_Object_ID
,eattr.Notes            Start_Element_Notes
from cte_conn_end_guids     conn2
inner join t_attribute  eattr   on (eattr.ea_guid   =   conn2.second_guid_value
                                    and conn2.SecondConnEndDirection    =   'START_CONN_GUID'   
                                    )
)    
, cte_end_conn_elements     as
(   select conn.connector_id
,eattr.Name             End_Element_Name
,eattr.Type             End_Element_Type
,eattr.Stereotype       End_Element_Stereotype
,eattr.ea_guid          End_Element_guid
,eattr.ID               End_Element_ID
,eattr.Object_ID        End_Element_Object_ID
,eattr.Notes            End_Element_Notes
from cte_conn_end_guids     conn
inner join t_attribute  eattr   on (eattr.ea_guid   =   conn.first_guid_value
                                    and conn.FirstConnEndDirection  =   'END_CONN_GUID'
                                    )
UNION
select conn2.connector_id
,eattr.Name             End_Element_Name
,eattr.Type             End_Element_Type
,eattr.Stereotype       End_Element_Stereotype
,eattr.ea_guid          End_Element_guid
,eattr.ID               End_Element_ID
,eattr.Object_ID        End_Element_Object_ID
,eattr.Notes            End_Element_Notes
from cte_conn_end_guids     conn2
inner join t_attribute  eattr   on (eattr.ea_guid   =   conn2.second_guid_value
                                    and conn2.SecondConnEndDirection    =   'END_CONN_GUID' 
                                    )
)

, cte_workday_etl_connector_objects_elements        as
(select 
spdo.Diagram_ID
,spdo.Diagram_Name
,spdo.Package_ID
,spdo.Package_Name
,seconn.Connector_ID
,spdo.Object_Name           Start_Object_Name
,spdo.Object_Type           Start_Object_Type
,spdo.Object_Stereotype     Start_Object_Stereotype
,seconn.Start_Element_Name
,seconn.Start_Element_Object_ID
,seconn.Start_Element_Type
,seconn.Start_Element_Stereotype
,seconn.Start_Element_guid
,seconn.Start_Element_ID
,seconn.Start_Element_Notes

,epdo.Object_Name           End_Object_Name     
,epdo.Object_Type           End_Object_Type
,epdo.Object_Stereotype     End_Object_Stereotype
,eeconn.End_Element_Name
,eeconn.End_Element_Object_ID
,eeconn.End_Element_Type
,eeconn.End_Element_Stereotype
,eeconn.End_Element_guid
,eeconn.End_Element_ID
,eeconn.End_Element_Notes

from cte_start_conn_elements    seconn
inner join cte_end_conn_elements    eeconn
    on (seconn.Connector_ID =   eeconn.Connector_ID)

inner join  cte_workday_etl_package_diagram_object  spdo
        on  (spdo.Object_ID =   seconn.Start_Element_Object_ID)
inner join  cte_workday_etl_package_diagram_object  epdo
        on  (epdo.Object_ID =   eeconn.End_Element_Object_ID)
)

select  distinct
    s_t_element_mapping.Diagram_ID
    ,s_t_element_mapping.Diagram_Name
    ,s_t_element_mapping.Package_ID
    ,s_t_element_mapping.Package_Name
    ,s_t_element_mapping.Connector_ID
    ,s_t_element_mapping.Start_Object_Name
    ,s_t_element_mapping.Start_Object_Type
    ,s_t_element_mapping.Start_Object_Stereotype
    ,s_t_element_mapping.Start_Element_Name
    ,s_t_element_mapping.Start_Element_Object_ID
    ,s_t_element_mapping.Start_Element_Type
    ,s_t_element_mapping.Start_Element_Stereotype
    ,s_t_element_mapping.Start_Element_guid
    ,s_t_element_mapping.Start_Element_ID
    ,s_t_element_mapping.Start_Element_Notes

    ,s_t_element_mapping.End_Object_Name        
    ,s_t_element_mapping.End_Object_Type
    ,s_t_element_mapping.End_Object_Stereotype
    ,s_t_element_mapping.End_Element_Name
    ,s_t_element_mapping.End_Element_Object_ID
    ,s_t_element_mapping.End_Element_Type
    ,s_t_element_mapping.End_Element_Stereotype
    ,s_t_element_mapping.End_Element_guid
    ,s_t_element_mapping.End_Element_ID
    ,s_t_element_mapping.End_Element_Notes

from    cte_workday_etl_connector_objects_elements    s_t_element_mapping

GO

Thanks to Geert Bellekens at https://sparxsystems.com/forums and https://stackoverflow.com/users/3379653/qwerty-so for their helpful remarks and suggestions.

Reply here with any improvement suggestions or error discoveries. Sorry about the formatting, it parsers fine in SQL.

Best, CCW

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): stackoverflow
  • RegEx Blacklisted phrase (2): any improvement suggestions
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ccw

79186539

Date: 2024-11-13 20:29:49
Score: 1
Natty:
Report link
USE master;
GO
ALTER DATABASE MyTestDatabase SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
GO
ALTER DATABASE MyTestDatabase MODIFY NAME = MyTestDatabaseCopy;
GO
ALTER DATABASE MyTestDatabaseCopy SET MULTI_USER;
GO
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: khaleel rashid

79186527

Date: 2024-11-13 20:23:47
Score: 1.5
Natty:
Report link

Put this in settings.json:

"vim.normalModeKeyBindingsNonRecursive": 
[
    { 
        "before": ["/"],
        "after": ["/"] 
    }
]
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kerry Hoke

79186525

Date: 2024-11-13 20:22:47
Score: 0.5
Natty:
Report link

The tool you're looking for here is the prefix argument to the form classes. You'll need to override some view methods like get_form and potentially get_form_class because class based views aren't designed to take more than one form type by default. You may also need to override the post method on the views to load the data from the post request into the forms.

The prefix argument means that the form data sent to your django app will be "namespaced" so the form class will only load in the post data it needs from the request.

Depending on how you're rendering your forms you may want to ensure the prefix is also rendered in the HTML input's name attribute.

Obligatory docs link

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

79186509

Date: 2024-11-13 20:17:46
Score: 4.5
Natty:
Report link

CreateFile(A/W) will not work on Windows 98 because, according to the description on MSDN, the minimum client is Windows XP. Maybe you should try using C "fopen" function, for example?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: 73v3n71n0

79186508

Date: 2024-11-13 20:17:46
Score: 1
Natty:
Report link

An answer I have test for my working hours tab

A short formula that I use and put the hours format automatically is

=TEXT(INT(A1) + (A1 - INT(A1)) * 100 / 60, "[hh]:mm:ss")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: BubbleWrap1631

79186506

Date: 2024-11-13 20:16:45
Score: 0.5
Natty:
Report link

I came across the same error too, here's how to actually debug the issue

in my case it was this Error: Unable to resolve module ../../../../assets/icons/BullseyeIcon

Fix any missing assets or incorrect paths in your code attempt to Archive the project again Goodluck!

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

79186503

Date: 2024-11-13 20:14:45
Score: 2
Natty:
Report link

You could use URLs through custom data fetching if, and then setting that as the stamp's image. However, this would introduce a few complications, such as if the URL is unreachable, and actually hosting the image somewhere if its a custom image. This would only work with our viewers, since it would be in custom data. To clarify, XFDF is part of the PDF ISO standard, and it doesn't define support for external URLs.

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

79186500

Date: 2024-11-13 20:13:45
Score: 1.5
Natty:
Report link

An alternative shorter formula to count days between 2 dates is this:

abs(subtract(daysUntil($datefieldA),daysUntil($datefieldB)))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vincent Amari

79186498

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

I actually found the fix for it.

It seems to be a known issue in Janino's dependency end.

In order to make this work, it is need to adjust the MANIFEST.MF in both janino and commons-compiler adding the following line:

DynamicImport-Package: ch.qos.logback.*,org.slf4j

References:

https://github.com/qos-ch/logback-contrib/pull/29/files

https://github.com/qos-ch/logback-contrib/issues/28

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

79186497

Date: 2024-11-13 20:13:45
Score: 1.5
Natty:
Report link

If we looking for elegant one-liner, maybe this would be.

List(0,1,2).reverse.tail.reverse
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yunhui Zhang

79186495

Date: 2024-11-13 20:12:45
Score: 3
Natty:
Report link

try to close firewall and try again flutterfire configure

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

79186485

Date: 2024-11-13 20:09:44
Score: 0.5
Natty:
Report link

I had the same issue with Visual Studio 2022, with a winforms project (with .NET 8) created on a different machine. None of the above solutions worked.

However, I got it working by adding a new winforms project to my solution. Suddenly VS recognised the original form and was able to open the designer. (I could then delete the new project.)

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

79186483

Date: 2024-11-13 20:08:44
Score: 1
Natty:
Report link

Facing this issue while importing wordpress table

alter table wp_users IMPORT TABLESPACE; MySQL said: Documentation

#1815 - Internal error: Drop all secondary indexes before importing table wp_users when .cfg file is missing.

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

79186482

Date: 2024-11-13 20:08:44
Score: 1
Natty:
Report link

The value "1'"5000" is suspicious and resembles an attempt at SQL injection or other forms of injection attacks. Attackers often use payloads like "1'" to test for vulnerabilities related to improper input sanitization.

SQL Injection Testing: The single quote ' is used in SQL to denote string literals. An unescaped or improperly handled quote can break out of the intended query structure, allowing attackers to manipulate the SQL commands executed by your database.

Malicious Probing: By injecting such values into various headers and parameters, attackers probe your application's responses to see if it behaves unexpectedly, indicating a potential vulnerability.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Faik SEVİM

79186458

Date: 2024-11-13 20:00:41
Score: 3.5
Natty:
Report link

You also need tabpy-server installed if you don't already.

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

79186452

Date: 2024-11-13 19:57:41
Score: 1
Natty:
Report link

Well, I would not allow users to upload files, if they aren't registered users and logged in. If this is the case, create a subfolder for each user with the same username which has to be unique. Then a combination of a timestamp and md5 would do it. Combine the timestamp and the md5 with an underscore between. So it's easy to chop off the timestamp to compare for the image already being present. At least, that's how I would do it.

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

79186451

Date: 2024-11-13 19:57:41
Score: 3.5
Natty:
Report link

The solution was to create a LoadingProgress component that got wrapped around calls to the ApiClient.

For more details follow the link below

https://github.com/JohnMarsing/Mhb-FastEndpoints-Hosted-Blazor-Wasm/wiki/No-Registered-Service-Exception-%7C-LoadingProgress

Reasons:
  • Blacklisted phrase (1): the link below
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: John Marsing

79186442

Date: 2024-11-13 19:54:40
Score: 1.5
Natty:
Report link

The answer is that the main pom dependabot is checking is a pom generated by gradle publish plugin and they do not include the metadata.

In my case the example is here

Once gradle enables the metadata there or you publish to a different portal it will work

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

79186437

Date: 2024-11-13 19:53:39
Score: 0.5
Natty:
Report link

Just change this:

const Store = require('electron-store');

to this:

const Store = ( await import('electron-store') ).default;

The error is pretty much self explanatory and provides a the solution.

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

79186432

Date: 2024-11-13 19:52:39
Score: 2
Natty:
Report link

You can refer to this documentation for additional details.

Here are the things to consider :

Reasons:
  • Blacklisted phrase (1): this document
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: miracle

79186426

Date: 2024-11-13 19:49:39
Score: 2
Natty:
Report link

Deleting the .idea folder and restarting IntelliJ solved the issue for me.

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

79186415

Date: 2024-11-13 19:45:38
Score: 0.5
Natty:
Report link

You found a bug. It shouldn't be possible to train the learner with TuneToken present in the parameter set. This has nothing to do with the train-test split. If you are really worried by this, you can check the resampling splits in instance$archive$benchmark_result$resamplings after the optimization.

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

79186414

Date: 2024-11-13 19:44:38
Score: 0.5
Natty:
Report link

I got the same issue with NextJS app in VSCode, my solution is:

  1. Uninstall an old React extension in VSCode.
  2. Restart VSCode.

That worked for me!

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Nguyễn Đình Hiếu

79186395

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

We learned that:

For upgrading actions/cache to v4 works.

uses: actions/cache@v4

It remains unclear, on why this occured today in Nov 2024.

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

79186392

Date: 2024-11-13 19:35:35
Score: 1.5
Natty:
Report link

So from the following code:

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>3.3.4</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>
 ...
<packaging>jar</packaging>
<properties>
    <java.version>21</java.version>
    <maven.compiler.source>23</maven.compiler.source>
    <maven.compiler.target>23</maven.compiler.target>

The upgrade is definitely persisted in the XML. I'm interested to know what the Heroku server config is. It's possible there is a mismatch between your local config and your remote config.

Also, did you notice any differences in your lock file?

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: mconkin

79186390

Date: 2024-11-13 19:35:35
Score: 2
Natty:
Report link

interaction.deferReply() allows you to postpone the response for your actions. It does not return a message. To submit your response, try editReply instead of followUp.

For more information, please visit:

https://discordjs.guide/slash-commands/response-methods.html#deferred-responses

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

79186389

Date: 2024-11-13 19:34:34
Score: 3.5
Natty:
Report link

=JOIN(CHAR(10),E3:G3)&", "&H3&" "&I3

This was the answer. TYVM sillycone!

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

79186385

Date: 2024-11-13 19:33:32
Score: 7 🚩
Natty: 6.5
Report link

Is there any possibility to return zero instead of null value??

Reasons:
  • Blacklisted phrase (1): Is there any
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Is there any
  • Low reputation (1):
Posted by: Nagaraju P

79186381

Date: 2024-11-13 19:32:31
Score: 4.5
Natty:
Report link

Didn't realize that I could get the result I needed by changing the ChartType from Column to StackedColumn even though I have only one item in the stack...

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did
  • Low reputation (1):
Posted by: Tim

79186379

Date: 2024-11-13 19:31:31
Score: 5
Natty:
Report link

Also note extracting the folder creates a nested folder with the same name. Be sure to drill into the second folder at the extraction path: bike-data\bike-data to select the leaf folder, to select it, otherwise you may get the same error.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): get the same error
  • Single line (0.5):
  • Low reputation (1):
Posted by: Chris K

79186373

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

Using Index Sheet Function

Your code is almost there, I corrected some strings in your sheet Formula.

From this:

=substitute(index(IMPORTHTML("https://finviz.com/quote.ashx&t="&MCD&"&p=d","table",10),9,4),"*","")

To This:

=substitute(index(IMPORTHTML("https://finviz.com/quote.ashxt="&"MCD"&"&p=d","table",10),7,4),"*","")

I corrected the Value of your concatenation from "&MCD&" to "&"MCD"&" to make the link work.

To get the desired output the table display below will help you navigate the table.

This is the step by step on how you get each data you want base on the function you've given.

Sample Image 1

To get the desired output you just need to navigate your parameters Row and Column

Sample Image 2


Sample Image 3

To get the desired data a sample below is how you get the P/FCF you just need to adjust your row and column.

Sample function: =INDEX(url, 7, 4)

Reference:

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

79186368

Date: 2024-11-13 19:28:30
Score: 2.5
Natty:
Report link

The error was created by curl version used at the time which was 8.1.2. If you are experiencing unexpected 43 BAD_FUNCTION_ARGUMENT errors please update your curl. At the time of writing curl 8.7.1 does not produce this error.

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

79186365

Date: 2024-11-13 19:27:27
Score: 7 🚩
Natty: 6
Report link

did you manage to make it work? Same here although having instagram_business_* permissions in Advanced Access. The API only returns the username of the owner of the media.

Reasons:
  • RegEx Blacklisted phrase (3): did you manage to
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did you
  • Low reputation (1):
Posted by: Carles Bonfill

79186362

Date: 2024-11-13 19:27:27
Score: 1.5
Natty:
Report link

Add a bootstrap modal into your code. And call it from your catch block.

try { // todo } catch (err) { $('#errorModal').modal('toggle') }
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Giridhar

79186361

Date: 2024-11-13 19:26:27
Score: 2
Natty:
Report link

so:

  1. It's basically recreate your database
  2. You can find it in rails source https://github.com/rails/rails/blob/main/activerecord/lib/active_record/railties/databases.rake#L164
Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Oleksandr Holubenko

79186350

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

There is a Systernals Procdump for Osx, and Procdump, Procmon, and Sysmon for Linux.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: js2010

79186326

Date: 2024-11-13 19:12:24
Score: 1
Natty:
Report link

this solution really helped me thanks

Environment Variable FONTCONFIG_PATH: /var/task/assets/fonts

fonts.conf inside /var/task/assets/

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
   <dir>/var/task/assets/fonts/</dir>
   <cachedir>/tmp/fonts-cache/</cachedir>
   <config></config>
</fontconfig>
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Saulo Nunes

79186321

Date: 2024-11-13 19:09:24
Score: 0.5
Natty:
Report link

In your UIfile.py

self.setWindowFlag(QtCore.Qt.WindowType.FramelessWindowHint).

Also, in your backend file you must create

QSizeGrip(some_obj)

where some_obj is any object (frame, dutton or etc) for expanding your window, write this inside init().

Also you must write in your backend file inside your Class this:

    def move_window(e): # inside __init__()
        """Drag your window"""
        if e.buttons() == QtCore.Qt.MouseButton.LeftButton:
            try:
                self.move(self.pos() + e.globalPosition().toPoint() - self.clickPosition)
                self.clickPosition = e.globalPosition().toPoint()
                e.accept()
            except AttributeError:
                pass

def mousePressEvent(self, e):  # inside class
    self.clickPosition = e.globalPosition().toPoint()

and

self.some_obj.mouseMoveEvent = move_window # inside init()

Written for PySide6, can be adapted for PyQt

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

79186301

Date: 2024-11-13 18:59:21
Score: 4
Natty:
Report link

Try upgrading Android Gradle Plugin version to 8.1.0 as mentioned here Firebase Initialization Crash After Updating com.google.gms:google-services to 4.4.0

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

79186300

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

In my case bulding with android.mw you can use <> in all the case

But if you are using CMakeLists every include under the JNI lib must use "" if not you got file not found.

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

79186286

Date: 2024-11-13 18:53:19
Score: 1.5
Natty:
Report link

Thanks for the help from @edrezen in finding the solution to my problem. I can't believe it was so simple. An index error. I updated the code slightly to fix this indexing error, the carries array should always be 1 larger than the input array. The updated code for the controller thread is shown below:

void ControllerThread(int &iterationCount, bool &finishedIterations, vector<int> &doneThreads, vector<int> &startIndexes, vector<int> &endIndexes, vector<uint8_t> &output, vector<uint8_t> &carries, bool &isAnyOne, int numThreads, vector<uint8_t> &input) {
    iterationCount = 0;
    while(iterationCount < totalIterations) {
        unique_lock<mutex> lock(mtx);
        cv.wait(lock, [&doneThreads] {
            // If all threads are done then start
            return all_of(doneThreads.begin(), doneThreads.end(), [](int done) {return done >= 1;});
        });

        // Carry propogation area
        while (isAnyOne) {
            isAnyOne = false;
            for (int i = 0; i < carries.size(); i++) {
                uint8_t intermediate;
                if (output.size() > i) {
                    intermediate = output.at(i) + carries.at(i);
                    carries[i] = 0;
                    uint8_t localCarry = (intermediate >= 10) ? 1 : 0;
                    if (localCarry == 1) {
                        isAnyOne = true;
                        intermediate -= 10;
                        if (carries.size() > i)
                            carries[i+1] = localCarry;
                        else
                            carries.push_back(localCarry);
                    }
                    output[i] = intermediate;
                }
                else if (carries[i] > 0) {
                    intermediate = carries.at(i);
                    carries[i] = 0;
                    output.push_back(intermediate);
                    break;
                }
            }
        }
        OutputList(output);

        if (iterationCount > 0) {
            input = output;
        }
        while (carries.size() < input.size() + 1) {
            carries.push_back(0);
        }
        // Set conditions for threads
        int itemsPerThread = input.size() / numThreads;
        // If the input size and number of threads aren't divisible
        int lastThreadExcess = input.size() % numThreads;
        // Initializing all the threads
        for (int i = 0; i < numThreads; i++) {
            int startIndex = i * itemsPerThread;
            int endIndex = (i+1) * itemsPerThread;
            if (i == numThreads - 1) {
                endIndex += lastThreadExcess;
            }
            startIndexes[i] = startIndex;
            endIndexes[i] = endIndex;
        }
        // Resetting the threads to start doing tasks again
        for (int j = 0; j < doneThreads.size(); j++) {
            doneThreads[j] = 0;
        }
        // Starting the threads to do their tasks
        lock.unlock();
        cv.notify_all();
        iterationCount++;
    }
    // This top section of thread processing is finished so setting this variable
    finishedIterations = true;
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @edrezen
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: MrGreenyboy

79186281

Date: 2024-11-13 18:53:19
Score: 2
Natty:
Report link

Except other answers here check if tables owner set to the same user as schema and database and who make query.

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

79186253

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

In file build.gradle.kts (:app) in folder res change

compileSdk = 35

targetSdk = 34

Remember that the compileSdk you choose must be compatible with the API level of the virtual device

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

79186248

Date: 2024-11-13 18:42:14
Score: 6 🚩
Natty:
Report link

I'm facing the same issue, but no solution found for now.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm facing the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Julien Baillon

79186247

Date: 2024-11-13 18:42:14
Score: 1
Natty:
Report link

This might not be the answer you might be looking for, however I had similar issues, and after some trial and error my Gtag started to work when I disabled partytown in the config.yaml:

analytics:
  vendors:
    googleAnalytics:
      id: "G-XXXXXXXXXX"
      partytown: false
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Redondi

79186236

Date: 2024-11-13 18:38:12
Score: 2.5
Natty:
Report link

In this case sudo setcap 'cap_setgid=ep' your_program should work.

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

79186235

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

experiencing similar issue. but inside render deployment tried adding

  binaryTargets = ["native", "debian-openssl-3.0.x"]

but no progress

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

79186231

Date: 2024-11-13 18:35:11
Score: 2
Natty:
Report link
  1. ++p increments the pointer, modifying the original pointer value, so that it points to the next element in memory. It's the pre-increment operator for pointers.
  2. p + 1 calculates a new pointer value, which points to the next element in memory, but does not modify the original pointer. This is just pointer arithmetic.
Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: sankeedhan

79186230

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

Not an answer, but there is too much here for a comment.


There are some things in the question that are not clear:

  1. Can there be more than one set of duplicate for a given set of keys?
  2. Could there be NO duplicates, and if so what do you want to see?
  3. Could there be multiple sets of keys with duplicates, and if so how do you want to show this?
  4. Do you really want to show the duplicate row as the column headers? And if so, again, how to handle multiple sets of duplicates? Answered this by looking at revision history. The original did not use the first row as a header.
  5. What kind of database do you have?

Until you can answer these, this question need to be put on hold, because it's not really answerable.

Reasons:
  • Blacklisted phrase (1): how do you
  • Blacklisted phrase (1): Not an answer
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-2):
Posted by: Joel Coehoorn

79186227

Date: 2024-11-13 18:33:10
Score: 0.5
Natty:
Report link

Thanks to helgatheviking comment, Go this:

1- Create "debug.log" file in "wp-content" folder: /wp-content/debug.log

2- Make sure that the "debug.log" file is writable by anyone (all users not only admin) (permission 777)

3- In main wordpress directory in "wp-config.php" file, uncomment and change:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );

4- Inside the hook function or in functions.php use this code to log any variable:

error_log(json_encode($array));

5- Read /wp-content/debug.log

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

79186224

Date: 2024-11-13 18:32:10
Score: 2.5
Natty:
Report link

Just stumbled upon this problem today, 2024. How can this still be an issue? Mesmerizing...

I mean, (negative-)margins for images should work the same on desktop as on mobiles, right, can we all agree on that? Well, they don't. That's a bummer :(

It's kind of awful that you can't use Developer Tools to simulate the bug as well - since Chromium handles it as "desktop" even if you choose a device.

Reasons:
  • Blacklisted phrase (1): :(
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: elgholm

79186208

Date: 2024-11-13 18:26:09
Score: 3
Natty:
Report link

Try checking the LD_LIBRARY_PATH environment variable. The libapicom.so should reside in $AUTOSYS/lib directory, LD_LIBRARY_PATH should contain the respective path.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jan Slezák

79186197

Date: 2024-11-13 18:24:08
Score: 2
Natty:
Report link

Updating Android studio and restarting computer worked for me, after invalidating caches didn't

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Brianna Jacobson

79186186

Date: 2024-11-13 18:20:07
Score: 2.5
Natty:
Report link

It is not there in flutter_inappwebview dependancy but you should give a try to https://pub.dev/packages/webview_flutter as it has more option and it might fullfil your requirement.

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

79186172

Date: 2024-11-13 18:19:06
Score: 1
Natty:
Report link
WITH RowNumbered AS (
    SELECT
        *,
        ROW_NUMBER() OVER (PARTITION BY your_column ORDER BY your_sort_column) AS row_num
    FROM
        your_table
)
SELECT *
FROM RowNumbered
WHERE row_num = 1;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shubham Soni

79186167

Date: 2024-11-13 18:18:06
Score: 1
Natty:
Report link

This might be duplicated of this


Try to delete:

plugins: [
      [
        'module:react-native-dotenv',
        {
          moduleName: '@env',
          path: '.env',
        },
      ],
    ],

from babel.config.js

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: A.Rahman Al-Khateeb

79186158

Date: 2024-11-13 18:15:05
Score: 1.5
Natty:
Report link

In 2024- XCode 16

  1. Top menu: Window -> Devices and Simulators
  2. click Simulators in top left
  3. click + in bottom left
  4. click OS Version -> Download more runtimes...
  5. click + in bottom left
  6. click iOS
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: jwallis

79186157

Date: 2024-11-13 18:15:05
Score: 2.5
Natty:
Report link

After Moshe Gross's answer, I added a cleanup routine to the perform_wvc_copy function, removing any existing product variations before the copy.

The fixed function:

function perform_wcv_copy() {
    global $options;
    $source_product_id = get_option('source_product_id');
    $target_product_id = get_option('target_product_id');

    $source_product = wc_get_product($source_product_id);
    $target_product = wc_get_product($target_product_id);

    // Check if source and target products have variations
    if ($source_product->is_type('variable') && $target_product->is_type('variable')) {

        // Get the variations of the target product
        $t_variations = $target_product->get_children();

        // Delete existing product variations
        foreach ($t_variations as $t_variation_id) {
            $t_variation = wc_get_product($t_variation_id);
            $t_variation->delete( true );
        }
    }        

    // Check if the source product has variations
    if ($source_product->is_type('variable')) {
        if (!$target_product->is_type('variable')) {
            /* Update target parent */
            $target_product = wc_get_product($target_product_id);
            $target_product->set_attributes($source_product->get_attributes());
            $target_product->save();
            wp_set_object_terms( $target_product_id, 'variable', 'product_type' );
        }
    
        // Get the variations of the source product
        $variations = $source_product->get_children();

        foreach ($variations as $variation_id) {
            $variation = wc_get_product($variation_id);

            // Create a new variation for the target product
            $new_variation = new WC_Product_Variation();
            $new_variation->set_parent_id($target_product_id);
            
            // Set attributes and other settings from the source variation
            $new_variation->set_attributes($variation->get_attributes());
            $new_variation->set_regular_price($variation->get_regular_price());
            $new_variation->set_sale_price($variation->get_sale_price());
            $new_variation->set_weight($variation->get_weight());
            $new_variation->set_length($variation->get_length());
            $new_variation->set_height($variation->get_height());
            $new_variation->set_width($variation->get_width());
            
            // Save the new variation
            $new_variation->save();
        }
    }
    update_option( 'wcvc_status', 'done' );
}

If there's anything else, please provide a comment or answer.

Reasons:
  • RegEx Blacklisted phrase (2.5): please provide
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Wayne Schulz

79186147

Date: 2024-11-13 18:12:05
Score: 2
Natty:
Report link

Possible fix for a safer side is to add a condition to check whether your activity or fragment is alive or not. This is especially important if you are using the fragment lifecycle callbacks such as onAttach() and onDetach().

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

79186143

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

Perhaps as a last resort you could use nvidia-smi --gpu-reset -i <ID> to reset specific processes associated with the GPU ID. In Jupyter notebook you should be able call it by using the os library. Nevertheless, the documentation of nvidia-smi states that the GPU reset is not guaranteed to work in all cases.

You may want to visit this other post before doing anything with this command-line tool: What does the command "nvidia-smi --gpu-reset" do?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Julián Andrés Hernández Potes

79186137

Date: 2024-11-13 18:09:03
Score: 5.5
Natty: 5
Report link

same issue can not found the api to upload :((

Reasons:
  • Blacklisted phrase (1): :(
  • RegEx Blacklisted phrase (1): same issue
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nam Lê Trung

79186129

Date: 2024-11-13 18:05:02
Score: 5.5
Natty: 5
Report link

How many transactions are you using to test performance? Or are you just profiling the Query paths?

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

79186126

Date: 2024-11-13 18:03:01
Score: 2.5
Natty:
Report link

I can tell you that one way is in the following PowerShell environment path. . .

"$ENV:AppData\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar"

Another way is through the registry. . .

"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband"

. . .with names like "Favorites", "FavoritesChanges", "Pinned", and "LayoutCycle"

You would have to share your PowerShell code you have so far before we can offer any help, but those are some places you could look at.

Reasons:
  • Blacklisted phrase (1): any help
  • No code block (0.5):
  • Low reputation (1):
Posted by: Vern Anderson

79186119

Date: 2024-11-13 18:02:01
Score: 2
Natty:
Report link

The iOS simulator sometimes has issues with location permissions. Testing on a physical device.

If the problem continues, please ensure the alert code is executed on the main thread.

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

79186118

Date: 2024-11-13 18:01:00
Score: 2
Natty:
Report link

In the settings of VS Code, there is a setting for the interpreter path. You may also want to symlink python to python3 (ln -s /usr/bin/python3 /usr/bin/python) if you don't want to change the settings.

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

79186114

Date: 2024-11-13 18:01:00
Score: 0.5
Natty:
Report link

To move a block between columns you can use Drag Events. In these events, you're add or remove css styles. what about changing size the block, you can use "mousemove" and "mouseup" events.

Also if you work with react, you can use "react-resizable".

You can check all drag events here

Drag Events Link

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

79186111

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

For these kind to things you might want to check out: TipGroup(.ordered).

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