#ot1-perplexing-regexing

1 messages · Page 465 of 1

rough sapphire
#

they can learn

still sky
#

I think google trained an AI to speak

rough sapphire
#

what how

still sky
#

not speak freely though

rough sapphire
#

i cant even imagine how long that took

#

and v r the best ai 🙂

still sky
#

just like a smoother TTS

rough sapphire
#

lol

#

but it could talk like human

still sky
#

kinda

rough sapphire
#

imagine how long that took

still sky
#

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

rough sapphire
#

i used the code to make the code

still sky
rough sapphire
#

this is so cool

edgy crest
#

@tranquil orchid i didnt even understand how to even create the screen

rough sapphire
#

omg

#

how

#

im speechless

#

thats why im typing

still sky
#

AI can create code, music, words

tranquil orchid
#

@edgy crest Its pretty easy

rough sapphire
#

now ai is going to take over our developers

still sky
tranquil orchid
#

one sec lemme get you a quick template

edgy crest
#

ok

tranquil orchid
#
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

edgy crest
#

oof i havent started understanding oop yet

tranquil orchid
#

ah maybe do that first

edgy crest
#

yea

tranquil orchid
#

cause arcade is a lil more advanced than pygame

edgy crest
#

yea

tranquil orchid
#

But so much nicer once you know how to use it

edgy crest
#

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

tranquil orchid
#

Uhhh i can't remember where i learnt

edgy crest
#

hmm

#

i will try to research

versed saffron
#

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

tranquil orchid
compact jetty
#

try adding random obstacles in the middle

#

and did u make that using arcade

edgy crest
#

yes he did

#

ahhhh i want to learn oop but idk where to start

edgy crest
#
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

compact jetty
#

oh that inherits from a class

#

does it

edgy crest
#

maybe

tranquil orchid
#

yeah

#

it calls the init of the arcade.Window that its inheriting from

edgy crest
#

oohk

oblique sail
#

This isn't a place to advertise your server. @late quest

late quest
#

oh sorry

edgy crest
#

wait a sec...
lemon_infant

#

what is baby lemon doing here

mild abyss
#

what i noticed is that the activity isnt that as much very active

compact jetty
#

ohh really

#

the number of people active are the same

mild abyss
#

pure baet me to it in python general

#

beat*

compact jetty
#

but the number of people that are active are the same

mild abyss
#

theyre active but not conversing that much

compact jetty
#

ye that is correct

#

but it is online in the morning

mild abyss
#

i only notice that it is more active around the timezones near the US and the western side of Europe

#

during their daytime hours

compact jetty
#

ye kinda

grave sleet
#

Anyone participating in hacktoberfest?

olive schooner
#

What’s that

mild abyss
#

Anyone participating in hacktoberfest?
@grave sleet what that?

grave sleet
#

It's this Fest by Digitalocean wait I'll send the link

mild abyss
#

wow that is so cool

#

but i lack the skills so i wont enter

solid pollen
#

Well, you don’t need any skill to actually enter, you can take a look at projects with a lower entry bar

mild abyss
#

i also lack the time because of my academics

#

but i will try to enter

#

if i can

edgy crest
#

same

#

i would like to see how the questions and projects are

grave sleet
#

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

shell raptor
#

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)
royal lakeBOT
#

@shell raptor :white_check_mark: Your eval job has completed with return code 0.

001 | 1 [2, 3]
002 | 3 [1, 2]
compact jetty
#

wher eis the bot code

#

where is the bot code

#

not spamming

edgy crest
#

wdym?

wooden silo
quick trout
#

@shell raptor

young shoal
#

huh

shell raptor
#

I'm listening

topaz aurora
#

and thus, @shell raptor waited, patiently, waiting for a response

mild abyss
#

still waiting

edgy crest
#

still

mild abyss
#

waiting

edgy crest
#

loses patience (╯°□°)╯︵ ┻━┻

mild abyss
#

but realizes that he can do something else than waiting ┬─┬ ノ( ゜-゜ノ)

edgy crest
#

goes out for a snack

#

realizes all shops are closed

mild abyss
#

laughs in code | lolcat

#

and still he goes back to waiting, nonetheless

edgy crest
#

waiting for eternity

boreal swift
#

taking a while but it'll happen

edgy crest
#

whats going on here

mild abyss
#

as of this moment, fix error is still waiting

edgy crest
#

even saitama cant defeat me haha

lunar shore
#

Guys is Go good for competetive programming?

#

Like as good as Python?

lofty dirge
#

In some circumstances maybe

lunar shore
#

I see

#

So basically it could be

undone berry
#

python isn't very good for competitive programming - it's too slow

lunar shore
#

ik , but the syntax makes it easy to think about the solution

#

But

#

Go is fast right?

lofty dirge
#

Depends on competition I guess

undone berry
#

