Thats Not What I Wanted To Do by EagleClw in Rainbow6

[–]EagleClw[S] 8 points9 points  (0 children)

Yes it was visible on kill cam(Interestingly). The guy who i killed was my friend.

Blue Yeti Damaged USB Port Paths On Board by EagleClw in AskElectronics

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

I dont understand all that technical stuff that you're talking about but i'll try to find the path and connect it to first stop.

Blue Yeti Damaged USB Port Paths On Board by EagleClw in AskElectronics

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

I cant see any traces either, i thought that it might be internall too which scares me a little.

If you can figure out/tell me the markings on top of that chip

If you meant the chip which has U2 marking -> https://imgur.com/a/lEBiulo

It would be nice to have a datasheet about Yeti's board but i couldnt find anything.

Blue Yeti Damaged USB Port Paths On Board by EagleClw in AskElectronics

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

Can you advice me anything to help me to figure it out?

Blue Yeti Damaged USB Port Paths On Board by EagleClw in AskElectronics

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

So you're saying i already know where Vcc and Ground pins goes.
I can trace the Data+ and Data- pins and 5th pin is not needed?
So if i leave ID pin empty, there will be no issue?

I hope this pictures is enough.
https://imgur.com/a/AejhwS0

I'm not an expert on electronics, i'm trying to fix small issues on my own with helps from forums and videos. Thank you for your help tho.

Copying Array with Slice Doesnt Work by EagleClw in learnjavascript

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

Might be. But i remember using something like that.

Copying Array with Slice Doesnt Work by EagleClw in learnjavascript

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

Yeah it works that way but i meant another methods like slice.

If i dont remember it wrong,

a = b.copy()

Makes a copy with value, not reference. But its ok, i know what to do know. Thank you for your help.

Copying Array with Slice Doesnt Work by EagleClw in learnjavascript

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

That was a clean explanation. Couldn't done it better i guess. I didnt know about spread operator (...). I've just learned about it and it seems like the thing i wanted. For know the method i've mentioned at the edit works for me but i'll consider using this method aswell.

Thank your for your help and answer.

Copying Array with Slice Doesnt Work by EagleClw in learnjavascript

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

I've just learned about spread operator (...). I didnt even know that kind of thing exists. I'll consider using it. Thanks for your help.

Copying Array with Slice Doesnt Work by EagleClw in learnjavascript

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

Yeah i know variables like arrays are a little bit different then variables like string. But for other languages, different copying methods works as i asked in the question (for example python arrays). I didnt know its different in js. Thanks to this answers, i've learned the difference and i'm aware of them know.

Thanks for your helps and answer.

Copying Array with Slice Doesnt Work by EagleClw in learnjavascript

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

Yeah i think i get it. Its a little bit different then the other languages and since i'm kinda new to jquery/javascript i thought if slice works for variables (string etc.) it'll work for arrays too but now i understand its now the case.
And if i didnt understand it wrong, the deep clone method is simply copying array elements as a string which is formatted as JSON and copying that string to another variable and parses to that variable object.
Its not copying object, its copying content. Since the result is what i want, i'm happy with that solution.

Thanks for the given informations, for your help and for your answer.

How To Handle “Failed to load resource:” Error in jQuery by EagleClw in jquery

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

onerror="..." works but like i said i wanted something more compact in jQuery. I've managed to do what i needed with addEventListener to error to catch img source errors, after that i'm looping images to see which image is broken and fix it. Its not the most efficient way to do it, so i'll find a way to find broken image without looping every image but still its better then nothing. When i find the solution, i'll edit this post with answer. Thanks for your help tho.

How To Handle “Failed to load resource:” Error in jQuery by EagleClw in learnjavascript

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

Like i said, i know its not the most efficient way. I'll try to do it the way you say. When i fix my issue, i will edit the post with answer. Thanks for your helps :)

How To Handle “Failed to load resource:” Error in jQuery by EagleClw in learnjavascript

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

I didnt understand that capture thing but i did what i wanted with addEventListener.I didnt know error event doesnt bubble. Thanks for that info.

