#ot1-perplexing-regexing

1 messages · Page 514 of 1

solid pollen
#

Not just 100 vaccinations per days or whatever

#

actually, we are aound 20k per day or so, no?

sharp merlin
#

i just remember the one headline on M6 where they said we had like 300 vaccinations and the other EU had hundreds of thousands

solid pollen
#

Oh man, you missed Castex saying to Blanquere that he can literally “go now” haha

sharp merlin
#

lmao

solid pollen
#

That was pretty awesome

sharp merlin
#

i can guess that

twin charm
#

you guys are getting vaccinations?

sharp merlin
#

oh

#

well not really

twin charm
sharp merlin
#

yea

inland wolf
twin charm
inland wolf
#

i remember my dad saying there was some vaccine called covishield

#

true

twin charm
#

"vaccination dry-run" was conducted a week ago

inland wolf
#

I see

ruby fox
#

my brudas , didn't you get vaccinated?

twin charm
#

now i think health workers are being vaccinated

#

but its like 100 doses per state or something iirc

#

on the first day

solid pollen
#

We are.. uuhhh.. missing some critial organisation, let’s say

twin charm
ruby fox
#

WHO

twin charm
#

lol

ruby fox
stark oasis
#

Does anyone know how you go about the equivalent of git rm <file> in PyCharm's git integration? Once you add something to the repo, there is no way to get it off as far as i can tell.

#

assume a commit has already been made adding the file.

round rose
#

you can delete the file, which will also remove it from git

#

you can also manually do git rm file in the terminal

stark oasis
#

I used git bash while on Windows for a while, but its such a pain that for as good as it is at many bash things, its not a proper terminal. Ive come to realize that visual VSC is better for me overall. .Its not that I dont understand how to do the commands, its that I dont actively use it manually often enough even though i try to make myself do it.

#

But with a huge panel in front of you that has it all in your editor, its much more difficult to neglect. So I like it.

winter terrace
#

so ive made a rainbow helix

#

i've made it rain at your cursor

#

what js toy should i make next?

acoustic moss
#

fractals

#

but not mandelbrot

#

that one's ugly

winter terrace
#

aight

#

which one should i do

acoustic moss
#

the triangle in triangle maybe

#

idk it's name

winter terrace
#

the serpinski triangle?

acoustic moss
#

Sierpiński triangle

winter terrace
#

could be interesting

acoustic moss
#

ye

kindred sorrel
#

Mandelbrot is prettyyy

#

How dare you

#

Especially if you turn it sideways, so to speak

