#ot2-the-original-pubsta

652 messages ยท Page 110 of 1

lofty loom
#

Does he hate Mondays?

digital bane
#

And he is phat and cute

#

Hates mondays

lofty loom
#

A true Garfield

digital bane
#

He calls hinself TheCat as a nick in many places

cerulean cypress
#

it's that easy to land a job?

wild star
#

well to land an initial conversation about a job

mental idol
#

hahah, hecking brillant!

#

I hear that gif

gray plover
#

@jovial island

#

over here

jovial island
#

Ok

gray plover
#

@jovial island

#

move to here

jovial island
#

Ok

#

I dont want my laptop.freeze again

gray plover
#

do

#

it

jovial island
#

Its expensive

gray plover
#

listen

#

mock gon now

#

god

jovial island
#

No

gray plover
#

then see what happens

#

what makes you belive in god

jovial island
#

I dont know what to mock with him

jovial island
gray plover
#

says YOU AREN'T REAL HAHA YOU FOOLED ME BUT NOW I KNOW

jovial island
#

Have you folks ever looked up your name on UrbanDictionary?

jovial island
#

Oh wait

gray plover
#

lemme try that

jovial island
jovial island
gray plover
#

A man of intelligence, handsome, well hung, astute.

#

Petes are fun loving sexy lads. They're tall making them masculine and strong and are total lovemaking machines!! Often have very large members

#

these are so funny ๐Ÿคฃ

jovial island
jovial island
#

Best male in the world

gray plover
#

actually

#

@jovial island

jovial island
gray plover
#

WHAT MAKES YOU BELIVE IN GOD

jovial island
#

Oh wait sorry

jovial island
gray plover
#

how about i ask you 2 question if you can't answer you need to move on religious to sciene

jovial island
# jovial island HOLLYWOOD?!

And no, I don't watch Bollywood movies and do not appreciate most of them. Mollywood, Tollywood and Kollywood are a lot better

#

CHA-

jovial island
gray plover
jovial island
#

Dr stone main character?

gray plover
#

oh

#

what makes you think like that

jovial island
#

Cuz he is atheist

#

He just like you

gray plover
#

ok

#

ok

#

actually

jovial island
gray plover
#

why?

#

my name is Pete

jovial island
#

O

#

Oh okay cool

#

I guess it's not that dangerous

jovial island
#

To reveal your first name

gray plover
jovial island
gray plover
jovial island
#

you can't prove or disprove god

#

Biblical character I guess

#

Its related to my name

gray plover
#

of then

#

oh then

#

what makes you belive he exist

#

s

jovial island
#

Jerrusalem: py_guido

gray plover
jovial island
#

Israel: py_guido

gray plover
jovial island
#

Lmao not even watch google map

gray plover
#

lemme ask you 2 question

#

if you can't answer

#

move on to sciene

jovial island
#

No

#

Move on to Sciene

#

Sciene

gray plover
#

typo

jovial island
#

Lmao

#

Sciene is best

gray plover
#

science

#

there

jovial island
#

Oh god i am choking chewing gum

gray plover
#

good

#

just kidding

jovial island
#

Personally, I like to keep a distinction. Scientific and rational matters in one sphere and spiritual matters in another

gray plover
#

you just laugh while chewing gum

jovial island
#

This all your fault

gray plover
#

it's yours because you laugh to his joke ๐Ÿคฃ

jovial island
#

Luckily I still can breathe

gray plover
jovial island
#

you both proved nothing today and contributed nothing to debate about god

#

i am going

#

Bye

gray plover
#

if you think heaven exists

jovial island
#

I don't

#

We just die

#

Get over it

gray plover
#

if world is actually beat and notthing is left

#

where would heaven be

jovial island
#

Help me

jovial island
gray plover
#

sowarl

#

fuck

#

nvm

#

just

#

eat it

jovial island
jovial island
#

1000th frames i guess

gray plover
jovial island
#

It's just sunlight being diffracted by the atmosphere

jovial island
#

There's no such thing as a sky

#

Bird?

jovial island
#

It's space. There is no such concrete thing as a 'sky'

#

HELP

#

This is why i dont want mock god

#

The sky in Australia and in Russia are in two opposite directions

gray plover
#

mock him

jovial island
#

I think i am gonna die

gray plover
jovial island
gray plover
#

notthing lasts forever

#

even a galaxy

jovial island
#

Some just last longer

#

Maybe i can poop it

jovial island
gray plover
#

if you die

#

you die

#

yeah

#

just kidding

jovial island
#

Help

gray plover
#

when you die it just like when you sleep

#

you feels like notthing

#

but you just sleep forever

jovial island
#

Thanks alot pete

gray plover
#

that's why you shouldn't be on discord when chewing gum

#

because you will laugh to them and choke

jovial island
#

Pepe

gray plover
#

search google how to get choked gum out

jovial island
#

Tomorrow i will poop it

jovial island
gray plover
#

just told you to sworal it

#

nvm

jovial island
gray plover
#

i cant spell it rn

jovial island
#

swallow

jovial island
#

If it's bubble gum you'll blow a bubble out of your arse

#

Or probably not

gray plover
#

literally

jovial island
#

I already swallow it

gray plover
#

stomach will just make that turn into shit

jovial island
#

I am choked for 6 sec and swalloe it

#

The body for some reason can't digest beetroot essence

#

It comes out red

#

I am afraid it could make me dead

#

You'll know if you've ever eaten beets

gray plover
#

i ate the black berry and my shit is black

#

i mean

#

it isn't berry

jovial island
#

Da fuq

gray plover
#

it just berry family

jovial island
gray plover
#

BRO THATS IT

#

so it's called elderberry

jovial island
#

Yeah

#

I suppose so

#

Never seen it in my life, though

gray plover
#

i mean

