#development

1 messages · Page 144 of 1

earnest phoenix
#

That's because Clang's LTO only works with the LLD linker, you're using GNU LD, though you can specify the -fuse-ld=lld CLI flag to use LLD without setting LLD as the default linker

quartz kindle
#

clang: error: linker command failed with exit code 1 (use -v to see invocation)

#

clang: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]

#

nvm

earnest phoenix
#

Oh, seems like node-gyp is specifying the -c CLI flag which tells the compiler to not do any linking, so it ignores -fuse-ld=lld

quartz kindle
#

was using the wrong var

#

i put it on the c flags instead of ld flags

earnest phoenix
#

Yep, LD flags is the correct one

quartz kindle
#

ok so this is performance with all the flags enabled

#

CC='/usr/bin/clang-16' CXX='/usr/bin/clang++-16' GYP_DEFINES='clang=1' CFLAGS='-pipe -Ofast -flto' CXXFLAGS='-pipe -Ofast -flto' LDFLAGS='-fuse-ld=lld' JOBS='max' npm rebuild sweph

#

this is performance with all defaults (gcc O3 without lto)

#

about 15% difference i guess

#

not bad

earnest phoenix
#

Heh yeah, it's generally not gonna make that big of a difference but sometimes it will

quartz kindle
#

yeah, napi is my biggest problem most likely

#

but still, anything counts

#

now im gonna check what actually made the most difference between clang, lto and Ofast

#

this is clang without Ofast and without lto

#

gcc with Ofast and lto actually made it worse lol

earnest phoenix
#

Yeah GCC is not good at that

quartz kindle
#

yeah so what actually makes a difference is clang + Ofast

#

lto makes no difference nether in gcc nor in clang

#

Ofast makes no difference in gcc, but it makes a lot of difference in clang

#

however im not sure if i should be using Ofast, since this lib is pretty much 99% math

#

what are the risks of introducing some weird calculation bug due to Ofast?

#

can Ofast actually cause math to return incorrect results?

hushed robin
#

can you use oauth without a website

solemn latch
#

oauth requires web requests if thats what you're asking

neon leaf
hushed robin
hushed robin
proven lantern
#

all the cool kids are doing that

quartz kindle
#

if you mean using someone's Oauth2, for example Discord's, Google's, etc... then probably yes

#

if you mean creating your own Oauth2, then no, you can use it for anything

hushed robin
#

but i don't want to make a website

earnest phoenix
queen needle
proven lantern
earnest phoenix
#

You should try Clang's -O3 and see how much difference it makes compared to -Ofast

quartz kindle
#

i mean

#

i dont care about a differences of +-0.00000000002387462847

hushed robin
quartz kindle
#

but i do care about differences of something negative turned into something positive or vice versa lol

queen needle
#

At the very least you need a button of some sort connected to an API

earnest phoenix
#

Regardless, you should try -O3 (of Clang) over -Ofast, see if it makes a big difference in performance

quartz kindle
earnest phoenix
quartz kindle
#

ye

earnest phoenix
#

Then I suppose you can use -Ofast but I'd recommend doing multiple tests to see if it causes issues or not

quartz kindle
earnest phoenix
#

I mean the parts you use

quartz kindle
#

well, its an api, meant to be used by other people

#

it does mathematical and orbital calculations for any date/time/location over a period of 30k years

#

impossible to test everyting lol

earnest phoenix
#

Definitely not everything, I meant like doing a couple tests with and without -Ofast to see if the results differ

quartz kindle
#

ye i can test that i guess

#

gonna have to come up with a basic test suite

#

unfortunately node's test runner is too limited

#

im gonna have to use a third party testing lib

earnest phoenix
#

Limited in what way?

quartz kindle
#

actually not the test runner

#

the assert module

#

there are many test cases where assertion is difficult

#

for example assert that something is of type, or that array/object includes something or is of a specific structure

#

but well, i guess it was made for checking things with js first and then assert some boolean result

earnest phoenix
#

Well that's pretty much how assertion stuff works in most programming languages

quartz kindle
#

yeah

#

i used jest once on a different project and it could do some pretty advanced assertions

#

for example

#
expect(result).toEqual({
  code: 200,
  data: expect.arrayContaining([{
    titulo: expect.any(String),
    conteudo: expect.any(String),
    lista: expect.any(String),
    id: expect.any(Number)
  }])
});
#

the equivalent using node's assert would be something like this i guess

assert(typeof result === "object");
assert(result.code === 200);
assert(Array.isArray(result.data));
assert(result.data.every(x => typeof x.titulo === "string" && typeof x.conteudo === "string" && ...))
...
#

