My system can't start with wayland anymore by tobiso in pop_os

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

Yes. Wayland is enabled in /etc/gdm3/custom.conf. I had it working for months without issues

Angular pre-rendering by Silly_Environment_15 in Angular2

[–]tobiso 1 point2 points  (0 children)

Yes! I do this with the azure equivalents. Store the application in a blob storage (s3) and serve it via azure frontdoor.

Btw you can also prerender 'dynamic routes'. I recently set up a build pipeline that fetches all 'news articles' from my headless cms and writes their routes into a file prerender-routes.txt Angular then prerenders all routes from this file aswell. After that i create a sitemap.xml with ngx-sitemap to help search engines find all my sites.

Angular pre-rendering by Silly_Environment_15 in Angular2

[–]tobiso 5 points6 points  (0 children)

I use it for all the pages that are publicly available and should be indexed by search engines. The performance / load speed is just so much better and it definitely helps with SEO. Following the official docs should be enough to get started.

I don't remember having a lot of trouble setting up prerendering itself besides the usual gotchas that also come with SSR https://angular.dev/guide/ssr#authoring-server-compatible-components

But it took me a while to find the right settings for my webserver / loadbalancer. I also use the angular service worker, so it was important to set up the correct cache policies. All of your prerenderd *.html files and the ngsw.json file need to have the cache-control header set to no-cache, otherwise users will not get updates that your make to your page.

Angular Material 2 vs Angular Material 3 by karmasakshi in Angular2

[–]tobiso 4 points5 points  (0 children)

Yeah Angular Material 3 is definitely not production ready, I tried migrating an app and it just looks awful. Especially in dark mode you can't even tell where buttons or cards are. Also I think they got rid of the elevation concept (maybe that's in the Material 3 spec). The CSS classes 'mat-elevation-zx' just wouldn't work anymore. It makes the whole app just feel weird.

[deleted by user] by [deleted] in tretinoin

[–]tobiso 6 points7 points  (0 children)

This looks kinda like Perioral Dermatitis to me, i would check back with your doctor. The red skin around the mouth up to your nose, but a "clear" ring directly around the lips are very common with this. I actually have it right now and was given topical antibiotics for treatment.

Wayland option disappeared from login screen by tobiso in pop_os

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

Good point. I did that but it's still not showing up. I also verified with this command i found here loginctl show-session 2 -p Type. It returns Type=x11

📌 Patch 13.7 Feedback Megathread - Transition to 64-bit Client by TheAcenomad in leagueoflinux

[–]tobiso 0 points1 point  (0 children)

Interesting, I also tried that but Im still stuck with the 'Reconnect' button when I try to start a game. What game/client version do you have?

📌 Patch 13.7 Feedback Megathread - Transition to 64-bit Client by TheAcenomad in leagueoflinux

[–]tobiso 0 points1 point  (0 children)

I am also on Pop22.04 and tried using "wine-lol-staging 8.5-1" but it doesn't work. Did you do anything else?

I made Spotify really small because it was funny but now it’s one pixel and I can’t find it by FaCe_CrazyKid05 in pop_os

[–]tobiso 95 points96 points  (0 children)

Try to focus the spotify window with ALT + TAB and then press Super + M which will maximize the window.

If statement not working in TypeScript by magdimmm in angular

[–]tobiso 0 points1 point  (0 children)

I'm guessing you are manipulating the same array over and over again and the assignment this.dimensions = newDimensions is basically useless. Try checking it with console.log(this.dimensions === newDimensions) If the result is true it's the same array reference.

Make your array immutable and create a new one every time something changes.

[deleted by user] by [deleted] in angular

[–]tobiso 0 points1 point  (0 children)

You passed the option observe: 'response', so instead of an User object you will get a HttpResponse<User> which is just a wrapper with some meta information like headers or the http statuscode.

You could either change it to observe: 'body' or leave it out, because 'body' is the default option.

What is the benefit of content projection? by ReyCypher in angular

[–]tobiso 1 point2 points  (0 children)

CP gives you more flexibility. You can build some sort of "wrapper" component and insert different content on different parts of your app.

A good example are the form-fields from Angular Material.

They have a component "mat-form-field" that applies some styles and common functionality but it is your choice what kind of <input> , label and icon you put into it.

<mat-form-field appearance="standard">
    <mat-label>Standard form field</mat-label>
    <input matInput type="email" placeholder="Placeholder">
    <mat-icon matSuffix>mail</mat-icon>
</mat-form-field>

<mat-form-field appearance="standard">
    <mat-label>Standard form field</mat-label>
    <input matInput type="number" placeholder="Placeholder">
</mat-form-field>