jovial island
#

We don't get berries here

gray plover
#

it doesn't look like that bruh

#

it just

#

a pack of berry

jovial island
#

No idea

gray plover
#

this is what it looks like

#

this too

jovial island
#

Blackberry

#

Those are blackberries

gray plover
#

yeah

#

blackberry

#

it make my shit turn red

#

and black

#

(some of them are red)

jovial island
#

Yeah not surprising

#

Beetroots same

gray plover
#

i never eat beetroots

jovial island
#

Eat anything made of Maida and your shit will come out like rocks

gray plover
#

because it's underrated and rare in asia

jovial island
#

maida

gray plover
#

meat

jovial island
#

We get plenty of beetroots here tho

gray plover
#

wtf?

#

i never even taste that before

jovial island
#

India, coastal region

#

This stuff

#

They're disgusting ngl

#

Lmao

gray plover
#

i've taste them before

#

just

#

not in fruit form

#

xd

jovial island
#

It's a tuber

#

But yeah ok

jovial island
gray plover
#

i still wants people to actually know how world was born

#

they were not made by god ofc

jovial island
#

Get over it

#

To each his own

gray plover
#

and it's like hell to shit it out

jovial island
#

Oh wait you meant shit

jovial island
gray plover
jovial island
#

No namecalling guys

#

don't turn this into r/teenagers

jovial island
gray plover
jovial island
#

Lmao

#

Its topic idiot question

#

Joke on you

#

Reading this chat is traumatic

gray plover
#

gravity actually pull you down lmao

#

incase you need to fly you need power to push you

#

and in case gravity exist

#

s

jovial island
#

But yeah that's the idea

gray plover
#

did you ran out of idea of god is real?

#

@jovial island

jovial island
#

God is real

#

Madrid

gray plover
#

prove it

jovial island
#

You wil get the karma in the end

#

Trust me

#

That's a Hindu idea

#

Its unexpected

hazy laurel
#

what the

gray plover
#

shame on you karma aren't real

#

it just coincidence

jovial island
#

isn't

gray plover
#

or someone made it happens

jovial island
#

Then why my character not posing

#

I already insert all things in it

#

The xml shit

#

And other

hazy laurel
#

wat

gray plover
#

because you're dumb to make it work

jovial island
gray plover
jovial island
#

Ok now it's just name calling

gray plover
#

you even belive we actually die and born?

jovial island
gray plover
#

no we aren't xd

#

but what if we do/

jovial island
#

Lmao metaverse

#

YEAH I CAN BREATHE

gray plover
#

ofc you can

jovial island
#

After the choke

#

Whew the gum didn't stay long in my stomach

#

It went into your intestines soon after

#

I bet

#

Yo you are expert in English

#

You make me confuse

#

Umm

#

Sorry. I'll keep it simple

#

O its ges to my usus

#

Ok tomorrow i will poop it tomorrow

#

Yes, Uranus

gray plover
#

Ur anus

jovial island
#

e

hazy laurel
#

why are y'all like this

jovial island
hazy laurel
#

huh?

jovial island
#

Are you talking about the atheist/theist debate

jovial island
#

new to this

jade bolt
#

help, I have too small brain. how do I do something like getting over it. idk how to get angle through mouse movements

hazy laurel
jade bolt
#

I'ma copy some scratch code

#

bai

#

dis

digital bane
jade bolt
#

I think I got it

jovial island
#

@gray plover if god doesn't exist explain to me how am i make anime head

jovial island
cold junco
jovial island
#

Ikr

#

Cringepy_guido

cold junco
#

and the gameplay in general is kinda boring imo

jovial island
rare moat
#
int main(int argc, char *argv[]) {
}

void zero_matrix(int row, int column);
    printf(float matrix[row][column] = {0});
#

please tell me this is correct code to make a function which makes a zero matrix with 2 params row and column
I need saving please

#

ok hold on.

#

okay yeah i am not really sure what you are trying to do here.

civic wharf
#

please, where are the designated initializers .

rare moat
#

that sounds like not C89

#

i mean, you need a matrix object.

civic wharf
#

i was joking because @rare moat was complaining about them earlier ๐Ÿ˜Ž

rare moat
#

Python not being ANSI C moment

#

i mean

#
int main(void) {
    int x[10][10] = {0};
}
#

boom, 10x10 matrix with all zeros.

#

i mean, there can be.

#

there can realistically be boilerplate in any language.

#

do not need what?

#

no, you do need a main function.

#

a main function is not boilerplate.

#

depends what operating system you are on and what compiler you have.

civic wharf
#

main;

rare moat
civic wharf
#

no boilerplate. and also bonus 139 exit code

rare moat
#

๐Ÿฅด

#

okay, then gcc my_file.c.

#

then ./a.out.

#

in your terminal.

civic wharf
#

is ggc the gnu go compiler

#

or gcc garbage collector

rare moat
#

gobject

#

๐Ÿคช

#

one way to write it, yes.

#

what are you scared of

#

you are probably just used to Python.

#

alright good luck. if you need help feel free to ask.

#

i suppose The C Programming Language is a fairly nice book for this kind of thing.

#

you are using the same code as before.

#

yup

rare moat
#

it is not that it is not an index, it is that it is not known at compile time.

#

the size, i mean.

rare moat
#

by not storing the values in variables. it needs to be known at compile time to initialise them all to zero.

#

i mean, arrays probably are not the solution here if you cannot know them at compile time.

#

you normally use malloc and calloc to do that kind of thing at runtime.

#

i mean i barely know what you are doing here.

#

are you writing a C extension to Python or something?

#

so a C extension

#

probably i dunno.

#

you should probably learn the basics of the language first.

#

it is difficult for me to help you with something that i have little information about.

#

what are you trying to do?

#

alright, try this.

#
#include <stdlib.h>

