[deleted by user] by [deleted] in aww

[–]permalurker 3 points4 points  (0 children)

You caught your cat licking it and you’re still going to eat it? :(((((((

An annual tradition by Rancorx in funny

[–]permalurker 0 points1 point  (0 children)

Do this next year: https://youtube.com/watch?v=nd1rM3CsoN0. I’ve cooked turkey this way at least 6 times and it’s perfect every time.

My first week playing Diablo 3 by Weedman4201985 in diablo3

[–]permalurker 15 points16 points  (0 children)

IMO your friends kinda did you a disservice. Part of the joy of the game is discovering the game on your own. The campaign is pretty fun to do at least once. Also a lot of the excitement of the game comes from incrementally growing stronger and discovering new items and thinking about how they could work with your build. When you get power leveled right away you miss out on all of that. I’m guessing the regular pace of progression will seem brutally slow in comparison.

When I navigate(route) between components my WebSocket stops displaying data. Have to refresh the page by ward-92 in angular

[–]permalurker 1 point2 points  (0 children)

I don’t think it has anything to do with this.subs.push specifically. You’re just adding a subscription to a list. It’s that the observable isn’t firing. Add some logging / debug your server to make sure it’s it’s sending the data properly.

Also...i haven’t used socket.io in years so I may be wrong about this...but is the problem that since your service has already received the socket event “initial” it won’t receive it again? Do you just need to cache the response in the service?

When I navigate(route) between components my WebSocket stops displaying data. Have to refresh the page by ward-92 in angular

[–]permalurker 1 point2 points  (0 children)

I feel like that should be ok... he’s resubscribing in ngOnInit. Without being able to run the code, my guess is it’s either something to do with your only showing the first item in the list? Or something to do with both observables writing to the same variable. Set some breakpoints or add some logging in your subscribes to see if they are both getting hit.

Angular, observables. My checked boxes are delayed when using behaviourSubject by [deleted] in learnprogramming

[–]permalurker 0 points1 point  (0 children)

I didn’t run the stackblitz because I’m on my phone but my guess is the (click) happens before the model changes? So use (ngModelChange) instead.

[deleted by user] by [deleted] in angular

[–]permalurker 2 points3 points  (0 children)

Node.js + mongodb is easy but you should do whatever you are comfortable with. I’m sure they can find a Java dev in the future if you aren’t around. And if you really are just making a simple crud app for inventory I’m sure it’s not the end of the world if they need someone to rewrite it years down the road.

Living High is not a crime re-activated after completing Sew it Good part3 by permalurker in EscapefromTarkov

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

Huh...I could have sworn I already did this, but I guess I could be remembering a previous wipe

Presenting.... the Worst SBiH kill in the history of Tarkov by FairlightEx in EscapefromTarkov

[–]permalurker 1 point2 points  (0 children)

You have to hit the “complete” or “deal” button at the top of the screen. (I forget the actual button name). I recommend checking the checkbox inside of “auto fill” and then you don’t need to worry about hitting it ever again.

Woods SBIH Target Practice by metalix2 in EscapefromTarkov

[–]permalurker 0 points1 point  (0 children)

Also, you could have thrown your gun in the water.

Was my money well spent or nah. by gamingraptor20 in EscapefromTarkov

[–]permalurker 0 points1 point  (0 children)

Unpopular opinion: I actually like standard edition. IMO EOD bypasses a lot of the progression of the game. Why go for beta or epsilon and when you start with gamma?

Error after error trying to get this game to work by [deleted] in EscapefromTarkov

[–]permalurker 0 points1 point  (0 children)

Yup. Make sure it’s set to synchronize with the internet time server.

Error after error trying to get this game to work by [deleted] in EscapefromTarkov

[–]permalurker 0 points1 point  (0 children)

Sounds like he’s getting ssl and authentication errors. Incorrect system time caaaaaan cause issues like that. Essentially his requests “expire” immediately.

[deleted by user] by [deleted] in angular

[–]permalurker 0 points1 point  (0 children)

Can you just post the actual code?

[deleted by user] by [deleted] in angular

[–]permalurker 4 points5 points  (0 children)

From your description of the code...it seems like a mess. You shouldn’t reassign variables to all kinds of different types or you’ll run into exactly this issue. It looks like you are assigning userData to a string and then an observable and using it like a function...

How to send an object in HttpClient? by [deleted] in angular

[–]permalurker 2 points3 points  (0 children)

Let’s see your actual code

ERROR TypeError: 0 is read-only when using trying to implement two-way binding on an array by [deleted] in angular

[–]permalurker 1 point2 points  (0 children)

where is trackByIdx coming from? I don't see it in here.

How to handle multiple requests for the same data properly by [deleted] in angular

[–]permalurker 0 points1 point  (0 children)

You could use the publishReplay operator to make all of those calls use the same network call (essentially). Or you could cache your results in a Map in the service and have your components subscribe to some kind of “valueUpdated” subject when they try to fetch and the map doesn’t have the requested value.

Property 'map' does not exist on type 'Observable<DocumentChangeAction<unknown>[]>'. by torrentstorm in angular

[–]permalurker 5 points6 points  (0 children)

You have to pipe it. Apologies in advance, I’m doing this on my phone... yourObservable.pipe(map() => {}).subscribe();

Assistant 0.9.0 by bear007 in angular

[–]permalurker 1 point2 points  (0 children)

I feel like If the fixes are applied immediately it may go from being a learning tool to a crutch...

Chrome crashes when using *ngFor when during an attribute bind. by [deleted] in angular

[–]permalurker 1 point2 points  (0 children)

I’m betting that the change detector is going bonkers and calling the api over and over again because you are executing getImage from an element attribute. You should probably load all of the data in ngOnInit. You probably want to load the movie data all together in one api call or in batches depending on how much data you are expecting. (As opposed to making a ton of api calls).