#ot2-the-original-pubsta

652 messages ยท Page 78 of 1

tranquil ridge
#

i dont like this one

jovial island
#

just remembered the legend from ur name ;-;

tranquil ridge
somber belfry
#

are you on xubuntu?

tranquil ridge
#

yea

pliant trench
#
  - awesome-terminal-fonts
  - noto-fonts-cjk``` one of these should work ig
#

the last one is huge tho

somber belfry
#

try this

pliant trench
#
  - bdf-unifont
  - ttf-unifont
  - siji
  - noto-fonts-emoji
  - ttf-joypixels
  - ttf-symbola``` @tranquil ridge u can install these too lol
tranquil ridge
#

o

pliant trench
#

woah, Ive installed lots of fonts

tranquil ridge
#

i have restarted the applications

somber belfry
#

did you do fc-cache -fv?

tranquil ridge
#

yes

hazy laurel
pliant trench
sterile nymph
#

love you

autumn hornet
#

where?

#

ah

lusty brook
#

this OT names sounds like staff "accidentally" giving each other infractions, someone must've done one of those at the wrong time and wrong person and now their mistake lives in history ๐Ÿ˜‰

wheat rock
rotund python
#

Hmm. Super good and important book. Downloading online or better getting real world copy?

#

better getting paper copy I think.

#

it will make sure I'll be thorough

rotund python
#

uh. got super excited a got more books than thought

#

a pack of Robert Martin books (Clean Code, Clean Architecture, Clean Coder, Agile)
Eric Evans for DDD
and Martin Kleppmann for Designing Data Intensive Applications (SRE)

exotic hound
#

i hav question

#

what is the purpose of not allowing concatenating string and int (or other types)?
e.g. "number is " + 8 + " bool is" + True

round moss
#

it could easily lead to accidents

#

it is quite common in JS, where this is possible and common to see results like [Object object]true

#

which is a lot less helpful than an error

#

and well, you have fstrings or .format

steel eagle
#

Or %s :^)

#

Does that still work, actually?

shrewd lance
#

It does

#

!e py print('Outdated %s' % 'style')

clever salmonBOT
#

@shrewd lance :white_check_mark: Your eval job has completed with return code 0.

Outdated style
dusky cliff
#

๐Ÿ˜ฉ

sharp spoke
#
#include<conio.h>
void main(){
  char a = "y";
  printf("no other wa%s",a);
}
sharp spoke
#

no more ๐Ÿ‘€

pliant trench
#

yes more

#

char a accepts only a char, not a whole string

sharp spoke
#

oh god

#

easy fix

hazy laurel
#

Yes, it's outdated

#

f-strings are the norm

#

.format() strings are still useful, though

drifting venture
#

I wouldn't like... redo an entire codebase over it

#

I'd probably stick with what was used in that project

#

But use fstrings if starting from scratch

lusty brook
#

pyupgrade could probably be used to switch over a bunch of older syntax, etc.

drifting venture
#

Oh true

wide totem
#

Often a logging method which is logging multiple parameters

hazy laurel
#

.format is still hard to find uses for

#

I mean beyond "template strings", I don't think there's any use

jovial island
#

Yeah

wheat rock
#

wow too dead

rich cargo
#

anyone likes mulberry? I just take 2 because I can't reach the other mulberries because the tree is too high ๐Ÿ˜…

autumn hornet
#

Do you play piano or do you just have dexterous fingers genetically?

novel wharf
#

I like mulberry's.

#

mulberry's = blackberries right?

#

oh. then i was wrong xd

wicked hollow
#

Maybe you're thinking of marionberries - those are a type of blackberry

rich cargo
novel wharf
#

I wish I could find some in St. Louis. My best bet is the international food store nearby

rich cargo
#

It's sweet. But I ever bought mulberry from my mom's friend, the color is black but the taste is sour like the red one. So my mom decides to plant mulberry tree. And it taste sweet.

rich cargo
autumn hornet
#

Piano fingers are a curious adaptation.

sharp spoke
autumn hornet
#

Look at their fingers - held straight and slightly elongated

sharp spoke
#

ahh

#

do not search piano fingers on bing ever

autumn hornet
#

vibin in sherlock mode

#

I...

sharp spoke
#

do not

#

i mean it

#

its not sumn i want on my search history

#

:claw:

autumn hornet
#

bing is loading

sharp spoke
#

why do u want to search it :/

novel wharf
rich cargo
#

How it feels like when you play it? Coz my keyboard isn't the expensive one ๐Ÿ˜…

novel wharf
#

The reason why i got the synth was because i wanted to learn how to play it

rich cargo
#

Learning music is soul healing ๐Ÿ™‚

novel wharf
#

I'm borrowing my neighbors guitar and lost interest in that too mmCry

rich cargo
#

Guitar always hurts my finger, but it makes me addicted coz of the sound

novel wharf
rich cargo
#

๐Ÿ‘

echo flower
#

im not touching a guitar hahaCouldntBeMe

unreal sigil
#

I tried to play for a lil at some point, it'd be something you'd need to build up a tolerance to because it was not great on the fingers

rich cargo
#

yup

rich cargo
wheat rock
#

๐ŸŽน geng

pastel nest
#

maybe i could eat blades of grass~

#

damn, this song is quite wonderful

wild compass
#

im so busy because of school now :(

hollow heart
#

@jovial island sorry~ let me know if you figure it out!

jovial island
#

Nah, I gave up and just copied the phonetics to all my files

hollow heart
#

PES_Cry nuuuuu

magic atlas
#

It seems like it should be simple to solve.

jovial island
#

Aight

wide totem
#

ASYNCIO LOCK IS THE SOLUTION

#

okay thanks excuse me just needed to say that

quasi spire
#

where can I post my memes?

hollow heart
#

unfortunately not on this server

quasi spire
#

bruh

hollow heart
#

ikr? terrible.

clever salmonBOT
jovial island
#

cani put m bals ins yoru jaw

#

s

jovial island
echo flower
autumn hornet
jovial island
pliant trench
wheat rock
#

very fast response

#

i really appreciate

#

๐Ÿ‘Œ

pliant trench
#

lol it was yday ik

elfin vine
#

Well it was pretty much just the same but I was going to cythonize it. Also it had slots, which asyncio's doesn't ;-;

thorny lark
#

Finally got basic stackoverflow privileges dancin

safe depot
#

hi

real forum
#

Hello.

pliant trench
#

hi

tranquil ridge
#

hi

pliant trench
#

hi

rigid echo
#

hi

steel eagle
#

Python with semicolons

small pivot
#

Already exists.

#

Though... It will cause a lot of rage and confusion I imagine ๐Ÿ˜›

lofty loom
#

What if yes

shadow elk
#

]e