back to the clang thing, i forgot i had my bot running on the same server

#

i upgraded to debian 12 and restarted the system, and didnt notice my bot went offline lele

#

for some reason it didnt run at boot

hushed robin
#

how can i generate an oauth url

frosty gale
#

what do you need it for?

hushed robin
frosty gale
#

so you want to login via spotify via oauth?

hushed robin
#

can i make oauth work with express

neon leaf
#

why wouldnt you be able to

hushed robin
#

and cus it's not working

#

🙁

#

ReferenceError: localStorage is not defined

neon leaf
#

you wrote client code on the server

hushed robin
neon leaf
#

or is that error on the website

hushed robin
#

it's coming from my code

neon leaf
#

localStorage doesnt exist in nodejs

hushed robin
#

bruh

#

can i still do it

neon leaf
#

yes

#

you just copied code

#

thats the problem

hushed robin
neon leaf
#

well you did didnt you

#

do some reasearch on how the spotify oauth api works

hushed robin
#

nvm

#

ayo

#

i did it

#

what does expires_in mean

neon leaf
#

when the token expires

#

when it does you need to get a new one with the refresh token

hushed robin
#

whats the point of that?

#

if i can just get it again with refresh token why not make it last forever

#

also, is that seconds?

neon leaf
hushed robin
#

where

neon leaf
#

well search for spotify docs

#

but its most likely in seconds

hushed robin
#

now i need to make a good looking page

#

with html 🤮

hushed robin
#

guys i need help how can i link spotify accounts to discord accounts now

proven lantern
#

a message can only have an embed or content right? not both

spark flint
#

it can have both

hushed robin
#

it can have both

#

wym

proven lantern
#

in the same response?

hushed robin
#

yea

proven lantern
#

like i could @mention people in the content to ping them and then have my normal embed message

#

noice

hushed robin
#

yea

#

this server does that

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

sage bobcat
#

One message removed from a suspended account.

hushed robin
sage bobcat
#

One message removed from a suspended account.

hushed robin
#

not like that

#

through my own application

#

for the purpose of

#

knowing someones spotify account

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

hushed robin
#

i wanna know someones spotify account

#

throughh my bot

sage bobcat
#

One message removed from a suspended account.

hushed robin
#

i already have that

sage bobcat
#

One message removed from a suspended account.

hushed robin
#

but

sage bobcat
#

One message removed from a suspended account.

hushed robin
#

i don't know how to connect the spotify data i get to their account

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

hushed robin
#

I CAN GET DATA FROM SPOTIFY

#

FROM ACCOUNTS

#

but how can i LINK SPOTIFY ACCOUNTS

#

to DISCORD ACCOUNTS

sage bobcat
#

One message removed from a suspended account.

hushed robin
#

SO I CAN SHOW THEIR DATA

#

AND SUHCH

ETCETC

#

i have an idea i think

#

i'll append their id at the end of the url

#

but i think that could be a security risk

sick agate
#

filter it then

hushed robin
proven lantern
#

does discord give us the timezone of each user?

hushed robin
#

but you can get their language through interactions

#

thats about it

spark flint
#

thats the only way

#

you can get their current song through presence if they have that enabled

#

but only other way is using oauth, then fetching it from the response

hushed robin
#

i don't want to use 2 oauths

#

thats such a hassle

spark flint
#

wdym

hushed robin
#

i am already using spotify oauth

proven lantern
#

what's a good global datetime format?

spark flint
#

ISO

#

i forgot the full name

proven lantern
#

for humans

spark flint
#

oh

proven lantern
#

how do you do iso with an offest?

spark flint
#

readable like that

#

hm

#

GMT is the standard

proven lantern
#

that means that everyone needs to convert to UTC

#

the standard is actually PST

#

that's what the S stands for

spark flint
#

i only ever see GMT+1 GMT-4 etc

sick agate
#

same

spark flint
#

GMT Is the literal standard

proven lantern
#

the first reason is usa #1

#

makes sense

#

that's still GMT

#

broken

#

i will try to fix this

hushed robin
proven lantern
#

GMT shouldn't be the standard anymore

hushed robin
#

mainly because I don't know how to

#

but partly because I'm lazy

proven lantern
#

do you think inputting a relative time would be less annoying than trying to put in a time with timezone. also m/d/y vs d/m/y needs to be handled

hushed robin
proven lantern
#

a relative time would be much simpler for everyone. right?

hushed robin
#

no

#

some people will get confused

#

just put it in their local timezone

#

r u making a website or bot?

proven lantern
#

