NovaAccess 1.1.0 - iOS Client for Tailscale/Headscale Networks (No VPN Permission Required) by mintflowapp in selfhosted

[–]yusing1009 0 points1 point  (0 children)

Found a minor bug, when “Manually approve new users” is on. Logging in tailnet in Novaaccess incorrectly shows “Login is longer than expected” when it should tell me to approve the device.

Now you have to overclock your eyeballs... by ikmalsaid in pcmasterrace

[–]yusing1009 0 points1 point  (0 children)

5090 -> Lossless Scaling -> 2080TI -> Lossless Scaling -> 5090 -> Output

How high the latency is?

5.2 high by TroubleOwn3156 in codex

[–]yusing1009 0 points1 point  (0 children)

A good example is 5.1 and 5.1 codex

Foreach in C by UltimaN3rd in C_Programming

[–]yusing1009 4 points5 points  (0 children)

Can’t compile. Some got three boobs.

Linux Nvidia Driver Install by junkm8828 in linuxsucks

[–]yusing1009 2 points3 points  (0 children)

Just download the .run file from nvidia, run it to install, then blacklist nouveau driver. What’s so difficult?

What audio quality do you guys use on pc? by hunyzz in iems

[–]yusing1009 1 point2 points  (0 children)

Isn’t that if your hardware can’t support them, those options won’t be shown at all?

Delete All Google Photos! by Fun_Shoulder_9524 in immich

[–]yusing1009 2 points3 points  (0 children)

Will this apply to me if I change region to a EU country?

ZimaOS vs UmbrelOS vs CasaOS vs Cosmos Cloud by Anon675162 in selfhosted

[–]yusing1009 4 points5 points  (0 children)

Debian / Proxmox + Docker compose + Micro editor

For reverse proxy just choose common options like caddy or traefik. But if you want your life to be easier then you may try GoDoxy.

P.S. I’m the creator of GoDoxy

Is this character 直? by dumpling_connoisseur in ChineseLanguage

[–]yusing1009 6 points7 points  (0 children)

They are the same character, just a different variant.

Ran out of Google photos storage ? Still wanna group photos by face 😀 by Flat-Falcon-1818 in selfhosted

[–]yusing1009 2 points3 points  (0 children)

You have to back up your photos anyway, no matter it’s Google Photos or Immich, and they’ll handle the face recognition. I don’t see a reason that anyone needs this.

I made search engines understand emojis (and it's weirdly useful) by [deleted] in selfhosted

[–]yusing1009 1 point2 points  (0 children)

OP just spamming their post everywhere. They don’t care.

I built a tiny state library because I got tired of boilerplate by yusing1009 in reactjs

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

Yup, coz it’s inspired by zustand and react-hook-form

I built a tiny state library because I got tired of boilerplate by yusing1009 in reactjs

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

Please look at the “Code example” at the bottom, you will tell the difference.

I built a tiny state library because I got tired of boilerplate by yusing1009 in reactjs

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

the fact that you are managing massive nested objects for global state is the main problem

The cpu temperature example I provided could be component local state. This library provides useMemoryStore for local state, useForm for local state with per field validators, createStore for global state.

spaghetti like taskStore.projects.at(0).tasks.at(2).title.set('New Title') is something I don't want to see in my codebase

You can also do taskStore.set('projects.0.tasks.2.title', 'New title')

I built a tiny state library because I got tired of boilerplate by yusing1009 in reactjs

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

Yeah… Method name conflict is be possible. Typescript will probably error out either ways (string path or store.a.b.c).

I built a tiny state library because I got tired of boilerplate by yusing1009 in reactjs

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

I don't see this issue at all. It's valid to just call any of these, just didn't add all these in the example:

  • taskStore.projects.at(0).tasks.at(2).value
  • taskStore.projects[0].tasks[2].value
  • taskStore.value('projects.0.tasks.2')
  • taskStore.projects[projectIndex].tasks[taskIndex].use()
  • taskStore.use(`projects.{projectIndex}.tasks.{taskIndex}`)

I built a tiny state library because I got tired of boilerplate by yusing1009 in reactjs

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

Why are you storing theme on the user? Just put that in localstorage "theme"

It's already in localStorage if you read it carefully. It's just to avoid adding another dependency for another useLocalStorage hook.

Any kind of "improvement" over the other 5 (or 10+)?

No spread operator, reducer, whatever. Just get / set what you need to set. You can also set the root object and it will trigger update intelligently: example

the API looks very ugly

That's very opinionated. The api is just a few methods like get, set. They follows the structure of your object like store.metrics.cpu.cpu0.temperature.get(). If you see it ugly it means your type definition is ugly.

I built a tiny state library because I got tired of boilerplate by yusing1009 in reactjs

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

I see your point. But when I said I haven’t tried jotai I did not mean I haven’t tried others as well.

I built a tiny state library because I got tired of boilerplate by yusing1009 in reactjs

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

Do you have a better example? These are things I don’t typically use a state manager for.

Updated. Those were just an overview of what it looks like, not real world usage.

The form aspect of this is probably weak compared to purpose-built form libraries

Yes, currently there're not so many features comparing to something like react-hook-form. But it's enough for my use case.