#ot2-the-original-pubsta
652 messages ยท Page 78 of 1
just remembered the legend from ur name ;-;
alright lol
are you on xubuntu?
yea
- awesome-terminal-fonts
- noto-fonts-cjk``` one of these should work ig
the last one is huge tho
try this
- bdf-unifont
- ttf-unifont
- siji
- noto-fonts-emoji
- ttf-joypixels
- ttf-symbola``` @tranquil ridge u can install these too lol
o
woah, Ive installed lots of fonts
this isnt working hmm, firefox shows twemojis and rest is the same as before
i have restarted the applications
did you do fc-cache -fv?
yes
aren't these all Arch packages, though
oh actually yea
love you
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 ๐
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
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)
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
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
@shrewd lance :white_check_mark: Your eval job has completed with return code 0.
Outdated style
๐ฉ
#include<conio.h>
void main(){
char a = "y";
printf("no other wa%s",a);
}
err
no more ๐
Yes, it's outdated
f-strings are the norm
.format() strings are still useful, though
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
pyupgrade could probably be used to switch over a bunch of older syntax, etc.
Oh true
F strings, but format is still useful in cases imo
Often a logging method which is logging multiple parameters
.format is still hard to find uses for
I mean beyond "template strings", I don't think there's any use
Yeah
wow too dead
anyone likes mulberry? I just take 2 because I can't reach the other mulberries because the tree is too high ๐
Do you play piano or do you just have dexterous fingers genetically?
lol
Maybe you're thinking of marionberries - those are a type of blackberry
oh.
Nah, it's different..
ah. What is the taste like?
I wish I could find some in St. Louis. My best bet is the international food store nearby
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.
I do, but not piano. It's just keyboard. But now I rarely play it
Piano fingers are a curious adaptation.
uh wha
Look at their fingers - held straight and slightly elongated
bing is loading
why do u want to search it :/
I own a Roland Synthesizer, but never use it.
Ah i see.
Cool ๐๐ป
How it feels like when you play it? Coz my keyboard isn't the expensive one ๐
I need to practice, but mine was NOT cheap, it is used by professionals to make music.
The reason why i got the synth was because i wanted to learn how to play it
Learning music is soul healing ๐
sadly i lost interest in the synth, but if you want to know what synth i own, it's a Roland JUNO DS 61 key
I'm borrowing my neighbors guitar and lost interest in that too 
๐
Guitar always hurts my finger, but it makes me addicted coz of the sound
i hear it can make fingers bleed, but i have high pain tolerance
๐
wtf
im not touching a guitar 
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
yup
There is also nylon guitar string
๐น geng
im so busy because of school now :(
@jovial island sorry~ let me know if you figure it out!
Nah, I gave up and just copied the phonetics to all my files
nuuuuu
Do you want to open a new help session? Maybe we could have another crack at it ๐
It seems like it should be simple to solve.
Aight
where can I post my memes?
unfortunately not on this server
bruh
ikr? terrible.
@magic atlas @hollow heart
Here's your reminder: #ot2-the-original-pubsta message
[Jump back to when you created the reminder](#ot2-the-original-pubsta message)
@magic atlas @errant basin
Here's your reminder: #ot2-the-original-pubsta message
[Jump back to when you created the reminder](#ot2-the-original-pubsta message)
no, you cani't put y bals ins mi jaw

:stroke:

๐ธ geng
lol it was yday ik
I had to make my own, once
Well it was pretty much just the same but I was going to cythonize it. Also it had slots, which asyncio's doesn't ;-;
hi
Hello.
hi
hi
hi
hi
Python with semicolons
What if yes
]e
public=static=void=lambda x:x;
@public
@static
@void
def main():
print("Hello, world!");
main();
@shadow elk :white_check_mark: Your eval job has completed with return code 0.
Hello, world!
bruh
now make these actually work properly 
publicalready works, all functions are public by defaultstaticokay, I will fix thatvoidalready works, but maybe I can make it ensure that the function returnsNone
static = staticmethod
def void(f):
def wrapper(*args,**kwargs):
f(*args, **kwargs)
return None
return wrapper
yeah, that
private would be the hard one
is that only something you can do in 3.10?
what is?
no, I'm just flexing the eval bot
Wait doesn't void mean something is returned but you don't know what?
Uhh, no, it means a void return type - no return.
nothing is returned
you might be thinking of C's void* pointers, which do mean "a pointer to something, idk"
Yeah I am
]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();
@shadow elk :white_check_mark: Your eval job has completed with return code 0.
Hello, world!
@echo fern what's the difference?
void means -> None
ye
well, there isn't really an equivalent in Python
I'd consider the real question "why the hell does C call a raw pointer a void*"
no idea about the answer to that
void return type means "doesn't return anything"
@echo fern I fixed it
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
What will serve a purpose \๐ค
You
uh oh
?
it returns to the eternal void
void * is basically magic, cast everything to everything
well, not really magic, but it's funny to think that way
why did C not think of Rust's slice type
C was made like 40 years earlier
tons of C functions accept a pointer and a length as a result
Hey Off-topic people, if you want YT Premium (you need a payment method attached) here's the code someone gave me: VH7J3LPEFDQV
!projects
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.
!e raise SyntaxError("Expected Error")
@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
!e raise SyntaxError(SyntaxError)
@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'>
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa I need help with discord
io::*
lol ok
https://getstream.io/blog/switched-python-go/
Any Python, Elixir, C++, Scala or Java dev that joins a team can be effective at Go within a month because of its simplicity
Tempting
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
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
as in its empty
What is your usb sharing options on your phone?
uh
Do you have the file transfer enabled?
i am not connected to anything
Ok, nevermind. I though this was trying to view files from a connected device
if i do connect to my pc, my pc can see the Android/data files
but my phone cant !?!?!
Sounds like a good time to restart your phone
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
um
1 million isn't a lot
comparatively, I mean
You could likely just use Google Files
does it have android 11
although, there's nothing in my data folder
empty
wtf
bruh
THATS WHAT I WAS SAYIN
the data folder will be there
you said you couldn't SEE the data folder
but there should defintely be folders in there
oh
Supposedly it was an Android 11 "design choice"
to prohibit apps from accessing it
yea
so the apps made by samsung and google cant access it
but the defalt file manager in android can
very nice
I have
"File Manager", "Files", and "Files"
but the true built-in one actually shows the folders
yep that one
yep
yes
I say it's valid tbh
as long as you have a couple methods of accessing it, you're fine
Google Files is kind of nice
lmao I actually have two built-in file managers
ill use them when i dont need Android/data
what the heck
lol
I can't even uninstall either of them
One must be from Android and the other from OnePlus
yea
double power 
oh for sure
bro if android 12 lets me customize my accent colour
and have it show for all system apps
im sold
isn't that already a thing
I mean like
I thought Samsung had "global enough" themes
it's just that like no apps support them
!pypi diagrams
just use scratch? /s
lmao
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.... 
This is my unsurprised face
I don't know what anyone was expecting lol
This channel name just seems like ```py
expect AProblem
this is when you
raise FixError
@jovial island do you have knowledge in accounting ?
Kind of i deal with ledgers and tax documents mostly
Could I send you some doubt on dm? I was studying and don't understand why some steps were made
Sure idk how much help ill be but ill see if i can help
or except Exception: pass
lol
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
yess
@grim seal how old r u btw
@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)
@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
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)
18
great
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.
When I use laptop touchpad instead using mouse for long hours, sometimes my wrist get little pain
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
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 ๐ญ
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
what would you like more minecraft challenges like random drops or Hardcore episodes pls reply ping me or dm
What are you talking about?
i didnt send my channel link
what are you saying
it is advice
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...
uh...
the thumbnail is... disturbing
The video itself
The lyrics have more stuff that are not really suitable for pg13 server. But the choice of thumbnail is really really disturbing
Perhaps it's worth creating a modmail thread for
done. my history of depression didn't prepare me for this thumbnail :x
@jovial island That's not really appropriate for this server
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
wait, I didn't set autoplay. I'm sitting in silence for over half an hour, when rickroll ended...
tfw you realize this after half hour
also @jovial island what did u do to get this otn?
ricks showering procrastination???
i procrastinate but not for stuff like that
more of homework xD
Real
so young
Wanna see my bot?
I thought it was funny bruh.
Sorry Mr.
I quite liked that nginx gave me three relevant O'Reilly books for free
wtf sercret channel?
wtf secret channel
lol
lol
wtf
i've seen this message in #staff-furry-chat
@Moderators furry frenzying the staff ๐
Ummm
Yes, lol. There's a lot of neurodivergent people who don't realise they haven't started their playlist or that it ended and they're sitting with silent headphones and stuff
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
same
Iโd say Iโm at the climb to Base Camp of Grown up mountain from insecure canyon
same
I wish there was an objective way to tell your knowledge at CS lol
If youโre there then Iโm probably reaching the bottom of insecure canyon actually
Can you invert a binary tree
i feel like i'm not inexperienced but definitely not experienced either
i know, i know i don't know, but at the same time i don't know what i know
Yea I think
No
recursively or iteratively (i only know the former, which is not that efficient)
You can reverse a double-linked list
Reversing is reversing
If the list is A -> B -> C. Then from C you don't know your parent B
As such, you can't reverse it
Oh yeah
If it's a double-linked list you have A <-> B <-> C
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?
invert a binary tree 
oh god, i think i've forgotten all about pre-in-post order or whatever that is lmao-
Prefix infix postfix?
haven't been studying algos and data structs in a while
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)
A concept that I keep screwing up on is Boolean algebra
that's for operators, postorder and preorder are different
Ah
and there's inorder
lol python don't have those
Python ops are infix
i mean, you got --x if you really want to lol
oh right, my bad, i meant prefix and postfix don't exist
yet
๐
don't give them ideas
We'd be on mars by now if the world used prefix
i'm not a fan of either
Infix is probably my favorite and preorder for binary tree orders
Preorder is just intuitive imo
NO. INORDER BEST BECAUSE IT'S SYMMETRIC (well, kinda)
You dont say "one and two, add together" you say "add one and two together"
GOTTEM GOOD
(1, 2)add
add(1, 2)
1 add 2
mariosis drank the lisp kool-aid
And it was tasty
i really like kotlin's infix functions
wow a server where owner does reply
lol
why is this Kat playing against herself?
lol the channel name
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
yep
Haha, from the code jam livestream when I was playing ultimate tic tac toe, because I didn't want to do the network connectivity part live I ended up just playing against myself
did you...win?
Totally guessing, but from the picture it looks like the center of the indicator dot is exactly on the edge of the image's circle.
and probably at an angle of 45 degrees
yes
so x = r*cos(pi/4);y = -r*sin(pi/4) (relative to the circle's center)...
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
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
lol possibly
It's just a foreignObject within the avatar svg aligned to the bottom right
Assuming I understand that correctly, if I do that I'll get this-
the radius of the indicator should be bigger then
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
yea, you need to make it bigger, there's also a bounding box around it so that part of the avatar is hidden too
That looks better
you just need the bounding box now
to obscure more of the avatar
add border change color
;-; no
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))
Change the border to clear ;)
oof
I sometimes lose arguments with myself too
especially when reviewing my own code 
so for it to be simultaneously true that:
- The small circle's bounding box is aligned with the big one's
- 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 is0.29289321881345247559915563789515of the big one's.
@echo fern just wonder.. do u do math/geometry focused programming?
i mean in general it is.. but everytime i see u.. its geometry ๐
I have a math/physics background (not CS), so I end up doing a lot of math-involving programming stuff, I suppose
ahh makes sense
Cool
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
physics and maths bg is very cool
lol, I'm taking geometry right now
I do feel behind on math though
Its not my strongest subject
geometry is nice... and well there are quite a tons of theorems tho ๐
i mean excluding the brain fuck ones else geometry is cool
aha I can measure a square
now draw a square with the same area as a given circle ๐
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
Easy, given the circle's radius the side of the square should be the sqrt(pi*r**2)
the only problem i have in maths is integration requires heavy practice
okay, exactly calculate sqrt(pi*r**2) with a ruler and compass ๐
1.8*r without compass
||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||
Depends on the integration. Most polynomials are easy but once you get to some advanced concepts like integration by parts or substitution things get weird. Also trig is just straight up remembering them
Interesting....I have never come across that before. Good to know!
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 ๐
something something decomposition into simple groups
(it's the https://en.wikipedia.org/wiki/AbelโRuffini_theorem)
polynomials is easy.. things get messy when you have to use substituion and by parts in a problem together with ln and trig ๐
Ahhh sounds like Calc 2 in college
he is highschool last year tho
if thats in 12th yes thats what it is
NTA hates us
Just wait for calc 3 (multivariable calculus), diff eq (black magic), and linear algebra (everything matrices)
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
i hate profs like that tbh
yes
last year i had a guy teaching stochastic calculus go on wild tangents about some obscure math shit no one ever knew
for maths the mark is a page
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"
my group theory courses be like: hopefully I will some day find all of this very important
What degree are you working towards?
physics
ohh pure science?
yup
And it requires group theory?
Cool :D
Wild
very cool
oh, absolutely - QM is basically GT under a thin veneer of being related to reality
it's just that only less than half of the GT stuff I see actual applications for
Ok that's fair lol. I have a decent grasp of QM, but particle interactions using virtual particles still doesn't make sense to me. Also color charge....
admittedly, we were literally taught group theory using a physics book (Weinberg's quantum theory of fields)
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?
I haven't studied any of these yet either
that'd probably be the 5th-year QFT
wait correct my math.. but isnt bachelors of 4 years usually?
I can safely say I use probably 5% of what I learned in college at my current job. But I learned how to learn, and how to systematically problem solve, which is a very good skill to have.
I do like to test myself from time to time to see what I've retained, but I'm not designing HVAC systems, turbines, rocket engines or steam powered power plants currently
Yup! sometimes engineering takes 5-6, but I was 4 and done
I'm not in the US, so no idea
ohh that brings the question what is your nationality (if you are okay with revealing)
russia ๐ฆ
motherland russia
Europe here, 3-3.5 (technical unis tend to have 7 semesters, but then technical masters is 3 semesters instead of 4)
โญ
well learning for sake of learning is fun agreed but then again all job skill boils down to powerpoint?
lolz using hammer to break hammer
I prefer scythe, sickle is smol, scythe is badass
ohhh so well effectively masters is like what 5years? damn thats like 1 year less than us.. if we get into masters right after bachelors
ยฏ\_(ใ)_/ยฏ
no scythe emoji
its cool tho
In my current role, yes powerpoint is huge. Being able to clearly and effectively communicate complex topics in a boiled down and visual way is a key part of what I do day to day
in the uk an MA/MSc is 1 year
so you can do BSc/MSc in just 4 years
you get 2 higher degrees in the same time people finish highschool lmao
ahh okayy.. communication always needs to be a skill ๐
ahh so most europe is 5 year course for masters.. saves an year of life huh ๐
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
why sad
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
same here including pricing is fucked
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
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)
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
wott
@young quiver What's in your file.html now?
Put in a simple:
<h1>Hello World!</h1>
and then save it~
there, you go~
You can follow the tutorial from here on out: https://javascript.info/hello-world#the-script-tag
But I remember there was something you needed to write in every HTML in the start. Like language and stuff. Uni something
You can just press f12 I believe to open developer's console
There is some html boilerplate, but not super necessary
<!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>
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
So now I just need to go onto this and begin?
yup!
i use indentations on html. not sure if its good practice
yeah, it is a good idea, but for simple files it doesn't really matter
you should really be using an autoformatter for html
Ayy!
alert is fun tbh
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
you can just select javascript. It's not a big deal if you get it wrong. You can always rename the file. VSCode is just trying to be helpful
Do I link it up here, or in the body? It doesn't explain where
Typically up near the top
So this is fine?
Hmmm. Now it won't display any alert when I've made a external file
This is the external file
I'm so confused... ๐ฆ @wheat aurora
@young quiver you don't need the <script> tag in the js file
How do I set up the alert command then? To know it's working?
just write alert("...") straightaway
This is what I have rn, and it's not doing anything when I refresh the page in the browser
Not the problem though
Just save
I just removed some lines, that's why it said it wasn't saved
๐ค
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
My face rn ๐
you have 2 similar directories, make sure you are opening the correct one
how are you opening the website anyways?
PROBLEM SOLVED!
Through Google Chrome
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
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
Oh, so what to do to fix that?
It does show that it finds the html at least in the correct path
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
yes
@wheat aurora your Micro Micro service helped getting a job. They asked for Kubernetes I had written and I showed them that.
So thanks
What is this micro micro service thing
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
stop
bahaha, that's fantastic!
Put that shit on your resume. "Want to learn kube? Here's a basic esoteric as fuck example that will showcase it"
Why do I have a feeling the name of this channel is a reference to something that lfew over my head
You belong in a museum Doctor Jones

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
Can Iย ask for help for some rust code here?
Sure i guess, its ot
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
OK I fixed that error but the code is hanging on the encoding process
@warm rivet here's full pic
nice
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
what the meaning when two PR are merged
It means their code was accepted into the repository
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
@vast plover name one example
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
Yea we dont let kids do what they want, whats so surprising
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
We dont even let adults do what they want, why would you think we'd let kids
Bro but sometimes thing thing make pressure on their future like if someone wanted to participate in a coding challenge but her age is 11 and the coding challenge applicable for 13 year age kid so what he do her mind can complete that coding challenge
This is so beyond first world problem i have no words
name one specific actual example, not a hypothetical (not an "imagine...")
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
I think there should be a test for seeing the kid mind that he behave like a 7-8 year kid or 11
Very naive of you
there are laws around this in order to protect children
Young people think they're more mature than they are. Seriously, I was like that as well
All of this thing my friend is facing
Youre friends with 7-8 year olds?
No lol
only slightly related: what country are you in by the way / what's your native language
I am in india
If not anything just tell me is my talk make sense?
maybe there are coding contests for under age 13. have they looked?
No
we can mostly understand
I would have liked to drink before i was 18 but the law is the law
Doesnt matter how mature you think you are
If that's not a hypothetical question, then let child's parent know and the parent should message the organisers. Together they can make arrangements to cover the legal part, eg formally parent needs to be present and monitor the child on computer, child cannot use messaging boards and stuff...
Nice
I tasted some alcohol with adult supervision before I turned 18 but it was awful :x
Ummmmm
I once begged my dad for the hot chocolate he was drinking and he gave it to me but it was coffee
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)...
honey hmm never tried with that
We have some hives, so I use honey to sweeten my milk... And well, my coffee is mostly milk with only some coffee XD
coffee-flavored honey milk
the cup looks like its been through some interesting hot chocolate parties
That's actually coffee
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
is this the pattern on the outside of the cup, or a view into the contents of a clear cup?
Clear cup
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.
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
Ahhh okay... I assumed it to not be a clear cup smh
Anyone wanna do a quick discord roleplay DM me
you shouldn't spam the channels
I want one sentence I DM you after what I say ok?
Hi
ใใซใกใ
@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.
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 
i'll look back into it whenever i'm free 
well thank you for listening, that's already a step forward :)
Well, I need to take notes on how to be so graceful as that, ichard 
To add to the first point: singular they is older than singular you. So if person doesn't accept singular they, I ask them if they use "thou" and "thee" when talking to a single person. :D
Ahaha, English is weird :p
thou arst joking
tl;dr xd
jk read it all
what did the tuple say to the string
what
K
WAIT NO
THATS NOT THE PUNCH
ITS I CANT CHANGE MY SELF
AAAAAAA SUCH A GOOD JOKE WASTED
D:
xD
Hm yess
But string is also immutable. Did you mean tuple and list? 
lol gnu
GNU. Talented people, I don't eat their arguments though
Like how Richard eats his own foot
they pretty much trash talk anything proprietary
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).
i think they had an article on tpm too
Please take note Mozilla collects data too in spite of being a privacy caring company
85 votes and 101 comments so far on Reddit
I dont use mozilla
I'm aware KDE also collects data too via telemetry
discord collects data too
yup
google does that too
unfortunately
it's opt in iirc
you can use GNU alternatives
Last time I tried something from GNU beyond the GCC it was GIMP, and boy was the experience buggy
you still wouldn't escape it completely
Well, I use LLVM instead of GCC too
but
Simple undo history keeps bringing unexpected behavior, I gave up on it
yes
unless... you use tor for everything(?)
lol
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
i would never do that
but I still use google and chrome for normal searching
i need my cookies and history. They are helpful
no need cookies and history for discord
yeah because you can't get them
I fixed the sentence
Cookies are a must for me, how else would I conveniently not have to type in my login details. I can live without history but they're not important for tracking anyways
I cant tolerate people that gives their ass to google for free
Those people are also bad. I'm honestly more concerned about Google as a monopoly rather than their privacy controversies
huh? if you can live with logging in everytime, resetting gif/emote/sticker preferences, last seen channel etc ig
I mostly save Gifs locally
and I use colons to search emojis
like
:sunglasses:
๐
I dont use stickers anyways
colons have priority auto fill using cookies too
That's why FLoC got so much hate
:thi: might get auto-filled to :think: instead of :this: if you just select the first option without cookies etc
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
so what
write the full name then
๐ค

That's why I don't buy the Audacity controversy after reading their policy
yeah i'm just lazy ig but i hate to trade off comfort with not-so-guaranteed privacy
I'm still gonna use it
The best privacy is to not be connected at all, but if you do need to then anonymity is a good first step
I wish computers didnt even invented
It's hard to collect data on something that's already anonymous
As a programmer I seriously wish that
says this while using one
Too bad they're inevitable. Humans were too lazy to deal with Math by hand so they made machines that did for them
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
I hope doomsdays comes before Matrix comes real
AI probably isn't gonna get that advanced any time soon
They're still bound by the rules of their own logic
It'll
It's already pretty advanced
they can impersonate humans already
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
we are very very far away from actually general AI. And it is getting too expensive to get too many people working on it
I'd say we've gotten to a point where we can become even more lazy with our lives
a self programming AI 
But not like some Scifi level crap
imagine ai self programming ai in a loop
that would be fun ngl
i'd love to see something like that in 20-30 years
github, having access to GPT3, couldn't get a good programming AI working. I wouldn't be worried in the near future at least.
co pilot 
I never got appealed to the idea of AI assisted autocompletion
same
it seems really neat for people writing CRUD apps
it's kinda bloat for users like me
I can see the merit of it, but it is no closer to replacing programmers than tabnine was
1.) How would I actually learn how to program if I let something else do it for me
2.) How am I sure their code is good other than to manually check, and just to be sure then I might as well do it myself
1b.) I just don't want to be too dependent on them
ig i might it have an usecase for it in a real job with deadlines ad stuff
@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
When you put it that way, then yes