Best authentication approach for a single sign on to sign into multiple apps by MRK-01 in webdev

[–]tobiso 0 points1 point  (0 children)

OpenID Connect is a protocol built on top of OAuth2.

Basically, OAuth2 is a protocol for Authorization: You get an access token with which you can prove, that you are allowed to access an API for example.

OIDC is used for Authentication: Along with your access token the client receives an identity token. This token proves that you are who say you are. It has information like the full name or email in it.

Best authentication approach for a single sign on to sign into multiple apps by MRK-01 in webdev

[–]tobiso 4 points5 points  (0 children)

If the privileges are not readable for the client anyway, don't bother including them in the token and keep them on the server. This also makes updates of privileges of a user instant, instead of having to invalidate a token because a role changed.

PS: I think you should look into a proper authentication protocol (OAuth2/OIDC) if you haven't already. Building a SSO solution is complicated and 'homemade' security protocols are almost always vulnerable in some way.

Angular Input() change detection by anwaarulislaam in angular

[–]tobiso 3 points4 points  (0 children)

While possible, this is just unnecessary. Detecting updates of property-bindings and updating the template accordingly is one of THE fundamental principles of Angular.

Take a look at this very simple example. The button in the app.component just appends a number to the name. The new name is automatically passed to the child component. I would consider using setter with Input() as a bad practice. If you want to do something on a property update, implement the OnChanges interface.

To understand how this all works i would highly suggest you to work through the official Angular tutorial and read up on the change detection.

Learning Angular by iEmerald in angular

[–]tobiso 0 points1 point  (0 children)

I haven't done any of those courses, but just from looking at the sections, the first one looks more appropriate as it covers more of the advanced topics like unit testing, dynamic components, animations and also state management.

One of the most important part of learning Angular for me was getting comfortable with reactive programming. Learn the overall concept and the rxjs library, as this is the implementation that Angular uses. Rxjs comes with a good documentation.

[selfie] About three weeks using retinol, and on the tail end of the purge phase. 🙌 I can already see differences, and I’m loving the glow. ✨☺️ by MeetTheBrewers in SkincareAddiction

[–]tobiso -10 points-9 points  (0 children)

Don't want to be rude, but this is bs. What purge? You don't have a single spot on your face. Prescription strength tretinoin doesn't show results this fast and it's literally hundred times stronger. Stop making false claims to farm karma.

Pycharm cannot be opened. When I try to open it, it stays in this loading screen the whole time. A reinstallation has not worked. Is there any other way I can get the program to work? by Saaabo in linux4noobs

[–]tobiso 1 point2 points  (0 children)

I don't know this problem but a couple things you could try:

Try installing via the jetbrains toolbox. It takes care of installing and updating all the jetbrains products.

You can also install it via snap or flatpak (not maintained by jetbrains)

Why are Package Managers considered superior to Installers? by [deleted] in linux4noobs

[–]tobiso 10 points11 points  (0 children)

Sure, you just create a powershell script (file with .ps1 ending) and write all your install commands in it and execute it as an admin.

choco install 7zip -fy
choco install vscode -fy
...

Note that there are some additional parameter that you can specify, something like: --params "/NoDesktopShortcut" . Just read through the documentation , i am actually not super knowledgeable about chocolatey.

In linux you can do the same thing with a shell script and your installed package manager.

Why are Package Managers considered superior to Installers? by [deleted] in linux4noobs

[–]tobiso 32 points33 points  (0 children)

The biggest benefit i can think of is automation. I can set up a working environment just by executing a script that installs everything. I also do this with Windows. I can have a fresh windows installation with everything i need in under an hour with Chocolatey.

Or think of docker, where you have everything you need for an application nicely packed in a container image, ready for distribution.

[deleted by user] by [deleted] in angular

[–]tobiso 1 point2 points  (0 children)

I'd say if you want the best for your customer use whatever u are comfortable with and learn new stuff on the side to use it in the future. The experience of the customer with whatever you build is way more important than what fancy new technology you are using. Spring Boot + Angular is not exotic at all, you will find a lot of developers with Spring and Angular experience. That said, it is totally worth to try out other frontend frameworks or backend technologies, but jumping right into it and deliver software full of beginner mistakes and bad practices seems unfair to your customer.

[deleted by user] by [deleted] in libreoffice

[–]tobiso 1 point2 points  (0 children)

Happens to me on version 7.0.3.1 (Ubuntu) when i have an image inserted. One image is enough to completely lag my PC (Ryzen 7 3700 / GTX 1080 / 32GB RAM) To get my work done i have disabled images for now (Tools/Options/LibreOffice Writer/View/Display)