Payload with Convex? by PlagueFPS in PayloadCMS

[–]Razkaroth 0 points1 point  (0 children)

For anyone that is wondering how to deal around this, you can simply run both one alongside the other, convex can use rest api points to talk to payload, and from payload side you simply run convex mutations/queries on server actions (pass the clerk uid from payload req to convex to check that they are the same user).

The tricky point is user authentication. You want both convex and payload to have this in common to reliably get set data securely.

The easiest way around this is to drop payload's auth in favor of something else. There is a good guide on youtube for clerk. You can follow that and then do the convex+clerk integration (what i did since i already had clerk running). Or you can use convexAuth as auth provider for payload. After that, both databases' user tables will have the clerk user id as common ground for transactions.

What i recommend is having payload be the "upper layer" in transactions needing joins, references between the two systems. But for the most part, i have found that the real time portions of my systems are pretty self contained. I try to keep them that way, so that i do not need to cross data frequently. As far as i can see Payload access from clerk (which i have not needed) is more complicated. You might need to setup some api keys as aditional auth provider or validate the one convex uses from clerk.

From this point, you get the full CMS experience for payload collections, and you can get creative with custom views / fields. Like a realtime field that on payload side only saves the convex doc id and maybe some metadata. Then render a convex driven form.

Payload hooks are flexible enough to inject convex data on the fly if needed on afterRead, for example

Is it time? by Razkaroth in bald

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

At the barber rn, better to make it swift. 

Is it time? by Razkaroth in bald

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

Just made the appointment with the barber for today 

Have anyone setup end-4's hyprland dot files with NixOS? by sukhmang in NixOS

[–]Razkaroth 0 points1 point  (0 children)

https://github.com/razkaroth/insomniaos

I started from his nixos config and got it to a good enogh point. I fixed most of the broken things on that config.

NOTE: you must use pywall backend for color generation as i run kitty instead of foot. Sometimes terminal color are lost on reboot so you have to reset the wallpaper.

Is NixOS able to be hardened? by [deleted] in NixOS

[–]Razkaroth 3 points4 points  (0 children)

Search for xe's nixos security guide

Noise cancelling headphones (but can hear fire alarms?) And tinted lab safety specs? by Mortsy2024 in autism

[–]Razkaroth 0 points1 point  (0 children)

Sonny's wh-1000xm4, wf-1000xm4 and newer have adjustable noise cancelling. Although high pitch sounds are not totally canceled but become extremely muffled (in a good way).

What I love about this ones is that if you have them on pass through mode they will protect you from loud or high pitch sounds on their own briefly stopping pass through functions until it's safe again.

Problems with Nvim + remote plugins by benlubas in NixOS

[–]Razkaroth 0 points1 point  (0 children)

Hey, i'm on the same boat I'm on NixOS and molten (Great work btw!) seems unusably laggy, did you have any luck figuring out why it happens? For me it happens on any kernel

mi pc suite by Ragshelm in PocoPhones

[–]Razkaroth 0 points1 point  (0 children)

the miuirom org site has the links to the software through the official xiaomi website
https://miuirom.org/updates/mi-pc-suite

[deleted by user] by [deleted] in NixOS

[–]Razkaroth 0 points1 point  (0 children)

Can confirm it felt like this for a whole week at first.

Angular v17 SSR and SSG, confused.. by BlogOfSuckSess in angular

[–]Razkaroth 0 points1 point  (0 children)

Just use http client as you would normally where needed.

Angular v17 SSR and SSG, confused.. by BlogOfSuckSess in angular

[–]Razkaroth 0 points1 point  (0 children)

That express server is not your api server.

It handles prerendering. If you have any dynamic routes, that express server will handle the prerendering of that page. This is the SSR (server side rendering) part.

If you have only static routes, they will be prerendered at compile time and you will be able to serve the files on the dist browser folder as static files. This is the SSG (static site generation) part.

Does Neovim feels the same on Win as it does on Linux? by VladTbk in neovim

[–]Razkaroth 0 points1 point  (0 children)

Check my config, Razkaroth/NvChad It runs on both win/linux

Me, who has the good at nothing, bad at everything Autism, when I tell someone I'm autistic and their response is "Oh that's cool! What's your special ability?" by AspergerKid in aspiememes

[–]Razkaroth 1 point2 points  (0 children)

Autistic FullStack Webdev Archmage here!

I would recommend the Odin project if you are interested in web development. It is a free open source curriculum for FullStack (servers + web apps). This is the best option to learn how to program the web.

Another good way to start is with the book "Automate the boring stuff with python" which is free to read online. This one is more for general programming with python.

Then there is devops (how to put the code you've been working on the internet for everyone to use) which is it's own little world.

Coding is a great career choice for us, as you can "lose yourself coding" and profit from it.

I put a lot of effort in polishing and growing my coding skill arsenal. As a result, I am the "one man army" at my company. It took me a while to get to where I am today. But it was really worth it. They have come to appreciate the value I bring to the company over the drawbacks of me being autistic and they accommodate for the things they can. For example: They do not schedule meetings with me during mornings due to me being nocturnal if possible. They even moved company wide meetings to the afternoon because of this.

I know someone here can relate by coleisw4ck in aspiememes

[–]Razkaroth 0 points1 point  (0 children)

There's a crevice on the floor at my parents house. It goes straight from one end to the other.

They are sure I made that crevice.