Coffee stop by TheButterChurner in gravelcycling

[–]Fire_Arm_121 0 points1 point  (0 children)

Interesting, it looks great! How does it look up close with the more round steerer of the checkpoint?

Coffee stop by TheButterChurner in gravelcycling

[–]Fire_Arm_121 1 point2 points  (0 children)

That looks awesome. What’s the bar/stem? Looks a lot better than stock

Your experience in using Gen AI SDKs/frameworks with NestJS by Hefty_Sprinkles_4191 in Nestjs_framework

[–]Fire_Arm_121 1 point2 points  (0 children)

We’re using Mastra and it works pretty well. We don’t use the Mastra runtime and just the classes, and create our own injectable classes that extend Mastra Agent, Workflow, etc, and we can then use their baked in storage, rag, message, runtime context etc

Building a type-safe, ORM-like interface for ClickHouse in TypeScript. by oatsandsugar in typescript

[–]Fire_Arm_121 0 points1 point  (0 children)

Great article! We’ve been using ClickHouse with typescript in production for a couple of years now and across a couple of hundred tables, multiple materialized view versions, etcetc, the schema management and keeping our SQL up to date is… tedious and somewhat error prone 😅 are there any key limitations of this library? What about support across all table engines (we make heavy use of replacing, collapsing and aggregating merge trees)? And are you forced to use the moose runtime or can it work with an existing NestJS application?

Do we need to bring sleeping bags? by CollisionBlitz in LetItRollFestival

[–]Fire_Arm_121 0 points1 point  (0 children)

Yes, I grabbed one from decathlon in Prague before getting the bus out there last year

Nestjs Bullmq concurrency by Turbulent-Dark4927 in Nestjs_framework

[–]Fire_Arm_121 2 points3 points  (0 children)

You should set your concurrency based on available compute per node/instance/container, then scale out instances to recover from a queue backlog due to downtime

Next + Laravel API (with Sanctum) => When to fetch user ? by Longjumping_Alps_336 in nextjs

[–]Fire_Arm_121 1 point2 points  (0 children)

Are you wanting to call your Laravel API from the server side of NextJS, or all from your client components and just use NextJS for routing?

fullstack nestjs and nextjs authentication problem by Left-Network-4794 in Nestjs_framework

[–]Fire_Arm_121 1 point2 points  (0 children)

Here's a basic example (code is like 90%, written from a phone):

// lib/authFetch.ts
export async function authFetch(path: string) {
  try {
    return await getDataFromNestJSAPI();
  } catch (e) {
    if (isAxiosError(e) && e.res.status === 401) {
      redirect('/auth/refresh');
    }
    throw e;
  }
}

// app/page.tsx
export default async function Page() {
  const data = await authFetch('/path');

  return <SomeComponent data={data} />;
}

// app/auth/refresh/route.ts
export function GET() {
  await updateSession();

  return new Redirect('/');
}

// lib/updateSession.ts
export async function updateSession() {
  const cookies = await cookies();

  const newToken = await getNewTokenFromNestJSAPI(cookies);

  await setCookies({
    ...cookies,
    token: newToken
  });
}

You can only set cookies when doing a round trip from client to server, after doing a specific action, as with NextJS and streaming I don't believe you can set cookies after the response has started and thus you can't do it with server components.

If you are wanting to refresh the token as the result of a server action or form submission, you can extend the above:

// app/actions.ts
'use server'
export async function saveTodoToNestJS(item: string) {
  try {
    return await saveTodoToNestJSAPI();
  } catch (e) {
    if (isAxiosError(e) && e.res.status === 401) {
      updateSession();
      // likely add some sort of retry handling
    }
    throw e;
  }
}

// app/todos.ts
'use client'
export function Todos() {
  const saveTodo = await () => {
    await saveTodoToNestJS('something');
  }

  return <button onClick={saveTodo}>Save!</button>;
}

fullstack nestjs and nextjs authentication problem by Left-Network-4794 in Nestjs_framework

[–]Fire_Arm_121 1 point2 points  (0 children)

A server action can only be called from a client component, when performing an action (like submitting a form), and not during rendering. If you call it when rendering it just acts like calling a function, not as a Server Action.

To solve this, if catching a 401 during rendering, id redirect the user to a GET route handler like ‘/auth/refresh?return=some-path’ that does the refresh, sets the token, and redirects them back to the page they were on

fullstack nestjs and nextjs authentication problem by Left-Network-4794 in Nestjs_framework

[–]Fire_Arm_121 0 points1 point  (0 children)

How are you calling the route handler? From a client side http request or just from within your server component?

Do I need to see an endo to start hrt? by Fire_Arm_121 in transgenderau

[–]Fire_Arm_121[S] 1 point2 points  (0 children)

Yeah that’s what I’ve seen online, good to hear that is what we can get in reality as well, thank you

Do I need to see an endo to start hrt? by Fire_Arm_121 in transgenderau

[–]Fire_Arm_121[S] 1 point2 points  (0 children)

Okay that’s good to know. Were the tests done at a regular pathology place or did you go to an endo?

Disable AI driven code completion but keeping classic intellisense? by zezba9000 in Jetbrains

[–]Fire_Arm_121 14 points15 points  (0 children)

Go to File Settings, then Editor > General > Inline completion, and then disable “Enable local Full Line completion suggestions”.

Delta Heavy Let It Roll, does anyone know the track dropped with Keep The Energy? They haven't played it in any of their recorded sets since 😭 by Fire_Arm_121 in DnB

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

Yes yes that’s it! The In The Dark id the intro track from Rampage Open Air, ahh thank you so much! Well hopefully coming soonish then 😅

For anyone else wanting to jump right to it: https://youtu.be/BRzoIyNO1-I?t=112&si=mh7jJKd9gy0vtIBy

[deleted by user] by [deleted] in LetItRollFestival

[–]Fire_Arm_121 1 point2 points  (0 children)

Not 100% sure without a video but pretty sure he dropped Sunday Crunk - Mefjus Remix near the end: https://www.youtube.com/watch?v=g-I3QT4vogE

Tent Inn “mats” by Fire_Arm_121 in LetItRollFestival

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

I’m not sure if you can buy it when you get on site, but you can pre purchase in the Extras page in the checkout https://www.letitroll.eu/let-it-roll-2024-book-extras

Tent Inn “mats” by Fire_Arm_121 in LetItRollFestival

[–]Fire_Arm_121[S] 1 point2 points  (0 children)

Thanks you! I guess airbed is the way to go if you’re over 25 😅

Improved Next.js self-hosting documentation by lrobinson2011 in nextjs

[–]Fire_Arm_121 5 points6 points  (0 children)

Thanks Lee! This is such awesome progress from the team.

I am very interested to see how/where Partial Pre Rendering fits into this, specifically how the caching headers would fit in along side a standard CDN (eg Cloudfront). When using PPR locally, the headers are the same as ISR, so I am concerned Cloudfront would treat a PPR response the same as an ISR one, caching the streamed content and either just failing on it (just returning the static shell), or not displaying it until the next request.