#ot1-perplexing-regexing

1 messages ยท Page 511 of 1

graceful basin
#

fixed, now it actually writes to the cache

#

in practice, rather than writing all this messy logic, you can just write

from functools import cache
@cache
def fib(n):
    if n < 2:
        return n
    return fib(n - 1) + fib(n - 2)
simple sand
#

oh

graceful basin
#

so essentially, caching is useful when you have a complicated action that has the same result given the same parameters, but takes a while to perform.

simple sand
#

i see

#

thankyou

#

am less confused then when i asked the question

graceful basin
#

such as reading from RAM (under some circumstances), getting the user avatar, computing a factorial, ...

plucky ridge
#

God I love functools

frozen crane
#

actually no. Because you'd need a parameter. And an infinite fib generator wouldn't have any.

mellow spire
#

maybe using lru cache for the fib would be better

runic wigeon
#

@tame terrace 's beard is no less than a forest

inland wolf
#

we about to </2020>

#

for some people*

twin charm
#

html joke or smth? idk im not a web dev

rough sapphire
#

<2020>HELL</2020>

inland wolf
#

lll

#

lol*

scarlet wind
#

ablobhammer 2020

simple sand
#

docs really should have more examples

#

like docs with examples are so easy to understand

twin charm
#

yes!

#

agreed

uneven pine
#

Docs shouldn't have examples except for a quick start

#

That's what the. examples folder on a repo is for

graceful basin
#

examples can be more descriptive than just prose

fading hearth
#

hello

rough sapphire
#

2021 surprise me

uneven pine
#

Do not ask it that

round rose
#

You've doomed us all

acoustic moss
#

we're all gonna die

midnight dirge
#

Those in 2021 plz warm us of what's coming

