#ot2-the-original-pubsta

652 messages · Page 11 of 1

rotund swallow
#

ik that, i was just confused with the problem

ancient whale
#

it's not that bad tbh

#

you don't need to print in codewars tho

rotund swallow
#

ye

celest field
#

Even if you do, you can't pass

ancient whale
#

unless you want to 'debug' or whatever

#

idk imo the editor allows you to self-correct your more common mistakes

celest field
#

I use VSC for that

ancient whale
#

compared to having a linter + auto-completion

celest field
#

But I don't like creating unncessary folder/files. It's just more junk. That's why I use repl.it

#

Then I throw them away lol

ancient whale
#

ah ya I use the idle for that

rotund swallow
#

i don't like the question placement in their website

ancient whale
#

some of the questions are awfully worded too

celest field
#

which one?

#

oh

#

imo codewars are fun. Hackerrank/leetcode is practice.

#

I guess it's something to do with the.. web design

ancient whale
#

actually codewars helped get me into golfing quite a bit

ancient whale
celest field
#

What do you code in? Python?

ancient whale
#

yep

celest field
#

Same

ancient whale
#

mainly

celest field
#

I just learned C++ and JS. But I like to solve in Python

#

I mean solving algos in C++ or JS daily seems a waste of time.

ancient whale
#

i'd probably use c++ if I needed speed for it

celest field
#

Ya

#

It's funny I have to use C++ in college and JS for web develpoment in my own time. 2 different things.

ancient whale
#

or java if I wanted to punish myself

celest field
#

Noo java

wicked hollow
#

String manipulation in C++ isn't fun, but most other coding puzzle stuff in it isn't really much worse than in Python, and it runs way faster

ancient whale
#

I think I'm doing java for at least the next 2 yrs
manipulation in cpp isn't fun period smil

celest field
#

What did you guys do with C++? So far I just did homework with basic OOP. No project in C++. Maybe I will try Qt

#

We either choose C++ or Java for next 2 years.

ancient whale
#

wtf

#

I wish

wicked hollow
#

I'm a professional C++ dev. I do a lot with it, heh

celest field
#

Oh nice

#

So should I try Qt?? Not sure what to do

#

Tho I'm doing web development at the moment.

ancient whale
#

UE 🙃

wicked hollow
#

Qt's nice, but GUIs are way, way easier in dynamic languages

#

If I had to use C++ to make a GUI I'd pick Qt, but I wouldn't choose to make a GUI in C++ if I could avoid it

celest field
#

I see

wicked hollow
#

Try making a web server, if you're looking for a project.

celest field
#

I'm just forcing myself to do something in C++ lol. I'm just solving in Python and do web develpment with React.js

rotund swallow
#

what do u use c++ for?

celest field
#

web framework?

wicked hollow
#

Browsers still speak HTTP 1.0, and it's simple enough you can implement it yourself with minimal effort.

rotund swallow
#

wdym web framewrok

celest field
#

I mean make a web server with what?

#

Like.. I use react.js

wicked hollow
#

From scratch, in C++

celest field
#

oof

wicked hollow
#

It's really not so bad.

celest field
#

I'm already learning web development with plain HTML/CSS and JS + React.js. Maybe Django/Flash for back-end. I don't think I will do it any time soon.

ancient whale
#

do yall know anything about deno.js?

celest field
#

nope

#

Looks like it's good for NodeJS main problems

#

like packages. still reading on it

wicked hollow
#

HTTP 1.0 is a pretty simple protocol. You start a server that listens on port 8080 or whatever. User types http://localhost:8080/foo.txt in their browser. Browser sends you GET /foo.txt HTTP/1.1, and then the request headers (one per line) and then an empty line. It waits for you to send a response. You respond with something like

HTTP/1.0 200 OK
Content-type: text/plain

hello world

The browser shows a page that just says "hello world"

#

You can implement a dead simple, "technically an HTTP server" HTTP server in about 10 lines of code.

ancient whale
#

in cpp?

celest field
#

same question

wicked hollow
#

In pretty much any language, but yeah.

ancient whale
#

hm I should probably get into that then

#

I want to start freelancing but it seems like a majority of the jobs are web dev

#

or db/data stuff ig

celest field
#

Hmm kinda same. I wanna learn front-end, database, and web server.

wicked hollow
#

HTTP has a big spec, so to make a fully conformant web server, even for HTTP 1.0, takes a lot of work. Making a toy one that works in practice with real browsers is easy, though.

celest field
#

so writing your own web server is like web hosting, the server is on your computer?

wicked hollow
#

Yep

#

A web server is just a process that listens for incoming HTTP requests and processes them.

celest field
#

I wondered about that sometimes. But why not just pay for a web host?

wicked hollow
#

Because you want to learn how backend development works.

celest field
#

Hmm looks fun

wicked hollow
#

There's no practical reason to write an HTTP server from scratch

#

Because you'd realistically instead use Apache or nginx or uwsgi or haproxy or something. But all of those are implemented in C

celest field
#

with React.js. I ran a local server to see the webpages. Tho it's only available on my computer. Maybe there's a way to make it available to all computers on same network.

ancient whale
#

isn't that what a local server is?

celest field
#

yeah

#

what if you want to run localhost:3000 on your phone too?

wicked hollow
celest field
#

Actually just set up a web server on raspberry pi like NAS>

wicked hollow
somber belfry
#

you will have to port forward

wicked hollow
#

But otherwise, yeah, works fine.

somber belfry
#

and then do something something

#

I guess

wicked hollow
#

You'd need to port forward to reach it from the internet

celest field
#

what do they call this kind of stuff? web server, port forward, IP address, etc.

somber belfry
#

from the wide internet?

wicked hollow
#

For reaching it from the LAN, over WiFi, you wouldn't

somber belfry
#

hold on lemme think

celest field
#

Yeah. I thought there's better name for it?

#

I guess I imagined networking, working with hardwares

somber belfry
#

so over LAN, you just need the local IP of the device you want to connect?

wicked hollow
#