2 day 5 hours 30 minutes. vs 7/3/2023 1:32am -7 timezone

#

should i force them to use a 24 hour clock

#

too many possible mistakes

hushed robin
#

why

hushed robin
#

i think that's best

#

but i don't think you should put it in one timezone cus it will be confusing

#

ik that confuses me sometimes 😔

proven lantern
#

why wont discord give us a date input?

#

that would be cool

#

datetime input

hushed robin
#

it's on their little

#

roadmap thing

#

but who knows when or if they'll actually add it

proven lantern
#

it'll probably only be a date selecter and not time

#

i just want a timestamp

hushed robin
#

yeah it says only date picker here

proven lantern
#

relative time it is

#

good idea

hushed robin
proven lantern
hushed robin
#

so it shows in everyones local time

proven lantern
#

/host_event starts_in: 2 days 4 hours 30 minutes

#

the person inputting the command needs to indicate when the event starts

hushed robin
#

oh

#

theres a good little package for that

#
proven lantern
#

i already have something like that

#

somewhere

#

i wrote

hushed robin
#

nice

#

that one works well, it works with quite a few formats

#

like full words and shortforms and stuff

#

mr big bun showed me it

proven lantern
hushed robin
#

remove the semicolen on line 25

#

now

proven lantern
#

const x = thing;

#

even if thing is a function

hushed robin
#

oh

#

ok

lyric mountain
#

why not just use the formula?

proven lantern
#

lol

#

never

hushed robin
#

what do you guys think of this idea

lyric mountain
#

why would it be?

#

ids are mostly useless on their own

wheat mesa
#

IDs generally don’t reveal anything about the user

#

(Public ones at least)

hushed robin
#

people could send someone a link to my login page with their id

#

have the person verify then they will get access to their Spotify account

#

😵

wheat mesa
#

I don’t think I understand what you’re attempting to accomplish

hushed robin
#

I want to link a Discord and Spotify account through my bot

wheat mesa
#

How would you even facilitate the access of someone’s Spotify account if you yourself don’t even know their credentials?

hushed robin
wheat mesa
#

But that requires them to login? I don’t see how you could give away credentials to someone’s account like that

#

Perhaps try explaining your goals/process more clearly

#

I can’t keep playing this guessing game

hushed robin
#

so they could delete playlists and such

wheat mesa
hushed robin
#

I did

wheat mesa
#

You did not

hushed robin
#

ok let me explain

#

my bot will send a link like this for a person authorize their spotify account through OAuth: http://localhost:3000/login?id=307307861032304652
(I will append their ID to the link so I know whos discord account it is)

but someone could for example, take their discord Id and put it in the link like this: http://localhost:3000/login?id=173489654144696320

and if a person were to authorize their Spotify account with this link, it would give the person whos ID is in the link access to their Spotify account through my bot

#

is this explained enough

lyric mountain
#

then use oauth for both sides

#

that is, spotify and discord

hushed robin
#

no

#

i don't want to use discord oauth

lyric mountain
#

so...you don't want to use the only way of ensuring it's the correct id

#

what difference does it even make?

#

oauth2 is oauth2 regardless of the service

hushed robin
#

i'm not making a fully fledged website

lyric mountain
#

the same handler u use for spotify can be used for discord

lyric mountain
#

u can chain oauths

hushed robin
lyric mountain
#

why wouldn't u be able to?

#

just do the first oauth, store the result somewhere, then redirect to the other

#

it'll be annoying to the user yeah, but that's the price u pay for not wanting to do it the proper way

hushed robin
#

what's the "proper way"

lyric mountain
#

a site

hushed robin
#

i'm not good at making websites

#

we've been through this

wheat mesa
#

You’re not good at making anything my man 💀

lyric mountain
#

the only way to become good at something is doing that thing

hushed robin
hushed robin
#

it didn't work

#

so I quit

lyric mountain
#

that's why ur bad

hushed robin
#

it's a waste of time

lyric mountain
hushed robin
#

cus i gained no knowledge

#

for the 1 day i tried makign a website

lyric mountain
#

ofc u didn't, u just copypaste everything

#

also 1 day isn't enough for anything

wheat mesa
#

I failed my first calculus test

#

Horribly

#

47/100

#

I finished the year with a 98% in the class

hushed robin
#

i tried making

wheat mesa
#

You just have to go again

#

Nobody learns without failing a few times

#

The greatest minds of humanity go through many stages of trial and error

lyric mountain
#

imagine battle stranded on an island

wheat mesa
#

Einstein didn’t wake up one day and instantly guess everything about the universe

lyric mountain
#

tries to make fire -> fails -> dies from hypothermia

