#ot1-perplexing-regexing
1 messages · Page 465 of 1
I think google trained an AI to speak
what how
not speak freely though
just like a smoother TTS
kinda
imagine how long that took
I remember seeing a video about Microsoft and OpenAI making something that writes Python code for you
based on docstrings, function names, arguments, annotations
I think it was using the GTP-3 model
i used the code to make the code
Open AI language model was trained on thousands of GitHub repositories using the same unsupervised learning as the GPT models.
Build 2020
https://www.pscp.tv/Microsoft/1zqKVlqvBELJB
By: Microsoft, OpenAI
this is so cool
@tranquil orchid i didnt even understand how to even create the screen
AI can create code, music, words
@edgy crest Its pretty easy
now ai is going to take over our developers
This week my interest was directed towards OpenAI's New Language Generator: GPT-3. Ask any questions or remarks you have in the comments, I will gladly answer to everything!
Subscribe to not miss any AI news and terms clearly vulgarized! Share this to someone who needs to lea...
one sec lemme get you a quick template
ok
import arcade
class Game(arcade.Window):
def __init__(self, width, height, title):
super().__init__(width, height, title)
window = Game(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE)
arcade.run()
```Just makes the window
And then all the events are functions inside the Game class
like on_draw on_update on_key_press etc
oof i havent started understanding oop yet
ah maybe do that first
yea
cause arcade is a lil more advanced than pygame
yea
But so much nicer once you know how to use it
i think so
can you also tell me where to start to learn oop?
i tried some youtube tutorials but i got only more confused
Uhhh i can't remember where i learnt
I started learning about it when i got into (g)ui stuff
Like you can run a game/ui without them but it’s super hard to organize and becomes exponentially harder when you get into more complicated stuff
there we go just quickly added the collision detection and reset
import arcade
class Game(arcade.Window):
def __init__(self, width, height, title):
super().__init__(width, height, title)
window = Game(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE)
arcade.run()
```Just makes the window
@tranquil orchid okie i learnt enough oop now to understand this
i just want to know whats super() here
maybe
oohk
This isn't a place to advertise your server. @late quest
oh sorry
what i noticed is that the activity isnt that as much very active
but the number of people that are active are the same
theyre active but not conversing that much
i only notice that it is more active around the timezones near the US and the western side of Europe
during their daytime hours
ye kinda
Anyone participating in hacktoberfest?
What’s that
Anyone participating in hacktoberfest?
@grave sleet what that?
It's this Fest by Digitalocean wait I'll send the link
Well, you don’t need any skill to actually enter, you can take a look at projects with a lower entry bar
Yeah time is the only thing stopping me but I so wanna do this but the projects are always huge code bases I come across
In JS, you can do
const [x, ...xs] = myArray;
but not
const [...xs, x] = myArray;
Why? That doesn't make any sense to me
!e
my_array = [1, 2, 3]
x, *xs = my_array
print(x, xs)
*xs, x = my_array
print(x, xs)
@shell raptor :white_check_mark: Your eval job has completed with return code 0.
001 | 1 [2, 3]
002 | 3 [1, 2]
wdym?
@shell raptor
huh
I'm listening
and thus, @shell raptor waited, patiently, waiting for a response
still waiting
still
waiting
loses patience (╯°□°)╯︵ ┻━┻
but realizes that he can do something else than waiting ┬─┬ ノ( ゜-゜ノ)
waiting for eternity
taking a while but it'll happen
whats going on here
as of this moment, fix error is still waiting
even saitama cant defeat me haha
In some circumstances maybe
python isn't very good for competitive programming - it's too slow
ik , but the syntax makes it easy to think about the solution
But
Go is fast right?
Depends on competition I guess
ik , but the syntax makes it easy to think about the solution
you literally just said it was good
Competitive programming is so broad
the syntax doesn't matter for competitive programming
all that really matters is the solution
I see
the vast majority of stuff is in C++
Doesn't C++ take time to compile?
competitive programming usually refers to algorithmic competitions - the kind of thing you see on Kattis
it's relatively specific
is it mostly because of the speed of C/C++ as well as the inclusion of the standard library, right?
I mean , STL is really helpful , but compilation surely takes time
It's usually C++ because it gives you all of the tools you need to do your magic fuckery - but is also very fast
Compilation is generally pretty quick
I mean , STL is really helpful , but compilation surely takes time
@lunar shore only on large projects with a lot of templates
It's as procedural as C
what are we arguing hmm
.org*
Even Rust is arguably more functional than Go
wow
there's nothing on the main site about it being functional
uhh...Then Elm or Haskell?
@lunar shore kotlin
I mean , I need to learn a functional programming lang , I am so curious to see the syntax and stuff + how it manages stuff
Kotlin?
Hmm
Or c#
@solid pollen wow new color i forgot
Yes 
Or F#
Akarys is genuinely my god now
Haha, I’m very far from it
C# as an entry is alright since a lot of functional stuff can be applied there
my one friend is trying to convince me to learn scala
There's also Scala if you like the JVM
I think I'd go with Kotlin , heard good things about it + I can do Mobile dev
or Clojure
Scala looks interesting - weird stuff with Spark
I have dislike of JVM but that comes from supporting Tomcat stuff
Spark is still pretty big in the distributed processing world - as is hadoop - so you're kinda stuck with the JVM
and by "still pretty big" I mean it's the only thing I'm aware of in that world
Waaaiiiit a minute .... Kotlin could be used as a JS alternative?!?
I must have some JS compiler
@lunar shore By the way, if you ever consider learning Haskell, I really suggest starting with https://www.youtube.com/watch?v=Vgu82wiiZ90
Haskell?
mhm
It's a general purpose language much like Python
There are libraries for web development like Yesod, and there's also tensorflow bindings
Good
Waaaiiiit a minute .... Kotlin could be used as a JS alternative?!?
@lunar shore yes, but the tech isn’t really usable right now
Kotlin is more general purpose than haskell IMHO
try and guess where my namesake is from once you're all caught up with that series
@topaz aurora And a very unrelated + dumb question but I'm curious , how did u add neovim status like VS Code?
Probably an extension
Oh I see thanks
can sb suggest me a good JS discord? you are allowed to DM, as the link is blocked with a high chance
SpeakJS: https://discord.gg/dAF4F28
This is for just general JS - I have more links for specific frontend frameworks if you like
thanks!
hey how can I add that little speaker icon beside mine channel
add the emoji
how?
From discord even
would that work?
Yeh
let me try
🎉
won't it come as :jsjsj: instead?
\🎉
there isnt a speaker emoji in discord
ye the first one works
no it worked @round rose thx
because thaat is unicode
What didn't work?
but not for 💠
not discord's :emoji: code
\💠
\💠
@narrow pecan try this
Try this
ok thx where do u get that
It's the emoji, but with a \ before it
oh that worked
@quick ledge the emoji code won't work, if you copy the symbol from an actual message it copies the unicode for me
\😀 would be \😀
nah, pasting the emoji results in emoji code
If you then paste the emoji in discord, it will automatically convert it to its regular emojis unless you screen them
It doesn't for me
😀
liar
This is the emoji in a code block
time to fire up obs
that's what you want me to think
time to fire up obs
@round rose looks photoshoped to me
ight you got me there
🎮 ,
\🎮
Horray, got my iPhone homescreen cleaned up
;_; one day work will let me upgrade to iOS 14 and make my workphone aesthetically pleasing
just down to two screens
did you go with any particular color scheme?
Why can't you upgrade?
work hasn't authorized the iOS upgrade yet. Security IT policy.
Color Scheme?
wasn't aware that was option
no, just cleaning up my 7 pages of home screen
bruh
from what I've seen you can apply like a nice color scheme and get super custom with it
my friend won some fanart from a thing and she got a cool bg
She should have won the lottery instead, smh
Missed opportunity
smol brain move
no?
Numbers are numbers, and this isn't weird at all
numbers in general are weird
perfect numbers are numbers who the sum of all of their divisors except themselves equal themselves
I have
Yeah, it's messed up
it is weird
I've started to doubt that you can doubt anything in modern mathematics
There's a theory in Geometry that took about 900 pages to prove
The equation is the size of your pinky
what is the equation
Hang on, let me get the name
Enjoy
Last Theorem
Did he die after making it?
Name checks out then
I bet you could make a fractal with that information somehow
Possible
The thing is
Fermat said that the equation could be proved in a single line
But he died before saying it
World's greatest bait
he died before saying it?
Yup
damn these ghosts
🤔
saying shit in the after life
World spent 358 years to solve an equation
no...that's not how that works
First we have to kill a few trees to get the paper to prove that we could solve it in a single line
then we can kill a few more to find that single line
1 tree = 1 page,
u sure?
I wish we could go back to the days of mathematics where all we had to worry about was whether the sum of 2 multiples of n was a multiple of n
nooo
1 tree is actually about 10,000-20,000 pages in case anyone was actually wondering
A tree gives the number of pages that you want
15000, 1/3% margin of error
what is the difference between <@&267628507062992896> and <@&267629731250176001> ?
nice pings
D:
Thanks
Moderators enforce the rules across the server, Admins typically take care of more behind the scenes and administrative stuff
(but we also moderate, if we want)
Don't see why not
I think we can share that
@oak tangle I'd be glad
Also yeah, you just pinged like... 20+ people
also sorry for pinging :d
It happens, now you know
Helpers
• Helpers participate in Python-related channels (e.g. Help Channels, Topical Channels) and help other members of our community.
• There are no real requirements for the level of activity a helper has to have, although we do expect their activity level to be more than "nothing".Moderators
• Moderators moderate our community and participate in moderation discussions in #mods.
• While moderators don't need to have high levels of activity, we do expect some form of consistent activity. This means that consistently being active a few times a month is better than having one day with a lot of activity per year. Having some kind of consistent activity helps moderators bond with the rest of the moderation team and helps them to stay up to date with the moderation policy.
• Moderators are not required to fulfill the helper criteria in addition to this, although it's is obviously appreciated if they do.Admins
• Admins are expected to work on tasks that directly improve the community on a regular basis.
• Examples of these tasks include:
• Doing pull request reviews;
• Being involved in events;
• Overseeing road map items;
• Solving critical issues;
• Handling raids;
• Joining our meetings (if in a compatible timezone);
• Actioning issues on the organisation repo;
• Improving our infrastructure;
• Writing documentation or guides;
• Recruiting and on-boarding new staff members;
• Calling staff votes for nominees;
• Having one-on-ones with moderators.
• Admins are also expected to keep each other updated on the status of the tasks they are working on.
It happens, now you know
@plucky ridge yep, not gonna happen again 👍🏿
thanks @oak tangle
Owners
In addition to the regular Admin criteria, Owners also have to:
• Join staff/admin meetings as often as possible and lead those meetings.
• Help identify the most critical tasks and try to distribute them among the Admins during the weekly Admin meeting.
• Make sure that no one is "blocked" in performing their tasks
• Ensure that the community isn’t neglecting important responsibilities
• Manage partnerships, sponsorships and speak on behalf of the community in public settings
monday.com
sorry
breh