ik , but the syntax makes it easy to think about the solution
you literally just said it was good

lunar shore
#

I said

#

The syntax is good for competetive programming in that sentence you quoted

lofty dirge
#

Competitive programming is so broad

undone berry
#

the syntax doesn't matter for competitive programming

#

all that really matters is the solution

lunar shore
#

I see

undone berry
#

the vast majority of stuff is in C++

lunar shore
#

Doesn't C++ take time to compile?

undone berry
#

competitive programming usually refers to algorithmic competitions - the kind of thing you see on Kattis

#

it's relatively specific

honest star
#

is it mostly because of the speed of C/C++ as well as the inclusion of the standard library, right?

lunar shore
#

I mean , STL is really helpful , but compilation surely takes time

undone berry
#

It's usually C++ because it gives you all of the tools you need to do your magic fuckery - but is also very fast

lofty dirge
#

Compilation is generally pretty quick

topaz aurora
#

I mean , STL is really helpful , but compilation surely takes time
@lunar shore only on large projects with a lot of templates

undone berry
#

and it's also not included in the runtime

#

i'm pretty sure

lunar shore
#

I see...

#

I'd learn go anyways , I don't know any functional program languages

#

Yet

undone berry
#

go isn't functional

#

like

#

at all

lunar shore
#

Isn't it?!?

#

BRUH

topaz aurora
#

It's as procedural as C

lunar shore
#

Like I read something about being functional in the main website

mild abyss
#

what are we arguing hmm

lunar shore
#

.org*

topaz aurora
#

Even Rust is arguably more functional than Go

lunar shore
#

wow

undone berry
#

there's nothing on the main site about it being functional

lunar shore
#

uhh...Then Elm or Haskell?

#

Which one?

mild abyss
#

Haskell is

#

idk about elm

#

pure is a haskell monster

solid pollen
#

uhh...Then Elm or Haskell?
@lunar shore kotlin

lunar shore
#

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

lofty dirge
#

Or c#

mild abyss
#

@solid pollen wow new color i forgot

solid pollen
#

Yes lemon_blush

lunar shore
#

Or F#

mild abyss
#

Akarys is genuinely my god now

solid pollen
#

Haha, I’m very far from it

topaz aurora
#

C# as an entry is alright since a lot of functional stuff can be applied there

honest star
#

my one friend is trying to convince me to learn scala

topaz aurora
#

There's also Scala if you like the JVM

lunar shore
#

I think I'd go with Kotlin , heard good things about it + I can do Mobile dev

topaz aurora
#

or Clojure

undone berry
#

Scala looks interesting - weird stuff with Spark

honest star
#

He made some very compelling arguments

#

It's also what he does for his job though

lofty dirge
#

I have dislike of JVM but that comes from supporting Tomcat stuff

undone berry
#

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

lunar shore
#

Waaaiiiit a minute .... Kotlin could be used as a JS alternative?!?

lofty dirge
#

I must have some JS compiler

topaz aurora
lunar shore
#

Oh I see

#

What is it used for mostly?

#

Like Networking? Web dev? AI

#

?

topaz aurora
#

Haskell?

lunar shore
#

mhm

topaz aurora
#

It's a general purpose language much like Python

lunar shore
#

I see

#

Cool

topaz aurora
#

There are libraries for web development like Yesod, and there's also tensorflow bindings

lunar shore
#

Good

solid pollen
#

Waaaiiiit a minute .... Kotlin could be used as a JS alternative?!?
@lunar shore yes, but the tech isn’t really usable right now

lunar shore
#

I see

#

Well I'd probably go for haskell since I love general purpose coding

#

langs

solid pollen
#

Kotlin is more general purpose than haskell IMHO

topaz aurora
#

try and guess where my namesake is from once you're all caught up with that series

lunar shore
#

@topaz aurora And a very unrelated + dumb question but I'm curious , how did u add neovim status like VS Code?

solid pollen
#

Probably an extension

topaz aurora
lunar shore
#

Oh I see thanks

left jacinth
#

can sb suggest me a good JS discord? you are allowed to DM, as the link is blocked with a high chance

undone berry
left jacinth
#

thanks!

candid sigil
quick ledge
#

add the emoji

candid sigil
#

how?

quick ledge
#

copy paste from internet

#

or used your system's emoji selector

round rose
#

From discord even

quick ledge
#

would that work?

round rose
#

Yeh

candid sigil
#

let me try

round rose
#

🎉

quick ledge
#

won't it come as :jsjsj: instead?

round rose
#

\🎉

candid sigil
#

there isnt a speaker emoji in discord

round rose
#

Comes off as the unicode

#

\📢

#

\🔈

#

These look like speakers

#

To me at least

candid sigil
#

ye the first one works

quick ledge
#

it wont work farmart

#

it will simply come as
rulestada

candid sigil
#

no it worked @round rose thx

quick ledge
#