versed saffron
#
.page-header {
    position: absolute;
    text-align: right;
    vertical-align: top;
    padding-right: 5%;
    padding-left: 0%;
    padding-bottom: 6%;
    padding-top: 0%;
    width: 100%;

    color: rgb(38, 0, 255);
    background-color: #000000;
    font-size: 50pt;
}```
#

I've been trying to mess around with it but nothing's working

stark oasis
#

the best tip I can give you with css is to learn to use these tools. Css is a "cascade" of many different selectors that have cumulative effects not necessarily expected if you dont look closely

versed saffron
#

I've been looking at that off and on but it's not helping

#

I've got a border, margin and padding of 0

stark oasis
#

I could maybe look at it but it would only be realistic to do so if you make a fiddle. Thats the trick to get most people to look at your frontend issues..

#

Too many uncontrollable factors otherwise

versed saffron
#

what's a fiddle?

#

the only thing I've got in the css is what I sent tho

stark oasis
#

I see.

#

There are also browser css rules if you didnt know that

#

no imports of anything?

versed saffron
#

nope

versed saffron
stark oasis
#

cutting out the bootstrap is just to demonstrate that it effects things

#

a lot of times the best thing to do wiht bootstrap is literally open up the file and find the classes that are used aand the properties in them

versed saffron
#

ya I'm probably going to replace it with an image but I want it all the way up

#

should I be using bootstrap?

#

I thought those imports were necessary

stark oasis
#

i mean, you will want to learn to work with it because it makes simple designs easier, but... if you're working from the bottom, it definitely throws a curveball in how css works.

#

See, I found what class that is causing that.

versed saffron
#

I think im going to try to do this without it just to get used to everything first

#

it's still there tho without the classes

stark oasis
#

tbh I have no idea lol. Ive been relying on bootstrap classes too long.

look what happens when i try to jumbotron bootstrap class
https://jsfiddle.net/vLcwgzdu/104/

You can find the properties used for that if you grep this for that class.
Ihttp://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.css

But to be honest I dont know. I rely on bootstrap too much and only maake edits to it..

#

but you also have to remember that second file, bootrap-theme.css cascades over any selectorss defined before that.

#

And those effect any that tou define as well

#

when using a theme, its best to use their docs to see how to use it best

versed saffron
#

ugh I didn't think this would be this complicated 😄

#

is there a way to make page-header a child of the jumbotron class?

stark oasis
#

Its really best to not use bootstrap classes for overly creative use cases imo, not without considering the side effects that will have. Thosse classses were designed specifically for an exact use case. Its best to just learn the bootstrap classes. But dont do that without looking at them the properties they use, otherwise you wont be able to edit them very well, and you'll be reliant on it like I am I guess lol.

#

CSS does have irritating things that you have to hack around somehow.

#

Thats why boostrap is so popular

versed saffron
#

how do I change the bg colour then?

#

I thought i'd have to create another one and inherent from jumbotron

frozen crane
#

omg

stark oasis
#

@versed saffron the best way to do colors of your own with bootstrap is to over write the ones defined in the root selector in the bootstrap file.

#

then look how they are called with like color: var(--color-red);

#

I would recommend literally just having a go through the bootstrap documentation and learning to implement it rather than modify it.

#

When you understand that, if you are truly a designer, it will come to you

versed saffron
#

I'll have a look at it tho thanks for all the help

stark oasis
#

Same dude. I try to design things and it starts off well until one thing breaks another thing infinitely..

#

That is why there is no shame in being a master of implementation instead.

#

Design is a job all on its sown

inland wolf
#

bro how did stelercus become python?? :0

stark oasis
#

Does anyone know if there is a text editor with syntax highlighting/linting for Kivy kv files?

#

Pychaarm doesnt seem to have it

inland wolf
#

theres probably an extension on vscode

#

idk tho

stark oasis
#

yeah, there is a lot more third party stuff there i think

#

just surprising charm doesnt have it

frozen crane
acoustic moss
#

Is beautiful better than ugly?

inland wolf
#

oh wow

#

thats epic

#

what was the pep that brought that zen of python poem?

acoustic moss
#

20 i think

#

yep it's 20

inland wolf
#

!pep 2p

royal lakeBOT
#
Bad argument

Converting to "int" failed for parameter "pep_number".

#
Command Help

!pep <pep_number>
Can also use: get_pep, p

Fetches information about a PEP and sends it to the channel.

inland wolf
#

damn

acoustic moss
#

!pep 20

royal lakeBOT
#
**PEP 20 - The Zen of Python**
Status

Active

Created

19-Aug-2004

Type

Informational

acoustic moss
#

"informational"

#

lol

severe blaze
#

newb question, what is pep

frozen crane
#

Except with respect to typing. I guess.

frozen crane
#

Now there's a five-member council that does that.

severe blaze
#

interesting.. just clicked the link and saw it. Thx for the info

acoustic moss
stark oasis
#

I find that explicit typing is good for any time you dont want to confuse yourself. But if you're not confused, then its not to big of a problem..

#

But it helps if you are.

frozen crane
#

I use type hints for function signatures on any user-facing code.

stark oasis
#

yeah, I think thats good practice.

#

I mean....

frozen crane
#

but it's nice that they're optional when I'm writing a throw-away script

stark oasis
#

Not so much if its a glorified shell script

#

But I get what you mean

#

Its a good thing for big prograams

#

I will bang my head against wall and then remember to put type hints and it will all come together

#

Python wouldnt be as useful as an alternative to heavily logical shell script if it had to be designed like a large applications..

#

But if you're doing that, you should approach it like its a large app

#

I always think Im going to enjoy making a game until I realize that 90% of the time I dont know where the numbers are coming from..
It feels like people just do pos_x *= parent.height + 4 / 28 etc etc

#

I can follow code, but when they just start pulling out the equations I dont follow as much. I need to learns maffs

acoustic moss
stark oasis
#

If i could take a class on math that is used in graphical programs, I would. Its my biggest weaknesss.

frozen crane
stark oasis
#

No, not really.... but its something I wish I was good at and understood kind of recreaationally. I have watched people do GLSL shaders and I think theyre really cool. And

#

python.arcade is kinda fun, but i dont have a serious idea and commitment to make a game

#
        # bounce off top and bottom
        if (self.ball.y < 0) or (self.ball.top > self.height):
            self.ball.velocity_y *= -1

        # bounce off left and right
        if (self.ball.x < 0) or (self.ball.right > self.width):
            self.ball.velocity_x *= -1

Example..... why do they get multiplied by -1? What causes that to make them change direction

ruby fox
#

@stark oasis this code is for making object bounce back at edges

acoustic moss
#

self.ball.y < 0 -> Ball touching bottom surface -> collision -> reverse velocity so it starts going up -> to reverse velocity keeping its magnitude same multiply by -1

ruby fox
#

@stark oasis for physics based games, you must know some physics

ruby fox
kindred sorrel
#

If you're not doing the physics yourself, just basic vector math takes you pretty far

twin charm
#

ello

scarlet wind
#

Stelercus you are not mentioned in any pep sad :((

simple sand
#

HIs name holds deeper meaning than any human can comprehend so its no wonder we can't find it

scarlet wind
honest pawn
frozen crane
#

I guess.

solid pollen
#

Can you be Python and PEPs at the same time?

frozen crane
scarlet wind
#

name every pep then

frozen crane
#

1, 2, 3, 4, 5, 6...

scarlet wind
#

and it never ends?

acoustic moss
frozen crane
#

I think it's in the 600s currently, and then there are a few non-contiguous ones numbered in the thousands. Not sure why.

inland wolf
#

there better be a pep 69

solid pollen
#

It isn’t contiguos for sure

#

!pep 69

royal lakeBOT
#
PEP not found

PEP 69 does not exist.

solid pollen
#

Hahaha

inland wolf
#

😢

#

this is so sad guys

frozen crane
#

!pep 420

royal lakeBOT
#
**PEP 420 - Implicit Namespace Packages**
Status

Final

Python-Version

3.3

Created

19-Apr-2012

Type

Standards Track

solid pollen
#

My favorite number is 404 Python 2 not found

#

!pep 404

inland wolf
#

oh at least that is there

royal lakeBOT
#
**PEP 404 - Python 2.8 Un-release Schedule**
Status

Final

Python-Version

2.8

Created

2011-11-09

Type

Informational

inland wolf
#

lol

scarlet wind
#

python1

#

where is it

inland wolf
#

ubdeployment

#

un*

solid pollen
inland wolf
#

!pep 0

royal lakeBOT
inland wolf
#

ah

#

cool

scarlet wind
#

Akarys pep0

#

smh

honest pawn
#

How many pepes are are there

solid pollen
#

Pepes?

#

Probably a lot

honest pawn
#

Pep

#

PEP __

#

(pepes, PEP, same thing)

solid pollen
#

I guess you could count them, but I’d say a lot

inland wolf
#

!pepe 0

royal lakeBOT
#

PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.

You can find the PEP 8 document here.

honest pawn
#

!pep 9999

royal lakeBOT
#
PEP not found

PEP 9999 does not exist.

inland wolf
#

WAIT WHAT

#

!pepe 23

#

bruh

scarlet wind
#

#bot-commands or I will never add you in a pep

honest pawn
#

!pepe pig

solid pollen
#

It is matching the tag pep8

scarlet wind
#

pepe 0 is pep 8 nice

solid pollen
#

And it is on cooldown right now

scarlet wind
#

why bold IS gurkan_sentimental

solid pollen
#

Because you can’t put actual caps in channel names

inland wolf
#

yes

#

same for that one with Skype

solid pollen
#

!otn s stelercus-IS-python

royal lakeBOT
#
Query results

• stelercus-𝖨𝖲-python

solid pollen
#

!charinfo 𝖨𝖲 IS

royal lakeBOT
inland wolf
#

interesting

clear plume
bleak lintel
#

yeah i'm just building something now

clear plume
#

Cool

bleak lintel
acoustic moss
#

gmt?

clear plume
bleak lintel
#

per hour

#

all time

#

so just what hours of the day do you send your messages

#

sum, not average

bleak lintel
clear plume
#

Ahh, got it

acoustic moss
#

do you just up and die at 10am

lone cradle
#

16 hours

clear plume
#

Notice how I don't have one message at 5 am lol

bleak lintel
#

lol

clear plume
#

But also, I have > 7k messages, so I think the graph is off or something

bleak lintel
#

hmmm

#

2.2k since august

#

no

#

2.02k

#

so that looks right

simple sand
#

You guys send every message to the db?

bleak lintel
#

yes

#

but not contents

clear plume
#

Let me hop on my pc in a few and check this out, because I swear to god I had more then 7k sent messages yesterday

bleak lintel
graceful basin
#

it only logs since metricity started to exist

bleak lintel
#

that's from discord search

clear plume
#

Ahh

bleak lintel
#

all time you have 7.2k

clear plume
#

Since it started tracking

supple obsidian
#

geez how about me?

clear plume
#

Makes more sense lol

lone cradle
clear plume
#

No

#

It's still a number

bleak lintel
#

messages don't get deleted, no, they just get flipped into a deleted mode

lone cradle
tranquil orchid
#

graphs lemon_hyperpleased

bleak lintel
#

that is what the messages table looks like

lone cradle
bleak lintel
#

lol

clear plume
#

Not capitalizing false smh

bleak lintel
#

tell postgres

lone cradle
#

this is a nice feature for mods

lone cradle
bleak lintel
#

redash

simple sand
#

Wait wow

#

you guys store every message

lone cradle
#

can i also see deleted messages of my server?

acoustic moss
#

@bleak lintel can make graph for me 👉👈

clear plume
#

^

bleak lintel
clear plume
tranquil orchid
#

When you take into account that the message content isn't stored, it isn't much data yeah

lone cradle
#

how much mb is the whole db of all messages even sent here

graceful basin
#

ints are smol

clear plume
#

Mega smool

acoustic moss
#

lmol

lone cradle
simple sand
#

Oh wait if the message content isn't stored then what is?

graceful basin
#

or do you have them as strings

bleak lintel
graceful basin
#

well, still not too large

clear plume
quick ledge
bleak lintel
#

to do compat with frontend JS

acoustic moss
quick ledge
lone cradle
clear plume
#

Ofc

tranquil orchid
#

yes but say goodbye to your storage

clear plume
#

^

lone cradle
graceful basin
#

yes, but then you have to have a privacy policy that states you do this and process deletion requests and other such silly stuff

acoustic moss
#

🇫

bleak lintel
#

well

#

yeah

#

that

#

privacy

lone cradle
#

depends on weather your server has less people ||in my case 0||

simple sand
#

⭕ 😮

bleak lintel
#

I wonder if I have the query that tells me db size

lone cradle
#

where is the db even saved

bleak lintel
lone cradle
#

in joe's pc?

bleak lintel
#

well

lone cradle
bleak lintel
#

external volume

#

no, it's a production kubernetes cluster

graceful basin
#

silly stuff is programmer speak for "this is a lot more complex and I don't understand it enough to actually give a more detailed explanation"

bleak lintel
acoustic moss
#

heh

lone cradle
acoustic moss
#

smol

graceful basin
#

it is somewhat scary just how big a GB is

bleak lintel
#

hahahahaa

#

storage is cheap

lone cradle
#

not at my place lol

clear plume
#

That's running on digitalocean right?

graceful basin
#

linode

#

afaik

rough sapphire
#

How much is a TB in freedom currency?

lone cradle
#

freedom currency?

#

what

graceful basin
#

probably like 10-15$

acoustic moss
#

usd

surreal otter
#

10$ for a GB?

acoustic moss
#

TB

surreal otter
#

err, TB

clear plume
#

Tb

bleak lintel
graceful basin
#

maybe less when you buy in bulk

surreal otter
#

that seems cheap

graceful basin
#

storage is cheap

acoustic moss
#

yea

bleak lintel
#

i think we pay

surreal otter
#

What kind of storage? Is that a one off $10 or cloud?

rough sapphire
#

Yeah, I'm surprised. That seems cheap

bleak lintel
#

$1 per month for 10GB

lone cradle
#

wow

surreal otter
#

ok, that makes sense, monthly

bleak lintel
#

and we provision like... 8 or so volumes?

#

10GB is the minimum we provision

clear plume
# bleak lintel linode

Huh, I remember the discord getting sponsored by digital ocean, so I would assume y'all use them lol

bleak lintel
#

largest is like 20MB

surreal otter
#

I bought a $90 1TB NVME and htought I got a solid deal

bleak lintel
graceful basin
#

SSDs are much more expensive

clear plume
graceful basin
#

I was talking cheap HDDs you buy in bulk

lone cradle
#

storage is cheap. but hardware cost...

graceful basin
#

though even then it seems more like 20-30$/TB

clear plume
#

Would you rather buy cyberpunk or an ssd

surreal otter
lone cradle
surreal otter
#

$10 seemed too good to be true

bleak lintel
#

hmmmmmmmm

surreal otter
#

I imagine that with scale you can get there, but we generally aren't buying in that kid of scale

bleak lintel
#

maybe i should cluster some of our tables

graceful basin
#

yeah, 15-20 seems to be low bound

#

you can probably get 10 with tapes

clear plume
lone cradle
#

yes pls #joe

bleak lintel
#

lol

#

clustering is not graphs

#

it's an efficiency technique which involves shifting data around the table

lone cradle
#

yea, but send more graphs

bleak lintel
#

oh shit

#

it completed

#

that was fast

#

fucking hell

#

217MB down to 94MB

lone cradle
#

when a complicated process finishes in less time , you know you f'ed up

bleak lintel
#

do I dare cluster messages..........

clear plume
bleak lintel
#

lol

lone cradle
#

how to change username colour

bleak lintel
#

i'm going to do it

acoustic moss
#

become mod

lone cradle
bleak lintel
#

so let's take note: messages is currently 1246MB

lone cradle
#

ok

acoustic moss
bleak lintel
clear plume
#

And boosters

#

And partners

lone cradle
acoustic moss
#

no

lone cradle
#

colour is based on role....

#

oh

bleak lintel
#

ohhhh cluster claims ACCESS EXCLUSIVE

#

lol

#

forgot about that

lone cradle
#

lol

bleak lintel
#

that might muck things up a tad

lone cradle
#

hah

bleak lintel
#

oh no

#

it completed!

clear plume
#

Uhh ohh

bleak lintel
#

927MB!

lone cradle
#

now what happened

clear plume
#

My god

lone cradle
clear plume
#

So do the other 300 just disappear?

lone cradle
#

300?

bleak lintel
#

nah

#

it's not compression

#

it's just optimisation

graceful basin
#

I imagine it more like it just placed the data in a nicer way

bleak lintel
#

yeah, exactly

lone cradle
#

arranging in

clear plume
#

Ahh

lone cradle
#

like when you are nesting json. instead of creating new dicts for everything

#

?

bleak lintel
#

When a table is clustered, it is physically reordered based on the index information.

lone cradle
#

index information?

#

nice terms

bleak lintel
#

indexes are the way that you can optimise lookups in an SQL table

lone cradle
#

ohok

inland wolf
#

for speeeeed

lone cradle
#

is it similar to this?

for item in list:
    if item == something:
index = list.index(item)
inland wolf
#

not really

lone cradle
#

so it doesnt go through all items. but checks

lone cradle
inland wolf
#

indexes are faster than that for loop

#

im pretty sure its similar to how a dict retrieves data by key

lone cradle
#

so , if you find the index and then access the item in the list by using index.
is better than iterating all items in the list and checking if it matches? is this what you mean?

lone cradle
#

I think I am understanding now

silk kettle
#

python would like a word

round rose
#

I mean, if you read further, python also does that

#

the interpreter doesn't need the newlines and spaces

#

the parses does

inland wolf
#

u can write python in one line with ; seperators right?

winter terrace
#

ye

#

dont suggest it though

inland wolf
#

yes

rough sapphire
#

I just feel like randomly sharing my opinion on code style.

#

I started in c++ 3 years ago. I was sorta told through a couple books how to do things and I carried it into python and I still use the same styling.

#

object Variables which are nouns, peoples places or things- like 'This' or 'LikeThis'
temporary/local variables - 'this' or 'likeThis'
functions - 'like_this()

#

The funny thing is, everyone hates it and disagrees with me

frozen crane
rough sapphire
#

Yes

rough sapphire
#

exactly ^

quick ledge
#

is it an instance attribute or a class variable kinda thing?

rough sapphire
#

somewhat

quick ledge
#

lol, I was asking a this or that question

frozen crane
#

In Python, the casing convention is that everything is snake_case, unless it's a class or type alias, in which case it's UpperCamelCased. And if you want to indicate that some other variable shouldn't be changed (like a constant), you would do SCREAMING_SNAKE_CASE.

edgy crest
#

is that this or this that

frozen crane
#

That's a pretty widely used convention. As for what types of words you should use to name things, there's more variation there.

#

There's no Python convention that the scope of a variable should affect what kind of casing it should have.

rough sapphire
#

I see.

#

@edgy crest is that this or this that? that which is this must be that or else it's this

edgy crest
inland wolf
#

that maybe this when that is this but when that is that it is that

rough sapphire
#

now that is what this i all about, this is always that

winter terrace
#

im so used to c# that i now write all variables likeThis and functions LikeThis and pycharm keeps screaming at me to not

frozen crane
#

also, because of Python's data model, objects that aren't strictly "functions" can support all the same behavior as functions.

silk kettle
#

it's best to stick to the convention to avoid confusing people

#

If I see FooBar I'm going to assume it's a class

#

If it's actually a function and you do xyz = FooBar("baz") I now assume xyz is an instance of the class, when it may actually just be what the function returned.

surreal otter
#

just makes for much more readable code

quasi pike
#

Could Python or robloxpy be used to execute scripts into roblox games?

surreal otter
#

I write my JS the way JS convention insists, I do my C++ in their way, whatever that is. I generally forget and double check

#

I hate snake_case as camelCase is best, but my Python is snake_case

#

if I see CapitalCamelCase in Python I know it's a calss

silk kettle
#

I too prefer camelCase, but it falls apart when you get things like APIClass and looks weird

surreal otter
#

CAPS SNAKE_CASE is for non changing variables

#

you look at code and it speaks for itself

surreal otter
silk kettle
#

Yup, python is supposed to be clear and self-explanitory

surreal otter
#

clearlt supreme

#

just gotta *ACRONYMS

#

unpack those badboys

#

and if it is a just a letter? Spell it out phonetically

silk kettle
#

noo

surreal otter
#

EhPeeEyeClass

#

EhPeeAyeClass

silk kettle
#

black will create more monstrosities from hitting the line limit length if every name is obtuse

#

Unfortunately I have to use the default line length :(

#

|| 120 is much more reasonable imo, we've moved on from 80 char displays ||

surreal otter
#

I mean

#

we have, but 120 is still a lot more to digest per line

#

and a few chars can do a lot

#

so 120 can...

#

I like how in JS they encourage doing things like js whateverVariable.firstMethod .then .do .another

#

instead of chaining em in line, up to 120 chars?

#

madness!

silk kettle
#

I like that JS convention

surreal otter
#

I like readability, and think 80 is plenty to accomplish a lot

#

besides, I just run several files side by side on my bigger monitor

silk kettle
#

I'm always on the very edge of the 88 limit that black enforces.

#

The two vertical lines are 88 and 120

#

With black it would unfold all of that

#

In this case unfolding isn't bad (would probably help because of all the type annots), but for some things it can be annoying

surreal otter
#

I'm just a beginner yet, maybe in the future I will agree

silk kettle
#

everyone has their opinion ¯_(ツ)_/¯

rough sapphire
#

i have a question

young shoal
#

@silk kettle you can configure black to not do that

silk kettle
young shoal
#

gotcha

vapid nymph
#

where's the list of what these names change to lol

violet roost
#

there isn't one, unless you're a mod, I believe

#

so basically, it's a surprise!

vapid nymph
#

ah

#

hm?

lone cradle
#

hello

#

#python-discussion message @solid elbow . does the server bot automatically show the off topic channels whenever people talk something that isnt python related in the python-general chat room?

solid elbow
#

I'm not sure what happened there. My guess is that either someone asked the bot to send that message and then deleted their message, or that an admin or moderator decided to make the bot send that through some superpower they have

lone cradle
#

it would be cool if the latter was true

stark oasis
#

callbacks: Sequence[Tuple[Callable[..., None]], Optional[dict]], -- this is ridiculous..
The callbacks are a sequence of functions that return nothing because their effect is side effect on global dict. The callbacks are in tuples where if there is a second item in the Tuple that is not None, then it is aa dict that is passed with the callback to be used in that iteration of function at ... (as **dict), which is used because there is no way to specify kwargs.

Why am i so insane lol.

#

Type hints become pretty confusing but also have a way of spelling out the insane thing you are doing well.

quick ledge
#

yeah, it makes you think about what exactly you are going to pass into the function

#

you could do some type aliases if you think that'll make it more readable

stark oasis
#

I wrote that mainly to remind myself what im doing tomorrow

clear plume
#

Lol nice

stark oasis
#

yeah, typing alias was a good idea. Didnt seem like it until I had to write that a second time

clear plume
#

I told myself I was gonna go to bed two and a half hours ago

#

And I still haven't

lone cradle
stark oasis
#

PyCharm.

kindred sorrel
#

Jetbrains makes the best IDEs

#

Like, there's actually no competition

#

It's like Adobe for programming

#

Except my student license works on jetbrains

violet roost
#

VSCode seems a pretty reasonable competitor to me

#

it's not JetBrains

#

I must say i is a pity that most of the big IDEs run on Electron

#

it makes them so slooow

versed flint
#

that’s why there is logo_vim (which I should definitly learn)

violet roost
#

I wouldn't classify Vim as an IDE; it's an editor, not an IDE

#

Even Emacs isn't really an IDE

#

let alone Vim

#

I mean, if it comes to that, I can use Sublime Text without issues

#

but I was specifically referring to IDEs

simple sand
violet roost
#

no, Java

#

you're right

#

but it's so much bigger and heavier and overstuffed with pointless features that it somehow manages to be even slower

simple sand
#

lol

#

ima make one in python later one

violet roost
#

please don't

#

that'll probably be as bad as electron

#

Python has its places

simple sand
#

ima do it for fun

violet roost
#

and fast execution is not one of them

simple sand
#

ima use pyqt5

#

You are saying it will be as slow as vscode?

violet roost
#

well, if you wanna waste your time on that, your call

#

No, no

#

far slower

simple sand
simple sand
violet roost
#

VSCode is written in Electron, but it's heavily optimised by a professional coding team

#

You can't hope to even get anywhere near that level of speed for a similar amount of features, certainly not working alone with relatively little experience
so yeah, far slower

simple sand
#

ik but still what's wrong with trying eh

violet roost
#

Like I said

#

if you wanna, your call

#

just feels a bit pointless

#

I'd say you're better off choosing a smaller project which you might have a chance at finishing

#

but I'm not your boss

kindred sorrel
violet roost
#

I see

#

I mostly found pycharm distracting

acoustic moss
#

y

violet roost
#

because it's stuffed with features

kindred sorrel
#

Looks better, it does pythonpath management, highlights errors and code style better, runs tests for me, and a bunch of stuff

violet roost
#

everywhere I looked there was a distraction

#

I disagree with it looking better

#

it looks like a confused jumble

#

besides it took 20 seconds to load

#

where sublime text took 2

kindred sorrel
#

Tbh the argument of its distracting is not one I've understood

Everything on the screen has a purpose. Better to learn when and where it's used

And it's not a distraction so much as you being distracted by it. Why would some icons around the borders offer significant distraction? If you don't need them, ignore them. Use what you need

Atleast, that's my two cents

#

I don't use everything pycharm provides me, but I use enough of it that vscode becomes a hindrance

violet roost
#

Why would some icons around the borders offer significant distraction?
just some icons wouldn't offer distraction
Text at the bottom, top, sideways, things popping up whenever I press some random key combination, that is distracting
how am I even supposed to read that sideways text

acoustic moss
#

how do you randomly press a key combination lmao

quick scroll
#

@kindred sorrel have you heard of pylance LOL?

violet roost
#

it's quite easy @acoustic moss

quick scroll
#
  • pylint gives you literally everything you need
kindred sorrel
#

Text is just icons

What pops up anyway? The only stuff I've noticed is loading bars when you run something or the terminal at the bottom? And what's randomly pressing a key combination?

violet roost
#

when you try to press one, finger slips, and a slightly different key gets pressed

#

and suddenly all sorts of stuff starts loading and your editor almost crashes

quick scroll
#

not only that lol pycharm takes billions of years indexing files

violet roost
#

^

quick scroll
#

and takes lot lot lot of time to start up

kindred sorrel
violet roost
#

"building skeleton"
2 minutes later
"building skeleton"

acoustic moss
#

exactly no key near 1 does anything weird at all

kindred sorrel
simple sand
violet roost
#

2 minutes is absolutely insane

quick scroll
violet roost
#

for a frickin code editor

quick scroll
#

lol it's a text editor at the end of the day

acoustic moss
quick scroll
#

you can't wait 2 minutes every time you wanna code

kindred sorrel
violet roost
simple sand
#

No you do not?

#

I didn't have to do anything, all I had to do was look for some extensions

kindred sorrel
#

Yeah

#

You have to get multiple extensions

quick scroll
#

i wanna write code and i had to wait for like 2 minutes for the pycharm welcome screen to appear lol

kindred sorrel
#

And configure them

quick scroll
#
  • it's not even close to being as customizable as vscode
simple sand
#

you don't have to configure any extensions, you just have to restart it

acoustic moss
#

vs code extensions also take time to load, for the record

kindred sorrel
edgy crest
#

if you are talking about customization and speed, what about vim?

acoustic moss
#

someone's going to comment about vim/emacs now, I'm sure of it

violet roost
#

vim is fast but a pain to use
to the point that for a long time one of the most google stackoverflow questions was "how do I exit vim"

quick scroll
#

btw only pycharm pro used to support python 3.9 for some time lol

kindred sorrel
quick scroll
#

vscode did literally the day 3.9 released

kindred sorrel
kindred sorrel
simple sand
#

extensions do not have settings. the moment you download them and restart your vscode they start working

kindred sorrel
#

How do I tell the linter what formatting style I want?

simple sand
#

what do you mean?

kindred sorrel
#

How do I tell it which errors/warnings to highlight with what severity?

rough sapphire
#

Prettier can format js and html codes for you

kindred sorrel
simple sand
#

why do you need to tell the linter that?

kindred sorrel
kindred sorrel
simple sand
#

But how does it affect your coding?

rough sapphire
quick scroll
kindred sorrel
#

Because I want my code to be consistently formatted

rough sapphire
#

Lol

quick scroll
violet roost
kindred sorrel
rough sapphire
#

Lmaoo

#

True

tranquil orchid
#

@kindred sorrel You'll be able to change their settings in the settings.json

#

You'll need to refer to the extensions docs to know what options you have

rough sapphire
#

Ah yes

kindred sorrel
#

Which is a lot less convenient than pycharm

simple sand
#

rightt

quick scroll
kindred sorrel
quick scroll
#

and lol pycharm makes you install pip packages through the gui which leaves most people without a clue about the existance of pip lol

rough sapphire
#

I use both logo_pycharm logo_vscode

simple sand
#

well true, but if you are willing to put in some work then vscode can be as good as pycharm

edgy crest
#

breh just use butterflies

quick scroll
kindred sorrel
quick scroll
#

you can just set it to true on settings.json

#

it's that simple

drifting sage
#

I use logo_vscode

kindred sorrel
#

The fact that it's a JSON file and not a GUI is annoying for me

edgy crest
#

lol

rough sapphire
#

Vs code is the best if u put love and themes on it imo

simple sand
#

I mean you a programmer

#

get used to it,

quick scroll
#
  • you get a smooth caret animation and smooth scrolling customizability on vscode
violet roost
#

the fact that some editors use a GUI and not a JSON file is annoying to me

tranquil orchid
#

Everyone has their personal preference, there's no use arguing over editors, someone is always going to like something different ¯_(ツ)_/¯

edgy crest
#

i hate guis when it comes to coding

kindred sorrel
#

I'm a programmer and edit text files all day doesn't mean I need to consistently deny myself convenience

quick scroll
simple sand
#

but you won't alwasys get a gui

kindred sorrel
#

I find gui more convenient and easier to edit in some cases

violet roost
#

I find GUIs particularly inconvenient
specifically because I always work on my keyboard

quick scroll
edgy crest
#

thats one of the reasons i mostly use the terminal

violet roost
#

it's one of the reasons I went from MATE to i3

quick scroll
#

i bet a lotta ppl who use pycharm don't even know what pip is lol

kindred sorrel
# simple sand but you won't alwasys get a gui

I know, and where I don't have one I'll edit the text file. But if I can get a GUI in pycharm and it does everything I want and I don't have to find and load extensions, then I would rather use that

quick scroll
#

because they install packages using a gui

kindred sorrel
#

Yeah I know

quick scroll
#
  • the amount of time it takes to setup pycharm (python interpreter path and shit) is ludicrous
rough sapphire
#

I LOVE....

kindred sorrel
#

I'm not trying to enforce my choices on anyone

rough sapphire
#

THIS WORLD

edgy crest
#

verbose lol

simple sand
violet roost
#

sorry, that was a very childish comment of mine

edgy crest
#

or you can use that time to get a hot linux config with a twm

rough sapphire
kindred sorrel
#

Eh, everyone loves vsc and I'd rather use pycharm. End of story and I've got work to get back to

rough sapphire
#

Lol bye

quick scroll
#

pycharm sounds a bit kiddish ngl

#

but meh i ain't gonn pick on names

rough sapphire
#

VSC is good because it's some all-purpose software

simple sand
quick scroll
quick ledge
quick scroll
#

yeah you can choose a crap ton of linters

#

pylint, flake8

#

billions more

#

lol

edgy crest
#

hm i have only seen 8

#

not billions

kindred sorrel
#

Which one doee pycharm use? Because I've used a bunch and none of them felt close

edgy crest
#

i think it uses its own

rough sapphire
#

Me too lol

edgy crest
#

or a stricter flake8

quick scroll
#

yeah it uses its own

#

which i must admin is an advantage of a python specific ide

rough sapphire
#

Yeah

#

PyCharm is Python

simple sand
#

You mean admit lemon_happy

edgy crest
#

pycharm is python?

rough sapphire
#

It's got pu in is name

#

Py*

simple sand
#

Nah, pycharm is charming python

#

not python

rough sapphire
#

Woooahhh

edgy crest
quick scroll
#

lolll

rough sapphire
#

It might be the reason behind the name tho lol

quick scroll
#

really.

rough sapphire
#

I imagine that since PyCharm is focused on Python, they would be able to make it better than general purpose software like VSC, but it's only better in terms of Python

quick scroll
#

noone asked for this lol

quick scroll
rough sapphire
#

^^

simple sand
#

not necessarily greater

#

i would say equal

rough sapphire
#

Can't agree, since I don't use PyCharm, I only have used VSC

#

I editor say greater

#

Would*

quick ledge
#

and i don't think you can still say that

simple sand
#

ye i wouldn't call it greater either

rough sapphire
#

PyCharm is paid compared to VSC which is free

#

That's another factor

kindred sorrel
#

Pycharm community is free

#

And student licenses rock

simple sand
#

Not everyone is in a university to get a license

kindred sorrel
#

Yeah ik

quick scroll
inland wolf
#

same

#

except i deleted pycharm

#

wait

#

no i didnt delete

#

hm

#

suprising

rough sapphire
#

Hello

inland wolf
#

hello

acoustic moss
#

Hello

edgy crest
#

hello

rough sapphire
#

Combo breaker from the combo starter

rough sapphire
#

to code or not to code

#

i busted a vessel in my eye

#

from so much coding

spring plinth
#

hi

#

@proper pike

proper pike
#

wassup

#

its like after secondary school finishes

#

naw only some schools

spring plinth
#

ohh..

proper pike
#

the school nearest me didnt have unfortunately

#

u from the UK right?

spring plinth
#

oh ok

proper pike
#

oh

#

indians in my school are very smart

#

we just finished biology

#

now moving on to chemistry

#

err no but some tamil friends

#

i see ur an anime fan

#

lol true

spring plinth
#

i see ur an anime fan
@proper pike nope.. 😅 i put it for no reason 😅

proper pike
#

lol

#

yup

#

do u mean iteration?

#

oh thats A level or further maths

spring plinth
#

oh 😗

proper pike
#

are u doing gcse or a level

spring plinth
#

are u doing gcse or a level
@proper pike gcse ? 😳

proper pike
#

😩

#

omg

#

u must be smart

#

how old are u?

#

dayyum

#

same age bro

#

😆

spring plinth
#

u know python?

proper pike
#

yeah sort of

#

i think you contaactanated it

#

oops i cant spell it

tranquil orchid
#

theres a few ways you could go about it

#

if you want to be introduced to some new syntax [f"I live in {x}" for x in lis] would be the shortest and easiest

proper pike
#

nice Jack

tranquil orchid
#

but assuming you're not aware of list comprehensions, you could pretty much keep everything you have (although be aware you are using some bad practices) and instead of assigning the string to x append it to a list

proper pike
#

Jack should i pick a level computing?

#

in the uk

#

is it hard?

tranquil orchid
#

No idea

#

I don't live in the UK

proper pike
#

oh

spring plinth
#

if you want to be introduced to some new syntax [f"I live in {x}" for x in lis] would be the shortest and easiest
@tranquil orchid ok.. i got a list with 4 different elements..

#

now how do i make it a single element or string?

tranquil orchid
#

ah if you want it as a string, either join that list using something like ' '.join(list)

#

Or you could modify your previous loop

proper pike
spring plinth
#

ah if you want it as a string, either join that list using something like ' '.join(list)
@tranquil orchid ok JACK 🥺

proper pike
#

oh i thought u needed some help sorry

#

do you think you can help me with my homework

spring plinth
#

yeah maybe

proper pike
#

oh ok

#

yeah

spring plinth
#

yeah.. i may help

#

its easy

proper pike
acoustic moss
#

what's your question lel

proper pike
#

question b)

tranquil orchid
#

well the period is 2 pi, and coordinate P is three quarters of the way along that

#

and the y is visually obvious

proper pike
#

yeah

#

but the x axis

#

i cant determine the value

tranquil orchid
#

well the full period is 2pi

#

it's three quarters of 2pi

proper pike
#

wait where did pi come from lol?

spring plinth
#

😶

acoustic moss
#

oh, you're degrees behind

tranquil orchid
#

it's a sin wave

proper pike
#

is it not just a normal sin graph?

tranquil orchid
#

yes it is

acoustic moss
#

the full period is 360 deg

proper pike
#

i thought sin graphs x axis where in degrees no?

tranquil orchid
#

we use radians

#

for things like this

#

not degrees

proper pike
#

oh

acoustic moss
#

radians is another way of measuring angles, and often more convenient

#

pi often pops up in it

tranquil orchid
#

mhm

acoustic moss
#

2pi radians = 360 degrees

proper pike
#

yes

#

but i thought it was asking co ordinates of the point

acoustic moss
#

So the sin wave repeats every 360 degrees, right?

proper pike
#

yes

spring plinth
#

pi radian = 180° 🥺

i was taught this

proper pike
#

yaa

acoustic moss
#

So one complete wave will cover 360 degrees on the x-axis?

proper pike
#

yeah

acoustic moss
#

The wave ends on the 4th mark of the x-axis, P is at the 3rd mark

proper pike
#

yes

acoustic moss
#

the 4th mark as we found corresponds to 360 deg

#

So the 3rd mark is ---

proper pike
#

270?

spring plinth
#

what is this.. 🥺 i never learnt this..

proper pike
#

ikr i asked all my friends they didnt know

acoustic moss
proper pike
#

ayyy

#

thanks man

spring plinth
#

ikr i asked all my friends they didnt know
@proper pike 😂😂

proper pike
#

looool

spring plinth
#

🤣🤣

proper pike
#

i even tried that aswell and he said same as you

acoustic moss
#

Also, sin(270) = -1 is a pretty standard value, so you should keep it in mind

proper pike
#

@acoustic moss you live in uk?

acoustic moss
#

no

spring plinth
#

i even tried that aswell and he said same as you
@proper pike 😂

tranquil orchid
#

The conversion from degrees to radians is pretty simple as well, just radians = degrees * pi/180

spring plinth
#

hmm

proper pike
#

ahh ok

#

thanks Jack

acoustic moss
#

perhaps

proper pike
#

hahastinkypoop where u live

#

no sorry

#

hahastinkypoop not in a bad way sorry

acoustic moss
proper pike
#

oh okay no wonder your smart

spring plinth
#

India
@acoustic moss OMGGG

proper pike
#

Thanks for the Help Mate

acoustic moss
spring plinth
#

oh okay no wonder your smart
@proper pike he might be in college..

acoustic moss
tranquil orchid
#

lol

tranquil orchid
#

I would say the majority of people here are highschool/uni/college students

#

younger people

proper pike
#

yessir

spring plinth
#

yeah

acoustic moss
#

hm

proper pike
#

people who care about their future

spring plinth
#

@acoustic moss u are in which class ?

#

people who care about their future
@proper pike dont* 😂

proper pike
#

lol

acoustic moss
#

1 <= x <= 12

proper pike
#

nice conversation guys

#

i got to go

#

see ya

spring plinth
#

1 <= x <= 12
@acoustic moss oh !

tranquil orchid
#

hmm

#

it is 2am

spring plinth
#

see ya
@proper pike ok bye

proper pike
#

for me its 3 pm

#

i got to do some work

#

byee

tranquil orchid
#

and i gotta do some sleep

spring plinth
#

and i gotta do some sleep
@tranquil orchid k .. enjoyy

clear plume
#

Y'all in a completely different timezone then me lol

jagged fog
#

[Question]
I have a bunch of configuration commands for my bot.
Commands like !prefix , !branding , !format , !language etc

I'm thinking to add them to group so it would be like
!configure guild prefix , !configure guild branding ...etc but I'm not sure if that's too long to type. It does make code and help command more organized.
or maybe just drop the guild part and do !configure prefix , !configure branding ...etc

Any tips of how you would preffer it if you had to use it in a bot?

inland wolf
#

i would call the command !config

#

cuz its shorter

jagged fog
#

ah good idea

inland wolf
#

and making it a group makes sense to me

#

probably better in the long run

#

if u add more config stuff it can all be bundled together under that config

jagged fog
#

ye makes sense peterthink

#

thank you Rainbawoopat

inland wolf
#

👍

graceful basin
#

@past charm please do not advertise your discord server here.

past charm
#

that counts as advertising?

#

anyway, sorry, I was just trying to help

ruby fox
#

wassup

crimson sandal
#

this bot solves quadratic formula equations but numbers that create negative square roots i get a math domain error (because u cant √ negative numbers)

#

this is a ss of when the numbers i enter do not create a negative √

round rose
#

Assuming it's made in python, you would import the square root function from cmath rather than math, which would allow you to work with complex numbers

crimson sandal
#

i'll try that thanks

round rose
#

!e py from cmath import sqrt print(sqrt(100)) print(sqrt(-100))

royal lakeBOT
#

@round rose :white_check_mark: Your eval job has completed with return code 0.

001 | (10+0j)
002 | 10j
crimson sandal
round rose
#

You can reformat it better by using result.real and result.imag to access the real and imaginary parts respectively

crimson sandal
#

but now when i enter numbers that previously gave me simpler answers it gives me a weird output

round rose
#

It's still the same number, but it's an instance of complex rather than float

crimson sandal
#

is there a way to keep it as a float?

round rose
#

Two ways

#

You can either just show the real part if the imaginary part is 0 (or awfully close to being 0), or you can check if the discriminant is negative before performing the operation and then deciding which sqrt to use

crimson sandal
#

alright, thanks for the help

#

would it make sense to people seeing it for the first time?

toxic shore
lone cradle
#

hello everyone

mellow spire
#
35.719s plymouth-quit-wait.service                           
17.819s snapd.service                                        
13.322s dev-sda2.device                                      
12.188s systemd-journal-flush.service                        
10.961s udisks2.service                                      
10.461s containerd.service                                   
10.427s networkd-dispatcher.service   
``` is there a way i can make my system fast
#
Startup finished in 39.174s (firmware) + 8.699s (loader) + 21.080s (kernel) + 1min 1.689s (userspace) = 2min 10.643s 
graphical.target reached after 1min 1.497s in userspace

