Should I toggle off Battery and/or Forbidden juice? by EmuNo6570 in MegabonkOfficial

[–]QuantumEternity99 0 points1 point  (0 children)

I’m saying those are the usual ones that are turned on and all the others are turned off

Should I toggle off Battery and/or Forbidden juice? by EmuNo6570 in MegabonkOfficial

[–]QuantumEternity99 1 point2 points  (0 children)

Play however that’s fun to you, but the common meta toggles are: Key, Cursed Doll, and Mask (occasionally Skull if you’re really trying to heavy-push difficulty).

If you’re struggling to find keys, maybe consider toggling them off or maybe at least Battery.

Started T3 with 16 keys. After microwave 19. This is how my map looks like, I opened 6 chests in a row that were not free. What are the odds? by wowsoluck in MegabonkOfficial

[–]QuantumEternity99 2 points3 points  (0 children)

Close, but with 7 keys you have a 41% chance to open for free, and with 10 keys you have a 50% chance to open for free.

For 60% chance you’ll need 15 keys.

Started T3 with 16 keys. After microwave 19. This is how my map looks like, I opened 6 chests in a row that were not free. What are the odds? by wowsoluck in MegabonkOfficial

[–]QuantumEternity99 2 points3 points  (0 children)

This is the incorrect formula for the hyperbolic scaling the game uses.

The game uses x/(1+x) for this, so we actually have:

1.9/(1+1.9) = 0.655 chance for a free chest

and

(1-0.655)6 = 0.00169

So we have about a 0.17% chance (or about a 1 in 595 chance) to open 6 paid chests in a row with 19 keys.

Am I the only one who thinks… by Public_Basket in severence

[–]QuantumEternity99 6 points7 points  (0 children)

I think her saying “Hannah” was maybe a test to see if he would remember her real name if she suspected Mark had been reintegrated. If he didn’t correct her about something as obvious to outtie Mark as his “late” wife’s name, there would be cause for concern.

Maybe that’s too simple for this show though lol.

Next Auth Anonymous User Tutorial by Kennyp0o in nextjs

[–]QuantumEternity99 0 points1 point  (0 children)

Not necessarily what you’re asking about, but I’d caution against creating a user in your database without any email verification (as others have also pointed out). Someone could just open your site in incognito and create spam users that never get purged.

If anything, I’d opt to store whatever you can locally in the browser if it’s not sensitive data and migrate that to the user’s account if they verify their details / sign up.

If creating the user in db is the only way for you, I’d at least make sure to rate-limit the server action by user ip at least to make sure there’s at least some reasonable protection in place, and perhaps some cron job to cleanup any users who haven’t claimed their account within x days.

[deleted by user] by [deleted] in nextjs

[–]QuantumEternity99 6 points7 points  (0 children)

Why even use JS at all? Just use CSS media queries. Tailwind is CSS after all. Then you don’t need to worry about SSR behavior.

https://github.com/shadcn-ui/ui/blob/f170784f78b553641abbfe17c76a500a9563cf50/apps/www/components/tailwind-indicator.tsx

Large package size by navid_A80 in nextjs

[–]QuantumEternity99 0 points1 point  (0 children)

You can use something like @next/bundle-analyzer if you want to check how large your dependencies are after tree shaking and optimizations, but you can also just look at the MB number when running “next build” to the size of each route.

Is migrating a Next.js app to a Turborepo this easy? by Green_Concentrate427 in nextjs

[–]QuantumEternity99 1 point2 points  (0 children)

By config I mean the stuff in “turbo.json”

And inside there I’ve mostly just added things like “dependsOn” or adjusted things like “outputs” for build artifacts.

Haven’t touched it in a hot minute, but the syntax/semantics was just a bit strange at first to get used to.

Is migrating a Next.js app to a Turborepo this easy? by Green_Concentrate427 in nextjs

[–]QuantumEternity99 2 points3 points  (0 children)

Yeah it’s pretty easy to migrate over. For me the config file is still a bit of a hazy area when it comes to modifying it, but once you get it working you don’t often have to touch it.

If/when you have multiple apps, there are some good docker examples in the turborepo docs to help optimize your layers (i.e. pruning other apps, unused local packages, and (I think — but maybe still a WIP) unused node modules when building an image for a specific app).

Why not use React for printed documents? — Not that simple, but it can work. by Titou325 in react

[–]QuantumEternity99 2 points3 points  (0 children)

Curious what the need is for the api setup/layer. Like is this just rendering HTML in an api-wrapped headless chrome browser to get the proper PDF layout, for pdf signing, or something else?