no it didnt

#

you are just an imposter

#

planted by FaarmArt

candid sigil
#

wait nooo it didnt

#

it worked for the speaker

quick ledge
#

because thaat is unicode

narrow pecan
#

What didn't work?

candid sigil
#

but not for 💠

quick ledge
#

not discord's :emoji: code

narrow pecan
#

\💠

quick ledge
#

\💠
@narrow pecan try this

narrow pecan
#

Try this

candid sigil
#

ok thx where do u get that

narrow pecan
#

It's the emoji, but with a \ before it

candid sigil
#

oh that worked

round rose
#

@quick ledge the emoji code won't work, if you copy the symbol from an actual message it copies the unicode for me

narrow pecan
#

\😀 would be \😀

quick ledge
#

nah, pasting the emoji results in emoji code

round rose
#

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

narrow pecan
#

😀

quick ledge
#

liar

narrow pecan
#

This is the emoji in a code block

round rose
#

time to fire up obs

quick ledge
#

that's what you want me to think

#

time to fire up obs
@round rose looks photoshoped to me

candid sigil
#

what

#

nooo

round rose
#

ight you got me there

candid sigil
#

🎮 ,

\🎮

lofty dirge
#

Horray, got my iPhone homescreen cleaned up

honest star
#

;_; one day work will let me upgrade to iOS 14 and make my workphone aesthetically pleasing

lofty dirge
#

just down to two screens

honest star
#

did you go with any particular color scheme?

narrow pecan
#

Why can't you upgrade?

honest star
#

work hasn't authorized the iOS upgrade yet. Security IT policy.

narrow pecan
#

Oh, that's too bad

#

Hopefully it'll be possible soon

lofty dirge
#

Color Scheme?

#

wasn't aware that was option

#

no, just cleaning up my 7 pages of home screen

young shoal
#

bruh

honest star
#

from what I've seen you can apply like a nice color scheme and get super custom with it

young shoal
#

my friend won some fanart from a thing and she got a cool bg

scenic blaze
#

She should have won the lottery instead, smh

round rose
#

Missed opportunity

quick ledge
#

smol brain move

mental bison
#

factorials are weird

#

11!+12!=11!*13

young shoal
#

no?

rich rover
#

Numbers are numbers, and this isn't weird at all

narrow pecan
#

24 = 4!

#

I love writing this as a sort of maths joke

mental bison
#

numbers in general are weird

rich rover
#

Well

#

If this is weird, check out the mandelbrot set

mental bison
#

perfect numbers are numbers who the sum of all of their divisors except themselves equal themselves

#

I have

rich rover
#

Yeah, it's messed up

mental bison
#

it is weird

rich rover
#

I'd love to see someone here do it

#

The graphs are gonna be interesting

mental bison
#

I've started to doubt that you can doubt anything in modern mathematics

rich rover
#

There's a theory in Geometry that took about 900 pages to prove

#

The equation is the size of your pinky

mental bison
#

what is the equation

rich rover
#

Hang on, let me get the name

#

Enjoy

plucky ridge
#

Last Theorem
Did he die after making it?

rich rover
#

358 years to prove

#

Yes

plucky ridge
#

Name checks out then

rich rover
#

Yup

#

Some people called it the little theorem

#

Ironically...

mental bison
#

I bet you could make a fractal with that information somehow

rich rover
#

Possible

#

The thing is

#

Fermat said that the equation could be proved in a single line

#

But he died before saying it

round rose
#

World's greatest bait

quick ledge
#

he died before saying it?

rich rover
#

Yup

quick ledge
#

damn these ghosts

young shoal
#

🤔

quick ledge
#

saying shit in the after life

rich rover
#

World spent 358 years to solve an equation

young shoal
#

no...that's not how that works

mental bison
#

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

compact jetty
#

1 tree = 1 page,
u sure?

mental bison
#

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

compact jetty
#

nooo

quick ledge
#

5 trees = one page

#

I don't need to fact check that coz i saw it on facebook

#

(jk)

mental bison
#

1 tree is actually about 10,000-20,000 pages in case anyone was actually wondering

rich rover
#

A tree gives the number of pages that you want

rough sapphire
#

15000, 1/3% margin of error

tame shadow
#

what is the difference between <@&267628507062992896> and <@&267629731250176001> ?

young shoal
#

nice pings

remote socket
#

D:

plucky ridge
#

Thanks

viral parrot
#

well..

#

maybe not ping us for that. but guess the question is worth answering

plucky ridge
#

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)

oak tangle
#

We actually wrote something down about that recently

#

I think we can share that

plucky ridge
#

Don't see why not

tame shadow
#

I think we can share that
@oak tangle I'd be glad

plucky ridge
#

Also yeah, you just pinged like... 20+ people

tame shadow
#

also sorry for pinging :d

plucky ridge
#

It happens, now you know

