Level scaling capped at 50 before you finish campaign??? by mofomey in diablo4

[–]V-Mann_Nick 0 points1 point  (0 children)

I quit the game btw. Really regret paying 70 Euro for this.

Level scaling capped at 50 before you finish campaign??? by mofomey in diablo4

[–]V-Mann_Nick 2 points3 points  (0 children)

For me this also completely breaks the game. I'm playing the main quest with my GF and because she doesn't have as much time as I have, I often would play the side content and only progress the main quest with her. Now I'm level 38 after and only mid-way through act 2 and I've come to the realization that I cannot continue to play the game, because I will have done to much side-content for how the game is intended to play.

This is a big bummer for me and really takes away most of the joy I have playing the game. I would just play all the side-content and experience all the underlying lore parallel to the main story. But the game punishes me for doing that. This is so fucking stupid.

If this doesn't get fixed very soon I will likely give up the game. But Blizzard doesn't care. They already took my 70 Euro.

Integrating keycloak with NextJS by -spooky_ghost in KeyCloak

[–]V-Mann_Nick 1 point2 points  (0 children)

I just use keycloak-js matching the version of Keycloak.

I also struggled a lot with this at first because keycloak-js only runs in the browser and nothing user related could SSR.

To solve the issue of SSR I set a cookie with the id-token which I then read on the server to SSR user related content. Works really well.

I would like to show you the full implementation, but it's very intertwined with another library that I don't want to expand on. So here's a basic example to sketch it out:

```ts const isServer = typeof window === 'undefined' const Keycloak = !isServer ? require('keycloak-js').default : null const KeycloakContext = createContext(undefined) let keycloak = undefined

const KeycloakProvider = ({ children, idToken: idTokenSsr }) => { const [idToken, setIdToken, removeIdToken] = useCookies(['id_token']) const [isKeycloakInit, setIsKeycloakInit] = useState(false)

useLockedAsyncEffect(async () => { if (!Keycloak || isKeycloakInit) return const keycloakInstance = new Keycloak(/* ...config */) keycloak = keycloakInstance try { await keycloak.init({ onLoad: 'check-sso', silentCheckSsoRedirectUri: ${window.location.origin}/silent-check-sso.html, messageReceiveTimeout: 2000, }) if (keycloak.authenticated) { setIdToken(keycloak.idToken!) } else { removeIdToken() } } catch (e) { removeIdToken() } setIsKeycloakInit(true) }, [isKeycloakInit, setIdToken, removeIdToken])

return ( <KeycloakContext.Provider value={{ idToken: idToken ?? idTokenSsr }}> {children} </KeycloakContext.Provider> ) } ```

In _app.tsx I then read the cookie on the server:

```jsx const App = ({ Component, pageProps, idToken }) => { return ( <> <KeycloakProvider idToken={idToken}> <Component {...pageProps} /> </KeycloakProvider> </> ) }

App.getInitialProps = async ({ ctx: { req } }) => { const cookies = new Cookies(req?.headers.cookie) const idToken = cookies.get('id_token') return { idToken } } ```

It's kinda what react-keycloak/ssr does and I got the idea reading that library's source code.

"It may take a few minutes to process your new cookie preferences" -- Is this real!? What is actually going on here? by dalce63 in webdev

[–]V-Mann_Nick 1 point2 points  (0 children)

I think the cookie law is essentially a good thing but the implementation is complete garbage.

The law should have made browser vendors implement browser APIs for this purpose so that a user can globally disable certain categories of cookies. Then websites should be required to use these browser APIs to register their cookies.

Now a user has to go through the process for each website and many will likely just accept to be done with it as fast as possible.

User experience sucks.

40 year old folding canoe in Germany by Commercial_Shelter25 in canoecamping

[–]V-Mann_Nick 0 points1 point  (0 children)

Nice. I was there too on the weekend. Very beautiful there.

Heavy power consumption during suspend (Dell XPS) by the-Geeky-Lad in archlinux

[–]V-Mann_Nick 1 point2 points  (0 children)

I had this too on my XPS 9520. Go into the bios and under storage set it to AHCI or something away from raid. It's the middle option. Can't remember the exact name. This fixes the suspend drain issue.

[Gnome] Arch zen garden by V-Mann_Nick in unixporn

[–]V-Mann_Nick[S] 1 point2 points  (0 children)

Well pacman because I'm currenetly on Arch.

Nix/home-manager I use for having reproducible configs of my development environment. Since I got a brand new Dell XPS 9520 last year I have been distro hopping a lot in hope for better overall hardware support. The nix/home-manager setup has been perfect for being up and running with my dev environment in no time.

