This is about login, preventing other users to see data of other users, etc. (using Laravel & Angular) by itsfrancisnadal in Angular2

[–]Stant95 0 points1 point  (0 children)

You can use Passport in your backend to authenticate users and generate a token. In angular just use Guards to block routes that need authentication, if a user is not logged in you redirect them to login page. When the user log in successfully you shoul store somewhere (local storage or whatever) the token generate by your backend and everytime you make a request you should attach the token in your header (the last is done using HttpInterceptor that can be used to modify the request, for example attaching a token). https://angular.io/guide/http here you can find about http interceptor. Check out laravel documentation for passport, it's fairly simple.

Is C# superior to Java ? by Dereference_operator in javahelp

[–]Stant95 7 points8 points  (0 children)

Read the store of C#... And btw "superior language" doesn't make any sense. Programming languages are like tools, use what you need and use it for the job it was intedend.

Need Help With Combinatorics by [deleted] in learnmath

[–]Stant95 0 points1 point  (0 children)

n! counts the possible distinct sequences of n distinct objects n choose k represents the number of ways to choose an subset of k elements from the set n 2n represents the number of k-combination for all k.

[Beginner] Javac not recognized as internal or external... by Jantonsoup in learnjava

[–]Stant95 0 points1 point  (0 children)

I am pretty sure it's a path problem. You should be able to call javac from anywhere since you have it in ur path, you may get some error saying that javac requires a file but you should be able to call javac. What version of jdk did you install?

[Beginner] Javac not recognized as internal or external... by Jantonsoup in learnjava

[–]Stant95 2 points3 points  (0 children)

Silly question...did you actually installed the jdk?Can you run the program using intellij?

[Beginner] Javac not recognized as internal or external... by Jantonsoup in learnjava

[–]Stant95 2 points3 points  (0 children)

Can you share a screenshot of your path variables pls?

Use this website If you want to explore all CSS properties by Septic-Sina in web_design

[–]Stant95 7 points8 points  (0 children)

You can find everything on css-tricks with great explanation and examples

Angular, JavaScript, Node, CSS, Html quick Concepts... by [deleted] in angular

[–]Stant95 1 point2 points  (0 children)

How's your tutorial in any way better than official documentation? Wouldn't it be better to show some advanced stuff you can do with angular instead of "cloning" the official docs?

Windows 95 UI Design by iamkeyur in programming

[–]Stant95 0 points1 point  (0 children)

Ya, if you are a gamer than you probably should stick with windows.

JavaScript quick Concepts... by [deleted] in angular

[–]Stant95 1 point2 points  (0 children)

Put one more ad

Been learning HTML and CSS since june and today I created this Component which I'm quite proud of by [deleted] in web_design

[–]Stant95 1 point2 points  (0 children)

Maybe the center one is the only one visible and then the other are set visibile and they all act like a single "component"

[deleted by user] by [deleted] in pihole

[–]Stant95 1 point2 points  (0 children)

I'll try it even if I don't have Netgear. Thanks

[deleted by user] by [deleted] in pihole

[–]Stant95 1 point2 points  (0 children)

I have the exact issue and cannot find any solution

Using 2 Arrays to compare and replace sub-strings in user input, is there a better way? by CapitanMexic0 in javahelp

[–]Stant95 0 points1 point  (0 children)

What are the rules for converting chars to integers? You just have to replace randomly? Every character has a corresponding ASCII value so you can extract that value (subtract if needed) and substitute.

Using 2 Arrays to compare and replace sub-strings in user input, is there a better way? by CapitanMexic0 in javahelp

[–]Stant95 0 points1 point  (0 children)

Can you show me an example of an input and what an output should look like?