Yep. And the machine's firewall needs to not reject your connection, which it may want to do by default

#

So worst case scenario you need to click a box in control panel to say "let people connect to let 9000 on this machine from the local network"

wicked hollow
somber belfry
#

to use the hardware

celest field
#

ik. I thought there's another name for that

somber belfry
#

IT, maybe

celest field
#

IT, I guess

wicked hollow
#

Stringing Ethernet cables between machines is definitely networking, but so is creating a TCP server.

#

And HTTP is an example of an "application layer network protocol"

somber belfry
#

An application layer protocol defines how application processes (clients and servers), running on different end systems, pass messages to each other.

#

hmm, interesting

#

what about TCP and UDP?

#

are they used by HTTP at the low level?

wicked hollow
#

Yeah, application layer protocols are built on top of transport layer protocols.

#

HTTP is built on top of TCP, which is built on top of IP, which sent over something like Ethernet

somber belfry
#

isn't TCP a type of IP?

#

i mean, even HTTP is a type of IP

wicked hollow
#

Yes.

somber belfry
#

or is there this father of all IP

#

which is referred to as IP

wicked hollow
#

Yes.

celest field
#

Vint Cerf. Widely known as a “Father of the Internet,” Cerf is the co-designer of the TCP/IP protocols and the architecture of the Internet.

#

Cool.

wicked hollow
#

IP is an actual protocol used for moving data between machines. TCP and UDP are built on top of it and use it to move their data around.

somber belfry
#

🤔

#

Does IP have checking for data loss(?) ? or is it too rudimentary?

wicked hollow
#

it does not, nor does UDP

somber belfry
#

UDP does have checking, but doesn't do any action even if there are errors

#

I think it has a parity checksum

wicked hollow
#

IP checks for corruption, in a rudimentary way, but that's it

#

Yep, CRC checksum

#

But a checksum is different from data loss.

somber belfry
#

you can use a checksum to determine if there is a data loss

#

oh wait

wicked hollow
#

A checksum tells you whether some packet that did arrive is (probably) valid. It can't tell you if a packet was sent but never arrived

somber belfry
#

that is done using flags, right?

wicked hollow
#

Checking for missing packets?

somber belfry
#

yeah, I think

#

in the header

#

there is this value that gets incremented

wicked hollow
#

It's done using an entirely different protocol.

somber belfry
#

or gets swtiched from 0 to 1

#

and vice versa

#

oh

wicked hollow
#

IP gives packets, which may or may not arrive. TCP builds a stream oriented abstraction on top of that, including sequence numbers in each packet it sends, which allows the receiver to detect if any were missed, and to ask the sender to resend then

somber belfry
wicked hollow
#

That's TCP.

somber belfry
#

oh, were you talking about IP exclusively?

wicked hollow
#

IP doesn't, but protocols implemented on top of it, like TCP, do

#

^ That's IP.

wicked hollow
#

Note that IP has only a source IP address and a destination IP address, but nothing about port numbers. TCP has port numbers, but no IP addresses.

somber belfry
#

ah

wicked hollow
#

That's because TCP is sent over IP. It uses IP to reach the remote machine, and once the packets get there, the TCP protocol driver on the remote machine takes care of getting them to the right process on that machine.

#

The IP layer deals with moving stuff from one machine to another, the TCP or UDP layer is from one process to another

somber belfry
#

oh, that's an interesting insight I didn't have before

#

I know that you can use TCP to communicate between process within the same machine

#

but what you just said blew my mind

#

lol

#

it all makes sense now

wicked hollow
#

Yeah, that's still sent over IP, it's just a special case. In the IP packet, the source IP address and destination IP address are the same, so the machine routes the packet to itself.

somber belfry
#

yeah

#

but you need TCP to route it to the correct process

#

and will this process be listening on the specified port?

wicked hollow
#

If it isn't, the tcp layer says "no one accepted the connection" and your client gets a "connection refused" error

somber belfry
#

ah

#

thank you godlygeek for taking the time to explain stuff to me

#

I gotta go now

jovial island
#

hello

#

I need some SWE advice here

lucid osprey
#

what does swe mean?

nova ember
#

Swedish?

jovial island
#

haha

slow valve
#

lol

somber belfry
#

Software Engineering Swedish Wrestling Entertainment

somber belfry
somber belfry
#

🇸🇪

fluid plank
nova ember
#

Who is that?

fluid plank
#

Kasbo. idk if he really is swedish though but i think he is

nova ember
#

Hmmm, haven’t heard of him

#

Maybe you’re more Swedish than I, deep inside

fluid plank
#

Carl Garsbo (born 12 October 1995), better known by his stage name Kasbo, is an electronic record producer and DJ, originating from Gothenburg, Sweden.

#

oh he is from sweden

nova ember
#

Ooo nice

#

I’m actually quite close to Gothenburg as well

shrewd lance
#

Royal Republic are from Malmö I believe (god I hope I spelled that right)

nova ember
#

incident_actioned Spellcheck passed

shrewd lance
#

nice

lapis night
#

noice

fluid plank
#

I like his music, they sound so sad but it is good music to my ears

tranquil ridge
#

hmm what is the database adapter for postgres in python

#

like for sql its sqlite3

#

i have used asyncpg but i want a non-async one rn

drifting shell
#

'-'

rotund swallow
#

i spelled that wrong, but the name is something like that

tranquil ridge
#

ye got it

cloud iris
somber belfry
#

@halcyon tiger

from youtube_api import YoutubeDataApi
yt = YouTubeDataAPI(YT_KEY)
searches = yt.search(q='alexandria ocasio-cortez',
                     max_results=1)
print(searches[0]['video_title'])

and you are done

halcyon tiger
#

ok

#

that's bery helpful

somber belfry
#

yep, it's handy

halcyon tiger
#

what retrieves the video link?

somber belfry
#
print(searches[0])

will give something like