hushed robin
#

i tired and this is all i could make

#

two buttons in top right corner

wheat mesa
#

Looks like mantine

wheat mesa
#

I made a shitty site at first, I still suck at frontend, but I tried a little and made a decent looking site

#

I never finished it but that’s due to other issues

hushed robin
wheat mesa
#

If that’s you trying then dear god I don’t wanna see you not try

#

You probably spent 20 minutes reading code off the internet and then gave up when you couldn’t center a div

hushed robin
#

😐

#

spending 20 minutes to center something is ridiculous

wheat mesa
#

Not when you’re doing it for the first time

#

20 minutes is tiny in the grand scheme of things

#

20 minutes is a third of one class of my introductory CS class in my junior year

#

…a class which I attended more than 170 times that year

#

20 minutes really isn’t much time

#

That first class day I’m pretty sure we learned nothing about programming

hushed robin
#

no

wheat mesa
#

ok

#

If you think you’re gonna be an expert in 20 minutes (you probably do with how arrogant and naive you are) then you’re delusional

lyric mountain
#

really wonder what will he ever work with

#

with the attention span of 20 minutes

wheat mesa
hushed robin
#

lots of people use tiktok

lyric mountain
#

and that's worrying

hushed robin
#

i bet you've both used tiktok

lyric mountain
#

nope

#

never installed it

#

nor any similar app

hushed robin
#

:cap:

#

🧢

wheat mesa
#

I haven’t ever installed it but I’ve been sent videos that I’ve watched

hushed robin
wheat mesa
#

However I don’t watch it like the average user does

lyric mountain
#

nope

hushed robin
#

💀

lyric mountain
#

why would I even install it?

hushed robin
#

third person in existence to not have instagram

#

what tutorial do i need to watch to make a website

tender rune
#

One on web development

wheat mesa
#

💀 bro thinks there’s a tutorial for everything

#

That’s your problem

#

You rely on tutorials too much

#

And spoonfeeding

hushed robin
tender rune
wheat mesa
#

Learn the basic syntax and such with tutorial websites sure, but you need to write your own code to learn

#

When you encounter a problem, you look it up

hushed robin
#

yes I know

#

I want a good guide not so much a tutorial

proven lantern
hushed robin
#

that will teach me the basics

hushed robin
proven lantern
hushed robin
#

then why edit it

proven lantern
#

because i was shamed

lyric mountain
#

just append (val !== 1 ? 's' : '')

proven lantern
#

what abot millenniums vs millennia

#

i need it for that

#

see

#

llol

lyric mountain
#

don't think you'll reach millenia

proven lantern
#

i will

hushed robin
#

what’s millennia

lyric mountain
#

well, then u do need a plural field

proven lantern
#

better to be prepared

proven lantern
#

now it has purpose

hushed robin
#

you will be well done in a thousand years

#

I don’t think you need to plan that far ahead

proven lantern
#

i can use it to reference something in the past

#

some historical event

#

and use my little function

#

perfect

hushed robin
#

what event do u need to reference from a thousand years ago

#

that’s relevant to gaming

proven lantern
#

do you have a moment to talk about our lord cheesus christ?

tender rune
#

Spartan games of course.

lyric mountain
proven lantern
#

century

#

that's a good one too

#

i'll update

hushed robin
#

KuuHaKu

#

do you have a starter guide for making websites

lyric mountain
#

w3schools, mozilla institute, codecademy

hushed robin
#

please send links

lyric mountain
#

google

hushed robin
#

☹️

sage bobcat
#

One message removed from a suspended account.

lyric mountain
#

also start with the damn html

hushed robin
#

which one do you recommend the most

proven lantern
lyric mountain
#

era is either BC or AC

hushed robin
proven lantern
#

before cheesus?

lyric mountain
#

oh, also

#

put planck time

#

millis, micros, nanos

proven lantern
#

planck is a thing?

#

oh

#

no nanos

#

does js have nano?

#

i guess something else could send in nano time

lyric mountain
#

1 nano is a millionth of a second iirc

proven lantern
#

billionth

lyric mountain
#

well

#

time for bigint then ig

proven lantern
#

but what should i do for datetime input? a relative datetime will be easier right?

hushed robin
#

why not allow both

proven lantern
#

because i want it to be simple

#

no confusion

#

/schedule_event start_time: 2 day 3 hours 10 minutes
vs
/schedule_event start_time: 7/3/2023-10:55pm -7

#

what format would you use for?

hushed robin
#

bottom

#

what if someone wants an exact time / date

#

it will be difficult to achieve with top one

proven lantern
#

