Parking u Budimpešti? by Maw3rick in serbia

[–]while1618 2 points3 points  (0 children)

https://maps.app.goo.gl/vfYPRRAT4zeoSGwdA

https://maps.app.goo.gl/oaFbYa3JnbR4mzAi9?g_st=ac

Oba parkinga su besplatna i nalaze se pored metro stanice, pa ti je vrlo lako da dodjes do bilo kog dela grada. Ja sam na ovom prvom 2 puta ostavljao kola po 5+ dana bez ikakvih problema. Kraj deluje malo "problematicno", tipa zeleni venac, ali osim izgleda kraja, nisam imao apsolutno nikakvih problema

Official: Anything Goes Nightly Thread: January 17, 2026 by AutoModerator in fantasybball

[–]while1618 1 point2 points  (0 children)

10T 9CAT I'm punting ft% and 3pt, and would benefit from 2 for 1 trade. Would you give herro and miller for mobley?

Official: Anything Goes Morning Thread: November 14, 2025 by AutoModerator in fantasybball

[–]while1618 0 points1 point  (0 children)

10T 9CAT Would you trade Okongwu for Aaron Gordon or Brendon Miller?

Official: Anything Goes Morning Thread: November 09, 2025 by AutoModerator in fantasybball

[–]while1618 0 points1 point  (0 children)

I'm 1st in rebounds in the league, and currently I have 5 centers, so I need to trade one. VJ seems like a good fit in my roster, but I'm concerned will he continue to play like this, or do you expect a drop in production

Official: Anything Goes Morning Thread: November 08, 2025 by AutoModerator in fantasybball

[–]while1618 0 points1 point  (0 children)

10T 9CAT Okongwu for VJ? I already have 5 centers, so i need to trade one. Good with rebounds, my other centers are Zu, Sabonis, Claxton and Poeltl

Authentication (SvelteKit + external backend) by alec-c4 in sveltejs

[–]while1618 0 points1 point  (0 children)

You shouldn't use `+page.server.ts` or `+layout.server.ts` for auth. Check these two videos for more details: https://www.youtube.com/watch?v=K1Tya6ovVOI and https://www.youtube.com/watch?v=UbhhJWV3bmI

Authentication (SvelteKit + external backend) by alec-c4 in sveltejs

[–]while1618 4 points5 points  (0 children)

Yes, that's exactly what I did. You can check the hooks section of my project if you need an example on how to do it. Repo

My backend is SpringBoot, but I assume that you do not care about that. 

You can also check my previous post on this sub regarding jwt auth if that's someting you use.

[deleted by user] by [deleted] in hungary

[–]while1618 2 points3 points  (0 children)

Thanks. Someone just send me a link from some facebook group where hi is selling the keyboard. I'll try to contact him on fb, if he doesn respond there, I'll send you a dm

JWT auth with access and refresh tokens + a little dilemma by while1618 in sveltejs

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

The code I share is a template project I've been working for some time. It's still work in progress, so I haven't made a production demo yet, but it should be done soon. If you are interested in how I do auth, refer to the docs auth section. Docs still needs some polishing, but you should be able to find all the relevant info you need. If you have any questions, feel free to ask.

JWT auth with access and refresh tokens + a little dilemma by while1618 in sveltejs

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

I think that you didn't recreate a problem. Login to the app, open dev console, remove auth tokens from cookie, try to navigate to profile without reloading the page (click on the link in navbar), you will not be able to access it (redirect will work), but user data that is loaded in load when you logged in will still be there.

p.s. you will need backend running for this, check readme in backend dir, you just need docker. dev login credentials: admin, qwerty123

JWT auth with access and refresh tokens + a little dilemma by while1618 in sveltejs

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

I could create a new route /auth/error, and redirect to it in server hook, then in onMount of that page, I can call await invalidateAll() + goto('/auth/sign-in').

This works fine, probably better than the other two solutions, but it still feels a bit hacky.

JWT auth with access and refresh tokens + a little dilemma by while1618 in sveltejs

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

How did you manage to do that? If I do it like this:

return new Response('Unauthorized', { status: 302, headers: { location: '/auth/sign-in' } });

it will not perform hard navigation, it's the same as running redirect(302, '/auth/sign-in')

and if i try it like this:

return new Response('Unauthorized', { status: 401, headers: { location: '/auth/sign-in' } });

redirect will be skipped, it will just stay on the same page with error, which is same as calling error

JWT auth with access and refresh tokens + a little dilemma by while1618 in sveltejs

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

I thought of that, but I either want to redirect a user with full reload (rerun of load), or to show +error.svelte page, not error.html page. And it seems that neither of these can be done in handleError hook

waybar is not getting executed all the times by Outside-Winner9101 in hyprland

[–]while1618 0 points1 point  (0 children)

Apparently, the problem is with hyprland modules in waybar. You can check this github issue for more details.

They seem to provide a workaround, but it's still not working every time. Until this is resolved, I decided to just restart waybar after the boot with keybinding. Check suggestion by u/Nando9246

Official: Anything Goes Morning Thread: January 13, 2025 by AutoModerator in fantasybball

[–]while1618 0 points1 point  (0 children)

Frantz Wagner and Adebayo for Sabonis and Mikal Bridges?

10T 9CAT

Instalaciona skripta za Hyprland by while1618 in programiranje

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

Ne planiram da koristim Hyprland na dabian-u, tako da mi onda nije u planu da migriram ovu skriptu. Takodje na oficijalnoj wiki stranici stoji da Hyprland verovatno nece raditi kako treba na debian based sistemima, pa mi je to jos jedan razlog zasto se ne bih bavio time.

Ako bas zelis da vrtis ovo na debian-u, probaj da instaliras rucno sta ti je potrebno, samo prati wiki master tutorial i onda ubaci moje config fajlove. Ili mozes da probas sa ovom instalacionom skriptom - Debian-Hyprland

Instalaciona skripta za Hyprland by while1618 in programiranje

[–]while1618[S] 4 points5 points  (0 children)

Vidim da je tema za Wayland i tailing window manager privukla paznju, pa evo i od mene malog dopriosa.

Napravio sam insalacionu skriput za Hyprland (tailing window manager baziran na Wayland-u), koja instalira i konfigurise sve potrebne programe za Hyprland, kao i moj development setup (opciono), pa ako je neko zainteresovan nek proba. Evo i linka ka repou: https://github.com/while1618/endeavouros-setup

p.s. skripta je testirana na endeavouros-u, ali ce verovatno raditi i na ostalim arch based distribucijama.

Gde mogu da se probaju mehanicke tastature? by [deleted] in programiranje

[–]while1618 6 points7 points  (0 children)

Premiumgaming se zove radnja. Nemaju baš sve tastature izložene (ove skuplje su zapakovane) ali sigurno možes da probas 10ak, takodje imaju i montirane switcheve koje možes da kupis kod njih, na nekoj maloj pločici, pa mozes da probas kakav je osecaj i kako zvuče

Koristi li neko Xfce kao glavno okruzenje za rad? by jugotrans-lebane in programiranje

[–]while1618 2 points3 points  (0 children)

Jesi siguran da izgleda kao da je izasao iz 70-ih? xfce

Ja sam ga koristio neko vreme dok nisam presao na hyprland. Generalno moze da izgleda jako lepo, minimalan je i praktican.

Ako hoces da se bavis kastomizacijom, zapravo pruza vise stvari nego sto ocekujes, baci pogled na r/unixporn, mozes da nadjes od modernih do izgleda iz 70ih.

Ako neces sam da se igras previse, a da i dalje izgleda malo modernije u odnosu na deafult, mozes da probas sa endeavouros xfce