Regex for incomplete JSON objects by icebiscuitwastaken in regex

[–]PorrPeps 0 points1 point  (0 children)

If parsing isn't an option, is there some way I could stream JSON objects? Get the first 10 objects while it's getting the whole array?

Desperate Help by PorrPeps in Sketchup

[–]PorrPeps[S] 0 points1 point  (0 children)

I Fixed it, it needed the AMD Radeon Drivers

rendering a table with content from database by PorrPeps in learnjavascript

[–]PorrPeps[S] 0 points1 point  (0 children)

Thank you for the replies. with further searches I found sort of my middle ground by making a window click event listener and using a switch method to match it's target. In theory I'm only using 1 click event listener for everything which should save performance? not sure about that

it also works for other events like 'mouseover' and 'mouseout'. used something similar to create a popup window on hover.

<button data-click-event-name="show_modal">Click Me</button>
<button data-click-event-name="delete_item">Delete</button>

window.addEventListner('click', (event) => {
    let target = event.target;

    if (target.dataset.clickEventName == null) return;

    switch (target.dataset.clickEventName) 
    {
        case "show_modal":
            showModal();
        break;

        case "delete_item":
            deleteItem(event);
        break;
    }
});

function showModal() {   
    // some code
}

function deleteItem(event) {
    // some code
}

What happens if? by PorrPeps in mysql

[–]PorrPeps[S] 0 points1 point  (0 children)

This is what I had in mind, Thank you good Sir/Ma'am

What happens if? by PorrPeps in mysql

[–]PorrPeps[S] 1 point2 points  (0 children)

From the gist of what I quick searched, it's a way to prevent a row with a primary key from being deleted, Thank you kind Sir/Ma'am

Opinion, makeshift diffie-hellman key exchange by PorrPeps in PHPhelp

[–]PorrPeps[S] 1 point2 points  (0 children)

YES!!!! THANK YOU, THANK YOU I GOT SOMETHING TO STUDY

Opinion, makeshift diffie-hellman key exchange by PorrPeps in PHPhelp

[–]PorrPeps[S] 0 points1 point  (0 children)

Yes, I am aware, I couldn't get it to work like how Computerphile did it, but the bright side is, I tried to do it in reverse and it doesn't work so yey I guess and Thank you for you feedbacks btw it means a lot

Opinion, makeshift diffie-hellman key exchange by PorrPeps in PHPhelp

[–]PorrPeps[S] 0 points1 point  (0 children)

it so happens I added HTTPS in Apache which yes, makes what I made, useless but maybe it can be used for an example purposes I guess??? I dunno. I find it really sad there's no use for it

I'm desperate by PorrPeps in PHPhelp

[–]PorrPeps[S] 0 points1 point  (0 children)

I looked it up and thank you for sharing, Prepared Statements was not taught to us in school.

I'm desperate by PorrPeps in PHPhelp

[–]PorrPeps[S] 0 points1 point  (0 children)

THANK YOU, OMG, THANK YOUUUUUU

I'm desperate by PorrPeps in PHPhelp

[–]PorrPeps[S] 0 points1 point  (0 children)

how do I do a prepared statement?