int *make_matrix(int row, int column) {
    int index = 0;
    int **columns = calloc(column, sizeof(int*));
    
    /* Make row length rows for n columns */
    for(index = 0; index < column; index++) {
        columns[index] = calloc(row, sizeof(int));
    }

    return columns;
}
#

calloc will initialise the memory you allocate to all 0s.

#

you need to free all those blocks, though.

#

oops

#

bug in code

#

sorry

#

hold on

#

okay

#
int **make_matrix(int row, int column) {
    int index = 0;
    int **columns = calloc(column, sizeof(int*));
    
    /* Make row length rows for n columns */
    for(index = 0; index < column; index++) {
        columns[index] = calloc(row, sizeof(int));
    }

    return columns;
}
#

this should work.

#

well i mean

#

that is all

#

you made your matrix.

#

depends what the variable is.

#

for the record i used the word object there incorrectly.

#

it is not an object.

#

anyway, printf("%i", x) will print an integer.

#

where x is the integer.

#

you need to include stdio.h first though.

#

no

#

it is just a block of memory.

#

i suppose you could say that.

jovial island
jovial island
#

Good Evening All ๐Ÿ™‚

lusty brook
#

what did kat's cat do?

#

ahhh I see reading the logs, lol

#

pretty silly but cute ๐Ÿˆ

zealous hazel
#

man im so used to instinctually pressing ctrl + s after i write like a few lines of code that now i do it even where i am not coding

#

like i legit pressed ctrl + s before closing file explorer

zealous hazel
#

i think vsc even does that

hazy laurel
#

yes, but not by default

#

and it gets weird with some of the intellisense extensions

zealous hazel
#

im just too much of a schewpid idiot to see the dot and be insecure

#

sorry wrong wording

hazy laurel
#

did you just say "stupid furry"? \๐Ÿค”

zealous hazel
#

wrong wording

hazy laurel
#

.-.

zealous hazel
#

because i have like powercuts all the time

#

so i worry

#

that

#

i fixed code

#

and

#

it gets deleted

#

because i didnt press ctrl + s

dusky cliff
hazy laurel
#

no idea, I don't use VSCode

mental idol
#

I have no idea what you mean @languid reef

languid reef
#

why would you

#

LMAO THE EYES REACTION

mental idol
#

The only darkmode i use is in my editors.

languid reef
#

u cant even see the reaction

#

its just two black dots

languid reef
mental idol
#

Because dark mode hurts my eyes.

languid reef
#

what

#

and this doesn't?

mental idol
#

nope.

languid reef
#

excuse me

#

is ur brightness on 1%?

mental idol
#

Presently f.lux has the lums turned down. But it is 01:00 here.

languid reef
#

oh i used to use that

#

i should probably re-install it

#

oh now i know why u deleted the image lmao

mental idol
#

It's only so accurate. :)

#

Nothing that knowing it's 01:00 and currently a breezy -7 right now.

#

๐Ÿฅถ

hazy laurel
pseudo creek
#

if y'all like how it looks, then it's okay, but it should be noted that the 'helps your vision' part of blue-removal-at-night apps like flux has no scientific basis other than maybe the placebo effect

zealous hazel
mental idol
#

You're welcome to your opinion certainly! Just so long as you're okay with it being wrong. ๐Ÿ’œ

jovial island
#

Something's brewing, lol

hazy laurel
#

beer

zealous hazel
hazy laurel
#

\๐Ÿค”

zealous hazel
#

I am ever so grateful to your care taking stance, and I must note that you are rather friendly to the average converser.

mental idol
#

Meh. Y'all gonna like what you like and it really doesn't affect me at all. We are all different and that's pretty darn cool. I can't read a screen for any length of time with dark mode. Except code, which is still weird to me.

#

I keep looking for light mode editor schemes. Haven't found one that works though.

zealous hazel
#

i thought you spoke in stereotypical american accent

mental idol
#

I speak with the accent of the last person I've been listening to.

zealous hazel
#

me?

mental idol
#

Naw, literally I just adopt accent behaviors. So right now I probably sound Southern as I've been listening to a lot of Zig Ziglar tonight.

zealous hazel
#

ah ok

mental idol
#

He's got such a damn good point of view of life. Humor, perspective, and drive.
https://www.youtube.com/watch?v=EXyrkwLMbF4

Zig Ziglar gives his life advice on how to pursue happiness and get the most out of your life. This motivational speech will change your future! Young people NEED TO SEE THIS!

Subscribe for Motivational Videos Every Weekday, Helping You Get Through The Week! http://bit.ly/MotivationVideos

Interested in saving this audio and listening to it off...

โ–ถ Play video
zealous hazel
mental idol
#

"Anything worth doing is worth doing poorly... until you learn to do it well." ๐Ÿ’ฅ

#

"You must be a constant student." that's another of my favs.

#

hundreds of ways to say it. You'll hear it over and over.

probably my insomnia but I'm soaking this stuff up tonight. I feel like I lost my focus over the last six years.

dusky cliff
#

insomnia rates drop to 0

mental idol
#

EST

mental idol
#

-5 ? I foget.

#

its 01:43 atm.

dusky cliff
#

you measure time in units of pressure ๐Ÿ‘€

mental idol
#

I remember long enough for daylight savings to make me wrong.

jovial island
#

You must be breathing like soup there

mental idol
#

hep I am flat

jovial island
mental idol
#

I've done been got

#

But I think that a shower, a long contemplative gaze into the forest, and some attempted sleep is a good idea.

#

ni

pseudo creek
#

amateur

jovial island
#

Y

pseudo creek
#

is a joke above going to sleep instead of staying awake far longer than one should

wheat rock
#

oh at the moment

#

well

mental idol
#

no. don't ruin the joke.

#

it's doing numbers.