it wouldn't surprise me if you could get sponsorship for all sorts of wacky team management products
no idea if monday.com is any good
Yes, pings will still trigger in quoted text
lol
heh...
wait... it's possible to become an owner
Yes, pings will still trigger in quoted text
@plucky ridge 90k+ people know
One could even say it can leave a sour taste in said 90k+ people's mouths.
I actually don't think it did

y i k e s
wait... it's possible to become an owner
@manic bloom
Yes. But it's kind of like becoming a genie.
good old mass pings
Yes. But it's kind of like becoming a genie.
@tame terrace You have to give out three wishes?
Alright, I'll list mine until tomorrow
On one hand, I have, what's the phrase
phenomenal cosmic powers
but on the other hand I can only use it to fulfill other people's wishes
being an owner for a community this big is kind of like running a small start-up. It's pretty much a second job.
Yeah. I could guess that it must take a lot of time and effort
it's a greedy quantifier.
It's a huge community
it takes as much time and effort as you have.
Yeah
the real challenge is limiting your time and effort to something reasonable to prevent burnout.
I could spend 25 hours a day here and I'd still never do everything I wanted to do.
yeah, place is pretty huge now
Yeah. That's basically the issue with everything. You gotta find a good balance
it's really nice seeing the amount of work that's been put into it though
But bisk, you never said good wine
oh nooooo
It could be basically vinegar
i'll have three ever lasting bottles of wine please
Two more wishes
oldest trick in the genie book
That would probably last forever, unless you're desperate
what book
is 3 items one wish?
Why not
oldest trick in the genie book
it's three things
don't ask wnb he's not even a real genie
oh
According to the Institute of Genie
I've heard genies are really racist anyway
Welp. That's what the owners must be?
really racist?
i mean to keep them in the jar
i mean lamp
or w/e
that's pretty racist against djins
that's just a simile
oh, i thought you meant the genie owners
it does make you wonder, what type of lamp do you have to rub to get a lemon?
That should be an ot name, but I have no idea how to formulate it
A normal one
lemon's rubbie lamp
nice
I kinda want this
it's pretty cute
Someone had too much time on their hands hahah
then you could paint your emoji face on it
I draw little lemon dudes in my engineer daybook
You've gotta keep them in a bottle, not a jar bisk
Can't rub them the right way in a jar
Gotta run. See you tomorrow 👋
Then there's a price to pay
Gotta make a good impression
are you saying "nice, lemon!" or "nice lemon!"
book or movie?
ooooh, enjoy~
o/
we should release a winter fashion set of purely lemon based clothing. It could be a brand xD
There's "winter melon", so why not name the brand WinterLemon
LuluLemon may have something to say about it, but I dont think we would be on their radar
I agree
I think PyDis branded merchandise would be really cool
With that, I mean blurple and python-like (without using the python logo in a disallowed way)
we should release a winter fashion set of purely lemon based clothing. It could be a brand xD
@eternal wing but yeah, this would be awesome
Winter themed blurple pydis clothes? That would fit the cold colors as well. We could have lemons for the summer (they fit) and pydis for winter
I would wear a blurple hoodie
yes yes would wear
I’ve proposed the pydis winter hoodies idea in #dev-branding. Would be awesome if it turned into an actual thing
Oh dang, this should be a thing then haha
Honestly, I really hope so. Would be awesome
@narrow pecan also wtheck, congrats on helper xD
(I think more people would buy it than the lemon pillow, even though the pillow is awesome)
Thankss mate😄
Haha, lemon pillow is great, but there is no place for it in my life xD
We should release this together with Django hoodie stickers (the “you tried your best” for code jam participants)
did the results come out
We’re discussing the hoodies now
The channel is open as well, so you could have a look or even join the discussion #dev-branding
this weekend probably
woah
theres a bunch of sick python django hoodies online
sick
BRUH, this is awesome vvvv
what is the best way to go about learning c#
Microsoft academy has great courses
@rough sapphire if you're learning for Unity, just learn as you go and build projects 🙂
Heeey girl, are you a GUI that supports inline figures, proper multiline editing with syntax highlighting, graphical calltips and more?
Because you are a qt
now there are games on coding..
lol
ok
good one
They're all inside jokes or things we found funny at the time
We're constantly adding more
Oh
Is there a unity support server?
Is there is, pls ping me with the invite link thanks
If there isn't, pls ping me telling me there isn't one. Thanks again
help :3
Does somebody know an Android Webbrowser where I can turn off SSL verification?
My company's network doesn't have an SSL certificate or how it's called and I can't open some pages on my mobile (I can on my Laptop where they turned it off)
a little question :
can we say functions are kinda similiar to modules ?
The only real similarity is that they both group together some semantically related code
ehm i meant :
you created a python file a.py, that file have some code inside it, as far as i know that a file is now considered as a module, we call it with import module
or did i get it wrong ? 😄
But that also applies to classes and a lot of other things, so no, they aren't similar
hm
when you import a module it is executed, yeah
imports become class type module
but that doesn't mean that you should abuse that to treat modules like one-time callables
are modules one time callable ?
A module is something you can import, be it a single file or a package
for i in range(1000):
import random```
If you import a module again, it's not executed a second time because it's cached in sys.modules
But there's no benefit in doing so
I knew there was some stuff going on to avoid duplicating work with imports.
you can use importlib to reexecute it I believe, but using modules as functions is extremely poor design
so no, they aren't similar to functions at all where it matters
they share some common traits, but that's it, they are significantly different semantically
i cant understand you properly :d sorry i am trying to improve my english 😄
oh ok i googled it
In simple terms, they are meant to do very different things
okay
A function is a reusable chunk of code that can take and return different parameters, while a module is more of a collection of useful functions, classes and other stuff you'd use elsewhere
I guess?
I wouldn't worry too much about the swap since you can allocate some of your main partition
Reverse engineering is so satisfying
especially reverse engineering things like pyc files
I for some reason never thought to do that
How is it encoded? Like is it just hex?
Or is it the actual bytecode commands?
okay one minute
I made this by printing out dis.dis of source code, then compiling with pycompile and performing a sort of hexdump. Then I transferred the results to notepad and removed the newlines that resulted from the hexdump encoding and printed it out. After that, I marked out things like strings and bytecode commands in pencil.
I gotta move the picture to my laptop
No rush
@plucky ridge Moved, Here is the ID 724865789341204480
@left jungle I think that's the message ID. To get the user ID you have to turn Developer Mode on in your settings, right click their name and get the ID that way
Holy crap. That's an admirable amount of work
The code I used to generate this:
from dis import dis
from py_compile import compile
import os
def main():
with open('disMe.py', 'r') as file:
dis(file.read())
compile('disMe.py', 'disMe.pyc')
dump()
#os.system('hexdump disMe.pyc')
def dump():
printWidth = 16
with open('disMe.pyc', 'rb') as file:
ctr = 0
txt = ' '
for b in file.read():
print(hex(b)[2:].zfill(2), end = ' ')
ctr += 1
try:
txt += b.to_bytes(1, 'big').decode('utf-8')
except:
txt += '.'
if ctr == printWidth:
print(txt)
ctr = 0
txt = ' '
if ctr != 0:
for i in range(printWidth - ctr):
print(' ', end = ' ')
print(txt)
The code I disassembled:
a = 'Clearly a string.'
b = 'Another string.'
print(a)
724865789341204480 This is the User ID
Thanks, Hemlock!
Huh. He's not showing up in our database. @left jungle Never would have thought that the function name would be in plain
In Bans
Or the variable names for that matter
I'm looking into it
@plucky ridge Here it is
@calm dawn thats incredible
Right?
Thanks Jet!
oh, sry i forgot that when you quote something it pinks
I don't mind
kinda like that guy named lemon 
lol
Thanks Jet!
@calm dawn 🙂
I eventually want to develop a microcontroller that interprets pyc bytecodes and executes python code natively (no interpreter)
oh thats sick
before that, though, I need to finish my logic simulator
Python code, executed by a microcontroller, emulated in a logic sim, written in python, emulated in c, running in windows, running on an x86 cpu 😆
sooo many layers!
Have you looked into MicroPython and CircuitPython?
yes! I use micropython on my esp32
Niiiiiiiice
its very nice, but still interpreted
My goal is to eventually eliminate the interpreted layer
I honestly don't see this taking less than a year to complete
@left jungle Let's try this way, what's their current user name? Should be the one with the #number after it
I'll need that bit too
@calm dawn Is that a proprietary architecture by Raspberry Pi?
I don't think I've seen that before
is this ot talking about me
how
imagine if this was added before you were a helper
it probably was
Pretty sure it is
that'd be pretty funny
@shadow jetty
Stop-Computer
that's like right before i was a helper
@lone verge rust appears to be beating out Go
Like Discord threw Go overboard in parts and converted to Rust
You see articles like this constantly. Python is dead, repent python sinners and convert to one true God of <whatever>
java, king of boilerplate
@left jungle The ban against him is valid and will not be revoked. He's more than welcome to send an appeal to our appeals email appeals@pythondiscord.com but it has to be them who comes to us, not a representative for them.
what is the reason?
@lone verge rust appears to be beating out Go
@lofty dirge yeah fs
@left jungle You're free to ask them, but we don't discuss infractions given to other users
I also never get appeal of look what well known companies uses
At most major companies, you will find a mix of everything
My group of 30ish devs, QA and SREs has .Net Framework/Core, Python, Java, Kotlin from angry former Java person and Powershell
Can you stare at this message for 5 minutes?
Ok so
Yup!
I need your second opinion
What is better an audiobook or should i get a paperback
Ooo that's a tough call
depends how you like reading
I never read in my life
I've always preferred audiobooks but that's mainly because I get restless
Depends on what you're reading too
I like audiobooks if I know I'm going to be busy, but I love reading from a paperback
Then I'd suggest paperback
Since you'll likely want to be able to refer to it easily
Ok
Also, you'll remember it easier by reading than listening
Is that true
My philosophy is if it's for reference it needs to be a book. Entertainment can go either way
In my experience it is 
Or maybe i should buy both versions
If you've got the scratch why not. But for something like a driving book.... Not quite sure how much information you'd be able to properly absorb over audio. Paperback is perfect since you can also write notes in the margins and stuff
I’m a good driver but want to be better so i am getting this book
@halcyon mantle just don't read the book while driving
Lmao yeah
https://i.redd.it/ayxwpuasjjn51.png Look Guido made a post about PYthon 4
how was the transition form 1 to 2?
Moderate changes
Mainly new functionality
1 to 2 was more like a facelift, where as 2 to 3 was an overhaul
Someone managed to find the 1 to 2 transition announcement and I thumbed through it
Was actually really interesting
What's New in Python 2.0
alright, thanks guys
Also totally didn't realize list comps were implemented back in 2
Like 2.0
That's just nuts to me
@calm dawn Is that a proprietary architecture by Raspberry Pi?
@plucky ridge please clarify?
All of the work posted above was done with https://repl.it
Repl.it is a simple yet powerful online IDE, Editor, Compiler, Interpreter, and REPL. Code, compile, run, and host in 50+ programming languages: Clojure, Haskell, Kotlin, QBasic, Forth, LOLCODE, BrainF, Emoticon, Bloop, Unlambda, JavaScript, CoffeeScript, Scheme, APL, Lua, Pyt...
It’s for pyweek 30, I guess.
it is.
Is guido in here
👀
I am under cover.
It's called a roof.
I am also under covers.
Bedsheets.
It is also dark. Under cover of darkness.
Well punned
Is it, though?
*insert in-depth analysis saying "yes"*
idk where to post this so ill post here, can someone tell me if this code looks efficient or could I make it more smaller?
class RefreshToken:
def __init__(self):
self.api_key = api_key
self.oauth_client_id = oauth_client_id
self.oauth_client_secret = oauth_client_secret
self.refresh_token = refresh_token
self.access_token = ''
def refresh_access_token(self):
endpoint = f"https://oauth2.googleapis.com/token"
params_dict = {
'client_id': self.oauth_client_id,
'client_secret': self.oauth_client_secret,
'refresh_token': self.refresh_token,
'grant_type': 'refresh_token',
}
params = urlencode(params_dict)
url = f"{endpoint}?{params}"
res = requests.post(url).json()
self.access_token = res['access_token']
return self.access_token
Nitpicking here but that's a redundant f-string declaration at endpoint
I wonder why it's so hard to contact the owner of a project, specially owners of programming languages
they're busy
Yeah, billions of people tried to contact the creator of Lisp to no avail, they even wrote long books about him and built special buildings to communicate with him.
Dont you guys just love programming discords
^ thats the hacktoberfest discord server smh
your response was spot on
should have been "how young"
LOLOL
@young shoal well, at least old enough to use Discord...
who says they have to communicate through discord
@lone verge do you have a invite to the the hacktober fest disc
not related to the screenshot of course...right?
ngl, that post is genuinely VERY concerning if it is not a joke.
is this an official server?
I hope it is a joke, otherwise it looks like an older man is abusing a group of young girls.
Yep its official
nice
for sure report that please
best case: it is a troll that should get banned.
worst case: it is an actual adult trying to abuse children.
LOL what an odd project request
they deleted I think
Yeah i think they deleted it
That message seems really concerning, if it’s not a joke
Yeah
yeaaa
Hahahaha
May I ask something about OOP
sure
The link below* says:
The main aim of OOP is to bind together the data and the functions that operate on them so that no other part of the code can access this data except that function.
*https://www.geeksforgeeks.org/object-oriented-programming-oops-concept-in-java/
Not really the question yet, but is this true?
In Python, you can access the objects’ data without problem. I believe there isn’t really a concept of “private variables” and such things
Ah
In some other languages though, you can have private variables and methods (I think)
That's what's known as encapsulations and is one of the OOP principles.
Does that mean encapsulation isn't in Python fully?
Also, I realize that I used Java as source for a Python-y question
(Which might be different in implementations)
In python the convention is to not use variables of classes that start with a _ directly.
But there is nothing preventing you from doing it anyway.
Apart from me rejecting your pull requests.
Hmm
Okay
More of a preference question now, I guess
But
Should I create a class of an object that is and has its properties already public?
(And which I can't "privatize" that object)
What do you mean by that?
I think I've got to be more specific
I'm trying to create a class from an HTML element of a public website
The element has property names and values that I can access (and can make into a class)
A library like beatifulsoup can do this for you
DOM objects are already avaiable to you then.
let ele = document.querySelector(selector)```
The thing is that
It seems counterintuitive with the concept of encapsulation
That I copy the data properties of that HTML element
To a class
Data properties that still can be accessed without interacting with the to-be-made class, nonetheless
I guess a class would be useless then with that
For some purposes, I want to get specific properties of the HTMLElement and turn it into another class
Not really inheritance
More like just copying something from it
...This is a really obscure way of using OOP, I think
Nevermind my question
A lot of people in the help channels use the phrase “go about”, as in “how would I go about doing that”. Now that I mentioned this, you won’t be able to not notice it.
That's because it's a common phrase in the English language.
And I probably won't notice it any more than I already did.
You will. You say you won’t, but you will.
Ok
I probably use it in like half my help requests
I spat out water when I read the otn
It's a good reference
does anyone here know MATLAB syntax? I'm stuck trying to figure out if this line is doing something different from what I expect and I don't really know what to google
I'm trying to figure out how to turn this MATLAB code into something in python:
x = [1 4 9 15]';
y = [0, 3, 5];
x_2d = repmat(x, 1, length(y);
y_2d = repmat(y, length(x), 1);
f = sin(x_2d/8).*sin(y_2d/4)
I keep failing at the .* because my array shapes can't be broadcast together.
I know that the x = [1 4 9 15]' returns some sort of transpose matrix, but I don't know how to get something like that that'll work in python where I can do the element-wise multiplication
the answer is maybe this apparently?
import numpy as np
import numpy.matlib as npmatlib
import matplotlib.pyplot as plt
# Setting up the Cartesian Grid
x = np.array([1, 4, 9, 15])
y = np.array([0, 3, 5])
#x_2d = np.tile(x, (1, len(y)))
#y_2d = np.tile(y, (len(x), 1))
x_2d = npmatlib.repmat(x, len(y), 1)
x_2d = np.matrix.transpose(x_2d)
y_2d = npmatlib.repmat(y, len(x), 1)
print(x_2d)
print(y_2d)
# Setting up the data
#f = (np.sin(x_2d/8)*(np.sin(y_2d/4)))
#f = np.sin(x_2d/8).dot(np.sin(y_2d/4))
f = np.multiply(np.sin(x_2d/8), np.sin(y_2d/4))
# Let's plot it
fig = plt.figure()
ax = fig.gca(projection='3d')
surf = ax.plot_surface(x_2d, y_2d, f)
plt.show()
ugh. I hate dealing with MATLAB.
@cerulean blaze why do u say laptops are a scam??/
Theyre not worth the money
why do u say that though
Unless you really need something portable then i would advise on building a desktop
I have £1100 worth of hardware here that cant even compare to any macbook you can buy
raspi laptop
raspi?
raspberry pi
if u're doing just programming nothing intensive get something with a good screen don't focus too much on hardware, cloud is wayy cheaper option when u need to do some intensive stuff, specially if u live somewhere where the internet is crappy
a cheap computer
save ur eyes first
or use discord light mode
lol
what light mode
I am a psychopath so i should use the light theme
Dark theme was the best thing ever developed with css
agree
i will be dead without dark theme
you guys have a light theme?!?
yea but i never use it
0-0
White theme is better
I like how they describe themes.
I don't taste white theme.
lemon + coconut taste good btw
+ 🥥 = 🤢
Do you mean lime
no i mean kenshi
I dont play kenshi
nah lemon gud
If anyone uses freeoffice for linux.... or if you just see things that are not there...
The side panel for tips and tricks, the welcome screen you get on software at first execute sometimes...
I have yet in my life to see one that has no option to close it readily obvious.
I am close to uninstalling this over this.
Im literally searching tips and tricks forums on how to remove the tips and tricks
The x closes the open document.
Under view there is nothing, under tools and window nothing
All I can think to do is grab it by the width adjust and push it all the way to the right.
Thiks makes the software usable if ridiculous.
But holy shit my mind is blown rn.
When you put up a tips and tricks window, you put a fucking close button big as fuck
</done>
I'm definitely uninstalling this.
Literally every portion of that sidebaar is a place you can accidently click to load their website.
This is why proprietary software has no place on Linux. It just becomes trash that you cant even pay for to get a license to get them to fuck off.
Linux users exist.
@rough sapphire why would you use FreeOffice over LibreOffice?
OnlyOffice or LibreOffice is what i will use
LibreOffice has like ~9 years of development behind its fork
and its forked from OpenOffice, which was released in 2002
so there's like ~18 years of development on it
OpenOffice is good. i just dont know how to customize the UI
OpenOffice is depreciated
sad
it ceased development 9 years ago
which is why you'd use LibreOffice now
FreeOffice is just some freeware garbage
OnlyOffice and LibreOffice hmm
it ceased development 9 years ago
@gentle moss what happened
OpenOffice.org (OOo), commonly known as OpenOffice, is a discontinued open-source office suite. ... In 2011, Oracle Corporation, the then-owner of Sun, announced that it would no longer offer a commercial version of the suite and donated the project to the Apache Foundation. Apache renamed the software Apache OpenOffice.
oh lol
it is still in development but not as much
last update was last year it wasnt major
LibreOffice is really the only one to even bother with
last stable was like a month ago
LibreOffice has a dropdown bug. hmmm for the fonts
you cant see the name of the fonts because of the color lol
well i tried comparing stable and fresh (their latest releases) and the dropdown for the fonts is buggy. you can only see the name of the fonts if you hover over your mouse.
fresh is the super buggy one
thats why i jumped over to onlyoffice
Guys what does a Junior dev need to be a senior?
experience.
I see , so a person who has 2 years experience is counted as a junior , while a person who has 8 years is senior?
8 years might not even be enough
wow
have a look at job listings for senior developers
that should give you an idea of what's expected of them
depends on the position
years of experience is also a bad measure of determining competency
Hmmm
Ummm...The requirements are not that much . Like e.g a senior Java software engineer job requires :
Core Java
Spring framework
Web services and API development
Git
Gradle/Maven
SOAP, XML, XSL
yeah but what does it specify you're required to do within the job
not just the technical skills
Hmmm
this harks back to what we were talking about the other day
there's more to being a developer than just having technical skills
here's an example i dragged from reed
Lemme see
· Drive all aspects of application design - including but not limited to high performance design, coding, caching mechanisms, security, encryption, error logging, debugging, scalability, development environment configuration and testing.
I see
So basically a Senior could do Networking , Software dev , Web dev , Encryption , Ethical hacking , Debugging ....
i think it's more about generally being very well versed in development in general
to the point where you can build architectures and plan the direction of development
Oh so that means being a senior developer , you can plan/manage the project all on your own + the technical skills you have
i guess
I see
also there's probably a load of stuff like code delegation / team management
Oh well
someone has to tell the juniors what to do :3
well you're still young.
just focus on doing your best at learning
things will spring from that
hey what are webhooks in discord?
Captain Hooks
webhooks are like a reverse api

think about it, it makes sense
:D
I still confuse webhooks for websockets
What a way to end a conversation prematurely
welllllll, i guessss they're like a reverse api
The thing is that an API can be going back and forth
yeah, so that's the key distinction
a webhook is one way
"do i have data to send? okay i'll send it"
Yeah
then you have an endpoint which handles that data
A webhook is just data bursting through the front door
if that helps @simple sand
can printf() cause buffer overflow?
A lot of things can cause buffer overflow
Can printf segfault?
what is segfault
akarys == aka rys 
what is segfault
@rough sapphire basically, you fit too many things in a too small array, and the program doesn't know what is where anymore
Buffer overflows are the same thing, but controlled to corrupt another buffer
are they harmful
A segfault crash the program
A buffer overflow usually give an attacker the control of a particular space in memory
oh thats not good
So yes, they are both very harmful
ok so i code c in raspi or vm?
wdym small array
im guessing like a list
so then whats a big array
usually in languages with less protection
supercomputer list ?
It is just "too small"
fix?
python will crash as soon as you try it
A 1Tb array could be too small
why
(or buffer, for that matter)
then what is a big array
because you can always go len+1
theres no big array? bummer
Well, if you try to fit 1.2Tb of data in it, you won't have enough space, so they are too small
where do you need that much data
Well, modern arrays now resize by themselves
We are talking about low level stuff/medium-low level languages, like C
oh thats good
where do you need that much data
@edgy crest dunno, just an example
hmm
yeah i want to learn about more low level stuff
how can i learn more low level terms?
Unnnhh
Maybe take an ASM/C course?
I'm not really sure
I mostly learn those low level stuff in the fly, while learning other things
Did what?
an example of when you were learning something and came across a term
what were you learning
Oh, for instance I learned this overflow related thingys while watching LiveOverflow's videos
Any time 
@lunar shore Haskell has two build tools named cabal and stack
I see
cabal is the primary build tool that basically downloads the dependency sources for you, compiles, and links them together
stack is a wrapper around cabal that basically does the same thing except it also maintains a list of LTS packages that are proved to be stable
Ohhhh