{'video_id': 'LlillsHgcaw',
 'channel_title': 'Fox News',
 'channel_id': 'UCXIJgqnII2ZOINSWNOGFThA',
 'video_publish_date': datetime.datetime(2019, 2, 19, 4, 57, 51),
 'video_title': 'Rep. Alexandria Ocasio-Cortez taken to task by fellow progressives',
 'video_description': 'New York City Mayor Bill de Blasio criticizes Alexandria Ocasio-Cortez over her opposition to the Amazon deal.',
 'video_category': None,
 'video_thumbnail': 'https://i.ytimg.com/vi/LlillsHgcaw/hqdefault.jpg',
 'collection_date': datetime.datetime(2019, 2, 20, 14, 48, 19, 487877)}
halcyon tiger
#

video id

#

thats it

somber belfry
#

I guess you can reconstruct it from the video id or something

#

yeah

halcyon tiger
#

I add that onto the link

#

does the api key go in quotations?

#

im getting this error

#
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: NameError: name 'YouTubeDataApi' is not defined

#

even though it's imported

somber belfry
halcyon tiger
#

ok

#

so it does

somber belfry
halcyon tiger
#

I think I already got one

#

yep

#

I have

#

im still getting this error

#
  raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: NameError: name 'YouTubeDataApi' is not defined

somber belfry
#

try the code without the discord.py in a standalone script

#

and see if it works

#

and get used to it

#

then, try to integrate it with your bot

halcyon tiger
#

oik

#

ok

somber belfry
#

hey, Imma head to sleep

#

if it still doesn't work, claim a help channel

halcyon tiger
#

still doesnt work

storm birch
#

check your spelling as well

#

I would expect it to be YoutubeDataApi not YouTubeDataApi

#

but they also appear to have no docs on pypi

celest field
#

looks like same spelling

#

css flexbox is amazing.

storm birch
#

flexbox has been life changing

celest field
#

I should've learnt it before I did my projects lmao.

nova ember
celest field
#

lol

nova ember
#

Lovely

celest field
#

My favorite's Product landing page.

celest field
#

dang, justify-content: left; is so much better than float: left;

nova ember
#

Yeahh

celest field
#

Actually I can use both.

#

Im glad I learned css flexbox because I can work 3x faster.

nova ember
#

Yeah, flexbox is nice

celest field
#

Now I'm building Technical documentation page on css flexbox lol

#

wow I realized I'm good enough to make a cube with css.

celest field
toxic tendon
#

that's pretty janky lol

celest field
#

getting the main content on the right from navbar is so annoying. I had to nest navbar and main tags so I can use display: flex;

#

idk if there's other way around this.

celest field
celest field
#

It's done.

#

I couldn't figure out how to turn vertical navbar into "block element". display: block doesn't work. Now I have to code hardcore for vary screen sizes.

#

Nvm. I made the navbar disappear under 550px wide.

steel eagle
#

Yeah I hate css with a passion

celest field
#

I just need to do 5-10+ more projects like this, then css will be easy.

#

It took me 4+ hours to do this project.

#

Not bad, I guess.

worldly berry
celest field
#

huh I found my old projects from 2016 on codepen.

worldly berry
#

yep

celest field
#

oof

#

Unfortunately I can't fix it. It's one of my old accounts.

worldly berry
#

lol

#

it's k

celest field
#

One more project to go before I get my Responsive Web Design Cert.

celest field
slow shale
#

A horrible cube?

celest field
#

Yeah lol

#

I made it but It hurts my eyes

somber belfry
storm birch
#

good morning, I assume haha

somber belfry
storm birch
#

hey would you look at that

#

real professionals we are dealing with

somber belfry
#

good morning Fisher

celest field
#

lol

storm birch
#

their docs were not linked on pypi, so I sort of expected this of them lol

somber belfry
#

It not linked in the sidebar

#

but it was in the content/ body/ description

storm birch
#

oh, I see. They had a link to docs that I clinked and it gave me a 404, that is as far as I got

#

I would rather write my own wrapper than spend even a second more trying to navigate theirs, haha

celest field
#

my portfolio is looking great

celest field
#

5 minutes and I will get Responsive Web Design Cert. from freeCodecamp

somber belfry
#

yeahhhh 🔥

celest field
#

Completed in 3 days.

somber belfry
#

nicee

celest field
#

I might've sacrificed my study.

#

jk

grizzled sinew
#

new desktop icons

#

???

#

r they good?

celest field
#

did you set it up?

#

if anyone can easily solve algos like on codewars/hackerrank. You should do 5 JavaScript Algorithms and get JavaScript Algorithms and Data Structures Projects Certification from freeCodeCamp.

fluid plank
toxic tendon
#

arguably not

jovial island
#

@jovial island can I dm you ?

#

yes

wheat aurora
#

I am angry and happy at how good MGK's album is. It's so solid.

steel eagle
#

Yeah I keep hearing that

wheat aurora
#

Pop punk back from the dead with slightly less whine

fleet stratus
unreal sigil
#

huh

#

Wait am I crazy or did those photos get deleted

rich pier
#

no i deleted them

#

i was done transferring

limber pollen
fluid plank
#

now i wonder why this otn sounds too realistic

wheat aurora
jovial island
#

@storm birch sorry for the ping but whats up with yours and vester's nickname? lol

storm birch
#

tbh, I have no idea, other people did it, so I followed the bandwagon

jovial island
#

lol

#

i like it

storm birch
jovial island
#

unfortunately my name doesnt have much characters that can be digitized

storm birch
#

mudk19

wheat aurora
#

It started with f1re and fisk switching to fire and f1sk, then everyone else started adding in numbers >_>

jovial island
#

forgot about the P

worldly berry
#

Ah yes, trend followers

jovial island
#

r4nd0md3v

storm birch
#

pfffft, who follows trends, like... be original, gosh /s

worldly berry
#

... says F15h3r

grizzled sinew
#

lmfao

ancient whale
#

anyone know where the code for except is?
is it compiled already + if it is, is the c code available anywhere?

tranquil ridge
#

is python even open source

ancient whale
#

I believe so?

#

it's got an open source license soo smil

limber pollen
#

