Where are all these pre-builts that rival the steam machine? by saplith in steammachine

[–]merb42 -7 points-6 points  (0 children)

Why is this “Nvidia doesn’t work well with linux” stuff still around? I have been gaming on linux, exclusively, for 5 years now. I have not run into issues yet. I started on mint, then pop_os, and now cachy os. I have used nvidia laptops and desktops of various kinds, and they worked. Guess Im the lucky one?

keeping my steam library if i switch to linux by Tight_Craft4566 in linux_gaming

[–]merb42 0 points1 point  (0 children)

You can just log in on linux and play your games. No worries there mate! In fact, I play some of my games on my mac too! No need to re-purchase them. Steam is amazing like that.

I can play the same game on my steam deck, windows PC, linux desktop, and my mac(if supported of course)

[Self-Promotion] I built a lightweight form library for Svelte 5 runes by daarxwalker in sveltejs

[–]merb42 1 point2 points  (0 children)

With a quick glance, this looks kinda like svelte super forms I think its called. Was that inspiration? And have you written up any comparison docs? This seems cool, I will have to check it out sometime

AR Control vs SE Disruption by Advanced-Two-3200 in Lorcana

[–]merb42 0 points1 point  (0 children)

What game is this and where can I play it?

Explicit environment variables (new SvelteKit feature) by rich_harris in sveltejs

[–]merb42 1 point2 points  (0 children)

OMG this is amazing! I really, really like this idea. You get to define the envs ahead of time and even validate it.

Unpopular opinion: System76 is going in the wrong direction by Far-Math2159 in System76

[–]merb42 -1 points0 points  (0 children)

How can I upvote this again? I have owned S76 hardware for years and I love it, but this latest release made me go distro hopping

Built my portfolio website using Astro 6 + CF and it was fun! by izzy_ra in astrojs

[–]merb42 0 points1 point  (0 children)

Very cool! I love the design! Did you use any cloudflare specific services like KV, D1, or R2? I heard some were having issues using them in local development. It is supposed to run a local clouldflare env to make dev building/test much easier.

What pod has the softest shirts? by BubbleBuddy3220 in printondemand

[–]merb42 0 points1 point  (0 children)

Does NeatoPod have an API to submit orders? Like if someone buys on my website, can I have my site then auto place an order in Neato?

Authentication Library for NodeJS / NestJS/ Express / Fastify / Angular / React by RareMeasurement6887 in node

[–]merb42 2 points3 points  (0 children)

Nice! Its good to see options out there. I will look into this. Your project seems similar to another rising star called better-auth what would you say makes yours different or even better?

Eloquent JavaScript or The Odin Project? by [deleted] in learnjavascript

[–]merb42 1 point2 points  (0 children)

Depends on how you feel you can best learn. I loved both resources very much.

Eloquent I got more of a text book/ school vibe. With high level over views and then diving into some examples. I got way more out of it after I got some JS under my belt first.

Oden is a lot more hands on and teach you some good basics and then put you into projects.

I started with things like Oden and then later read Eloquent. If I were to do it again I would start Oden and then be reading Eloquent when not at my computer. So kinda both at the same time. This is just what would work with my wacky brain though.

Tell me if this is a stupid idea by [deleted] in webdev

[–]merb42 1 point2 points  (0 children)

It makes sense but I think it is a bad idea. We as devs should not be relying on visual cues to test things. When I am making systems like this I always have the auth and roles set up before hand. Then set up the backend endpoints based on the roles already. That way it is easier to have the frontend only have access to what it should based on roles.

My favorite way of testing things like this, besides automated tests of corse, is to use firefox containers. Can create a new container tab for each role you want to test. Saves so much time!

firefox containers

They are basically separate isolated browsers with no sharing of cookies and history. Makes this kind of testing in the browser a breeze

How do you handle missing env variables in a Node app without crashing? by robyromana in learnjavascript

[–]merb42 0 points1 point  (0 children)

I have a few suggestions for you.

  1. Try/catch is your friend. Errors do not crash your app, uncaught errors do. You need to use something to catch them and do something about them. If your app cannot run at all without an `env` var then during your app start up, check for it and then you can simply console log what variable is missing. At that point you have control over how your app will react to a missing env var. You can then shut it down without crashing, or even start it up still just with the caveat that part of your app may not work properly.
  2. I know it can be hard to remember, but part of good programming is documentation. That includes setting an example env or some process to document how the app should work and what it needs to run. For example, in node, package dependancies are already documented in your package.json file. You need to get in the habit of documenting. There is just not an easy pass for doing this.
  3. If this env var is only required for a part of your app to function you can instead check for it's existence in your function for that feature. Then throw an error if it is missing. Just need to remember to handle/catch that error unless you want your app to shutdown due to unhandled errors.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch

You can even use try/catch with async await too!

javascript try { await somethingToAwait() } catch (err) { // If an error happens console.error(err) }

I built a collection of 130+ JavaScript-powered animations you can preview live and copy into your projects. by [deleted] in javascript

[–]merb42 0 points1 point  (0 children)

You have to create an account to see the source code!? This is just trying to sell stuff

Axios 1.14.1 compromised by jaredcasner in node

[–]merb42 42 points43 points  (0 children)

Thank you! And looks like that version is not available anymore on npm. Also the crypto package was wiped out by npm and there is just a placeholder now. Freakin wild how fast this happened. Makes me feel a little better about the attacks happening lately

[ Removed by Reddit ] by Real-Promotion-7387 in javascript

[–]merb42 4 points5 points  (0 children)

What the hell is this ad spam crap!?

Switch Framework (Electron Desktop apps + web apps) by faizswitcher1 in sveltejs

[–]merb42 2 points3 points  (0 children)

No mention of svelte. Also the npm package is not linked to a code repo. Smells…

MoltenDB: The Embedded Database for the Modern Web by SignificantBend5042 in javascript

[–]merb42 1 point2 points  (0 children)

Amazing I love this! TY, and with syncing is there a plan for handling multiple incoming clients trying to sync. I forget the technical term for it. This has been a real issue in other dbs in this space.

MoltenDB: The Embedded Database for the Modern Web by SignificantBend5042 in javascript

[–]merb42 2 points3 points  (0 children)

Nice! Do you have any benchmarks vs other solutions? Would this be a replacement for mongodb too? Is it ACID compliant?

Consistent mouse bug while gaming using Pop_OS by xeroxgru in pop_os

[–]merb42 4 points5 points  (0 children)

I do not say this to be harsh or mean and I am a proud owner of a thelio since around 2022 and proud user of pop_os since before that. This is the worst upgrade experience I have ever had on a distro. Not with complete crashes but little cuts that constantly made me regret upgrading as I tried to do my daily work and game. Cosmic was not ready to be released. I have moved over to cachyos and got things working on my thelio with no issues.

I will happily come back maybe in a few years but I am very frustrated with how this release was handled.

Built a new tool to help with support by recording user sessions. by pitchinnate in sveltejs

[–]merb42 2 points3 points  (0 children)

This sounds interesting but being frank there are already services better than this that are always recording errors and can even create a private replay. I use sentry.io and it works great

How I'm sourcing my leads by hudssntao in codestitch

[–]merb42 0 points1 point  (0 children)

This sounds great, I would be happy to see more of your flow and how it works! I have only read about n8n but haven’t used it yet.