#voice-chat-text-0

1 messages ยท Page 934 of 1

brave steppe
#

Have you reloaded a few times? I am very confused why this is happening ๐Ÿ˜‚

frozen jetty
tranquil barn
#

I think Gi said to go for a round without them

#

Shall we start?

brave steppe
#

@frozen jetty are you able to come in or should we start?

#

@twin haven do you want to join?

twin haven
#

hello i'm new in Discord ๐Ÿ‘

raven ice
#

Indian guys are so funny

whole bear
#

wat bout girls?

#

ik i m funny hehe

frozen jetty
raven ice
whole bear
#

r.a.c.i.s.t

#

na jk

raven ice
#

no it's funny

whole bear
#

idk

raven ice
#

i like it realy

whole bear
#

ok

brave steppe
#

I'll be back in like 10 minutes ๐Ÿ˜…

tranquil barn
#

just a sec

whole bear
#

aight cya ๐Ÿ‘‹

woeful salmon
#

thinkmon tell me when everyone's done

#

i will make the next one

twin haven
#

how i can play clashGame

whole bear
clever leaf
#

hi

#

help me

#

how to

#

talk

woeful salmon
#

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

woeful salmon
#

you need to match the criteria to get voice verified

#

look in #voice-verification channel

clever leaf
#

annoyin

woeful salmon
#

its to avoid trolls

whole bear
#

i m back

#

u r front

#

others constitute right and left

woeful salmon
whole bear
#

do u wanna play tetris?

woeful salmon
#

its going to give a coding problem to either solve fastest or reverse engineer or solve in least characters

whole bear
#

or gp

twin haven
#

guys I will join but i dont have any idea what i can do there

whole bear
tranquil barn
#

@whole bear what did you miss?

#

should it have been ceiled instead of flooring?

#

ah okay

whole bear
tranquil barn
#

are we playing anything?

woeful salmon
whole bear
tranquil barn
#

i gotta go now

#

cya ๐Ÿ‘‹

whole bear
#

byee :>>

frozen jetty
#

block in days

#

rocket league

woeful salmon
woeful salmon
#

Ore Monogatari

gentle flint
#

2 hours later, I still have this tune in my head

whole bear
#

I have a question about if statements

#

Iโ€™m not getting my elif statements to displays

frozen jetty
woeful salmon
whole bear
#

@brave steppe if u want to join

woeful salmon
fluid igloo
#

im not verified

gentle flint
#

Docker is a set of platform as a service (PaaS) products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels. Because all of the containers s...

exotic frost
#

Hey

#

@solemn hornet

#

I can't speak jaja

somber heath
coarse cape
#

@strong arch I wanna learn too ๐Ÿ™‚

strong arch
granite terrace
#

I use GNOME

tall tree
#

hi

#

teach me java pls

warm portal
#

I am so very lost as to why my code doesnt work for this one question... @runic forum I cant talk in vc cuz I just joined the server but would you be willing to help me in a private call?

#

or over dms?

gentle flint
#

they know python

tall tree
#

ok

#

then teach me java

gentle flint
#

people here don't know java
they know python

#

What about this statement was unclear?

#

you're in the wrong place, dude

#

I don't know Java

#

Have you tried asking in a Java-related server?

#