oak tangle
#

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.

tame shadow
#

It happens, now you know
@plucky ridge yep, not gonna happen again 👍🏿

#

thanks @oak tangle

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

high verge
#

monday.com

tame shadow
#

sorry

remote socket
#

breh

honest star
high verge
#

it wouldn't surprise me if you could get sponsorship for all sorts of wacky team management products

plucky ridge
#

Yes, pings will still trigger in quoted text

bleak lintel
#

lol

young shoal
#

heh...

manic bloom
#

wait... it's possible to become an owner

plucky ridge
#

I mean... eventually? Possibly?

#

Unlikely, though

narrow pecan
#

Yes, pings will still trigger in quoted text
@plucky ridge 90k+ people know

soft violet
#

One could even say it can leave a sour taste in said 90k+ people's mouths.

narrow pecan
#

I actually don't think it did

soft violet
#

but fresh

#

No. Indeed. It was an event.

tame terrace
young shoal
#

y i k e s

tame terrace
#

wait... it's possible to become an owner
@manic bloom

Yes. But it's kind of like becoming a genie.

high verge
#

good old mass pings

narrow pecan
#

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

tame terrace
#

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.

narrow pecan
#

Yeah. I could guess that it must take a lot of time and effort

tame terrace
#

it's a greedy quantifier.

narrow pecan
#

It's a huge community

tame terrace
#

it takes as much time and effort as you have.

narrow pecan
#

Yeah

tame terrace
#

the real challenge is limiting your time and effort to something reasonable to prevent burnout.

gentle moss
#

three wishes?

#

i'll have three ever lasting bottles of wine please

tame terrace
#

I could spend 25 hours a day here and I'd still never do everything I wanted to do.

gentle moss
#

yeah, place is pretty huge now

narrow pecan
#

Yeah. That's basically the issue with everything. You gotta find a good balance

gentle moss
#

it's really nice seeing the amount of work that's been put into it though

sand goblet
#

But bisk, you never said good wine

gentle moss
#

oh nooooo

sand goblet
#

It could be basically vinegar

rough sapphire
#

i'll have three ever lasting bottles of wine please
Two more wishes

tame terrace
#

oldest trick in the genie book

narrow pecan
#

That would probably last forever, unless you're desperate

gentle moss
#

is 3 items one wish?

#

that seems... wrong.

narrow pecan
#

I wish to have a copy of the book

#

That's the first one

tame terrace
#

what book

rough sapphire
#

is 3 items one wish?
Why not

narrow pecan
#

oldest trick in the genie book

gentle moss
#

it's three things

tame terrace
#

don't ask wnb he's not even a real genie

rough sapphire
#

oh

narrow pecan
#

According to the Institute of Genie

tame terrace
#

I've heard genies are really racist anyway

narrow pecan
#

Welp. That's what the owners must be?

tame terrace
#

really racist?

gentle moss
#

i mean to keep them in the jar

#

i mean lamp

#

or w/e

#

that's pretty racist against djins

tame terrace
#

that's just a simile

gentle moss
#

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?

narrow pecan
#

That should be an ot name, but I have no idea how to formulate it

rough sapphire
#

A normal one

narrow pecan
#

lemon's rubbie lamp

tame terrace
gentle moss
#

nice

tame terrace
#

I kinda want this

gentle moss
#

it's pretty cute

narrow pecan
#

Someone had too much time on their hands hahah

gentle moss
#

then you could paint your emoji face on it

tame terrace
#

I draw little lemon dudes in my engineer daybook

sand goblet
#

You've gotta keep them in a bottle, not a jar bisk

#

Can't rub them the right way in a jar

narrow pecan
#

Gotta run. See you tomorrow 👋

high verge
#

what's its lemonance?

#

lemonosity

gentle moss
#

but if the top of the bottle is ajar

#

what then

sand goblet
#

Then there's a price to pay

high verge
#

then a door isn't a door

#

🤷

sand goblet
#

Gotta make a good impression

tame terrace
gentle moss
#

anyhow, time for harry potter 6: return of the angst

#

nice lemon

tame terrace
#

are you saying "nice, lemon!" or "nice lemon!"

honest star
#

book or movie?

gentle moss
#

both lemon

#

movie, but with rifftrax

#

kathy hasn't seen it

honest star
#

ooooh, enjoy~

gentle moss
#

o/

eternal wing
#

we should release a winter fashion set of purely lemon based clothing. It could be a brand xD

rough sapphire
#

There's "winter melon", so why not name the brand WinterLemon

eternal wing
#

LuluLemon may have something to say about it, but I dont think we would be on their radar

rough sapphire
#

I agree

narrow pecan
#

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

young shoal
#

I would wear a blurple hoodie

narrow pecan
#

Me too, for sure

#

Imagine a pydis blurple winter hoodie

#

That would be amazing

quick bay
#