mm/dd/yyyy-hh:mm[am|pm] -timezone

proven lantern
#

ezpz

#

people love math

hushed robin
#

don’t listen to kuuhaku

#

with that it is difficult to have an exact

#

either both or second

#

👍

proven lantern
#

kuuhaku is is confirming what i think so they are right

hushed robin
#

😐

lyric mountain
#

u can also use both, just have 2 different params

#

start_in: and at:

#

so they can use start_in: 30 minutes or at: 02/07/2023

proven lantern
#

that might be confusing to have both

#

they would both need to be optional

#

maybe two different commands

lyric mountain
#

make them optional

#

and send an error message if they supply none or both

pale vessel
#

or both

proven lantern
spark flint
#

i wish discord added a time selector input

proven lantern
#

they wont mess up this way

pale vessel
#

it was in datamining iirc

spark flint
#

discord tm

#

they had that modal dropdown which got removed

pale vessel
#

you could still use it I think

#

it's just not documented

spark flint
#

nah it got removed

#

and would not show up on mobile

hushed robin
#

who knows a good website making guide

proven lantern
hushed robin
pale vessel
#

how'd you even understand his question

hushed robin
proven lantern
#

vercel will help him with website building

#

ezpz

spark flint
#

lol

hushed robin
proven lantern
#

the best website hosting company

pale vessel
proven lantern
#

or everything at once

hushed robin
#

i don't want a handicap

pale vessel
#

then don't use a guide

hushed robin
#

no

#

i want a guide

#

not a handicap

pale vessel
#

guide is a handicap when you could just read docs

#

boohoo

#

👶

proven lantern
#

try out sveltekit

#

you'll have fun

#

all the cool kids are doing it. shouldn't you do it too?

pale vessel
#

aren't you in your thirties

#

or almost

proven lantern
#

i'm still hip

#

😎

hushed robin
#

docs are not good for learning

pale vessel
hushed robin
#

yes

proven lantern
#

step 1

#

create account

#

vercel is so awesome

#

best dev environment for websites

hushed robin
#

ok

#

does it cost money

proven lantern
proven lantern
hushed robin
#

no

proven lantern
#

you should use sveltekit then

hushed robin
#

whats sveltekit

proven lantern
#

it's a framework for building websites

hushed robin
#

like react?

proven lantern
#

yeah

#

but better

hushed robin
#

whats the difference

proven lantern
#

everything

hushed robin
#

is it easier

proven lantern
#

yeah, much simpler

hushed robin
#

hm

#

can i use it with next.js

spark flint
hushed robin
#

what

proven lantern
#

nextjs is for react. sveltekit is for svelte

#

both are hosted on vercel

#

vercel created next.js btw

hushed robin
#

oh

#

hm

proven lantern
hushed robin
#

give me

#

a

#

a

#

a

#

guide for it

proven lantern
#

you dont need a guide

#

just make an account and it will walk you through it

hushed robin
#

i don't want to use vercel

proven lantern
#

vercel is too good for you?

hushed robin
#

huh

proven lantern
#

i understand

hushed robin
#

vercel is a handicap

proven lantern
#

vercel is the gold standard

spark flint
#

the only handicap is your mindset lol

hushed robin
#

no

#

but vercel is

proven lantern
#

vercel would make it too easy to build a website and learn about web development

#

battleless wants a challenge

#

you could even learn about serverless functions with vercel

lyric mountain
#

tbh the best start would be with plan old html

hushed robin
#

Svelte is much less code to write to accomplish the same thing in React, but the ecosystem isn’t near as developed as the React ecosystem if you’re someone that relies heavily on npm packages. If you’re starting a project now, it’s usually best to choose what you’re familiar with, both will accomplish the same goals.

#

true or false?

proven lantern
#

that seems valid

hushed robin
lyric mountain
#

already said it, w3schools

#

"how to html w3schools" in google

hushed robin
#

w3schools looks like a scam

#

it has a awfully bad website itself, how can i trust

lyric mountain
#

do u know where the "w3" comes from?

proven lantern
#

look at all the templates that vercel has to offer

hushed robin
lyric mountain
proven lantern
#

use this one

lyric mountain
#

css is maintained by the w3 consortium

hushed robin
#

can i use chakra ui with sveltekit

proven lantern
#

no, that's a react lib

hushed robin
#

bru

proven lantern
#

but you shouldn't use chakra ui if you want to learn it yourself

hushed robin
#

are there ui libaries here

hushed robin
proven lantern
#

that could work

hushed robin
#

i don't care about styling things myself

#

fuck that

proven lantern
hushed robin
#

ERRRRRRRRRRR