#

let me perish under the weight of my atm.

pseudo creek
#

well what does the colon mean for units? alternate decimal point, maybe?

pseudo creek
#

not for atmospheres, it's not - unless a new unit? atmosphere-hour?

wheat rock
#

well

#

atmosphere hour^-1 would have made sense

mental idol
#

Pascal hours... okay

program TimeDemo;
uses sysutils;

begin
   writeln ('Current time : ',TimeToStr(Time));
end.
#

Pascal.

jovial island
#

๐Ÿง“

mental idol
#

thats_the_joke.gif

jovial island
#

Older than my dad this langauge

#

As old as him in fact

mental idol
#

I'm older than your dad. Neat.

jovial island
#

What are 60 year olds doing on Discord ๐Ÿง“๐Ÿฝ

mental idol
#

Learning python, I'd imagine. pithink

jovial island
#

Oh great!

#

You even play minecraft?

#

Man you are a cool 60 yo

mental idol
#

Pascel was my third language. never though about it but the use of the period to terminal a block reminds me a lot of Progress.

mental idol
jovial island
#

Hold on, let's clear stuff up

#

Pascal was created in 1970 says Google

#

As was my dad

mental idol
#

record scratch Was it really 70?

jovial island
#

Or so Wikipedia says

mental idol
#

1983 is when Borland released it.

jovial island
#

Based on Wirth's book Algorithms + Data Structures = Programs, Pascal was developed on the pattern of the ALGOL 60 language. Wirth was involved in the process to improve the language as part of the ALGOL X efforts and proposed a version named ALGOL W. This was not accepted, and the ALGOL X process bogged down. In 1968, Wirth decided to abandon the ALGOL X process and further improve ALGOL W, releasing this as Pascal in 1970.
The Free Encyclopaedia

mental idol
#

Neat! I learned something.

jovial island
#

So did I

mental idol
#

Yeah, wow. Turbo Pascal (the one I used) was a implementation built off Pascal. The latter being far older than I knew!

#

They look the same, syntax wise.

jovial island
#

hmm

mental idol
#

wack. I'm younger than ever! mwhahaha.

#

I was also going to go. I should do that.

digital bane
digital bane
#

I was there during the transition point when some taught Pascal and some taught C in uni

fluid plank
#

i should call u granny

#

grainy

jade bolt
#

don't make my yae uncomfy pls

fluid plank
#

huh?

#

she is uncomfy

#

raiden just got out of control

jade bolt
#

๐Ÿ˜ฅ

summer olive
#
if option == '1'
name1 = input("Name 1: ")
with open('config.json', 'w') as config_file:
data={'name1': name1}
jsong.dump(data, config_file, indent=4)

elif option == '2'
name2 = input("Name 2: ")
with open('config.json', 'w') as config_file:
data={'name2': name2}
jsong.dump(data, config_file, indent=4)

If i do this it only shows 1, if i change the first one gets removed, i need it to be like this
config file:
{
"name1": "name1",
"name2": "name2"
}

rare moat
#

that is Python.

#

oh

#

no i was talking to @jovial island

jovial island
rare moat
#

okay so what is your problem

jovial island
#

Dm ?

#

@rare moat

rare moat
#

no just put it here.

jovial island
rare moat
#

okay, so what is the problem?

jovial island
#

Can I post here?

rare moat
#

yes

jovial island
# rare moat yes

Write a c program to create an array of 10 cells to store integers.find largest,second largest and least values?

rare moat
#

okay, so what are you having trouble with?

#

@jovial island

jovial island
rare moat
#

are you asking me to write it all for you?

jovial island
rare moat
#

you can have three integers that you compare as you loop through the array.

#
int main(void) {
    int largest = 0;
    int second = 0;
    int least = 0;

    return 0;
}
#

as you loop through the array, you can compare three things:

#

if the current value in the array is larger than largest, then assign the variable second to whatever is currently in largest.

#

and then assign largest to the current value in the array.

#

you do that kind of thing.

jovial island
rare moat
#

eh

jovial island
#

For 10 integers??????

radiant socket
#

just sort them

rare moat
#

yeah you can sort them

#

but that is probably a bit more of a pain in the ass than what i am suggesting.

rare moat
#
    int index = 0;
    int x[10] = {3, 8, 1, 2, 7, 9, 4, 7, 6, 4};
#

but either way

round moss
#

are you allowed qsort?

rare moat
#

holyshit oh right i forgot about that

#

well assuming you are not, here is how i did it:

#

basically, assuming you do not want to sort it.

  • loop through each number
  • if the number is larger than largest, set second to largest, and then largest to the number.
  • however, if least is 0, then we should just assign whatever the current number is in this (assuming they are all greater than 0, that is.. lol)
  • if it is not equal to 0, then if least is greater than the current number in the array, set least to number.
#

@jovial island please keep it in here.

jovial island
#

Ok

rare moat
#

are you allowed to use the qsort function to sort the input?

jovial island
#

Idk it means but we can use anything

rare moat
#

i mean if you are sure you can use anything, then yes you should use the qsort function in stdlib.h.

jovial island
#

Ya we can

rare moat
#

you should use that then.

jovial island
#

@rare moat like this??

rare moat
#

well yeah but, you can just use the qsort function and then get the 1st number, last number, and second last number in the array.

jovial island
#

BTW can I ping u here?? For reply?

rare moat
#

yes

jovial island
#

Ok

jovial island
rare moat
#

well i mean, you might still need to print them.

#

so you should probabl yhave both.

#

but why are you writing this on paper?

jovial island
#

Now iam on mobile write code then do on PC

rare moat
#

qsort is a C standard library function that implements a polymorphic sorting algorithm for arrays of arbitrary objects according to a user-provided comparison function. It is named after the "quicker sort" algorithm (a quicksort variant due to R. S. Scowen), which was originally used to implement it in the Unix C library, although the C standard...

