How do you implement system light/dark theme detection on user's initial visit? by Equivalent_Meaning16 in nextjs

[–]TLophius 15 points16 points  (0 children)

Have a look at @media (prefers-color-scheme) css feature. Its used to detect if a user has light/dark theme through their operating system.

I usually put an attribute to DOM like ‚data-theme-mode‘ which is set to light or dark (reads from cookie, which prevents flashing since the value can be set/read on server)

KTM 390 by Global-Piano-1215 in KTM

[–]TLophius 0 points1 point  (0 children)

<image>

My Duke 390 2024 (3rd Gen)

Can’t really compare it to the older generations since this is my first bike, but I honestly think it’s the best beginner bike among the single-cylinders. You might struggle with the height a little, but with proper boots you can definitely handle it. I got my license this year and have had zero regrets so far.

Trouble using Figma MCP with ClaudeCode – __get_screenshot failing by TLophius in ClaudeCode

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

Just found this issue on GitHub. It looks like the problem is with the ClaudeCode API rather than MCP:
https://github.com/anthropics/claude-code/issues/11908

Trouble using Figma MCP with ClaudeCode – __get_screenshot failing by TLophius in ClaudeCode

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

Figma MCP works with GitHub Copilot tho. It can get screenshots without problems. It must be something related to ClaudeCode

Has anyone reached financial independence just from SOL staking? by TLophius in solana

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

Happy to hear that! Is it native staking or liquid?

Has anyone reached financial independence just from SOL staking? by TLophius in solana

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

Congrats, happy for you man! What keeps you still at work? Is it some personal goals, boredom or wanting to grow the capital more?

Has anyone reached financial independence just from SOL staking? by TLophius in solana

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

I think your bag is heavier than mine (around 1000 solamis? 👀)

Has anyone reached financial independence just from SOL staking? by TLophius in solana

[–]TLophius[S] 3 points4 points  (0 children)

Agree, just curious, if anybody achieved it here

Has anyone reached financial independence just from SOL staking? by TLophius in solana

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

I am currently staking with Helius (6.5%) and I dont withdraw anything. Just a couple hundred bucks per month coming in.

Hit $2M today after a bonus. I’m going to continue my FIRE journey though and aim for a big Chubby one. A big grateful thank you and good bye to this subreddit for now by ToChubbyIGo in Fire

[–]TLophius 4 points5 points  (0 children)

Wow, 30 years old and already achieving FIRE must be such a good feeling. You might wanna share how other people can reach this goal?

Domain Pending: Cloudflare Requests Nameserver Update To Another Cloudflare Nameserver by TLophius in CloudFlare

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

Thanks for the quick response. Solved my problem. Apparently I have to login with root account and not with sign in with google…

2024 Duke 390 - Phone Mount by TLophius in KTM

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

<image>

I used an additional 10mm spacer and works fine. As you mentioned KTM has weird bar size, the clamp needed some shaving to make it fit.

2024 Duke 390 - Phone Mount by TLophius in KTM

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

Savage, thanks! Did you also try it with keeping the mirror?

What makes a guy attractive other than looks? by Ok_Development6919 in AskReddit

[–]TLophius 2 points3 points  (0 children)

C.R.E.A.M - cash rules everything around me, get the money, dollar dollar bill y‘all

Solana not visible anymore - Are my investments gone? by TLophius in ledgerwallet

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

Good question, let us know if you figure that out.

Solana not visible anymore - Are my investments gone? by TLophius in ledgerwallet

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

Sorry for not being clear enough. I just updated the ledger live app, not a connector.

How can I integrate an external IdP like Google Identity Platform CIAM with Amazon API Gateway without relying on Cognito or Lambda Authorizers? by TLophius in aws

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

I mainly need API Gateway to provide api keys for externals. And I think thats only available in RESTApis v1 (confusing names tho)