#

but

#

can i host a project for free

proven lantern
#

yes

hushed robin
#

with custom domain?

proven lantern
#

you can point a custom domain to it for free

#

but you need a domain first

hushed robin
#

yea

#

i have free domain from porkbun

proven lantern
#

vercel gives you a free domain to use while testing

hushed robin
#

🐷

proven lantern
#

i believe you

#

strangely enough

hushed robin
#

why wouldn't u believe me

#

porkbun is giving out free .dev and .app domains for 1 year

sage bobcat
proven lantern
#

do you have your vercel account yet?

hushed robin
#

yea

#

i made one

sage bobcat
#

One message removed from a suspended account.

hushed robin
#

u want link for free domain?

#

wait

#

is vercel a code editor?

proven lantern
hushed robin
#

oh

#

bruh

proven lantern
#

isn't it great?

hushed robin
#

how do i take this test website down

proven lantern
#

yes

hushed robin
#

"yes"

proven lantern
#

42

hushed robin
#

"42"

proven lantern
#

i'm just guessing

hushed robin
#

bro what

proven lantern
#

did you hook up your github account to vercel yet?

hushed robin
#

yes

proven lantern
#

clone the repo for the test website

#

with git

hushed robin
#

first

#

tell me

proven lantern
#

not with science

hushed robin
#

how i can

proven lantern
#

i am

hushed robin
#

down the test website

#

😐

proven lantern
#

clone with git

hushed robin
#

no

proven lantern
#

step 1

hushed robin
#

how do i take down the test website

proven lantern
#

clone with git

hushed robin
#

i don't need it hosted rn

#

TELL ME

proven lantern
#

step 1

hushed robin
#

BUD

proven lantern
#

clone with git

#

oh do you want to know how to take down the test website?

#

step 1: clone with git

hushed robin
#

...

proven lantern
#

wait

hushed robin
#

fudge you

proven lantern
#

what test website?

#

the vercel one right?

hushed robin
#

yes

#

it's online

proven lantern
#

ooohh

#

step 1: clone with git

hushed robin
#

...

#

bro is a master annoyer

proven lantern
#

if you delete it then you dont have a project to work with

#

want to delete it and create it again?

#

you can delete by going to the project settings and scrolling to the bottom of general settings

hushed robin
#

your annoying

#

ok

#

what do i do now

#

git clone?

#

ok

proven lantern
#

wait!

#

not git clone

#

that will break everything!!!!

hushed robin
#

shut

#

up

proven lantern
#

oh wait, false alarm

#

it's okay

hushed robin
#

😐

proven lantern
#

open the project with your ide

hushed robin
#

yes i did

proven lantern
#

do you know how to run npm scripts?

#

run the dev script

hushed robin
#

yes

proven lantern
#

first npm install

#

then dev script

#

then localhost:8080

hushed robin
#

FORTNITE

proven lantern
#

then open src/app.html

hushed robin
#

why

#

'vite' is not recognized as an internal or external command,
operable program or batch file.

#

FUDGE

proven lantern
#

vite?

hushed robin
#

yea

proven lantern
#

what have you done?

hushed robin
#

bro

proven lantern
#

npm install error?

hushed robin
#

BRO

#

thats what it says

proven lantern
#

npm start dev error?

#

when you run which command?

hushed robin
#

nvm

#

works now

proven lantern
#

yep, it's pretty awesome

hushed robin
#

uh

#

number thing doesn't work

proven lantern
#

you need to fix it

hushed robin
#

???

proven lantern
#

they put the bug in there just for you to fix

#

so you learn

hushed robin
#

cap

proven lantern
#

i think it's even commented

hushed robin
#

cap

proven lantern
#

wait it should just work out of the box

#

cap means lie right?

#

pretty sure

hushed robin
#

yea

proven lantern
#

dont say cap to me. i never cap

hushed robin
#

it's broken

#

how is the template broken

#

🤣

#

goofy product

proven lantern
#

did modify anything?

#

it insta updates

#

like magic

hushed robin
#

bro it's so slow

proven lantern
#

mine works

sage bobcat
hushed robin
#

i didn't modify code

proven lantern
#

localhost?

hushed robin
#

what

sage bobcat
#

One message removed from a suspended account.

hushed robin
#

ben guide me

#

help me fix this

#

why is your suggestion brokenm

proven lantern
#

is it broken on localhost or the deployed website?

#

or both

#

and how is it broken

hushed robin
#

i fixed

#

i had to run preview version

#

why does it run ona random port

proven lantern
#

it used to be 8080

#

maybe it doesn't want to get in the way

hushed robin
#

