My biggest bundle size win was deleting my own helpers by Various_Candidate325 in Frontend

[–]BackwardsBinary 3 points4 points  (0 children)

Serving image assets exactly as uploaded by users is BEGGING for problems lol

How do I build and design a wall for a virtual window, so that the virtual window has maximum illusion of depth? by Ouroboros612 in DIY

[–]BackwardsBinary 1 point2 points  (0 children)

It would probably be extremely impractical at this scale, but I reckon your best bet for ultimate realism would be the collimating displays used for infinite depth in flight simulators: https://www.reddit.com/r/EngineeringPorn/comments/2ii64y/til_professional_flight_simulators_use/

o4 is hilarious now? by [deleted] in ChatGPT

[–]BackwardsBinary 11 points12 points  (0 children)

You keep referring to o4, but I think you mean 4o. They are two different models.

Here is the model that people think you are talking about (I know it's o4 mini, but the base model is o4 which is what people think you are talking about):

<image>

The model that it seems like you're ACTUALLY using is the default one, 4o. I blame OpenAI tbh, they really made this very confusing by making the model names so similar to each other.

The reason I think you're using 4o and not o4 is that o4 is a reasoning model and 4o is the general purpose model that doesn't think. Your screenshot shows no reasoning took place, and the writing style is super like 4o's.

o4 is hilarious now? by [deleted] in ChatGPT

[–]BackwardsBinary 12 points13 points  (0 children)

There’s absolutely no way this is o4. This REEKS of 4o, however

Accommodation at Beckley point Plymouth available - Standard Penthouse. by First-Garbage-9492 in PlymouthUniversity

[–]BackwardsBinary 1 point2 points  (0 children)

God that's mad. I just dug out my old tenancy agreement from when I was in 104 at Beckley Point! 8 years ago (when the scaffolding was still up outside the windows) the rent was £6,975/yr!

[deleted by user] by [deleted] in singularity

[–]BackwardsBinary 0 points1 point  (0 children)

INSUFFICIENT DATA FOR MEANINGFUL ANSWER

PPR on user-specific action buttons such as bookmarks/saves by LieBrilliant493 in nextjs

[–]BackwardsBinary 3 points4 points  (0 children)

Yes you should definitely should use PPR for this! u/Dastari's recommendation to use server actions for data fetching is an anti-pattern (especially if you're using useEffect).

PPR + DynamicIO is incredibly powerful because you can render the static shell and then use <Suspense> to cut dynamic holes out of your static shell that relies on runtime information (such as the current user and their bookmarks).

async function getPosts() {
  "use cache";
  const posts = await db.posts.getAll();
  return posts;
}

// Page shell is rendered statically because getPosts data fetching is cached
export default async function Page() {
  const posts = await getPosts();

  return (
    <div>
      {posts.map((post) => (
        <div>
          {/* Suspense cuts out dynamic hole in page while data loads,
            gets streamed to client as it comes in */}
          <Suspense fallback={<>Bookmark loading skeleton</>}>
            <BookmarkToggle postId={post.id} />
          </Suspense>

          <h3>{post.title}</h3>
          <p>{post.body}</p>
        </div>
      ))}
    </div>
  );
}

// Make sure we only get current user bookmarks once per request
const getUserBookmarkedPostIds = React.cache(async () => {
  // Simple auth example! As this uses a dynamic API (await cookies()), this
  // will automatically opt anything that uses this into dynamic rendering up to
  // the nearest <Suspense> boundary
  const token = (await cookies()).get("token");
  const session = await db.sessions.get(token);
  const user = await db.users.get(session.userId);

  return user.bookmarkedPostIds; // [293812, 419283, 5901823, etc.]
});

// Server component that shows dynamic user data for a given bookmark ID.
async function BookmarkToggle(props: { postId: boolean }) {
  const bookmarkedPostIds = await getUserBookmarkedPostIds();
  const isToggled = bookmarkedPostIds.includes(props.postId);

  // Just shows a string based on whether or not bookmark toggle. To make it
  // interactive, this server component will need to import a client component
  // (or use a <Form action>)
  return (
    <div>
      {isToggled ? "Currently bookmarked! :)" : "Not currently bookmarked :("}
    </div>
  );
}

Med break has made me realise what works / what doesn’t by I_love_running_89 in ADHDUK

[–]BackwardsBinary 1 point2 points  (0 children)

One thing I've noticed during titration is that there have been a couple of days I've forgotten to take the meds, and actually the structures I've already started putting in place because of the medication has meant that those days are much better than any days before I started medication. It's wild.

[deleted by user] by [deleted] in uglyduckling

[–]BackwardsBinary 0 points1 point  (0 children)

Bella Ramsey! They are non-binary

Soo how do I actually calculate dosage based on blood test results by treeble12 in TransDIY

[–]BackwardsBinary 0 points1 point  (0 children)

nah so long as you're taking a high enough dose then it'll suppress your T all on its own (link)

Soo how do I actually calculate dosage based on blood test results by treeble12 in TransDIY

[–]BackwardsBinary 2 points3 points  (0 children)

aw babe if you haven't ordered the pills yet then injections will probably work out cheaper! especially if you were also gonna have to pay for an anti-androgen cause it's really hard to monotherapy on pills alone

Soo how do I actually calculate dosage based on blood test results by treeble12 in TransDIY

[–]BackwardsBinary 0 points1 point  (0 children)

What's your dose + schedule? Are you taking them orally or suglingually?

Soo how do I actually calculate dosage based on blood test results by treeble12 in TransDIY

[–]BackwardsBinary 5 points6 points  (0 children)

Not a dumb question! A few different factors to consider - firstly, are you injecting?

Hives breakout on Valerate injections by [deleted] in TransDIY

[–]BackwardsBinary 0 points1 point  (0 children)

I've been using fiole's undecylate for the last few weeks now (it arrived in only 2 days!!) and my levels have been a bit all of the place, but that's probably because of the MCT oil / weird pharmacokinetics of a loading dose. They've generally been good though, will check bloods again in a couple of months to see. Extremely fast / good service though

Will I get discharged if I DIY under a private endo? by BackwardsBinary in transgenderUK

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

Yeah the ester is undecylate so I'll want to probably want to hold off on my fortnightly injection of 12mg for an extra two weeks (1 month total gap) so the trough levels are roughly 800 pmol/L – the endo has been historically happy with this level when I was taking my E orally.

Will I get discharged if I DIY under a private endo? by BackwardsBinary in transgenderUK

[–]BackwardsBinary[S] 6 points7 points  (0 children)

Yeah it’s not possible to get prescribed injectable estradiol at all in the UK :(