yes yes would wear

narrow pecan
#

I’ve proposed the pydis winter hoodies idea in #dev-branding. Would be awesome if it turned into an actual thing

eternal wing
#

Oh dang, this should be a thing then haha

narrow pecan
#

Honestly, I really hope so. Would be awesome

eternal wing
#

@narrow pecan also wtheck, congrats on helper xD

narrow pecan
#

(I think more people would buy it than the lemon pillow, even though the pillow is awesome)

#

Thankss mate😄

eternal wing
#

Haha, lemon pillow is great, but there is no place for it in my life xD

narrow pecan
#

Exactly

#

A pydis winter hoodie, though

narrow pecan
#

We should release this together with Django hoodie stickers (the “you tried your best” for code jam participants)

rough sapphire
#

did the results come out

narrow pecan
#

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

rough sapphire
#

what is the best way to go about learning c#

lofty dirge
#

Microsoft academy has great courses

lone verge
#

@rough sapphire if you're learning for Unity, just learn as you go and build projects 🙂

digital lantern
#

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

mellow spire
edgy crest
#

now there are games on coding..

unique warren
#

lol

quaint rivet
#

it's actually pronounced "cute" not cutie

#

@digital lantern just saying

digital lantern
#

ok

edgy crest
#

good one

rough sapphire
#

Hmm

#

Where did this OT-name come from?

plucky ridge
#

They're all inside jokes or things we found funny at the time

#

We're constantly adding more

rough sapphire
#

Oh

elfin pawn
#

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

mild abyss
thin viper
#

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)

lunar jewel
#

a little question :
can we say functions are kinda similiar to modules ?

soft violet
#

In that they can both be an object.

#

I think.

#

But similar...eh...not really.

round rose
#

The only real similarity is that they both group together some semantically related code

lunar jewel
#

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 ? 😄

round rose
#

But that also applies to classes and a lot of other things, so no, they aren't similar

lunar jewel
#

hm

round rose
#

when you import a module it is executed, yeah

soft violet
#

imports become class type module

lunar jewel
#

so that "a.py" file is considered as module right ?

round rose
#

but that doesn't mean that you should abuse that to treat modules like one-time callables

lunar jewel
#

are modules one time callable ?

round rose
#

A module is something you can import, be it a single file or a package