I'll try to skim through CPython to find it

ancient whale
#

where's that located?

wheat aurora
ancient whale
#

ty

limber pollen
ancient whale
#

oh bless your heart I was about to go through 100 pages of search results 😄

#

good thing I don't know any c

limber pollen
#

I'm not that familiar with the internals of CPython, but my guess is that it queries the exception stack and pops the exceptions, making sure that other bytecode instructions are able to run

ancient whale
#

oh rip I thought this would be easier

#

not that I thought it would be easy

limber pollen
#

Are you writing a C extension?

ancient whale
#

I was thinking of adding conditional functionality to except ei:

try:
  a = int(input("> "))
except ValueError:
  print("You done goofed")
except a < 0:
  print("Think bigger")```
limber pollen
#

Interesting

somber belfry
#

huh

#

no need

limber pollen
#

But I guess you could just use else and check there

upbeat sandal
#

As an aside, the available patterns for validating user input are pretty ugly

#
while True:
    try: ...
    except: continue
    else: break
#

you basically have to do something like that

ancient whale
#

maybe idrk what that means
I was thinking, if there's a conditional exception - evaluate try + if there's an exception continue as normal -> check the conditional exception after the try has finished

#

well

#
while True:
  try: ...
  except: continue
  else:
    if condition: continue```
upbeat sandal
#

does the patma pep account for the possibility that an expression will cause an error?

ancient whale
#

what's the patma pep?

upbeat sandal
#

pattern matching

ancient whale
#

ah

upbeat sandal
#

the author is a member of this discord

#

I'm very tempted to ping him

ancient whale
#

actually ya, would you have to wrap the whole thing in a try block?

#

do itt

upbeat sandal
#

If we're going to have patma, I think an exception should be one of the cases you can have

ancient whale
#

my thought is tho, I've got enough cases where I've got:

while condition:
  try:
    var = ...
    if var ...: ...
    elif var ...: ...```
#

on top of the possible exceptions

#

it'd be cleaner to write:

while condition:
  try:
    var = ...
  except exceptions:
    ...
  except (var condition or/and var condition):
    ...
somber belfry
ancient whale
#

and separate conditions into their own except if they differ from each other

upbeat sandal
#

I think

somber belfry
#

I remember him from the Core Dev FAQ video

#

I haven't seen Brandt here since the Sprint.

#

Do the private sprint channels still exist?

upbeat sandal
upbeat sandal
somber belfry
#

oh

upbeat sandal
#

it's only admins+ who can see all channels, I think

#

we know they have a horrible admin cabal.

somber belfry
#

yeah, if you have administrator permission turned on, there is no restriction on the channels you can see

ancient whale
#

what's Py_XDECREF?

#

actually if anyone's got a hot min, I can't understand a thing in this other than what a pointer is

#

doesn't help that I don't know c

somber belfry
#

it decrements the reference count of an object if ob is not NULL

#

I don't know what that means^

#

oh wait, that sounds like checking to see if a list is empty before popping

ancient whale
#
type = exc_info->exc_type;
value = exc_info->exc_value;
traceback = exc_info->exc_traceback;
exc_info->exc_type = POP();
exc_info->exc_value = POP();
exc_info->exc_traceback = POP();
Py_XDECREF(type);
Py_XDECREF(value);
Py_XDECREF(traceback);```
so this is checking if there is a type+value+traceback?
#

ohh or does it allow the type+value+traceback to be sent to gc?

limber pollen
#

Py_XDECREF decreases the refcount for the type, value, and traceback objects in memory

#

If ever that refcount falls to zero, they're cleaned up

#

You can see that in action here:

>>> try:
...    raise TypeError("Type system go brrr")
... except Exception:
...    print(sys.exc_info())
...
(<class 'TypeError'>, TypeError('Type system go brrr'), <traceback object at 0x7f0797135bc0>)
#

I assume what it's doing is basically setting exc_info to whatever the exception currently is

ancient whale
#

see that's the part that confuses me, seemingly nothing is done with exc_info

#

oh wait no I found it

limber pollen
#

It updates exc_info with whatever exception is raised, deallocating the values

ancient whale
#

so it pushes the values to the stack, if there's no type -> it's set to None, then it's sent to the handler?

#

what ever that is

#

actually I don't think this would be impossible to do, I don't really have to worry about making sure it can handle the exception, just that it bypasses the check for it being an invalid error

fluid plank
#

we arent friends either

#

hmph

ancient whale
#

huh?

keen burrow
#

Wrong channel perhaps?

ancient whale
#

I was gonna say, sorry if my extension idea offends you 😄

keen burrow
#

Right, the channel name

ancient whale
#

ohh

tranquil ridge
#

@keen burrow ur name

celest field
#

at last

keen burrow
#

Dunno, ask @nova ember

celest field
#

Hmm

tranquil ridge
#

oh lol

somber belfry
#

hey, @nova ember , I'm asking you 🤨

celest field
#

So it's part of gurcult too?

somber belfry
#

no

nova ember
#

Hello?

keen burrow
#

No idea

tranquil ridge
#

hi

celest field
#

omg I forgot to spell

somber belfry
keen burrow
#

that was probably something from the staff meeting

nova ember
#

The numbers in the names?

somber belfry
#

It started with f1re and f1sk right?

tranquil ridge
#

numkult

celest field
#

lol

rotund swallow
#

what's up with numbers in the name

keen burrow
#

Who knows

tranquil ridge
#

numkult

rotund swallow
#

i think one of the helpers did that

celest field
#

Inheritanc-3♦

rotund swallow
#

ye supermazingcoder did that

somber belfry
keen burrow
#

I don’t haha

somber belfry
tranquil ridge
keen burrow
#

¯_(ツ)_/¯

nova ember
keen burrow
#

So we are all just blindly following the trend?

nova ember
keen burrow
#

Also yesterday f1re was fire and fisk was f1sk

#

It distracted me haha

celest field
#

noice

nova ember
#

Yeah, and step and joe also was

#

And I didn’t have time for the staff meeting lemon_pensive

