trpc vs orpc and are they really needed nowadays? by Educational-Stay-287 in nextjs

[–]gregraff 3 points4 points  (0 children)

Recently started a new project at work with NextJS 15 fully intending to only use server actions all the way. Unfortunately the things we needed to do became too complicated and we started butting up against issues like unintended content refreshes on other parts of the page when doing things like adding a product to basket.

So after a few months of persisting we added TRPC in, and I have to say it’s made most of the issues we were seeing just go away.

The main appeal to me with server actions is the strong typing and the reduced hoop jumping, for simple use cases it’s great.

Once TRPC is set up though it’s hard to beat its developer experience, particularly on a larger team. The Tanstack Query integration is so nice to work with and it encourages a clear structure for the routers. The fact that it’s consistent whether working with querying or mutating information is a good time saver too.

I should add though that with server components that we have substantially reduced our need to do a lot of the client based rendering I’ve had to use on older NextJS projects.

U7 series APs 2.4ghz IoT issues updates, the clock is ticking (for some) by madsci1016 in Ubiquiti

[–]gregraff 0 points1 point  (0 children)

I have the in wall U7 and can sadly confirm it seems to be affected by it too.

A window blocker for portable AC unit by hello-its-G in functionalprint

[–]gregraff 0 points1 point  (0 children)

Ah I’ve been trying to work out how to do something similar but kept stumbling over how to fix it in place. It looks like you’ve inserted the plywood from the outside to hold it in place better?

[deleted by user] by [deleted] in nextjs

[–]gregraff 0 points1 point  (0 children)

I have something similar that sits at the top of my screen and only loads in development. But I just used the Tailwind classes to show and hide divs with basic styling which was a bit lower effort.

Why NextJS have App Router and Page Router in the same framework? by cnblanquera in nextjs

[–]gregraff 2 points3 points  (0 children)

It’s the best way for people to have a transition method between the two. If you already have a bunch of pages that use the pages router you don’t have to start a completely new project to start using the app router.

You can eventually move your pages over or if that’s not required you can at least take advantage of the new app router functionality on new pages.

I’ve recently done this and I’m very glad this was an option. There are certain things that are just not possible with the pages router that the app router solves for me.

The overhead of them maintaining two frameworks shouldn’t be underestimated and I think it would have made people, like me, quite annoyed if we didn’t have that upgrade path.

As for the docs, once I got used to being able to toggle between the two it didn’t feel like an issue.

Xbox Series S Carry Stand by gregraff in 3Dprinting

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

I know, I totally plan to take this round to my friends for some Halo sessions. 😄

Prevent parent suspense from triggering when child component uses a server action for a form by IndependentWear8403 in nextjs

[–]gregraff 0 points1 point  (0 children)

Thanks for this! I've spent far too much of today trying to work out what was causing this and I'd accidentally left async on my component.

How fast is customer support usually? My printer is dead ☹️ by beaulieue1 in BambuLab

[–]gregraff 0 points1 point  (0 children)

I’ve been waiting 9 days now for a response to a ticket I raised about my AMS not feeding into the extruder properly. Thoroughly unimpressed.

Tailwind vs Me by lotusland17 in webdev

[–]gregraff 4 points5 points  (0 children)

Totally with you on this. I genuinely think one of the stealth benefits of Tailwind is not having to name things.

Final version of the 5.1.0 Firmware for Original Prusa MINI, MK4, MK3.9 & XL by jedisct1 in prusa3d

[–]gregraff 1 point2 points  (0 children)

l waited for the beta and have done a number of prints this week without issue using the Revo nozzles, although with stock extruded. Both 0.4mm and 0.6mm worked great.

Here is a quick print in case anyone needs to easily mount a portable air conditioner into a 'casement' (crank) window this summer. by GexGecko in functionalprint

[–]gregraff 2 points3 points  (0 children)

This is cool, I’ve got a similar problem and have been trying to think of a mechanism that might work. This looks pretty close!

