#development
1 messages ยท Page 232 of 1
my problem stems from generating them for every resource and storing them in database (crypto.randomUUID might be slow)
ye i wouldnt use it for that
it is supposed to be cryptographically secure i believe so yeah
at least would need to use a time based one
if youre generating them for every single resource, it needs to be fast
any crypto secure one will be too slow for the job
do you really need it to be crypto secure?
i do not
but it might be something else
seems fast enough
and its not like im generating 50 a second
ill figure it out
do a 999999 loop
right now it takes like 60ms to insert a single message with basic text
to generate 9999999 uuids it took 478ms
ye thats fine
ah wait i know why it took so long now
i forgot
the sqlite database is on a hard drive
and it waits for completion of the database write
so of course its going to take ages
since its random writes
im going to keep it for now though
makes it easier to identify performance issues with the database since writes and reads are slower
although the OS will probably cache the entire database file anyways
not writes though
but you're at least using WAL right?
thats like the most important setting for sqlite
i think sqlite without these on will always wait for the OS to flash writes to the disk and verify
i forgot what it does
write ahead logging
writes to a separate append-only file instead of modifying the db directly
the sqlite database isnt permanent though its only until i port to a server database and for testing
i assume its good for write heavy operations
ye its basically what it was made for
makes concurrent sqlite actually work well
otherwise sqlite has terrible write concurrency
i remember when my old discord bot used sqlite3 despite having 30k+ servers ๐คฆโโ๏ธ
honestly it did incredibly well
worked perfectly and had acceptable performance
despite heavy reads and writes
only switched because it randomly corrupted presumably from multiple clusters accessing it
didnt know any better then
rip
what int he fuck
this mascot ๐ญ https://chibi.takiyo.us/haNHAGD8Rspg.png
yep looks good
:D
re-type if i'm not mistaken
yea
I honestly wasn't trying to go this hard on it
I just wanted something to test sessions
๐ญ
my OCD kicked in
๐
Access to fetch at 'http://localhost:3000/api/auth/join' from origin 'http://localhost:3001' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
I fucking hate my life
cors can die in a hole
app.use(cors({ origin: ["*"] }));
if you use react, add "proxy": "http://localhost:port" to your package.json
then restart
you can simply do /api/* request instead of full url on development while redirecting it to your http://localhost:port/api/*
oh yeah my bad
Im just even more confused now
apparently my api isn't recieving the email
{"email":"someemail@example.com","password":"12345678"} this is exactly what im sending
"Failed to deserialize form body: missing field `email`"
๐
Right so how the fuck do cors work
cause I swear I set it up
but now i am getting a cors error when my api tries to redirect me back to the homepage of my frontend
Access to fetch at 'http://localhost:3001/' (redirected from 'http://localhost:3000/api/auth/join') from origin 'http://localhost:3001' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
have you done this
yea
well not the app.use , but the cors origin
yes
yes
guys any idea for my application bot
so uh, port 3000 is your api, 3001 is your front end right?
yes
3000 is my axum api
3001 is my nextjs app
im bout to just say fuck it and test all this on the prod domain
๐
that way their origin is 100% the same
and just use nginx to tie it all together
matter of fact

never got that when i do development. the only thing is set cors in server, and set proxy
you don't need to redirect on the server to nextjs' route
wym
http://localhost:3000/api/auth/join make a redirect to http://localhost:3001 isnt it ? ๐ reading cors is a bit hard for me
yes
when they successfully join and there are no errors
it redirects back to the frontend
Actually wait
no
yes dont redirect it
Im dumb
hm
that also works
my idea is just make the server to redirect to /
because at the end, the front end will in the same origin with the api right?
yeah, i always redirect mine manually on dev 
Im sure there is a way I can make the backend and frontend "appear" on the same origin while local testing
but idk how
<div style = {{'top':0,'width': '100%',padding:0}}>
It doesn't cover the whole X axis, even tho I have set <body>'s padding and margin to 0 as well as HTML's
try width 100vw
100% only sets the width to the size of whatever div is in (aka its parent)
if you want it to be set to the view port width then do what 0x7d8 said
It worked, however there's space between the top and the div, even tho it's top property is 0
Oh, thank you
๐
Is there a way to fix document is not defined?
in react?
are you listening to preflight requests? a preflight request uses the OPTIONS method
oh yeah
React.useEffect
put client code in there
can't wait for the time when JavaScript becomes fully natively compilable
Next.js, but I'm unsure how to do it
React.useEffect(() => { document... })
Oh, is it what I would use for any client changes?
useEffect is only when you want to listen to outside data afaik
Well, I don't even know how to create a client-side script
Oh, literally just 'use client'
its also often used to avoid SSR and run the code on the client exclusively since that method usually gets called when the component mounts on client
you have to do hacks like this otherwise the framework tries to server side render your code which is supposed to be client side only
although most have functions or components which specifically mark code/components as client side only
Yes, I'm actually really confused with them
I'll need to write data over a database once they click on a button, but it's a client event so I don't really know how I will handle it
you would do it as with any other framework which is by having a server API and sending a request to the server with the data
i am excellent
Such as what?
Search on Fiverr 
Then you won't find one here either, we're not looking for a job here
Well no
Its now allowed to ask that here
If you are looking for devs, go to fiverr or freelancer
do you know of the fetch function in the browser
your client and server are separated
to send data from the client side to the server you need to send it over a request
usually a fetch request
Would my client be able to use fetch?
Oh thank you
How may I host the connection for the fetch? Sorry I'm not experienced with creating API
struggling with typescript rn for some reason
doesn't show all possible keys...
yes thats what you set it to
string, map record
if you want autocomplete send the full definition of that please
I dont want to retype it all
i dont understand this 
first one actually does it
well nice
put the const first
i would also not recommend naming your interface map
what would you suggest
since typescript loves breaking when using js keywords / classes as interface names
something like GameMap
have a look at this page https://nextjs.org/docs/pages/building-your-application/routing/api-routes
you need to make an API route first so that it can accept your data on the server
after you do that, you can then focus on sending it from the client to that server route
should use a different server for api tbh
Would it matter much?
mm easier imo
use next api routes
It will be easier for you
if you eventually find its too limiting, you can easily switch to a dedicated framework like express
Thank you
Making the position of a li 50vw makes it's left edge stay on that position, it doesn't make it centered on 50vw, how may I fix that?
Okay, I fixed it though
yeah i'd stick to nextjs routes for now
i agree its easier but might be a bit more complicated having a separate instance for someone that hasnt done this before
its a mess building an actual backend api alongside these frameworks
ive had one also leak confidential server only data doing that since the framework thought what i imported was client side
use nextauth
In order to let people login with their Discord accounts right?
yeah I believe nextauth supports discord login so you can use that
Oh thank you
nextauth supports every auth provider under the sun
any they dont have a provider for I think they expose a generic one that lets you set the props yourself
It supports anything tbh.
anyone can add their own
yeah
My discord one is modified
I dont use next auth simply because my api isn't in js
Their default discord one is kinda meh, not refreshing user data properly.
I plan on using a state management library instead
Is it possible to insert a button inside a ul?
yes
Oh thanks
zustand my beloved?
swr my beloved?
help #topgg-api
@covert gale when create 1.21
yes
is it because of the neoforge split so create non fabric doesnt get updates rn
thats my amazing theory
is there no public branch for that
why
regex is a curse on planet earth
its actually so easy to accidentally miss a single case and introduce a bug or vulnerability
as well as how easy it is to do a regex ddos if youre not careful about how you construct your expression
String pattern matching is tough though
Regex is a good solution, just it can backtrack a lot
Any reasons why I might be getting Error: NotFound: 404 Not Found (error code: 10062): Unknown interaction in like 1 or 2 servers, but not the other 700?
you're taking too long to answer an interaction
if your error margin is too tight, any fluctuation in your response time will make that error appear
either defer your interactions or reduce your processing before answering
If you're receiving interactions over the gateway, I'd recommend avoiding that if possible since once that shard goes down, any interactions received while it's down are more than likely going to be expired by the time you can resume and Discord can push the missed events based off the seq
And the shard can be disconnected by Discord at intervals for no reason
Deferred interactions last up to 5 minutes, that's more than enough time to reconnect to gateway
Unless u were answering something else
15min, and you cant defer if youre offline :^)
ah, yeah that's why I recommend to defer the moment you receive the event
i smell rust
erm that would not compile in rust!!
If a messageComponentCollector's max property is set to 1, and it collects an event fire whilst the time property of it, will it still fire end event?
uhhh
what?
like, if you're talking about d.js, it'll end when the target number of messages is reached or the time expired, whatever comes first
I believe so, since that's supposed to be the post-execution event
Okay thanks
LOL
29 days left
hard links?
like, if it had a hard link, it might make windows loop trying to find total size
idk if this is still a thing tho
dont know what to back up on my c: disk so im just gonna copy everything in my user folder but appdata
Hey guys, once again asking what kind of algorithm should I make for showing popular videos to people's front page
My thing is, I dont want to require an account for using the service, so the algorithm should show them videos that are most popular (liked) and if they are subscribed to people (meaning they have an account) it should show them the videos of the people the are subscribed to and any similar content after the fact
use their ip
it's the only thing u can use to link their taste to
just make sure to put banner mentioning it
oh shit, my ssh version is 9.2p1
ah i got the patched version from apt upgrade, all good i guess
Right
I am asking what kind of algorithm should I use for deciding this?
or how should I decide this
This has to work for not only people not logged in, but if you are logged in, and are subscribed to people, you obv want to see their content first, and then recieve any similar content
well, that's the hardest part
there are people who're paid 6 figures to get that right at youtube
๐
thats only vulnerable in old sshd versions isnt it?
ah nevermind
my server appears to be vulnerable though
8.9p
not easily exploitable though
a couple of things need to go wrong
your distro should have a patch for it
mine did (debian)
i got it with apt
yeah it probably does im running ubuntu
if i understood the paper correctly this allows you to run shellcode as root if the attacker has at least some access to the system
whether its using a non-root user shell or non-root program
so you cant just break in from the outside that would be extremely bad
ye
basically a privilege escalation
yup
to the person that may have access to my server with a non-root user: please wait im updating
๐
hides hacks
Get em next time
Just wait until you guys find out about the backdoor I have in nasa
if we learned anything from the xz attack
i could be installing an update that has a backdoor right now
we dont know
indeed
@shell tundra just thought youd like to be aware
i would if i were you
Hi guys, i got a small question, how can i change the Profile Pic of my Bot on top.gg? i thought it changes cuz i changed the Pic on developer portal?.
Best regards,
Brejax
i believe there is button for that in yout topgg bot page
refresh or something
No mate, i cant see. there is nothing about it.
Just the descriptions etc
its same as before from here #development message
its very easily exploitable, but theres a patch available
omfg... i am blind af haha, sry mate! - i refreshed it now, but still same pic as before. does it takes a bit?
i mean, the version is 8.9 but the ubuntu patch is 0.10 now
from 8.9 ubuntu0.7
to 8.9 ubuntu0.10
@quartz kindle
not sure, but i believe it should be instant, maybe try clearing the browser cache / do a hard refresh
or try with a different browser
but it still would mean its vulnerable?
unless the patch specifically fixes the vuln for that specific version
alright, thanks for help
the patch specifically fixes it
ah okay now i understand
distros dont upgrade ssh versions because they may break stuff
instead they keep patching it whenever needed
they only upgrade it in new major releases
same thing on debian for me
from 1:9.2p1-2+deb12u2
to 1:9.2p1-2+deb12u3
they released the advisory early because apparently someone posted a bug report about a deadlock with coincidentally relates to the vulnerability https://bugzilla.mindrot.org/show_bug.cgi?id=3690
i appreciate the heads up
But that isnt the Main Token of my Bot im right or? (Which i have in the developer portal) ?
@quartz kindle sry for the ping ๐
its the top.gg token, used to access the topgg api
yea got it. sry for asking haha ๐
HEY
DONT EXPOSE ME
SHES SETTING MY SERVER UP RN
๐ญ
Now ima have a backdoor in my server
client.on(Events.MessageReactionAdd, async (reaction, user) => {
console.log(reaction);
});```
why is this not firing?
my gatewayIntents:
```js
const client = new Client({
intents: Object.keys(GatewayIntentBits).map((a) => {
return GatewayIntentBits[a];
}),
});```
you are doing this in the weirdest way possible
๐ฃ๏ธ
im pretty sure you can set the intents a lot easier
and why are you doing Events.MessageReactionAdd
cant you just do messageReactionAdd?
right
anyhow the event handler looks fine so youre probably not setting the reactions intent correctly
Why....
just do something like
const client = new Client({
intents: [GatewayIntentBits.DirectMessageReactions, GatewayIntentBits.GuildMessageReactions],
});
paired with whatever intents you need
that intent should give you events for reactions
or
intents: 2 ** Object.keys(GatewayIntentBits).length - 1
no
:^)
we are sticking with object.values thanks
๐ what
tim shenanigans dont mind it
the intents as a bitfield
Oh
get the number of intents, set the value to 2 ** number
then -1 to make it all enabled
Or just set the proper intents
yeah but the idea was to get the number of intents from the object, and use that
for future proof
or 0b1111111111111111111111111111111111111111
i want to do it in the least maintainable way possible
if you want cursed code, here you go
Number("0x" + "F".repeat(Object.keys(bits).length))
How the fuck does state management work in react
Is it possible to provide an object such as {{name:"1",value:"1"}, {name:"2", value:"2"}} for .addFields() function? (discord.js)

I mean array, not an object sorry
Object.values()
you would use an array of objects
[
{
"name": "asdasd",
"value": "adsasda",
"inline": true // optional
}
]
So it's possible to provide [{name:"1",value:"1"}, {name:"2", value:"2"}], right?
Thank you
๐
Right so who here has worked with global state managers like redux or zustand
never heard of either
you might be able ot help
Im trying to figure out when I should put the user into state
Obviously at some point during either logging in or when they get redirected
idk
So it's technically possible for actionRow.addComponents() as well right?
I think I should check the documents
pretty sure yeah
if trhe method name is in plural, it should accept multiple items
๐
probably during login
So I should make a function that handles posting to my login endpoint manually
rather than using action + method on the form itself
probably yeah
great
js gives tyou more flexibility
by state you mean what exactly?
like session?
i dont know how react does it but in svelte i just create a store inside of the layout component and set it to the user object which can be referenced by all pages & components under it by just importing it
then i can just do
import { sessionUserStore } from "../something.ts";
...
<p>{$sessionUserStore.username}</p>
im not sure if react has stores and if you would need to use "redux"
I mean sort of
btw stores are not needed anymore in svelte 5
basically
im still on svelte 4 but thats awesome
i hate having to create stores for multiple files
User logs in
Session cookie is made for them
I need to then fetch their user data
Attach this to a global state inside of react so all pages now have this user data
im not sure how exaclty it works yet, but i glossed over the svelte 5 changes and they said byebye stores
i know mutations to objects and arrays with .push or .shift also causes a re-render instead of having to reassign objects
I wanted to check out svelte but theres not any component libs for it
and I dont feel like making all the components myself
yeah the login request should return this data if the login is succesful

No
really?
component libs for what
like
i mean why make multiple requests
react has https://mantine.dev
fair
That would get rid of my @me endpoint
if the data is going to be used everywhere in the website, just get it at login
i prefer to build everything from scratch so svelte suits me

but i mean sure
you still need an endpoint to get it regardless
when a user who is already logged in opens the page without having the state
That should never be the case no?
i have mine open a websocket on the layout component and assign it to the user store once the hello comes
A logged in user always has state right?
only if the session cookie is stored in the same place as the rest of the data

if they are stored in two different places, then a desync can occur
if the user deletes website data/cache but not cookies
wdym in different places?
or vice versa
cookies, localstorage, sessionstorage, websql browser variable/html, idk
this is where JWTs can help also, the user data is basically your session token
but they can be annoying
i dont know how this react state works
but im assuming its like a js variable no?
or is the state stored locally?
i have a feeling if it were this easy they would just add it to react itself
so its probably more advanced
i mean
I know it doesn't walk it down the entire comp tree
it only gives the state to what reads it
just make this state whatever, then check browser dev tools to see if its anywhere local
Honestly
do you guys think svelte would be easier to use?
I kind of went with react cuz thats what I used in 2019
but new year new me, I kind of don't want to use react ngl
personally after using react then trying svelte it is much better
you immediately notice how less bloated and overwhelming it is

Well
I can give it a try
ima keep my react build just in case
Oh btw chloe while you are here
I have a question regarding how to do dev with a frontend + backend
none of this useState bullshit to have a reactive variable you just define any odd js variable and that is reactive
I was doing it locally at first but I was suffering cors issues
so reluctently I moved it to my prod enviornment
I need my api to be able to redirect to my frontend (as when in prod it will be on the same domain/origin), but the problem is locally it wont allow that
because its on two different ports (3001 (frontend) 3000 (backend))
in svelte 5 you have to do something mroe explicit now
oh yea I saw that
staying in svelte 4 then
id ont like it
I assume you can still use it normally

its literally just
$state(0)
and im sure you can use it normally
count + 1
unless theres a good reason for it im going to be grumpy
how exactly does shared state work tho in svelte
Like I need to store user data when they log in
is that going to be global?
so I can use it anywhere
you mean have both the frontend and backend on the same port?
idk
I mean
All I know is when I was doing it locally, I was suffering cors issues
because my backend needs to redirect to a page on the frontend when tis successfully done something
e.g when you login you dont want to stay on the auth page
You want to redirect back to the home page
there is:
before:
import { writable } from 'svelte/store';
export function createCounter() {
const { subscribe, update } = writable(0);
return {
subscribe,
increment: () => update((n) => n + 1)
};
}
after:
export function createCounter() {
let count = $state(0);
return {
get count() { return count },
increment: () => count += 1
};
}
byebye stores
yup
sorry
js code looks foreign to me
its a stupid question
๐ญ
right
I guess ima use svelte
since my vid player works on svelte to
<button on:click={counter.increment}>
clicks: {counter.count}
</button>
oh btw
bumping this
does $state() store it globally
or only in the context createCounter is used
and then its dropped
for example say one page uses createCounter increments, another page uses it will it be updated on both pages
or only one
yes that looks better but in any svelte file you can just do
export function createCounter() {
let count = 0;
return {
get count() { return count },
increment: () => count += 1
};
}
anyways
since its an instance, each createCounter would be separate
reason is apparently because it can be hard to know which variables are reactive or not but why do you need to know that anyways
so does global state not exist in svelte?
but if you use one createCounter and use it in two different places, then it will be the same
well apparently that wouldnt work for some use cases, hence why the example they gave was using writable store
Suppose we wanted to encapsulate our counter logic in a way that could be reused between components. Today, you would use a custom store in a .js or .ts file:
oh yeah that example wouldnt work anwyays
Runes are an additive feature, but they make a whole bunch of existing concepts obsolete:
the difference between let at the top level of a component and everywhere else
export let
$:, with all its attendant quirks
different behaviour between <script> and <script context="module">
$$props and $$restProps
lifecycle functions (things like afterUpdate can just be $effect functions)
the store API and $ store prefix (while stores are no longer necessary, they are not being deprecated)
thats all the stuff that the new "runes" thing make obsolete
i guess i can live having to do $state when defining a variable
im not a fan of snippets though https://svelte-5-preview.vercel.app/docs/snippets
id rather make a component in place of a snippet
im worried theyre making svelte 5 a lot more complicated
going against the initial motto
probably
its probably because a bunch of people are going around asking for features they want but dont need
and devs are like, yea lets add this to make people happy
there is also a thing that i've seen happen a lot
an entire project is designed with a certain idea in mind
why does reaction.count return me null?
but then are you start using this project in complex applications, you sometimes discover things where the project simply doesnt work
sometimes you encounter specific situations and use cases that the project never accounted for
const emojis = Array.from(reaction.message.reactions.cache);
console.log(emojis);
let z = reaction.message.reactions.cache.get(emojis[0][0]).count;
console.log(z);```
then you need to add these features to the project that will make it possible/easier to work with your complex use case, but for a lot of other people will seem like bloat and unnecessary
Ima be real
svelte is already amazing just by looking at it
its basically like ejs
but fully featured
and has stuff that nextjs brings into play like routing
layouts
is that a fetched message or a new message?
oh you're moving to svelte?
nope ๐
damn
what about it is confusing?/are you having trouble with?
I am wondering if I can set like default values for dark mode and stuff
Like setting all text to white if dark mode is enabled
im not sure how the svelte layout looks but in next.js you would do the dark mode thing in the layout.tsx like the "dark" class
yes yes
I was hoping not to have to do dark: everywhere
You could probably try to do a custom solution
i know i made a custom functino for situations where several classes have the same prefix, like hover: or stuff, i just made it so i could do hover:(text-white-500 bg-red-500) etc

You could do a similar thing so that you could have dark:(...)
I just made a function so my classes were like className={fix("")} and that function went through and "unwrapped" it all so hover:(text-white-500 bg-red-500) would become hover:text-white-500 hover:bg-red-500
export function dark(css: string): string {
return css.split(',').map((v) => {
return `dark:${v}`
}).join(' ')
}
well it works
๐
ty for the idea
this will make it a lot cleaner on my end while still producing the same result in the final build
:)
Im glad you found something that works for you!!
I think
I can even nest them
like have a hover function that takes in a string, and then i can use dark inside it
so it becomes hover:dark:text-blue-50
i feel like you should make the background color of the input boxes darker
Light vs Dark
I honestly quite like it
maybe the join button could be a bit lighter on the light version
but yknow
Little lighter
updated dark version
that is w i d e
if you make first name and last name not inline
or shorten them
that would fix
also notice bad contrast ratio between text color and bg of join buton
I am trying to find a way to nicely display any form validation errors

but yea
I fixed the button
and made it not so wide
I was going to leave displaying form validation errors to later, but my OCD is kicking in
Right, so this is what I came up with
honestly do not care anymore
error texts shouldnt be in white but red so monke brain activates when red
still
because people
also UX
yop
also did you mean at least 8 chars?
yea what else
oh
shit
๐ญ
bro
thanks
Im not sure how I like the background of the forms in light mode

my eyes are terrible looking at that bright picture
left align labels and error messages
also recommend to put error message right next to the input field label
thus you can shorten the error messagr
eg. Password At least 8 characters long
Left align them?
As in put them to the left of the box instead of on top?
same as is, but left-align the text
eg.
Label
|Input |
I see
I can try
hm
For some reason it wont



i swear it will look good
RangeError: Invalid string length
at JSON.stringify (<anonymous>)
what even is this error
div class:(label line) flex flex-row
label for:(#first-name)
error(p)
input #first-nane
can i see the code, and the passed in object at the time of error
i dont know the object
you do
im merging like 4000 files of json objects
and then json stringify
back into a single file
did you merge correctly
this worked before
actually no sotry
search the error up and see what are possible reasons to trigger this error

no idea what this means
damn you don't have sayu-ui-pseudocode plugin installed
read it as-is
right time to take you literally and underline the error messages
:)
yknow sayu
it looks better
thanks
quite honestly tho, it works so im not going to bother trying to optimize it for now
I have more important things to cover
Do you think I should add anything else?
to me it looks out of place just being there in the center
So much empty space around it
I just thought of an idea
some kind of decorative background
Instead of making a dedicated page
why not just make it a modal
On home page, you see Join click it, this pops up as a modal
then you will have to pack extra logic for each page
remember, conditionally rendered or not, it has to be present
would be better as a dedicated page imo
search bar was fixed width
you can use a clamping function along with flex
and additional media query to convert the search bar into an icon when screen gets small
rem is fixed
it technically scales, it scales with root font size
but font size is independent of viewport

in devtools, top left do you see the 2nd left most icon?
click on it
you can now preview the website in different device templates
go sleep
I wish I had someone else to help with the frontend, so I can push it onto them to make it responsive
๐
I am soonโข๏ธ I just feel terrible because this join page is the only thing i've gotten semi done
and i've been working on it for like 7h

I am terrible frontend dev
dw
i spent 2 days doing auth flow ui on flutter

Id rather do flutter than this shit
matter of fact, who needs a web page
mobile only baby
no media breakpoints for me
rahhhh
I will give someone my left nut to do the responsive portion of my page
I swear to god i'd rather swallow nails than do anything responsive

im tempted to say fuck mobile users
its a vod platform
Ima make a mobile app eventually
fun fact: flutter compiles to web
but, debugging dart2js interop is a pain in the ass
what the fuck are story points
same question
calm down

@civic scroll wdyt of this
[REDACTED]
Can I hire you?
I can give you the lint out of my pockets
and a pat on the back
๐ญ
listen man
thanks!!
taki

i'recommend making the preview flat instead of 3d
or making it larger
oh yeah the discord place holder is just temp
imma make smth with bigger content in it later
as for the next section, left align the heading
as i think the eye would move from the animation on the left to the text on the right
center-aligned text on a left-aligned block seems a bit off to me
ooooo i feel it now
send when you do
yeah it's height is 90vh, so the center is a bit to top
dw about height
but about the alignment
(i'm talking about the section in which the card pops out from the left)
yes
next auth discord doesn't support custom scope? ๐
nvm they do
they put it far from root ๐ฉ authorization: {params: {scope: ""}}
dark times man
svelte isnt the problem
its css
I hate css
even with tailwind helping me
im the first one who will use that
also aww why they didn't do the functions too
for (i in range(num_of_times)) {}
if (__name__ == "__main") {}
โญ

lmao
How to check the IP adress of where the request has come via Next.js API routing?
In case it would be bad if everybody could send valid requests to the API, they would've been able to grief the database
well for one you're supposed to have a token system for write/delete ops
IP is very weak for authentication purposes because it can be faked easily
Oh thank you it's such a good idea
x-real-ip must be real
real yes, but not necessarily the actual ip
req.headers['cf-connecting-ip'] || req.headers['x-real-ip'] || req.connection.remoteAddress```
thats my go to
look at https://debug.rest/ (or https://debug.rest/json) for an example of what a next.js instance returns
Is x-real-ip manuplatable?
Like it's fine as long as they manuplate it to be the IP adress of my VPS
call me lazy for not just simply โจ checking โจ but can you use custom emojis in dropdowns?
that wont be the host's IP, it'll be the client's
but as I said, it ain't reliable enough as changing one's IP is easy
dont rely on it for any authentication purposes
yup
padding-left: unset
yes
i havent written 10 lines of css on my frontend
its all mantine components
This is amazing. Take my money whoever made this ^-^
@quartz kindle do you remember the 7.6 million entries coming down to 18tb?
i reduced it to 2tb ๐
netherlands on topp ๐ฃ๏ธ
dutch citizen so ig i won
tough battle for you my friend
cry or no cry
i dont know 
dont rlly care abt football anyways
bro can play for both teams
fr
i am going bald guys what should i do
mann fuck all this it's too early to go bald bro
๐ญ
ong
xD
gj
this is #development not #character-development
let me have my character development and spill the beans here.
everyone is talking off topic why tf you targeting me brev
i'm joking
anyways minoxidil + finasteride will be your two best friends good luck brother ๐ซก
lemme finish my masters first then i am coming for itt
That way you can claim it was the doctorate that made you lose the hair instead of bad genetics
You could try growing a goatee and cooking very pure meth
It might be illegal but at least youโd be cool and rich
using this in my dockerfile but it isn't getting cached between builds...
not that important but it's a few seconds of build time that can be minimized
--mount=type=cache what kind of cursed cli is this
welcome to docker
shit does not want to cache any dependencies
hold on i think i did it
had to set the PNPM_HOME env var smhhhh
double checking rn
i think it works
who even needs to rebuild anyways
(it reinstalls without cache when files changed)
figured it out
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm fetch --frozen-lockfile
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile```
docker try to actually save space by reusing layers (impossible)
Debating if I should try making my own file server that can hook into Windows. The default Windows server software sucks
I need to remove my dependence on Google cloud, as good as it is. I have a server PC where I can stripe a few hard drives together and raid 1. Or might spring for SSDs and also allow steam games to be saved on it since my brother and I both share some games so can save those on LAN
Can't u just setup a filezilla server?
There's a lot of ambitious things I wanna do like be able to tag my photos/videos like booru and have custom software integration like an image LOD generator and waifu2x. Also support audio with a built in player that can adjust pitch and playback rate
the player I use for that is https://29a.ch/timestretch/
anyone here have used nextauth for discord? ๐
Whats your question
I havent but I might still be able to help



