#voice-chat-text-0

1 messages · Page 942 of 1

scenic wind
#

lol

rugged root
#

Was so hoping the bot was going to get you

gentle flint
scenic wind
gentle flint
#

yeah after you suggested it

scenic wind
#

mhm

rugged root
#

Yeah just a smidge. I'm heading home, I'll try and poke my head in the crew server

gentle flint
#

and specifically suggested doing 7

scenic wind
#

@rugged root you should consider making @gentle flint an admin

rugged root
#

Not how that works

scenic wind
#

i know he can be edgy

#

but he is really active

#

gimme 5 pounds pay pal verboof

gentle flint
#

can't cuz brexit

#

sorry mate

scenic wind
#

send it by bird via envelope

gentle flint
#

the £5 hasn't got a visa

#

it'll be deported

proven geyser
scenic wind
#

blackbirds dont need visa

gentle flint
#

tell that to Farage

scenic wind
#

Operation Achse (German: Fall Achse, lit. 'Case Axis'), originally called Operation Alaric (Unternehmen Alarich), was the codename for the German operation to forcibly disarm the Italian armed forces after Italy's armistice with the Allies on 3 September 1943. The Germans disarmed over a million Italian troops within a matter of days, annihilati...

humble oracle
#

yas me unmoot

#

i need verify

#

i need perm

proven geyser
#

There are a ton of active channels. Go join a conversation.

humble oracle
#

okie

#

dokie

crystal ridge
#

Message number 2

pliant remnant
#

wow why am i muted?

#

i have been verified a while ago , but deleted my account and made a new one

gentle flint
#

well that's why

#

you'll have to reverify on your new account

somber heath
#

!paste

wise cargoBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

sinful tapir
somber heath
#

!e py for i in range(6): print(i) if i == 4: print("Break") break print("I don't run.") print("Bye")

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | Break
007 | Bye
somber heath
#

!e py for i in range(6): if i == 4: continue print(i)

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

001 | 0
002 | 1
003 | 2
004 | 3
005 | 5
somber heath
#

!d dict

wise cargoBOT
#

class dict(**kwarg)``````py

class dict(mapping, **kwarg)``````py

class dict(iterable, **kwarg)```
Return a new dictionary initialized from an optional positional argument and a possibly empty set of keyword arguments.

Dictionaries can be created by several means:

• Use a comma-separated list of `key: value` pairs within braces: `{'jack': 4098, 'sjoerd': 4127}` or `{4098: 'jack', 4127: 'sjoerd'}`

• Use a dict comprehension: `{}`, `{x: x ** 2 for x in range(10)}`

• Use the type constructor: `dict()`, `dict([('foo', 100), ('bar', 200)])`, `dict(foo=100, bar=200)`
somber heath
#

!e py d = {"Apples": 7} print(d["Apples"]) d["Pears"] = 8 print(d)

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

001 | 7
002 | {'Apples': 7, 'Pears': 8}
somber heath
#

!e py t = 1, 2, 3 #tuple print(t[0]) #Print the first (zeroth) element of t. (Subscription) t[0] = 5#Attempt to change the first element of t to 5. Computer says "no".

wise cargoBOT
#

@somber heath :x: Your eval job has completed with return code 1.

001 | 1
002 | Traceback (most recent call last):
003 |   File "<string>", line 3, in <module>
004 | TypeError: 'tuple' object does not support item assignment
somber heath
#

HOWEVER.

#

!e py a = [1, 2, 3] #list b = a, 4, 5 #tuple print(b) b[0][0] = 6 print(a) print(b)

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

001 | ([1, 2, 3], 4, 5)
002 | [6, 2, 3]
003 | ([6, 2, 3], 4, 5)
sick yacht
#

I need hellpppp

#

OMG

#

Hello again, OpalMist

#

G'day mate

#

I thought u were bri ish before, and I lived in Aus for 3 yrs

#

I have no idea how to code this project

#

Basically it's pixelization

#

Taking the average color value

#

Is there any way we can go private call? Really need to get it done...

somber heath
#

() "parentheses" A lot of contextural uses, such as calling functions and methods (__call__), but used in the construction of tuples among other uses.

[] "square brackets". Used in lists and to subscript objects/ dictionary key specification (__getitem__ and __setitem magic methods.)

{} "curly braces" Used in the construction of both sets and dictionaries. Also sees use within string formatting contexts.

sick yacht
#

I know these

#

Mhm

somber heath
sick yacht
#

Got it

#

I use both

#

in VSCode

#

Modules

#

to import images

#

Yeah I believe so

#

Can we go private call?

#

Oh nvm, I can't use the modules

#

I need to use for loops and calculations

#

It is a school project and I am frustrated

#

Ah, 2, 50

#

2 is the dimension

#

Like after the pixelization,

#

The width and height is 2

#

Yeah, half done is bcz of the 50

#

Hmm?

#

Yeah,

#

So basically,

#

50 is 50% of the image

#

And it's from right to left

#

The other half remains undone

#

Bigger example,

#

pixelization(image, 10, 60)

#

Text?

#

Oh u mean the descriptions?

sick yacht
#

Yeah we need to forget abt that module

#

Manually

#

Yes, very hard

#

Oh thx

#

Sorry

#

Yeah I am

#

Yeah

#

Pretty much

#

But I need to program the calculations and stuff myself instead of importing

#

Yeah

#

mhm

#

Oh thank u so much

#

I will

somber heath
#

!e py print(*range(0, 20, 2))

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

0 2 4 6 8 10 12 14 16 18
somber heath
#

Not back. Just posting handy things as I go.

sick yacht
#

I see, increment loops

#

I'm thinking of this as well

somber heath
#

!e py pvs = [(1, 2, 3), (4, 5, 6), (7, 8,9)] print([*zip(*pvs)])

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

[(1, 4, 7), (2, 5, 8), (3, 6, 9)]
somber heath
#

Or more regular loopy

#

!e py pvs = [(1, 2, 3), (4, 5, 6), (7, 8,9)] for channel in zip(*pvs): #zip((1, 2, 3), (4, 5, 6), (7, 8, 9)) print(channel)

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

001 | (1, 4, 7)
002 | (2, 5, 8)
003 | (3, 6, 9)
somber heath
#

!e py deltas = [(0, 0), (0, 1), (1,0), (1, 1)] point = 50, 50 subgrids = [] for x in range(0, 4, 2): for y in range(0, 4, 2): subgrid = [] for x_delta, y_delta in deltas: p = x + x_delta, y + y_delta subgrid.append(p) subgrids.append(subgrid) print(subgrids) 

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

[[(0, 0), (0, 1), (1, 0), (1, 1)], [(0, 2), (0, 3), (1, 2), (1, 3)], [(2, 0), (2, 1), (3, 0), (3, 1)], [(2, 2), (2, 3), (3, 2), (3, 3)]]
somber heath
#

Ah, no, I was right. I was just dialing up the dimensions too much.

#

So anyway. There's your underlaying mechanic.

#

A way to average the channels, reds with reds, greens with greens, etc (zip) and a way to target each subset of pixels, deltas, above.

#

You'll still have to fill in some blanks.

#

You'll understand where by studying and understanding these examples.

#

Unless I've stuffed it up and I'm an idiot.

#

Which is also possible.

sick yacht
#

Hmmmm

somber heath
#

Definitely pick up try and except if you haven't already.

#

Particularly with IndexError as the given exception for except.

#

Pixelisation achieved.

#

Meaning the concept of approach I've given is sound.

sick yacht
#

Hmmm...

somber heath
#

As in good. Not noisy.

sick yacht
#

It's not too comprehensive to me so far...

somber heath
#

Okay, so if you look at the for loops with the step parameters...

sick yacht
#

Yeah

somber heath
#
for x in range(0, 4, 2):
    ...```