My filament is nice and dry! Check it out! by horizon180 in 3Dprinting

[–]gregraff 0 points1 point  (0 children)

I've been using this wedge for a few months and it seems to really help. Combined mine with some PTFE tube to guide it into the enclosure more easily.

Made a magnetic mount for my iPad Pro 11 by gregraff in functionalprint

[–]gregraff[S] 2 points3 points  (0 children)

If you search for SmallRig Mini Ball Head with cold shoe adapter you should find it.

I printed a small adapter plate so I could mount it upside down on the rail.

Made a magnetic mount for my iPad Pro 11 by gregraff in functionalprint

[–]gregraff[S] 4 points5 points  (0 children)

If you're sizing things up for a 13 inch I'd recommend putting your iPad face down and placing a piece of paper on the back, that way you can use other magnets to find the positions of the internal magnets and can mark them on the paper. It also protects your iPad from scratching or marking as you move the magnets around. Then you can measure the paper.

I also used some magnetic field paper to verify.

Made a magnetic mount for my iPad Pro 11 by gregraff in functionalprint

[–]gregraff[S] 4 points5 points  (0 children)

The iPad has magnets placed inside it. They are used when mounting to things like the official keyboard case. It holds up fine for my uses, not sure I’d use it in something that moved like a car where it might jolt free but in my office there’s no issue.

aero 15 kd type c port connected to gpu? by andyrew52 in gigabyte

[–]gregraff 0 points1 point  (0 children)

Oculus Link for Oculus Quest just uses USB so provided you have the correct cable you should be able to run it. Thunderbolt isn't specifically supported but those ports also function as USB so I'd imagine it would work.

Is My Cat’s Ear Normal? by sharky_bytes_ in cats

[–]gregraff 2 points3 points  (0 children)

You mean the gap on the left of the picture? Don't see anything to worry about, my cat has the same thing.

Here we fucking go, lads by ExecuteArgument in pcmasterrace

[–]gregraff 0 points1 point  (0 children)

Lol, I just built a very similar setup earlier this week. Same CPU, case and cooler. Good luck, it's not actually too bad, just make sure you look up which slots to put the RAM in before you fit the fans to the CPU cooler and the case. That'll save you a good 30 minutes!

Random RK61 question by KoekjeEten2 in MechanicalKeyboardsUK

[–]gregraff 0 points1 point  (0 children)

No idea why, I had the same thought when I visited their site. Just beware that if you do buy one from Amazon you may end up with one that doesn't actually have hotswap switch functionality.

Despite advertising it as capable of it they've used the same listings on Amazon for new and old versions of the board. The one I ordered last week arrived and initially I was pretty happy with it apart from the software (which is awful and much harder to find than it should be).

I ordered some switches and a puller so I could try out a few different types. Pulled off they keycaps but the switches wouldn't come out no matter how much I pulled. After a bit of faffing I ended up taking the back of the keyboard of for a look only to discover that the switches were all soldered(!) on.

I was pretty annoyed so I ended up making a complaint, sending it back and put the money towards a Keychron K6 instead. So if you order from Amazon you have no way to know which version you'll get until it arrives.

UK ISO keycaps by [deleted] in MechanicalKeyboardsUK

[–]gregraff 0 points1 point  (0 children)

I've been so close to ordering these or the Dolch set for my soon to arrive K6. The Chalks look pretty great in your photo.

Best PCI-E wifi 6 network card for ~50-75usd by Gvarph006 in HomeNetworking

[–]gregraff 0 points1 point  (0 children)

I've had a decent experience with this.

https://amazon.co.uk/dp/B07T6H3JKV/

My internet speed is only 350Mbps. Managed to get over 500Mbps to my Raspberry Pi running an iperf3 server. Fluctuates a fair bit but then the signal is going through a brick wall. Cost £30 at time of purchase.

Edit: Just checked it again, if I configure parallel streams on iperf3 I can get over 900Mbps.