soft violet
#
for i in range(1000):
    import random```
round rose
#

If you import a module again, it's not executed a second time because it's cached in sys.modules

plucky ridge
#

But there's no benefit in doing so

soft violet
#

I knew there was some stuff going on to avoid duplicating work with imports.

round rose
#

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

lunar jewel
#

i cant understand you properly :d sorry i am trying to improve my english 😄

#

oh ok i googled it

round rose
#

In simple terms, they are meant to do very different things

lunar jewel
#

okay

round rose
#

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

lunar jewel
#

that one is very clear

#

thanks all

mild abyss
#

is this fine?

plucky ridge
#

I guess?

#

I wouldn't worry too much about the swap since you can allocate some of your main partition

mild abyss
#

thanks hemlock

#

💯

calm dawn
#

Reverse engineering is so satisfying

#

especially reverse engineering things like pyc files

plucky ridge
#

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?

calm dawn
#

hex. I have an example if you want. All marked up and everything.

#

@plucky ridge

plucky ridge
#

Oh absolutely

#

You've got me really curious

calm dawn
#

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

plucky ridge
#

No rush

left jungle
#

@plucky ridge Moved, Here is the ID 724865789341204480

calm dawn
#

let me get the code I disassembled and th ecode I used.

plucky ridge
#

@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

calm dawn
#

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)
left jungle
#

724865789341204480 This is the User ID

calm dawn
#

Thanks, Hemlock!

plucky ridge
#

Huh. He's not showing up in our database. @left jungle Never would have thought that the function name would be in plain

left jungle
#

In Bans

plucky ridge
#

Or the variable names for that matter

left jungle
#

He was banned

#

@lusty forge

#

This person

#

@plucky ridge

plucky ridge
#

I'm looking into it

lone verge
#

@plucky ridge Here it is
@calm dawn thats incredible

plucky ridge
#

Right?

calm dawn
#

Thanks Jet!

lone verge
#

oh, sry i forgot that when you quote something it pinks

plucky ridge
#

I don't mind

lone verge
#

kinda like that guy named lemon lemon_enraged

simple sand
#

lol

lone verge
#

Thanks Jet!
@calm dawn 🙂

calm dawn
#

I eventually want to develop a microcontroller that interprets pyc bytecodes and executes python code natively (no interpreter)

lone verge
#

oh thats sick

calm dawn
#

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!

plucky ridge
#

Have you looked into MicroPython and CircuitPython?

calm dawn
#

yes! I use micropython on my esp32

plucky ridge
#

Niiiiiiiice

calm dawn
#

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

plucky ridge
#

@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

shadow jetty
#

is this ot talking about me

simple sand
#

how

young shoal
#

imagine if this was added before you were a helper

shadow jetty
#

it probably was

plucky ridge
#

Pretty sure it is

young shoal
#

that'd be pretty funny

lone verge
plucky ridge
simple sand
#

hey how do u shutdown from cmd

#

i really like cmd

lofty dirge
#

Stop-Computer

shadow jetty
#

that's like right before i was a helper

lofty dirge
#

@lone verge rust appears to be beating out Go

shadow jetty
#

go is easier to write than rust

#

i'll give it that

lofty dirge
#

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>

young shoal
#

java, king of boilerplate

plucky ridge
#

@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.

left jungle
#

what is the reason?

lone verge
#

@lone verge rust appears to be beating out Go
@lofty dirge yeah fs

plucky ridge
#

@left jungle You're free to ask them, but we don't discuss infractions given to other users

lofty dirge
#

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

halcyon mantle
#

Hi

#

U guys got a minute?

plucky ridge
#

More than a minute

#

What's up?

solid pollen
#

Can you stare at this message for 5 minutes?

plucky ridge
#

Like... without blinking?

#

I mean maybe

halcyon mantle
#

Ok so

solid pollen
#

Yup!

halcyon mantle
#

I need your second opinion

#

What is better an audiobook or should i get a paperback

plucky ridge
#

Ooo that's a tough call

honest star
#

depends how you like reading

halcyon mantle
#

I never read in my life

plucky ridge
#

I've always preferred audiobooks but that's mainly because I get restless

solid pollen
#

Depends on what you're reading too

honest star
#

I like audiobooks if I know I'm going to be busy, but I love reading from a paperback

halcyon mantle
#

A driving book

#

I’m a good driver but want to be better so i am getting this book

plucky ridge
#

Then I'd suggest paperback

#

Since you'll likely want to be able to refer to it easily

halcyon mantle
#

Ok

solid pollen
#

Also, you'll remember it easier by reading than listening

halcyon mantle
#

Is that true

plucky ridge
#

My philosophy is if it's for reference it needs to be a book. Entertainment can go either way

solid pollen
#

In my experience it is lemon_pleased

halcyon mantle
#

Or maybe i should buy both versions

plucky ridge
#

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

quick ledge
#

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

halcyon mantle
#

Lmao yeah

scenic blaze
quick ledge
#

how was the transition form 1 to 2?

plucky ridge
#

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

stark prawn
quick ledge
#

alright, thanks guys

plucky ridge
#

Also totally didn't realize list comps were implemented back in 2

#

Like 2.0

#

That's just nuts to me

narrow pecan
#

That’s awesome

#

List comps are life

calm dawn
#

@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

polar vigil
#

What's up with the 30 on the python logo animation?

#

discord logo

versed flint
#

It’s for pyweek 30, I guess.

quick ledge
#

it is.

halcyon mantle
#

Is guido in here

narrow pecan
#

@halcyon mantle not that we know of

#

(He may be undercover👀)

halcyon mantle
#

👀

soft violet
#

I am under cover.

#

It's called a roof.

#

I am also under covers.

#

Bedsheets.

#

It is also dark. Under cover of darkness.

rough sapphire
#

Well punned

soft violet
#

Is it, though?

rough sapphire
#

*insert in-depth analysis saying "yes"*

soft violet
#

Righto.

#

I defer to your certainty. Thank you. 😁

lost vortex
#

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
rough sapphire
#

Nitpicking here but that's a redundant f-string declaration at endpoint

lost vortex
#

oh good catch, thank you.

#

i am practicing my OOP while working with APIs

errant wyvern
#

I wonder why it's so hard to contact the owner of a project, specially owners of programming languages

young shoal
#

they're busy

shell raptor
#

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.

lone verge
#

Dont you guys just love programming discords

#

^ thats the hacktoberfest discord server smh

eternal wing
#

your response was spot on

young shoal
#

should have been "how young"

eternal wing
#

LOLOL

shell raptor
#

@young shoal well, at least old enough to use Discord...

young shoal
#

who says they have to communicate through discord

eternal wing
#

wtf is this convo too LOL

#

that OP is like a disease, it spreads xD

small fossil
#

@lone verge do you have a invite to the the hacktober fest disc

young shoal
#

not related to the screenshot of course...right?

eternal wing
#

ngl, that post is genuinely VERY concerning if it is not a joke.

lone verge
#

ikr

#

@small fossil

quaint rivet
#

is this an official server?

eternal wing
#

I hope it is a joke, otherwise it looks like an older man is abusing a group of young girls.

lone verge
#

Yep its official

quaint rivet
#

nice

eternal wing
#

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.

cosmic lotus
#

LOL what an odd project request

quaint rivet
#

they deleted I think

lone verge
#

Yeah i think they deleted it

narrow pecan
#

That message seems really concerning, if it’s not a joke

lone verge
#

Im going to make a report, even though its deleted

#

cuz its still scary af

narrow pecan
#

Yeah

lone verge
#

@barren vector

#

Floating points are weird indeed

barren vector
#

yeaaa

narrow pecan
#

Hahahaha

rough sapphire
#

May I ask something about OOP

stark prawn
#

sure

rough sapphire
#

Not really the question yet, but is this true?

narrow pecan
#

In Python, you can access the objects’ data without problem. I believe there isn’t really a concept of “private variables” and such things

rough sapphire
#

Ah

narrow pecan
#

In some other languages though, you can have private variables and methods (I think)

stark prawn
#

That's what's known as encapsulations and is one of the OOP principles.

rough sapphire
#

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)

stark prawn
#

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.

rough sapphire
#

But there is nothing preventing you from doing it anyway.
Ah

#

Hmm

stark prawn
#

Apart from me rejecting your pull requests.

rough sapphire
#

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)

stark prawn
#

What do you mean by that?

rough sapphire
#

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)

stark prawn
#

A library like beatifulsoup can do this for you

rough sapphire
#

Oh, no worries for that

#

I'm doing it in JS

stark prawn
#

DOM objects are already avaiable to you then.

#
let ele = document.querySelector(selector)```
rough sapphire
#

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