inland wolf
#

what does it mean when i say The apple is but red

#

does it mean The apple is nothing but red

#

or The apple is everything but red

#

or something else?

rough sapphire
#

I think it's the latter

#

I imagine it would be very hard

#

Imagine a finger that you can't really sense

#

That you can't precisely control

#

That's a chopstick

#

Except that chopsticks are thinner

acoustic moss
inland wolf
#

yea same

#

but it sounds right in both ways

#

which is why it confused me

rough sapphire
#

Ah, yeah, it sounds like the former

inland wolf
#

but when u think about it

rough sapphire
inland wolf
#

it sounds like what u think about

rough sapphire
#

Some alternative

inland wolf
#

hmm

#

that does make sense

#

life is but a dream

#

another guy said it means merely

#

which also makes sense

topaz aurora
#

I sure love dealing with a configuration language that's both declarative and dynamic

error: infinite recursion encountered, at /home/pure/PureFunctor/Web/purefunctor.me/config.nix:10:11
acoustic moss
#

||going to pretend like i understand what you're saying||
ikr it's so annoying

stark prawn
#

infinite recursion in a config file, nice

inland wolf
#

lol wtf

topaz aurora
#

I'm using Nix to manage my Haskell project's dependencies and it also basically allows me to override whatever options I want when building those packages

#

In my case, my stuff that defines how those packages are overridden is inside of the same "use this configuration as an override" definition

#

or in simpler terms, the child refers to the parent, the parent refers to the child, then you have a non-terminating config file

rough sapphire
inland wolf
#

lol