limber pollen
#

Okay this is actually atrocius

celest field
#

noo

limber pollen
#

Better

#

Now it's just hieroglyphs

keen burrow
#

The last one doesn’t render on my iPad haha

celest field
#

That's actually easier to read

nova ember
keen burrow
#

But I’m on the web client lemon_smug

#

and it is atrocious

limber pollen
nova ember
#

Interesting

celest field
#

ew

ancient whale
#

that's..um..very white

keen burrow
#

It is pure

limber pollen
#

Sure is

nova ember
#

!rule 3 ahem @celest field

clever salmonBOT
#

3. Listen to and respect staff members and their instructions.

celest field
#

Too bright

#

I couldn't tell if it was a staff member.

nova ember
limber pollen
#

~~Then perish hyperlemon ~~

nova ember
#

Time to swing the mighty

somber belfry
#

oh wait, that doesn't sound sfw

keen burrow
#

It does not haha

nova ember
somber belfry
#

hmm, this emoji exists

keen burrow
#

It sadly does

shrewd lance
#

Swing the mighty cucumber of world domination

junior storm
somber belfry
#

Dude, your pfp is solid white

celest field
#

lol

somber belfry
#

it's like a stage light

junior storm
#

Yes, because little white doesn't hurt anyone

somber belfry
#

¯_(ツ)_/¯

junior storm
#

Sorry reallyreallysad

tranquil ridge
#

discord white is just too much

celest field
#

They should just remove it

tranquil ridge
#

like i like white themes in general but not discord at all

#

it seems like a joke

ancient whale
#

discord cream?

#

