#ot2-the-original-pubsta

652 messages · Page 57 of 1

echo fern
#

😩

echo fern
#

ah, I see

#

the thing is, despite Hsv being Hsv<T=Srgb,...> by default, that's not the Srgb I'm using

#

it's a different struct also named Srgb

dusky cliff
#

bruh

echo fern
#

Hsv<_,f32> it is then

#

okay, no problems on this line anymore, now to solve this

#

how the hell do I turn it into rgb

#

ah, there we go, fixed the second line by making the first one stop working

dusky cliff
echo fern
#

IT COMPILES YES

#

@odd sphinxdefinitely not right with the colors

#

not sure how I messed up tho

#

what the hell..

odd sphinx
#

shouldnt hue just be iter/max_iter

echo fern
#

oooh, I get the problem now I think

odd sphinx
#

what is it

echo fern
#

hue doesn't go from 0 to 1 here, I think

odd sphinx
#

does it go from 0 to 255

#

what does the docs say

echo fern
#

The hue of the color, in degrees

#

oh I hate this a lot

odd sphinx
#

oh

#

degrees?

#

wtf

#

so /60?

#

wat

#

wait*

#

why degrees

echo fern
#

because HSV is like that, and that's how they decided to implement it

#

what I'm doing here is actually very inefficient, but

#

it shouldn't matter compared to the calculation of the fractal itself

#

like, that part is hundreds of complex128 multiplications per pixel.

odd sphinx
#

dang

dusky cliff
#

dang

echo fern
#

building...

odd sphinx
#

mmm

echo fern
#

please give me a rainbow fractal

odd sphinx
#

lol

echo fern
#

poggers!

dusky cliff
#

nice

echo fern
odd sphinx
#

it works?

#

aha

#

very nice

#

thats a rainbow fractal

echo fern
#

that's with 32 shades

odd sphinx
#

yes

#

now we need all the shades

#

does it slow it down by much?

echo fern
#

not at all, it only matters here

            let color: f32 = (iter as u8 % shades_max) as f32 / shades_max as f32 * 360f32; // hue in degrees

#

the thing is, for the grayscale one, using too many shades simply made it way too dark

#

but here, I might want to remove that functionality entirely

odd sphinx
#

ah

#

interesting

echo fern
#

101 shades (as many as there are possible iterations)

#

I'm not too sure how I want to color it

#

maybe iter/max_iters*180, so that it the longest to diverge are rotated 180 degrees to the shortest?...

odd sphinx
#

now thats entirely ur wish

daring jay
#

That looks really nice

echo fern
#

playing with the hue span now

#

don't think I like this hot pink as the background lol

#

