#ot1-perplexing-regexing
1 messages · Page 514 of 1
no idea these last few days my sleep schedule's been so fucked i couldn't watch the news
i just remember the one headline on M6 where they said we had like 300 vaccinations and the other EU had hundreds of thousands
Oh man, you missed Castex saying to Blanquere that he can literally “go now” haha
lmao
That was pretty awesome
i can guess that
?
you guys are getting vaccinations?
change caption.
yea
its there in india too innit?
yup. but large population
yes
"vaccination dry-run" was conducted a week ago
I see
my brudas , didn't you get vaccinated?
now i think health workers are being vaccinated
but its like 100 doses per state or something iirc
on the first day
We are.. uuhhh.. missing some critial organisation, let’s say
not yet.
WHO
lol
aah, you got it
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.
you can delete the file, which will also remove it from git
you can also manually do git rm file in the terminal
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.
so ive made a rainbow helix
i've made it rain at your cursor
what js toy should i make next?
the serpinski triangle?
Sierpiński triangle
could be interesting
ye
Mandelbrot is prettyyy
How dare you
Especially if you turn it sideways, so to speak
how do I get rid of the margin at the top of the page?
.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
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
I've been looking at that off and on but it's not helping
I've got a border, margin and padding of 0
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
https://jsfiddle.net/ -- its a standard for demonstrating frontend environments
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
I see.
There are also browser css rules if you didnt know that
no imports of anything?
nope
I didn't know that im like an hour into this whole thing lmao
https://jsfiddle.net/vLcwgzdu/1/ -- look what happened when i cut out the bootstrap imports. It cut out a lot of it, but possibly not to the effect you want. You want black all the way to the top?
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
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
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
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.
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
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..
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
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
ugh I didn't think this would be this complicated 😄
is there a way to make page-header a child of the jumbotron class?
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
how do I change the bg colour then?
I thought i'd have to create another one and inherent from jumbotron
omg
@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
welll shitttt guess who's not a designer ✋
I'll have a look at it tho thanks for all the help
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
bro how did stelercus become python?? :0
Does anyone know if there is a text editor with syntax highlighting/linting for Kivy kv files?
Pychaarm doesnt seem to have it
yeah, there is a lot more third party stuff there i think
just surprising charm doesnt have it
I was reading the Zen of Python and meditating, and then I became one with Python.
Is beautiful better than ugly?
!pep 2p
Converting to "int" failed for parameter "pep_number".
!pep <pep_number>
Can also use: get_pep, p
Fetches information about a PEP and sends it to the channel.
damn
!pep 20
newb question, what is pep
Yes. And explicit is better than implicit.
Except with respect to typing. I guess.
a python enhancement proposal. In the olden days, people would propose changes to the language and Guido alone would accept or reject them.
Now there's a five-member council that does that.
interesting.. just clicked the link and saw it. Thx for the info
||type-hinting is feeling sad||
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.
I use type hints for function signatures on any user-facing code.
but it's nice that they're optional when I'm writing a throw-away script
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
they're called magic numbers I think
If i could take a class on math that is used in graphical programs, I would. Its my biggest weaknesss.
did you have a goal that depends on having that knowledge?
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
@stark oasis this code is for making object bounce back at edges
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
@stark oasis for physics based games, you must know some physics
for example, for a cannon ball, projectile motion is used
If you're not doing the physics yourself, just basic vector math takes you pretty far
ello
Stelercus you are not mentioned in any pep sad :((
HIs name holds deeper meaning than any human can comprehend so its no wonder we can't find it

I am every pep!
I guess.
Can you be Python and PEPs at the same time?
idk
name every pep then
1, 2, 3, 4, 5, 6...
and it never ends?
I AM the senate vibes
I think it's in the 600s currently, and then there are a few non-contiguous ones numbered in the thousands. Not sure why.
there better be a pep 69
PEP 69 does not exist.
Hahaha
!pep 420
oh at least that is there
lol
Also you forgot pep 0 smh
!pep 0
How many pepes are are there
I guess you could count them, but I’d say a lot
!pepe 0
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.
!pep 9999
PEP 9999 does not exist.
#bot-commands or I will never add you in a pep
!pepe pig
It is matching the tag pep8
pepe 0 is pep 8 nice
And it is on cooldown right now
why bold IS 
Because you can’t put actual caps in channel names
!otn s stelercus-IS-python
• stelercus-𝖨𝖲-python
!charinfo 𝖨𝖲 IS
\U0001d5a8: MATHEMATICAL SANS-SERIF CAPITAL I - 𝖨
\U0001d5b2: MATHEMATICAL SANS-SERIF CAPITAL S - 𝖲
\u0020 : SPACE -
\u0049 : LATIN CAPITAL LETTER I - I
\u0053 : LATIN CAPITAL LETTER S - S
\U0001d5a8\U0001d5b2\u0020\u0049\u0053
interesting
@bleak lintel in reference to #community-meta message ,you got any pre generated graphs on/for me?
yeah i'm just building something now
Cool
@clear plume
gmt?
Is this like on a daily average or something?
per hour
all time
so just what hours of the day do you send your messages
sum, not average
yeah
Ahh, got it
do you just up and die at 10am
16 hours
Notice how I don't have one message at 5 am lol
lol
But also, I have > 7k messages, so I think the graph is off or something
You guys send every message to the db?
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
you have 2.02k since august 25th, when we started tracking
it only logs since metricity started to exist
that's from discord search
Ahh
all time you have 7.2k
Since it started tracking
geez how about me?
Makes more sense lol
so. even if it saves, and you delete a message. does the message delete in the db also
messages don't get deleted, no, they just get flipped into a deleted mode
they just dont appear....
graphs 
omg. privacy threat
lol
Not capitalizing false smh
tell postgres
this is a nice feature for mods
what is this app that you are using
redash
@bleak lintel can make graph for me 👉👈
^
it's not that big
No, only this server
When you take into account that the message content isn't stored, it isn't much data yeah
how much mb is the whole db of all messages even sent here
ints are smol
Mega smool
lmol
but i can do something so it works in my server r8
Oh wait if the message content isn't stored then what is?
or do you have them as strings
sadly strings rn
well, still not too large
It only keeps track of messages in this server
only the ids
to do compat with frontend JS
thanks ig
why am I always active
and some other details which you can see in this
look here #ot1-perplexing-regexing message
but... i can create a bot that saves all messages in a file right?
Ofc
yes but say goodbye to your storage
^
haha
yes, but then you have to have a privacy policy that states you do this and process deletion requests and other such silly stuff
🇫
depends on weather your server has less people ||in my case 0||
⭕ 😮
I wonder if I have the query that tells me db size
"silly stuff"
hmmMM
where is the db even saved
on our host
in joe's pc?
well
oo
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"
heh
ooh
smol
it is somewhat scary just how big a GB is
not at my place lol
That's running on digitalocean right?
How much is a TB in freedom currency?
probably like 10-15$
usd
10$ for a GB?
TB
err, TB
Tb
linode
maybe less when you buy in bulk
that seems cheap
storage is cheap
yea
i think we pay
What kind of storage? Is that a one off $10 or cloud?
Yeah, I'm surprised. That seems cheap
$1 per month for 10GB
wow
ok, that makes sense, monthly
Huh, I remember the discord getting sponsored by digital ocean, so I would assume y'all use them lol
largest is like 20MB
I bought a $90 1TB NVME and htought I got a solid deal
they sponsor our events, linode sponsor our hosting
SSDs are much more expensive
Ahh, got it
I was talking cheap HDDs you buy in bulk
storage is cheap. but hardware cost...
though even then it seems more like 20-30$/TB
Would you rather buy cyberpunk or an ssd
That's what I was thinking
ssd
$10 seemed too good to be true
hmmmmmmmm
I imagine that with scale you can get there, but we generally aren't buying in that kid of scale
maybe i should cluster some of our tables
More graphs 
yes pls #joe
lol
clustering is not graphs
it's an efficiency technique which involves shifting data around the table
yea, but send more graphs
when a complicated process finishes in less time , you know you f'ed up
do I dare cluster messages..........
Probably not
lol
how to change username colour
i'm going to do it
become mod
only moderator can have colours other than white?
so let's take note: messages is currently 1246MB
ok
and helpers, admins, other staff
here we go
can you have any colour you want if you are one of these
no
lol
that might muck things up a tad
hah
Uhh ohh
927MB!
now what happened
My god
got compressed?
So do the other 300 just disappear?
300?
I imagine it more like it just placed the data in a nicer way
yeah, exactly
arranging in
Ahh
When a table is clustered, it is physically reordered based on the index information.
indexes are the way that you can optimise lookups in an SQL table
ohok
for speeeeed
is it similar to this?
for item in list:
if item == something:
index = list.index(item)
not really
so it doesnt go through all items. but checks
hmmm
indexes are faster than that for loop
im pretty sure its similar to how a dict retrieves data by key
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?
oh
I think I am understanding now
I mean, if you read further, python also does that
the interpreter doesn't need the newlines and spaces
the parses does
u can write python in one line with ; seperators right?
yes
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
what is it that everyone disagrees with you about? variable naming conventions?
Yes
what's an object variable?
exactly ^
is it an instance attribute or a class variable kinda thing?
somewhat
lol, I was asking a this or that question
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.
is that this or this that
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.
I see.
@edgy crest is that this or this that? that which is this must be that or else it's this

that maybe this when that is this but when that is that it is that
now that is what this i all about, this is always that
im so used to c# that i now write all variables likeThis and functions LikeThis and pycharm keeps screaming at me to not
you can turn that off. but Python is not C# 
also, because of Python's data model, objects that aren't strictly "functions" can support all the same behavior as functions.
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.
Yep, it helps with debugging, especially when seeking help from others
just makes for much more readable code
Could Python or robloxpy be used to execute scripts into roblox games?
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
I too prefer camelCase, but it falls apart when you get things like APIClass and looks weird
CAPS SNAKE_CASE is for non changing variables
you look at code and it speaks for itself
Well, ApplicationProgramInterfaceClass
Yup, python is supposed to be clear and self-explanitory
clearlt supreme
just gotta *ACRONYMS
unpack those badboys
and if it is a just a letter? Spell it out phonetically
noo
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 ||
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!
I like that JS convention
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
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
I'm just a beginner yet, maybe in the future I will agree
everyone has their opinion ¯_(ツ)_/¯
i have a question
@silk kettle you can configure black to not do that
I have for my personal projects.
But when working on stuff that it's not just me making I don't get a choice
gotcha
where's the list of what these names change to lol
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?
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
it would be cool if the latter was true
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.
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
Lol nice
yeah, typing alias was a good idea. Didnt seem like it until I had to write that a second time
what is the editor that you are using?
PyCharm.
Jetbrains makes the best IDEs
Like, there's actually no competition
It's like Adobe for programming
Except my student license works on jetbrains
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
that’s why there is
(which I should definitly learn)
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
PyCharm runs on electron?
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
ima do it for fun
and fast execution is not one of them
It's not wasting it, it's just a fun idea i had
Wait really?
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
ik but still what's wrong with trying eh
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
I still prefer pycharm for any large project
y
because it's stuffed with features
Looks better, it does pythonpath management, highlights errors and code style better, runs tests for me, and a bunch of stuff
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
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
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
how do you randomly press a key combination lmao
@kindred sorrel have you heard of pylance LOL?
it's quite easy @acoustic moss
- pylint gives you literally everything you need
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?
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
not only that lol pycharm takes billions of years indexing files
^
and takes lot lot lot of time to start up
Literally never happened to me personally
"building skeleton"
2 minutes later
"building skeleton"
exactly no key near 1 does anything weird at all
It takes like 2 minutes on startup at worst and then it's just better
Everything you said could be made availbale in vscode as well
2 minutes is absolutely insane
exactly
for a frickin code editor
lol it's a text editor at the end of the day
it happens in the background, it's not stopping you from coding
you can't wait 2 minutes every time you wanna code
But I need to get all of it from different sources, configure all the settings
it is though
because I want to execute stuff etc
I can do all sorts of stuff in those two minutes
all sorts of more useful stuff than wait for my code editor to finally load
No you do not?
I didn't have to do anything, all I had to do was look for some extensions
i wanna write code and i had to wait for like 2 minutes for the pycharm welcome screen to appear lol
And configure them
- it's not even close to being as customizable as vscode
you don't have to configure any extensions, you just have to restart it
vs code extensions also take time to load, for the record
I'm using clion, and it loads in like 10s for me, along with all the stuff it does after startup
if you are talking about customization and speed, what about vim?
someone's going to comment about vim/emacs now, I'm sure of it
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"
btw only pycharm pro used to support python 3.9 for some time lol
Extensions have settings. Settings have to be customised to how I want it
vscode did literally the day 3.9 released
Student licence
No?
Why not?
extensions do not have settings. the moment you download them and restart your vscode they start working
How do I tell the linter what formatting style I want?
what do you mean?
How do I tell it which errors/warnings to highlight with what severity?
Prettier can format js and html codes for you
How do I tell the linter I'm using black or pylint or whatever
why do you need to tell the linter that?
We're talking about python for the record
Because I have a style
But how does it affect your coding?
U can use pycharm for that. It can sort problems based on severity
django exists lol
Because I want my code to be consistently formatted
Lol
error lens is useful too
we're literally discussing pycharm versus vscode
hardly a useful comment in this context
Read the entire chat please
@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
Ah yes
Which is a lot less convenient than pycharm
rightt
editor.format_on_type or whatever it's called
Exactly. I don't want to hunt around for this across multiple extensions. Pycharm just works
and lol pycharm makes you install pip packages through the gui which leaves most people without a clue about the existance of pip lol
I use both

well true, but if you are willing to put in some work then vscode can be as good as pycharm
breh just use butterflies
better
dude that's a default setting for vscode
I don't want to put in the work when I literally have pycharm that does it all for me
I use 
The fact that it's a JSON file and not a GUI is annoying for me
lol
Vs code is the best if u put love and themes on it imo
- you get a smooth caret animation and smooth scrolling customizability on vscode
the fact that some editors use a GUI and not a JSON file is annoying to me
Everyone has their personal preference, there's no use arguing over editors, someone is always going to like something different ¯_(ツ)_/¯
i hate guis when it comes to coding
I'm a programmer and edit text files all day doesn't mean I need to consistently deny myself convenience
lol exactly, vscode gives you both so you have a choice
but you won't alwasys get a gui
I find gui more convenient and easier to edit in some cases
I find GUIs particularly inconvenient
specifically because I always work on my keyboard
yeah autocompletions are so much better on a json file with a schema
thats one of the reasons i mostly use the terminal
it's one of the reasons I went from MATE to i3
i bet a lotta ppl who use pycharm don't even know what pip is lol
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
because they install packages using a gui
that's why its just prefrence
Yeah I know
- the amount of time it takes to setup pycharm (python interpreter path and shit) is ludicrous
I LOVE....
I'm not trying to enforce my choices on anyone
THIS WORLD
... took me 5 minutes
verbose lol
And you can use this time too configure the settings in vscode
sorry, that was a very childish comment of mine
exactly
or you can use that time to get a hot linux config with a twm
Lol I couldn't even see it. Is OK
Eh, everyone loves vsc and I'd rather use pycharm. End of story and I've got work to get back to
Lol bye
VSC is good because it's some all-purpose software
It's not that, there are people that would prefer pycharm over vsc but they are not in the chat rn, xd
and you get syntax highlighting for literally every lang outta the box
ctrl shift P
type "lint"
choose linter
Which one doee pycharm use? Because I've used a bunch and none of them felt close
flake8 probably
i think it uses its own
Me too lol
or a stricter flake8
You mean admit 
pycharm is python?
Woooahhh

lolll
It might be the reason behind the name tho lol
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
noone asked for this lol
python extensions + vscode > pycharm
^^
Can't agree, since I don't use PyCharm, I only have used VSC
I editor say greater
Would*
yeah, but you need to install the said extensions
and i don't think you can still say that
ye i wouldn't call it greater either
Not everyone is in a university to get a license
Yeah ik
i have one lol but i still use vscode tho
Hello
hello
Hello
hello
Combo breaker from the combo starter
ohh..
oh ok
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
i see ur an anime fan
@proper pike nope.. 😅 i put it for no reason 😅
oh 😗
are u doing gcse or a level
are u doing gcse or a level
@proper pike gcse ? 😳
u know python?
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
nice Jack
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
oh
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?
ah if you want it as a string, either join that list using something like ' '.join(list)
Or you could modify your previous loop
@spring plinth watch this vid it helps https://www.youtube.com/watch?v=g-Aym5nJheM
A Level Maths revision tutorial video.
For the full list of videos and more revision resources visit www.mathsgenie.co.uk.
ah if you want it as a string, either join that list using something like
' '.join(list)
@tranquil orchid ok JACK 🥺
yeah maybe
what's your question lel
question b)
well the period is 2 pi, and coordinate P is three quarters of the way along that
and the y is visually obvious
wait where did pi come from lol?
😶
oh, you're degrees behind
it's a sin wave
is it not just a normal sin graph?
yes it is
the full period is 360 deg
i thought sin graphs x axis where in degrees no?
oh
radians is another way of measuring angles, and often more convenient
pi often pops up in it
mhm
2pi radians = 360 degrees
So the sin wave repeats every 360 degrees, right?
yes
pi radian = 180° 🥺
i was taught this
yaa
So one complete wave will cover 360 degrees on the x-axis?
yeah
The wave ends on the 4th mark of the x-axis, P is at the 3rd mark
yes
270?
what is this.. 🥺 i never learnt this..
ikr i asked all my friends they didnt know
🥳
ikr i asked all my friends they didnt know
@proper pike 😂😂
looool
🤣🤣
i even tried that aswell and he said same as you
Also, sin(270) = -1 is a pretty standard value, so you should keep it in mind
@acoustic moss you live in uk?
no
i even tried that aswell and he said same as you
@proper pike 😂
will do
The conversion from degrees to radians is pretty simple as well, just radians = degrees * pi/180
hmm
perhaps
India
oh okay no wonder your smart
India
@acoustic moss OMGGG
Thanks for the Help Mate
np
oh okay no wonder your smart
@proper pike he might be in college..
what are the odds I live in the same country as 1/6th of the entire world
lol
nop
I would say the majority of people here are highschool/uni/college students
younger people
yessir
yeah
hm
people who care about their future
@acoustic moss u are in which class ?
people who care about their future
@proper pike dont* 😂
lol
1 <= x <= 12
1 <= x <= 12
@acoustic moss oh !
see ya
@proper pike ok bye
and i gotta do some sleep
and i gotta do some sleep
@tranquil orchid k .. enjoyy
Y'all in a completely different timezone then me lol
[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?
ah good idea
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
👍
@past charm please do not advertise your discord server here.
wassup
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 √
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
i'll try that thanks
!e py from cmath import sqrt print(sqrt(100)) print(sqrt(-100))
@round rose :white_check_mark: Your eval job has completed with return code 0.
001 | (10+0j)
002 | 10j
it kinda worked
You can reformat it better by using result.real and result.imag to access the real and imaginary parts respectively
but now when i enter numbers that previously gave me simpler answers it gives me a weird output
It's still the same number, but it's an instance of complex rather than float
is there a way to keep it as a float?
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
alright, thanks for the help
i chose the simpler route and wrote some explanations instead
an example of a number with "0j" being added for reference
would it make sense to people seeing it for the first time?
hello everyone
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
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?
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
pretty sure it's the former
Ah, yeah, it sounds like the former
but when u think about it
it sounds like what u think about
Some alternative
hmm
that does make sense
life is but a dream
another guy said it means merely
which also makes sense
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
||going to pretend like i understand what you're saying||
ikr it's so annoying
infinite recursion in a config file, nice
lol wtf
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
its pretty hard to #ot1-perplexing-regexing
lol