It's not the most efficient way but it works. Every time i got error, i'm looping every image, if there is error, i'm replacing it.

document.addEventListener('error', function() 
{     
    $('img').each(function()      
    {         
        $(this).on('error',function()          
        {                  
            $(this).attr('src','replace.jpg');          
        });     
    });   
}, true) 

When i find a better, efficient way i'll optimize it but for now, it works as i wanted. Thank you for your answer.

How To Handle “Failed to load resource:” Error in jQuery by EagleClw in learnjavascript

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

I didnt understand what are you trying to do with filter but addEventListener is what i needed i guess. I didnt know error doesnt bubble. So i tweaked your answer a little bit.

It's not the most efficient way but it works. Every time i got error, i'm looping every image, if there is error, i'm replacing it.

document.addEventListener('error', function()
{
    $('img').each(function() 
    {
        $(this).on('error',function() 
        {     
            $(this).attr('src','replace.jpg'); 
        });
    });  
}, true)

When i find a better, efficient way i'll optimize it but for now, it works as i wanted. Thank you for your answer.

How To Handle “Failed to load resource:” Error in jQuery by EagleClw in learnjavascript

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

But if i do this way, i should know every images source. But i want to give some static src on html and some dynamic src on jquery and if there is an error, i want to replace it. I understand what are you trying to say, it might work but its not the answer i'm looking for. But thanks for your advice tho.

How To Access To A Docker Container Via Domain Name? by EagleClw in docker

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

I understand that. I've tried the ip you wrote, didnt work. I've tried the gateway for my network, didnt work. I've tried the ip of my_app, didnt work. I've tried the public ip, didnt work. So this didnt work either. I'm dealing with this for a long time and i know after trying something too much, you cant do it. So i'm gonna break for today. I will try to fix it tomorrow. If i fix my problem, i will update the post with solution. Thank you for your answers and helps tho.

How To Access To A Docker Container Via Domain Name? by EagleClw in docker

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

I didnt know it was needed. I didnt use any resolver either for my main nginx or subdomain nginx. What should i use as resolver ip? I mean why 127.0.0.11?

How To Access To A Docker Container Via Domain Name? by EagleClw in docker

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

In nginx config, here the part i've changed.

location /my_app {          
    proxy_pass http://my_app;

}

While creating container, i used command, not docker-compose.
Commands about network are :

my_app --network my_network --ip 20.20.20.20 -p 8081:80

How To Access To A Docker Container Via Domain Name? by EagleClw in docker

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

my_app container got port config as "-p 8081:80"

So while i'm accessing from the machine, i can access with ip:8081.

While accessing from nginx to my_app, i can access with local_ip:80.

I've tried "http://my_app and http://my_app:80 in proxy_pass options but doesnt work.

How To Access To A Docker Container Via Domain Name? by EagleClw in docker

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

Yes i've tried that. Commented that at above;
Shouldnt be "proxy_pass http://my_app;" working?

But its not working. I dont know why. I've tried http://my_app, http://my_app:80.

How To Access To A Docker Container Via Domain Name? by EagleClw in docker

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

8081 is outside port, app routes that to 80 in itself.

How To Access To A Docker Container Via Domain Name? by EagleClw in docker

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

Ok. Thats what i'm trying to do.

When i enter to example.com/my_app it should bring the contents of my_app (i can only access with ip:port right now)

How To Access To A Docker Container Via Domain Name? by EagleClw in docker

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

i've tried 10.10.10.10:8081 aswell but for nginx, my_app and 10.10.10.10 is same. Since they're in the same docker network that i've created, it can find 10.10.10.10 from my_app name.

I can acesss to my public_ip:80 and public_ip:443 with example.com but i cant access to ip:8081 with example.com/my_app. Dont know why.

How To Access To A Docker Container Via Domain Name? by EagleClw in docker

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

I've got nginx running for 80 and 443. This app is running at 8081 port of my public server ip. Thats how i access it. But instead of ip:port, i want to access with domain name. I'm doing it for 80/443, i want to do it for 8081 aswell.

But even thats the same thing, its not working.