public=static=void=lambda x:x;

@public
@static
@void
def main():
    print("Hello, world!");

main();
main snowBOT
#

@shadow elk :white_check_mark: Your eval job has completed with return code 0.

Hello, world!
odd sphinx
#

bruh

echo fern
shadow elk
#
  1. public already works, all functions are public by default
  2. static okay, I will fix that
  3. void already works, but maybe I can make it ensure that the function returns None
echo fern
#
static = staticmethod
def void(f):
    def wrapper(*args,**kwargs):
        f(*args, **kwargs)
        return None
    return wrapper
shadow elk
#

yeah, that

echo fern
#

private would be the hard one

wide totem
#

is that only something you can do in 3.10?

echo fern
#

what is?

shadow elk
#

no, I'm just flexing the eval bot

elfin vine
echo fern
odd sphinx
#

nothing is returned

echo fern
#

you might be thinking of C's void* pointers, which do mean "a pointer to something, idk"

shadow elk
#

]e

public=lambda x:x;
exec("{0}={0}method".format("static"));
void=lambda f:lambda*a,**k:[f(*a,**k)]and None;
new=lambda c:c();

class Enterprise:
    @public
    @static
    @void
    def main():
        print("Hello, world!");

enterprise: Enterprise = new(Enterprise);
enterprise.main();
main snowBOT
#

@shadow elk :white_check_mark: Your eval job has completed with return code 0.

Hello, world!
elfin vine
#

@echo fern what's the difference?

shadow elk
odd sphinx
#

ye

shadow elk
#

well, there isn't really an equivalent in Python

echo fern
#

no idea about the answer to that

shadow elk
#

void return type means "doesn't return anything"

wide totem
#

Y'all, which folder structure?

a: /Plugins/name/name.py
b: /name/name.py

As a github repository, this would be the following:

a: onerandomusername/repo_name -> Plugins/name/name.py
b: onerandomusername/repo_name -> name/name.py

I personally like ||a||

#

going with a

sterile nymph
#

I'm not feeling very well, so I will

#

maybe it can serve to a purpose

hazy laurel
#

What will serve a purpose \๐Ÿค”

elfin vine
#

You

hazy laurel
#

uh oh

jovial island
#

@jovial island Please don't send copypastas

#

No

slate leaf
#

?

river belfry
lunar basin
#

well, not really magic, but it's funny to think that way

echo fern
#

why did C not think of Rust's slice type

lunar basin
#

C was made like 40 years earlier

echo fern
#

tons of C functions accept a pointer and a length as a result

craggy coral
#

Hey Off-topic people, if you want YT Premium (you need a payment method attached) here's the code someone gave me: VH7J3LPEFDQV

tiny sorrel
#

!projects

clever salmonBOT
#

Kindling Projects

The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

jade bolt
#

!e raise SyntaxError("Expected Error")

clever salmonBOT
#

@jade bolt :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | SyntaxError: Expected Error
jovial island
#

!e raise SyntaxError(SyntaxError)

clever salmonBOT
#

@jovial island :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | SyntaxError: <class 'SyntaxError'>
quasi spire
#

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa I need help with discord

jovial island
#

Uh

#

Ok

wheat rock
#

it is a rust thingy

#
io::stdin()
    .readline(&mut var)
    .expect("Syntax error");
#

kekew

odd sphinx
#

io::*

wheat rock
#

lol ok

rotund python
#

if only I had a bit more free time, and a bit less long queue of technologies to learn, all of which needed being learned yesterday

#

I think learning more monitoring/telemetry tools, plus event systems architecture and tools for that, will be more advantageous than learning another language
plus I need to learn more in the terms of clean code concepts, DDD awaits me, as well as 6 other books

#

plus wishing to go for k8s after that

#

thinking that better to learn first things for which I have no alternatives.

#

Go is more or less alternative for Python, so it will wait until I learn all stuff I don't have alternatives for

#

like Node service discovery tools, Cloud infrastructure tools

#

k8s is made in Go though.

#

So it could bring me a bit more intuitive experience if I 'll know smth from Go when I will dive into k8s

#

at least knowing Python helped to deal with Ansible

odd sphinx
#

gus

#

guys*

#

slight problem

#

i have android 11

#

and i cant see the contents of the Android/data folder

#

even with view hidden files turned on

#

it doesnt show in samsungs my files app

odd sphinx
slate leaf
#

What is your usb sharing options on your phone?

odd sphinx
#

uh

slate leaf
#

Do you have the file transfer enabled?

odd sphinx
#

i am not connected to anything

slate leaf
#

Ok, nevermind. I though this was trying to view files from a connected device

odd sphinx
#

if i do connect to my pc, my pc can see the Android/data files

#

but my phone cant !?!?!

slate leaf
#

Sounds like a good time to restart your phone

odd sphinx
#

nah this is an android 11 issue

#

ive googled it

odd sphinx
#

ok i fixdd it

#

the solution is a joke

#

u have to download this

#

which has more than a million downloads

#

and all it does

#

is open the default android file manager

#

the app itself requires no file permissions

#

lmao

hazy laurel
#

um

#

1 million isn't a lot

#

comparatively, I mean

#

You could likely just use Google Files

odd sphinx
#

i tried that

#

still doesnt work

#

lolz

hazy laurel
#

uh

#

I tried on my phone

odd sphinx
#

does it have android 11

hazy laurel
#

Yes

#

Chonky image

odd sphinx
#

yea

#

hm

#

what file manager did u use?

hazy laurel
#

"Files by Google"

#

tbh it might just be a Samsung thing

odd sphinx
#

maybe

#

it even says on the data folder

#

1 hour ago

#

but when i open it

hazy laurel
#

although, there's nothing in my data folder