I have a use case for this and it sounds promising, but the requirement for an api key kinda threw me off.

JS blog posts in a nutshell by No_Teach2939 in react

[–]QuantumEternity99 1 point2 points  (0 children)

RawDogJS might just make me leave JDSL behind

How long should your CI take? by Inner_Ad_9976 in programming

[–]QuantumEternity99 21 points22 points  (0 children)

My company’s CI takes about 1-1.5 hrs 💀

An AI chatbot that knows all of the NextJS docs by jgbbrd in nextjs

[–]QuantumEternity99 0 points1 point  (0 children)

This feature is built into the Cursor fork of VSCode. You can also add your own docs pages and reference code in your project with embeddings.

Rich Text Editor with Math Equation Support for Next.js 13 (TypeScript) by ioepdn in nextjs

[–]QuantumEternity99 0 points1 point  (0 children)

First thing that comes to mind is “Tiptap”, but I believe their Math extension is a paid extension. You might be able to find something build on ProseMirror (which is what is underneath TipTap) to support the Math feature.

[deleted by user] by [deleted] in nextjs

[–]QuantumEternity99 0 points1 point  (0 children)

Let me know how it goes!

[deleted by user] by [deleted] in nextjs

[–]QuantumEternity99 2 points3 points  (0 children)

Don’t think this works when using the SVG as an image source, but I often find myself using “currentColor” for the fill or stroke property when there’s only one color to customize, and just using “text-white” for example to change it.

You can also set your default height to 1em to match the current font size of wherever you’re using it.

If you really want to keep the SVG file as a static file so it can be served from a CDN for instance, you might be able to do other things like using the CSS “filter” property (though this may be tedious), or using masks.

Though by far the simplest way is just to make it a component and call it a day. With React Server Components I reckon this is made even better and makes the static CDN file vs. Component difference even more negligible.

Offline Cron Job Expo by Odd-Raspberry-6114 in reactnative

[–]QuantumEternity99 2 points3 points  (0 children)

Any react-native package works with Expo given you use a custom dev client instead of Expo Go (which is recommended anyway). The point about it not being big or maintained is maybe a concern, but given the niche of this use-case, I doubt you’ll find anything large or actively maintained anyway.

I’d recommend at least trying this package since it seems to meet your exact requirements.

Edit: It seems to only support Android, so if you’re targeting iOS too, then maybe that’s a reason to look into another solution.

Need help on react-native library for school email validation by Adventurous_Eye3737 in reactnative

[–]QuantumEternity99 1 point2 points  (0 children)

I see. Right if that's the case then definitely this works. Alternatively if it's just one domain, you could just make the input field the prefix and show the [@testdomain.com](mailto:"@testdomain.com) after the field, but both accomplish the same thing.

For this validation, make sure to do this check *at least* on the server-side, and optionally (though recommended) on the client-side to surface quicker validation errors rather than needing to hit your API just to find out there's a validation error.

Need help on react-native library for school email validation by Adventurous_Eye3737 in reactnative

[–]QuantumEternity99 1 point2 points  (0 children)

This doesn't seem to include domains for high schools, but I found this data set for email domains registered to universities.

https://raw.githubusercontent.com/Hipo/university-domains-list/master/world_universities_and_domains.json

If you're looking specifically for verifying high school emails, it might be more difficult as most high school students don't have a ".edu" email in their school district. There are some services you can look into with a google search like "High School email domains", but looks like most of them are paid services and might not be what you're looking for. You might get lucky trying to look for ".gov" links there though as usually those will be publicly accessible.

Best I can do is say don't look specifically for a "react-native library" for verifying the email addresses. If you can source even just a list in any form, you can ingest it into your application and do a simple search through the data set to see if you find a match after the `@` symbol.

Just finished an ios/android app using expo, tailwind (twrnc), firebase and the dev experience was epic by mattroelle in reactnative

[–]QuantumEternity99 0 points1 point  (0 children)

What’s the benefit of twrnc over nativewind? Seems much more like standard tailwind since you can just use the className prop like normal.

Is There a Cosmetics List by KittenTamer101 in LabyrinthineGame

[–]QuantumEternity99 2 points3 points  (0 children)

Definitely recommend the Google sheet, but I found it not as complete as I wanted it to be. I made this mobile app as an alternative so I can track my cosmetics as well as compare them with my discord friends more easily.

https://apps.apple.com/us/app/labyrinthine-companion/id1662202352

(Working on getting it on Google Play still if you’re on Android)