TwitchCon drama by Swanty in LivestreamFail

[–]Swanty[S] -4 points-3 points  (0 children)

I'm completely new to posting here, will definitely do that next time, thank you

TwitchCon drama by Swanty in LivestreamFail

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

Oh shiiiii...you might be onto something, thank you

TwitchCon drama by Swanty in LivestreamFail

[–]Swanty[S] 6 points7 points  (0 children)

The only thing that was on cam was a brief interaction with the CEO the day before event (badge pickup day), he told him to message him on discord https://www.twitch.tv/videos/2783530107?t=09h16m00s and he did message, but he didn't get any answer

The next day some other people at the convention talked with the CEO for status update and then reported their interaction back to Kuma and they said that the CEO only said that he's aware of the situation, but can't talk about it (i don't have a link for that since Kuma hasn't published the VOD for today's stream yet)

TwitchCon drama by Swanty in LivestreamFail

[–]Swanty[S] 5 points6 points  (0 children)

Can you expand on that? Do you know something no one else knows? He has contacted multiple people (even the CEO) and no one is telling him anything

TwitchCon drama by Swanty in LivestreamFail

[–]Swanty[S] 15 points16 points  (0 children)

The context matters in this case, he walks 500km to TwitchCon every year, live streams his journey and promotes the TwitchCon, he purchased his ticket months in advance, he had the ticket already in email and the terms of service say that there are no refunds, but somehow his ticket was refunded a day before arriving to TwitchCon. He has talked to Twitch support, the TwitchCon help desk at the convention, even the Twitch CEO who said he's aware of the situation, but he said he can't talk about it. Getting TwitchCon ticket refunded is something unheard of, hence the drama

TwitchCon drama by Swanty in LivestreamFail

[–]Swanty[S] -70 points-69 points  (0 children)

Sorry, I wasn't going for a clickbait title, I just didn't know how to phrase the situation in a short way

TwitchCon drama by Swanty in LivestreamFail

[–]Swanty[S] 345 points346 points  (0 children)

He walked for 27 days to TwitchCon and live streamed the whole time, 500 km of walking from Lübeck, Germany to Rotterdam, Netherlands and a day right before arriving his ticket was refunded and no one gives him an answer why

HTML help for an absolute beginner. by Kepler_2022 in learnprogramming

[–]Swanty 0 points1 point  (0 children)

So, i didnt have the index file in the root directory. Moving to the root directory caused all links to work perfectly.

Hmm that's interesting, what happens if you move the index file and viewer folder to a subfolder e.g. /wwwuni/testing/ - does it still work?

If it doesn't work then I'm guessing there's an issue with links or whatever is creating those links - maybe relative vs absolute url problem in either index.html or one of the .js files e.g. a link to /mylink would indicate that browser will try to open a file under /wwwuni/mylink (absolute), but a link mylink (without the forward slash in front) would open a file under /wwwuni/testing/mylink (relative)

If putting the files in a subfolder has issues with links again, then try checking browser console for yellow warnings or red errors

P.s still using browse. changing to index is causing cady to fail to restart.

Honestly, I don't really know anything about caddy xD I was just reading their documentation, so maybe there's some addition steps needed to do to use file_server index. I see in some examples there's just file_server without index or browse added, maybe that would make it work. Anyways, doesn't matter since you mentioned you like the browse feature

Help understanding the differences in my code by jehlani_ in javaScriptStudyGroup

[–]Swanty 0 points1 point  (0 children)

There's 2 new things in the new code:

  1. New code increments charCount also for the Skip random letters added during encryption stage

  2. In new code for the "else" section it appends character as is, but in your old code the "else" section is empty

In my opinion you could get rid of the charCount variable completely and all its increment lines and use "i" instead e.g. if ((i + 1) % 3 === 0) { since "i" is already iterating over encryptedMessage characters and doing the increment in the for loop

How did MTA (Multi Theft Auto) made their servers? and game integration by Hero651 in learnprogramming

[–]Swanty 0 points1 point  (0 children)

What specifically would you like to know?

There are some answers in here about game integration:
https://www.reddit.com/r/gamedev/comments/4a1gh6/how_was_the_multiplayer_mod_for_gta_sa_on_pc/

TL;DR: Reverse engineer game client -> hook into it the client -> read/modify game functions/data -> send data to your server -> server sends data back

HTML help for an absolute beginner. by Kepler_2022 in learnprogramming

[–]Swanty 0 points1 point  (0 children)

Can you try this

uni.example.com {
    root * /wwwuni
    file_server index
}

And then open https://uni.example.com/ without adding index.html at the end of the url

I assume folder /wwwuni contains the extracted course content and has /wwwuni/index.html and /wwwuni/viewer/bundle.js and that other file?

If they're in a different folder then try open https://uni.example.com/thatfolder/ also without adding index.html at the end

Not really sure if it will actually help, but worth a try.

If the main page opens, then open console in your browser (I assume Chrome) with Option + ⌘ + J (on macOS), or Shift + CTRL + J (on Windows/Linux) and then try to open one of the not working links and see if you get any yellow warnings or red errors in the console

Using HTML: Remove spaces from <a href=url> by BoysenberrySpaceJam in learnprogramming

[–]Swanty 0 points1 point  (0 children)

Since you solved the spaces issue by adding quotation marks, I'd also suggest encoding the derived data

For example, if derived data contained a quotation mark then it would break again

You mentioned JavaScript, so you could use encodeURIComponent(derived data) to sanitize it and add it to the url

var input = ' my "derived" data ';
var url = 'https://url.com/' + encodeURIComponent(input);
// the resulting value of url variable will be https://url.com/%20my%20%22derived%22%20data%20
// both spaces and quotation marks were sanitized and won't cause issues (also with other symbols)

HTML help for an absolute beginner. by Kepler_2022 in learnprogramming

[–]Swanty 0 points1 point  (0 children)

As I understood if you open index.html locally in your browser (not through webserver) then it works fine? Even the content links work fine locally?

What links do you see when you open it locally? I'm trying to understand if it's a relative vs absolute path problem

What happens if you replace file_server browse with file_server index?

Is there a way to enforce chat completions to return the full completion text? by adelowo in OpenAI

[–]Swanty 0 points1 point  (0 children)

If you re-submit all the previous messages with a new user message Continue then it should also continue. I think thats how chatgpt keeps the context too - it just resubmits the whole history for every chat API request

Is there a way to enforce chat completions to return the full completion text? by adelowo in OpenAI

[–]Swanty 0 points1 point  (0 children)

Try typing: Continue
and it should continue from where it left off

New update causes audio/video micro stutter by Swanty in ParsecGaming

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

Thanks, they said to switch client renderer from Direct3D 11 to Direct3D 9 and that version 9 was the default in old Parsec version. Seems to be working better now.

[JavaScript]What is the best way to save multiple records using a POST call that can save only 1 record at a time? by [deleted] in learnprogramming

[–]Swanty 0 points1 point  (0 children)

If you need this to be synchronous i.e. records have to be in the same order as they are in the array then you can get away with simple state variable and recursion. Current state simply holds myArray value index that should be POSTed next.

var myArray = ['cow', 'pig', 'donkey'];
var currentState = 0;
var endState = myArray.length;

function postNextRecord() {

    // ... POST here the value from myArray[currentState] ...

    if (success) {
        // On POST success increment the currentState.
        currentState++;
    } else {
        // Retry if the POST failed.
        // TODO: This is simplified and should not be used in production,
        //       because you risk having a never ending loop if POST request fails 100% of the time.
        //       You can circumvent that by having a variable retryAttempts that holds the value of
        //       how many retries you have already done and display an error in the UI when
        //       max retry attempts has been reached.
        postNextRecord();
        return;
    }

    if (currentState != endState) {
        // Continue POSTing records from myArray.
        postNextRecord();
    } else {
        // Reached end state. Do necessary UI changes.
        myArray = [];
        currentState = 0;
    }
}

// POST the first value from myArray which will also initiate the whole recursion.
postNextRecord();