(no innuendo intended don't ban me plz)

celest field
#

there was no need lol

ancient whale
#

na ik someone would've commented

celest field
#

probably. I was gonna say something with bagel and cream. Didn't know how to phrase it right.

lethal walrus
#

tries to import qiskit on python discord bot

i-

slow valve
ancient whale
#

khan academy is usually really good

#

I like 3b1b's better tho because he showed it visually

#

you should read some of the comments on them

slow valve
#

what should I follow first?

ancient whale
#

personally I watched 3b's videos and took notes + stopped and made sure I knew what I was talking about + did the questions he gives

#

and it took me like 3 hrs

#

idk tho I'm not super well versed in it, I just know enough for neural networks ¯_(ツ)_/¯

slow valve
#

hm okay

ancient whale
#

also a lot of the other smaller things are actually used in preprocessing/stats

#

also also are you actually using this for neural networks cause I'm just kind of assuming that?

ancient whale
#

ah ignore that last comment then, learn it all

slow valve
#

okay

#

But ik it is used is stats too

#

did you make notes?

ancient whale
#

euclidean distant/eigenvalues/etc ya

#

I did

slow valve
#

Just curios do you use different color pens?

ancient whale
#

no I write small and neat

#

I'd say well organized?

slow valve
#

I use 2 colored pens

ancient whale
#

at least well enough that I can go through my thought process again

#

ya I could never get into that

slow valve
#

one for headings/subheadings/subsubheadings and second for content

ancient whale
#

ah see I just use different underlines or heading/subheading/etc

slow valve
#

ok

ancient whale
#

topics will be :'ed, content is small and as close as possible to the same topic

#

like physically

#

if i've got a topic that's half a page and I know the next one is going to bleed over I'll just use another page

slow valve
#

I will go study now cya

ancient whale
#

have fun

slow valve
#

@ancient whale I was inverting 3x3 matrix can't even think of doing 4x4 lol

#

well 3x3 is actually not that bad but still

jovial island
#

?

#

write a program to calculate determinant, adjacent of matrix

#

then adj(M) / det(M) == M inverse

fluid plank
#

imma share it tomorrow

#

it does not only calculate determinants

#

it also checks if there is an inverse

slow valve
#

@jovial island first you find the matrix of minors then matrix of cofactors then adjecent of the matrix and then the determinant and then finally the inverse

#

but you can do the other way too

#

with augmented matrices

upbeat sandal
#

@feral quail there's a config file for the whole bot that has a lot of content in it, like which channels have which IDs, which role IDs have mod privileges as far as we're concerned, etc. It also has constants like how many minutes of inactivity before a help channel closes or how many available channels there should be at a time.

#

Though as far as I know those two constants have always been 30 and 2. Though we could change them at any time in the config file

feral quail
upbeat sandal
feral quail
#

do you know what the config setting in this server currently is for 'max' (so the max amount of duplicated messages/spammed messages)?

upbeat sandal
feral quail
#

or we can just test it :p (lets rather not do that)

upbeat sandal
#

I can't because the bot doesn't check messages from staff members for that, I don't think.

feral quail
#

i mean i'm not staff hence why

#

but i'd rather not have me spamming tracked on my account :p

#

and i don't think it's exactly appreciated if people spam just to test

feral quail
#

unless you think it's not really worth the trouble for my curious little mind :p

worldly berry
#

I konw the limit for emojis

#

30 emojis in 10 seconds

#

gets you muted

#

for 10 minutes

storm birch
#

lol, from experience, I see

worldly berry
#

yep

viral hare
#

so 30 emojis gets u muted? ima try

clever salmonBOT
#

failmail :ok_hand: applied mute to @viral hare until 2020-12-15 04:02 (9 minutes and 59 seconds) (reason: discord_emojis rule: sent 29 emojis in 10s).

upbeat sandal
#

@viral hare you could have verified that this would happen by checking the source code of the bot.

#

!unmute 746833506629582870

clever salmonBOT
#

failmail :ok_hand: pardoned infraction mute for @viral hare.

viral hare
#

guess a tighter bound is 29 instead of 30

median blade
#

OUI OUI

ancient whale
slow valve
#

❤️

#

numpy life saver

#

@ancient whale do you use Reduced Row Echelon method or the simple one

#

for inverting

ancient whale
#

huh?

slow valve
#

3x3

ancient whale
#

I can't say I know the difference

slow valve
#

I mean the Gauss Jordan Elimination Method

ancient whale
#

so probably the simple one?

slow valve
#

Gauss Jordan Elimination Method is like making an augmented matrix and working your way out

ancient whale
#

hm ya I just had a look at it
it looks like it'd be easier for bigger matrices?

#

especially higher dimension ones

slow valve
#

but you need to think lol

ancient whale
#

well that's math in a nutshell

slow valve
#

like you need to make the former matrix an identity matrix which is Reduced row echelon form

ancient whale
#

idk I honestly don't do them by hand any more

#

np.linalg.inv()

slow valve
rotund swallow
#

the colours in light mode look so weird

rotund swallow
slow valve
#

like creates venv and all that stuff

#

it has option for Django

#

like you click on it and click create it sets up everything

slow valve
rotund swallow
#

i wasn't talking about that

slow valve
#

ok

slow valve
ancient whale
#

doesn't mean you have to do it smil

celest field
#

Computing inverse of a matrix. Interesting.

slow valve
#

yea okay xD

celest field
#

I thought linalg was made up.

slow valve
#

but if you know how to do it you feel more confident and I like to do math by hand @ancient whale

slow valve
celest field
#

I thought

slow valve
#

okay

slow valve
#

you feel more confident

ancient whale
#
  • you actually know what you have to do rather than just trying things out until you get the right ans
celest field
#

What's up changing your name as pd, as tf yesterday, and as np before.

slow valve
#

import numpy as pd is convention okay

#

import numpy as tf is when you mess up bad

ancient whale
#

I wanted more chaos, np wasn't, tf just seemed dumb, but pd's close enough to numpy that it'll just confuse people

slow valve
#

import numpy as pip

ancient whale
#
import numpy as pd
import pandas as np```
slow valve
#

lol

celest field
#

I see

#
import tkinter as tiktok
ancient whale
#

also pandas is basically numpy+

#

gross no

#

at least choose something respectable plz

celest field
#

Do you mean choosing different library or "name"?

ancient whale
#

alias

celest field
#

relax. I have never used tkinter or anything.

ancient whale
#

tkinter isn't actually that bad from what I've seen

#

but i'd rather use pyside for a ui

#

kivy seems neat too

celest field
#

I see

slow valve
celest field
#

Is tiktok really that bad?

slow valve
#

REAL NERD do from tkinter import *

#

@celest field it's banned here so.....

#

you can guess

celest field
#

interesting...

slow valve
#

the main reason was that it's chinese app

celest field
#

for spying?

slow valve
#

uhhh

#

no

#

Most of the chinese apps are banned here

celest field
#

for what reason?

slow valve
#

bad inter relationships

#

or some reason revolving around that

#
India on Wednesday banned 118 more mobile apps with Chinese links, including the popular game PUBG, citing data privacy concerns and a threat to national security, taking the total count of Chinese-linked mobile apps banned by New Delhi to 224. India's move came amid fresh border tensions with China in eastern Ladakh.
```September 3 2020
celest field
#

Oh you were talking about India...

nova ember
#

@fervent plover it’s actually 5👀

fervent plover
#

is it now

#

it was 7

nova ember
#

It is?

#

Oh

#

Months until...?

fervent plover
nova ember
#

Hmm

#

Or what does it indicate?

tranquil ridge
#

2 + 1 is four

fervent plover
#

I guess you weren't around for the time it was added vest

nova ember
#

D:

#

Maybe I was and have just forgotten about it

celest field
#

What's going on?

nova ember
#

We’re discussing Senjan’s fantasies

celest field
#

lmao. I have never seen this mod before and reminds of someone else here. Did I miss something?

somber belfry
fervent plover
#

ot names having context when lemon_pensive

nova ember
#

Not againlemon_sentimental

somber belfry
#

senjan, dewit

fervent plover
#

@celest field am rather inactive in public channels lately and while I was active, majority of my activity was in #discord-bots

fervent plover
nova ember
celest field
#

I see. I would've assumed this someone else (forgot his/her name) became a mod from a member next day.

somber belfry
#

~~yes 🙌 ~~, err, I mean, OH nooo poor vester

nova ember
#

Hahaha

#

Bulli

fervent plover
#

@nova ember miscalculation of me saying that 7 is random number is context to that ot name

nova ember
#

I kind of remember that

#

Maybe

#

Not sure

somber belfry
#

Senjan has been here for a long while, Fel
They used to have different cat pfps

fervent plover
#

well of course you do you were there when it was added lol

somber belfry
#

Is this the second time this OT name has come up?

nova ember
#

Hahah, I’ve been there when lots of ot names were added

fervent plover
#

I've got no idea as I rarely use ot

nova ember
#

I’m close to my 40,000th message

unreal sigil
#

many messages

nova ember
#

Yeah

fervent plover
#

thats less than my amount of messages in my bot test server pithink

somber belfry
#

hey, you know what would be realllllllly funny right now?

unreal sigil
celest field
#

7,253 messages. COol.

somber belfry
fervent plover
#

sounds good to me lets do this

unreal sigil
#

I won't tell

#

do it

celest field
#

Who has highest number of messages here.

#

afaik. It's Joe.

clever salmonBOT
#

:failmail: 👌 applied ban to @nova ember

celest field
#

Huh

fervent plover
#

amazing

somber belfry
#

🇫

unreal sigil
somber belfry
#

@nova ember , you have been banned lemon_pensive

celest field
#

Does this phrase. "Low budget tech" makes sense?

unreal sigil
#

yep

slow valve
#

yus

celest field
#

Hmm. Good

somber belfry
unreal sigil
#

bisk has a few as well 👀

celest field
#

haha all that puns

somber belfry
#

Joe must have more if you include the staff channels

celest field
#

true

fervent plover
#

staff channels in most of cases don't addup to whole lot more

somber belfry
#

really?

unreal sigil
#

well

somber belfry
#

I think it'll add just enough

unreal sigil
fervent plover
#

well they are in borders of 50 or so k of messages in difference

unreal sigil
#

50k messages is quite a bit 👀

fervent plover
#

hmm is it

#

we got like 15.8mil messages

#

50k is not that much

somber belfry
#

senjan, can you do a quick from:joe#6000 for us?

#

🥺

celest field
#

haha Zig has 10k messages.

fervent plover
#

176975 @somber belfry

glad quest
#

Try lemon#0001

somber belfry
#

what about the admin channels lemon_smug

fervent plover
#

both lemon and joe are equally active

somber belfry
#

maybe joe spams in the admin channels to get his message count up

#

you never know

glad quest
#

Lemon only has 65k

celest field
#

Does anyone has highest number of messages than Joe?

somber belfry
#

It is difficult to determine

celest field
#

yep

somber belfry
#

Bisk has more messages than joe

fervent plover
#

there are members that have over 250k messages

celest field
#

I'm checking

#

Looks like bot is only way to determine.

#

Based on 2 Google searches. There might be other way.

somber belfry
#

That's not worth it

fervent plover
#

bots can't check that

#

only users can

celest field
#

acting as a user maybe? Tho that will take a long time.

#

I'm not doing it just to be clear.

fervent plover
#

wouldn't recommend you to do that

#

besides message count isn't too important, quality over quantity

somber belfry
#

yes ✨

#

damn, Fisher... I was checking your message count

storm birch
#

In contrast, I really need to get my message count up, so quality is going way down

somber belfry
#

and you started typing

storm birch
#

I was summoned, I felt a disturbance

somber belfry
#

👻

storm birch
#

haha

#

so guys, how's the weather been? 😏

celest field
#

It's cold

#

I can feel the breezing through door in garage

storm birch
#

yeah, it was really cold.

there is another cold front moving through too. My dog is very happy

celest field
#

I think being cold made me sleep longer. Cuz I just woke up at 2pm today.

storm birch
#

duuude, yeah, I slept until like noon, but I mostly did that to myself

somber belfry
#

I do not need to switch on the AC anymore

#

Keeping the window open is enough

celest field
#

Haha true, but it's probably colder over there.

#

Hmm

unreal sigil
storm birch
#

oh yeah, your winter is weird /s

somber belfry
#

your winter isn't working

#

have you tried switching it off and on again?

celest field
#

I think it's Celsius because F is purple which means recently clicked. Or is it Fahrenheit?

somber belfry
#

it's celsius

#

Jack is from Australia

#

They do the seasons wrong over there

celest field
#

lol I see

unreal sigil
#

It's summer 👀

celest field
#

So my math final is going open in 6 minutes (Changing am/pm). I think I should get it done.

#

nah forget it. Ima sleep

#

gn

tranquil ridge
ancient whale
#

it was like -25c in my hometown yesterday

slow valve
#

-

ancient whale
#

-?

tranquil ridge
#

in india negative temperature is a big thing

ancient whale
#

ah well good thing I'm not in india then

fluid plank
tranquil ridge
#

maybe

#

but for me main reason for cold is not himalya

#

i am in the west part, which is near the desert

#

and desert gets super hot, and super cold

fluid plank
#

deserts can get really cold though at night

#

like supa cold

tranquil ridge
#

yeah

#

its dry cold

fluid plank
#

because the lesser the moisture the faster it cools down

tranquil ridge
#

i put dumbells by my side to keep my blood circulating in the arms

fluid plank
#

i bet thats for punching the bullies

tranquil ridge
#

no lol

fluid plank
#

yes

#

xD

tranquil ridge
#

i dont like violence

fluid plank
#

i see

#

a pacifist

#

fist..

#

get it

#

xD

tranquil ridge
#

lmao

jovial island
#

I say it is six

pliant trench
#

hi

#

How can I use :

    UKismetSystemLibrary::PrintString();
#

in ue4

#

everything is ok but I don't know what to pass in the first parameter

primal comet
#

my bagels got moldly.

#

i don’t know what to do with myself

jovial island
#

eat them

#

duh

#

mold is just penicillium maybe it will cure corona

odd sphinx
#

uh

#

i suggest u dont eat mold

somber belfry
#

...or bats

jovial island
#

ok you are right

#

take that mold and

#

Into 500ml of cold tap water put 44.0 grams Lactose Monohydrate, 25.0 grams cornstarch, 3.0 grams sodium nitrate, 0.25 grams magnesium sulfate, 0.50 grams potassium phosphate mono, 2.75 grams glucose monohydrate, 0.044 grams zinc sulfate, 0.044 grams manganese sulfate. Then add enough cold tap water to make one liter. Use hydrochloric acid to adjust the pH to between 5.0 and 5.5.

#

now u extracted the penicillum from the molds

#

ez pz

somber belfry
#

🧑‍⚕️

jovial island
#

now eat it

#

;3

primal comet
#

i’m not gonna do that. also. wtf

wheat aurora
somber belfry
#

hahaha

storm birch
#

I miss bisk's milk-based puns

steel eagle
#

We talk lactose in this channel

worldly berry
#

welp ping

ancient whale
#

pong

storm birch
#

Hooray for pings

#

Bisk if you are reading this: I really need a pun in my life today, plz ping

#

I rigotta hear a cheese based pun

ancient whale
#

you're trying to milk it a bit too much

#

they're a bit cheesy, you feta stop

#

@storm birch go work on something that'll bring home the cheddar

#

these are udderly disgusting I need to whey my life choices out

jovial island
#

Wait, what happened to bisk

drifting venture
#

Nothing that I know of

#

They're still in the server

jovial island
#

Oh, the OT name 🤦

odd sphinx
#

lol

fluid plank
#

the ot name is bacc

#

time for bisk to attac

slow valve
#

xD

odd sphinx
#

interesting

celest field
#

where are bisk's milk based puns?

#

please. I'm expiring tomorrow.

tranquil ridge
celest field
#

ah it's DD/MM/YYYY over there ahha.

#

Is it? I remembered my english teacher hated it when I used DD/MM/YYYY so I stopped using it.

#

First time I saw the format was in a pawn shop in my country. I was soo confused and I asked my dad "Isn't it be December, why is it November here?".

#

I hate that picture

#

Do people say day-month over there?

#

That would be weird

#

It's 12 May 2020

#

Ah

limber pollen
#

mm/dd/yyyy sucks

celest field
#

idk man

#

When you look at the Calendar. It's Month > Day > Year right?

fluid plank
#

how will u even know what year it is if it is just mm/dd/yy

#

01/01/21 oh yeah year 1921 hahaha

celest field
#

Haha

#

we would say 01/01/1921 and 01/01/21 as in 2021.

#

Probably 2001

#

But we write January 1, 2001 you know?

fluid plank
#

lol

#

nah we just lazy

#

it takes a billion years to write january so

#

mhm

jovial island
#

Hey

#

Don't hate on MM/DD/YYYY that I prefer for some unknown reason

quaint summit
#

I wonder if there are historical records that are so old its ambiguous what century they came from because they use */yy instead of */yyyy

primal silo
#

Meow

slow shale
#

So it's established that mmddyyyy is plain wrong, and Americans are weird for using it?

smoky flame
#

Milk

jovial island
quaint summit
#

I mean like lets say for instance in the year 4587 AD assuming we still exist... someone finds a document that is dated xx/xx/97... He can try to figure out that the century is as a historian based on context, but assume there isnt enough.

jovial island
#

Yeah

#

Maybe in 100 years, English has changed vastly

#

And some historian says "this guy sound like he a 21st century guy"

#

"That's not how we currently speak English"

#

"English wasn't even invented in the 20th century" /s

quaint summit
#

In reality, unless there was some kind of event that caused a massive gap in knowledge, like a dark age where a period of history wasnt recorded for a long time...

#

there would most likely be enough context to figure it out if you were a history student

jovial island
#

Yeah

#

Imagine the internet being shut down

#

What is the post-mortem of that

#

Who will make Internet 2

#

Will there be Internet 2 even

dusky cliff
jovial island
#

Hear me out on my ideas for Internet 2

#

90% of the screen should be ads

dusky cliff
quaint summit
#

Yeah it definitely did.

jovial island
#

When you resize your browser, the page doesn't resize with it

quaint summit
#

Well, we already differentiate between the early web and "web 2.0"

jovial island
quaint summit
#

But yeah if the Internet went out, we would lost a lot of knowledge. The thing is, that knowledge would exist somewhere potentially to be uncovered. Just not easily.

jovial island
pure rune
#

Internet 2.21, cat pics, memes from 2000-2020 and no YouTube. It will be glorious

jovial island
#

Internet 3, just like from Windows 8 to 10

dusky cliff
jovial island
#

They'll sue us

#

Bunch of bastards

quaint summit
#

Technically, reinventing the TCP/IP would be on the level of reinventing the wheel. A new web makes more sense.

jovial island
#

Oh wait

quaint summit
#

Well, the web runs of http/s protocol. But there could be another protocol. Look into gopher. It's a niche thing only old open source guys do

dusky cliff
#

Considering the name of the channel, this discussion seems a bit... high level

jovial island
#

Kinda, I think

#

But I'll pursue on my idea of Internet 3

#

It's like the first one but better*

#

*maybe

#

But what could make it better

#

Internet 1 already does a lot

quaint summit
#

I mean, if what youre talking about is sending data across a network when you say "Internet" there is nothing to improve upon there

#

If what you mean is like... the culture of websites

#

I agree modern web culture sucks

jovial island
#

I'm pretty neutral on modern web culture, to be honest

quaint summit
#

I hate it. I dont want everything to be how it was or anything, I just want the fake info to serve ads culture to die.

#

The "Jump on my new start up app we havent even implemented basic security" culture to die

#

The "my entire application wont work next year because it depends on the entirety of all libs on npm to operate"

jovial island
#

I imagine dependency updating would suck lol

quaint summit
#

Most front end apps of today are not built to last like they used to be, Theyre just thrown together and rebuilt every time theybreak until they arent needed anymore

#

Usually their only purpose was to lure in users anyway

#

There are exceptions.

#

Big exceptions

#

But when I say most I mean the trash most people slap together.

jovial island
#

Reminds me of that 90-percent-is-crap quote

nova ember
#

@stable pier what are your milk based puns about?

jovial island
#

dontcowntonhimtoanswer

stable pier
#

don't have a cow man

jovial island
#

dammit he answered

neat light
#

Meh, I don't really believe that bisk has good puns. It's obvious

#

He's just milking it

dusky cliff
#

dammit

#

How dairy ou question his puns

slow valve
#

lol

stable pier
#

this all pail in comparison

#

it's udderly unbelievable you'd come at me with this

neat light
#

You don't beefoolin' me

stable pier
#

look

#

the only bee that produces milk

#

is a boo bee

neat light
#

There's no whey you can make better puns than me

stable pier
#

i don't see no 👻

slow valve
#

pun fight!

quaint summit
#

Puns are innately not good ... pydis_nope_py

#

You know what we should have? lemojipedia, explaining the use cases and meanings of various ones we have.

#

Like emojipedia

jovial island
#

I'm loving the beef between you two

quaint summit
#

Like that one, what does that express

slow valve
#

do they produce milk?

dusky cliff
jovial island
#

Moo knows?

slow valve
neat light
#

These puns are starting to get a bit semi-skimmed

stable pier
#

just let them scroll pasteurise

neat light
#

Ok, that one was beautiful haha

jovial island
#

I can see "pasteurize" being in bisk's mind for a solid hour now

#

Well done

slow valve
#

lol haha

stable pier
#

it's the big gun that won the previous milk pun war

#

such a shame you made me wheel(-of-cheese) it out again

#

like having to drop that second nuke

#

smh

#

too far.

#

coffee time.

tranquil ridge
#

teaaaaaaa

dusky cliff
tranquil ridge
#

not green

slow valve
#

that's the only tea emoji

neat light
#

Let's stop before this all goes sour

tranquil ridge
stable pier
#

not the correct usage of moot, your point is moot.

slow valve
#

moot?