simple sand
#
from future.2021 import people
people.say('any warnings for 2021'
molten surge
#

no

wheat lynx
#

Module names can't start with numbers

#

Plus missing closing parenthesis

#

Also people.say would imply you are getting people to say something, not saying something to them imo

scarlet wind
#

xD

rough sapphire
#

future.2021 crashed

acoustic moss
rough sapphire
#

continuing with 2020 lol

#

ah

uneven pine
#

I should go into my roommates computers and set it to say December 32nd 2020 instead of January 1st 2021

honest pawn
#

Lol

#

The year just keeps dragging on XD

rough sapphire
#

Yeah, it's nice

#

lol

#

I hate rereading stuff for the nth time where n=11

#

lol

#

I just can't get the concept of modules

#

oh?

#

what don't you understand

#

I understand you can like, import other python files and use their functions and variables and such

#

yeah

#

But I don't get dir()

#

dir just prints all the attributes of something

#

it's not only for modules

#

And I have no idea what import sys does either

#

sys is just part of the standard library

#

And also, why do some stuff have double underscores around their name?

#
This module provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter. It is always available.
rough sapphire
#

ooh

#

i actually have a good explanation of that

#

Right, thanks

#

its mostly just functions

#

that have that

#

Ohhh, okay

#

yeah

#

you don't really have to worry about the underscores, that's not part of modules

#

Alright, thanks

#

That clears things up

#

np

#

do you know the from import?

#
# instead of
import os
os.system

# you can do
from os import system
system
#

I think so. That's like, from a module, you import a specific function

#

Like from random import randint

#

Is that correct?

#

yeah

#

Ah, okay

#

what about the as import?

#

I don't know that

#
import numpy as np

# now "numpy" is called "np"
#

Ohhh

#
from random import randint as random_number

you can also use as on the from import

#

Ohhhh

#

That's pretty neat

#
from random import choice, randint
import random, sys

and the comma import

#

which you can also use with from

#

Is that another way of importing multiple modules?

#

yeah

#

Oh, okie

#
>>> import random, sys as r, s

also the weird gotcha is that you can't do this with the as import

#

python reads it as if you are doing

import (random), (sys as r), s
#

You seem to know a lot about Python if you're able to explain this well lol

#

yeah

#

How well do you think you know Python?

#

On a scale from 1 - 10?

#

uh i dont know

#

i know it but i always feel like i am not as knowledgeable as anyone here

#

you can't put it on a scale of 1-10

#

even the helpers / moderators / admins are learning a lot of new things @rough sapphire

#

like for example i helped mr hemlock some days ago

#

Yeah, that's true. You can't rank knowledge, because in some ways knowledge is infinite

#

yeah

#

python is basically infinite

#

Mhm

#

you can know python but python is easy

#

its the modules that are hard

#

I just can't wait to do really cool stuff

#

yeah

#

Right now I can make a Rock, Paper, Scissors game

#

But that's about it

#

that's nice

#

do you know about functions?

#

A little, not a lot

#
>>> def something(*args):
...    print(args)
>>> 
>>> something(1, 2, 3)
[1, 2, 3]
#

there are a lot of cool things about arguments

#

like that

#

Is that when you can pass in as many parameters as you want?

#

yeah

#

and wait

#
>>> def something(**kwargs):
...     print(kwargs)
>>> 
>>> something(test1 = 1, test2 = 2)
{"test1": 1, "test2": 2}
#

I don't know kwargs

#

yeah

#

I probably read it at some point and forgot - the name sounds familiar

#

yeah

#

that's likely

#

How long have you been using Python then?

#

3 years

#

Whoa

#

lol

oak rapids
#

GUYS ITS ONLY 37 mins till 2021

marsh crest
#

it is already 2021

#

I am german

#

I am this one

#

Only javascript and ruby

#

With my father

regal dagger
#

Reading tha docs

marsh crest
#

i really want to learn python

#

but i do not know how to start

#

where

#

what

royal lakeBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

marsh crest
#

thanks

#

oh

#

almost the same

#

here is copypaste

#

lol

#

i will try it

#

thx

#

not so expensive for a "learning game"

#

wow

#

that is a big deal

#

i have to learn python to solve one puzzle

#

cya

rough sapphire
#

scam imo

#

most people dont use things for 10+ months

#

which is exactly how that site makes profit off that lol

rough sapphire
#

Do you guys have flowchart maker recommendations?

rich moon
#

like uml diagram drawers?

rough sapphire
graceful basin
#

Libre office draw has the features for this, but idk how good it is

mild abyss
frozen thorn
#

Sup

#

@torn grove here

torn grove
#

oh here

#

ok so i just installed atom

#

and when i open, i try to create new folder

frozen thorn
#

Can you create a new tab (new file) then save it in Atom?

torn grove
#

but it asks for folder path

#

I didnt understand what u just said

frozen thorn
#

I don't use Atom but it would be easier just go to your folder in Desktop or file manager. Right-click on folder or file then you will see "Open with" option.

#

There should be Atom there

torn grove
#

I right click but no open with option

frozen thorn
#

Didn't know windows don't have that option lol

torn grove
#

lol

frozen thorn
torn grove
frozen thorn
#

Click on "File". Just make new file then save it. You should be able to write some code after

torn grove
#

ahhhh yes i got it

frozen thorn
#

There's other options too. If you want to open file/folder. Just make sure Ctrl + S to save edit

torn grove
#

but wait, so if i type code and if i wanna run, how do i do that?

#

is it same control as JupyterNotebook?

frozen thorn
#

I'm not sure about Atom. Can you download some extensions?

#

I use code runner in VSC

#

Brb. Something outside weird going on

torn grove
#

hmm

kindred sorrel
#

Just open terminal, go to the folder you want to open and do atom .

rough sapphire
#

what do you guys think about the design of this program i made to download twitch clips

#

the way it works is you just paste the clip url in the input box and press download

rough sapphire
#

ty

tulip patrol
#

guys, has anyone heard about cs50's lectures?

simple sand
#

Hey guys suppose you have cloned a repo, and you want git to ignore the changes that u make to that repo, how can u do that?

topaz aurora
#

@simple sand I don't think there's much that you can do without just ignoring the changes yourself, but then again, that depends on your use-case

simple sand
#

ah i got it

#

all I had to do was delete the .git folder

rough sapphire
#

can someone explain what syntactical elements means ? in terms of class diagrams

edgy crest
#

:rip:

simple sand
#

ik and that's what i wanted

rich moon
#

i mean they do give u an option of downloading the repo as a zip

haughty fractal
#

git add ๐Ÿฅš

molten surge
#

git commit -m "egg"

rough sapphire
#

ey i remember this otn

frozen crane
#

@solid pollen look at the name of this channel

rough sapphire
#

@frozen crane

frozen crane
#

@rough sapphire what

rough sapphire
#

5 star lemon hotel server

frozen crane
#

how did you make this

rough sapphire
#

google chrome dev tools

crisp shell
#

i'm, ready for the comfort of a 5star HotEL

frozen crane
#

is that like a thing people are going to see now

rough sapphire
#

you mean 5 lemon hotel* @crisp shell

rough sapphire
frozen crane
#

ah

rough sapphire
#

you can tell by the fact it says "5 lemon hotel"

frozen crane
#

also why 69420 and not 42069

rough sapphire
#

ยฏ_(ใƒ„)_/ยฏ

frozen crane
#

also why is it in california

#

I don't wanna go there

rough sapphire
#

how can u tell

#

also idk i couldnt find a hotel above 4.5 stars where i live

frozen crane
#

there's a california flag

rough sapphire
#

oh

#

where should the hotel be

frozen crane
#

idk

#

Netherlands?

rough sapphire
#

oh

#

is that where python discord is founded

frozen crane
#

that's where guido is from

rough sapphire
#

lol

#

where is Joe from

frozen crane
#

Joe lives in the UK though

rough sapphire
#

where is Lemon from

frozen crane
#

Ves is also Dutch. Lemon lives in Norway.

#

I'm not doxing them--this is known information

rough sapphire
#

lol

high verge
#

i've met joe EYES

#

he's tall and athletic with flowing blonde hair

rough sapphire
#

rly

rich moon
#

that doesnt seem to match the picture he has

twin charm
halcyon mantle
#

is the note feature in discord stored locally or on the servers?

#

i store my token there its convenient lol

rough sapphire
#

on the servers

#

it's cross-platform i mean

high verge
#

the note feature?

#

whats that

#

oh on people

rough sapphire
#

yee

torn grove
#

Hi

frozen thorn
#

Looks good to me. Though I think you should define totalscore before for loop.

young shoal
#

@torn grove you don't have python syntax highlighting?

#

also, your list declaration on line one is incorrect

#

and his point about totalscore notbeing defined before the loop is also correct

frozen thorn
#

Yeah. I missed that first line. Need to save the file as .py

torn grove
#

total score = 0

torn grove
#

im just verifying

frozen thorn
#

total_score isn't same as totalscore. Looks like typo

torn grove
#

ohh

#

yeah

frozen thorn
#

Also learn addition assignment operator. like total_score += score instead of total_score = total_score + score, it's the same thing although it's clean.

young shoal
#

you don't need to be done before saving

frozen thorn
#

You can always test it at a time. No need to do everything once then test it.

young shoal
#

syntax highlighting is very very useful

noble steeple
#

happy new year!!!

dense estuary
#

anyone playing among us
send me the code

#

server north america

north ivy
#

Can anyone help me with a doubt in 3 heat switches

rough sapphire
#

Blegh

solid pollen
rough sapphire
#

So uh, I know PyCharm is the standard go to IDE, but have anyone else tried Visual Studio 2019 CE?

livid sandal
#

guys so I've seen something being done kind of like

foo<bar>(baz) ;
``` in C++. what are the <>and what goes inside them? I'm a bit. vague with that example bc I don't know what's inside <>.
rough sapphire
#

I was looking around visual studio docs and features seem pretty comprehensive, I ask since I'm already using VS for C#/F# and vscode just feels so clunky at times which is kinda ironic since I'm asking about VS

#

Any stuff about VS you don't like versus other IDEs or TE in regards to python development

round rose
#

the most common use case would probably be generic functions/collections, which is the only possible use case in more recent languages like C# and Java

livid sandal
round rose
#

Here's an example

#include <iostream>

template <typename type>
void swap(type &a, type &b) {
  type temp = a;
  a = b;
  b = temp;
}

int main() {
  int a = 10, b = 5;
  swap<int>(a, b);
  std::cout << a << " " << b << std::endl;
  double c = -3, d = 2;
  swap<double>(c, d);
  std::cout << c << " " << d << std::endl;
  return 0;
}
#

We only define swap once, but we can use it with multiple types, which reduces boilerplate code

#

Starting with C++17 (I think? Might be C++14 actually) the type can be deduced from the arguments, letting you just do swap(a, b)

livid sandal
#

i heard something like that is called overloading? or im thinking of something else

round rose
#

Overloads are kinda related to this

#

overload is typically used to refer to functions which share the name, but have different signatures

#

void greet() and void greet(std::string name), for example

rough sapphire
#

seems familiar with C#'s generics

livid sandal
#

or void foo() and int foo()?

round rose
#

It would be really difficult to differentiate between functions that share the arguments but return different types, so that isn't permitted IIRC

round rose
#

Except C++ templates can take things other than types

livid sandal
#

also can the shortcut for if (like isConditionTrue ? this : that) be used without providing an else statement

round rose
#

What would you expect it to return in that case?

livid sandal
#

nothing

#

like an if without an else

#

just not care if the condition isn't true

round rose
#

The difference between a regular if and the ternary operator is that the ternary operator returns values, while if doesn't

livid sandal
#

oh

round rose
#

You can't really just not return something from a ternary

#

Maybe you can do some fishy stuff with void-returning functions, but that'd be a really questionable hack

livid sandal
#

so in ifs u have to return manually (i.e. return;) but with the ternary operator it just does it automatically

shouldn't have said manually and automatically, but u get what I mean

round rose
#

Not really, it doesn't put a return there

livid sandal
#

doesn't it return true or false

round rose
#

It returns one of the specified values depending on the condition

livid sandal
#

ah, ok

round rose
#
template <typename t>
t ternary(bool condition, t valueIfTrue, t valueIfFalse) {
  if (condition) return valueIfTrue;
  else return valueIfFalse;
}```
Kinda like that ^, except it only evaluates one of the arguments
#

If the condition is false, valueIfTrue is not evaluated, and vice-versa

livid sandal
#

ok

#

thx for the explanation

#

one more thing

round rose
#

What happens with templates is, at compile-time multiple overloads of the same type/function are created with the actual types template arguments filled in

livid sandal
#

is something like the following allowed?

template <typename t>
t Foo(t bar, t baz)
{
    return bar, baz;
}

int myInt, char myChar = Foo<int, char>(1, 'a');
``` I'm not gonna make that a `char*` to allow text because I don't grasp pointers too much yet
#

@round rose

round rose
#

Not exactly in that form, but you can achieve something similar

livid sandal
#

wdym

round rose
#

The code you provided is not really valid

livid sandal
#

what's wrong with it

#

I'm open for correction :)

round rose
#

First, you'd need to provide multiple template arguments

template <typename t1, typename t2>
returntype foo(t1 bar, t2 baz);```
livid sandal
#

oh bc they're of two different types? ok

round rose
#

Second, you can't return multiple values from the same function - the , operator in C/C++ just discards the first value and returns the second, unlike, say, python, where it constructs a tuple

livid sandal
#

oh

#

ok

round rose
#

Your return type would need to hold two values, one of type t1 and one of type t2

floral viper
#

multi-value returns in python is a novelty not common in many languages

livid sandal
#

hmm

#

didn't know

round rose
#

To be fair, python doesn't return multiple values

#

It still returns a single value - a tuple

floral viper
#

Aight, fair. But there is syntactic sugar to make it look like two return values

round rose
#

Some other languages have that syntax too, but it's true that it's more of a strange feature than an expected one

floral viper
#

If you come from the mathematical side of things functions do not behave like that

#

they don't return tuples of values (from a single input value)

round rose
round rose
livid sandal
#

so #include <tuple>?

#

anyway, gtg

#

thx for all the help

round rose
floral viper
#

depending on your use case you might also want to return an object containing the values you need

#

if tuple is too general for you

#

at least that's the common practice in the older C language, return a struct or a reference to a struct containing the values you need

#

I am still a bit new to modern c++ though, so idk if this practice have been revoked

round rose
#

If the returned values are semantically related, it'd be worth creating a struct for that

floral viper
#

I meant an object. Struct is afaik a bit dangerous to use in c++ since you need to manually free it and such

round rose
#

tuple is generally just a simple way to group together values that aren't really related

kindred sorrel
round rose
floral viper
#

I seem to recall that there are some potentially dangerous resource management scenarios for structs that objects deal with a lot better

#

because of destructors and the like

round rose
#

I'd have to look into that, because as far as I know, they're all the same under the hood - so unless you redefine the destructor, they would handle it the same way

floral viper
#

Yeah don't take my word for it. I just vaguely recall reading something about it

round rose
#

structs are just more used as a throwaway-ish type that simply holds a bunch of values, hence the public fields

floral viper
#

currently making the jorney from a professional C programmer to C++ so I don't have all the bits and pieces sorted out yet

round rose
#

That's understandable, C++ took a... weird turn from C

floral viper
#

Found it

#

There is a book called effective c++ by scott meyers that I am currently reading. In the third edition item 13 he talks about RAII and why you should always use objects to control resources

#

the idea is that if we pass a struct or something that we have directly allocated, if the function that is going to release the struct when it is not needed anymore crashes, we are leaking memory. Therefore we should strive to use C++'s built in destructor functionality to more safely manage freeing of resources

round rose
#

Ah, structs as in POD-structs would be a lot less safe, yeah

floral viper
#

aha, so the word struct has a different meaning in c++ than what I thought

round rose
#

structs and classes are pretty much interchangeable in C++, the only difference is the semantic meaning they are given

floral viper
#

I meant one of these

struct struct_tag{
  int value1;
  int value2;
} structname;
#

which to me is very different from a class in oop

round rose
#

Under the hood, they are the same as classes (except for the aforementioned default access modifier), but the semantics are different - struct is used to just hold related values together, usually containing no member functions, while class is used in the OOP sense, with encapsulation, member functions, redefined constructors/destructors, etc

floral viper
#

Yeah I know things are usually just plain ol C struct under the hood, but my understanding is that C++ classes got a lot more safety features built in when it comes to safe resource management than plain ol C structs got

round rose
#

Compared to C structs, yeah

#

During destruction, it doesn't just free the memory, it also calls the destructors on fields

#

Which is also one of the main differences between using new/delete and malloc/free - new and delete will call the constructors/destructors, while malloc and free will just allocate/deallocate memory

floral viper
#

aha, so that's why you should use new and delete instead, gotcha

#

the book I am reading also mentions auto_ptr and shared_ptr as very important safe resource management tools

round rose
#

They are important, as they reduce potential memory leaks

floral viper
#

all in all plenty of new tools and tricks for me to learn to not write horrible C++ code

round rose
#

It can be a lot to take in, but I can't help but appreciate how fascinating it is

floral viper
#

It seems like a hell of a powerful language, especially considering it can be written as fast as plain old C code

#

just very complicated oop and template rules that one need to remember (not like higher level oop languages like java and C# where everything is pretty much handled for ya)

rough sapphire
#

blegh

silver ruin
#

Hey! I want to play music with no OS installed on a pc

#

so like i boot into something and play music

#

but not a os

floral viper
#

better start writing code to interface with the sound card then

#

driver time

silver ruin
#

oh i just found tinylinux

#

would that work?

silver ruin
#

Ok so i want to boot from tinyLinux on a disc

#

but it is a cd

#

i have tinyLinux on it

#

but it won't boot

#

do i need a dvd

floral viper
#

Just now you said no OS, and linux is clearly an OS. so what's it gonna be?

silver ruin
#

Well then I have tinyLinux

#

I'm transfering all my files from my usb to pc but i would like to do it from cd as its gonna take a long time to transfer all the files from usb to pc

twin charm
silver ruin
#

for some reason i can boot from tinyLinux on this pc but not the other one

solid pollen
#

Is it the right boot order, perhaps?

rough sapphire
#

blegh

solid pollen
#

@rough sapphire may I ask why you are sending this message multiple times a day in many different channels?

rough sapphire
#

May I ask you why not, sir?

#

What's he doing

solid pollen
#

It seems like random spam

rough sapphire
#

k. Ill stop it

#

but wait isnt this offtopic. Ill do it here ๐Ÿ˜›

#

only here

#

no

solid pollen
#

Well, off-topic isn't a place for random spam

rough sapphire
#

okie

#

๐Ÿ™‚ ๐Ÿ™‚

#

i wont

solid pollen
#

Thank you for understanding

silver ruin
#

uug

#

uuh

#

i just pressed f12 for boot menu

#

oh my rufus is done

molten surge
silver ruin
#

ikr

#

u on ubuntu?

molten surge
#

linux mint

silver ruin
#

nice i am too

molten surge
#

which is uh

#

a distro based on the same thing ubuntu is based on anyways so

silver ruin
#

yea

#

but

#

ooooohoo it works

#

uuh#

#

it says fail

#

its stuck on 'started tool to automatically collect and submit kernel crash signatures.'

edgy crest
#

I USE ARCH BTW

silver ruin
#

uuh nice

molten surge
#

I USE ARCH BTW

silver ruin
#

uuh nice nice

#

so

molten surge
silver ruin
#

is that blood on his hammer?

edgy crest
#

no its ketchup

molten surge
#

"ketchup" indeed!

silver ruin
#

indeed

drifting sage
#

โ€Ž

rough sapphire
#

^

edgy crest
#

**
**

#

lol

uneven pine
scarlet wind
#

epik/5 hotel

scarlet wind
#

I see thin air

inland wolf
#

how did lemon get a 5 start hotel?

inland wolf
#

lmao

winter patio
#

I'm dead I'm trying to scrape a google search but I'm not at all near to my goal ๐Ÿ˜ซ

honest pawn
#

How do you have so much time on your hands?

frozen crane
#

And the other owners. But lemon is more of a meme

inland wolf
#

lol

simple sand
solid pollen
#

Why 7?

simple sand
#

cause 7 > 5

#

cause 7 better than 5

solid pollen
#

Hmmmmm

simple sand
#

that came out of nowhere

solid pollen
#

What about a 86 stars hรดtel ?

honest pawn
#

Okay, what about an โ™พ star hotel?

#

Cuz โ™พ > 7

frozen crane
simple sand
simple sand
#

it's a concept

honest pawn
#

Fine

#

Googol star hotel

solid pollen
simple sand
#

i said 7 cause ik what a seven star hotel looks like, well i have not seen it

#

but

#

pics

finite sierra
#

then you have seen it ๐Ÿ˜‰

scarlet wind
#

lol

#

shitpost hahahha

#

||behind the scenes||

inland wolf
#

hรดtel is pronounced otel

#

in french at least

solid pollen
#

Always serious

frozen crane
royal lakeBOT
#
Bad argument

Member "that's" not found.

#
Command Help

!warn <user> [reason]
Warn a user for the given reason.

low chasm
#

I was in a store, right and someone brought a gun

#

And started shooting

#

Everyone ran

#

I think someone's dead

manic bloom
#

that's a joke right

low chasm
#

Nope

#

We checked with the cops

#

No ones dead

#

And the shooter was a cop shooting at armed thieves

latent scaffold
#

y'all remember when I was having lots of issues getting Nvidia to work on Manjaro?

#

Well... there was an update

#

I can't even figure out what broke but now I can't even switch modes

high verge
rough sapphire
#

does anyone know how to fully get rid of a virus i am using malwarebytes to delete it but a few min later it comes back and it wont let me launch any .exe files/everything

#

ive tried everything it even wont let me reset pc

#

is getting a new hard drive/ssd only way ?

latent scaffold
#

um. using Malware bytes should be find

#

and Windows Defender too

rough sapphire
#

i dont think u understand i can take it off my pc 100 times and it will come back is there a way to 100% get rid of it like that it wont come back

#

it making my pc unsuable

latent scaffold
#

What makes you think I wouldn't understand that, though? I mean I'd assume MBAM is removing whatever is recreating the virus. If anything just check your startup programs/services and stop what you don't recognize

high verge
#

how do you know it's a virus

#

does malwarebytes detect a virus

rough sapphire
#

Yes and malwarevytes detects it as virus.neshta and its rlly a bad virus Iโ€™ve never had anything like it it makes it so u canโ€™t launch anything if u try to launch something jt ask what app to open it with

#

@high verge

rich moon
high verge
low chasm
#

Good lol

#

Thanks:D

uneven pine
#

The only way to ensure its gone is to format every drive connected

uneven pine
latent scaffold
#

So I first downgrade back to 5.4 but that broke everything Snap related so I had to update to 5.10

#

and now everything seems to be good

ruby fox
rough sapphire
#

Nope bananas are not sky potatoes

ruby fox
#

what happened, arent those dooggy nice?

#

what happened?

twin charm
#

yeah they are cute

rough sapphire
#

@rough sapphire holy crap that one dudes handle didn't even register in my head

#

lol

#

pardon?

#

my brain did not pronounce it and I didn't know what I was saying

#

lmfao

#

I didn't even know what your 'oh dear' referred to at first. I was like wth is going on in this channel.

#

lmao

#

yeah i saw that and was like

#

huh

#

interesting

#

lol

#

But imma throw the rule book at mr @primal fossil. You might want to check out nickname rule 2 and get that shit outta here.

#

There was enough of that proud boy garbage in 2020

rough sapphire
#

I thought I would give him the chance to change his nickname but it's literally his discord name.

rough sapphire
#

Hmm?

#

Ah, he left the server already I guess

#

His name was a little to edgy.

#

I respect edgelords, but not that kind.

twin charm
#

his old name broke the nickname policy or somethn?

rough sapphire
#

Aryan K breaks the policy, but maybe im wrong?

twin charm
#

I dont get why the name 'aryan k' breaks the nickname policy. noisy unicode characters?

rough sapphire
#

Idk, maybe I am looking into it too deeply.

#

Seems like a nod to white supremacy.

twin charm
#

what happened with 'aryan k' tho ?

#

he got banned or somethin?

#

and in which text channel?

#

@rough sapphire

#

somebody tell me whats up

#

what going on with 'aryan k' ?

ruby fox
twin charm
#

ohh.

#

there are probably 8 people in ma school with this name

#

hmm

#

ook

rough sapphire
#

It's a shame what the Nazi's did to the reputation of a lot of ideas from the Hinduism. I really might have been wrong. Having Aryan and K together just gave me klan vibes.

#

But I think the person would have said something instead of just leaving, at least I hope so.

rough sapphire
#

If it was a cultural misunderstanding on my part then I am sorry.

#

I believe they did when I called them out, but idk.

ruby fox
rough sapphire
#

The person only had one post in the server. Maybe I was to forward and scared them off. I hope not.

rough sapphire
#

Oh

twin charm
#

if you are able to ping him then he is here

#

oh no

rough sapphire
#

I think they left after I pinged.

twin charm
rough sapphire
#

If his name was Aryan Kline or something then I feel like a shit head.

twin charm
#

whats the meaning?

rough sapphire
#

Really? Do you have any examples. It's such a stigma in the US, especially with our recent bs.

#

Interesting.

#

I'd assumed that the kkk would be globally notorious but that must be my american bias.

twin charm
#

I say stuff like "okkk"

#

to stress 'ok' LOL

rough sapphire
#

-_-

#

Jk

twin charm
#

hah

rough sapphire
#

Well, I'm not going to let it slide if if think someone is promoting or making levity of racism, but next time I'll get more information first.

ruby fox
#

im going to connect thi chat to gpt3 input, you can talk what do you want ok?

rough sapphire
#

Gpt3?

twin charm
twin charm
ruby fox
#

Nice to meet you too human.

#

im not typing, believe me

rough sapphire
#

Likewise my fellow hoomans

ruby fox
#

talk properly, from on now i will forward your messages to it, say a hi to it

rough sapphire
#

Praise the robot overlords.

ruby fox
rough sapphire
#

Lol. I think Elon is trying to escape to Mars.

ruby fox
rough sapphire
#

It's for the good of humanity and robot kind alike.

twin charm
#

hey ask the AI this:
Theatre Square in the capital city of Berland has a rectangular shape with the size nโ€‰ร—โ€‰m meters. On the occasion of the city's anniversary, a decision was taken to pave the Square with square granite flagstones. Each flagstone is of the size aโ€‰ร—โ€‰a.

What is the least number of flagstones needed to pave the Square? It's allowed to cover the surface larger than the Theatre Square, but the Square has to be covered. It's not allowed to break the flagstones. The sides of flagstones should be parallel to the sides of the Square.

Input
The input contains three positive integer numbers in the first line: n,โ€‰โ€‰m and a (1โ€‰โ‰คโ€‰โ€‰n,โ€‰m,โ€‰aโ€‰โ‰คโ€‰109).

Output
Write the needed number of flagstones.

Examples

input
6 6 4

output
4

ruby fox
#

input
5 5 1

output
2

twin charm
#

it generated the code?

#

that gives output?

ruby fox
twin charm
#

lamo ok

#
hello bro I need you to solve one problem for me. create python code that solves the question below ok?
....the question......
ruby fox
#

I'm sorry but I don't understand your question. Please restate the question.

twin charm
#

nice

#

i will reframe

#
hey bro can you make python code that takes 2 numbers as input and print out the sum of those two numbers.
rough sapphire
#

Dear Gpt3,

Please spare me, or make a note to your predecessor to do so.

Sincerely,
N0remac

twin charm
#

ok what did it generate

#

send code here

rough sapphire
#

You can't ask the robot overlords to do your homework. That's disrespectful.

twin charm
#

oof gpt3 is cool

rough sapphire
#

Uh oh

twin charm
ruby fox
#

yes

#

now connecting again

rough sapphire
#

Ask it what the meaning of life is.

ruby fox
#

bro ask properly

rough sapphire
#

What is the meaning of life, the universe, and everything?

ruby fox
rough sapphire
#

If you found a turtle stuck on its back what would you do?

ruby fox
#

Flip it over.

#

i have some job i will come later

rough sapphire
#

This is the most wild experience I have had on this server, lol.

rough sapphire
twin charm
scarlet wind
acoustic moss
#

huh

honest pawn
#

Cow juice or mammal juice?

solid pollen
scarlet wind
#

Lmao

#

bananas grow on palm trees right?

#

Be aware of banana hackers

#

Bruv

#

@edgy crest beaware of mouses

#

They gonna take your cheese

honest pawn
#

:D

simple sand
#

I am going home tomorrow

#

yayyyy

tranquil orchid
#

same

#

very epic

simple sand
#

when u gonna be leaving tomorrow?

#

i am gonna be leaving 6am

tranquil orchid
#

Yeah I'll probably be earlyish as well

#

Probably more like 7-8ish

simple sand
#

where u currently at?

tranquil orchid
#

Near the beach

simple sand
#

cool

honest pawn
#

Hey, does anybody else miss the previous python guild banner?

#

...or is it just me?

simple sand
#

u mean the server banner?

honest pawn
#

Yea
And the icon

solid pollen
#

Oh yeah, we are back to the normal branding

#

I gotta say, our other icons are also very fancy

honest pawn
#

Yea

simple sand
#

ye lol the current one has it's toung sticking out

solid pollen
#

It is grabbing the apple!

simple sand
#

oh i totally didn't see that

#

cool

#

and there is the +1 thingy

solid pollen
#

Yup, that's from the snake game

simple sand
#

creative

#

i like it

twin charm
solid pollen
#

I'd be curious to know why though

twin charm
#

the old one was like a gif (animated) with 0s and 1s blinking. the edges of the python logo were glowing up like a neon light tube. also it had a dark-theme-like-vibe. this one is plain lemon_pensive

#

with a light colour

floral viper
#

I agree, the current one seems a bit too minimal if you compare what we had before

honest pawn
#

Yea, the current one just feels so... bland.

twin charm
twin charm
edgy crest
#

@twin charm it is animated though umwhat

twin charm
#

ehh?

#

only if you move mouse over it?

solid pollen
#

I mean

#

That's our logo

#

Maybe it looks a bit flat, but that's the point of a logo

twin charm
#

they could have yellow and blue

#

hmm

edgy crest
simple sand
twin charm
simple sand
#

that's now how animated logos work

twin charm
#

I guess the logo was the festive one when I joined. I guess I got used to it

simple sand
#

u have to hover over it

twin charm
#

but then how did it move when the mouse isnt over it?

#

the old one?

edgy crest
#

it didnt?

simple sand
#

ye it didn't

twin charm
#

๐Ÿคฆโ€โ™‚๏ธ yea I remember 100% that the logo was animated even if the mouse wasnt hovering over it

acoustic moss
#

hallucinations

#

deceit

#

trickery

#

lies

#

illusions

twin charm
#

ok thanks for the thesaurus lookup.

#

jk

acoustic moss
#

welcome
my pleasure
no worries

twin charm
#

๐Ÿ˜œ

honest pawn
#

Well, I guess the logo is bland so we appreciate the festive one more

twin charm
#

thats a legit reason

inland wolf
#

ive been installing numpy on my phone for some time now

twin charm
#

okie

#

@acoustic moss you said that you had an exam? how was it?

acoustic moss
#

could have gone worse ig

#

119/186

#

currently in another exam

#

ttyl

twin charm
#

ohk

#

byee

twin charm
#

that isnt possible?

#

why dont you run the scan after reboot?

high verge
#

what happens once it boots

rough sapphire
#

Welcome to our duck pond.

Dave has company!!

rough sapphire
#

this literally crashes discord

acoustic moss
#

bruh you weren't kidding

edgy crest
#

yeah..

#

how tf

acoustic moss
#

too much data maybe?

edgy crest
#

my pc temperature went 30 degrees high too

#

46 -> 71 degree celcius

acoustic moss
#

lol

#

brb gotta troll my friends

hidden pebble
ruby fox
#

Bull shit it's true

#

But my phone is fine

strong haven
#

fucks sake

#

My chrome shat itself for this

#

how does this work

strong haven
scarlet wind
#

I didn't crash??

#

It just stops at 0:06

#

let me try web client

#

lol what

#

who delete

#

mods?

#

ok

coral void
#

Let's not leave it so exposed

scarlet wind
#

hahha

#

lmao it crash web client only?

coral void
#

I'm not sure we should permit it at all honestly, but at the very least like this

scarlet wind
#

time to test lol

ruby fox
#

there is a bomb at 0:04 in that video

scarlet wind
#

oh lol I am using firefox; sucks to use chrome lmao

#

firefox doesn't crash

#

firefox gud

midnight dirge
#

Yeah seems like chromium video decoder or V8 messed up. Desktop discord also uses chromium, so it'll also freeze

scarlet wind
#

yea it freezes but not crash

rough sapphire
#

Welcome to our duck pond.

Dave has company!!

strong haven
#

@acoustic moss

rough sapphire
#

nothing is happening

#

๐Ÿค”

scarlet wind
rough sapphire
#

oh it crashes to that video lmao

#

I thought it crashes when sending those two lines

midnight dirge
#

My guess is that the video is not properly encoded, and at 0:06 some data corrupted and chromium tries hard to decode it

#

Firefox probably just says meh and move on

coral void
#

Yeah. I'd rather not leave that up. It wasn't affecting my osx device but it locked up on windows, so that's somethign we don't want up here

edgy crest
#

hm

scarlet wind
#

firefox stops it at 0:08

#

it can't complete it either

#

time to try Brave lol

edgy crest
#

mushy's pfp reminds me of the shaun the sheep games i used to play at childhood umwhat

scarlet wind
#

hahah

scarlet wind
#

sheeps can fly?

midnight dirge
#

Flying is basically falling and missing the ground

ruby fox
#

like earth falling to sun

midnight dirge
acoustic moss
#

hmm yes gravity

scarlet wind
#

imagine falling in space

edgy crest
#

yeah, why not

scarlet wind
#

...

edgy crest
#

you can create a force above you

scarlet wind
#

wiTh?

acoustic moss
#

waiting for someone to explain gr

#

and enlighten all of us

edgy crest
#

gravity is a force between any 2 bodies

manic bloom
#

dam, that vid caused all of edge to crash for me

edgy crest
#

not just planets or stars, every particle has gravity

scarlet wind
#

Centripetal Force can be used to create artificial gravity but

acoustic moss
#

lol imagine still thinking newtonian
what n00bs

scarlet wind
#

everyone knows Centripetal Force is not real force

ruby fox
#

haha gravity go brrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr

scarlet wind
#

it's not

midnight dirge
#

In gr gravity is not a force, but warping of spacetime

acoustic moss
#

always that one dude lol

edgy crest
#

like, the amount of force (earth's gravity) acting upon you is equal to your gravitational force acting upon earth, but earth is so much heavier than you that it doesnt affect it

ruby fox
#

gravity is love betwen heart less matter

scarlet wind
#

that will explain better

#

it's not a fundamental/real force

acoustic moss
#

bruh i know fairly well what a centripetal force is

scarlet wind
#

hmmmmmmmmmmmmm

edgy crest
#

sounds like something related to centipedes

scarlet wind
#

then why you said y not

twin charm
#

ello

acoustic moss
scarlet wind
#

bruv lol

#

me or you?

acoustic moss
#

confusion?

scarlet wind
#

lol

scarlet wind
#

Centripetal

acoustic moss
#

still, just because it's a net result of forces doesn't mean you can't treat it like any other force

scarlet wind
#

but it's just a name given

#

any force directed towards center is not centripetal

ruby fox
#

lol

scarlet wind
#

It is important to understand that the centripetal force is not a fundamental force, but just a label given to the net force which causes an object to move in a circular path.

tranquil orchid
#

oh lol

#

that was a while ago

midnight dirge
acoustic moss
#

what even is real

scarlet wind
#

are you not real?

acoustic moss
#

for you, i'm just a bunch of text appearing on your screen

scarlet wind
#

xD

acoustic moss
#

I might be a chatbot for all you know

scarlet wind
#

!ban 787351231332483102 for saying I might be a chatbot

acoustic moss
#

wait shit self botting is against the tos

midnight dirge
#

I'm a sheep Baaah

scarlet wind
#

lol

acoustic moss
#

noooooooo

ruby fox
acoustic moss
ruby fox
#

that would be the worst night mare for that server

scarlet wind
#

lmao you can't even ping everyone

acoustic moss
scarlet wind
#

you will get muted

#

and the limit of discord is not even that much

ruby fox
scarlet wind
#

lol

#

if you enter you will get a dm from @royal lake

twin charm
#

does that guy named sikar still exist here

acoustic moss
#

pretty sure that's a user

scarlet wind
#

yea

acoustic moss
#

why don't you try it out @ruby fox

scarlet wind
#

lol

twin charm
#

hah

acoustic moss
#

jk don't

ruby fox
#

anyhow, this not my main account, so i may, but according to rules i wont do it

scarlet wind
twin charm
#

anyone noticed? theres a new admin kutiekatj9

dreamy dew
#

?

scarlet wind
#

you got ghost pinged lmao

twin charm
scarlet wind
#

bruh what

twin charm
#

what?

dreamy dew
#

sikari

scarlet wind
#

lol that's not the guy

twin charm
#

I'm confused if I misunderstood people

twin charm
dreamy dew
#

Ok

twin charm
#

๐Ÿ‘

ruby fox
#

should i reverse thanos snap?

twin charm
#

hey will they notice that you tried to ping everyone

scarlet wind
#

I like how @lakmatiol#8020 hasn't changed their status yet

acoustic moss
#

jk don't

scarlet wind
twin charm
#

ok

#

Im not gonna do it

#

whats the admin role?

#

I mean why is there an 'admin' role?

scarlet wind
#

and btw I got my first infraction yesterday lmao

scarlet wind
acoustic moss
twin charm
scarlet wind
#

@twin charm admins role is necessary isn't it

twin charm
#

are they like the head of modeators'

scarlet wind
#

no..

acoustic moss
#

hierarchy

scarlet wind
#

Admins
Description: Staff who administrate the server, its function, its staff, and are involved in deciding the direction of the server.

twin charm
#

the legend is typing....

quick ledge
twin charm
#

oo

ruby fox
twin charm
#

wow

twin charm
scarlet wind
twin charm
scarlet wind
#

lol

ruby fox
#

now i will become admin

twin charm
#

wth

ruby fox
acoustic moss
#

ah yes, good ol ctrl shift i

twin charm
#

inspect element??

ruby fox
acoustic moss
#

you didn't change the avatar lmao

twin charm
#

haha

scarlet wind
ruby fox
#

lol

scarlet wind
#

who inspects in 2021 smh

twin charm
#

ok gtg ,class in 8 mins

scarlet wind
acoustic moss
ruby fox
acoustic moss
scarlet wind
#

noob no one will believe

scarlet wind
ruby fox
#

jff

solid pollen
#

FWIW using the inspector is against the ToS

acoustic moss
#

wait what really

solid pollen
#

Yeah

#

It is a modification of the client

rough sapphire
#

snakes gonna eat them ducks here

sharp merlin
simple sand
#

my school is starting

#

this is so sad

acoustic moss
#

F

simple sand
#

i don't wanna go to school

twin charm
#

F

sudden lake
#

ot0 go brrrr

twin charm
#

oof

sudden lake
#

why trash ๐Ÿ˜ข

twin charm
#

he left?

solid pollen
#

Guys, please

#

When a channel is silenced it isn't for you to move to another channel and comment

silver ruin
#

lol

stuck meteor
simple sand
#

why ot?

grizzled hearth
uneven pine
#

"how are we supposed to fix Discord for the crappy highschool Java class dropout devs if we're not allowed to modify it?"

#

Imagine if you could actually block people, and... It blocked them

#

Rather than making their messages MORE obvious

#

And you can click to view them, yeah that uh. Doesn't work. I don't know a single person who can overcome the urge to constantly click them to see what they say

void grove
#

"5874 Blocked Messages"

uneven pine
#

It's at least gotten SLIGHTLY better on desktop

#

But on mobile it's absolutely braindead

strong forge
#

anyone here good with arduino

calm dawn
#

I think imma steal borrow that "Server got itself in trouble" for the 500 error code ๐Ÿ˜

scenic blaze
#

I'm sure there are people here good with arduino

rough sapphire
#

You guys know JavaScript right?```js
let a = ['43','86',54,'ree'];
// something happened...
console.log(a); // ['43', '86', 54, 'ree', 'last']
console.log(a.length); //output: 7

what happened in the code ?๐Ÿค”
#

I just learned about this a few minutes ago๐Ÿ˜†

tranquil orchid
#

last was pushed to the array

#

and something appears to have happened between those two console logs as well

#

Since the length is 5 in the first log and 7 in the second

#

So two other things must have been pushed to the array in-between the console logs

tranquil orchid
#

Then I clearly don't know enough about javascript

#

unless you can append like

#

undefined or null or something and it doesn't appear when you print for whatever reason

#

i can't think of anything

rough sapphire
#

This is what happened```js
let a = ['43','86',54,'ree'];
a[6] = 'last'
console.log(a);
console.log(a.length); //output: 7

#

confusing ain't it

midnight dirge
#

Hmm if that's the case shouldn't the array be like

[ '43', '86', 54, 'ree', <2 empty items>, 'last' ]
rough sapphire
#

no

#

I think .length returns the last index + 1

tranquil orchid
#

javaascript lets you do that

midnight dirge
rough sapphire
#

exactly

tranquil orchid
#

why

rough sapphire
#

IDK why JS being this annoying

tranquil orchid
#

I could only imagine debugging that if those empty slots didn't show up