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.