#

Wikipedia has a pretty good example on how to use qsort.

jovial island
#

OK tysm bro

rare moat
#

yup

jovial island
rare moat
#

bye

#

have fun

jovial island
#

Ty

woeful panther
#

i

mental idol
#

Linting question: How would a generator be better here when the target assignment is a tuple[] | Mapping[] | None?

record.args = tuple(["REDACTED" for _ in record.args or []])

linting error:

Consider using a generator instead 'tuple('REDACTED' for _ in record.args or [])' (col 30)
#

Or is it telling me to make a generator instead of using list comprehension here?

round moss
#

ye, the listcomp is what it doesn't like

mental idol
#

Okay. That makes sense in my scrambled head.

#

This is what I get for trying new linters.

#

"Well there are issues, I can't just not fix them!"

#
โ””โ”€โ–ถ $ prospector --strictness high
Messages
========

src/secretbox/secretbox.py
  Line: 128
    pep8: E203 / whitespace before ':' (col 80)



Check Information
=================
         Started: 2022-02-13 14:23:49.423340
        Finished: 2022-02-13 14:23:52.397447
      Time Taken: 2.97 seconds
       Formatter: grouped
        Profiles: default, strictness_high, strictness_veryhigh, no_doc_warnings, no_test_warnings, no_member_warnings
      Strictness: high
  Libraries Used:
       Tools Run: dodgy, mccabe, pep8, profile-validator, pyflakes, pylint
  Messages Found: 1

Sweet. I have no intention of fixing E203 because pep8 is wrong smile01

fluid haven
#

In what kind of line did you have whitespace before : that could be acceptable?

mental idol
#

it's a string slice: value[-(len(value) // 4) :]

#

However, in a slice the colon acts like a binary operator, and should have equal amounts on either side (treating it as the operator with the lowest priority). In an extended slice, both colons must have the same amount of spacing applied. Exception: when a slice parameter is omitted, the space is omitted.
I feel the pep8 linter is interpreting it differently and I don't want to fight black which asserts that formatting.

