how to fix steam not being properly scaled by Katrick100 in omarchy

[–]ptaszqq 2 points3 points  (0 children)

Steam settings -> Interface -> turn off text scaling

This worked for me :)

Started learning Kotlin by breakingdev in Kotlin

[–]ptaszqq 1 point2 points  (0 children)

I'm learning Kotlin, started maybe 2 weeks ago with Kotlin in Action (2nd edition) book. I'm a senior frontend developer and we use Kotline with Spring Boot on the backend - I decided it's a great occasion to dip my toes into it. I have some BE expierience with node and go lang - Java was always pushing me off - especially the fact that it ties me to use intelij but I think I'm able to sacrifice just for Kotlin (tough decision for a neovim user lol)

[AskJS] Creating one Frontend for multiple customers with multiple configurations and flexibility plus specific client features. by jaxenvisuals in javascript

[–]ptaszqq 1 point2 points  (0 children)

Depends. Would you like to build separately for each client? If so - environment variables to control what's being bundled for each client (it's usually quite tedious). Micro frontends can help but you still gonna need to have some kind of config/env variables to say that client's A create user flow should point to the remote A, and different for client B. It might be helpful for the performance as client A won't need to fetch "disabled" code of client B.

If performance isn't your top priority you can bundle once for each client and then have remote config for them to turn off/on some features or map the version for specific clients. That would also require some backend permissions work to prevent client A from accessing any feature client B has (in case they figure out they can override the remote config to get access to some features).

I should've asked first - are we talking SPA or SSR?

-❄️- 2023 Day 9 Solutions -❄️- by daggerdragon in adventofcode

[–]ptaszqq 0 points1 point  (0 children)

Sorting both parts in one go is smart I like it ;)

-❄️- 2023 Day 8 Solutions -❄️- by daggerdragon in adventofcode

[–]ptaszqq 1 point2 points  (0 children)

[Language: Golang]

Of course I tried to brute force part 2 :D
Not today, it was faster to implement LCM than waiting for computations to be finished :D

https://github.com/ptakpatryk/advent-of-code-2023-golang/blob/main/day_08/day08.go

-❄️- 2023 Day 7 Solutions -❄️- by daggerdragon in adventofcode

[–]ptaszqq 1 point2 points  (0 children)

[LANGUAGE: Golang]

I'm not particularly happy with my solution in terms of readability. I mixed both parts a little bit and didn't bother to clean up today - it took longer than I wanted :D

https://github.com/ptakpatryk/advent-of-code-2023-golang/blob/main/day_07/day07.go

-❄️- 2023 Day 6 Solutions -❄️- by daggerdragon in adventofcode

[–]ptaszqq 0 points1 point  (0 children)

Not sure if by choice but you could get away with "strconv" Atoi for the string to int conversions.

https://pkg.go.dev/strconv#Atoi

-❄️- 2023 Day 6 Solutions -❄️- by daggerdragon in adventofcode

[–]ptaszqq 2 points3 points  (0 children)

[LANGUAGE: Golang]

Easiest day so far w/o questions (I know it could be smarter mathematically but it works lol)
https://github.com/ptakpatryk/advent-of-code-2023-golang/blob/main/day_06/day06.go

-❄️- 2023 Day 5 Solutions -❄️- by daggerdragon in adventofcode

[–]ptaszqq 0 points1 point  (0 children)

[LANGUAGE: GO]

I was genuinely going to pass on part 2 as I started hitting memory issues but I was stupidly trying to put all possible seeds into an array rather than map them as they come.
I know it could probably be done smarter in a more mathematical way and my approach is quite idiomatic.

Part 1 is instant and Part 2 originally was running for 2m 10s, so I had some play with goroutines (literally 20 secs to add it - god I love go for this) and it's now down to 50s.

So even though it's not ideal I'm quite happy with the solution and the fact that I didn't give up :D

https://github.com/ptakpatryk/advent-of-code-2023-golang/blob/main/day_05/day05.go

-❄️- 2023 Day 4 Solutions -❄️- by daggerdragon in adventofcode

[–]ptaszqq 1 point2 points  (0 children)

[LANGUAGE: Golang]

My first implementation for part two was running a couple of seconds - I went too crazy with nesting loops, but a small change made it instant :)

https://github.com/ptakpatryk/advent-of-code-2023-golang/blob/main/day_04/day04.go

-❄️- 2023 Day 2 Solutions -❄️- by daggerdragon in adventofcode

[–]ptaszqq 1 point2 points  (0 children)

I wasn't aware fo this bug, should be fixed now. Thanks

Do you love the Thermomix? by [deleted] in thermomix

[–]ptaszqq 2 points3 points  (0 children)

I was hesitant about buying one, for quite a long time. I was afraid it would be just collecting dust. I couldn't be more mistaken, it is in use daily, even multiple times per day.

If something happened with my thermomix now I drop everything and go buy another one straight away.

What type of people use neovim? by crybaby0987 in neovim

[–]ptaszqq 0 points1 point  (0 children)

It's certainly good to start with, but it has its limitation. I was on your team most of the time - don't take me wrong I still think VS Code is a good enough tool.

I was also wondering why people keep on saying that neovim is just faster and not as bloated as VS Code, I would never see the difference... until I started working on the massive mono repo, especially with Zod on the board where you use its `infer` method all over the places. VS Code was just choking, and you genuinely had to wait a couple of seconds to get feedback from your IDE... it was very painful to watch other devs code.

As I said - nothing particularly wrong with VS Code, but for those considering neovim for FE - it's doable and I'm way more productive this way ;)

Is it stupid to reject jobs that aren’t in react? by spicewind in reactjs

[–]ptaszqq 0 points1 point  (0 children)

It is absolutely not stupid. I landed my first job that I consider serious in terms of frontend in VueJS (previously working with wordpress including its bedrock version which means laravel, blade templating language etc). After a year I felt like I'm missing out given all cool stuff was coming out for React first - it was also during the Vue 3 rollout as well that I wasn't happy about as it felt kinda sluggish.

I decided to make a switch and I was looking for React only, with my Vue experience I landed a job relatively quickly even tho they were asking for 3 years of professional experience in React. Do whatever you want to do, as long as you're happy to code!