odd sphinx
#

empty

odd sphinx
#

bruh

#

THATS WHAT I WAS SAYIN

#

the data folder will be there

hazy laurel
#

you said you couldn't SEE the data folder

odd sphinx
#

but there should defintely be folders in there

odd sphinx
#

ill edit tht

hazy laurel
#

oh

#

Supposedly it was an Android 11 "design choice"

#

to prohibit apps from accessing it

odd sphinx
#

yea

#

so the apps made by samsung and google cant access it

#

but the defalt file manager in android can

#

very nice

hazy laurel
#

wdym

#

the built-in can't for me either

odd sphinx
#

huh

#

which one are u talkin abt

hazy laurel
#

wdym

#

wait

#

Why do I have 3 file managers

odd sphinx
#

lmao

#

multitasking SunglassesFluent

hazy laurel
#

I have

#

"File Manager", "Files", and "Files"

#

but the true built-in one actually shows the folders

odd sphinx
#

yes

#

this one

#

is what ur looking for

hazy laurel
#

yep that one

odd sphinx
#

lol

#

yea

hazy laurel
odd sphinx
#

yep

hazy laurel
#

lol you can tell where my camera is

#

because of the gap

odd sphinx
#

lol

#

them blocking this folder gives me apple vibes

#

but ig its for "security"

hazy laurel
#

yes

#

I say it's valid tbh

#

as long as you have a couple methods of accessing it, you're fine

odd sphinx
#

yea

#

oh man

#

what a fucking joke

hazy laurel
#

lol

#

Can't blame them

odd sphinx
#

lolz

hazy laurel
#

Google Files is kind of nice

odd sphinx
#

yea

#

all of them are good

hazy laurel
#

lmao I actually have two built-in file managers

odd sphinx
#

ill use them when i dont need Android/data

hazy laurel
#

what the heck

odd sphinx
#

lol

hazy laurel
#

I can't even uninstall either of them

#

One must be from Android and the other from OnePlus

odd sphinx
#

yea

hazy laurel
#

OnePlus is nice btw

#

much prefer it over Samsung

odd sphinx
#

double power SunglassesFluent

hazy laurel
#

oh for sure

odd sphinx
#

bro if android 12 lets me customize my accent colour

#

and have it show for all system apps

#

im sold

hazy laurel
#

isn't that already a thing

odd sphinx
#

well not for fukin samsung

#

one ui moment

#

one ui is still damn good doe

hazy laurel
#

I mean like

#

I thought Samsung had "global enough" themes

#

it's just that like no apps support them

odd sphinx
#

yea

#

lol

mental idol
#

!pypi diagrams

clever salmonBOT
mental idol
#

This is pretty sick!

#

Diagrams as code? Yes please

hazy laurel
#

I don't get it

#

is it just like

#

you make diagrams out of code?

sinful sun
#

just use scratch? /s

hazy laurel
#

lmao

mental idol
#

I enjoy the fact that with my infrastructure, my diagrams can now live in the repo with version control. This pleases me.

#

Now if someone wants to create a script that reads my terraform, code, and just draws the map itself.... rooHack

cedar leaf
mental idol
#

rooBlank This is my unsurprised face

hazy laurel
#

I don't know what anyone was expecting lol

jovial island
#

