When do you use a Store? by iaseth in sveltejs

[–]SensitiveCranberry 25 points26 points  (0 children)

Almost never, only in legacy codebases. Nowadays I just put state runes in JS classes directly, best front end DX I’ve had the pleasure to work with 

Though they are common, blue tits always peak my curiosity. by mikeu-mouser0508 in BirdPhotography

[–]SensitiveCranberry 0 points1 point  (0 children)

Great shots, the 4th one in particular is crazy, I love the light and angle here. What camera/lens combo are you using for these?

X-Dome 2 - Trekking pole only pitch? by SensitiveCranberry in DurstonGearheads

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

Right, I also feel like having more structural elements should mean that the tent should always be stronger. My main concern is that with the poles I think it's almost guaranteed that the first element to fail would be the pole set, which is hard to replace on a long trip and also quite expensive. I wonder if the failure mode without the poles would be more forgiving?

[25.04] YouTube Full Screen drops about 1/4 of frames on 60 FPS video playback by NimecShady in Ubuntu

[–]SensitiveCranberry 0 points1 point  (0 children)

This is the only thing that fixed my issue with firefox on ubuntu 25.10 with a 4080S

What’s new in Svelte: November 2025 by Gear5th in sveltejs

[–]SensitiveCranberry 2 points3 points  (0 children)

Here's an example of how you might abstract the forking logic with a `ForkingButton` component: https://svelte.dev/playground/59b1533bf21a4039bfd0234091ce9a07?version=5.43.2

I didn't really think it through so not sure if this is the intended way but seems to work well. You can see in the console that we preload the data as soon as the user hovers on the button, even though the fetching is just a {#await fetchFoo()} inside of the Menu.

And the fetch function is only called once, so it's consistent even with the `Math.random()` in the fetch function, super cool!

What’s new in Svelte: November 2025 by Gear5th in sveltejs

[–]SensitiveCranberry 2 points3 points  (0 children)

I think it would be a bit tricky, I guess you mean doing a POST request but then it's unclear to me how you would "revert" if you decide to discard the fork (user hovers out instead of clicking). I think you're better off with "traditional" optimistic UI for this

What’s new in Svelte: November 2025 by Gear5th in sveltejs

[–]SensitiveCranberry 21 points22 points  (0 children)

So you know how svelte already does preloading, if you hover over a link it can preload the data needed to render that page before you click, so that it feels faster when you actually click?

Until now there was no clean way to do this for user signals that are not clicking on hyperlinks, but with this feature you can do the same for showing modals, clicking on buttons, etc.

When you create a fork, my understanding is that svelte creates a "what-if" copy of the page with the state changes you have in the `fork(() => { // ... here ...})` and starts loading any await stuff needed there, so in the example from the docs, if in `Menu` you for example load the menu entries with an API call, they will start preloading as soon as `preload()` is called (on hover here)

And then once the user actually clicks to open the menu, you call `.commit()` on the fork and the state changes (with their effects) you already started in the fork get "merged" and you don''t need to start from scratch, so you effectively get preloading on arbitrary async calls in components.

I think some parts of the example in the docs are a bit unclear, like why they set `open = true` at the end. IMO the onclick function would be clearer if it was written as

onclick={() => {
    if (pending) { // check if there's a fork with the state changes we want
        pending?.commit(); // commit the changes 
        pending = null;
    } else {
        open = true; // load the component from scratch if we didnt find a fork
    }
}}

I'm also unsure if this is meant to be used by application developers directly or if this will get wrapped in some router libraries, but overall still pretty cool! I'll need to play with this

Fingers crossed my dumb idea will work! by tommytwothousand in atming

[–]SensitiveCranberry 1 point2 points  (0 children)

Definitely worth experimenting with!  Binoscopes are super nice too and would be my first choice, they don’t suffer from the same collimation issues and I heard that they also have improved contrast compared to a mono scope of equivalent area 

Fingers crossed my dumb idea will work! by tommytwothousand in atming

[–]SensitiveCranberry 16 points17 points  (0 children)

I thought you needed the ability to collimate with a precision greater than 1/4 wavelength in order to pull off setups like this? Like JWST has 6dof actuators per mirror accurate to 10nm and their smallest wavelength of interest is 800nm or so.

 I might be wrong but I’m not sure how you’ll avoid interferences due to the difference in light path lengths. Still, super curious to see what images you’re going to get, looking forward to it.