now

#

i need to make my website

#

👿

#

this is the harder part

#

btw wtf is svelte

#

is thhis a new programming language i need to learn

proven lantern
#

means slim

#

no, it's a framework

#

it uses javascript

hushed robin
#

and why when i go in it

#

it looks like normal text

#

and not javascript

proven lantern
#

look for a plugin

#

svelte plugin

hushed robin
#

ok

#

that fixedit

#

it loads so slowly tho

#

it takes like a second or two to load

#

kinda weird

proven lantern
#

it had to parse everything

#

the ide builds an index

lyric mountain
#

The more plugins u have, the slower vscode becomes

proven lantern
#

once that's done it speeds up

hushed robin
#

the website

lyric mountain
#

Ah, well, that's normal I think

hushed robin
#

like when i click a letter in this wordle thing

#

it takes a second or two to register

lyric mountain
#

Ur running in debug environment, so it's deliberately slower

pure prism
#

Hm

lyric mountain
#

Release is usually 2-3x faster

pure prism
#

A new member here 😉

lyric mountain
#

But not useful at all during development

#

I still think u should've started with html

hushed robin
#

well

#

bro

#

your not telling me a good starters guide

lyric mountain
#

W3schools, for the third time

proven lantern
#

just delete everything and start from a div

lyric mountain
#

W3 are the literal maintainers of css

hushed robin
#

hell no

#

bro this is too complex wtf

wheat mesa
#

“I need everything done for me and all the research to be done for me and all the code to be written for me 😢” - battleless probably

hushed robin
#

when i become a coding pro

#

i will make a framework better than all of these

pure prism
#

Can I change my nickname here ?

hushed robin
#

one thats simple and powerful

#

not like these confusing pieces of shits 😭

wheat mesa
#

💀

pure prism
#

(╯°□°)╯︵ ┻━┻

wheat mesa
#

Yet another javascript framework that nobody will ever use™️

hushed robin
#

people will use mine

#

they will release you can do a lot with simple

pure prism
#

What yours ?

hushed robin
#

there is no need for this complex stuff

pure prism
#

-_-

wheat mesa
#

it’s not complex

hushed robin
#

it is....

wheat mesa
#

You just refuse to put in an ounce of effort to anything you do

lyric mountain
hushed robin
#

i'm trying now

#

this makes no sense

wheat mesa
#

Everything is hard when you’ve been spoonfed your whole life

lyric mountain
#

Not with your 20-min effort

hushed robin
#

i will make the best website maker

lyric mountain
#

10 years * 0 effort is still 0 skills

wheat mesa
#

Considering you can’t focus for 20 minutes I don’t see how you’re ever going to get to that point

hushed robin
#

i can

#

but this is too complex for beginners

#

there's too much of a bump

wheat mesa
#

I thought you knew everything though

hushed robin
#

i've been coding for 6 months now but can't make a website

#

you see how awful this is

hushed robin
#

when did i say this?

lyric mountain
#

Which is literally the entrypoint for web dev

hushed robin
#

FINE

#

what is the thing called

#

wschool?

lyric mountain
#

W3schools

#

Or mozilla foundation

#

Either will have good courses

hushed robin
#

so

#

do i just go through

#
#

this entire thing

lyric mountain
#

Yes

proven lantern
#

but use the modzilla website instead

hushed robin
#

what

#

?

lyric mountain
#

W3 is great for html too

hushed robin
#

w3schools website looks so bad

proven lantern
lyric mountain
#

It doesn't need to be fancy

#

It needs to be fast

hushed robin
#

ok

#

putting it in dar kmode

#

makes it 23% better

proven lantern
hushed robin
#

but i will not do this right now

lyric mountain
#

Also remember u can test html/js/css on the browser

#

To see it applied in real time

hushed robin
#

i'm going to put my new cpu cooler in my pc

#

then i will do this

lyric mountain
#

It's easier than using an ide

lyric mountain
#

Just remember not to press F5

lyric mountain
hushed robin
#

theres no elements

lyric mountain
#

Inspector then

#

That's the page source code

#

U can edit it directly

hushed robin
#

hm ok

lyric mountain
#

For saving simply ctrl S

hushed robin
#

oh this is inspect element

#

i did this for trolling in school

lyric mountain
#

For html it works well because u can see everything happening without needing to build or anything

#

Also with 0 delay

hushed robin
#

how do i

#

insert new html

lyric mountain
#

I think some editors also have integration with it

lyric mountain
hushed robin
#

oo

lyric mountain
#

U can also just open the html file

#

It's just text afterall

proven lantern
#

i would start off by memorizing all the html doc types