This channel name just seems like ```py
expect AProblem

hazy laurel
#

this is when you

raise FixError
errant dove
#

@jovial island do you have knowledge in accounting ?

jovial island
#

Kind of i deal with ledgers and tax documents mostly

errant dove
#

Could I send you some doubt on dm? I was studying and don't understand why some steps were made

jovial island
#

Sure idk how much help ill be but ill see if i can help

jovial island
hazy laurel
#

lol

grim seal
#

your code, their servers

#

lol, no it's not, it's in the name!

#

from your perspective, there is no server

#

not a worker, but serverless yea

#

something like azure container instances

#

workers are designed for req-response

#

yes, but you don't manage the compute instance

#

that's the key difference

#

upgrades? no.
downtime? no.
firewalls? no.
databases? no.

#

none of it you have to manage

#

all done for you

#

yes

#

we do use the normal one, the worker filters out noise

#

stuff like dependabot, empty comment messages, etc.

#

code is all there and fairly easy to follow

#

architecture of workers

#

they use V8 isolates

#

dead cool stuff

#

azure functions does pythonn if you want that, also neat stuff

#

it is, lol

#

one escond

#

2 million executions / month iirc

grim seal
#

yea

#

kinda

grim seal
#

yess

pliant trench
#

@grim seal how old r u btw

jovial island
#

@wintry atlas oh im sorry i got stuck in things

#

so did you resolve it?

#

!e

import pandas as pd
df = pd.DataFrame([[1, 2], [3,4], [5,6]] , columns=['a', 'b'])
df['c'] = df.apply(lambda x: x['a'] if x['a']<5 else x['b'], axis=1)
print(df)
clever salmonBOT
#

@jovial island :white_check_mark: Your eval job has completed with return code 0.

001 |    a  b  c
002 | 0  1  2  1
003 | 1  3  4  3
004 | 2  5  6  6
jovial island
#

ah i see, good to know @unreal dust !

#

!e

import pandas as pd
df = pd.DataFrame([[1, 2], [3,4], [5,6]] , columns=['a', 'b'])
df['c'] = df.apply(lambda x: x['a'] if x['a']<5 else x['b'], axis=0)
print(df)
jovial island
pliant trench
#

great

jovial island
#

Im having extreme hand pain while trying to you mouse and typing on the laptop keyboard at the same time
any solutions?
I use a HP, just in case if your asking
I never occurred this kind of pain with other laptops such as Lenovo thinkpad, Mac catalina.

hazy laurel
#

Um... I'm sure that's coincidence

#

Sounds like carpal tunnel

rich cargo
cedar leaf
#

Yes, 1 Million Executions and 400,000GB of RAM consumed per second (all per month)

#

no

#

per month

#

you are charged per execution and charged per GB of RAM you utilize per second

hoary cloud
#

Guys give me ideas for a currency name (maybe more than 1 so i can compare lol)

#

my brain is so dum i cant think anything creative ๐Ÿ˜ญ

cedar leaf
#

first Million and first 400,000GB of RAM per second are

#

and you are charged in RAM usage per 128M chunks

#

so if your Python Function was executed 500k times and it used 128M of RAM for 10 seconds, executions would be free and you would owe for 225000GB of RAM per second at $0.000016/GB-s so it would be $3.60

jovial island
#

what would you like more minecraft challenges like random drops or Hardcore episodes pls reply ping me or dm

jovial island
#

this is off topics right ?

tawdry salmon
#

Yeah this is off topic

#

It's still not a place to advertise

jovial island
#

hat

#

what

jovial island
#

what are you saying

#

it is advice

tawdry salmon
#

Oh yeahh sorry

#

I understood it really differently

shy shadow
#

A crime bossโ€™s translator proves heโ€™s not up to the task.

About Alternatino:
Alternatino is a sketch show that follows Arturo Castro (โ€œBroad City,โ€ โ€œNarcosโ€) as he attempts to navigate life as a modern Latino man โ€“ whatever that means.

Subscribe to Comedy Central: https://www.youtube.com/channel/UCUsN5ZwHx2kILm84-jPDeXw?sub_confirmation=1

Wa...

โ–ถ Play video
hazy laurel
#

uh...

tribal tinsel
#

the thumbnail is... disturbing

hazy laurel
#

The video itself

tribal tinsel
#

The lyrics have more stuff that are not really suitable for pg13 server. But the choice of thumbnail is really really disturbing

hazy laurel
tribal tinsel
neat light
#

@jovial island That's not really appropriate for this server

tribal tinsel
#

I need to rickroll myself to keep my mind off this

#

hm, I haven't listened to classics in a long time. I guess Wannabe, Livin' La Vida Loca, Mambo no 5 will also join Never Gonna Give You Up

tribal tinsel
#

wait, I didn't set autoplay. I'm sitting in silence for over half an hour, when rickroll ended...

sharp spoke
#

also @jovial island what did u do to get this otn?

ornate scroll
#

ricks showering procrastination???

#

i procrastinate but not for stuff like that

#

more of homework xD

sharp spoke
thick quarry
jovial island
#

Wanna see my bot?

sterile nymph
#

there is a phrase that I want to say because appears

#

it or isn't?

jovial island
rotund python
#

I quite liked that nginx gave me three relevant O'Reilly books for free

sharp spoke
#

wtf sercret channel?

jade bolt
#

wtf secret channel

dusky cliff
#

lol

tranquil ridge
#

lol

odd sphinx
#

lol

#

i saw that gif in #zeeshanok-is-the-real-owner

#

it is

#

ur just not invited

jade bolt
#

wtf

jade bolt
sharp spoke
elfin vine
#

Ummm

tribal tinsel
#

If your mind is focused on something or changes focus from setting up music to something else, it's hard to notice the silence, lol. Especially since it was supposed to be background music, not active listening

sharp spoke
#

Relate ๐Ÿ˜”๐Ÿ˜”

#

I do that a lot.. Like quite a lot

odd sphinx
#

same

pastel nest
#

yeet

#

as i was saying, that curve looks very like the uncanny valley

ember oar
#

Iโ€™d say Iโ€™m at the climb to Base Camp of Grown up mountain from insecure canyon

ember oar
#

I wish there was an objective way to tell your knowledge at CS lol

ember oar
# pastel nest same

If youโ€™re there then Iโ€™m probably reaching the bottom of insecure canyon actually

sinful sun
#

Can you invert a binary tree

pastel nest
#

i feel like i'm not inexperienced but definitely not experienced either

sinful sun
#

Can you reverse a linked list

#

Thats about it

pastel nest
#

i know, i know i don't know, but at the same time i don't know what i know

ember oar
elfin vine
pastel nest
elfin vine
#

You can reverse a double-linked list

sinful sun
#

Reversing is reversing

elfin vine
#

If the list is A -> B -> C. Then from C you don't know your parent B

#

As such, you can't reverse it

ember oar
#

Oh yeah

elfin vine
#

If it's a double-linked list you have A <-> B <-> C

ember oar
#

Meanwhile double linked lists have the previous parent

#

And the child

#

I think you can invert a binary tree

#

Would you just reverse it in an inorder fashion?

lunar basin
pastel nest
pastel nest
ember oar
#

Prefix infix postfix?

pastel nest
#

haven't been studying algos and data structs in a while

pastel nest
# ember oar Prefix infix postfix?

i'm not sure, i remember there's three orders in which a recursive algorithm on a binary tree could be written (especially with depth-first search)

ember oar
#

A concept that I keep screwing up on is Boolean algebra

lunar basin
ember oar
#

Ah

lunar basin
#

and there's inorder

pastel nest
sinful sun
#

Python ops are infix

pastel nest
#

i mean, you got --x if you really want to lol

pastel nest
sinful sun
#

yet

lunar basin
#

๐Ÿ‘€

pastel nest
#

don't give them ideas

sinful sun
#

We'd be on mars by now if the world used prefix

lunar basin
#

yikes, prefix

#

everyone knows postfix is superior

pastel nest
#

i'm not a fan of either

ember oar
#

Infix is probably my favorite and preorder for binary tree orders

#

Preorder is just intuitive imo

pastel nest
#

NO. INORDER BEST BECAUSE IT'S SYMMETRIC (well, kinda)

sinful sun
#

You dont say "one and two, add together" you say "add one and two together"

#

GOTTEM GOOD

pastel nest
lunar basin
#

mariosis drank the lisp kool-aid

sinful sun
#

And it was tasty

lunar basin
#

i really like kotlin's infix functions

grim seal
#

page rules

#

or for temporary stuff development mode

jovial island
#

wow a server where owner does reply

wheat rock
#

lol

upper glacier
#

why is this Kat playing against herself?

jovial island
#

lol the channel name

elfin iron
#

Hello, I am trying to generate this image with Java and I am stuck with how to position the status indicator dot on the corner on the avatar like discord does. How can I calculate coordinates for that position?

#

by "status indicator dot" I mean the little circle on the corner of the avatar which indicates weather someone is online, offline or idle

pliant trench
wheat aurora
echo fern
#

and probably at an angle of 45 degrees

elfin iron
#

yes

echo fern
#

so x = r*cos(pi/4);y = -r*sin(pi/4) (relative to the circle's center)...

vague shadow
#

They're actually quite nicer than that. if you draw a box around the avatar, and a box around the indicator, the indicator box is in the bottom right of the avatar box

echo fern
#

oh, that makes things easier

#

though I wonder if their radii are such that the dot is also on the edge

#

uhh, middle school geometry to the rescue, hold on

vague shadow
#

lol possibly

#

It's just a foreignObject within the avatar svg aligned to the bottom right

elfin iron
echo fern
#

the radius of the indicator should be bigger then

elfin iron
#

I don't think the size of the dot should be a factor, because whatever the size I would like it's half potion on the avatar and half on the out

vague shadow
#

yea, you need to make it bigger, there's also a bounding box around it so that part of the avatar is hidden too

elfin iron
#

looks pretty- ugly to me

vague shadow
#

That looks better

#

you just need the bounding box now

#

to obscure more of the avatar

elfin iron
#

bounding box around what?

#

the dot?

tranquil ridge
wheat aurora
echo fern
#
The big circle intersects the diagonal at x = r1/sqrt(2), y=-x. So the small circle's center is there, which implies that the small circle's radius is r2 = r1-r1/sqrt(2) = r1*(1-1/sqrt(2))
real forum
vague shadow
#

I sometimes lose arguments with myself too

#

especially when reviewing my own code kek

echo fern
# elfin iron

so for it to be simultaneously true that:

  1. The small circle's bounding box is aligned with the big one's
  2. The small circle's center lies on the big one's edge
    the radii ratio must be 1 to (1-1/sqrt(2)), so the small circle's radius is 0.29289321881345247559915563789515 of the big one's.
elfin iron
#

OH

#

welp I have to go now

sharp spoke
#

@echo fern just wonder.. do u do math/geometry focused programming?
i mean in general it is.. but everytime i see u.. its geometry ๐Ÿ˜…

echo fern
echo fern
#

tbh I kinda disliked geometry in high school because it required both a lot of creativity (there's tons of ways of getting a solution, and you need to choose an efficient one - you can't just write an equation for every relationship you see and solve the resulting system) and knowing a lot of theorems

sharp spoke
#

physics and maths bg is very cool

languid osprey
#

lol, I'm taking geometry right now

#

I do feel behind on math though

#

Its not my strongest subject

sharp spoke
languid osprey
#

aha I can measure a square

echo fern
#

now draw a square with the same area as a given circle ๐Ÿ‘€

slate leaf
#

Geometry is neat, but I have a pretty heavy bias towards math / physics. I do like that geometry teaches symmetry, which is a very important concept

slate leaf
sharp spoke
#

the only problem i have in maths is integration requires heavy practice

echo fern
sharp spoke
echo fern
#

||for context, drawing a square with the area of a given circle using a ruler and compass has been proven to be unsolvable (IIRC), same as dividing a given angle into 3 equal parts||

slate leaf
slate leaf
echo fern
#

it has something to do with how only polynomials of some degrees(2,3,4, but not 5) are analytically solvable - which I still, after 2 semesters of group theory, don't have the group theory knowledge to understand ๐Ÿ˜”

sharp spoke
slate leaf
tranquil ridge
#

he is highschool last year tho

sharp spoke
sharp spoke
slate leaf
#

Just wait for calc 3 (multivariable calculus), diff eq (black magic), and linear algebra (everything matrices)

sharp spoke
#

diff equation is being taught rn

#

class in 10

echo fern
#

I had a "wonderful" DE professor in uni that sometimes took 30-minute intermissions to prove something, using up multiple boards, at the end of which I would have forgotten what the hell he was proving

sinful sun
#

i hate profs like that tbh

echo fern
#

yes

sharp spoke
#

i hate proofs which are more than 2 pages long

#

in physics

sinful sun
#

last year i had a guy teaching stochastic calculus go on wild tangents about some obscure math shit no one ever knew

sharp spoke
#

for maths the mark is a page

sinful sun
#

for hours

#

and then turn around and say "you wont need this ever in your life"

echo fern
#

the DE practice one was cool though - clearly barely out of being a student (probably a grad student or something), who, when we mentioned preparing for exams to him, laughed and said "until Quantum Field Theory at 5th year, you won't have any courses that can't be prepared for in a single night before the exam"

languid osprey
#

aha I haven't even had a prof yet

#

take that

echo fern
slate leaf
echo fern
#

physics

sharp spoke
echo fern
#

yup

slate leaf
#

And it requires group theory?

languid osprey
slate leaf
#

Wild

sharp spoke
echo fern
#

it's just that only less than half of the GT stuff I see actual applications for

slate leaf
echo fern
#

admittedly, we were literally taught group theory using a physics book (Weinberg's quantum theory of fields)

sharp spoke
#

brad as a graduate and working person how much would u say that college courses help in jobs.. or well are they for sake of knowledge?

echo fern
#

that'd probably be the 5th-year QFT

sharp spoke
#

wait correct my math.. but isnt bachelors of 4 years usually?

slate leaf
slate leaf
echo fern
sharp spoke
echo fern
#

russia ๐Ÿ˜ฆ

sharp spoke
#

ooohhh veryyy cool

#

ohh wait so how are degrees in your place?

jade bolt
tribal tinsel
jade bolt
#

โ˜ญ

sharp spoke
jade bolt
tribal tinsel
sharp spoke
jade bolt
#

no scythe emoji

#

its cool tho

slate leaf
sinful sun
#

so you can do BSc/MSc in just 4 years

#

you get 2 higher degrees in the same time people finish highschool lmao

sharp spoke
sharp spoke
sinful sun
#

yea, idk how different it is in terms of pacing and curriculum tho

#

but like, even russel group unis have their masters be 1 year, like imperial/oxbridge/ucl

pliant trench
slate leaf
#

Just to follow up, 4 years BS, plus usually 2 years for MS here in the US. Pricing is fucked, and pacing depends on the specific school and professors

sharp spoke
#

you either are smart asf and pay a whole lot to learn good in hs to get a good university

#

so well fuck up and pay hugeass sum to get a degree

echo fern
#

one of the only nice things about Russia is being able to get a uni degree for free (and even get paid a stipend in process)

#

(I know US also has stipendes, but I got the impression that getting it is reserved for very few people - in Russia, it's mostly the norm)

sinful sun
#

most of continental europe does

#

never

#

education is a UK business the same way tourism is for spain or greece

#

its never gonna be free

jovial island
#

hry

#

anyone wanna play minecraft classic

wheat aurora
#

@young quiver What's in your file.html now?

wheat aurora
#

Put in a simple:

<h1>Hello World!</h1>

and then save it~

wheat aurora
young quiver
#

But I remember there was something you needed to write in every HTML in the start. Like language and stuff. Uni something

wheat aurora
#

You can just press f12 I believe to open developer's console

#

There is some html boilerplate, but not super necessary

young quiver
#

<!DOCTYPE html>

#

That's what it was

#

<html>
<head>
<title>Page Title</title>
</head>
<body>

<h1>This is a Heading</h1>
<p>This is a paragraph.</p>

</body>
</html>

round moss
#

you don't need a html tag, some of the time

#

doctype can also be ommited, though it is good practice to keep it in

young quiver
#

Okay! ๐Ÿ™‚

#

My document looks like this now ๐Ÿ™‚

young quiver
wheat aurora
jade bolt
round moss
#

yeah, it is a good idea, but for simple files it doesn't really matter

#

you should really be using an autoformatter for html

young quiver
jade bolt
#

ayy

#

nice

young quiver
jade bolt
#

alert is fun tbh

young quiver
#

I selected danish language to be able to use รธรฆรฅ

#

Ahaha yeah! Typical to spam these on scam sites so that the user can't exit the page ๐Ÿ˜„

#

All these free antivirus. "Battery has been infected by virus," sites ๐Ÿ˜„

#

When creating that external file, what should I use when it asks to select a programming language @wheat aurora

#

to be able to save it as a .js file inside the same folder

wheat aurora
young quiver
#

Do I link it up here, or in the body? It doesn't explain where

wheat aurora
#

Typically up near the top

young quiver
#

So this is fine?

#

Hmmm. Now it won't display any alert when I've made a external file

young quiver
#

This is the external file

#

I'm so confused... ๐Ÿ˜ฆ @wheat aurora

dusky cliff
#

@young quiver you don't need the <script> tag in the js file

young quiver
dusky cliff
#

just write alert("...") straightaway

young quiver
#

This is what I have rn, and it's not doing anything when I refresh the page in the browser

dusky cliff
#

your html file isn't saved

#

ctrl s

young quiver
#

Not the problem though

#

Just save

#

I just removed some lines, that's why it said it wasn't saved

dusky cliff
#

๐Ÿค”

young quiver
#

It's not really working, and I have made sure to ctrl + click on the link to the .js file, and it switches pages, so it should be the right path

young quiver
round moss
#

you have 2 similar directories, make sure you are opening the correct one

#

how are you opening the website anyways?

young quiver
#

Just double tapped it in the folder ๐Ÿ˜„

#

I was opening an old fgile like you mention, which is why nothing changed ๐Ÿ˜„

#

oh well

#

no

#

It doesn't work still

#

had the old <script> inside the html file

#

Just deleted it and now the external Alert("") doesn't work

round moss
#

your path is probably wrong

#

if you are opening a file url, you should either use an absolute file url path, or just filename.js as the source

#

what you have now will do file:///C:/that_directory/that_path.js

young quiver
round moss
#

yeah, vscode knows where your path root is

#

the browser does not

young quiver
#

Oh, so what to do to fix that?

#

It does show that it finds the html at least in the correct path

round moss
#

ye, because you clicked it

#

open the browser console

#

f12 generally

young quiver
#

Doesn't work

#

Just shows "definition"

#

of code

#

when I tap F12

round moss
#

yeah, there is a tab there that says console

#

you should see a 404 error there

young quiver
#

oh

#

thought you said to tap f12 inside visual studio

round moss
#

yeah

#

use just the filename inside the src tag

#

it should fix it afaik

young quiver
#

Like this?

#

AYY

#

It worked. Just needed to delete that "/" before the name

#

๐Ÿ™‚

#

Thanks mate! On with the tutorial I guess ๐Ÿ˜„

#

That's the hard part about learning with text rather than video

#

Damn. Nice that Javascript has automated semicolon so that you don't forget ๐Ÿ˜„

#

Should i "use strict" ? @round moss

round moss
#

yes

cedar leaf
#

@wheat aurora your Micro Micro service helped getting a job. They asked for Kubernetes I had written and I showed them that.

#

So thanks

sinful sun
#

What is this micro micro service thing

cedar leaf
#

Inside joke but my method of learning Kubernetes

#

Itโ€™s not deployed right now

#

Since Kubernetes is Greek god of burning money in the cloud

#

But if there is enough interest, I could stream deploying it

untold jasper
#

Ronaldo IS REDDD

#

SIUUUUUUUUUU

pliant trench
wheat aurora
#

Put that shit on your resume. "Want to learn kube? Here's a basic esoteric as fuck example that will showcase it"

lofty loom
#

Why do I have a feeling the name of this channel is a reference to something that lfew over my head

mental idol
#

You belong in a museum Doctor Jones rooCane rooOld

versed iris
#

When I was like 3 or 4, my mom started putting door alarms because she caught me walking outside, and little intelligent me somehow got a stool, and a knife, and deactivated the damn thing then i would walk outside yet again

#

i must of been super intelligent to even pull that off tbh

odd sphinx
#

lol

#

a little trolling

#

at a young age

wet seal
#

Can Iย ask for help for some rust code here?

sinful sun
#

Sure i guess, its ot

wet seal
#

I have a problem in my code, I'm trying to return a value on which I perform a mutable borrow and Iย can't find how to do it. Here's the relevant code

fn create_gif(image_raw: image::RgbaImage) -> Result<Vec<u8>, image::ImageError> {
    println!("Width: {}\nHeight: {}", image_raw.width(), image_raw.height());
    let empty_image = image::RgbaImage::new(image_raw.width(), image_raw.height());
    let empty_frame = image::Frame::new(empty_image);

    let duration = std::time::Duration::from_secs(300);
    let delay = image::Delay::from_saturating_duration(duration);
    let image_frame = image::Frame::from_parts(image_raw, 0, 0, delay);

    let frames: [image::Frame; 2] = [empty_frame, image_frame];
    println!("Frame Creation Success");
    let mut gif = Vec::new();
    let mut encoder = image::codecs::gif::GifEncoder::new(&mut gif);
    encoder.encode_frames(frames)
        .expect("Encoding Error");
    Ok(gif)
}

Thank you in advance

wet seal
#

OK I fixed that error but the code is hanging on the encoding process

wet seal
#

it looks like that's an issue with the lib

#

I'll change

proper python
#

?????????

#

literally why?

tribal tinsel
#

@warm rivet here's full pic

warm rivet
tribal tinsel
#

this is also nice, I might change my banner to this when autumn starts

#

those are my wallpapers, most pics are from /r/foxes :3

sterile nymph
#

what the meaning when two PR are merged

sinful sun
#

It means their code was accepted into the repository

hollow heart
#

@vast plover start here instead

#

there's already a conversation happening in ot0

vast plover
#

Guys i hate one thing is that people face a problem that their age is not appropriate for a thing but their mind is capable of that thing but they can't do the thing he wanted to do

hollow heart
#

@vast plover name one example

vast plover
#

Ok

#

Let's imagine there is a kid of age 9-12 he wanted to fill a form or want to take participate in a contest in a thing he is capable of doing that thing but her age is not applicable for this thing so what he do

sinful sun
#

Yea we dont let kids do what they want, whats so surprising

tribal tinsel
#

There are lots of contests that allow lower age people to participate than the target. Vide me in late primary school participating in and winning regional maths contests for middle school

sinful sun
#

We dont even let adults do what they want, why would you think we'd let kids

vast plover
sinful sun
#

This is so beyond first world problem i have no words

hollow heart
#

name one specific actual example, not a hypothetical (not an "imagine...")

tribal tinsel
#

But some stuff requires a person to meet some legal stuff. <13 people fall under COPPA in the US, so any tech-related contest targeted at US will need to follow it

vast plover
#

I think there should be a test for seeing the kid mind that he behave like a 7-8 year kid or 11

hollow heart
#

there are laws around this in order to protect children

tribal tinsel
#

Young people think they're more mature than they are. Seriously, I was like that as well

vast plover
#

All of this thing my friend is facing

sinful sun
#

Youre friends with 7-8 year olds?

vast plover
hollow heart
#

only slightly related: what country are you in by the way / what's your native language

vast plover
#

If not anything just tell me is my talk make sense?

hollow heart
#

maybe there are coding contests for under age 13. have they looked?

sinful sun
#

No

hollow heart
sinful sun
#

I would have liked to drink before i was 18 but the law is the law

#

Doesnt matter how mature you think you are

tribal tinsel
tribal tinsel
hollow heart
tribal tinsel
#

I had big problems with some smells as a child, main ones being coffee and alcohol

#

I liked hot chocolate from machine (this kind of vending machine that pours you a drink into a cup) between some extracurriculars i had and I could sometimes taste coffee in my drink. Awful :c

#

My smell sensitivities eased with time. I make coffee at home but I don't really drink coffee myself (maybe small with lots of milk and some sugar or honey)...

hollow heart
#

honey hmm never tried with that

tribal tinsel
#

We have some hives, so I use honey to sweeten my milk... And well, my coffee is mostly milk with only some coffee XD

hollow heart
#

coffee-flavored honey milk

sharp spoke
tribal tinsel
#

No chocolate in there

#

It's just that my partner likes cold coffee but I put too many ice cubes... So when I poured aerated cream (whipped a bit but still liquidy, just light), the cubes made it mix

echo fern
echo fern
#

It's just that my partner likes cold coffee but I put too many ice cubes... So when I poured aerated cream (whipped a bit but still liquidy, just light), the cubes made it mix
ah, I was going to ask what the hell's inside but that explains it. So thick cream in ice coffee, hmm.

tribal tinsel
#

I like making Irish coffee in clear cups because layers :3

#

If not for the ice cubes, the cream layer should make a nice line

#

Kinda like this, although I don't make such a black coffee, lol

#

A lot of Irish coffee pics I just found on Google are with whipped cream, like with peaks and stuff. In the recipe I originally found, it says to only whip it until it's fluffier but still can be poured

sharp spoke
jovial island
#

Anyone wanna do a quick discord roleplay DM me

urban sun
#

you shouldn't spam the channels

jovial island
urban sun
#

no

#

don't spam

#

that's all I want

vast plover
#

Hi

jovial island
lusty brook
#

@jovial island @jovial island OK, I'm back. So about pronouns ... a few things

  • they is now widely accepted as both being singular and plural, it may be confusing, but we needed a third-person neutral singular pronoun and they already existed so yea
  • pronouns don't have any defined connection to multiple personalities or a gender (or genders) - eg. me using they/them doesn't mean I'm transgender, I'm cishet and have one personality.
  • the main point of these pronouns is that I feel comfortable being referred as all four of these options: he/him/they/them. Now usually you'd choose a set (he/him or they/them) to avoid confusion, but the point is that they're all OK with me because I feel like they all are a part of my identity (singular) ... or if you want to get technical gender expression.
#

it's sorta like names, a lot of us have both a first name and a last name. And while cultures differ in when each one should be used, it's not fundamentally wrong to associate and refer to the barer as any of those names (although you may get corrected that the situation or context means one of them is strongly discouraged ie. not preferred, and in that case follow their rules!). My pronouns are like that, you want to call me he? go ahead! want to call me they? also sure. what's not OK is using she because that is overstepping my identity.

#

Actually since this is all about my identity, I do find it saddening that it's not as understood and accepted as you'd hope. I'm totally OK with sharing my knowledge and experiences with my pronoun set, but I want to make it clear that this negativity and stigma around this topic is like talking to your friend and mispronouncing their name, calling them the wrong gender, and shaming them for their personality traits -- doesn't feel particularly great. I know this is more ranty than it should be, but seriously, we're all people, me included.

jovial island
#

damn thats too much

#

i dont have enough time , thanks for the offer , i hope those things make u feel better in the way you tried to achieve Heart

#

i'll look back into it whenever i'm free SwagHappy

lusty brook
#

well thank you for listening, that's already a step forward :)

mental idol
#

Well, I need to take notes on how to be so graceful as that, ichard rooISee1

tribal tinsel
lusty brook
#

Ahaha, English is weird :p

jovial island
#

Alright!

#

โœ๏ธ

fresh reef
#

what did the tuple say to the string

pliant trench
#

what

fresh reef
#

i cant unpack my feeling

#

XD

pliant trench
#

K

fresh reef
#

WAIT NO

#

THATS NOT THE PUNCH

#

ITS I CANT CHANGE MY SELF

#

AAAAAAA SUCH A GOOD JOKE WASTED

pliant trench
#

Lol ok

#

its not even important

fresh reef
#

D:

pliant trench
#

xD

fresh reef
#

terror indeed

#

PFFT I SHOuLD STOP

pliant trench
#

Hm yess

tribal tinsel
split mica
#

@lofty loom

severe trout
#

lol gnu

lofty loom
#

Like how Richard eats his own foot

severe trout
#

they pretty much trash talk anything proprietary

split mica
#

Is Windows 10 Spying on you?
If by spying you mean collecting information about you without you knowingโ€ฆthen no.

Microsoft isnโ€™t hiding the fact that itโ€™s collecting data on you. But itโ€™s not exactly going out of its way to tell you exactly what, and especially how much, it collects.

Now before we go into the depths of Windows 10โ€™s hunger for data, letโ€™s look at what gets collected and sent to MS servers and how the Redmond-based software company handles the data.

PC usage: Microsoft tracks data such as the type of hardware you use, which applications you have installed, some usage details (e.g. how often you launch or use the applications) and crash information on your devices.

Crash data: >Every time Windows or your PC crashes (or if thereโ€™s an error), Microsoft collects the necessary information and evaluates it โ€” more on this below...

This is essentially what is being collected and is what Microsoft calls โ€œtelemetry.โ€ However, thereโ€™s another type called โ€œfunctional dataโ€, which is data such as your location used by the Weather app.

Microsoft claims that the information gathered is used only to improve the development of the operating system and develop new products. Since we canโ€™t look over the shoulders of the engineers and marketing folks at MS, we have to take them at their word.

According to MS documentation, the data isnโ€™t shared with any other companies (with the exception of data from a handful of services like Bing) and is deleted after 30 days (all the details can be read in their privacy statement).

severe trout
#

i think they had an article on tpm too

lofty loom
lofty loom
#

I'm aware KDE also collects data too via telemetry

severe trout
#

discord collects data too

severe trout
#

google does that too

split mica
severe trout
#

you can't really escape it

#

lol

split mica
severe trout
split mica
lofty loom
severe trout
#

you still wouldn't escape it completely

split mica
#

but

lofty loom
#

Simple undo history keeps bringing unexpected behavior, I gave up on it

severe trout
#

lol

#

this

split mica
#

yes

severe trout
#

unless... you use tor for everything(?)

split mica
#

kinda

severe trout
#

lol

lofty loom
#

Also, honestly while privacy should be a human right there's a point in which you people spoonfeeding it us makes it become rather more annoying than it actually is appealing

split mica
#

I'm currently using discord on tor

#

for example

severe trout
#

i would never do that

split mica
#

but I still use google and chrome for normal searching

severe trout
#

i need my cookies and history. They are helpful

split mica
severe trout
#

yeah because you can't get them

split mica
#

I fixed the sentence

lofty loom
split mica
#

I cant tolerate people that gives their ass to google for free

lofty loom
#

Those people are also bad. I'm honestly more concerned about Google as a monopoly rather than their privacy controversies

severe trout
split mica
#

and I use colons to search emojis

#

like

#

:sunglasses:

#

๐Ÿ˜Ž

#

I dont use stickers anyways

severe trout
#

colons have priority auto fill using cookies too

lofty loom
#

That's why FLoC got so much hate

severe trout
#

:thi: might get auto-filled to :think: instead of :this: if you just select the first option without cookies etc

lofty loom
#

In the end, since we're likely into tech we have a conscious decision on what we want companies to do with our data

#

And honestly, as long as it's outright actual malware I'm fine with some degree of data collection

split mica
#

write the full name then

#

๐Ÿค”

lofty loom
severe trout
lofty loom
#

I'm still gonna use it

lofty loom
severe trout
#

yeah

#

you could just shut down the computer for absolute privacy

split mica
#

I wish computers didnt even invented

lofty loom
#

It's hard to collect data on something that's already anonymous

split mica
#

As a programmer I seriously wish that

severe trout
lofty loom
#

And boy do those machines outmatched their expectations way more than they expected

#

I'd say they're an important thing for the sake of Science and Math

split mica
#

I hope doomsdays comes before Matrix comes real

lofty loom
#

AI probably isn't gonna get that advanced any time soon

#

They're still bound by the rules of their own logic

split mica
#

It's already pretty advanced

#

they can impersonate humans already

lofty loom
#

We're not gonna get an apocalypse out of them soon, and it's likely if we do advance that much that there'll be a kill switch on them

round moss
#

we are very very far away from actually general AI. And it is getting too expensive to get too many people working on it

lofty loom
severe trout
#

a self programming AI HYPERS

lofty loom
#

But not like some Scifi level crap

split mica
severe trout
#

that would be fun ngl
i'd love to see something like that in 20-30 years

round moss
#

github, having access to GPT3, couldn't get a good programming AI working. I wouldn't be worried in the near future at least.

severe trout
#

co pilot rip

lofty loom
#

I never got appealed to the idea of AI assisted autocompletion

severe trout
#

same

round moss
#

it seems really neat for people writing CRUD apps

severe trout
#

it's kinda bloat for users like me

round moss
#

I can see the merit of it, but it is no closer to replacing programmers than tabnine was

lofty loom
#

1b.) I just don't want to be too dependent on them

severe trout
#

ig i might it have an usecase for it in a real job with deadlines ad stuff

round moss
#

@lofty loomit is more of an elaborate autocomplete engine than a real programmer. Just suggests more at once

#

and well, better autocomplete is really really nice

lofty loom
round moss
#

now yes, I wouldn't trust for security dependent software

#

the example from github containing an url injection was sad to see