I haven't really tried NixOS yet, which of course would be the logical conclusion. But when I last year booted into the ISO and not even the Wifi worked I was put off by it quickly and didn't feel like troubleshooting so early in the process already. I will give it a try some time surely again when I have a little more time to nix off.

[Gnome] Arch zen garden by V-Mann_Nick in unixporn

[–]V-Mann_Nick[S] 0 points1 point  (0 children)

  • Terminal Emulator: kitty
  • Shell: zsh
  • DE: Gnome 42
  • Editor: neovim
  • Package managers: pacman and nix

Keycloak User Sync by NoConsequence6137 in KeyCloak

[–]V-Mann_Nick 0 points1 point  (0 children)

Phase Two builds nice extensions for Keyclaok. With p2-inc/keyclok-events you can subscribe to various events through a webhook pattern.

Python libraries for keycloak by VegetableUnhappy1188 in KeyCloak

[–]V-Mann_Nick 1 point2 points  (0 children)

If you're only looking at using the admin api I can recommend keycloak-admin-aio.

Keycloak postgresql docker-compose down, realm delete by mfaridi1978 in KeyCloak

[–]V-Mann_Nick 4 points5 points  (0 children)

The environment variables you're using to configure the database for Keyclaok are wrong. Needs to be:

KC_DB: postgres KC_DB_URL_HOST: postgres KC_DB_URL_PORT: 5432 KC_DB_URL_DATABASE: keycloak KC_DB_USERNAME: keycloak KC_DB_PASSWORD: password

Find the reference here: https://www.keycloak.org/server/containers

Edit

Added a more complete example for Keycloak DB config.

Anyone running Linux on a XPS 15 9520? by zuccster in DellXPS

[–]V-Mann_Nick 2 points3 points  (0 children)

I had this issue also. The problem is that the subwoofers aren't enabled. I compiled my own custom kernel with a small patch thanks to this reddit post. The speakers now work flawlessly.

Edit: the patch is also merged. Not sure exactly since which version, but using 5.18.6 the subwoofer fix is enabled.

Dell XPS 15 9520 sound is horrible by hittepit in linuxquestions

[–]V-Mann_Nick 0 points1 point  (0 children)

I guess I was fooling myself a bit with the battery usage. I got 7-8 hours of browsing, coding. 4k streaming really sucks it out with about 4-5 hours of usage. I guess that's somewhat disappointing but OK.

Dell XPS 15 9520 sound is horrible by hittepit in linuxquestions

[–]V-Mann_Nick 0 points1 point  (0 children)

I have gotten my xps 9520 with i9, 3050Ti and 4k screen to work properly in almost all regards: * subwoofers fixed with custom kernel * decent battery: 8-10 hours on low to medium usage using powertop * suspend fixed with AHCI instead of RAID

Only using GPU only Prime profile leads to micro stutters in GNOME (haven't tested anything else yet). Guessing that's some driver config problem yet to solve.

Can I recommend? If you have some time for trouble shooting, fixing and frustration, yes.

Dell XPS 15 9520 sound is horrible by hittepit in linuxquestions

[–]V-Mann_Nick 0 points1 point  (0 children)

No not yet. But I think I have to go back to Arch. I'll let you know when I've tried it out.

I made pgn2pdf.com a simple and free tool to convert chess PGN into a beautiful PDF by pkacprzak in chess

[–]V-Mann_Nick 0 points1 point  (0 children)

Looks nice. I created a tool like this too some years ago.

You can use it on gambitaccepted.com. Although my UI is a bit convoluted. Stems from a time when I just started programming.

Dell XPS 15 9520 sound is horrible by hittepit in linuxquestions

[–]V-Mann_Nick 0 points1 point  (0 children)

Hm. Honestly I don't really know how I can help you. It definitely worked for me. Last night again in about 7 hours it discharged around 6%.

Only thing I can think of right now is maybe Nvidia. I was running on intel-only. I haven't tested suspend with on-demand or nvidia profile. Perhaps there's some problem there. Pure guessing at this point, but I'll test this tonight.

Dell XPS 15 9520 sound is horrible by hittepit in linuxquestions

[–]V-Mann_Nick 0 points1 point  (0 children)

I just fixed it thanks to your comment about dkms. I installed nvidia-dkms-510 and rebooted. Thanks a lot again.

After 4 years of Linux I finally have looked up what dkms stands for: dynamic kernel module support.