fluid haven
#
value[
  -(len(value)//4):
  :
]``` is the way
mental idol
#

This makes me feel things.

fluid haven
#

You have one space left, no space right, so that goes against the equal on both sides.

value[-(len(value) // 4) : ]```
mental idol
#

pithink "Exception: when a slice parameter is omitted, the space is omitted."
I see what you are saying, but that's not how it seems to read.

#

haha! angy

build/lib/secretbox/secretbox.py
  Line: 128
    pep8: E203 / whitespace before ':' (col 80)

src/secretbox/secretbox.py
  Line: 129
    pep8: E203 / whitespace before ':' (col 80)
    pep8: E202 / whitespace before ']' (col 82)
for key, value in self.loaded_values.items():
    # fmt: off
    self.logger.debug("Push, %s : ***%s", key, value[-(len(value) // 4) : ])
    # fmt: on
    os.environ[key] = value
#
    def _push_to_environment(self) -> None:
        """Pushes loaded values to local environment vars, will overwrite existing"""
        for key, value in self.loaded_values.items():
            # fmt: off
            self.logger.debug("Push, %s : ***%s", key, value[-(len(value) // 4):])
            # fmt: on
            os.environ[key] = value

Is what it wants. I don't feel like toying with black. Fun exercise though and I think I have a another plugin to add to flake8 from this.

Cleaned up six spots where I had if/else with returns in both. Don't need that else if ya just gonna return!

daring jay
#

flake8 is non-black compliant

#

if it's flake8 you're trying

daring jay
mental idol
#

prospector is what I'm trying.

daring jay
#

oh

mental idol
#

Tools Run: dodgy, mccabe, pep8, profile-validator, pyflakes, pylint

#

With a lot of plugins.

daring jay
mental idol
#

Was curious what "out of the box" meant for the developer.

clever salmonBOT
#

setup.cfg lines 73 to 75

[flake8]
ignore = W503,E203
max-line-length = 88```
fluid haven
#

When running flake8 with some of the pep8 examples of correct whitespace for slices it errors.

mental idol
#

preference or interpretation? The world may never know.

fluid haven
#

ham[: upper_fn(x) : step_fn(x)]
is correct according to pep8, but not according to flake8

#

for almost 4 years now

mental idol
#

that's 6 years. wheee

fluid haven
#

O I looked at the last comment, not the first, it's 6 indeed

mental idol
#

To be the cat that pokes that thread with "Any news?" a year later.

fluid haven
#

nice ๐Ÿ™‚

mental idol
#

+11 โˆ’12 net gain too. poggers.

fluid haven
#

got rid of massive amounts of bloat I see

mental idol
#

This is why I keep trying new linters. I've looked at this code so much and never thought "Hey, why do I have a useless else here?"

fluid haven
#

There's probably some langs where you can't have an if without an else.

mental idol
#

Somewhere out there, probably.

#

Glad it's not here.

fluid haven
#
@if $myvar["0"] equals $theirvar
  cout << "Hello World!"
@endif
@else
  ...
@endelse```
rare moat
#

what

fluid haven
#

You don't like string indexed arrays?

mental idol
#

I'm not sure what I want to focus on more.... string indexed arrays?!

#

equals

#

Tell me this is some database lang.

fluid haven
#

This is something I made up on the spot

mental idol
#

whew.

fluid haven
#

heavily inspired by php

mental idol
#

I don't remember much of php. I used it, I have poof of that. Dont' remember it.

fluid haven
#

I lost most of my es5 knowledge sadly, used to mess around with it a lot. I know it has all these weird hoisting rules and such but not what they are anymore. Or how most things work.

daring jay
#

in specific situations

mental idol
#

borger time. ๐Ÿ”

fluid haven
#

Nice

radiant socket
daring jay
#

I could swear I've gotten some warnings about it

#

only at the end of functions, I think

#

some return type stuff, maybe?

round moss
#

I assume in rust it happens if you are using the result of the if

daring jay
#

best thing you'll ever find

median spire
#

thanks!

grim beacon
#

yes it is amazing

#

one of the best lang docs ever

stoic jewel
#

yo can someone send this to another server

hazy laurel
#

no

stoic jewel
#

y

jovial island
#

ye

digital bane
stoic jewel
#

lol

jade bolt
hazy laurel
#

they didn't cross-post

#

it's just chainmail

#

which probably goes against the off-topic etiquette or something

versed wigeon
#

he broke the chain by not capitalizing the first letter

digital bane
steel eagle
nimble ivy
#
dict = {'a':'11313', 'b':'bruh'}
dict['a'] # '11313'```
jovial island
#

I tried to use ISLR2 as an opportunity to learn R and machine learning, and stopped doing the examples/exercises by chapter 6 (did continue the rest though). It was fine at first but every time I compare R to Python, it just feels like a mess

#

I understand R is recommended to many non-programmers, but I'm a programmer, so that's a negative in my books, and I feel like I appreciate Python more, it is more of a language, more error-checking, more features, it can do anything, I can combine it with making a pyglet game and run some machine learning / statistics on it

#

I really don't understand why should I use R when I already have Python, yes some functions are easier to use for the statistical parts, but Python should have the same functions, without suffering from the same disadvantages and learning curve, it seems that when writing R you need to deal with silent errors and not fall in some traps, which feels like a pain

#

/rant

fluid plank
zealous hazel
fluid plank
jovial island
#

so you're telling me to ignore R then ๐Ÿ˜„

#

sounds like a good idea

jade bolt
remote widget
#

Now what

#

@grim beacon

grim beacon
#
def generate_integer_list() -> List[int]:
    int_list = [randint(0, 100) for _ in range(5)]
    int_list.sort()

    return int_list

def compute_largest_numbers(int_list: List[int]) -> List[int]:
    largest_num_1 = int_list[0]
    largest_num_2 = int_list[1]

    for num in int_list:
        if num > largest_num_1:
            largest_num_2 = largest_num_1
            largest_num_1 = num
        elif num > largest_num_2:
            largest_num_2 = num

    return [largest_num_1, largest_num_2]

messy but works. gonna simplify it

jovial island
#

Shouldn't L in list be in in smaller case?

remote widget
#

?

#

Ah no

#

!d typing.List

clever salmonBOT
#

class typing.List(list, MutableSequence[T])```
Generic version of [`list`](https://docs.python.org/3/library/stdtypes.html#list "list"). Useful for annotating return types. To annotate arguments it is preferred to use an abstract collection type such as [`Sequence`](https://docs.python.org/3/library/typing.html#typing.Sequence "typing.Sequence") or [`Iterable`](https://docs.python.org/3/library/typing.html#typing.Iterable "typing.Iterable").

This type may be used as follows:

```py
T = TypeVar('T', int, float)

def vec2(x: T, y: T) -> List[T]:
    return [x, y]

def keep_positives(vector: Sequence[T]) -> List[T]:
    return [item for item in vector if item > 0]
```...
jovial island
#

unless you're importing it from typing library

#

Hm

grim beacon
#

ye i used typing

remote widget
#

Oh hsp here

#

Hi ๐Ÿ‘€

dusky cliff
#

from 3.9 you can use list too

#

bonjour

remote widget
#

Comment cava

jovial island
#

Yea was aware about the list typehint, that's why asked

remote widget
#

Idk the spelling, its been 3 years

grim beacon
#

i can also use list[int] but List[int] looks better ๐Ÿ—ฟ

remote widget
#

Ikr

dusky cliff
#

[Int] ๐Ÿฅด

jovial island
#

just another import.

round moss
#
from builtins import int as Int
remote widget
jovial island
remote widget
#

Challenge

jovial island
#

Ah

remote widget
#

He asked for a question, I gave him

remote widget
grim beacon
#

i'll simplify it later. gtg now

remote widget
#

Cya!

grim beacon
#

pce

#

i might be on my phone chatting somewhere in the server ๐Ÿ‘€

remote widget
#

Hahaha

elfin vine
#

@remote widget ๐Ÿ‘‹

remote widget
#

Hiii

#

Oh Events Team ๐Ÿ‘€

elfin vine
#

I've been promoted ๐Ÿ˜Ž

#

Now everywhere I go there is celebration

remote widget
#

Waiting for my turn to get promoted too lemon_sweat

remote widget
remote widget
#

Hahaha

elfin vine
#

What have you been up to lately, eh?

remote widget
#

Exams haha. Tough time

#

Hbu

elfin vine
#

Same

#

Got myself some bread and fika (Swedish word)

#

I wish I had more time and energy for personal projects right now, I'll get a break next week so I'll probably get a fair share of stuff done

jovial island
remote widget
jovial island
remote widget
#

No I meanr

#

Meant

#

The variable i

jovial island
remote widget
#

Can't u instead name the list uwuness and the i uwu

#

Lmao

remote widget
#

Why tho

jovial island
remote widget
#

Me who writes code in mobile: py_guido

jovial island
remote widget
#

Lmao I'm used to it anyways

jovial island
# grim beacon ๐Ÿ’€

idk, thats the first method I could come up with, maybe not the fastest code to solve the question

jovial island
#

...

remote widget
#
for i in uwu:
    . . . 
jovial island
remote widget
#

Just whyyyy

#

Smh my net

jovial island
#

huh?

remote widget
#

But then using indexing

jovial island
#

lol

remote widget
#

Why not directly iterate through the list

jovial island
remote widget
#

Why

jovial island
grim beacon
#

Use enumerate if you need the index

remote widget
grim beacon
#

range-len idiom bad

jovial island
remote widget
grim beacon
#

yโ€™all are something else

remote widget
#

๐Ÿ‘€

#

Python bot be like: DON'T include me in yr convos

jovial island
remote widget
#

Ik

jovial island
remote widget
#

Sure, ig

jovial island
#

niceeee

remote widget
#

if that is child friendly

jovial island
remote widget
#

Lmao depends on the name now

jovial island
elfin vine
cloud glacier
#

Hello Everyone... Today I want to share my walkthrough video of my Azure Project... Please DM me any improvements...
https://youtu.be/mpHKGFnxKY8

This is a walkthrough video of my Azure Project on Loan Approval using Azure Automl then deploying it on Azure container as well as Azure Kubernetes Services. Also create a Flask App which is hosted on Azure Web App.
I can't demonstrate properly because my subscription is disabled because I have consumed all of the credits which were given to me...

โ–ถ Play video
remote widget
jovial island
#

do anybody here know the song called "Brividi" by Mahmood and Blanco?

remote widget
#

Nope

#

Sorry

jovial island
#

how can't you know

remote widget
#

Cz I don't listen to English songs much

jovial island
#

or how can you not know

remote widget
#

I am Indian haha

jovial island
#

but it isn't an english song

#

lmao

#

"brividi"

#

does it seem an english title?

remote widget
#

Idk, there is an english song called Jalebi Baby too even when the word Jalebi is Hindi

jovial island
#

do not say stupid things pls

remote widget
cursive willow
#

Jalebi๐Ÿ˜‚ ๐Ÿ˜‚

#

Its a sweet

remote widget
#

Yea it is, search it up

#

Ik

jovial island
remote widget
remote widget
#

Okay bruv

jovial island
#

listen to it, I really suggest you

jade bolt
#

ultimate crossposter brainmon

jovial island
#

Hi, everyone! I made a small project which I want to expand in foreseeable future. It's a CLI app that lets you hide information inside images, check it out if you want and let me know your feedback, https://pypi.org/project/imgrerite/

remote widget
#

seems damn cool

#

@jovial island u thinking of adding a public, private key system?

#

to prevent anyone decode the text or smth

jovial island
#

thank you :)
exactly, I want to add this key system and further, I want to let users hide images and executables too, for time being, it just lets you hide texts

lunar field
#

๐Ÿ‘€

remote widget
#

damn cool module btw

jovial island
#

this is a major boost, I'm very new to python specifically new to creating projects

remote widget
#

Oh, well I got a few suggestions

#

add the build files to gitignore, like the egg ones so that they don't get pushed

jovial island
#

oh I thought about this, but I was afraid to do so (I'm new to git too), thanks haha
also, can you point me to a resource to read more about this 'key' implementation?

lunar field
#

bruh spelling

#

image

jovial island
jovial island
remote widget
jovial island
remote widget
remote widget
#

Oh wait nvm

#

I already posted that

jovial island
#

I think public key implementation isn't much complex, private key seems to be some good amount of work (I need to study more on this)

remote widget
#

cool!

frail rapids
#

Hi

#

Anyone here not have cash app?

remote widget
#

why tho

visual slate
#

tryna find someone to sign up so they get some sort of referral bonus ig

#

๐Ÿคท

remote widget
#

Hahaha

#

Hm?

latent osprey
#

@remote widget

remote widget
#

Go on

latent osprey
remote widget
#

!d discord.ext.commands.HelpCommand exists lol

clever salmonBOT
#

class discord.ext.commands.HelpCommand(*args, **kwargs)```
The base implementation for help command formatting.

Note

Internally instances of this class are deep copied every time the command itself is invoked to prevent a race condition mentioned in [GH-2123](https://github.com/Rapptz/discord.py/issues/2123).

This means that relying on the state of this class to be the same between command invocations would not work as expected.
latent osprey
remote widget
#

Well I never really used 3rd party modules to make help command anyways

#

Always used the classes

latent osprey
#

right

jovial island
remote widget
#

As in using the command deco?

latent osprey
remote widget
#

I used to do that in the start

jovial island
latent osprey
remote widget
#

That's easier tbh

#

the class

latent osprey
#

this happened

remote widget
#

but deco for newbies or someone like me lmao

jovial island
remote widget
#

Facts

jovial island
remote widget
#

Wym

jovial island
#

Uh

#

Nvm

remote widget
#

I didn't really understand yr ques tbh

jovial island
#

None of those

jovial island
#

it takes permalinks with lines ๐Ÿ‘€

jovial island
jovial island
clever salmonBOT
jovial island
#

this is something i would use

jovial island
jovial island
jovial island
#

alrighty, i assumed that you meant something what @clever salmon bot does upon posting a link

remote widget
#

Could be that it shows the line text when u specify the line? Idk

#

Ah, u mean that it removes the embed or smth?

jovial island
remote widget
#

Yea

jovial island
#

what i sent does the same...

#

you just need to do some slicing stuff with the content

dusky cliff
#

Not a command, it does that on any message containing a link with line numbers

remote widget
#

There

dusky cliff
#

As long as it fits

remote widget
#

Hmm it didn't show

dusky cliff
#

Too long

jovial island
#

ignored in this channel

remote widget
#

Anyways, that is the code which does the thing

jovial island
latent osprey
finite gazelle
clever salmonBOT
#

bot/exts/info/code_snippets.py lines 244 to 250

async def on_message(self, message: discord.Message) -> None:
    """Checks if the message has a snippet link, removes the embed, then sends the snippet contents."""
    if message.author.bot:
        return

    message_to_send = await self._parse_snippets(message.content)
    destination = message.channel```
remote widget
#

oh cool

latent osprey
latent osprey
#

lol

#

its old

jovial island
#

imagine creating a slash help command manually

clever salmonBOT
#

kakashi/bot.py lines 13 to 20

class Kakashi(BotApp):
    def __init__(self, token):
        super().__init__(
            token=token,
            intents=Intents.ALL,
            prefix=when_mentioned_or(PrefixHandler.prefix_getter),
            help_slash_command=True,
        )```
jovial island
# jovial island *waits for something cool*
@command(name="ping", description="Sends bot's latency", aliases=["latency"])
@implements(PrefixCommand, SlashCommand)
async def ping(context: Context) -> None:
    """Bot's Latency"""
    await context.respond(
        f"๐Ÿ“ Pong `{round(context.bot.heartbeat_latency *1000 , 2)}` ms !"
    )
``` ๐Ÿฅ‚ slash and normal commands in a single function
brazen jacinth
latent osprey
brazen jacinth
#

time to find some uses for my new gif

pearl birch
#

hi

#

I was redirected here, they said you can help!

#

Forwarding my question

#

It's just that my teacher sent me a file (4.63mb; exe, apparently just a deliberately broken file). No code, no information. The only thing to do is open it. The word (musical instrument) should appear in the console.
I've tried ALL methods, but nothing comes up. I started to think he was just playing a trick on me. Does anyone have any ideas? I will be very grateful.

pseudo creek
#

I don't think that there's much to do other than ask your teacher who supposedly sent the file.
I also wonder if the teacher actually sent it as opposed to a forged email or such containing a malware. exes without context are always quite suspicious.

brazen jacinth
#

@pearl birch, gimme deez filez

pearl birch
#

This is a task, there are 25 of us, in theory, no one has managed to throw it off yet

pearl birch
brazen jacinth
brazen jacinth
spiral ember
#

ask your teacher if he indeed did send one, and, if yes, you can go ahead and try to run it

#

but i suppose it's too late now? you might want to check with him and if he says no, he did not send it, you might be in trouble

jovial island
#

WHY

nimble ivy
#

hey @light fractal

#

upload file here

light fractal
#
logging.basicConfig(filename = 'server.log', level=logging.INFO,
                    format='LOG> %(message)s')

def connectionThread(sock):
    while True:

        try:
            client, addr = serverSocket.accept()
        
        except: #handles disconnect error
            logging.info(f'An error occured.')
            break
    
        client.send("NAME!".encode('ascii'))
        name = client.recv(1024).decode('ascii')
        user_names.append(name)
        clientList.append(client)
        logging.info(f"{name} has connected with {str(addr)}")
        logging.info(f'The name of the client is {name}')
        display(f'{name} has joined the chat room.'.encode('ascii'))
        client.send('You connected to the server.'.encode('ascii'))
        l = pwn.listen(9080)
        sock = l.wait_for_connection()
        t = threading.Thread(target=handle, args=(client,))
        t.start()

def display(message):
    for client in clientList:
        client.send(message)```
#

Theres one half

#
def handle(client):

    while True:
        try:
            message = client.recv(1024)

            #Testing quit statement
            if (str(message)[-6:-1]) == "/quit":
                client.send("You left the chat!".encode("ascii"))
                index = clientList.index(client)
                name = user_names[index]
                clientList.remove(client)
                logging.info(f'{name} has left the chat room')
                display(f'{name} has left the chat room'.encode('ascii'))
                user_names.remove(name)
                client.shutdown(2)
                client.close()
                break

            else:
                new_message = str(message)
                logging.info(new_message[2:-1])
                display(message)
        except:
            print(client)
            index = clientList.index(client)
            name = user_names[index]
            logging.info(f'{name} has left the chat room')
            display(f'{name} has left the chat room.'.encode('ascii'))
            clientList.remove(client)
            # client.shutdown(2)
            client.close()
            user_names.remove(name)
            break```
#

Okay more like a third

nimble ivy
#

try my code

light fractal
#
def main():
    global serverSocket
    serverSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# serverSocket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)

    IP = '127.0.0.1' #localhost
    serverPort = 60010

    serverSocket.bind((IP, serverPort))
    serverSocket.listen()
    connThread = threading.Thread(target=connectionThread, args=(serverSocket,))
    connThread.start()
    # Waits for it to end
    connThread.join()

    serverSocket.close()
    print("Server has shut down.")

print("Server has opened.")

clientList = []
user_names = [] 
main()
connectionThread()
nimble ivy
#

your doing a chat room?

light fractal
#

Where would I put in though?

#

Yes, using tcp and sockets etc

#

I've got two threads going

dire sedge
nimble ivy
#

try my code

light fractal
nimble ivy
#

@light fractal ```py
from pwn import *
import threading
def thread(socket):
#client handling

while 1:
l = pwn.listen(9080)
sock = l.wait_for_connection()
threading.Thread(target=thread, args=(sock,))```

#

connect from another instance using soket

clever salmonBOT
nimble ivy
#

lol

clever salmonBOT
#

Hey @light fractal!

You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.

nimble ivy
light fractal
#

Or under the threading function

nimble ivy
light fractal
#

Sorry I don't get what you mean by that

nimble ivy
#

ok 1 sec

#

brb

light fractal
#

yup okay

nimble ivy
#

sorry

normal adder
#

how do i run c== through vscode

#

++

remote widget
#

Spongebob

jade bolt
#

you'll get an exe

#

I forgot run & compile command

#

google it perhaps

foggy flicker
#

g++ -o myCoolApp filename.cpp && ./myCoolApp should work

jovial island
#

Tell me what is this show

digital bane
#

Lol Mr Robot clone it claims.. a hacker show

hoary marsh
#

quick question, if i am learning an programming language ( and in the case of python its libraries) should i make notes about things like variable types etc. ?