(although I doubt anybody will be willing to teach you an entire language; they'll probably direct you to a course)

runic forum
woeful salmon
#

๐Ÿคทโ€โ™‚๏ธ and this is why if __name__ == "__main__": is needed anyway

somber heath
#

@surreal lichen ๐Ÿ‘‹

#

@surreal lichenI'm afraid that, if you're talking, I cannot hear you very well at all.

#

I am often here, yes.

#

I can.

#

I shall not at this time.

#

I'm being quiet. Like a mouse.

#

Squeak squeak.

#

It's night.

#

I'm not the only one in the house.

#

Sound travels where I am.

#

Very well.

#

Ta ta.

#

@broken aspen ๐Ÿ‘‹

#

I have my ears on.

#

@sonic fern๐Ÿ‘‹

broken aspen
#

talk @somber heath

somber heath
#

No. ๐Ÿ™‚

#

You are audible.

broken aspen
somber heath
#

See above.

broken aspen
somber heath
#

It is, as they say, the witching hour.

broken aspen
somber heath
#

Beep beep boop boop.

broken aspen
runic forum
#

.aoc

viscid lagoonBOT
#
Command Help

**```
.adventofcode

**Can also use:** `aoc`

*All of the Advent of Code commands.*

**Subcommands:**
**`about `**
*Learn about Advent of Code*
**`countdown `**
*Return time left until next day*
**`join `**
*Learn how to join the leaderboard (via DM)*
**`stats `**
*Get daily statistics for the Python Discord leaderboard*
**`subscribe `**
*Notifications for new days*
runic forum
#

.aoc help

viscid lagoonBOT
#
Command Help

**```
.adventofcode

**Can also use:** `aoc`

*All of the Advent of Code commands.*

**Subcommands:**
**`about `**
*Learn about Advent of Code*
**`countdown `**
*Return time left until next day*
**`join `**
*Learn how to join the leaderboard (via DM)*
**`stats `**
*Get daily statistics for the Python Discord leaderboard*
**`subscribe `**
*Notifications for new days*
runic forum
#

.aoc subscribe

viscid lagoonBOT
#

Hey, you already are receiving notifications about new Advent of Code tasks. If you don't want them any more, run .adventofcode unsubscribe instead.

runic forum
#

.help

somber heath
somber heath
#

@runic forum Audio bleed.

#

Lots of audio bleed.

#

Loooots of audio bleed.

#

@runic forum Please deal with it.

#

It would be appreciated.

#

Thanking you. ๐Ÿ™‚

#

@frozen jetty ๐Ÿ‘‹

#

Beg pardon?

frozen jetty
#

is it anything to talk about?

somber heath
#

Often.

#

I'm currently making some interesting interference pattern images.

#

It's a bit of a trick to get them so they don't cause discomfort.

#

Hoy Chris.

#

I think I have indigestion.

#

All is well.

frozen jetty
somber heath
#

(Which, by the way, is a dirty, dirty lie.)

somber heath
frozen jetty
somber heath
#

Have you seen sound represented as a wriggly line?

somber heath
#

Indeed.

#

@runic forum SCP video audio bleeding.

runic forum
#

SCP video

somber heath
#

Please deal with your audio bleeding issues. ๐Ÿ™‚

#

I would appreciate it.

#

So. Imagine the waveform above the line as positive and the waveform below the line as negative.

#

Left to right is time.

somber heath
#

Now imagine time radiating out from a point.

#

In 2D space.

#

As you get further away from the originating point, the value of a given position goes up and down, positive and negative

#

In a wave.

#

Like ripples in a pond

#

Now imagine another originating point and the ripples travelling outward from that point

#

Now imagine what happens when those ripples meet

#

That's interference.

#

Waves that meet where you have waves cancelling out or reducing of the absolute value at that point is destructive wave interaction.

#

Waves that result in a greater absolute value at that point are called constructive.

#

The values of each ripple at that point get added together

#

So yeah. Basically, I'm playing in a pond made of numbers.

#

Making ripples.

frosty star
#

Good evening ~

#

Haaay

somber heath
#

Automata?

frozen jetty
frozen jetty
somber heath
#

There's a bunch of sciency stuff and simulation and signals processing where it comes into usefulness.

somber heath
#

I've heard of patchouli, never smelled it to my knowledge, but what I'm making right now makes me want to get to know it better.

#

@dense ibex CHIKKAN SOOP!

dense ibex
#

Ooooo

#

Yes

somber heath
#

It's a painkiller that metabolises down into an opioid, I think.

dense ibex
#

!e

for i in range(20):
  print(5 * (i ^ 2) + (50 * i) + 100)
wise cargoBOT
#

@dense ibex :white_check_mark: Your eval job has completed with return code 0.

001 | 110
002 | 165
003 | 200
004 | 255
005 | 330
006 | 385
007 | 420
008 | 475
009 | 550
010 | 605
011 | 640
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/ufecipeyay.txt?noredirect

runic forum
#

mic issues

#

im trying to talk

rugged root
#

Bull shit

runic forum
#

no really

rugged root
#

This has been every single time you've ever tried to use your mic

#

I'm sick of it

runic forum
#

?

#

then ill stay deafen

frosty star
#

haaay~

rugged root
#

!voiceban 308646743602364419 Once again, you are unable to control the sounds from your mic. Once again, you seem to keep broadcasting a video. Once again, you continue to deny that you can figure it out. I will not have this disruption continue in voice chat.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied voice ban to @runic forum permanently.

somber heath
#

Get up, get up and get down?

#

Whatever it was.

dense ibex
rugged root
#

Huh

#

That's actually pretty nice

woeful salmon
#

func.__module__ for just the module name you can do too @faint ermine

#

func.__globals__['__file__']

wise cargoBOT
#

docs/source/conf.py line 362

if isinstance(val, (types.ModuleType, types.MethodType, types.FunctionType, types.TracebackType, types.FrameType, types.CodeType) + six.class_types):```
sweet lodge
#

I shamelessly stole this from pwntools
Inside the if, it uses inspect.getsourcelines(val)

somber heath
#

Shots fired.

sweet lodge
#

Coffee?

rugged root
#
command = input("What are you doing next? ")
match command.split():
    case ["quit"]:
        print("Goodbye!")
        quit_game()
    case ["look"]:
        current_room.describe()
    case ["get", obj]:
        character.get(obj, current_room)
    case ["drop", *objects]:
        for obj in objects:
            character.drop(obj, current_room)
    case ["go", direction] if direction in current_room.exits:
        current_room = current_room.neighbor(direction)
    case ["go", _]:
        print("Sorry, you can't go that way")
    case _:
        print(f"Sorry, I couldn't understand {command!r}")
#

Back soon, picking up a laptop for a co-worker

west lion
#

raceback (most recent call last):
File "C:\Users\Retrosoft\Desktop\gesture_cursor_control-master\red_detect.py", line 32, in <module>
_, contours, heirarchy = cv2.findContours(thresh1.copy(), cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
ValueError: not enough values to unpack (expected 3, got 2)
[ WARN:0] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (438) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback

faint ermine
#

the comma here has nothing in front of it -> , contours, heirarchy = cv2.findContours(thresh1.copy(), cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)

west lion
#

_, contours, heirarchy = cv2.findContours(thresh1.copy(), cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)

#

_

somber heath
#

!e py a, b, c = 1, 2

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 | ValueError: not enough values to unpack (expected 3, got 2)
somber heath
#

!e py a, b = 1, 2 print(a, b)

wise cargoBOT
#

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

1 2
sweet lodge
somber heath
#

The breaking changes fairy has been a-visiting.

west lion
#

x , y = 1 2

#

x , y = 1 , 2

#

x = 1

#

y = 2

somber heath
#

!e py x, y = 1 2

wise cargoBOT
#

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

001 |   File "<string>", line 1
002 |     x, y = 1 2
003 |            ^^^
004 | SyntaxError: invalid syntax. Perhaps you forgot a comma?
west lion
#

File "C:\Users\Retrosoft\Desktop\gesture_cursor_control-master\red_detect.py", line 43, in <module>
if radius >5:
NameError: name 'radius' is not defined
[ WARN:0] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (438) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback

woeful salmon
#

!e

first, *remaining = (1, 2, 3, 4, 5)
print(first)
print(remaining)
wise cargoBOT
#

@woeful salmon :white_check_mark: Your eval job has completed with return code 0.

001 | 1
002 | [2, 3, 4, 5]
west lion
#

x , radius = 1 , 2

#
# -*- coding: utf-8 -*-
"""
Created on Sun Feb 10 20:08:29 2019

@author: ajain
"""
import cv2
import numpy as np

cap = cv2.VideoCapture(0)

lower_red = np.array([170,75,190])
upper_red = np.array([180,255, 255])
'''
lower_green= np.array([45,60,100])
upper_green= np.array([75,255, 255])   ''' 
points = []
ret , frame = cap.read()
Height, Width =frame.shape[:2]
frame_count = 0


while True:
    ret , frame = cap.read()
    
    hsv_img = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
    
    mask1 = cv2.inRange(hsv_img, lower_red, upper_red)
   
    r , thresh1 = cv2.threshold(mask1, 150, 255, 0)
    contours, heirarchy = cv2.findContours(thresh1.copy(), cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
    center = int(Height/2), int(Width/2)
    if len(contours) >0:
        
        c =max(contours, key =cv2.contourArea)
        (x,y) , radius = cv2.minEnclosingCircle(c)
        M = cv2.moments(c)
        try:
            center =(int(M["m10"]/M["m00"]), int(M["m01"]/M["m00"]))
        except:
            center = int(Height/2), int(Width/2)
    if radius >5:
        
        cv2.circle(frame, (int(x),int(y)), int(radius),(0,0,255),2)
        cv2.circle(frame, center, 5, (0,255,0), -1)
    
    points.append(center)
    
    res1 = cv2.bitwise_and(frame, frame, mask=mask1)
    cv2.drawContours(res1, contours, -1, (0,255,0),3)
    
    print(center[0],center[1])
      
      
    """ 
    mask2 = cv2.inRange(hsv_img, lower_green, upper_green)
    res2 = cv2.bitwise_and(frame, frame, mask=mask2)
    
    r , thresh2 = cv2.threshold(mask2, 200, 255, 0)
    _, contours, heirarchy = cv2.findContours(thresh2.copy(), cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
    """
   
 #   cv2.drawContours(res2, contours, -1, (0,255,0),3)
    cv2.imshow("original", frame)
   # cv2.imshow("mask1", mask1)
    #cv2.imshow("final1",res1)
   # cv2.imshow("mask2", mask2)
    #cv2.imshow("final2",res2)
    if cv2.waitKey(1) == 13:
        break;

cap.release()
cv2.destroyAllWindows()```
#
hi

woeful salmon
#

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

west lion
#

# -*- coding: utf-8 -*-
"""
Created on Sun Feb 10 20:08:29 2019

@author: ajain
"""
import cv2
import numpy as np

cap = cv2.VideoCapture(0)

lower_red = np.array([170,75,190])
upper_red = np.array([180,255, 255])
'''
lower_green= np.array([45,60,100])
upper_green= np.array([75,255, 255])   ''' 
points = []
ret , frame = cap.read()
Height, Width =frame.shape[:2]
frame_count = 0


while True:
    ret , frame = cap.read()
    
    hsv_img = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
    
    mask1 = cv2.inRange(hsv_img, lower_red, upper_red)
   
    r , thresh1 = cv2.threshold(mask1, 150, 255, 0)
    contours, heirarchy = cv2.findContours(thresh1.copy(), cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
    center = int(Height/2), int(Width/2)
    if len(contours) >0:
        
        c =max(contours, key =cv2.contourArea)
        (x,y) , radius = cv2.minEnclosingCircle(c)
        M = cv2.moments(c)
        try:
            center =(int(M["m10"]/M["m00"]), int(M["m01"]/M["m00"]))
        except:
            center = int(Height/2), int(Width/2)
    if radius >5:
        
        cv2.circle(frame, (int(x),int(y)), int(radius),(0,0,255),2)
        cv2.circle(frame, center, 5, (0,255,0), -1)
    
    points.append(center)
    
    res1 = cv2.bitwise_and(frame, frame, mask=mask1)
    cv2.drawContours(res1, contours, -1, (0,255,0),3)
    
    print(center[0],center[1])
      
      
    """ 
    mask2 = cv2.inRange(hsv_img, lower_green, upper_green)
    res2 = cv2.bitwise_and(frame, frame, mask=mask2)
    
    r , thresh2 = cv2.threshold(mask2, 200, 255, 0)
    _, contours, heirarchy = cv2.findContours(thresh2.copy(), cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
    """
   
 #   cv2.drawContours(res2, contours, -1, (0,255,0),3)
    cv2.imshow("original", frame)
   # cv2.imshow("mask1", mask1)
    #cv2.imshow("final1",res1)
   # cv2.imshow("mask2", mask2)
    #cv2.imshow("final2",res2)
    if cv2.waitKey(1) == 13:
        break;

cap.release()
cv2.destroyAllWindows()```
#

if len(contours) >0:

    c =max(contours, key =cv2.contourArea)
    (x,y) , radius = cv2.minEnclosingCircle(c)
    M = cv2.moments(c)
    try:
balmy pumice
#

Hola

vivid palm
#

hello

#

today i'm gonna try muting every category except for this one lol

dense ibex
vivid palm
#

each white dot is like GOTTA LOOK GOTTA LOOK

hexed vault
#

H E L P !!

sweet lodge
#

With?

somber heath
#

Burn, baby. Burn.

#

๐Ÿ•บ

wise cargoBOT
vivid palm
#

hayan from unholy blood

hexed vault
#

H E L P !!!!

rugged root
#

What's your question/issue?

vivid palm
#

@dense ibexit's just funny lol

hexed vault
#

i have this error where a file already exist

dense ibex
hexed vault
#

FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'C:/Users/USER/PycharmProjects/FaceRecog/venv/scan-face.py'

vivid palm
swift valley
#

Evening

#

lol

rugged root
#

Looking now, sorry bay

hexed vault
#

can anybody give me a hand?

rugged root
#

Is it giving you a line number with the error?

#

And or do you have the full traceback?

hexed vault
#

me?

#

i didnt quite hear you

rugged root
#

!traceback

wise cargoBOT
#

Please provide the full traceback for your exception in order to help us identify your issue.

A full traceback could look like:

Traceback (most recent call last):
    File "tiny", line 3, in
        do_something()
    File "tiny", line 2, in do_something
        a = 6 / b
ZeroDivisionError: division by zero

The best way to read your traceback is bottom to top.

โ€ข Identify the exception raised (in this case ZeroDivisionError)
โ€ข Make note of the line number (in this case 2), and navigate there in your program.
โ€ข Try to understand why the error occurred (in this case because b is 0).

To read more about exceptions and errors, please refer to the PyDis Wiki or the official Python tutorial.

hexed vault
#

Traceback (most recent call last):
File "C:/Users/USER/PycharmProjects/FaceRecog/venv/scan-face.py", line 13, in <module>
os.mkdir(path)

karmic glacier
#

might need to do exists=True

#

or something

hexed vault
#

C:\Python\Python379\python.exe C:/Users/USER/PycharmProjects/FaceRecog/venv/scan-face.py
Traceback (most recent call last):
File "C:/Users/USER/PycharmProjects/FaceRecog/venv/scan-face.py", line 13, in <module>
os.mkdir(path)
FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'C:/Users/USER/PycharmProjects/FaceRecog/venv/scan-face.py'

karmic glacier
hexed vault
#

yes

sweet lodge
#

No
Not in site-packages
Someone ducked up
I think he created his file there

karmic glacier
#

not quite sure if hes creating a file or a folder

hexed vault
#

ill try

karmic glacier
#

cause if ur creating a file then you might not want to use mkdir

somber heath
#

I have a chunk of pyrite.

honest pier
#

you fool

swift valley
#

A S M R

hexed vault
#

another error exist

#

C:\Python\Python379\python.exe C:/Users/USER/PycharmProjects/FaceRecog/venv/scan-face.py
C:\Python\Python379\python.exe: can't open file 'C:/Users/USER/PycharmProjects/FaceRecog/venv/scan-face.py': [Errno 2] No such file or directory

Process finished with exit code 2

#

scan-face

rugged root
#

python.exe C:/Users/USER/PycharmProjects/FaceRecog/scan-face.py

hexed vault
#

how do i do that ?

woeful salmon
#

!venv

wise cargoBOT
#

Virtual Environments

Virtual environments are isolated Python environments, which make it easier to keep your system clean and manage dependencies. By default, when activated, only libraries and scripts installed in the virtual environment are accessible, preventing cross-project dependency conflicts, and allowing easy isolation of requirements.

To create a new virtual environment, you can use the standard library venv module: python3 -m venv .venv (replace python3 with python or py on Windows)

Then, to activate the new virtual environment:

Windows (PowerShell): .venv\Scripts\Activate.ps1
or (Command Prompt): .venv\Scripts\activate.bat
MacOS / Linux (Bash): source .venv/bin/activate

Packages can then be installed to the virtual environment using pip, as normal.

For more information, take a read of the documentation. If you run code through your editor, check its documentation on how to make it use your virtual environment. For example, see the VSCode or PyCharm docs.

Tools such as poetry and pipenv can manage the creation of virtual environments as well as project dependencies, making packaging and installing your project easier.

Note: When using Windows PowerShell, you may need to change the execution policy first. This is only required once:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

sweet lodge
#

Windows Terminal is an "inbox" app now

hexed vault
#

other py.file works inside from the venv except for scan-face.py

#

im confused about deleting the venv

rugged root
#

No no no

#

Not deleting

#

Just removing it from that file path that you're trying to run

#

But you need to activate the venv in this case

hexed vault
#

here is a screenshot

sweet lodge
#

There's a policy for it

faint ermine
# hexed vault

for some reason it thinks scan-face is inside venv, when it is not.

hexed vault
#

yes

sweet lodge
hexed vault
#

Traceback (most recent call last):
File "C:/Users/USER/PycharmProjects/FaceRecog/scan-face.py", line 13, in <module>
os.mkdir(path)
FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'C:/Users/USER/PycharmProjects/FaceRecog/scan-face.py'

sweet lodge
hexed vault
#

its still the same

sweet lodge
#

Sorry - Mina's thing

#

He needs to edit PyCharm's Run Configuration

rugged root
#

Not yet.

faint ermine
hexed vault
#

i tried to edit config error still exist

faint ermine
#

@hexed vault can you send the content of scan-face.py in a paste link?

stuck furnace
#

That's how they make money Pub ๐Ÿ˜„

honest pier
#

๐Ÿ˜ฉ

rugged root
faint ermine
faint ermine
hexed vault
#

yes i forgot to edit the comment

woeful salmon
#

๐Ÿ‘€ i just use brave now for any browsing

#

have to still use chrome for development unfortunately (and firefox for the css tools)

woeful salmon
#

๐Ÿ‘€ i just use an extension to save my open tabs currently
and close em

#

0 ram usage

#

and 1 click to open them back up

amber raptor
#

I find Edge is much better at not consuming battery

#

Which is why I use it

hexed vault
#

i want to create a new folder file to store the images

#

can u repeat about using path??

faint ermine
#

!d pathlib

wise cargoBOT
#

New in version 3.4.

Source code: Lib/pathlib.py

This module offers classes representing filesystem paths with semantics appropriate for different operating systems. Path classes are divided between pure paths, which provide purely computational operations without I/O, and concrete paths, which inherit from pure paths but also provide I/O operations.

../_images/pathlib-inheritance.png If youโ€™ve never used this module before or just arenโ€™t sure which class is right for your task, Path is most likely what you need. It instantiates a concrete path for the platform the code is running on.

Pure paths are useful in some special cases; for example:

faint ermine
#
from pathlib import Path

images_path = Path("./images/").resolve()
print(images_path)
images_path.mkdir(exist_ok=True)
hexed vault
#

ill put this inside try;?

stuck furnace
#

Sorry, what was your question @warm fog?

#

Type it out here if you like.

#

It was you that asked the question right? ๐Ÿ‘€

#

Ah right.

#

No worries ๐Ÿ˜„

#

BFS?

rugged root
#

Big Fucking Steak

faint ermine
gentle flint
#

Breadth First Search

woeful salmon
#

best first search or breath first search i assume

gentle flint
#

oh

#

laundmo was faster

#

Breadth-first search (BFS) is an algorithm for searching a tree data structure for a node that satisfies a given property. It starts at the tree root and explores all nodes at the present depth prior to moving on to the nodes at the next depth level. Extra memory, usually a queue, is needed to keep track of the child nodes that were encountered ...

rugged root
#

Oh so it checks each step checking all of that level then moving to the next

hexed vault
#

line 65, in <module>
1,(0, 255, 0))
cv2.error: OpenCV(4.5.4-dev) ๐Ÿ‘Ž error: (-5:Bad argument) in function 'putText'

Overload resolution failed:

  • putText() missing required argument 'color' (pos 6)
  • putText() missing required argument 'color' (pos 6)
#

but another error occurs

gentle flint
stuck furnace
#

There are a few variants of BFS, and depending on what you're trying to do exactly, and what data you have to work with, the implementation will be slightly different.

rugged root
#

So let's say that it checks from Frankfurt

#

Then goes to Wurzburg to Numberg and if finds that is 320km

stuck furnace
#

But conventionally you use a FIFO queue.

amber raptor
rugged root
#

When it checks Frankfurt to Kassel to Munchen and it then sees Numberg, does it then see that the total is already larger so it doesn't bother checking further?

stuck furnace
#

So you have a queue of nodes which you still need to visit, and each time you visit a new node (by popping it off the start of the queue) you append that node's neighbours to the end of the queue.

amber raptor
#

Oh, nope, leetcode

stuck furnace
#

A* is kind of a generalisation of uniform cost search (Dijkstra).

amber raptor
#

Same

#

I learned CosmosDB and messaging systems so it was really useful

honest pier
#

async ๐Ÿคฉ

amber raptor
honest pier
#

i love async

faint ermine
#

i really want to look into anyio

#

at some point

#

i just dont have a reason to :/

stuck furnace
#

@warm fog So do you have a specific problem you're trying to solve with breadth first search, or are you just trying to get the general idea?

hexed vault
stuck furnace
#

It starts with breadth-first search.

warm fog
stuck furnace
#

Probabilistic programming languages are pretty cool.

#

You have a conference? ๐Ÿค”

rugged root
#

Love you, too, oof

faint ermine
woeful salmon
hexed vault
#

May I ask ??
what is this warning means?

#

[ WARN:1] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (438) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback

rugged root
hexed vault
#

[ WARN:1] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (438) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback

#

does this warning affects the code>?

rugged root
#

@calm cypress

hexed vault
#
     if n[0]!='.' ]+[0])[-1] + 1```  Can anyone explain this line ?? i really dont understand this sorry im just a noob
sweet lodge
#

What's all this?

granite terrace
#

hello

#

lmao

vivid palm
#

@dense ibexyou're really quiet btw

honest pier
sweet lodge
amber raptor
#

I listen to pop for coding and it needs to be upbeat and thatโ€™s slow pensive Taylor Swift. Do not want.

stuck furnace
#

Pumped up kicks

#

It is a good song ๐Ÿ˜„

fiery juniper
#

Not wronog

hexed vault
#

the code works now

#

i have this code, i want to train those images that i captured using this code

#
  File "C:\Users\USER\PycharmProjects\FaceRecog\train.py", line 9, in <module>
    image_dir.mkdir(exist_ok=True)
  File "C:\Python\Python379\lib\pathlib.py", line 1273, in mkdir
    self._accessor.mkdir(self, mode)
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'FaceRecog\\images'
#

unfortunately this error occured

keen lark
#

Malicious PyPl Packages Downloaded 40,000+ Times
https://www.infosecurity-magazine.com/news/malicious-pypl-packages-downloaded/

Researchers have discovered 11 new malicious open-source packages
using various advanced techniques to avoid detection on the popular
PyPl repository. Python's official third-party software repository is
home to over half a million developers, who typically use pre-built
open-source packages to accelerate time-to-market.

However, threat actors are increasingly infiltrating these upstream
sources for their own ends.
The JFrog Security research team yesterday revealed it had discovered
11 new malware packages with over 40,000 downloads from PyPl. Their
authors used a range of techniques to stay hidden and therefore
infect as many users as possible.

These included using the Fastly CDN to disguise traffic sent to their
command and control (C2) server as a legitimate communication with
pypi.org.

Another technique was to use the TrevorC2 framework to make
client-server communications look similar to regular website
browsing. According to JFrog, the client sends requests at random
intervals and hides the malicious payload into normal-looking HTTP
GET requests.

Infosecurity Magazine

Threat actors go to unusual lengths to stay hidden on the repository

sweet lodge
#

Not anymore

#

They're more randomized now

dense ibex
#

oh ok got it

sweet lodge
#

It specifically means two

#

But some people use it to mean like "less than five"

#

I hate it

hexed vault
#

14 can drive if you apply for a SoK application

rugged root
#
couple = 2
few = 3 to 5
some = 5 to 7
many = 7 to 14ish
#

At least in my brain

hexed vault
#

you can drive at 14 if you apply for SoK

rugged root
hexed vault
#

Sokkkkkkkkkkkkkkkkkkkkkkkkk deeeeeeeeeeeeeeeeeez nuuuuuuuuuuuutz

#

you mean batter??

stuck furnace
#

Hello

hexed vault
#

@flat sentinel you mean batter?

sweet lodge
#

Brainfuck?

#

VBA?

stuck furnace
#

@woeful salmon, your username looks like this to me. Am I missing fonts I need to install?

#

Yep

brave steppe
stuck furnace
#

Alright, stack exchange is saying I should install 'fonts-noto'

#

ยฏ_(ใƒ„)_/ยฏ

#

Ah noo

silent cedar
#

Hey guys

hexed vault
#

i heard theres a new language called 'JeGill'

silent cedar
#

I cant join voice chat

stuck furnace
#

Oh sorry

silent cedar
#

But can anyone solve this calculus question

stuck furnace
#

You just mean you can't join right now.

silent cedar
brave steppe
silent cedar
#

Ok

hexed vault
#

is it true that theres a new language called "JiGill"

silent cedar
#

I just wanted to know if anybody here good in calculus

rugged root
#

!stream 900103657373196299

wise cargoBOT
#

โœ… @whole bear can now stream until <t:1637603346:f>.

stuck furnace
#

Oh my god I was thinking the exact same thing @brave steppe

brave steppe
#

lol hemlock

stuck furnace
woeful salmon
#

i just found a really fun little tool and stopped all work and vc to play with it

#

lol

brave steppe
#

Codestyle preference? ```python
async def handle_error(self, *args, raised: Exception):
for error, handler in self.error_handlers:
if not isinstance(raised, error):
continue

        try:
            await handler(*args, raised)
        except Exception:
            continue
        else:
            break
    else:
        raise raised
-- VS --
```python
    async def handle_error(self, *args, raised: Exception):
        for error, handler in self.error_handlers:
            if not isinstance(raised, error):
                continue

            try:
                await handler(*args, raised)
                break
            except Exception:
                continue
        else:
            raise raised
stuck furnace
#

You could even do just: ```py
...
except Exception:
continue
break

brave steppe
#

Yeah true, I think the latter looks somewhat ugly. But it gets weird with the else/else visually ๐Ÿ˜…..

I'm gonna add some comments and see how looks

brave steppe
stuck furnace
#

More of an aesthetic choice than anything.

woeful salmon
#

not really the lesser code you have in try the lesser the chance of you causing a unexpected exception to be caught although in this case its just a break so i guess it doesn't matter

stuck furnace
#

Yeah same. Almost to a neurotic degree ๐Ÿ˜„

woeful salmon
#

thinkmon i like react but i hate create-react-app

stuck furnace
#

Like I even tab-align default arguments and dictionary values, if I can get away with it ๐Ÿ‘€

woeful salmon
#

its slow af
it uses .js as the extension

#

and react-scripts don't update often

stuck furnace
#
def foo(
    first_arg:  int         = 1,
    second_arg: str         = 'hello',
    third_arg:  str | None  = None,
) -> None:
    ...
brave steppe
stuck furnace
#

Although that example is kind of ugly actually ๐Ÿ˜„

#

The class is like a blueprint for an object.

woeful salmon
#

@whole bear also you need to look into semantic html in the future

#

where you don't make a div soup and use tags like header and nav

stuck furnace
#

That's probably not too bad Rapture.

#

If they've done programming outside of school.

#

I mean when I was in high school, CS wasn't even available as a subject at GCSE or A-level.

#

Yeah I am ๐Ÿ˜„

#

It was only added to the curriculum a few years ago.

#

Well, secondary school, whatever ๐Ÿ˜„

#

Wow, just make me feel old then...

#

Maybe it just wasn't available at my school ๐Ÿค”

#

I wonder if I would even pass a GCSE CS exam.

#

Sorry

#

๐Ÿ‘‹

gray tapir
#

Guys! I want work on opensource projects using python. How can I find appropriate project corresponding to my level and how to begin the journey?

#

Any guideline?

stuck furnace
#

Have you learned about classes etc. ?

gray tapir
stuck furnace
#

That might be a good way dip your toes in open-source development.

#

@viscid lagoon is more beginner-friendly.

gray tapir
stuck furnace
#

Example of a command contributed recently by one of our members:

#

.color

viscid lagoonBOT
#
Biscay

Color information for Color Biscay.

RGB

(27, 49, 98)

HSV

(221, 72, 38)

HSL

(221, 57, 25)

CMYK

(72, 50, 0, 62)

Hex

#1B3162

Name

Biscay

scenic wind
#
def scope_test():
    def do_local():
        spam = "local spam"

    def do_nonlocal():
        nonlocal spam
        spam = "nonlocal spam"

    def do_global():
        global spam
        spam = "global spam"

    spam = "test spam"
    do_local()
    print("After local assignment:", spam)
    do_nonlocal()
    print("After nonlocal assignment:", spam)
    do_global()
    print("After global assignment:", spam)

scope_test()
print("In global scope:", spam)
#
After local assignment: test spam       
After nonlocal assignment: nonlocal spam
After global assignment: nonlocal spam  
In global scope: global spam
brave steppe
#
def printer(text):
    def inner():  # Notice that it doesn't take args
        print(text)  # Has access to text above

    return inner  # Return the function we created

hello = printer("hello")

hello()  # Notice that we don't need to give arguments
gray tapir
#

'Sir lance bot 'why this name is there any particular reason?

#

Ohhh

scenic wind
#
def __init__(self, name, age):
    self.name = name
    self.age = age
def introduce(self):
    ...
p1 = Person("John", 36)

print(p1.name)
print(p1.age)
gray tapir
#

I learned in django while registering a model then if, I don't use def init. In the admin page we can't see the value of the model in the list. While using init function i can check the name..

rugged root
#
p1 = Person("John", 36)
scenic wind
#
class Person:
  def __init__(self, name, age):
    self.name = name
    self.age = age

print(Person("John", 36))
#
<__main__.Person object at 0x14fc8598a100>
#
class Person:
  def __init__(self, name, age):
    self.name = name
    self.age = age

p1 = Person("John", 36); print(p1.name, p1.age)
#
while True:
  ...
#
__=__import__("string");_=__.ascii_lowercase;k=input("Key:");print(''.join(map(lambda char:[char,_[(_.index(char.strip())+int(k))%len(_)]][char.isalpha()],input('Msg:').lower())))
rugged root
#

!e

class Person:
  def __init__(self, name, age):
    self.name = name
    self.age = age

  def __str__(self):
    return f"My name is {self.name} and I am {self.age} years old"

john = Person("John", 36)
print(john)
wise cargoBOT
#

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

My name is John and I am 36 years old
woeful salmon
#

!e

class Goblin:
    def __init__(self, health):
        self.health = health
    def __repr__(self):
        return f"{type(self).__name__}(health={self.health})"
    def damage(self, damage):
        self.health -= damage

goblins = [Goblin(100) for _ in range(3)]
goblins[0].damage(50)
print(goblins)
wise cargoBOT
#

@woeful salmon :white_check_mark: Your eval job has completed with return code 0.

[Goblin(health=50), Goblin(health=100), Goblin(health=100)]
gloomy vigil
#
def damage(self, damage, other):
  other.health -= damage
#

improved

scenic wind
#
class Person:
  def __init__(self, name, age):
    self.name = name
    self.age = age

  def myfunc(self):
    print("Hello my name is " + self.name)

p1 = Person("John", 36)
p1.myfunc()
woeful salmon
gloomy vigil
rugged root
#
class Child(Parent):
scenic wind
stuck furnace
#

@wintry prism background noise.

#

Turn on push-to-talk please.

#

Let us know once you see these messages and we'll un-mute you.

#

!tempvoiceban 528519445149122570 1h

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied voice ban to @wintry prism until <t:1637611728:f> (59 minutes and 58 seconds).

rugged root
#

@wintry prism We temp voice banned you because we requested that you mute while you had a bunch of background noise but refused to

#

When it expires, please make sure that you take better control of your microphone

woeful salmon
#

thinkmon i thought eivl is doing workshop -> clicked on locked channel -> somehow crashed

#

weird

rugged root
#

Yeah it's still locked

woeful salmon
#

๐Ÿ‘€ i don't get stickers
i'd much rather just put on like a clean dbrand skin or something

stuck furnace
#

@brave steppe do you ever use raise x from y?

brave steppe
heavy nacelle
#

@rugged root can I pick your mind on some discord bot implemention?

brave steppe
#

Since my error handling system has the user do raise to indicate that an error wasn't called that means that the handler gets appended to the traceback

#

This is a bit troublesome as the traceback gets ugly

heavy nacelle
brave steppe
#
Traceback (most recent call last):
  File "C:\Users\gabri\AppData\Local\Temp/ipykernel_15660/3444800012.py", line 13, in <module>
    c(e)
  File "C:\Users\gabri\AppData\Local\Temp/ipykernel_15660/3444800012.py", line 4, in do_nothing
    raise exc
  File "C:\Users\gabri\AppData\Local\Temp/ipykernel_15660/3444800012.py", line 13, in <module>
    c(e)
  File "C:\Users\gabri\AppData\Local\Temp/ipykernel_15660/3444800012.py", line 4, in do_nothing
    raise exc
  File "C:\Users\gabri\AppData\Local\Temp/ipykernel_15660/3444800012.py", line 13, in <module>
    c(e)
  File "C:\Users\gabri\AppData\Local\Temp/ipykernel_15660/3444800012.py", line 4, in do_nothing
    raise exc
  File "C:\Users\gabri\AppData\Local\Temp/ipykernel_15660/3444800012.py", line 13, in <module>
    c(e)
  File "C:\Users\gabri\AppData\Local\Temp/ipykernel_15660/3444800012.py", line 4, in do_nothing
    raise exc
  File "C:\Users\gabri\AppData\Local\Temp/ipykernel_15660/3444800012.py", line 13, in <module>
    c(e)
  File "C:\Users\gabri\AppData\Local\Temp/ipykernel_15660/3444800012.py", line 4, in do_nothing
    raise exc
  File "C:\Users\gabri\AppData\Local\Temp/ipykernel_15660/3444800012.py", line 9, in <module>
    raise RuntimeError('Aaahh...')
RuntimeError: Aaahh...
#

Like, this traceback should only be ```python
Traceback (most recent call last):
File "C:\Users\gabri\AppData\Local\Temp/ipykernel_15660/3444800012.py", line 9, in <module>
raise RuntimeError('Aaahh...')
RuntimeError: Aaahh...

#

I may have to scrap the way of raiseing errors. Could just have error handlers return them again maybe

stuck furnace
#

Oh right ๐Ÿค”

brave steppe
#

I would guess that tracebacks are immutable, so if I can store it somewhere that would actually help so much

heavy nacelle
#

Bot dev question: How do I catch if a component is not usable anymore after command is invoked?

#

So command create a form, and if bot restarts I want to catch when the form is unavailable

whole bear
#

man i am enjoying 144p in 5 FPS

rugged root
heavy nacelle
#

Okay, thanks m8

rugged root
#

They'll be more up to date on that stuff than I am

#

No worries

brave steppe
#

RIP my design document

stuck furnace
#

Starliner have had a lot of issues.

brave steppe
#

moostchu

#

Literal meaning of :3

wintry prism
alpine path
rugged root
brave steppe
brazen briar
#

is that inappropriate?

brave steppe
#

Note: feel free to move the GIF spam to DMs

hexed vault
#

any help from gods?

#
1
Traceback (most recent call last):
  File "C:\Users\USER\PycharmProjects\FaceRecog\faces.py", line 32, in <module>
    print(labels[id_])
KeyError: 1
[ WARN:1] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (438) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback

Process finished with exit code 1
#

this error is killing me

#

the second one is train .py

brave steppe
#

Gonna see the Discord Developer QA ๐Ÿ‘‹

vivid palm
brave steppe
#

There's an missing n there

#

They're answering questions :3

hexed vault
#

@brave steppe ur talking to me ?

brave steppe
#

No

hexed vault
#

any mods here?

gentle flint
#

lol

west lion
#

if in x == "hi":
print(hi)

hexed vault
#

you guys know the new programming language named "GeeGill"?

gentle flint
#

to check if a is in b
you check a in b

hexed vault
#

is GeeGill good?

gentle flint
#

!e

a = "goatsy"
b = "goat"
print(b in a)
wise cargoBOT
#

@gentle flint :white_check_mark: Your eval job has completed with return code 0.

True
west lion
#

==

rugged root
#

@west lion Please don't barge into voice chat and interrupt active conversations

gentle flint
#

it's fine

rugged root
#

If you want help from voice, type out your question.

gentle flint
#

the whole convo was about this eventually

rugged root
#

It wasn't originally

gentle flint
#

meh

rugged root
#

@west lion We clear?

west lion
#

ok man๐Ÿ‘

gentle flint
hexed vault
#

@rugged root may i ask permissions for streaming?

rugged root
#

I can't at the moment. We only grant stream permissions if there is a moderator already in the chat to grant it and at their discretion. And I'm about to do a delivery run for work, so I'm unavailable

hexed vault
#

okay thanks anyway

alpine wagon
#

howdy everybody

#

Hello. I hear you Jake

#

it just apears i cannot speak. I dont have permission for some reason

dense ibex
#

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

alpine wagon
#

Its a character from Dark souls 3, and thank you

#

So last time i was here, i didnt have this issue

#

it apears i prolly dont have at least 50 messages lol

#

yay, this is quite fun.......

#

sorry, im back

#

So what are you working on verboof?

gentle flint
#

an OSM-based map of รŽle-de-Brรฉhat

glossy granite
#

hello

#

whats this about if i may ask

gentle flint
#

hi

gentle flint
#

kinda general offtopic vc

glossy granite
#

i meant

#

the thing youre working on

gentle flint
#

oh

gentle flint
#

do you know openstreetmap

glossy granite
#

lol i dont actually

gentle flint
#

look it up

#

it's a map service

#

online

glossy granite
#

i only recently joined this though

#

im lost af

gentle flint
#

like google maps, but the data is free

#

and all contributed by volunteers

glossy granite
#

gotcha gotcha

gentle flint
#

so now I'm generating a map based on it

glossy granite
#

you guys from uk?

gentle flint
#

I'm Dutch

glossy granite
#

oo

#

nice

gentle flint
#

but of partially British descent

#

that's why I have a British accent

glossy granite
#

bogly

gentle flint
#

jake is from the USA

glossy granite
#

tough

#

jk ily jake

gentle flint
#

Alec is from Cymru

#

I think

glossy granite
#

o

#

brilliant

gentle flint
#

also known as Wales

glossy granite
#

yeah

#

just looked it up lmao

gentle flint
#

lol

#

I thought you might have

glossy granite
#

o lets go pikathink emote

gentle flint
glossy granite
#

no pepe emotes

#

๐Ÿ˜”

gentle flint
glossy granite
#

jesus

#

gotta finish some reports

#

been procrastinating for so long, now im only waiting to fall asleep

gentle flint
glossy granite
#

couldnt be me

#

๐ŸŒš

primal yacht
#

@glossy granite why are you not in VC?

glossy granite
#

because im tryna focus

gentle flint
#

oh

#

rip

glossy granite
#

but i cant

primal yacht
#

You obviously cannot focus on homework / school work if you focus on Discord.

gentle flint
#

multitasking is a myth

glossy granite
#

i only am focusing on multiple activities which do not inclue writing my lab reports

#

๐ŸŒš

gentle flint
#

๐Ÿ˜ฎ

primal yacht
#

No offense, but this sounds like someone who does not need me to notice their chats ...

gentle flint
#

@dense ibex
:angerysad:

tiny socket
primal yacht
#

... because I already had a rough day so far.

glossy granite
#

apologies

#

will not mention shit from now on

primal yacht
#

Just was not in the mood at this time, forgive me.

verbal hemlock
#

@gentle flint how long are you gonna have the vid perm

#

?

#

xd

glossy granite
#

dont have nitro

#

using pic instead

flat sentinel
#

@gentle flint

gentle flint
stuck furnace
#

๐Ÿ‘€

#

๐Ÿ‘‹

#

Oh right, what is that?

primal yacht
#

Join the Open Beta of Crossout, the post-apocalyptic MMO Action game! Craft your unique battle machines from dozens of interchangeable parts and destroy your enemies in explosive PvP online battles!Key Features:Unique vehicles, crafted by the players using a wide range of available parts: From nimble buggies to heavily tracked off-road vehicles ...

Recommendations

823

โ–ถ Play video
stuck furnace
#

What are you working on Oof?

#

Ah right

#

iterative

#

Not that that helps

#

it-er-a-tive

#

So you're converting open street map data to a pdf?

#

Erm, I think the stream has frozen

#

Alright, good luck ๐Ÿ‘‹

gentle flint
#

cya

whole bear
somber heath
#

That's a melon.

whole bear
#

10lb 11oz

somber heath
#

"I made dis"

gentle flint
#

Dura Vermeer

vast escarp
#

i cannot speak

#

why??

wise cargoBOT
#

Voice verification

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

woeful salmon
#

๐Ÿ‘‹

vast escarp
#

i have to sent atleast 50 messages๐Ÿ˜ฉ

#

to enable voice

woeful salmon
#

you need to goto #voice-verification and run a command then

#

to get verified

#

ah wait nvm

#

i thought you already have sent 50

somber heath
cobalt magnet
#

do anyone be knowing this person?

#

NOOOOOOO

somber heath
#

@buoyant flame๐Ÿ‘‹

#

Hey hi

#

Oh yes.

#

All by myyysellllf

#

๐ŸŽต

#

My day has been standard.

#

Ha. Yes.

#

Oncoming storm?

#

Hm.

#

Yeah, there are times when I have the "I must program" drive.

#

and it's brass monkeys

#

Such things come in handy.

#

Still dying?

#

Even if you are over the hump, there's still a recovery.

gentle flint
somber heath
#

@rugged root Laguna made babby.

#

A boy?

gentle flint
somber heath
#

I have a chairdrobe.

#

If washing your clothes is a pain in the arse, you may be doing it wrong.

gentle flint
somber heath
#

The clothes go in the washing machine.

gentle flint
#

or tub

#

with soap

#

washing mangle intensifies

somber heath
#

Who are you? Inside?

#

Who is the true you?

rugged root
#

Boring

somber heath
#

Oh yes!

#

I've heard of this

dense ibex
somber heath
#

Injuries aren't fun.

#

Sorry, a tennis ball?

somber heath
#

Just when you think it can't get worse.

gentle flint
somber heath
#

If they didn't rate, it didn't play?

#

Okay.

#

Scummy company does scummy thing to get ahead. News at 11.

#

Bu'uns?

#

Is your nose blocked?

#

Ironic, then, that the British are leading the charge.

#

Eliminating T/tea from the English language.

rugged root
#

That'll tell you want to know about our voice gate

crystal fox
somber heath
#

The one thing I know is that dethawing should take place well in advance.

#

...and that a giant bucket of boiling oil is fucking terrifying.

#

I really don't get what's wrong with pre-cut bits.

#

By far more managable.

#

!otn a Jake-ruined-Thanksgiving

#

Snatch is amazing.

#

The squeaker toy and the dog.

#

Amazing.

#

Koalas are smooth-brained idiots.

#

We care.

#

Personally, I'm glad you're not physically going in. I'm still in covid siege mode.

gentle flint
#

!otn a Jake-hates-classrooms

#

!otn a Jake's-GTAO-scam

rugged root
whole bear
#
from os import path
from tkinter import *
import tkinter
from tkinter.filedialog import askopenfilename, askopenfilenames, asksaveasfilename
import subprocess
import TKlighter
from tkinter import ttk
from sys import exit

window = Tk()
window.title("Cobalt - v0.01")

gpath = ''

def runMyCode():
    output.delete('1.0', END)
    global gpath

    if gpath == '':
        saveMsg = Toplevel()
        msg = Label(saveMsg, text='Must save the file first.')
        msg.pack()
        return
    command = f'python {gpath}'
    process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
    outputResult, error = process.communicate()
    output.insert('1.0', outputResult)
    output.insert('1.0', error)

def openFile():
    path = askopenfilename(filetypes=[('Python Files', '*.py')])
    with open(path, 'r') as file:
        code = file.read()
        textEditor.delete('1.0', END)
        textEditor.insert('1.0', code)
        global gpath
        gpath = path

def saveMyFileAs():
    global gpath
    if gpath == '':
        path = asksaveasfilename(filetypes=[('Python Files', '*.py')],defaultextension=".py")
        gpath = path
    else:
        path = gpath
    with open(path, 'w') as file:
        code = textEditor.get('1.0', END)
        file.write(code)

def light(event):
    
    TKlighter.def_h(textEditor, '#ff79c6')
    TKlighter.print_h(textEditor, '#50fa7b')

    TKlighter.custom_regex_h(textEditor, r'".*"', "#f1fa81")

def doubleQuots(event):
    textEditor.insert(tkinter.INSERT, '"')
    
    
def exitWindow():
    exit()

textEditor = Text(window, wrap="word", undo=True)
textEditor.config(bg="#282a36", fg="#c2ebf2", insertbackground="#dadde3")
textEditor.bind('<Key>', light)

textEditor.bind('"', doubleQuots)

textEditor.pack(expand=True, fill="both")

output = Text(height=7)
output.config(bg="#21222c", fg="#c2ebf2")
output.pack(expand=True, fill="both")

menuBar = Menu(window)

fileBar = Menu(menuBar, tearoff=0)
fileBar.add_command(label='Open File', command=openFile)
fileBar.add_command(label='Save', command=saveMyFileAs)
fileBar.add_command(label='Save As', command=saveMyFileAs)
fileBar.add_command(label='Exit', command=exitWindow)
menuBar.add_cascade(label='File', menu = fileBar)

runBar = Menu(menuBar, tearoff=0)
runBar.add_command(label='Run', command=runMyCode)
menuBar.add_cascade(label='Run', menu = runBar)

window.config(menu=menuBar)

window.mainloop()
gentle flint
whole bear
somber heath
#

You're interacting with us.

swift valley
#

Bit late but good evening

#

Vue is very nice

gentle flint
somber heath
#

Because nobody ever lies.

gentle flint
somber heath
#

@dense ibex ๐Ÿ’ข

dense ibex
#

lol

#

you wouldn't sell your kidney

#

honestly if someone really needed it though I wouldn't take the money

somber heath
#

๐Ÿ˜ง ๐Ÿ˜ง ๐Ÿ˜ง

#

Oh you wait.

#

"Organ piracy is a crime"

gentle flint
#

!otn a GPL-my-liver

somber heath
#

The black knight.

#

"Come and see the violence inherent in the system!"

gentle flint
#

@winter rose see the embed below

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
#

Sleepy Hollow is surprisingly funny.

#

Saw it with my D&D group when it first came out.

#

It's not really horror...I mean, it's got some awful stuff in it...but...it's not solidly in that category.

gentle flint
somber heath
#

I suppose it's very much Grimm's fairytales and dark and stuff sort of thing.

wise cargoBOT
#

Hey @whole bear!

It looks like you tried to attach file type(s) that we do not allow (.jfif). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a.

Feel free to ask in #community-meta if you think this is a mistake.

dense ibex
#

This is one of the best songs ever created ^^^

whole bear
#

Doing good, my work is holding thanksgiving. I'm about to pass out.

somber heath
#

sudo shutdown -t now

gentle flint
#

socweal mobwelwety

somber heath
#

heh

crystal fox
#

<erno> hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is.

somber heath
#

MIB headquarters?

crystal fox
gentle flint
wind cobalt
gentle flint
#

this is henry

crystal fox
sonic fern
#

fgh

wise cargoBOT
#

Voice verification

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

rugged root
#

@frosty star ๐Ÿ‘‹

frosty star
rugged root
#

How's it going

wind cobalt
#

I was about to ask that

frosty star
#

Staring at the ceiling

#

And the lights

wind cobalt
#

it's a moth

rugged root
#

Just having a slow day?

#

No grading to do?

wind cobalt
frosty star
#

I think it looks like boobs

frosty star
#

HaHaa

rugged root
#

What time is it there?

frosty star
#

1 am

#

Yes I am

#

Yea haha

#

I have to see it every night

#

Tutor

rugged root
#

We see what we want to see?

frosty star
#

R u tho

#

I thought ur a student

wind cobalt
#

a side-gig

frosty star
#

Ohh postgrad?

wind cobalt
#

undergrad

#

so "tutor"

frosty star
frosty star
wind cobalt
#

yeah

#

cannot say here la

frosty star
#

We might cross paths someday

wind cobalt
#

nanti kantoi

#

maybe

frosty star
#

Just pretend u dont know me

#

Its almost done

#

Actually

woeful salmon
#

๐Ÿ‘€ i've also tutored people and taught some friends for free
the hard part is keeping them interested without dropping too much info

gentle flint
frosty star
#

Marking is hard because you get paranoid about mis-marking or not being fair

wind cobalt
woeful salmon
#

you get too technical they get bored or confused
you explain too abstractly they can use it but they get stuck whenever something doesn't work the samme way

rugged root
#

True

#

Plus it's easy to get distracted while doing it

frosty star
#

Some times i tutor part time

#

I have another day job

frosty star
gentle flint
#

yeah

wind cobalt
#

does not compute

#

2nd law of thermodynamics

#

bruh

frosty star
#

Time travel woo

woeful salmon
#

๐Ÿ‘€ have you ever taught anyone css tho

wind cobalt
#

time travel gang

whole bear
#

@rugged root hey man how`s goin

wind cobalt
#

US Pistol Service

gentle flint
#

u shoot pistols seriously

wind cobalt
#

lol

rugged root
whole bear
frosty star
#

Ugh yeah so annoyin

#

@crystal fox ur accent kinda reminds me of Peaky Blinders

#

Ouh

#

Where bisk is from?

#

Interesting ๐Ÿค”

whole bear
#

if the person who asked is imaginary then.

who asked = imaginary

if the square root of -1 = imaginary

who asked = sqrt(-1)
also known as
who asked = i

the answer to Who asked ? is 

i asked.```
frosty star
#

Woโ€™uh

verbal hemlock
#

@gentle flint

#

good news

frosty star
#

dict() van dyke

gentle flint
wind cobalt
#

noice

#

impulse buying could have gotten me that mouse

frosty star
#

Imma go to bed. Itโ€™s been nice. Good night / have a nice day guys.

stuck furnace
#

Hemlock ๐Ÿ‘€

rustic mantle
#

I don't have permission to speak.

stuck furnace
#

We've taken a lot of the parts of thanksgiving from the US and wrapped them into christmas day.

#

Yeah, looks professional!

rugged root
#

!otn a accidental dutch

wise cargoBOT
#

:ok_hand: Added accidental-dutch to the names list.

stuck furnace
#

Why did I think you were a lecturer? ๐Ÿค”

#

Ohh right

#

Fair enough ๐Ÿ˜„

#

You could talk about PyDis?

#

I was actually looking at your GitHub yesterday ๐Ÿ‘€

#

Aoc

olive sentinel
#

Co Pilot AoC, that would be interesting

stuck furnace
#

Probably not in the spirit of the event though ๐Ÿ˜„

rustic mantle
#

@olive sentinel Your video quality was very nice.

olive sentinel
#

Thanks, I was wondering how it would work with Discord

vivid palm
#

the test was really short, but i think i saw/heard some delay

olive sentinel
#

If you record it, it goes very well, but Discord and other apps typically compress everything until it breaks

#

yeah, the delay is because I'm using a different mic

#

easily fixable in a recording, bit more difficult if you use it as a webcam

#

It's a Sony Alpha 6400 (or "A6400")

stuck furnace
#

Back in a bit...

rugged root
#

Yeah the numbers aren't that bad comparatively

flat sentinel
#

He went up, but he didnโ€™t want to come down. Jaylen Murph was on vacation with friends and family in Arkansas when they visited a place with a very tall slide. Murph agreed to try it out, but as he was hoisted up the slide, he started to regret his decision. He screamed to be let down, but there was only one way for him to get down: to let go of...

โ–ถ Play video
sweet lodge
#

๐Ÿ‘‹

cobalt magnet
whole bear
#

imaginary = sqrt(-1)

woeful salmon
#

create a mobile shopping cart app that lets you store and remove different items with their price and tells you the total with and without taxes

#

o- o its one of the first things i did when i learnt react native personally and i still use it

#

lol

#

both me and my mom use it actually

scenic wind
#
import math;x=lambda radian:radian*180/math.pi;print(x(int(input("Enter deg: "))))
woeful salmon
#
import math;def x(radian):radian*180/math.pi;print(x(int(input("Enter deg: "))))
#

!e

foo = [1, 2, 3, 4]
doubles = list(map(lambda x: x*2, foo))
print(doubles)
wise cargoBOT
#

@woeful salmon :white_check_mark: Your eval job has completed with return code 0.

[2, 4, 6, 8]
whole bear
scenic wind
#
import math

symbols = ['+', '-', '*', '/']

def BruteForce(i):
    for element in symbols:
        
whole bear
woeful salmon
#

๐Ÿ‘€ the proper way is to just check with if statements and do it manually

#

you should avoid eval but it is an option (a bad one)

whole bear
#
print(f'10 {+} 10')
scenic wind
#

!e

print(f'10 {+} 10')
wise cargoBOT
#

@scenic wind :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     (+)
003 |       ^
004 | SyntaxError: f-string: invalid syntax
whole bear
#

!e```py
symbols = ['+', '-', '*', '/']

print(f'10 {symbols[0]} 10')

#

!e

wise cargoBOT
#
Command Help

!eval [code]
Can also use: e

*Run Python code and get the results.

This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!*

whole bear
#

!e ```py
symbols = ['+', '-', '*', '/']

print(f'10 {symbols[0]} 10')

wise cargoBOT
#

@whole bear :white_check_mark: Your eval job has completed with return code 0.

10 + 10
whole bear
#

!e ```py
symbols = ['+', '-', '*', '/']

eval(f'10 {symbols[0]} 10')

wise cargoBOT
#

@whole bear :warning: Your eval job has completed with return code 0.

[No output]
whole bear
#

!e ```py
symbols = ['+', '-', '*', '/']

print(eval(f'10 {symbols[0]} 10'))

wise cargoBOT
#

@whole bear :white_check_mark: Your eval job has completed with return code 0.

20
woeful salmon
#

!e

foo = "20"
bar = "2, print('get rekt kid')"
print(eval(foo + "+" + bar))
whole bear
#

!e ```py
symbols = ['+', '-', '*', '/']

print(f'10 {symbols[0]} 10 = '+ eval(f'10 {symbols[0]} 10'))

wise cargoBOT
#

@whole bear :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 3, in <module>
003 | TypeError: can only concatenate str (not "int") to str
whole bear
#

10 + 10 = 20

woeful salmon
#
symbols = ['+', '-', '*', '/']

print(f"10 {symbols[0]} 10 = {eval(f'10 {symbols[0]} 10')}")
scenic wind
#

!e

symbols = ['+', '-', '*', '/']

print(f"10 {symbols[0]} 10 = {eval(f'10 {symbols[0]} 10')}")
whole bear
#
symbols = ['+', '-', '*', '/']

equation = f'10 {symbols[0]} 10'

answer = eval(equation)

print(f'{equation} = {answer}')
#

!e ```py
symbols = ['+', '-', '*', '/']

equation = f'10 {symbols[0]} 10'

answer = eval(equation)

print(f'{equation} = {answer}')

wise cargoBOT
#

@whole bear :white_check_mark: Your eval job has completed with return code 0.

10 + 10 = 20
rocky kiln
#

!eval print(f"{10+10=}")