(that's hue of zero at saturation of 0.5, apparently)

odd sphinx
#

bruh how about this

#

two sliders that adjust the saturation and lightness

#

at the top right or wherever

#

then u dont have to keep building

#

for different colours

echo fern
#

I plan to, yes

odd sphinx
#

epic

echo fern
#
pub fn calculate_mandelbrot_colored(
    x_min: F,
    x_max: F,
    y_min: F,
    y_max: F,
    width: u32,
    height: u32,
    max_iters: u32,
    horison: F,
    from_angle: f32,
    to_angle: f32,
    saturation: f32,
) -> Array3<u8> {

is the current signature

odd sphinx
#

hot damn its getting complex

echo fern
#

here's saturation of 1, angles from 0 to 300

odd sphinx
#

interesting

#

u can put the image in ur repo

#

and then link to it with markdown image syntax

dusky cliff
#

some video thumbnail? idk

echo fern
#

Yup; the syntax is ![alt-text](link), like:

![screenshot of Forge's site](files/forge_installer_download.PNG)
dusky cliff
#

can't remember aaaa

odd sphinx
#

![alt text](https://image/link)

#

yes

tranquil ridge
#

it looked exactly the same

dusky cliff
#

yeah..

#

I think I was thinking of this guy

odd sphinx
#

lol

echo fern
#

lmao

#

I can probably even tell the horizon by that image if I try

#

guess mandelbrot visualizers are all the same

odd sphinx
#

lol

tranquil ridge
dusky cliff
#

oh fuck

#

yes

#

that's it

tranquil ridge
#

memori

dusky cliff
#

pro

tribal tinsel
#

The birdie wants too much attention

#

On the other hand, kitties are sleepy and -more importantly- silent

daring jay
#

awww

radiant socket
#

:o

tranquil ridge
jovial island
#

not cute

tribal tinsel
tranquil ridge
#

wont the cat attack it?

languid osprey
#

omg cat

#

ooh bird

tribal tinsel
#

Well, catto didn't attack the birdie then

languid osprey
#

oh

#

Where'd you get the bird?

tribal tinsel
#

But when I got birdie back on my and it was moving, catto's instincts kicked in and started observing

languid osprey
#

cool

tribal tinsel
languid osprey
#

Lmao

#

Keyboard macro :P

dim root
wide totem
#

Does anyone here have a security key?

#

Been looking at getting the 5C NFC from yubico

#

But it doesn't have a way to lock itself with biometrics or pin code

odd sphinx
#

i predict a nodejs question

daring jay
odd sphinx
#

why is it not coming here

#

its in ot0 and ot1

#

man

daring jay
#

Oh

#

Lol

jovial island
#

wow

odd sphinx
#

i was going to look super cool and epic

#

but no

hot pulsar
#

its ok you are cool and epic

odd sphinx
#

ig they just dont like the number 3

#

thanks bro

hot pulsar
#

np bro

jovial island
#

jk

hot pulsar
#

jk

#

🔥

odd sphinx
#

bruh

wide totem
#

I predict that my question got ignored 🧯

odd sphinx
#

if i am not cool and epic

#

then i will rename myself

hot pulsar
hot pulsar
odd sphinx
#

yes

jovial island
#

wow

wide totem
odd sphinx
#

lol

#

sorry my prediction was too important

wide totem
#

It's only the third server I've asked that question in w/out resp smh

#

Does anyone here have a security key?

#

Been looking at getting the 5C NFC from yubico

#

But it doesn't have a way to lock itself with biometrics or pin code

hot pulsar
grim seal
grim seal
wide totem
#

Wdym

#

My computer locking the security key kinda goes against itself

#

No?

grim seal
#

the security key is an additional security factor

#

I combine a security key + biometric + password

#

for getting into my device

wide totem
#

Ah

grim seal
#

SSHing into my servers is the same, except no password, a biometric, security key and 2FA generated from mobile

#

PyDis stuff is similar

wide totem
#

How tf do you set that up

wide totem
grim seal
#

lol

wide totem
#

Like so it's used over ssh

halcyon tiger
#

whats joes name?

#

is it mark

#

or bob

odd sphinx
#

joe.

halcyon tiger
#

I dont remember

grim seal
#

the key used for authentication is on the security key

#

it's... Joe?

odd sphinx
#

ikr

languid osprey
halcyon tiger
#

zeeshan is a gamer now

odd sphinx
#

yes

#

clearly

grim seal
#

security keys are cool we should do more of them 🙂

languid osprey
#

oh yeah, I saw that

odd sphinx
#

yea ive heard abt this

languid osprey
#

on reddit

odd sphinx
#

how do they plan on replacing it

wide totem
#

I haven't gotten it yet still looking

dusky cliff
#

Humanity wastes about 500 years per day on CAPTCHAs.
I mean
that's not really a good metric is it

odd sphinx
#

ah security keys

dusky cliff
#

considering that there are like 7 billion humans

#

each of them living 24 hours

#

that's 168 billion years everyday

languid osprey
#

whoah

dusky cliff
#

500 is

#

nothing

languid osprey
#

168 billion years happen in a day

dusky cliff
#

¯_(ツ)_/¯

grim seal
wide totem
#

I do like how they have a PTRNG inside

#

I added the P

languid osprey
#

I want to live 168 billion years in a day

wide totem
#

right?

#

Also I herd getting 2 security keys is recommended and setting up both with everything

grim seal
#

that's good for backing up

#

I'll be honest I don't know which one I have lol

#

Work gave me a few

wide totem
#

Damn

daring jay
wide totem
daring jay
#

They do for me

wide totem
#

i have 2fa on

#

it asks for it if you don't have 2fa

jovial island
#

hey guys could someone help me out with a code?

wide totem
#

ngl the first time i viewed that i thought it was a joke

fresh jackal
#

i thought the point of captcha (or part of it) was to prove that the user is a human?

#

how does a security key do this?

gaunt jacinth
#

lol i did the maths an it equates to about 466 years per day (given their data)

#

a pretty generous round up there

hazy laurel
#

Well

#

If people do encounter a captcha every 10 days... and instead of doing the captcha worked for 30 seconds

#

that's $200 per year minimum wage

#

and with a key costing only $45

#

... profit, yeah? lol

native cobalt
#

well, xeon is a workstation kind of cpu, so it really depends on what you're doing

#

like, are you looking for gaming, rendering, streaming?

#

well for gaming, you really don't need that many cores

#

and rendering is a GPU task more often than not

#

so, I say that it might not be for you, since you won't take full advantage of all 72 cores that well

#

hell yeah

viral hare
#

apollo flew on mega hertz lvl cpus

#

just cpus that tick much slower than what normal cpus tick today

native cobalt
#

you mean the apollo missions mate?

viral hare
#

yeah

native cobalt
#

1960s cpu build lmfao

viral hare
#

not like some brand apollo

#

dont think thats a cpu brand if u thought it was

native cobalt
#

the people generally lean to amd because of ryzen and how that shit decimated for like six years now

#

but intel is not bad

viral hare
#

apple silicon gonna be new meta

native cobalt
#

like, pick whatever reaches your standards and is cheaper

viral hare
#

just waiting it out to see the actual stats

native cobalt
#

though, i'll never really buy an apple product

#

unless it's just there and convinent

viral hare
#

i think its actually going to be a true risc chip

native cobalt
#

well, hackintoshes were a thing for a while, though iirc i don't think the new interals is gonna work like that lol

#

¯_(ツ)_/¯

viral hare
#

thought it was about hardware specs rather than os

native cobalt
#

specs wise, I dunno
i don't keep up with apple releases

#

all I know was that intel 11th gen was ass

viral hare
#

i mean intel has been in the chip business for a while and apple just kinda started

hazy laurel
#

Apple :/

blissful coral
#

maybe not, because you forget apple is integrated - so pretty much any benchmark you use is kinda unfair and biased towards apple

#

they do ofc, but it's simply that Apple benchmarks would always outperform windows benchmarks on the same hardware due to the integrated nature

hazy laurel
#

Apple complies with Apple

#

You put Apple software with Apple hardware

blissful coral
#

exactly

#

so in all scenarios, apple's stuff would constantly be more power efficient, and give less performance AND produce less heat. it's as unbeatable as gravity

#

they are not specifically designed; windows is able to run at every Intel, AMD architecture. but the price comes in efficience,heat, performance etc. Apple on the other hand optimize software for each of their chips hence performing better

hazy laurel
#

Does mac have an alternative to FeralInteractive's Gamemode

reef wind
#

hi, i am using digital ocean to host a discord.py bot
so i used tmux to run it after connecting to the droplit
it was working fine i assume
then i wanted to upload new changes to the files
so i deleted the session from tmux and made a new one
but now it only runs some files from the cogs
and completely ignore the others

blissful coral
#

no lol

viral hare
#

unemployment gang lets goo

languid osprey
#

Lol

viral hare
#

bureaucracy go brrrrr

languid osprey
#

Joe loves golang huh

delicate lion
#

joelang 👀

dusky cliff
#

👀

unreal sigil
#

Little did you know, that golang is just a fork of joelang

cerulean panther
#

lol

wide totem
#

👀

hazy laurel
#

GoLang is weird ngl

#

What's it even good for?

wide totem
languid osprey
#

Just use Rust

#

I'm pretty sure golang is used in webdev and and async shit

hazy laurel
wide totem
hazy laurel
#

I think reverse the colors, it may look a bit better

wide totem
#

probably will later

hazy laurel
wide totem
#

i had to learn gimp to do that lmao

languid osprey
hazy laurel
#

GIMP is wack lol

languid osprey
#

Yes

#

Use rust

wide totem
#

and fwiw this is actually a custom image here

wide totem
#

as you can see

hazy laurel
#

welp

#

I am bored

languid osprey
#

Same here

wide totem
#

i edited and removed the stats at the bottom

#

wanna work on a bot? lol

hazy laurel
#

Well

#

you see... no but no

wide totem
#

lmao

woven hornet
#
 for (int i = 1; i <= n; i++) {
                result += jump(n - i);
}```
#

does this give jump(-1) + jump(0) + jump(1) + jump(2) + ... jump(n-1)

#

because the loops stops at i = n+1?

#

since jump(x<0) returns 0
would it be equivalent if i do

for (int i = 0; i < n-1; i++){
  result += jump(i);
}```
dusky cliff
dusky cliff
#

<= n and < n - 1 are not same

#

< n and <= n - 1 are same

#

(for ints)

odd sphinx
#

Ok

woven hornet
odd sphinx
#

thats because u start from 0

#

so it goes 0, 1, 2, 3

dusky cliff
#

yes

odd sphinx
#

which is four numbers

woven hornet
#

oh yea

odd sphinx
#

yea

#

u could start from int i = 1

#

but thats cring

dusky cliff
#

true

woven hornet
#

so if i dont like indexing to start from zero, i want to loop x times i do
for (int i = 1; i <= x; i = i+1)

#

even tho it's not the norm

#

cuz its cringe?

dusky cliff
#

so if i dont like indexing to start from zero,
grumpchib

#

yeah it'll work

odd sphinx
#

well if ur for looping thru an array

#

then u should probably start from 0

dusky cliff
#

if you're looping through an array use a for each loop

odd sphinx
#

its java?

#

i thought u were doing c++ or some

woven hornet
odd sphinx
#

oh ight

dusky cliff
#
for (int x: arr) {
  System.out.println(x);
}
odd sphinx
#

java proably has foreach

#

ye

woven hornet
#

but is there a reason why they introduce a new variable n

#

in the loop

dusky cliff
#

🤔

woven hornet
#

why didnt they just use i

odd sphinx
#

n is probaly the length of the array

dusky cliff
#

n is the no. of times to loop

odd sphinx
#

right

#

yes

woven hornet
#

like here we just want jump(n-1) + jump(n-2) + ... jump(0)

odd sphinx
#

where did u define n

dusky cliff
#

that's what will happen

woven hornet
#

oh i get it

dusky cliff
#

nice

woven hornet
#

yeah n has to be used

#

cuz it's an input

#

thanks!

odd sphinx
#

ye

austere oak
#

On Linux, on the file system, you can’t have any of a file name’s bytes be equal to 0 (\0 character) or 47 (/ character). Does Windows have something similar? Does it not allow any of its byte pairs to be equal to 92 (\ character) ?

dusky cliff
#

not really what you were asking but I remember you can't name a file/folder CON

#

there's also

wide totem
#

fuck lol

#

i just made a pr that's impossible to commit unless

#

i trigger the workflow with a useless commit

#

or a force push

#

smh

hazy laurel
#
"In Win32 namespace: any UTF-16 code unit (case-insensitive) except /\:*"?<>| as well as NUL[7]
In POSIX namespace: any UTF-16 code unit (case-sensitive) except / as well as NUL"
#

As for ext4:

"All bytes except NUL ('\0') and '/' and the special file names "." and ".." which are not forbidden but are always used for a respective special purpose."
#

and btrfs:

"All except '/' and NUL ('\0')"
austere oak
#

Ok, so it can’t?

#

It can’t have a 4 byte character where one of the pairs of bytes is equal to one of those illegal values?

round moss
#

Windows filenames are utf16

round moss
#

So you can have the byte as long as it isn't the character

austere oak
#

So even if a pair of bytes is part of a 4 byte character, if it’s one of those values, it’s not allowed?

hazy laurel
austere oak
#

Ok, but it’s not like ext4 where it’s not allowed even if it’s part of a wider character?

hazy laurel
#

wait... maybe it does

#

what's the character

austere oak
#

This says it does

austere oak
#

It seems like it’s saying Linux does it, not the file system

#

So Windows doesn’t have that happen regardless of what file system you’re using?

hazy laurel
#

ext4 says "any byte but / and \0" basically

#

so any sequence just cannot contain those specific bytes

austere oak
#

Alright

#

Also, in utf-16, does it say the next character is going to be 4 bytes large by setting the first bit of a pair of bytes to 1? Or does it not work like that?

round moss
#

it will have one of the surrogate codepoints, of which there are 2048

austere oak
#

So if the first 10 bits of either pair of bytes are within those ranges, it’s a 32 bit character?

round moss
#

of the first pair of bytes afaik

austere oak
#

you mean because that’s the first pair that gets read?

jovial island
#

hey

#

guys

#

i am unable to use DTS X Ultra in my laptop

#

it's got preinstalled

#

ith my laptop

austere oak
#

Does that mean if you’re looking through the byte pairs of UTF-16 text for a specific 2 byte character, there’s no reason you have to check anything except each individual byte pair?

#

Because it will only be part of a 4 byte character if it has one of those reserved values as its first 10 bits?

near falcon
#

@sturdy relic

sturdy relic
#

@hollow marsh

sturdy relic
#

what does legal mean?

near falcon
#

ok\

sturdy relic
#

do you know?

near falcon
#

it means it isnt illegal

#

:/

sturdy relic
#

right, so what does illegal mean?

hollow marsh
#

Which means?

near falcon
soft quiver
#

recursion!

near falcon
#

hehehe

sturdy relic
#

it means there is a law in your country that governs if the goverment can punish you

near falcon
#

but it cant be about place can it? its youtube tos right?

sturdy relic
#

the government uses prison as a punishment for breaking the law

sturdy relic
near falcon
#

ok

sturdy relic
#

so when you break a law in the US ( lets be US centric since youtube is located in the US)

near falcon
#

mhm

sturdy relic
#

the police can arrest you and the goverment can punish you

#

this is all normal and easy

#

so lets involve a private company into the mix

#

a privat company can not punish you, only the government can

near falcon
#

but they can ip ban

sturdy relic
#

but a private company can limit your rights while you are on their service/place/location

near falcon
#

so you cant watch youtube :((

sturdy relic
#

so what you do before you access youtube is to make a civil (not government) contract with youtube

#

this contract tells you what you must do to use their platform

near falcon
#

is that cookies?

#

or is that info

sturdy relic
#

no, that the ToS you signed

#

The Terms Of Service

near falcon
#

hmm i dont remember

sturdy relic
#

its a private contract you signed and agreed to follow when you started using youtube

near falcon
#

if you go to youtube from a random comp (without logging in) it goes straight to youtube?

near falcon
#

it doesnt?

sturdy relic
#

no

#

it goest to the ToS contract

near falcon
#

huh

#

they must all love youtube then lol

sturdy relic
#

you sign a contract before use

#

so here is the kicker

#

this contract may limit what you can do as a private company they can

near falcon
sturdy relic
#

this is what it looks like if you open youtube in an incognito window

#

ok.. so a private company can an will make their own rules on what is allowed to do

near falcon
#

hmm ok

sturdy relic
#

this does not mean breaking this contract is illegal

#

but, youtube can sue you and take you to court

#

a civil court, not a criminal court

#

now the question of legality

hollow marsh
#

~~We'll get the the criminal side later bloblul ~~

sturdy relic
#

breaking a contract might be, depending on where you live or in the us, what state you live in

#

be illegal

#

even if its a private contract

#

then secondly, streaming music

#

if you stream music without permission, that means you dont have a broadcasting permission, that might be illegal

near falcon
#

mgiht be?

sturdy relic
#

if you break copyright for the music you steal from youtube, by downloading it explicitly, that is illegal

sturdy relic
#

so you can be in a case where you have

near falcon
#

if you only want to download it to listen idk without wifi

#

whcih countries

#

?

sturdy relic
sturdy relic
near falcon
#

hmm im still not close to an answer

near falcon
sturdy relic
near falcon
#

ik yt premium is great but

#

its not free

sturdy relic
#

you might be in a possision erher you break the following

sturdy relic
near falcon
#

ok continue

sturdy relic
#
contract breaking
copyright infringement
broadcasting without permission
#

this are the things the government can punish you for

near falcon
#

let me guess all of them are 1000 lines?

sturdy relic
#

i dont remember the exact number, but around 10-15 years in prison i think is the total range

hollow marsh
#

Generally alot more but thats up to you to be aware of

sturdy relic
#

then youtube can civil sue you, and the price for this is rediculus, we are talking 10-50 million dollars easily

near falcon
#

ik its not broadcasting without permission or copyright infringement so tell me the first one

hollow marsh
#

Well it is technically

near falcon
#

hm? why though

#

im not broadcasting

sturdy relic
near falcon
#

copyright?

#

broo

sturdy relic
near falcon
#

but im literally only to watch it offline

#

like

hollow marsh
#

If you share that audio with anyone other than yourself you're technically broadcasting / redistributing without permission

sturdy relic
#

it does not matter what your intent is

near falcon
sturdy relic
#

your intent not to "harm anyone" is not the point here.

sturdy relic
near falcon
#

so basically its illegal?

sturdy relic
#

thats its own chapter, and not what your asking about

near falcon
#

if i watch it offline

#

/listen

sturdy relic
#

if you want to watch something from youtube offline, you have to by premium

#

if you copy the content from their site, your breaking the copyright, and that is illeagal

near falcon
hollow marsh
#

and / or you have to directly buy off the rightholder

dusky cliff
#

if you made a video on content that is copyrighted, commenting on it, criticising it, that is fair use and legal

sturdy relic
sturdy relic
near falcon
hollow marsh
#

Fair use is much much more complicated than people think

sturdy relic
#

lets not mix in fair use here

dusky cliff
#

aight

sturdy relic
#

fair use is a way to use copyrighted material without asking for permission, its way beyond the scope of this conversation

near falcon
#

is listening to it offline in fair use?

sturdy relic
near falcon
#

ok

sturdy relic
#

your focusing on the wrong thing @near falcon

near falcon
#

whats that

sturdy relic
#

its not about listing to music offline or online, its about if you own the right to do so or not

near falcon
#

so yes or no

sturdy relic
#

and you do not have the right to do so without paying for this right on youtbe

sturdy relic
# near falcon so no

correct, it breaks the contract you have with youtube and as we have discussed, might break the law as well

near falcon
#

without paying its illegal? period?
ok so things like pytube and discord bot Rythm

#

and does the same go for adblocker?

sturdy relic
#

you are asking a loaded question now

near falcon
#

ok first pytube

#

how does it exist

sturdy relic
#

pytube is not allowed

#

allowed to use that is

near falcon
#

so it can exist

sturdy relic
#

let me make a analogy

hollow marsh
#

Pytube is TOS breaking and generally depending on the video / audio can be illegal.
Discord Bots break ToS, and are pretty much always Illegal in terms of copyright

sturdy relic
#

lets say i own a house

near falcon
#

why dont YouTube sue them

sturdy relic
near falcon
sturdy relic
#

and they have lost.. more on that later

near falcon
sturdy relic
#

ok.. back to my house

near falcon
#

ok

odd sphinx
#

yes

sturdy relic
#

i loced the door and i lost my key

#

so i go and buy a tool to open the door.

#

a lockpicking tool

#

i open the door an everything is well

near falcon
#

but its your house you can destroy it all you want?

sturdy relic
#

now, is the lockpicking tool illegal?

near falcon
#

but its your house?

sturdy relic
#

not asking about the house

#

is the tool itself illegal?

near falcon
#

its illegal if u use it for other houses?

sturdy relic
#

the tool itself is not, but yes, if i use it to open another house then that is a crime

near falcon
#

but since its your house

sturdy relic
#

youtube-dl is a tool

near falcon
#

wtf

sturdy relic
#

you dont own anything on youtube, so you are not allowed to use it to get something on youtube

near falcon
#

what do u use it for then

sturdy relic
#

because they do not care about rules and the law

#

same with people that does this to youtube

near falcon
#

well lockpicks can be used to unlock your house so thats legal thats what lockpicks r for

#

but what is pytube for?

#

downloading your own videos?

#

why cant you just download it on youtube

#

dont tell me youtube disallows downloading your own video

near falcon
#

wait

hollow marsh
#

From their platform yes they dont allow that

odd sphinx
#

theres a button for downloading ur own videos i think

near falcon
#

bruh

hollow marsh
#

because you're scraping their services

near falcon
#

but then pytube is still ilegal?

sturdy relic
#

you are only allowed to download them using their tools

sturdy relic
#

the tool itself is not ilegal

near falcon
#

in youtube

odd sphinx
#

usage of it is illegal

#

yes?

sturdy relic
odd sphinx
sturdy relic
near falcon
#

so using pytube is ilegal

odd sphinx
#

mkbhd showed us that u can download ur own videos in a lower resolution

sturdy relic
hollow marsh
#

the tool is not illegal

near falcon
#

things?

hollow marsh
#

what you do with it can be illegal

near falcon
#

so watching it is illegal jsut bec its not on the platform?

sturdy relic
near falcon
#

is that it?

hollow marsh
#

If you shoot someone with a gun do you blame the gun or the person operating the gun

near falcon
#

but youtube allows downloading with premium in which case you can watch on computer

#

which is not their plaform

hollow marsh
#

yes

sturdy relic
near falcon
#

but how is that legal

sturdy relic
hollow marsh
#

you pay youtube for the rights to download the content temporarily

near falcon
#

sorry lol'

sturdy relic
#

so.. lets do only this thing

near falcon
sturdy relic
#

when you pay for youtube preminum, you have access to download video and music to your device using the youtube app (an no other)

#

and it will be deleted after 30 days

near falcon
#

how does it get deleted

sturdy relic
hollow marsh
#

App controls it

sturdy relic
#

it is encrypted and you cannot access it without the youtube app

near falcon
sturdy relic
near falcon
#

but if you download it to your device they cant delete it?

#

its only to app?

sturdy relic
#

you cant access the music or video that you download

#

only trough the app

near falcon
#

ah

hollow marsh
near falcon
#

does the app work offline

sturdy relic
hollow marsh
#

yes because the app is downloaded on your computer

near falcon
#

cant you break it then? lmao

hollow marsh
#

you can, but thats considerably harder than people think

sturdy relic
near falcon
#

so what you need a year

#

you can connect to the internet and download it again

hollow marsh
#

The encryption changes every 30 days lol

near falcon
#

so if u change the system time to like 10 days back how does it know

sturdy relic
near falcon
#

that you still have only 30

radiant socket
#

because it doesn't use your system time

near falcon
#

which time does it use

#

its offline

hollow marsh
#

It uses the time wrapped in the cipher

sturdy relic
near falcon
#

yes but for 30 days its offline how does it know its 30 days without using the system time?

#

if you fully turn off the computer

#

does it freeze?

#

i dont understand

hollow marsh
#

well if you fully turn off your computer

near falcon
#

the time must be saved somewhere then

hollow marsh
#

you cant use it

sturdy relic
sturdy relic
radiant socket
#

your motherboard has a battery to maintain the time

near falcon
#

and the file? its encrypted?

hollow marsh
#

yes...

sturdy relic
near falcon
#

you cant decrypt it?

sturdy relic
hollow marsh
#

sure you can

near falcon
#

??

sturdy relic
#

well

hollow marsh
#

but you have 30 days to do so

#

and also brute forcing is pretty much impossible

sturdy relic
#

yeah.. 30 days.. but y ou need like 100 years of computer time

hollow marsh
#

so its 30 days to essentially disassemble the app and work out how it works before it changes again :P

near falcon
#

so if u decrypt once and make it change the time then you have it forever offline?

hollow marsh
#

no

near falcon
#

how then

near falcon
hollow marsh
#

so its 30 days to essentially disassemble the app and work out how it works before it changes again :P
Once you know how the encryption works you have to decrypt it and create a copy without copying the metadata that can let the app track for copies

sturdy relic
#

so if you buy 300_000 RTX 3090, you can brute force it. but then you have spend a gazzilion dollars for breaking one 3 minute long song you can buy online for 3 USD

#

im a bit facetious with my numbers here..

near falcon
#

hm

hollow marsh
#

If the system was simple, people would already be doing it mmLol

near falcon
#

but then if you break it does that mean you can use it offline for more than 30 days?

#

y/n

hollow marsh
#

yes if you handle it well enough

sturdy relic
hollow marsh
#

but I dont think anyone really has the skill to do that in 30 days

near falcon
#

wait but after 30 days pass and your still ofline

sturdy relic
near falcon
#

the video doesnt work but

#

the file you can still brute force?

#

no?

sturdy relic
sturdy relic
#

you can brute force break any encryption given enough time

#

youtube and google tends to use cyphers that has a time-frame of something like a billion years

near falcon
#

anyways im too poor for premium anyways

#

tell me if pytube is ilegal or not

#

and about adblockers

near falcon
sturdy relic
near falcon
#

so its ilegal?

odd sphinx
#

lol

sturdy relic
near falcon
lime drum
near falcon
#

"i made it so noone can use it"

lime drum
#

you just revoke your right to use the service

sturdy relic
sturdy relic
lime drum
#

yeah 👍

sturdy relic
#

people do bad things every day

near falcon
sturdy relic
#

but here on python discord we do not

near falcon
#

so is adblocker the same?

hollow marsh
near falcon
#

i mean stack overflow does answer qs about pytube

#

which arent deleted yet

round moss
#

a site's ToS could forbid adblockers

sturdy relic
near falcon
#

you prob cant bec premium does it

#

but then again theres an ad blocker literally for youtube that millions r using

sturdy relic
#

same with Reddit

lime drum
#

then again "adblocker" is a rather broad definition

near falcon
sturdy relic
near falcon
sturdy relic
near falcon
#

ok sorry

round moss
#

yeah, breaking ToS is a pretty common thing to do, even by accident sometimes. We just don't allow such discussion, it doesn't mean you somehow are obligated to uphold ToS out of some moral obligation.

lime drum
#

breaking a contract is not illegal

near falcon
#

so its not illegal but they can ban u from site?

sturdy relic
#

legal or not has to do if the government can put you in jail

lime drum
#

ignoring the consequences of said broken contract is in some territories

sturdy relic
near falcon
#

so basically downloading videos is completly legal

sturdy relic
sturdy relic
lime drum
#

look at the second sentence i said

near falcon
sturdy relic
round moss
#

no one has been sued for using ytdl yet, so we don't know if its legal pretty much

sturdy relic
#

if you download something you dont own the rights to, your breaking copyright

near falcon
#

so your saying if the government in your country

round moss
#

that's for the courts to decide

near falcon
#

thinks breaking yotube tos is illegal

#

then its illegal in that country

round moss
#

yes

near falcon
#

im still confused lol

lime drum
#

but thats not the case in the countries i know

sturdy relic
near falcon
#

if u download music will u be ip banned?

sturdy relic
near falcon
#

yes or no

#

why

#

it breaks tos though?

round moss
#

youtube doesn't really enforce its tos

lime drum
#

but its at a scale where youtube doesnt care

round moss
#

unless in really extreme cases

near falcon
#

ban you

lime drum
#

however if you make a service and make money from it they're probably gonna sue you

near falcon
sturdy relic
#

should the police arrest everyone that breaks a minor thing? that would not work

#

its the same online

near falcon
#

no but ban from site

round moss
#

if I ran a bot that would try to download all youtube videos, I would get banned

sturdy relic
#

but you as the user should take care to follow the rules

near falcon
#

some unlisted

round moss
#

if someone tried to download a single video, nothing would happen

near falcon
#

will they ban you

round moss
#

I don't know

#

they have some policy for this

near falcon
#

wait brb

#

i need to eat

#

ok conversation finished

#

il ping you eivl

sturdy relic
#

sure

near falcon
#

@sturdy relic 2 qs
1 if your a content creator who doesnt have premium, and you lost the footage of your old videos, you cant download your old videos from youtube without breaking tos?
2 if for example someone posted music in youtube, and they have a link in the description where you can download it (for free or for money) is that legal?

somber belfry
#
  1. If they have the rights to sell/give away that music, then yes I guess
echo fern
#

not sure what one needs to realistically do to actually get banned from youtube for things like that

#

I suspect that the reason their TOS prohibits downloading videos is so they can't be held accountable for redistributing, say, copyrighted content

hazy laurel
#

Welp... I think I might have to learn HTML/CSS/JS

#

Why am I really not looking forward to this

wide totem
#

😳

hazy laurel
#

Oh God

daring jay
#

That chart is outdated

#

Most people don't use jQuery these days

hazy laurel
#

it goes deeper D:

wide totem
#

Lmao

daring jay
#

That's all pretty simple

hazy laurel
#

:faint:

wide totem
#

Why do you need to learn css js and html?

hazy laurel
#

idk where to learn any of this

wide totem
#

What are you making?

hazy laurel
#

idk. I wanted a project

#

so... website

wide totem
#

Ah

daring jay
hazy laurel
#

:T

daring jay
#

you can ignore half of the top chart

#

And the rest is just facts

hazy laurel
#

Okay... so where do I learn any of this

daring jay
#

Like TypeScript > Flow

#

And Yarn > npm

#

And you can use whatever framework you want if you even want one

hazy laurel
daring jay
#

I'm referring to frontend framework

hazy laurel
#

Right... no clue

daring jay
#

But if you want to go all vanilla, you can

hazy laurel
#

React/Vue/Angular

#

what's what I've heard of

viral hare
#

yeah thats basically them

daring jay
#

Angular is known to have a steep learning curve

hazy laurel
#

I assume I should learn the basics first, though... right?

daring jay
#

Both React and Vue have huge communities, and both are good

daring jay
#

If this is your first app, you should go vanilla imo

hazy laurel
#

I want to learn React/Vue before I move on to Yew

#

I've gotta be a Rust purist eventually

daring jay
hazy laurel
daring jay
#

Oh nice

hazy laurel
#

lol

viral hare
#

oh wow wasam

daring jay
#

So if you're doing React/Vue, the Vue docs are great, and there are a lot of good React tutorials

#

You can choose whichever you want

hazy laurel
#

So... what should I learn first

daring jay
#

It's up to you really

hazy laurel
#

I assume HTML/CSS then JS/TS?

daring jay
#

Yeah, probably

viral hare
#

tbh ive never properly learned html/css

daring jay
#

You could make a simple frontend with HTML/CSS

viral hare
#

ive just googled the stuff that i didnt know as i went

hazy laurel
#

HTML and CSS I imagine take like... hours to "learn" but a while to actually get looking good

daring jay
#

Google is how to learn those

hazy laurel
#

hmm

daring jay
#

Just use the MDN docs as a reference

hazy laurel
#

HTML I know like the basics of

#

CSS... I can probably remember enough of

sinful sun
#

CSS feels like you need to use it in proper projects for you to get good at it

daring jay
hazy laurel
#

not that I want to

#

like...

#

I've done some stuff before

#

it's ugly haha

#

oh and working out different resolutions and stuff... I forgot the name for it

#

Responsive?

sudden cloud
#

lol it is

cerulean panther
#

It's still a thing

hazy laurel
#

I think I have something related to Bootstrap from GitHub Education

narrow finch
#

do you guys trust in iq tests

round moss
#

they measure a thing, how useful that thing is is debatable

narrow finch
#

I don't think they're very accurate but I do think iq correlates with intelligence levels

round moss
#

they measure a specific kind of intelligence

#

generally pattern recongnition

#

and while it is noticable when someone is good at pattern recognition, it isn't exactly a useful skill

narrow finch
#

for some things like chess it is quite useful

round moss
#

yeah, IG it would help with chess

narrow finch
#

It could also increase you ability of learning and mastering new skills

round moss
#

though my friend scored really high on IQ tests and isn't all that great at chess

#

though that is mostly lack of practice

#

I don't think it has much to do with learning

#

it makes it easier to learn things by relating them to existing knowledge, but that is sometimes not a good learning strategy

narrow finch
#

Maybe not the best one but a good one anyways

#

It's a decent ability to have

round moss
#

yeah, but it is more of a neat quirk than something that heavily impact your life

narrow finch
#

exactly. like a small privilege

#

But the best results are caused by persistence

jovial island
#

.topic

rustic harborBOT
#
**What is your favorite media genre?**

Suggest more topics here!

jovial island
#

Selling poeple

jovial island
#

is there an easier way to write this? 😦

#

if c1 < 1 or c2 < 1 or c3 < 1 or c4 < 1 or c5 < 1 or c6 < 1 or c7 < 1 or c8 < 1 or c9 < 1 or c10 < 1 or c11 < 1 or c12 < 1 or c13 < 1 or c14 < 1 or c15 < 1 or c16 < 1 or c17 < 1 or c18 < 1 or c19 < 1 or c20 < 1 or c21 < 1 or c22 < 1 or c23 < 1 or c24 < 1 or c25 < 1 or c26 < 1 or c27 < 1 or c28 < 1 or c29 < 1 or c30 < 1 or c31 < 1 or c32 < 1 or c33 < 1 or c34 < 1 or c35 < 1 or c36 < 1 or c37 < 1 or c38 < 1 or c39 < 1 or c40 < 1 or c41 < 1 or c42 < 1 or c43 < 1 or c44 < 1 or c45 < 1 or c46 < 1

viral hare
#

i would generalize the solution

#

ie have them in a list and do a loop compare

#

or if u like functional u can do a fold

wide totem
#

man python sucks you can't code dynamic variable names

#

where you store the name of the variable in another variable

shrewd lance
#

you can actually

dusky cliff
#

globals() and locals() amirite

shrewd lance
#

Easy with eval or exec, but in case that feels like cheating, globals, locals, or even __dict__

#

Though IIRC you can't modify locals, since it freezes the state into a dict

#

You can modify that dict, but the locals themselves would stay unaffected

round moss
#

you more or less can't create new locals after a function is defined

shrewd lance
#

Yeah, you could in 2 apparently, but when exec became a regular function, this stopped being a thing

round moss
#

there is a capi function to refresh locals

#

but it can't create new ones with it afaik

wide totem
#

hmmmmmm

shrewd lance
#

s e c u r i t y

wide totem
#

eh

#

its just a pypi token

steel eagle
#

Only just

limber pollen
wide totem
#

My terminal config is messed up atm

grim seal
#

the heck lol

wide totem
#

Lol

#

Hello joe

#

Github workflows and actions are fun

#

Although how does #dev-log turn this into one message

daring jay
wide totem
#

So that only runs once for all successful checks?

grim seal
#

@wide totem what database does your modmail clone use

wide totem
#

It's not a clone of any bot

#

It's inspired by kyb3r's modmail bot, but not a clone at all

grim seal
#

lol

#

okay, what database does your modmail bot use

lime drum
#

lul

wide totem
#

Was going to use mongodb

#

But haven't made any commits on that yet

#

Probably going to use mongodb tbh

grim seal
wide totem
#

Why, what are your thoughts

grim seal
#

postgres always wins

wide totem
#

The largest appeal for me is mongodb atlas lmao

grim seal
#

data? postgres. cronjobs? postgres can do it. locks? postgres can do it. timeseries? (with help) postgres can do it

wide totem
#

if I could find free postgre hosting I would do it lmao

viral hare
#

welp cockroachdb which is a sql db has a free tier like mongo atlas

grim seal
#

heroku

wide totem
#

Looked at both of those

viral hare
#

i used it in a hackathon once and i think its basically using postgress drivers

grim seal
#

aws prob has a psql intance low priced/free, can't remember

viral hare
#

if u use orm i doubt u can tell a big difference

wide totem
#

heroku postgre
cockroachdb
One of them limits you to 10k rows and the other to 20mb

lime drum
wide totem
#

Mongodb atlas limits to 500mb with no collection or document limit

#

And of the mongodb code I wrote already

grim seal
#

scylla is good for when you need scylla lol

wide totem
#

I am abstracting the db away from the bot so every db interaction will be through db client methods

viral hare
#

like mongodb has a document limit size of 16mb. u usually dont hit that limit unless ur storing an image

wide totem
#

Ye

lime drum
wide totem
#

And cockroachdb limits to 10k rows total

#

Whereas mongodb atlas limits to 500mb as the only limitation

#

If someone can find free hosting that's as easy as mongodb atlas I might switch lmao

viral hare
#

i doubt ur gonna hit 10k rows with a toy application. but if ur wanting to be serious u might as well invest in a paid service

wide totem
#

:blink:

#

What do you mean toy application?

viral hare
#

like a small application that ur not gonna have much users

wide totem
#

@grim seal out of curiosity can you check how large the database is for just this modmail

viral hare
#

and u just made just for learning purposes or just for fun

grim seal
#

you don't need to wtf aru

#

uhh

#

i mean

#

i can, but I'm not going to

wide totem
#

:(

grim seal
#

keys in other room

wide totem
#

Ah

lime drum
#

lol

wide totem
#

Maybe later

#

Would be helpful to know

grim seal
#

i think it's a few thousand conversastions or smth

lime drum
wide totem
#

Because depending on the mb size

grim seal
wide totem
#

20mb limit might not suck.

#

I bet it's much more than that but ye

lime drum
viral hare
#

like i would just stick with a free tier and once u hit that need for scalability start looking into options

lime drum
#

just selfhost

grim seal
#

5,861 threads total here

#

and that is uhhh

viral hare
#

like i think at the moment ur application doesnt have too much issues with a free tier

grim seal
#

557MB

viral hare
#

but like once u start getting significant amount of entries than maybe looking for alternate options would be a good idea

wide totem
#

@lime drum @viral hare so basically modmail isn't made to be hosted by one person. The actual thing of modmail is for other people to host it for their own server. To make it easily adoptable, the set up process has to be easy. That means trying to make sure the bot can be run completely free.

grim seal
#

that's 557MB live on disk, backup significantly smaller

wide totem
#

Every person has to run modmail for themselves.

viral hare
#

so ur saying every person tht uses modmail is gonna share the same database

#

that doesnt seem too right

grim seal
#

no no

lime drum
wide totem
#

The kyb3r modmail which inspired my project has a setup guide that can run on heroku.

grim seal
wide totem
#

^ and cloudbased

daring jay