#

!e py print(*range(0, 4, 2))

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

0 2
somber heath
#

You can, from this, do...

sick yacht
#

Mhm yes

#

Just did it

somber heath
#

!e py deltas = [0, 1] for x in range(0, 4, 2): xs = [x+d for d in deltas] print(xs)

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

001 | [0, 1]
002 | [2, 3]
sick yacht
#

A little complicated for me

#

But I'll figure it out in a min

#

Oh got it

somber heath
#

You essentially split up 1 2 3 4 into 1 2 3 4

#

This is a 1D example of the principle.

sick yacht
#

(I have no idea when will I no longer be suppressed)

somber heath
#

or 0 1 2 3 sorry

#

!voice

wise cargoBOT
#

Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

sick yacht
#

Idk if this one counts or not

#

Really, I said a hell lotta stuff already

somber heath
#

!e ```py
n = 2
deltas = []

for i in range(n):
deltas.append(i)

for x in range(0, 10, n):
xs = []
for delta in deltas:
xs.append(x+delta)
print(xs)```

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

001 | [0, 1]
002 | [2, 3]
003 | [4, 5]
004 | [6, 7]
005 | [8, 9]
somber heath
#

!e ```py
n = 2
deltas = []

for i in range(n):
deltas.append(i)

for x in range(0, 10): #removed third parameter of range, the step, n
xs = []
for delta in deltas:
xs.append(x+delta)
print(xs)```

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

001 | [0, 1]
002 | [1, 2]
003 | [2, 3]
004 | [3, 4]
005 | [4, 5]
006 | [5, 6]
007 | [6, 7]
008 | [7, 8]
009 | [8, 9]
010 | [9, 10]
somber heath
#

!e print(*range(0,10))

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

0 1 2 3 4 5 6 7 8 9
somber heath
#

!e print(*range(0,10,2))

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

0 2 4 6 8
somber heath
#

!e print(*range(10))

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

0 1 2 3 4 5 6 7 8 9
somber heath
#

range takes one, two or three arguments. If given one only, that argument is stop. If given two arguments, the first is start and the second is stop. If three are given, the first is start, the second is stop and the third is step. Unless otherwise specified, start is assumed to be 0 and step is assumed to be 1.

#
range(stop)
range(start, stop)
range(start, stop, step)```
#

Thus, if you wish to use step, you must fulfil all three parameters.

#

If you wish to use start, you must fulfil at least two.

#

These start stop step names are just descriptive. They are not "named parameters", I can't feed them keyword arguments. For example, I cannot do something like

range(stop = 5)```
#

!e py range(10, step = 2)Alas, this fails.

wise cargoBOT
#

@somber heath :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | TypeError: range() takes no keyword arguments
somber heath
#

!e py delta_width = 2 x_width = 10 groups = [] for x in range(0, x_width, delta_width): group = [] for delta in range(delta_width): group.append(x + delta) groups.append(group) print(groups) 

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

[[0, 1], [2, 3], [4, 5], [6, 7], [8, 9]]
somber heath
#

Keep in mind, this would be written differently were you slicing numpy arrays.

#

This is more a Pillow only way.

#

I append group to groups, here, for illustrative purposes.

#