hushed robin
#

gold up

#

hold up

#

i can just steal websites?

#

wtf

lyric mountain
#

Technically, but not doable

proven lantern
#

you can scrape

#

unless Elon Musk throttles you

hushed robin
#

i just stole the w3schools website

lyric mountain
#

W3 uses static pages so u can, but for most sites they use apis and assets that you'll simply not have

proven lantern
#

that's when you scrape them

hushed robin
#

I see

#

some things on the website are weird

#

when I download it

#

but for the most part it’s intact

#

can you do html offline?

lyric mountain
#

Yes

hushed robin
#

so in theory I could download all the pages for this and learn offline

lyric mountain
#

Simply make a file called something.html

#

And write on it like any other code file

hushed robin
#

does JavaScript work offline too

lyric mountain
#

When u want to see the result simply open it in browser

lyric mountain
#

Actually, all langs do

hushed robin
#

wow

proven lantern
#

you need the express written consent from ESPN before downloading their website

hushed robin
#

why do we need internet then

proven lantern
#

nuclear war

lyric mountain
#

Because you need to be able to get the files

#

Without internet you cant access the site files

hushed robin
#

oh true

wheat mesa
#

no way this dude just asked why do we need the internet

lyric mountain
#

But you can definitely have an internetless internet

#

That's called intranet

proven lantern
#

the internet was made for nuclear war

#

fact

hushed robin
#

btw guys

lyric mountain
#

Some business use it for having a secure ambient for files

hushed robin
#

is using my old thermal paste ok?

lyric mountain
#

?

hushed robin
#

this is unrelated

#

I am about to put on my new cpu cooler

lyric mountain
#

Thermal paste is a silver composite, it doesn't go bad

hushed robin
#

ok

#

cus I thought this thermal paste and I still have some in the tube

lyric mountain
#

As long as the tube is properly stored and not punctured

#

Else moisture might get into it

#

Or excessive heat

hushed robin
#

what’s properly stored

#

I had the tube with its cap in the box in my drawer

lyric mountain
#

Is it capped?

#

And the tube still intact?

tender rune
#

Not under the beating sun 10hrs a day?

hushed robin
#

yes

lyric mountain
#

U can put a tiny droplet on ur finger and smear it a bit

hushed robin
#

yes and yes

lyric mountain
#

If it becomes impossible to remove for the next 2 hours then it's fine

wheat mesa
lyric mountain
#

Nah, thermal paste is safe

#

Just dont ingest

hushed robin
#

it’s going to stay on my hand?

#

why would I put it on

lyric mountain
#

Thermal paste really loves sticking to everything

wheat mesa
#

Well yeah it’s essentially tiny particles of metal suspended in fluid

#

Sticks to everything

hushed robin
#

apparently tooth paste gets it off pretty well

wheat mesa
#

Old thermal paste is fine to use as long as it’s been stored properly, just make sure you clean off the stuff leftover on your CPU

hushed robin
#

oh yeah I gotta do that

#

it was annoying last time

wheat mesa
#

Alcohol wipe

#

Just use a few of those

hushed robin
#

can I just use some paper towel with alcohol

wheat mesa
#

Sure

#

Make sure it’s rubbing alcohol

#

Not diluted with water

hushed robin
#

ok

#

If my temperatures aren’t better I will be pretty mad

#

ngl

lyric mountain
#

You'll need to replace it every once in a while anyway

hushed robin
#

how often

lyric mountain
#

Depends on usage

proven lantern
hushed robin
#

I think the last time I replaced it was a little under a year ago

lyric mountain
#

Could go from 6 months to about 3 years

wheat mesa
#

It gets less thermally conductive with time

hushed robin
#

or a little over

#

idk sometime during last summer I replaced it

wheat mesa
#

I gotta replace the thermal paste on my laptop at some point before college, as well as slap linux on it

hushed robin
#

I also replaced my GPUs thermal paste

lyric mountain
#

Bought a maintenance kit a few days ago, waiting for my paste to be delivered

wheat mesa
#

Windows sucks balls, I only use it on my home pc because it’s what I’m used to and allows me to play games without issue

#

For a college laptop I’m not gonna be playing games on, linux is going to be my preferred OS

lyric mountain
#

Ubuntu?

wheat mesa
proven lantern
#

does ubuntu have that cube desktop thing?

lyric mountain
hushed robin
#

what

#

why do u need maintenance for a notebook

#

u just write on it

lyric mountain
#

I'll ignore that

hushed robin
#

???

wheat mesa
#

Battleless try to use context clues challenge (difficulty first grade)

lyric mountain