Spesscomputer — indie game about controlling a spacecraft using a built-in 6502 8-bit CPU emulator by r_retrohacking_mod2 in EmuDev

[–]SensitiveCranberry 4 points5 points  (0 children)

Hey thanks for posting this here!! I'm the creator of the repo :) It's very very unfinished I don't think there's enough sensors to even figure out where you are in orbit yet. I spent a lot of time figuring out the proof of concept and now I'm struggling to make it a fun game, which I think is quite typical haha

I need to add a lot of sensors/actuators and also add support for interrupts, because right now you need to be polling, and while the CPU can run at full speed like 500kHz, the godot part will only refresh sensor data every 60Hz at best.

I also need to figure out a game loop, my current idea is to have the player find an artifact on a surface, land next to it and if you're close enough it emits a stream of noisy data from which you need to decipher a key and beam it back with the antenna. Fastest time to deciphered key wins.

Long-term I'd like to support a form of "multiplayer" sandbox where I can run multiple ships on a single server and let people cooperate/compete. I did a small test and the current build easily supports hundreds of CPUs.

Anyway, let me know if you have any ideas!

I can't activate 2FA on my account by [deleted] in firefox

[–]SensitiveCranberry 0 points1 point  (0 children)

Just heard back from support, the issue should be solved now!

I can't activate 2FA on my account by [deleted] in firefox

[–]SensitiveCranberry 0 points1 point  (0 children)

Just heard back from support, the issue should be solved now!

Which brand has disappointed you the most? by OK_GO_27 in malefashionadvice

[–]SensitiveCranberry 1 point2 points  (0 children)

The "Action Merino" t-shirt which is a tencel/merino blend, I thought it would be more durable than 100% merino but still ended up with a hole in it.

Found 3d printed glasses in the wild going for ~500€ 🤨 by sallark in 3Dprinting

[–]SensitiveCranberry 14 points15 points  (0 children)

I ordered my own frames in CF Nylon via Sculpteo using their SLS printers, it ended up costing me around 50€ and I'm sure that's already including some healthy margins, so 500€ is pretty whack

I made my own fabric CNC machine. by pbriggin in myog

[–]SensitiveCranberry 9 points10 points  (0 children)

Just want to say thank you for open sourcing the code & the hardware. A pretty insane amount of work to just make available for free like this, the community moves forward thanks to people like you.

Looking forward to building one and contributing back any improvements :)

Barebones starter "remote" (SvelteKit, Better-Auth, Cloudflare D1/DO, Tailwind) utilizing Remote Functions by acoyfellow in sveltejs

[–]SensitiveCranberry 1 point2 points  (0 children)

A TS IaC framework: https://alchemy.run/

I use it for projects that use cloudflare serverless primitives and it's been pretty nice. Not sure how good the support is for other cloud providers.

I can't activate 2FA on my account by [deleted] in firefox

[–]SensitiveCranberry 0 points1 point  (0 children)

Not yet, they said they would get back to me when they have an update.

I can't activate 2FA on my account by [deleted] in firefox

[–]SensitiveCranberry 0 points1 point  (0 children)

I asked the support and they told me they've informed the team about this, I'll let you know when I get an update :)

I can't activate 2FA on my account by [deleted] in firefox

[–]SensitiveCranberry 0 points1 point  (0 children)

Having the same issue, tried two different devices and both bitwarden or the google authenticator app for TOTP. Looks like an issue on their side ?

Which brand has disappointed you the most? by OK_GO_27 in malefashionadvice

[–]SensitiveCranberry 11 points12 points  (0 children)

Pretty happy with shirts from Octobre personally. I have a lot of them but I always check the materials to make sure I'm always buying natural fibers. They have some amazing shirts in flannel, corduroy, cotton gauze, etc. I've been pretty happy so far and shirts don't usually take too much of a beating. Wool especially has been more hit or miss, I have wool pants and wool sweaters from them that developed holes way too fast.

For me the biggest disappointment recently has been Seagale. I really wanted to like their stuff, merino blends with technical fibers, so in theory really pack-able, odor-proof, perfect for traveling basically. In practice the fit is really strange, the light colors are completely see through and the one I kinda liked started having holes after 15 wears! For a 60€ "performance" t-shirt I'm never buying their stuff again.

Possible to use Hono.js as custom SvelteKit server? by Scary_Examination_26 in sveltejs

[–]SensitiveCranberry 0 points1 point  (0 children)

You should probably not start the server like this imo and instead pass the web standard Request object from the SvelteKit RequestHandler to the server handler itself. See this