stark prawn
#

HTMLElement is already an existing class

#

And the dom objects are instances of it

rough sapphire
#

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

buoyant hill
#

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.

wooden silo
#

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.

buoyant hill
#

You will. You say you won’t, but you will.

wooden silo
#

Ok

eternal wing
#

I probably use it in like half my help requests

manic bloom
#

I spat out water when I read the otn

sand goblet
#

It's a good reference

honest star
#

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.

simple sand
#

@cerulean blaze why do u say laptops are a scam??/

cerulean blaze
#

Theyre not worth the money

simple sand
#

why do u say that though

cerulean blaze
#

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

rough sapphire
#

raspi laptop

simple sand
#

raspi?

tranquil orchid
#

raspberry pi

rough sapphire
#

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

alpine notch
#

lol

simple sand
#

what light mode

rough sapphire
#

flashbang

mild abyss
#

I am a psychopath so i should use the light theme

calm dawn
#

Dark theme was the best thing ever developed with css

inland wolf
#

agree

edgy crest
#

i will be dead without dark theme

sour forge
#

you guys have a light theme?!?

edgy crest
#

yea but i never use it

unique warren
#

Yes I use it.

#

Its Cozy, comfortable very good for eyes

edgy crest
#

0-0

rough sapphire
#

so true

#

i even use my windows in dark mode

unique warren
#

White theme is better

rough sapphire
#

no its not

#

for me

#

everybody has his own taste

unique warren
#

I like how they describe themes.

manic bloom
#

@unique warren why did you delete that

#

it was sooo good

unique warren
#

I don't taste white theme.

mild abyss
#

lemon + coconut taste good btw

edgy crest
#

lemon_scared + 🥥 = 🤢

unique warren
#

Do you mean lime

twilit hull
#

no i mean kenshi

unique warren
#

I dont play kenshi

twilit hull
#

nah lemon gud

rough sapphire
#

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.

unique warren
#

Linux users exist.

gentle moss
#

@rough sapphire why would you use FreeOffice over LibreOffice?

mild abyss
#

OnlyOffice or LibreOffice is what i will use

gentle moss
#

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

mild abyss
#

OpenOffice is good. i just dont know how to customize the UI

gentle moss
#

OpenOffice is depreciated

mild abyss
#

sad

gentle moss
#

it ceased development 9 years ago

#

which is why you'd use LibreOffice now

#

FreeOffice is just some freeware garbage

mild abyss
#

OnlyOffice and LibreOffice hmm

#

it ceased development 9 years ago
@gentle moss what happened

gentle moss
#

OnlyOffice is freeware too

#

it was purchased by Oracle and they killed it

mild abyss
#

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

gentle moss
#

LibreOffice is really the only one to even bother with

#

last stable was like a month ago

mild abyss
#

LibreOffice has a dropdown bug. hmmm for the fonts

#

you cant see the name of the fonts because of the color lol

gentle moss
#

is that 7.0.1 or 6.4.6?

#

6.4.6 is the stable / tested release

mild abyss
#

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

gentle moss
#

must be you

#

mine's fine.

mild abyss
#

sad

#

hmm

lunar shore
#

Guys what does a Junior dev need to be a senior?

gentle moss
#

experience.

lunar shore
#

I see , so a person who has 2 years experience is counted as a junior , while a person who has 8 years is senior?

gentle moss
#

8 years might not even be enough

lunar shore
#

wow

gentle moss
#

have a look at job listings for senior developers

#

that should give you an idea of what's expected of them

