robotkutya
robotkutya
TTCTheo's Typesafe Cult
Created by robotkutya on 11/14/2023 in #questions
Python Alternative to Drizzle?
Hey nerds, anyone know a good alternative to Drizzle in the Python eco-system? Probably there isn't one, but what comes closest? Or maybe a collection of libraries? Thanks!
2 replies
TTCTheo's Typesafe Cult
Created by robotkutya on 2/6/2023 in #questions
do you have experience with the python prisma client?
hay gang, has anyone used the python client for prisma? what's your take? https://github.com/RobertCraigie/prisma-client-py a bit of context: we have a terribly maintained MongoDB at work and I'm searching for a way out, adding prisma would be a big jump in the right direction, any other suggestions are welcome
22 replies
TTCTheo's Typesafe Cult
Created by robotkutya on 1/20/2023 in #questions
nanoid prisma schema /w planetscale
Hey gang, does anyone know how I can define a nanoid field with prisma if I am using planetscale? From the create-t3-stack example:
model User {
id String @id @default(cuid())
name String?
email String? @unique
emailVerified DateTime?
image String?

accounts Account[]
sessions Session[]
}
model User {
id String @id @default(cuid())
name String?
email String? @unique
emailVerified DateTime?
image String?

accounts Account[]
sessions Session[]
}
Now let's say I want to generate a shareable URL that points to the user's profile, so I want to save an extra field on this schema similar to the id field, but with nanoid. Is there any workaround until nanoid is officially supported by Prisma? https://github.com/prisma/prisma/issues/17199 I would like to avoid transformations in the app layer if possible. Thanks!
1 replies
TTCTheo's Typesafe Cult
Created by robotkutya on 12/21/2022 in #questions
I am blind.. HALP! (oauth redirect config issue)
35 replies
TTCTheo's Typesafe Cult
Created by robotkutya on 11/25/2022 in #questions
Simulate HLS Live Stream from Non-Live Source
I'm working on a video player (it's a sports video tagging AI magic kind of thing) and we have a backend already set up that a) gets the video stream from cameras b) creates video segments and uploads it to some google cloud bucket c) something updates the m3u8 file as the upload is happening Okay, great, but for testing purposes and local UI development, I don't want to spin up the whole shazam... What would be a good way to simulate a live stream from an existing m3u8 playlist of a non-live full video asset? Ideally I'd also want to simulate network outages, to make sure the UI handles it gracefully, etc I found this https://github.com/futzu/x9k3 but I'd like to avoid python if possible Also found this https://github.com/alkerway/hls-simulator But this doesn't even build, so I'm kind of just noping out right away.
22 replies