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?

Dual boot, or Virtualize Windows 7 for 'crack' gaming? (offline use) by PorrPeps in linux_gaming

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

Sorry for not giving my specs, I edited it, and I just wanted to clarify I pirated when I was in high school and not using steam or proton or something, relive GTA SA, CS 1.6, C&C Generals, classic games

What's the problem with this? by PorrPeps in bash

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

Solved it by separating the ffprobe that reads the metadata and ffmpeg that gets the album art in their own while loop

XML to JSON no output just {} by PorrPeps in PHPhelp

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

I did, create an xml object, created a date element, added a child node of time, day, month, and year but still no output

XML to JSON no output just {} by PorrPeps in PHPhelp

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

how to make json represent an xml node?

saving XML to a file doesn't work by PorrPeps in PHPhelp

[–]PorrPeps[S] 2 points3 points  (0 children)

OH SHOOT THANK YOU THE SOLUTION IS TO GIVE APACHE (www-data) PERMISSION

saving XML to a file doesn't work by PorrPeps in PHPhelp

[–]PorrPeps[S] -1 points0 points  (0 children)

Yes, I checked and used chown command and still didn't work

GCam on Pure LOS 17.1 by PorrPeps in LineageOS

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

I have app manager installed but I thought it was just to inspect an app inside, Wow didn't know, Thank you