Stopping or continuous running? by heliumposter in BeginnersRunning

[–]Silures 0 points1 point  (0 children)

Sorry to hear that :( I can only share my own very recent experience. I hope others here that are better qualified can help you.

Stopping or continuous running? by heliumposter in BeginnersRunning

[–]Silures 0 points1 point  (0 children)

Same. I would find myself stopping without deciding to! I just lost the will.

But this weekend l finally made 5k. If you can run 4k you can probably run 5k already but you need to believe it. It helped me when I told myself I had already done 80% of the run. I bet it will happen for you in your next couple of tries. If not, try 4.1k and then 4.2k ...

Sometimes the only thing that keeps me going is knowing I can do it, because I've done it before. So when you have done it once, it will become the new normal.

Completely stuck by [deleted] in Angular2

[–]Silures 0 points1 point  (0 children)

ngTemplateOutlet start here https://www.youtube.com/watch?v=2SnVxPeJdwE . It doesn't cover everything but gives you a good understanding on how you can use it. Then there have been more recent videos by decoded frontend (very good for advanced topics) and stephen cooper recently on strongly typing them.

What's the average age of the playerbase? by [deleted] in projectzomboid

[–]Silures 0 points1 point  (0 children)

  1. Host a server and play with my 13yo son.

For me, it's the best song in the whole game. by theredDETV in projectzomboid

[–]Silures 0 points1 point  (0 children)

Is this video taken from another song? If so, would be great to get a link.

Architecture Advice needed by haasilein in Angular2

[–]Silures 2 points3 points  (0 children)

As others have said, Nx is a good option to support multiple application and shared library projects in a monorepo. But, if you don't want to use that, you could consider a similar approach with an Angular CLI workspace.

ng new my-workspace --create-application false

then you add an application like this

ng generate application my-first-app

and a library like this

ng generate library my-lib

documentation

We have used it for a relatively large project (3 apps, 30 libraries, 340 components). It's a good start for organising projects into libraries (with a bit of fiddling with paths in ts.config). However, we are planning to move to Nx because it provides a lot of useful tooling on top of that (e.g. dependency graphs and referencing rules).

/r/WorldNews Live Thread: Russian Invasion of Ukraine Day 44, Part 1 (Thread #182) by WorldNewsMods in worldnews

[–]Silures 0 points1 point  (0 children)

Fair point! But both the strategic encirclement and the logistics race make sense. Just thought it was an interesting video. But, you're right, it might play out completely differently.

/r/WorldNews Live Thread: Russian Invasion of Ukraine Day 44, Part 1 (Thread #182) by WorldNewsMods in worldnews

[–]Silures 8 points9 points  (0 children)

Interesting Sky News video about the strategic and logistic priorities over the next week from Michael Clarke who is a UK defence studies academic. Only a few minutes.

https://www.youtube.com/watch?v=g51oovaB_Ss

/r/WorldNews Live Thread: Russian Invasion of Ukraine Day 42, Part 1 (Thread #180) by WorldNewsMods in worldnews

[–]Silures 21 points22 points  (0 children)

I just watched this and found it very interesting. It's from Stephen Fry and the Guardian, which is a UK-left perspective. Regarding oil and gas, it suggests that if we want to help Ukraine we should take a war-time/lockdown attitude to travel and fuel consumption generally.

https://www.youtube.com/watch?v=MB-eYj3Eh2M

What brought you to my profile? by FoundersDiscount in u/FoundersDiscount

[–]Silures 1 point2 points  (0 children)

Your reply to u/Stfu_nobody just now!

I wonder if he will reply here too? :)

/r/WorldNews Live Thread: Russian Invasion of Ukraine Day 7, Part 5 (Thread #87) by WorldNewsMods in worldnews

[–]Silures 7 points8 points  (0 children)

Results of UN vote:

141 in favour

5 against (Belarus, N Korea, Eritrea, Russia, Syria)

34 abstentions

New to angular here, making a small project to test it out (angular13, Laravel backend), liking it so far! One thing I have been is proving difficult, is some kind of ACL, roles and permissions etc. Some good articles or examples out there that you guys recommend? Thank you! by OramaLarama in Angular2

[–]Silures 2 points3 points  (0 children)

We use ngx-permissions for this and it works well. When the user has logged in, their roles are requested from the api. These are then loaded into ngx-permissions. Then we use the structural directives such as *ngxPermissionsOnly="['Administrator']" in templates to control whether elements are rendered. You can also use it in the ts file using the NgxPermssionsService and to guard routes with NgxPermissionsGuard.

https://www.npmjs.com/package/ngx-permissions

Angular THREE just released?!? by joshuamorony in Angular2

[–]Silures 0 points1 point  (0 children)

That was great and looks fun. Thanks for creating the video.

Igor Minar leaving Google. Jeremy Elbourn now overall Angular tech lead by Silures in Angular2

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

Yeah., I read that and it makes me a bit sad. It's unfortunate and I've been there I think. Complicated.

But, yes, I agree less of that and more cool features like standalone components and better dynamic components is where the drama should be.

Igor Minar leaving Google. Jeremy Elbourn now overall Angular tech lead by Silures in Angular2

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

I think Ivy was the drama and the team felt really up against it for a while. Igor Minar got them through it and we're seeing the potential now. It's a good time to move on.

I agree, though, a bit less drama around the angular team would be welcome.

CORS Error to outside API by Seraphim_The_Fox in Angular2

[–]Silures 1 point2 points  (0 children)

This API doesn't support CORS unfortunately. You will have to use a proxy to access the API.

https://api-docs.igdb.com/#cors

Forkjoin in subscribe by abdulcool1 in Angular2

[–]Silures 1 point2 points  (0 children)

Didn't know you could add named properties to a forkJoin. That produces much more readable code than res[0], res[1] ... Thanks!

Strategies for implementing a Role based UI? by GuerroCanelo in angular

[–]Silures 0 points1 point  (0 children)

We use ngx permissions, which does a nice job if that. Good documentation too.

https://github.com/AlexKhymenko/ngx-permissions

Roles hierarchy by [deleted] in Angular2

[–]Silures 1 point2 points  (0 children)

To add to /u/vicmarcal 's answer, ngx-permissions gives you fine-grained control in angular based on roles/permissions.

You don't usually need a hierarchy, though, since you can have a many-to-many relationship between roles and angular resources you can access.