lunar shore
#

Hmm lemme take a look

#

So like even 8 years is not sufficient?!

gentle moss
#

depends on the position

#

years of experience is also a bad measure of determining competency

lunar shore
#

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
gentle moss
#

yeah but what does it specify you're required to do within the job

#

not just the technical skills

lunar shore
#

Hmmm

gentle moss
#

this harks back to what we were talking about the other day

#

there's more to being a developer than just having technical skills

lunar shore
#

Like what?

#

Like I mean the mindset?

gentle moss
#

here's an example i dragged from reed

lunar shore
#

Lemme see

gentle moss
#

· 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.

lunar shore
#

I see

#

So basically a Senior could do Networking , Software dev , Web dev , Encryption , Ethical hacking , Debugging ....

gentle moss
#

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

lunar shore
#

Oh so that means being a senior developer , you can plan/manage the project all on your own + the technical skills you have

gentle moss
#

i guess

lunar shore
#

I see

gentle moss
#

also there's probably a load of stuff like code delegation / team management

lunar shore
#

Oh well

gentle moss
#

someone has to tell the juniors what to do :3

lunar shore
#

Oh well

#

Well , I don't think I'd be a senior any time soon lol

gentle moss
#

well you're still young.

#

just focus on doing your best at learning

#

things will spring from that

lunar shore
#

I see

#

Thanks for you info

simple sand
#

hey what are webhooks in discord?

mild abyss
#

Captain Hooks

gentle moss
#

webhooks are like a reverse api

solid pollen
gentle moss
#

think about it, it makes sense

solid pollen
#

Weeeelllll

#

Yes

gentle moss
#

:D

topaz aurora
#

I still confuse webhooks for websockets

solid pollen
#

Nothing more to say, so I'll just

rich rover
#

What a way to end a conversation prematurely

young shoal
#

welllllll, i guessss they're like a reverse api

solid pollen
#

The thing is that an API can be going back and forth

gentle moss
#

yeah, so that's the key distinction

#

a webhook is one way

#

"do i have data to send? okay i'll send it"

solid pollen
#

Yeah

gentle moss
#

then you have an endpoint which handles that data

solid pollen
#

A webhook is just data bursting through the front door

gentle moss
#

if that helps @simple sand

rough sapphire
#

can printf() cause buffer overflow?

solid pollen
#

A lot of things can cause buffer overflow

topaz aurora
#

Can printf segfault?

solid pollen
#

Yup

#

Segfaulting is even easier than buffer overflows, since they are linked

rough sapphire
#

what is segfault

edgy crest
#

akarys == aka rys lemon_exploding_head

solid pollen
#

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

rough sapphire
#

are they harmful

solid pollen
#

A segfault crash the program

#

A buffer overflow usually give an attacker the control of a particular space in memory

rough sapphire
#

oh thats not good

solid pollen
#

So yes, they are both very harmful

rough sapphire
#

ok so i code c in raspi or vm?

edgy crest
#

wdym small array

rough sapphire
#

im guessing like a list

edgy crest
#

so then whats a big array

young shoal
#

usually in languages with less protection

edgy crest
#

supercomputer list ?

solid pollen
#

It is just "too small"

edgy crest
#

fix?

young shoal
#

python will crash as soon as you try it

solid pollen
#

A 1Tb array could be too small

rough sapphire
#

why

solid pollen
#

(or buffer, for that matter)

edgy crest
#

then what is a big array

young shoal
#

because you can always go len+1

edgy crest
#

theres no big array? bummer

solid pollen
#

Well, if you try to fit 1.2Tb of data in it, you won't have enough space, so they are too small

edgy crest
#

where do you need that much data

solid pollen
#

Well, modern arrays now resize by themselves

#

We are talking about low level stuff/medium-low level languages, like C

rough sapphire
#

oh thats good

solid pollen
#

where do you need that much data
@edgy crest dunno, just an example

edgy crest
#

hmm

rough sapphire
#

yeah i want to learn about more low level stuff

#

how can i learn more low level terms?

solid pollen
#

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

rough sapphire
#

how did you

#

like an example

solid pollen
#

Did what?

rough sapphire
#

an example of when you were learning something and came across a term

#

what were you learning

solid pollen
#

Oh, for instance I learned this overflow related thingys while watching LiveOverflow's videos

rough sapphire
#

oh okay

#

okay thank you

solid pollen
#

Any time lemon_pleased

topaz aurora
#

@lunar shore Haskell has two build tools named cabal and stack

rough sapphire
#

sounds satanist

#

delete delete

lunar shore
#

I see

topaz aurora
#

cabal is the primary build tool that basically downloads the dependency sources for you, compiles, and links them together

lunar shore
#

Oh then it's not hard building from source in haskell

#

Not as hard as C++*

topaz aurora
#

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

lunar shore
#

Ohhhh