But in practice, you could iterate over group (positions) at that stage, pull out and average the pixels (zip, sum, //, len), then plug that back into each pixel as per group.

#

Image.putpixel likes tuples or ints for colour values, though, so if you use a list to store that average colour, you may need to cast it to tuple, first.

#

Also, I see why they set the 50 to do the right hand of the image. You could do it with the left, but...

#

Something something range something something start. 😁

sick yacht
#

Oh I am back

sick yacht
sick yacht
#

Hmm?

somber heath
#
...
for x in range(...):
    for y in range(...):
        ...
        for x_delta in range(...):
            for y_delta in range(...):
                ...
...```
#

!zen

wise cargoBOT
#
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

somber heath
#

Flat is better than nested.

#

!code

wise cargoBOT
#

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

sick yacht
#
def pixelization(image, square_size):
    for col in range(0, len(image), square_size):
        for row in range(0,len(image[0]), square_size):
            for 
sick yacht
somber heath
#

image[row][col], upper left to bottom right

sick yacht
#
def pixelization(image, square_size):
    for col in range(0, len(image), square_size):
        for row in range(0,len(image[0]), square_size):
            for 
            image[row][col]=
somber heath
#

For Python lists of lists of values.

#

Also numpy.

#

PIL is col/row, I think ltr btt

sick yacht
#
def pixelization(image, square_size):
    for row in range(0, len(image), square_size):
        for col in range(0,len(image[0]), square_size):
            list=[]
              for row_delta in range(square_size):
                  for col_delta in range(square_size):
                    image[row][col]=
#
def pixelization(image, square_size):
    for row in range(0, len(image), square_size):
        for col in range(0,len(image[0]), square_size):
            colors=[]
            for row_delta in range(square_size):
                for col_delta in range(square_size):
                    colors[row][col]=
somber heath
somber heath
#

!e py v = 1, 2, 3 print(sum(v))

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

6
deep sky
#

hi

#

wot are u discussing abt

somber heath
#

/ truediv, floats

#

// floordiv, ints

#

int(6/5)

#

6//5

deep sky
#

ok this division

#

float(6/4)

#

can u unlock me

somber heath
#

!voice

wise cargoBOT
#

Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

deep sky
#

ok pardon sir

sick yacht
#

drink some water

somber heath
#

!d enumerate

wise cargoBOT
#

enumerate(iterable, start=0)```
Return an enumerate object. *iterable* must be a sequence, an [iterator](https://docs.python.org/3/glossary.html#term-iterator), or some other object which supports iteration. The [`__next__()`](https://docs.python.org/3/library/stdtypes.html#iterator.__next__ "iterator.__next__") method of the iterator returned by [`enumerate()`](https://docs.python.org/3/library/functions.html#enumerate "enumerate") returns a tuple containing a count (from *start* which defaults to 0) and the values obtained from iterating over *iterable*.

```py
>>> seasons = ['Spring', 'Summer', 'Fall', 'Winter']
>>> list(enumerate(seasons))
[(0, 'Spring'), (1, 'Summer'), (2, 'Fall'), (3, 'Winter')]
>>> list(enumerate(seasons, start=1))
[(1, 'Spring'), (2, 'Summer'), (3, 'Fall'), (4, 'Winter')]
```  Equivalent to...
somber heath
#
(r0, g0, b0)
(r1, g1, b1)
(r2, g2, b2)
zip \/
(r0, r1, r2), (g0, g1, g2), (b0, b1, b2)
sum \/
r0+ r1+ r2, g0 + g1 + g2, b0 + b1 + b2
/ len(colors)  \/
new_red, new_green, new_blue```
sick yacht
#
def pixelization(image, square_size):
    for row in range(0, len(image), square_size):
        for col in range(0,len(image[0]), square_size):
            colors=[]
            for row_delta in range(square_size):
                for col_delta in range(square_size):
                    zip(*colors)
somber heath
#

!e py print(4, 5, 6) print([4, 5, 6]) print(*[4, 5, 6]) #Like the first

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

001 | 4 5 6
002 | [4, 5, 6]
003 | 4 5 6
sick yacht
#

(r0, r1, r2), (g0, g1, g2), (b0, b1, b2)

#
def pixelization(image, square_size):
    for row in range(0, len(image), square_size):
        for col in range(0,len(image[0]), square_size):
            colors=[]
            for row_delta in range(square_size):
                for col_delta in range(square_size):
                    for values in zip(*colors):
                        sum(values)/len(colors)
#
def pixelization(image, square_size):
    for row in range(0, len(image), square_size):
        for col in range(0,len(image[0]), square_size):
            colors=[]
            for row_delta in range(square_size):
                for col_delta in range(square_size):
                    colors.append(image[row+row_delta][col+col_delta])
somber heath
#

image[y][x][c]

sick yacht
#

image[y][x][0]

#
def pixelization(image, square_size):
    for row in range(0, len(image), square_size):
        for col in range(0,len(image[0]), square_size):
            colors=[]
            for row_delta in range(square_size):
                for col_delta in range(square_size):
                    colors.append(image[row+row_delta][col+col_delta])
            final=[]
            for values in zip(*colors):
                final.append(sum(values)/len(colors))
somber heath
sick yacht
#

@somber heath There's no need to argue with him, just mute him...

somber heath
#

!e py a = [0, 1, 2] a[0] = 5 print(a) a[0] = 2 print(a)

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

001 | [5, 1, 2]
002 | [2, 1, 2]
somber heath
#

!e py a = [5, 7, 9] print(a[0])

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

5
somber heath
#

!e py a = ["abc", "def", "ghi"] print(a[0][2])

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

c
sick yacht
#
def pixelization(image, square_size):
    for row in range(0, len(image), square_size):
        for col in range(0,len(image[0]), square_size):
            colors=[]
            for row_delta in range(square_size):
                for col_delta in range(square_size):
                    colors.append(image[row+row_delta][col+col_delta])
            final=[]
            for values in zip(*colors):
                final.append(sum(values)/len(colors))
    image[row+row_delta][col+col_delta]=
stable axle
#

@somber heath you think you could help me in #help-kiwi ? I think its a pretty easy question, and if you could answer in text

mild agate
#

Hii!

#

whats up!

willow lynx
#

Yes these are there :) @somber heath

noble sandal
#

anyone here good with flask? I have a simple and dumb question I can't get fix

slate kindle
#

git fetch

#

@somber heath

sweet lodge
#

👋

#

The embodiment of apathy

#

Who's stealing my job again?

#
[2021-12-08 14:51:38,240] ERROR in app: Exception on /shipping/shipments/1229930/post-to-bc [GET]
Traceback (most recent call last):
    if shipments.tracking is None:
NameError: name 'shipments' is not defined
#

shipment not shipments

#

Started today by taking out production with a typo

#

Fair enough

rugged root
somber heath
#

Cyäegha

sweet lodge
#

Can they just replace Notepad with VSC

#

So?

sweet lodge
#

Okay - how about - Monaco editor in Notepad?

nova warren
#

Guys I have just few in lines python script that i am not able to fully grasp i wonder if someone can help me reading it

somber heath
#

!code

wise cargoBOT
#

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

nova warren
#

i can't speak in channel , actually idk why

somber heath
#

!voice

wise cargoBOT
#

Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

zenith epoch
nova warren
#

you want me to upload the script ?

#

alright

#

It looks like i can't voiceverify cuz i don't meet the put in criteria

#

but i'll just send the script here

rugged root
#

!paste

wise cargoBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

nova warren
#

it's there

#

I can also upload to my pastebin if u want

#

yeah it is !

zenith epoch
#

few lines aight !

nova warren
#

I am an infosec guy who doesn't know that much python

zenith epoch
#

so what do you wanna know about it ?

nova warren
#

alright

#

I am just struggling with understanding codecs

sweet lodge
nova warren
#

this line there that says

#

self.stream = codecs.getreader(charset)(open(_file, "rb"), errors="ignore")

#

i looked it up and it says it returns some object called streamreader

sweet lodge
#

I learned about statistics from AoC

nova warren
#

and this method looks up the codec of and encoding

#

But i didn't get what that means

somber heath
#

Oh. codecs, not codex.

rugged root
#

codecs.getreader(charset)

#

(open(_file, "rb"), errors="ignore")

#

StreamReader(open(_file, "rb"), errors="ignore")

sweet lodge
#

Reader
Sounds like Java
Could this not be done with open(_file, charset=charset)?

nova warren
#

so the codecs returns the streamreader and then that operates on the file ?

#

and what does it do to the file ?

zenith epoch
nova warren
#

Take your time !!

#

I am enjoying the convo

zenith epoch
#

self.stream = codecs.getreader(charset)(open(_file, "rb"), errors="ignore")

gentle flint
#

this was earlier today

zenith epoch
#

what is this syntax codecs.getreader ( ) ( )

nova warren
#

so that open thing is a param to the streamreader

gentle flint
#

now I am a Displaced Programmer

rugged root
#
commands["menu"]()
nova warren
#

And the same question goes floating , what does the streamreader object do to the file ?

zenith epoch
#

so a those are parameters for the function returned by the prev function

nova warren
#

read() returns the wholefile

zenith epoch
#

so what is this codec module ... just for encoding decoding files ?

nova warren
#

Yeah i did but i am trying it in idle

#

The point of using codecs here is it to read the file as a steam of continuous chars ?

rugged root
#

Correctly

nova warren
#

And open () can't do that

#

it just returns a file object and then that's converted to a stream ?

zenith epoch
#

stream just looks like a str variable

tropic gull
#

i am havuing aproblem with this code

zenith epoch
#

!code

wise cargoBOT
#

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

rugged root
nova warren
#

for (_, _string) in self.is_printable(self.stream):

rugged root
nova warren
#

what that for loop is actually doing ?

tropic gull
#
import algo.config as config
import asyncio
import websockets as ws



ws_client = WebsocketClient(api_key=config.api_key, secret_key=config.secret_key)
async def main():
            asyncio.create_task(
                ws_client.connect()
                )

            await ws_client.subscribe(
                events=["!ticker@arr"],
            )      

loop = asyncio.get_event_loop()
loop.create_task(main())
loop.run_forever()
loop.close()
#

i can get it to bring output in console

#

but i cant get it to store in a variable

nova warren
#

what is the parenthesis following the for keyword

tropic gull
#

*store

zenith epoch
rugged root
#
def get_stuff():
  return (1, 2)
zenith epoch
#

ohh for x in list:

#

x is tuple instead

rugged root
#
x = get_stuff()
#
x, y = get_stuff()
#
for _ in range(3):
nova warren
#

we don't care about what var get the values from 0 thru 2

#

but we just put the _ there for syntactical purposes

#

just like pass

#

when we have nothing to say

#

Can you walk me thru the func is_printable()

#

so if that char is in the set of printable chars

zenith epoch
#

current_string = (offset, [char])

nova warren
#

what do we do ?

zenith epoch
hard spruce
#

!ot

#

no workie

zenith epoch
nova warren
#

initially it's an empty list so the cond is false and else executes

#

and what the else does is it reassign the current_string and set it to a tuble

#

why is that ?

zenith epoch
#
    def is_printable(stream):
        """Checks if the stream is printable."""

        offset = 0
        current_string = []

        for char in stream.read():
            if char in string.printable:
                if current_string:
                    current_string[1].append(char)
                else:
                    current_string = (offset, [char])
            else:
                if current_string:
                    yield (current_string[0], "".join(current_string[1]))
                    current_string = []
            offset += 1```
#

so if the char is printable it appends it to current string

#

if its not printable ...the yeild is like a return statement ....but as return ends the function yeild doesnt

nova warren
#

I am confused

#

current_string = (offset, [char])

zenith epoch
#

but still i am getting the purpose of the nested if else for those printable or not if else

nova warren
#

what does that do ?

zenith epoch
#

it seems its just reassigning the list to a tuple again

nova warren
#

why the char is in brackets

#

?

#

why a list of 1 char ?

#

i kind of like get something

zenith epoch
#

this code written is so suspicious .....did i learn python wrong 😂

nova warren
#

initially the cond is false so the cuurent_string var is set to a tuble

#

and then the cond is true from that point forward and all the printable chars get appended to that second elem of the tuple

#

which is the list

#

we are not adding to the tuple

#

to the list

zenith epoch
#

wont the nested if statements be always true ....why even put a if statement then

nova warren
#

so he is defeating the purpose of using a tuple

#

that's what you mean ?

zenith epoch
#

its not changing ....a new tuple is getting declared i think everytime the statement runs

rugged root
#
current_string = [offset, [char]]
zenith epoch
#

overriding ?

nova warren
#

if current_string:
yield (current_string[0], "".join(current_string[1]))
current_string = []
offset += 1

#

and what that part says ?

#

and what does yield returns ?

#

it returns the string

zenith epoch
#

like offset doesnt matter in this function .....just an unecessary variable

#

if statements also useless ...wont it always be true

nova warren
#

I will be back in just a minute

zenith epoch
#

both nested ifs ....for intial if else

#

if current_string:

#

ohh

#

yield (current_string[0], "".join(current_string[1]))

#

in here joining the 1st element to 0th element of list which is empty ...why'

#

then current stream will always be empty ...we are resetting it to empty always

nova warren
#

I am here

zenith epoch
#

before entering the for loop its empty ...... so the curr_str gets filled with else statement with current_string = (offset, [char])

#

and then we are trying to append current_string[1].append(char)

lusty ravine
#

Hello
I'm trying to develop a graph for a mini program I'm creating, but whenever there is an input after the graph creation the graph will crash
Can anyone help me with this?

zenith epoch
#

how can we append an tuple

#

so is that valid ?

rugged root
lusty ravine
#

can i send a litle bit of code?

nova warren
#

Well, why he is using yield instead of return ?

rugged root
nova warren
#

usually a return destroys what evv was created in response of the func call but that yield here means that obj will not go away with the env ?

#

Yeah i will

zenith epoch
lusty ravine
#

import numpy
import matplotlib.pyplot as plt

mydata = numpy.zeros([24, 2], int)
mydata[8, 0] = 1
mydata[8, 1] = 2
mydata[9, 0] = 3
mydata[9, 0] = 12

print(mydata)
plt.plot(mydata)

#input()

If you uncomment the input the graph crash. Can someone explain the reason why?

nova warren
#

still says i am not eligible

lusty ravine
#

the program crash

#

it s windows error

#

let me see

nova warren
#

alright

zenith epoch
#

it worked here for me

rare crater
#

is pycharm safe and correct app to learn python ?

rugged root
#

It is safe for sure

lusty ravine
rugged root
#

I wouldn't say it's the best one to learn Python on, though

lusty ravine
#

i m using pycharm

zenith epoch
lusty ravine
#

yes, just click run

zenith epoch
#

input() is an inbuild function ...why are you using it in your code ?

lusty ravine
lusty ravine
zenith epoch
zenith epoch
#

do you want to input your own data ?

lusty ravine
#

the input doesn t start

quaint oyster
#

after you guys are done, do you guys contemplate matlab code as well?

lusty ravine
#

the console stops

gentle flint
lusty ravine
#

and it opens the graph?

rugged root
#

!e

import string
print(string.printable)
wise cargoBOT
#

@rugged root :white_check_mark: Your eval job has completed with return code 0.

001 | 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ 	
002 | 
003 | 
lusty ravine
#

sure, but i can t put all my code in the console
i need the graph

nova warren
#

for (_, _string) in self.is_printable(self.stream):
if not self.is_readable(_string, 0.8):
continue

        if len(_string) < str_len:
            continue

        if _dict:
            valid = False
            raw_str = ""

            for char in string.ascii_letters + string.digits:
                raw_str += char
            raw_str = raw_str.split()

            for data in raw_str:
                if len(data) < str_len:
                    continue

                for dic in _dict:
                    if dic.check(data.lower()):
                        valid = True
            if not valid:
                continue

        _string = _string.strip()
        strings.append(_string)

    return {"all" : strings, "urls" : list(filter(self.url_regex.search, strings)),
            "ips" : list(filter(self.ip_regex.search, strings))}
lusty ravine
#

plot.what?

gentle flint
#

once you've run the plot calculation you need to show it with plt.show()

#

doing this works fine

import numpy
import matplotlib.pyplot as plt

mydata = numpy.zeros([24, 2], int)
mydata[8, 0] = 1
mydata[8, 1] = 2
mydata[9, 0] = 3
mydata[9, 0] = 12

print(mydata)
plt.plot(mydata)
plt.show()

input()
lusty ravine
#

yes, i can creat the graph, but when i have an input it crash

gentle flint
#

although you might need to run it from console, not sure if pycharm will show it

gentle flint
lusty ravine
gentle flint
#

what if you try just running python filename from the console

#

instead of using pycharm run

lusty ravine
#

i have lot of code, cant do that

gentle flint
#

whyever not

#

open up a cmd

#

cd into your directory

#

run python and your filename

#

watch it execute

#

like I did

zenith epoch
lusty ravine
#

i m lost
1 sec

gentle flint
sturdy panther
zenith epoch
zenith epoch
#

@lusty ravine instead run file in python console can you just use the Run command with right click with green icon

gentle flint
#

I think that's what he's doing

lusty ravine
#

look at the elif x=='6'

#

it works

#

but i don t want the return so...

#

like this it crash

zenith epoch
#

can you show whats the name of the function in which you have your elif statment

lusty ravine
#

it s menu

zenith epoch
#

also the matriz.grafico() function

#

does it return something ?

lusty ravine
lusty ravine
#

but if i add the return it stays with the same prob

zenith epoch
#

when you call a function it has to return something ....if it doesnt it will return none

#

so it wont display the graph

#

and exits

lusty ravine
#

so you want me to return what?

zenith epoch
#

plt.show() should still show graph though ..i got confused now

lusty ravine
#

if i add plt.pause(amount of secounds) it doesn t crash till amount of secounds is up

#

but than it crash

zenith epoch
#

what do you want your code to do actually without crashing

lusty ravine
#

show the graph and keep the menu runing and waiting for an input

#

if i input the graph op

#

the other options do other things

rugged root
zenith epoch
gentle flint
molten pewter
#

<p style="color: blue">

rugged root
#

And while you guys are doing all that, I'm going to be hanging out with this guy:

lusty ravine
rugged root
#

Glory to Pony

#

PonyORM in this case

#

Because fuck trying to deal with SQLAlchemy

#

Or however you spell it

sweet lodge
#

What's wrong with SQLAlchemy?

gentle flint
#

squelchemy

sturdy panther
#

Virtually IMpossible.

gentle flint
tropic gull
gentle flint
rugged root
molten pewter
#

Ailuropoda melanoleuc

gentle flint
#

פר‎סטר

woeful salmon
#

grour or 7U079?

molten pewter
#

Ailuropoda is the only extant genus in the ursid (bear) subfamily Ailuropodinae. It contains one living and three fossil species of panda.Only one species—Ailuropoda melanoleuca—currently exists; the other three species are prehistoric chronospecies. Despite its taxonomic classification as a carnivoran, the giant panda has a diet that is primari...

molten pewter
molten pewter
gentle flint
#

Vipera berus, the common European adder or common European viper, is a venomous snake that is extremely widespread and can be found throughout most of Western Europe and as far as East Asia.Known by a host of common names including common adder and common viper, adders have been the subject of much folklore in Britain and other European countrie...

rugged root
#

.pypi pony

#

!pypi pony

wise cargoBOT
gentle flint
#

you can only choose a binary title for this form

#

and it's from the council, too

#

hey

#

frederik

#

come join

terse needle
#

@gentle flint (Color){0, 244, 255, 0}

swift valley
#

Howdy.

#

I'm learning OCaml, yay?

rugged root
#

Ooooo

#

How is that?

#

That's on my list

swift valley
#

You've done Reason/ReScript right?

rugged root
#

Yeah

swift valley
#

Kind of the same experience minus the JS-specific syntax, although tooling is a bit finnicky

#

LSP support is pretty great so VS Code should be just fine

rugged root
#

Better or worse thus far compared to Reason?

swift valley
#

Reason kind of irks me how it reinstalls the OCaml toolchain, I know it's cached but do I really have to?

sinful tapir
haughty pier
sinful tapir
haughty pier
#

at the very bottom, last lines of your code, have this:

#
if __name__ == '__main__':
    main()
regal rapids
#

I did worst mistake that a beginner could ,I tried python for competitive coding 🥲

#

are you laughing after reading this

regal rapids
runic forum
regal rapids
runic forum
regal rapids
runic forum
#

good nights then

molten pewter
#

[report_List[0]]

#

report_List[0]

whole bear
#

report_List[0][0]

#

report_List[0][0:2]

nova warren
#

403
Traceback (most recent call last):
File "vt.py", line 27, in <module>
jdata = response.json()
File "/usr/lib/python3/dist-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3/dist-packages/simplejson/init.py", line 518, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

#

It keeps giving this back

#

idk how to resolve it

#

here's the script

#

#!/bin/python3

import requests
import os
import hashlib
import pefile
import json

file = "/home/dtm/Desktop/malware-samples_password-is-infected/Darkshell/malware.exe"
pe = pefile.PE(file)
raw_data = pe.data
md5_obj = hashlib.md5()
md5_obj.update(raw_data)
md5_hash = md5_obj.hexdigest()
#print(f"{file} has an md5 hash of:{m5_hash}")

api_key = " 567cca3460e7d0a59152787cac5c78ae70ea8cc14d6ee33f424e77efe0732a05"

params = {"api_key":api_key,"resource":md5_hash,"allinfo":True}
headers = {"Accept-Encoding":"gzip, deflate","User-Agent":"vt.py "}

response = requests.get("https://www.virustotal.com/vtapi/v2/file/report",params=params,headers=headers)
print(response.status_code)

jdata = response.json()

molten pewter
molten pewter
#

हिन्दुई

stable axle
#

美術館

#

嵩冴

molten pewter
#

#

#

stable axle
#

#

竹 =bamboo

molten pewter
#

🌞 = 日

stable axle
#

you teach her about radicals?

molten pewter
#

#

🌙 -> 月

stable axle
#

水中火

#

#

#

#

#

#

#

#

#

雷ですよ

#

私の雷は大きですね

scenic wind
somber heath
#

!voice

wise cargoBOT
#

Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

somber heath
#

numpy

zealous wave
#

@somber heath when you have a moment please come down to #751591688538947646, I need to test some mic settings

zealous wave
#

ahh all good

#

just ping me when you're free if you dont mind

#

nvm opal, I got it

fading mason
#

hi

quiet spear
#

Hi

wind raptor
#

brb I hear you

rugged root
#

!ot @night chasm

wise cargoBOT
rugged root
molten pewter
wind raptor
#

Assédic

rugged root
#

@velvet meadow

somber heath
#

We The People...
Rrruf grrrff rruff wuff awoowoo...

#

"Dog constitutional."

whole bear
#

what's up guyszzzzzz....

rugged root
#

Yooooo

whole bear
#

how's the Christmas 🎉 are going on

somber heath
#

Yeah, we're not exactly doing that.

#

I mean, we household.

primal yacht
#

Hmm ... why am I thinking of Cadalac (didn't learn how to spell it) or whatever that "rich middle class" car is

whole bear
#

nice choice tho,

primal yacht
rugged root
#

We can still talk to him in here regardless

whole bear
somber heath
#

*knock knock!* "Die-a-gram!"
"Huh?"
"*Ack!*" *thunk*

primal yacht
#

so you can't listen either I guess?

rugged root
#

I have.... so many questions but none of them are appropriate to ask

whole bear
#

i can but certainly i am listening to something else

rugged root
#

Yeeeep

primal yacht
#

32 deg F = 0 deg C

whole bear
#

i will bein after sometime possibly . i am taking a workshop right now

primal yacht
#

IIRC, Kelvin is Celsius but shifted where 0 K is a higher C

#

Is it an old computer @rugged root ?

stuck sky
#

can i get the streaming perms

rugged root
#

For....

stuck sky
#

i as always

rugged root
#

Also brb

stuck sky
#

have an error

rugged root
#

Possibly after I get back, have to do an IT thing at work

stuck sky
#

we have more mods ig

#

i have only 15 to 20 mins bruh!

#

why stuff breaks at bad moment

#

any django guy

primal yacht
#

Hemlock is the only mod which I know frequents VC the most

wind raptor
stuck sky
#

till rn nah

wind raptor
#

usually pretty good for getting a solid reply if you paste the relevant code and the error message

primal yacht
#

I'm not speaking as people are asleep irl in this house

#

06:48 / 6:48 AM .... over an hour till 8 AM so .... ugh ...

rugged root
#

!stream 446207619837984777

wise cargoBOT
#

✅ @stuck sky can now stream until <t:1639061728:f>.

primal yacht
#

windows classic theme go brrrrrr

#

dwm is still there

#

I see that and be like "uhhhhhh"

tropic gull
#

how do i automatically restart a python script when it gets an error

#

i am running it on pythonanywhere

#

on bash console

#

i think

wind raptor
#

I've seen this used to restart a script from within itself
os.execv(sys.argv[0], sys.argv)

tropic gull
#

they have an option like this but its paid premium stuff

#

i got this from google search

#

but i cant understand how it will work

#

its a personal code so i can get into bad practices

#

how bad is it

#

i know what type of error i get, its an error from api i am using

#

i think its for repeated requests

wind raptor
#

do you have a limiter in place so you aren't making too many requests at once?

#

you can use a queue

tropic gull
#

i am not crossing the limits as stated by api documentation

wind raptor
#

you can use a while loop and try/except/else to try until a success

#
while True:
    try:
        #code with possible error
    except:
        continue
    else:
        #the rest of the code
        break
#

maybe throw a tiny sleep in there

balmy wraith
#

i use micro for programming in python

rugged root
#

Micro?

balmy wraith
#

w3schools?

rugged root
#

Yeah

balmy wraith
#

micro is a terminal text editor

rugged root
#

Slightly bigger than nano?

balmy wraith
balmy wraith
#

i'm working on a text adventure game written in python

rugged root
#

Those are fun

tropic gull
#
def latestprice(symbol): 
        while True:
            try:
                raw = client.send("ticker", {"symbol": symbol})
                raw_data = raw[1]
                print("The current price is", (raw_data['lastPrice']))
                return raw_data['lastPrice'] 
            except:
                continue
tropic gull
wind raptor
#
else:
    break
#

you need that

whole bear
#

boring period starts my internet is going to die

tropic gull
wind raptor
#

breaks out of the infinite loop

#

after a success

balmy wraith
#
print("Escape from The Ship!")
input("Enter a passcode to go back to a part of the game or type 's' to start a new game")

if input == "s":
``` here's what i've done so far
whole bear
rugged root
#

Nah nah, it was more of a joke

wind raptor
tropic gull
#

its showing grayish on "break", does it mean error, i am using vs code

balmy wraith
#

i tired vim once

wind raptor
#

if means it never will get called

#

lol

balmy wraith
#

i haven't tried emacs yet

rugged root
#

It's saying that'd never be rea- damn it chris

#

Friggin' ninja

balmy wraith
#

they have their own language emacs lisp

wind raptor
#

🤦‍♂️

sturdy panther
#

Best Vim cheatcode: !emacs<CR>

rugged root
#

Well played

wind raptor
rugged root
#

!stream 128363483828977664

wise cargoBOT
#

✅ @woeful salmon can now stream until <t:1639063772:f>.

wind raptor
rugged root
#

@crystal fox

tropic gull
#
def latestprice(symbol): 
        while True:
            try:
                raw = client.send("ticker", {"symbol": symbol})
                raw_data = raw[1]
                print("The current price is", (raw_data['lastPrice']))
                return raw_data['lastPrice'] 
            except:
                print("it showed an error, the script is sleeping for 1 min")
                time.sleep(60)
                print("script restarted")
                continue
wind raptor
#

1 minute may be a little much if you needed it to excecute quickly

#

i was thinking like, 0.25 of a second

#

sleep is also blocking

#

so you probably don't want it non-functional for 60 seconds

tropic gull
sweet lodge
wind raptor
#

your program cannot do anything while it's sleeping

#

it should be fine to just have a 0.25 sleep in there

#

4 per second shouldn't rate limit you but I don't know your api

sweet lodge
#

What's wrong with that?

#

That's the devops way

rugged root
#

I still hate bare excepts

crystal fox
sweet lodge
tropic gull
#

Traceback (most recent call last):
File "/home/ShinPie/wazirx-connector-python/ex.py", line 58, in <module>
price[price_check_round] = latestprice(coin_symbol)
File "/home/ShinPie/wazirx-connector-python/ex.py", line 20, in latestprice
print("The current price is", (raw_data['lastPrice']))
KeyError: 'lastPrice'

sweet lodge
tropic gull
#

i always get this error

somber heath
#

Bear excepts. If your code raises an exception, a bear breaks into your house and roars at you and eats all your food.

#

Then shits on the rug.

runic forum
#

So many people today

pallid hazel
#

noodle, you ever consider using discord folders.. just saw a glimpse of your channels.. just a suggestion

solemn fossil
#

Hi everyone

rugged root
#

Yo

sweet lodge
#
except e:
  ...  # FIXME: Handle this error
woeful salmon
#

today just ain't it since i'm still on advent day 5 part 2

#

gotta catch up

sweet lodge
#

What day is it on?

#

I forgot

solemn fossil
#

xD

tropic gull
#
def latestprice(symbol): 
        while True:
            try:
                raw = client.send("ticker", {"symbol": symbol})
                raw_data = raw[1]
                print("The current price is", (raw_data['lastPrice']))
                return raw_data['lastPrice'] 
            except KeyError:
                print("it showed an error, the script is sleeping for 1 min")
                time.sleep(60)
                print("script restarted")
                continue
            
tropic gull
sweet lodge
#

What?

woeful salmon
#

not

except Exception as e:

?

sweet lodge
#

Is perfect

sweet lodge
#

Exactly

#

Except all the things

rugged root
sweet lodge
#

Where do you people find those so quickly?

somber heath
#

Beware the bare exception bear.

sweet lodge
#

Copilot suggested the end of my comment

#

And then PyCharm corrected my grammar

#

Is this the future?

primal yacht
crystal fox
thick sedge
#

Uhm.. Is asus vivobook a good choice?

primal yacht
sweet lodge
rugged root
#

The ones I've encountered have cooling issues out the wazoo

sweet lodge
#

(What would you recommend then?)

thick sedge
balmy wraith
#

dell idk

rugged root
#

Dell is fine

#

I'd avoid the big like "gaming names", since you're pretty much paying for the brand

#

Alienware and the like

#

Unless you want that power specifically

balmy wraith
#

i have a lenovo ideapad running kde neon

thick sedge
#

In hp which do you suggest

rugged root
#

What kind of specs are you looking for/ what are you going to be using it for?

balmy wraith
#

lenovo is good for linux

thick sedge
#

I'm not gonna game

sweet lodge
#

Unity supports Linux?

frosty star
#

Haaay~

balmy wraith
#

you could turn a rpi 4b into a laptop

#

but that runs arm

rugged root
woeful salmon
#

Linux doesn't really look like anything
the desktop environments are what define how your os looks which you can easily switch out

rugged root
thick sedge
sturdy panther
#

4GB here. Discord freezes every time I run tox -r...

balmy wraith
#

my lenovo ideapad runs a intel cpu with integrated graphics with 4gb ram 😦

#

ubuntu has support for touchscreen

#

and a 54gb storage

sweet lodge
#

I'd like to take a moment to shill for remote development
GitHub Codespaces, https://vscode.dev , Cloud9, GitPod, etc

#

That's the one I forgot

#

Windows 64 bit wants at least 8

Both Windows 10 and Windows 7 have minimum RAM requirements, namely, 1GB for the 32-bit versions and 2GB for the 64-bit versions.

balmy wraith
#

my laptop is from 2020 ad has 4gb ram

rugged root
#

Oh didn't realize that, shen

thick sedge
#

4gb really hard for multi tasking

rugged root
#

For sure

thick sedge
#

I have a hp 4gb rn

rugged root
#

However you do want to keep in mind that even if you get a lower gig machine, you'll likely be able to upgrade it

sweet lodge
rugged root
#

The only things you can upgrade are going to be storage and memory, but that can help you decide on a potentially cheaper machine that you know you can upgrade or will be upgrading

#

Like getting one with an HDD and pricing to see if it's cheaper to get that one and swapping it with an SSD or just buying one that comes with an SSD

#

If that makes sense

thick sedge
rugged root
#

ABP

#

Always Be Pricing

#

BUT, I will say sometimes it's better to just get a solidly made pre-built

#

Like what I did with the HP I got

#

I knew I could trust it (been using HPs for work for years), and the price and specs were reasonable

#

Plus I've always wanted to try those 2 in 1 laptop/tablet jobbers

sturdy panther
#

There might be some issues with warranty though, if you open up the machine.

rugged root
#

Fair point

#

Although I feel like they are fairly lax about it when it comes to memory and storage, it is recommended to double check the warranty conditions

sweet lodge
rugged root
#

Hadn't heard of Lynx

#

Well other than the Atari Lynx

sweet lodge
#

Mispelled it

rugged root
#

(rest its soul)

thick sedge
#

Uhm what do you think of ryzen. I heard it's cheaper and not so behind from intel.

rugged root
#

They're perfectly fine

thick sedge
#

Thanks then. Really appreciate your helps lemon_blush

sweet lodge
#

Wow, if I had a nickel for every time I [...], I'd have two nickels - which isn't a lot, but it's weird that it happened twice. - Dr. Heinz Doofenshmirtz

thick sedge
#

HP 14 FQ 1030ca*
AMD RYZEN 5 5500U
8GB RAM 512GB SSD
14.0'' FHD DISPLAY
FINGER PRINT WIN10

sturdy panther
#

That time of the year to avoid supermarkets where Christmas music is non-stop...

sweet lodge
#

Can you remove the GPO?
Or if you disabled the internet, do you have to fix per computer manually?

thick sedge
#

Cool I'll go with thisthen

somber heath
#

It's an honorary Christmas movie. Absolutely part of the club, but not designed to be.

primal yacht
crystal fox
frosty star
#

👾

crystal fox
sturdy panther
#

What does 🚀 mean as an emoji response to a GitHub issue post?

#

Ah, okay. "Yay, progress!" I guess.

ocean raptor
sturdy panther
#

Don't let your manager know! Or you might automate your own job away!!

#

Ah. Amazing bus factor.

stuck furnace
#

Yeah same.

#

One of the early ones was the LOGO turtle.

rugged root
#

That was my first exposure to it all

stuck furnace
#

Yeah I think we did like one lesson with this then never saw it again 😄

#

Also this program where you control traffic lights with flow control diagrams.

#

Ah right.

#

Wish computer science was an option when I was at school lemon_pensive

#

Yeap, pretty much 😑

plucky mural
stuck furnace
#

I used to use steel pan practice to get out of classes 😄

plucky mural
#

i just installed Python and an IDE

#

i got holidays

sweet lodge
#

👋

plucky mural
#

gonna work on python

stuck furnace
plucky mural
#

oop-

sweet lodge
#

Nice to be bac -
Crap

#

Goodbye again

plucky mural
sweet lodge
#

What's the nice way to say "Please make sure you tell me why you need help when asking for help"?

rugged root
#

"What seems to be the problem?"

#

Or if all else fails, "The fuck do you want"

stuck furnace
# plucky mural having problem

Ah yeah, on the drop down menu where it says <No interpreter> you need to select an installed version of python. If there aren't any options, then I believe you may need to add Python to your Windows path variable?

sturdy panther
#

Like, checking for XY problem?

woeful salmon
plucky mural
#

oh yeah]

plucky mural
#

i think thats why the interpreter wasn't detected

#

it detected the older one

#

which i deleted

woeful salmon
#

oh then probably just restart it

sweet lodge
rugged root
#

"I can in a moment, what's going on?"

sweet lodge
#

And then, when people do try to explain the issue:

maiden void
#

the reminder expects you to travel through time to get to the meeting

sweet lodge
#

He always has a picture of something or other

plucky mural
#

i feel bad for that person tho

#

like they're trying 😂

sweet lodge
#

Basically

crystal fox
sweet lodge
#

🤣

maiden void
#

I only now got to know about disc golf

sweet lodge
#

He sent me his wife's contact card, which included his picture for her

#

Do I need to remove that?

#

He took the picture
And saved it to his contact for her
And then sent it to me

rugged root
crystal fox
maiden void
#

interesting

sweet lodge
rugged root
#

"As in it's your wife's butt"

maiden void
sweet lodge
#

Probably

crystal fox
#

Raw reactions + FollowFlight® of what is being called the greatest shot in disc golf history thrown by James Conrad at the 2021 PDGA Pro Disc Golf World Championships. For licensing inquiries contact discgolf@jomezpro.com ©2021 Jomez Productions, LLC.

Card: James Conrad, Kevin Jones, Calvin Heimburg, Paul McBeth
Tournament: 2021 PDGA Disc Golf...

▶ Play video
sweet lodge
sweet lodge
#

Do you need help?

plucky mural
#

can't locate the interpreter

runic forum
rugged root
#

@sour owl If you want to talk to us it's better to do it in here. Typically if we're in the voice chat, we'll be watching the paired voice chat text channel

#

That way no one gets left out of the conversation

sweet lodge
#

So, when you're editing a run configuration, you can only select from interpreters that you've already created

sweet lodge
#

In the bottom right corner, select the interpreter (it might say "<No interpreter>") and select "Interpreter settings..."

sour owl
#

Oh shit

sweet lodge
#

Oh, so you're still installing Python. 👍
You'll have to wait for it to finish

plucky mural
#

ok done

plucky mural
sweet lodge
#

Yes
After this installation finishes

plucky mural
#

i set it but it's showing this

#

is it an issue?

#

this is the location i choose

#

what should i uninstall? @sweet lodge

sweet lodge
# plucky mural what should i uninstall? <@!285152779465654272>

No
So....

That "Start Menu" folder contains a shortcut to Python executable that it places in the Start Menu, not the executable itself
You can ignore that entire folder

PyCharm has already detected the location of the Python executable and has already set it up for you. You can see that Base Interpreter has already been filled in with the correct location of the Python executable.

You need to decide where you want PyCharm to setup the interpreter, and specific that the in Location field.

Generally, people place the interpreter inside their project, inside a folder called venv
For example, my project, bradworks is located here C:\Users\BradleyReynolds\programming\projects\darbia\bradworks, and I wanted to use the generic "venv" name, so I will set my Location to C:\Users\BradleyReynolds\programming\projects\darbia\bradworks\venv\

woeful salmon
#

@crystal fox i found a match cya after it if you're still here

crystal fox
#

gl hf

rugged root
sweet lodge
#

I tested Twilio months and months ago, but we never ended up using them
I didn't know there was even billing information attached to the account

#

No problem, I'll just close the account

#

Can anyone help me understand this error message?

plucky mural
#

UR THE BEST :D

sweet lodge
#

I was born in 2000

#

I just drop the '20'

runic forum
#

For today’s episode of War Stories, Ars Technica sat down with Naughty Dog Co-founder Andy Gavin to talk about the hurdles in bringing the original Crash Bandicoot to gamers around the world. When Andy and his partner Jason Rubin made the decision to bring the action platforming genre into three dimensions, it required living up to their company...

▶ Play video
sweet lodge
#

I've never seen that before
It's getting cut off, can you copy and paste the entire error?

crystal fox
#

sorry i can't read that it's not monospace

plucky mural
#

IM JUST GONNA

#

POSSIBLY

#

REINSTALL PYCHARM AND PYTHON PROPERLY ONCE AGAIN

sweet lodge
rugged root
#

Chill with the all caps

sweet lodge
#

It's setup to run main.py

plucky mural
#

i saw it

plucky mural
#

i changed the name

#

i mean

#

i deleted it

#

;-;

#

fuck it

sweet lodge
#

Yeah
So, if you change the name of the file, you'll have to update the run configuration to let it know that it now needs to look for a different file

#

If you copy the "Absolute path", you should be able to just paste the entire thing into your run configuration

#

Copy as reference can do GitHub URLs now?

#

I love PyCharm

#

Oh, and FYI, you can right click in a file and select "run", and it'll setup a run configuration for you

#

@rugged root - random question - do you use PyCharm?

rugged root
#

I do, but haven't lately

#

What's up

sweet lodge
#

I was mostly just curious what you liked to use
I'm just curious about the perspective from people that don't spend all day working in their IDE

plucky mural
#

@sweet lodge

sweet lodge
#

👋

rugged root
crystal fox
plucky mural
#

@sweet lodge

sweet lodge
#

BRB, a vendor called

plucky mural
#

alright

crystal fox
#

also, could you guys maybe take this somewhere else? this is for voice chat not for your own support problems

#

since neither of you are in voice....

#

just sayin'

sweet lodge
sweet lodge
#

What's a help channel?

#

Sorry