#voice-chat-text-0

1 messages ยท Page 757 of 1

uncut meteor
#

I did

#

Psy-ch

honest pier
#

i-

uncut meteor
#

sike

#

psych

honest pier
#

psyche

uncut meteor
#

.define psych

honest pier
#

D:

rugged root
#

$help

somber heath
#

Torquing points.

stuck furnace
#

.help

viscid lagoonBOT
#
Command Help

Wolfram
.wolfram <query>
Requests all answers on a single image, sends an image of all related pods.

WonderTwins
.formof
Command to send a Wonder Twins inspired phrase to the user invoking the command.

XKCD
.xkcd <comic>
Getting an xkcd comic's information along with the image.

honest pier
#

.riddle

viscid lagoonBOT
#
What happened to the Easter Bunny when he misbehaved at school?

You have 10 seconds before the first hint.

uncut meteor
#

.wolfram psych

viscid lagoonBOT
#
Here's a hint: Won't be back anymore!
honest pier
#

he was eaten

viscid lagoonBOT
#
Here's a hint: Worse than suspension!
rich cloud
#

expelled?

viscid lagoonBOT
#

Nobody got it right...

The answer is: He was eggspelled!
honest pier
#

i-

rich cloud
#

woah

honest pier
#

.riddle

viscid lagoonBOT
#
What happened to the Easter Bunny when he misbehaved at school?

You have 10 seconds before the first hint.

honest pier
#

smfh

#

He was eggspelled!

viscid lagoonBOT
#
Here's a hint: Won't be back anymore!
honest pier
#

.ttt

viscid lagoonBOT
#

It's time for the game! Let's begin.

#

๐Ÿ‡ด ๐Ÿ‡ฝ ๐Ÿ‡ด
๐Ÿ‡ฝ ๐Ÿ‡ฝ ๐Ÿ‡ด
๐Ÿ‡ฝ ๐Ÿ‡ด ๐Ÿ‡ฝ

#
Here's a hint: Worse than suspension!
#

Well done @honest pier for getting it right!

The answer is: He was eggspelled!
uncut meteor
#

.riddles

#

.riddle

viscid lagoonBOT
#
What do you call a rabbit with fleas?

You have 10 seconds before the first hint.

#

It's a DRAW!

#
Here's a hint: A bit of a looney tune!
uncut meteor
#

@amber raptor

honest pier
#

.ttt help

viscid lagoonBOT
#

It's time for the game! Let's begin.

#

๐Ÿ‡ด ๐Ÿ‡ฝ ๐Ÿ‡ด
๐Ÿ‡ฝ ๐Ÿ‡ด ๐Ÿ‡ฝ
๐Ÿ‡ฝ ๐Ÿ‡ด ๐Ÿ‡ฝ

honest pier
#

i-

#

.help ttt

viscid lagoonBOT
#
Command Help

.tictactoe <opponent>
Can also use: ttt

You cannot run this command.

Tic Tac Toe game. Play against friends or AI. Use reactions to add your mark to field.

Subcommands:
history
Show most recent tic-tac-toe games.

stuck furnace
#

bugs bunny

viscid lagoonBOT
#
Here's a hint: What's up Doc?!
uncut meteor
#

i-

honest pier
#

.ttt @stuck furnace

viscid lagoonBOT
#
No way, Josรฉ.

You are not authorized to use this command.

rich cloud
#

hax

stuck furnace
#

BUGS BUNNY! lemon_pensive

viscid lagoonBOT
#

Well done @stuck furnace for getting it right!

The answer is: Bugs Bunny!
stuck furnace
#

Listen to me bot!

viscid lagoonBOT
#

It's a DRAW!

stuck furnace
#

Ah right ๐Ÿ˜„

honest pier
#

๐Ÿ˜”

sick dew
#

.ttt

viscid lagoonBOT
#

It's time for the game! Let's begin.

#

๐Ÿ‡ด ๐Ÿ‡ฝ ๐Ÿ‡ด
๐Ÿ‡ฝ ๐Ÿ‡ฝ ๐Ÿ‡ด
๐Ÿ‡ฝ ๐Ÿ‡ด ๐Ÿ‡ฝ

stuck furnace
#

Most chaotic game of tic tac toe ever

viscid lagoonBOT
#

It's a DRAW!

#

It's time for the game! Let's begin.

#

๐Ÿ‡ด ๐Ÿ‡ฝ ๐Ÿ‡ด
๐Ÿ‡ด ๐Ÿ‡ฝ ๐Ÿ‡ฝ
๐Ÿ‡ฝ ๐Ÿ‡ด ๐Ÿ‡ฝ

#

It's a DRAW!

rugged root
uncut meteor
#

#sir-hemmerbot-commands

sick dew
#

#mr-hemlock-commands

stray niche
#

.riddle

viscid lagoonBOT
#
What does the easter bunny get for making a basket?

You have 10 seconds before the first hint.

stray niche
#

eggs

viscid lagoonBOT
#
Here's a hint: KOBE!!
stray niche
#

EGG

viscid lagoonBOT
#
Here's a hint: 1+1 = ?!
#

Nobody got it right...

The answer is: 2 points!
stuck furnace
#

Oh right

zealous wave
#

.ttt

viscid lagoonBOT
#

It's time for the game! Let's begin.

#

๐Ÿ‡ฝ ๐Ÿ‡ฝ ๐Ÿ‡ด
4๏ธโƒฃ ๐Ÿ‡ฝ ๐Ÿ‡ด
7๏ธโƒฃ 8๏ธโƒฃ ๐Ÿ‡ด

#

:tada: AI won this game! :tada:

stray niche
#

.ttt

viscid lagoonBOT
#

It's time for the game! Let's begin.

#

๐Ÿ‡ฝ ๐Ÿ‡ฝ ๐Ÿ‡ด
๐Ÿ‡ด ๐Ÿ‡ฝ ๐Ÿ‡ฝ
๐Ÿ‡ฝ ๐Ÿ‡ด ๐Ÿ‡ด

stray niche
#

5

rugged root
viscid lagoonBOT
#

It's a DRAW!

stuck furnace
#

There's also 'infix'

rugged root
#

Okay so, this feels rreeeeaaaaaaally weird to me

#
int a = 5;
int b = 3;
if (a + b > 10)
{
    Console.WriteLine("The answer is greater than 10");
}
else
{
    Console.WriteLine("The answer is not greater than 10");
}
dull hollow
#

.python

uncut meteor
#

teach me

zealous wave
#

.source

viscid lagoonBOT
stuck furnace
#

I think ๐Ÿค”

uncut meteor
#

why tho

#

cos its a word inside it?

#

so pine is too?

#

and apple

stuck furnace
#

According to Wikipedia izn is an infix of shiznit ๐Ÿ˜„

#

Yep

uncut meteor
#

๐Ÿ˜ฎ

stuck furnace
#

ma is called a "Homerific infix"

#

As in saxomaphone

rugged root
#

HA

#
for(int counter = 0; counter < 10; counter++)
{
  Console.WriteLine($"Hello World! The counter is {counter}");
}
dull hollow
stuck furnace
#

counter is like the current position in the list (index)

rugged root
#

Okay, this is interesting:

for (char column = 'a'; column < 'k'; column++)
{
  Console.WriteLine($"The column is {column}");
}
#

So that actually does print out a through k

#

For some reason that blows my mind

terse needle
#

wow

stuck furnace
#

Bit more visual than a debugger.

hybrid compass
#

25 - 30 in Brave

terse needle
#

immutable mutable

rugged root
#

!e

my_list = [1, 2, 3]
print(my_list)
my_list[1] = 4
print(my_list)

my_tuple = (1, 2, 3)
print(my_tuple)
my_tuple[1] = 4
print(my_tuple)
wise cargoBOT
#

@rugged root :x: Your eval job has completed with return code 1.

001 | [1, 2, 3]
002 | [1, 4, 3]
003 | (1, 2, 3)
004 | Traceback (most recent call last):
005 |   File "<string>", line 8, in <module>
006 | TypeError: 'tuple' object does not support item assignment
uncut meteor
#

!e

searching_for = 7

for i, num in enumerate([3, 5, 33, 67, 43, 3, 7, 4, 2, 3, 22, 38, 90, 49]):
  if num == searching_for:
    print(f"Found the: {num} and pos {i}")
    break
else:
  print("Num Not Found")
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

Found the: 7 and pos 6
uncut meteor
digital jackal
#

lol

uncut meteor
#

i hate the capslock stuff they do

#

but its like their pep-8

#

makes me sadhaw

stuck furnace
#

I made this for you @rugged root ๐Ÿ˜„ ```py
class IncrementableChar(str):

def __new__(cls, content):
    if len(content) != 1:
        raise ValueError()
    return str.__new__(cls, content)

def __add__(self, num):
    if isinstance(num, int):
        return IncrementableChar(chr(ord(self) + 1))
    return str.__add__(self, num)

__radd__ = __add__

a = IncrementableChar('a')
b = a + 1

#

Kind of janky...

uncut meteor
#

make it iterate through

#
for char in IncremenatialeChar("k"):
  print(char) # k - z
stuck furnace
#
def crange(start, end):
    char = start
    while ord(char) <= ord(end):
        yield char
        char = chr(ord(char) + 1)

for char in range('a', 'z'):
    ...
#

Anyway, gtg, cya ๐Ÿ‘‹

digital jackal
#
def myexample():
    global free 
    free = "hey"
    
myexample()
print(free)
spiral monolith
#
free= [1,2,3]

def myexample():
    global free 
    free = [6,7,8]
    
myexample()
print(free)
digital jackal
#

!e

#

!e ```py
free= [1,2,3]

def myexample():
global free
free = "hey"

myexample()
print(free)

honest pier
#

lul, my discord is not connecting

dull hollow
#

!e
numberList = [3, 5, 33, 67, 43, 1, 7, 4, 2, 3, 22, 38, 90, 49]
numberFound = False
number = int(input("Please enter a number to search for: "))
counter = 0
while numberFound == false:
if counter == len(numberList) and numberFound == false:
print("the number you entered wasn't found in the list")
break

if numberList[counter] == number:
numberFound = true
print("the number" + str(number) + "is in position" +str(counter) + "of the list")

else:
counter = counter + 1

wise cargoBOT
#

@dull hollow :x: Your eval job has completed with return code 1.

001 | Please enter a number to search for: Traceback (most recent call last):
002 |   File "<string>", line 3, in <module>
003 | EOFError: EOF when reading a line
uncut meteor
#

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

uncut meteor
#

^ and there is this so your code looks pretty

rich cloud
#

it's 03:52

#

win+shift+s

rugged root
dull hollow
wet mason
#

Could anyone help me import resnet v1.5?

#

I canโ€™t use resnet v1 or 2 has to be 1.5

dull hollow
#

odomotry

rugged root
uncut meteor
#

Send @viscid lagoon "Doorgiveaway123" to join the giveaway

honest pier
#

type !drop

uncut meteor
#

!stand

zealous wave
#

!drop

honest pier
#

i-

zealous wave
#

!drop didnt do anything

uncut meteor
#

i-

zealous wave
#

i-

terse needle
#

i-

rugged root
honest pier
#

!user

wise cargoBOT
#
theres so much abuse (โœช SavagePastaMan#6567)

hypesquad_balance

User information

Created: 4 years, 8 months and 24 days ago
Profile: @honest pier
ID: 182894631921516545

Member information

Joined: 6 months, 29 days and 4 hours ago
Roles: <@&542431903886606399>, <@&463658397560995840>, <@&764802720779337729>, <@&267630620367257601>, <@&799041111573266503>

Infractions

Total: 0
Active: 0

uncut meteor
#

!ooser

#

yes

terse needle
#

!user

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

rugged root
uncut meteor
rugged root
uncut meteor
#
honest pier
#

#blessed

uncut meteor
#

#meirl

junior kayak
#

a = (input("Enter your name "))
print("Hi " + a)
b = input("Enter Your Pin")
if b == '2456':
print("Welcome " + a)
d = input("What would you like to do ")
if d == "Deposit":
u = input (int("How much would you like to deposit"))
v = int(500)
print("You know have " + v+u)
if d == "Withdraw":
o = input("How Much Would You Like To Withdraw")

else:
print("Sorry Authentaction Failed ")

honest pier
#

v is not a string

rugged root
#
# instead of 
print("You know have " + v+u)

# you'll do 
print("You know have " + str(v) + str(u))
honest pier
#

!fstring

wise cargoBOT
#

Creating a Python string with your variables using the + operator can be difficult to write and read. F-strings (format-strings) make it easy to insert values into a string. If you put an f in front of the first quote, you can then put Python expressions between curly braces in the string.

>>> snake = "pythons"
>>> number = 21
>>> f"There are {number * 2} {snake} on the plane."
"There are 42 pythons on the plane."

Note that even when you include an expression that isn't a string, like number * 2, Python will convert it to a string for you.

junior kayak
#

a = (input("Enter your name "))
print("Hi " + a)
b = input("Enter Your Pin")
if b == '2456':
print("Welcome " + a)
d = input("What would you like to do ")
if d == "Deposit":
u = int(input("How much would you like to deposit"))
v = int(500)
print("You know have " + v+u)
if d == "Withdraw":
o = input("How Much Would You Like To Withdraw")

else:
print("Sorry Authentaction Failed ")

stuck furnace
#

Yo ๐Ÿ™‚

#

int(500) is the same as just 500

honest pier
#

str(v + u) instead of str(v) + str(u)

rugged root
#

Ah, didn't read the actual words

#

Just did the conversion

#

I derp

terse needle
#

print("You know have " + str(v+u))

stuck furnace
#

You running a marathon Alpha?

junior kayak
#

lol

stuck furnace
#

np ๐Ÿ˜„

junior kayak
#

thanks it works

terse needle
#

data.append( <string>.lower() )

stuck furnace
#

You are a bit @whole bear

whole bear
#

thanks

terse needle
#

!e

data = [1, 2]
if 1 in data:
    print(True)
wise cargoBOT
#

@terse needle :white_check_mark: Your eval job has completed with return code 0.

True
whole bear
#

!i

#

!e

dense ibex
#
@commands.command()
    async def addword(self, ctx, *, word):
        with open('./cogs/bannedwords.json', 'r') as f:
            data = json.load(f)

        if word.lower() in data:
            return 
            
        data.append(word.lower())

        with open('./cogs/bannedwords.json', 'w') as f:
            json.dump(data, f)
            print('Data Dumped')
stuck furnace
#

So is data a list?

#

You might want to do some quick validation with an assert isinstance(data, list)

honest pier
#

i think it is

#

i saw the json earlier

stuck furnace
#

I mean, including that line may save you from a headache in the future ๐Ÿ˜„

honest pier
#

eh

stuck furnace
#

I guess if you're immediately using append this serves the same purpose, just with a more cryptic error message.

#

So, does the above code not work currently? @dense ibex

terse needle
#
async def read() -> list:
    with open('/cogs/bannedwords.json', 'r') as f:
        return json.load(f)
async def write(data : list):       
    with open('./cogs/bannedwords.json', 'w') as f:
        json.dump(data, f)
stuck furnace
#

Locked down fully here

#

Yeah same @terse needle ๐Ÿ˜„

#

Literally made no difference to my life...

plush willow
#

i have a function that returns a value and that value is dispalying the referenced before assignment error, it got rectified by making it global, but i dont want to use global, any ideas?

honest pier
#

show code

stuck furnace
#

York's alright

plush willow
#

now if i use global mode, it works, but i dont want to

stuck furnace
#

Indentation's a little off in the code you pasted Krish

plush willow
#

yeah ik

#

dont mind that

honest pier
#

if inside_tunnel is false, and mode != 1, then mode will not be defined

plush willow
#

yeah its false most of the time

#

its true, when my robo is in the tunnel

stuck furnace
#

In London it's like -1C and I'm freezing. I couldn't imagine the like -20C that you get in Canada๐Ÿ˜„

plush willow
#

@honest pier any ideas?

stuck furnace
#

Ah, so the mode is a global variable @plush willow ?

plush willow
#

if i make that it works, but i dont want to

honest pier
#

i literally just told you the issue

plush willow
#

ahh, okay :/

stuck furnace
#

Can we see more of the code?

plush willow
#

in personal i could

#

i can show you my ide there

stuck furnace
#

@terse needle CPU at 99.9%, what's going on? ๐Ÿ˜„

#

Ram is under-utilised. 29% lemon_unamused

honest pier
#

lul

terse needle
#

i got 32GB of ram

stuck furnace
#

Oh nice

terse needle
#

like a Ryzen 3 cpu

stuck furnace
#

That's like the new AD/BC

#

Pre-iPhone and post-iPhone

#

Or, the other way around....

stuck furnace
#

To be fair, they did invent the internet ๐Ÿ˜„ @amber raptor

terse needle
#

lol i have 8GB of 3GHz RAM next to me rn unused

#

might not be 3 actually

stuck furnace
#

Made of money...

wet mason
#

With keras loading a checkpoint you use load_weights right?

#

Because that is not working for me

#

Iโ€™m getting a permission error when pointing to my checkpoint file which points to the checkpoints

amber raptor
rugged root
terse needle
honest pier
#

it's more of a flex @amber raptor

amber raptor
honest pier
#

iphone 12

stuck furnace
#

Eh

hoary dirge
#
        # Generate radius list file, and make an histogram for it
        a = m()
        radius_list = a[0]
        if a[1]:
            print("YES")
            continue

        # Generate mean radius list for all polymer lengths
        mean_radius = (sum(radius_list)/len(radius_list))
        mean_radius_list.append(mean_radius)
    if not a[1]: #Python is complaning that a might be referenced before?
        second_graph(polymer_lengths, mean_radius_list)

any reason he is complaining at the one line before last? he is saying ```Local variable a might be referenced before assignment


what does he want from me? ๐Ÿ˜„
whole bear
#

Hellรถรถรถรถ

#

Haaay

stuck furnace
#

Hence the 'might be'

whole bear
#

Ayem twenty years old

hoary dirge
#

hmm, the function m() returns two values

honest pier
#

oh i see

hoary dirge
#

there are conditions in m() which effect the value of a[1]

honest pier
#

you put a = m() in an indent, i'm guessing that's an if statement

hoary dirge
#

really? whats the if here?

honest pier
#

well idk

#

you have the code

stuck furnace
#

Can you paste the lines of code that come before?

hollow patio
#

askolar

#

sesimizi

#

aรงฤฑn

#

open voice

rugged root
#

English only, please

hollow patio
#

please

stuck furnace
hollow patio
#

ฤฑ dont understand

#

ฤฑam sory

stuck furnace
hoary dirge
# stuck furnace Can you paste the lines of code that come before?
    if len(radius_list) == max_tries:
        print("Warning: The Radius for polymer length", polymer_lengths, "did not converge in", len(radius_list), "tries")
        abort = True
    else:
        abort = False
    radii_file.close()
    return radius_list, abort

this is the end of m().

the part before ```py
a = m()
radius_list = a[0]
if a[1]:
print("YES")
continue

    # Generate mean radius list for all polymer lengths
    mean_radius = (sum(radius_list)/len(radius_list))
    mean_radius_list.append(mean_radius)
if not a[1]: #Python is complaning that a might be referenced before?
    second_graph(polymer_lengths, mean_radius_list)

doesn't mention a or m()
honest pier
#

can you paste the lines ahead of the second block of code

stuck furnace
#

Basically if you have something like this: py if condition: a = 1 if a == 1: ... then a may or may not be defined before it is referenced at a == 1, depending on the condition.

hollow patio
#

I don't know how to join the server

stuck furnace
#

Without running the code in all possible scenarios, the linter doesn't know if it is always defined.

rugged root
#

We have put a requirement in place that people have to meet before they can speak

#

It's to prevent trolls from causing disruptions

hoary dirge
#

oh I think I understand. so because it doesn't know its value until I run it, it makes the message?

stuck furnace
#

@tiny seal "something"

tiny seal
#

thank you

hollow patio
tiny seal
#

you broke the silence

rugged root
#

I do what I can

stuck furnace
#

How does Mariah Carey do that crazy thing with her voice? ๐Ÿ˜„

rugged root
#

!voice @whole bear

wise cargoBOT
#

Voice verification

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

hollow patio
#

You lost a lot by not taking me to the server

rugged root
#

Just noticed you asked in one of the other channels, just pointing you to where you can learn more about our system

hollow patio
#

bb

rugged root
#

I'm sure

#

Poor us

#

There's more to the server than voice chat. We have a variety of channels, each one a fantastic way to learn! We've got our help system for asking or answering questions, our multitude of topical channels, some off-topic channels, etc.

whole bear
#

Aylavyu bebeklerim

rugged root
#

English only, please

whole bear
#

Aylavyuuuu

whole bear
#

I love you people

hoary dirge
#

@stuck furnace @honest pier ty guys ๐Ÿ˜„

stuck furnace
hoary dirge
#

making it global fixes it

#

I have no idea why though ๐Ÿ˜‚

stuck furnace
hoary dirge
#

haha

vivid palm
#

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidCastException: Object cannot be cast from DBNull to other types.
at System.DBNull.System.IConvertible.ToBoolean(IFormatProvider provider)
at System.Convert.ToBoolean(Object value)
at MMSInvoiceCoverSheet.InvData.GetInvoiceData(Int32& requestedNum, Int32& sentNum)
at MMSInvoiceCoverSheet.Main.LoadData()
at MMSInvoiceCoverSheet.Main.Main_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

rugged root
#

FoxPro was a text-based procedurally oriented programming language and database management system (DBMS), and it was also an object-oriented programming language, originally published by Fox Software and later by Microsoft, for MS-DOS, Windows, Macintosh, and UNIX. The final published release of FoxPro was 2.6. Development continued under the V...

stuck furnace
#

It's a bad sign when the Wikipedia article is written in the past tense.

rugged root
#
SQL

SQL ( (listen) S-Q-L, "sequel"; Structured Query Language) is a domain-specific language used in programming and designed for managing data held in a relational database management system (RDBMS), or for stream processing in a relational data stream management system (RDSMS). It is particularly useful in handling structured data, i.e. data inco...

#

Visual FoxPro was a Microsoft data-centric procedural programming language that subsequently became object-oriented.
It was derived from FoxPro (originally known as FoxBASE) which was developed by Fox Software beginning in 1984. Fox Technologies merged with Microsoft in 1992, after which the software acquired further features and the prefix "Vis...

uncut meteor
stuck furnace
#

Lots of catalogues @uncut meteor

uncut meteor
rugged root
vivid palm
#

TYTY

rugged root
prisma sail
#

Hello :D

#

good evening

#

how is everyone?

stuck furnace
#

Technical debt

stuck furnace
#

You?

rugged root
#

Going well, Kumi! 'bout - damn it

#

Beat me to it

uncut meteor
#

๐Ÿฅ’

#

c:

rugged root
#

That's confusing

#

Oh as a cucumber

prisma sail
rugged root
#

Got it now

stuck furnace
#

Yeah, not sure how to interpret that Griff ๐Ÿ˜„

rugged root
#

Cool as a cucumber

uncut meteor
#

yeah

stuck furnace
#

Ah

#

Unfortunate shape ๐Ÿ˜„

uncut meteor
#

LX is always a nice dude in the vc

prisma sail
#

i have not had a energy drink in 3 months

uncut meteor
#

it is a constant variable on the planet earth

prisma sail
#

i just went to the shops

#

to get one

uncut meteor
#

angershake
^ u in 3 mins

prisma sail
#

its soooo good

#

but like eh

#

not on a daily

#

i got work to do tonight

stuck furnace
#

I haven't had an energy drink since last summer when I drank too much caffeine and got chest pains lemon_pensive

prisma sail
#

Ooooof

rugged root
#

@stuck furnace I get the eye twitches

uncut meteor
#

i've not had one for a while

rugged root
#

And the slightly graying vision

#

Wheeeeeeeeeeeeeeeeeeeeeee

uncut meteor
#

just cos I don't go into shops very often

#

anymore

prisma sail
#

got to do some research and PROGRAMMING!

uncut meteor
#

I used to be a Monster Fiend

prisma sail
#

ah i just got emerge (2 for 80p)

rugged root
#

@prisma sail What kind of research

prisma sail
#

i do game development

rugged root
#

Oh nice!

prisma sail
#

so on the acropolis

uncut meteor
prisma sail
#

we need to make a modular asset pack

rugged root
#

So developing the modularness I guess?

prisma sail
#

so like an asset pack based on the acropolis

#

inc pillars

#

roof tiles

#

stuf like that

rugged root
#

Right right, I was more wondering what programming part you were working on

prisma sail
#

oh

#

just Kotlin

#

for app

#

android

#

app

rugged root
#

I still need to get back into it

#

I keep language hopping

prisma sail
#

yeah its fun

#

kotlin + flutter

#

pog for app

#

dev

uncut meteor
#

thats so cool

#

ketlin is cool

rugged root
#

What games have you worked on?

prisma sail
#

umm like i made a parkour game for my class

#

its trash

#

ue4

#

:(

rugged root
#

Still more than I've ever done

prisma sail
#

unity better

#

unity > ue4

rugged root
#

I'm working on trying to make a Riichi Mahjong game

prisma sail
#

but my course is UE4 not unity

uncut meteor
#

agreed, ue4 is too much for smalldev

prisma sail
#

:(

rugged root
#

Unity is so clean now

uncut meteor
#

mhm

prisma sail
#

yea

uncut meteor
#

its op

prisma sail
#

plus i wana dev for vr

#

unity vr is better

#

for dev

#

then UE4

uncut meteor
prisma sail
#

i joined

stuck furnace
# uncut meteor

Claim to fame: my sister's ex-boyfriend was his P.E. teacher ๐Ÿ˜„

uncut meteor
#

WAT

#

OMG

#

I LOVE HIM

#

HE IS the AMAZEMENT

#

c:

#

wait

#

ex-boy

stuck furnace
#

Yeah, not sure what happened ๐Ÿ˜„

uncut meteor
#

that was gonna be my way in

prisma sail
#

good song

stuck furnace
#

Not tell people to inject bleach as a cure ๐Ÿ˜„

uncut meteor
#

yummy

stuck furnace
uncut meteor
#

don't be

#

you make up for it

#

keep being ๐Ÿฅ’

wet mason
#

Pillow is the worst most broken library ever the developers should be ashamed and quit

uncut meteor
#

example?

wet mason
#

Me reinstalling 15 times and canโ€™t import Image because it canโ€™t find _imaging

uncut meteor
#

what os?

stuck furnace
#

Also, consistently denying the outcome of the election for two months didn't help.

#

That gave them the motive.

rugged root
#

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

honest pier
#

you're just gonna run into the same problem as in ww2

#

wind changes and you gas your own troops

stuck furnace
#

Cya Hemlock ๐Ÿ‘‹

rugged root
stuck furnace
#

Let's all post Tom Jones gifs ๐Ÿ˜„

rugged root
#

HA

#

Amazing

stuck furnace
#

Actually, let's not.

#

Not sure what's going on there ๐Ÿ˜„

daring orbit
#

Hello all

pure anchor
#

I started playing elastomania again :3

stuck furnace
#

More-or-less on BBC Radio 4 is great ๐Ÿ˜„

#

But mostly focussed on British news.

#

They talk about statistics from the news.

tiny seal
stuck furnace
#

Oh yeah, CSM is alright

stuck furnace
#

Gtg, see ya guys!

zealous wave
#
import discord
from discord.ext import commands

pink = discord.Colour.from_rgb(250, 218, 221)

class MyHelp(commands.HelpCommand):
    def get_command_signature(self, command):
        return f'{self.clean_prefix}{command.qualified_name} {command.signature}'


    async def send_bot_help(self, mapping):
        embed = discord.Embed(title="Help", colour = pink)
        for cog, commands in mapping.items():
           filtered = await self.filter_commands(commands, sort=True)
           command_signatures = [self.get_command_signature(c) for c in filtered]
           if command_signatures:
               for command in commands:
                   embed.add_field(name=self.get_command_signature(command), value=f"`{command.help}`", inline=False)
                   print(self.get_command_signature(command))


        channel = self.get_destination()
        await channel.send(embed=embed)


    async def send_command_help(self, command):
        embed = discord.Embed(title=self.get_command_signature(command), colour = pink)
        embed.add_field(name="Help", value=command.help)
        alias = command.aliases
        if alias:
            embed.add_field(name="Aliases", value=", ".join(alias), inline=False)

        channel = self.get_destination()
        await channel.send(embed=embed)
honest pier
#

step one, stop using that god awful string formatting

flat sentinel
#

!e
import discord
from discord.ext import commands

pink = discord.Colour.from_rgb(250, 218, 221)

class MyHelp(commands.HelpCommand):
def get_command_signature(self, command):
return '%s%s %s' % (self.clean_prefix, command.qualified_name, command.signature)

async def send_bot_help(self, mapping):
    embed = discord.Embed(title="Help", colour = pink)
    for cog, commands in mapping.items():
       filtered = await self.filter_commands(commands, sort=True)
       command_signatures = [self.get_command_signature(c) for c in filtered]
       if command_signatures:
           for command in commands:
               embed.add_field(name=self.get_command_signature(command), value=f"`{command.help}`", inline=False)


    channel = self.get_destination()
    await channel.send(embed=embed)


async def send_command_help(self, command):
    embed = discord.Embed(title=self.get_command_signature(command), colour = pink)
    embed.add_field(name="Help", value=command.help)
    alias = command.aliases
    if alias:
        embed.add_field(name="Aliases", value=", ".join(alias), inline=False)

    channel = self.get_destination()
    await channel.send(embed=embed)
wise cargoBOT
#

@flat sentinel :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | NameError: name 'command' is not defined
flat sentinel
#

1800000

#

1,800,000 ms ping

honest pier
#

๐Ÿค”

tiny seal
#

more like 1300,000

zealous wave
vivid palm
uncut meteor
vivid palm
#

2:30

uncut meteor
#

me irl

vivid palm
#

what am i watching lmao

honest pier
#

๐Ÿ˜ณ

honest pier
#

let R be the region enclosed by the line y = 4, the y-axis, and the curve y = 1/2 x^3. A solid is generated by rotating R about the line y = -1, what is the exact volume of the solid?

dull hollow
#

how do i check that my sublime is running the corrct version?

#

do i use the terminal?

mint bolt
#

Hi

dull hollow
#

sorry griff my parents are nagging me to go to bed

uncut meteor
#

np

dull hollow
#

i would appreciate if we can talk about tomorrow as i quite abruptly ended without saying anything....maybe if you are free?

uncut meteor
#

maybe

#

idk

dull hollow
#

no worries

#

i understand if you are busy

#

i very much acknowledge that u kindly tried

#

gn

junior falcon
#

@gilded rivet :0 it's like you don't want me in your DMs

#

then get out of vc so it's okay for me to DM you

#

there's a couple chapters in Effective Python that are maybe relevant to your question is what I was saying.

#

X ร† A-Xii

topaz schooner
past elk
#
username,password,uuid
prog,idk,6283
#
def parse_csv(file: str) -> list:
  users = []
  with open(file,'r') as f:
    for line in f.readlines()[1:]:
      split = line.split(',')
      users.append(split)
  return users
#
username,password
user1,pass1
user2,pass2
#
parse_csv('csv.csv')
''' [[user1, pass1],[user2,pass2]] '''
#
def parse_csv(file: str) -> list:
  users = []
  with open(file,'r') as f:
    for line in f.readlines()[1:]:
      split = line.replace('\n','').split(',')
      users.append(split)
  return users

def check_exsistence(file: str,username: str, password: str)-> bool:
  user = [username,password]
  parsed = parse_csv(file)
  return user in parsed

def add_user(file: str,username: str, password: str):
    with open(file,'a') as f:
        f.write(f'\n{username},{password}')
past elk
#
if check_exsistence('database',username,password):
  #ect
gusty hatch
#
def client_recv():
    while True:
        data = conn.recv(2048).decode("utf-8")
        if data == "REGISTER":
            add_user("database")
        if data == "LOGIN":
            if check_exsistence('database',username,password):
past elk
#
def client_recv():
    while True:
        data = conn.recv(2048).decode("utf-8").split(' ')
        if data[0] == "REGISTER":
            add_user("database",data[1],data[2])
        if data[0] == "LOGIN":
            if check_exsistence('database',data[1],data[2]):```
undone idol
#

@sick dew Hi what projetcs are you working on please speak rather than typing

sick dew
uncut meteor
#

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

sick dew
#

Help
Help
help - Shows the commands.
Moderation
clear - This deletes a certain amount of messages.
kick - This kick a certain member from the guild.
ban - This bans a certain member from the guild.
unban - This unbans a certain member from the guild.
create - Gives a walk through create menu.
Jishaku
jishaku - **
Misc
report - Allows the user to report an issue with the bot or the Software Central Server.
suggest - Allows the user to suggest an idea to do with the bot.
invite_bot - Sends the bot's invite link.
convert - Converts one currency to another.
invite_server - Sends the bot's server invite link.

dull hollow
#

I will join back in 30 min

#

In a bit

uncut meteor
#

!e

print(F"Test {5+7}")
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

Test 12
uncut meteor
sick dew
#
send_string.replace("@everyone", "everyone")
send_string.replace("@here", "here")
uncut meteor
#

!e

class MyClass:
  def __init__(self):
    print("Created the class")


my_class = MyClass()
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

Created the class
uncut meteor
#
msg_allowed_mentions = AllowedMentions(everyone=False, roles=False)
ctx.send("My Message", allowed_mentions=allowed_mentions)

ctx.send("My Message", 
          allowed_mentions=AllowedMentions(everyone=False, roles=False),
          allowed_mentions=AllowedMentions(everyone=False, roles=False),
          allowed_mentions=AllowedMentions(everyone=False, roles=False),
          allowed_mentions=AllowedMentions(everyone=False, roles=False),
)
dull hollow
uncut meteor
#
{
    "cmd": ["python3", "-i", "-u", "$file"],     
    "file_regex": "^[ ]File \"(...?)\", line ([0-9]*)",     
    "selector": "source.python"
}
dull hollow
uncut meteor
#

\AppData\Roaming\Sublime Text 3\Packages\User

honest pier
#

sublime ๐Ÿคข

wise glade
#

ok, I got a serious question

#

ok, what's the worst that could happen if I reveal my discord tag? accidentally ofcourse

#

its called tag right? that 4 digit number

somber heath
#

5772?

#

Because that's public.

wise glade
#

someone was going on a rant in off-topic, not to reveal discord tag to anyone

#

๐Ÿ˜‚ was public already

#

"discriminator"

uncut meteor
#

735485653902557204

somber heath
#

They may have been referring to one of the private ones.

wise glade
#

how can you use tabs and spaces?

#

what kind of muscle memory is that?

#

spaces ๐Ÿ˜‚

#

at least use ctrl + ]

#

I'm a student, never met another who use spaces

#

they are a minority in programming world

somber heath
#

Not in Python.

wise glade
#

sad

#

but yeah, where else would they exist

#

python is the only one with indent stuff, right?

somber heath
#

In between people's heads?

wise glade
#

something in use today, popular

#

not from 20-30 years ago

#

brb

#

hey Hemlock, what scam is this? ๐Ÿ˜‚

clear shadow
#

wanna see later

wise glade
#

@sick dew here โ˜๏ธ

#

Hemlock's click baits

uncut meteor
#

!e

class Subtracktor:
  def __init__(this):
    this.operator = "-"

  def __call__(this, l_val, r_val):
    output = eval(str(l_val) + this.operator + str(r_val))
    return l_val - r_val

tacktor = Subtracktor()
print(tacktor(5, 7))
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

-2
wise glade
#

what's the difference between a URL and URI ?

#

huh?

#

URL is not used for files?

#

just for pages?

#

found a blog

#

hear you all clearly though

#

brb

sick dew
#
COGS = []
LOADED = False
for cog in LOADED_COGS:
  if cog_name == cog:
    LOADED = True
for cogs in os.listdir("./cogs"):
  COGS.append(cogs[:-3])
uncut meteor
#
def square(num: int) -> int:
    """
    Squares a number

    :param num: The value to square
    :return: the squared value
    """
    return num**2


print(square(5))
swift valley
#

Greetings

somber heath
#

๐Ÿฆƒ

sick dew
wise glade
#
from flask import request
page = request.args.get('page', 1, type=int)

so from this "request.args" dictionary we get the page number, and if there's not available one, it returns 1 as the page number, right?

somber heath
#

Is there a site you can test it out on?

wise glade
#

that's how dict syntax is right?

#

dict.get('key', default_value)

wise glade
#

hmm

#

srry my bad, args

uncut meteor
#

!dict-get

wise cargoBOT
#

Often while using dictionaries in Python, you may run into KeyErrors. This error is raised when you try to access a key that isn't present in your dictionary. Python gives you some neat ways to handle them.

The dict.get method

The dict.get method will return the value for the key if it exists, and None (or a default value that you specify) if the key doesn't exist. Hence it will never raise a KeyError.

>>> my_dict = {"foo": 1, "bar": 2}
>>> print(my_dict.get("foobar"))
None

Below, 3 is the default value to be returned, because the key doesn't exist-

>>> print(my_dict.get("foobar", 3))
3

Some other methods for handling KeyErrors gracefully are the dict.setdefault method and collections.defaultdict (check out the !defaultdict tag).

wise glade
#

Griff, did you bought nitro?

#

or won it somewhere?

#

why?

#

oohh

#

you're that kinda guy

#

do you have to pay one time for it?

#

or is it subscription

#

I wonder, what was Opal typing?

#

he stopped

#

in RESTful api's

#

when the server returns something like this

{
            'url': url_for('api.get_post', id=self.id),
            'body': self.body,
            'body_html': self.body_html,
            'timestamp': self.timestamp,
            'author_url': url_for('api.get_user', id=self.author_id),
            'comments_url': url_for('api.get_post_comments', id=self.id),
            'comments_count': self.comments.count(),
        }
#

how does client side know how to make sense of all this?

#

we just return json filled with url's

#

not the actual webpages

#

ok, so webpage template need to exists somewhere

#

right now

#

templates

#

using bootstrap in them

#

don't know what you said, went over my head

#

I need to put those templates somewhere, right,

#

so view functions would render them,

#

yeah

#

yeah, one second

#
@auth.route('/login', methods=['GET','POST'])
def login():
    form = LoginForm()
    if form.validate_on_submit():
        user = User.query.filter_by(email=form.email.data).first()
        if user is not None and user.verify_password(form.password.data):
            login_user(user, form.remember_me.data)
            next = request.args.get('next')
            if next is None or not next.startswith('/'):
                next = url_for('main.index')
            return redirect(next)
        flash('Invalid username or password')
    return render_template('auth/login.html', form=form)

this is a view function, which helps user login

#

at the bottom, it renders the html template

#

yeah, endpoint

#

yeah, where does that webpage lives?

#

stuff like this ๐Ÿ‘‡

shadow zodiac
#

NOOOOO

#

k unfriend

wise glade
#

๐Ÿ˜‚

shadow zodiac
#

i just wanna have friends

uncut meteor
#

yike

bleak current
#

Hey Tanya

wise glade
uncut meteor
#

big scam is scam

wise glade
#

lol

shadow zodiac
bleak current
#

bruh

shadow zodiac
#

theres so many hackers around me๐Ÿ˜”

bleak current
#

you are the one sending random people friend requests

#

anyway , should have listened to em

#

scam

#

Unfriended and blocked

#

bye

shadow zodiac
#

yeah scam

#

watch out for scam

#

i joined this server twice smh

normal hinge
#

I need some help with flask

#

Can someone help me please

mint bolt
#

Hi

severe pulsar
zealous wave
#

@zealous wave
@whole bear got it

somber heath
#

๐Ÿ‘ป ๐Ÿ›Ž๏ธ

whole bear
#

ws

teal veldt
#

Hello folks ๐Ÿ‘‹

whole bear
#

ehllo

zealous wave
#

elloh

teal veldt
#

yello

zealous wave
#

yellow

#

orange

#

red

whole bear
#

yello

#

hello

somber heath
#

"Yargbl!"

teal veldt
#

I should use ehllo more often

#

hahaha

whole bear
#

heell yeah

teal veldt
#

๐Ÿ™Œ

#

mom jokes! damn!

#

okay boomer

teal veldt
#

๐Ÿ˜†

whole bear
teal veldt
#

๐Ÿคฎ

zealous wave
#

^

#

!voice @high shard

wise cargoBOT
#

Voice verification

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

zealous wave
somber heath
#

If bees had an API, would it be an apiAPI?

eternal bough
#

New Tutorial series about PyTorch! Learn all the basics you need to get started with this deep learning framework!

Part 01: Installation

I show you how I install PyTorch on my Mac using Anaconda. Installation on Linux or Windows can be done almost the same way.

๐Ÿช Code faster with Kite, AI-powered autocomplete that integrates into VS Code (aff...

โ–ถ Play video
flat sentinel
#

Python Machine Learning Tutorial - Learn how to predict the kind of music people like.
๐Ÿ‘ Subscribe for more Python tutorials like this: https://goo.gl/6PYaGF
๐Ÿ‘‰ The CSV file used in this tutorial: https://bit.ly/3muqqta

๐Ÿš€ Learn Python in one hour: https://youtu.be/kqtD5dpn9C8
๐Ÿš€ Python (Full Course): https://www.youtube.com/watch?v=_uQrJ0TkZlc
...

โ–ถ Play video
tall latch
#

hey is corey schafer from australia

whole bear
zealous wave
whole bear
#

its a but in my program can you help me fix it

violet spoke
#

is this python talk or cannibal talk

#

i did not know it was off topic

whole bear
#

Hey I am working to fix some code within pygame, if anyone could assist I would appreciate it. I have more data upon request.

#

hellooo

junior kayak
#

Which of the following lines of code correctly assign a String containing the text "My String" to the variable 'text'?

terse needle
#

!e ```py
print('x' in ['x','y'])

wise cargoBOT
#

@terse needle :white_check_mark: Your eval job has completed with return code 0.

True
fast gyro
#

mylist = (..............)

#

'r' in mylist

wet mason
#

if โ€œrโ€ in [โ€œrโ€]

fast gyro
#

mylist = ['r']
if โ€œrโ€ in mylist

wet mason
#

Cosine similarity

#

Euclidean metric

fast gyro
#

cosh-1

terse needle
#

python main.py

#
import os

if os.system('ping -c 1 1.1.1.1') == 0:
    os.system('cls')
    input('You have an internet connection')
``` @lethal crest
hushed tusk
#

RIP lol

#

so yall seen the news?

#

about trump?

terse needle
#

yep

fast gyro
#

I need help

#

right now

#

in python

terse needle
#

what do you need?

fast gyro
#

come KJ

#

voice chat 0

hushed tusk
#

i cant talk

#

why?

limpid heron
#

hello

old nimbus
#

probably something a cat would say mayhaps

sick cloud
#

@terse needle helo

#

how u doing

#

whatt ?

#

im good thx

#

and where u from ?

#

๐Ÿ‘

#

from india, but im in Africa rn

#

im here

#

i live like 6-10 kms away rom the beach ig

#

also how old r u ?

#

turing 17 this yr ?

#

im turning 15 this yr imao

#

i took java first for idk reasons

#

@fiery hearth so far ?

#

@terse needle same pretty ded

#

ofc

#

hello

#

cuz i'm too nervous and i have the shitiest mic u can think of

#

im too lazy to fetch them

#

viruses

#

C#

#

@terse needle @trail perch @whole bear Have any of you worked with mogo db in python ?

#

Alr np x)

#

i got free

#

ascess

#

to

#

hacker rank once

trail perch
terse needle
#

!e

mylist = [x for x in range(0,51) if x % 3 == 0]
print(mylist)
wise cargoBOT
#

@terse needle :white_check_mark: Your eval job has completed with return code 0.

[0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48]
drifting flower
#

@whole bear can anyone unsupress me

#

if possible

#

so do i need to spam for it

#

or just simple chat

#

thats like a test of worthyness

craggy zephyr
#

Hello @fiery hearth
what'sup?

buoyant topaz
#

supp

sleek pecan
#

Hello

#

salute

zealous wave
tall latch
#

nope

somber heath
#

@zealous wave I'm having trouble reading that. Would you mind speaking it?

tall latch
somber heath
#

What is the question?

zealous wave
somber heath
#

Th is is th is

uncut meteor
#
from PIL import Image, ImageOps, ImageDraw



def convert_to_circle(image_path, size) -> Image:
    mask = Image.new('L', (size, size), 0)
    draw = ImageDraw.Draw(mask)
    draw.ellipse((0, 0) + (size, size), fill=255)
    im = Image.open(image_path)
    output = ImageOps.fit(im, mask.size, centering=(0.5, 0.5))
    output.putalpha(mask)
    return output


circle_avatar = convert_to_circle('test.png', 128)
circle_avatar.show()
somber heath
#
int_matrix = [[0,1,2],[3,4,5],[6,7,8]]
float_matrix = [[float(v) for v in each] for each in int_matrix]```
#

Probably of no relevance, but whatever.

#

I have a recursion example. The bot segfaults.

sick dew
paper tendon
#

so advice for @whole bear but also for anyone else who is using flask to serve also CSS and JS. You might want to use this way to initialise application in config.
app = Flask(__name__, instance_relative_config=True, static_folder='./static', template_folder="./templates")

verbal oasis
#

!server

wise cargoBOT
#
Server Information

Created: 4 years, 1 month and 6 days ago
Voice region: us-east
Roles: 82
Member status: status_online 42298 status_offline 105968

Members: 148266

Helpers: 90
Moderators: 28
Admins: 14
Owners: 3
Contributors: 36

Channels: 208

Category: 26
News: 8
Staff: 56
Text: 108
Voice: 10

whole bear
#

!server

wise cargoBOT
#
Server Information

Created: 4 years, 1 month and 6 days ago
Voice region: us-east
Roles: 82
Member status: status_online 42384 status_offline 105884

Members: 148268

Helpers: 90
Moderators: 28
Admins: 14
Owners: 3
Contributors: 36

Channels: 208

Category: 26
News: 8
Staff: 56
Text: 108
Voice: 10

dense ibex
#

!source

wise cargoBOT
somber salmon
#

How are you?

ripe isle
#

what are you guyus working on

somber salmon
#

Oh, I canโ€™t speak

ripe isle
#

i didnt get

somber salmon
#

ahahah

#

omg

#

Jake and Toxic are you make a bot together?

#

tasks on codeWars are good?

ripe isle
#

its all bots

#

all the time?

somber salmon
#

Anyone solve tasks on codeWars?

#

I have 6 kyu

ripe isle
#

i cant solve the first

somber salmon
#

Toxic

#

I have a list [1, 1, 1, 2, 1, 1] and 1 unique number in this list. How can I return this number?

terse needle
#

sort the list

uncut meteor
#

you can use sets and .count() on it

rugged root
#

I'd convert it to a set

#

Oh derp

#

Too fast

sick dew
#

.

somber salmon
#

thanks

sick dew
faint ermine
somber salmon
#

As far as I understood from the error, pyinstaller cannot import the google-api-python-client library. When writing
pyinstaller cl.py
everything goes fine, but when I open the program, the terminal opens and shows an error

I use python 3.9, windows OS. The program itself works properly in .py

#

Can anyone help me?)

sonic mountain
#

๐Ÿ‘‹ Do you recommend any book/course to learn Python for those of us who have been coding in other languages for a while? I usually get bored and quit because all the stuff I find is trying to babysit the reader about variables and conditions and loops ?

rugged root
#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

sonic mountain
#

Thank you!

#

free ! Amazing

#

I got "elements of programming interviews" the other day but haven't had the chance to open it yet... is it a liked book around here ?

#

Alright ! will do !

zealous wave
#

wrong channel sry

viscid perch
#

that because most of them not have permission to chat, including me

terse needle
fiery juniper
terse needle
whole bear
#

well how about you start a convo?

daring orbit
#

Hello all

whole bear
#

hello

prisma sail
#

a

versed island
#

why cant i join staff meeting

whole bear
#

your not staff

faint ermine
uncut meteor
#

!verify-staff

#

it no workie

calm swallow
#

lol hey whats everybody up to?

versed island
#

sup ?

uncut meteor
#

zup

versed island
#

ฮถup

calm swallow
#

lol um can I ask a REALLY dumb question. I am still learning the basics of python and I'm stuck where I haven't found a youtube on it...

whole bear
#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

whole bear
#

@calm swallow

uncut meteor
calm swallow
#

Basically I have been trying to get python to dump the information of the icons/info needed to reference the app on the system tray, but all the results I get from youtube is how to create a system tray app....

#

Ty @whole bear I'll try to look into that too

#

I have gotten this far with my script by a forum post but I had to tweak it because it didn't reference the notification chevron properly for some reason...

#

lol

cobalt fractal
#

kEk mEmE DoGe fUnNy iT WiLl bE YeS HaHa pLeAsE I ThInK FuNnY Be lAuNdMo wIlL Be hApPy, He iS CuRrEnTlY TeLlInG Me nOt tO WrItE ThIs bUt c'eSt lA ViE

versed island
icy axle
tribal ocean
#

lemon is superior

versed island
#

mr hemlock is kewl

tribal ocean
#

who's joe?

versed island
#

griff is the real admin

olive hedge
#

hemlock is great

tribal ocean
#

@whole rover mama

uncut meteor
versed island
#

$ npm install -g dogescript

green bone
tribal ocean
#

would you like to play the fix my code game?

cobalt fractal
tribal ocean
cobalt fractal
tribal ocean
#

try it out

#

it is

gentle flint
#

looking at the vc
to join or not to join, that is the question

versed island
#

to c or not to c that is the question

gentle flint
#

I c

#

u c

#

v c

green bone
#

@faint ermine take a look at your new nickname hyperlemon

flat sentinel
#

แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต แžต

#

แžต แžต แžต แžต แžต แžต

tribal ocean
#

@faint ermine hello there :D

green bone
flat sentinel
#

แžต
แžต
แžต

tribal ocean
icy axle
#

wait

gentle flint
#

can't wait

green bone
#

I only accept bribes over pypi

gentle flint
#

I have decided
I shall not join vc

uncut meteor
gentle flint
#

since that would require me to start my PC

versed island
#

and thats waste of AC current

gentle flint
#

Indeed

#

It's purely an ecological decision

#

not at all like I'm lazy af

green bone
#

I don't think it counts as NSFW

whole rover
#

lol

#

y'all leaking my cease and desists SMH

olive hedge
#

yes

#

you need an NDA + CAD combo

whole rover
icy axle
#

!ot

wise cargoBOT
cobalt fractal
#

Rickrolls? lemonshake

flat sentinel
#

yes

#

Rickrolls

whole bear
#

@flat sentinel lmao briโ€™ish boโ€™oโ€™l of wโ€™aโ€™a

rugged root
#

What are you even saying

whole bear
#

Me?

faint ermine
whole bear
#

Mr. Hemlock you kinda hot ngl ๐Ÿฅต

#

What are you even typing

#

You writing an essay or sm

rugged root
#

!ban 655169136275619852 You have a history on this server of being unable to behave yourself. It seems that you have not learned. As such, you are not welcome here. You still spam in the chat, you make obnoxious noise on your mic.

wise cargoBOT
#

failmail :ok_hand: applied ban to @slender frost permanently.

sick dew
#

.

cobalt fractal
#

@wise cargo

stuck furnace
#

Do you have a main job @sick dew ?

#

Ah right ok.

#

"Here's your code sir ๐Ÿ‘‰๐Ÿ‘ˆ"

icy axle
hoary inlet
#

anyone here knows C++ ?

#

am stuck !!

#

stuck in pointers

#
#include <iostream>

using namespace std;


int *create(size_t size, int value) {
  int *new_storage{nullptr};
  new_storage = new int[size];
  for (size_t i{0}; i < size; ++i) {
    new_storage[i] = value;
  //for (int i{0}; i < size; ++i) {
    //cout << i << endl;
  return new_storage;

  //}
  }
}

void display (const int *const bond, size_t size) {
  for (size_t i{0}; i < size; ++i) {
    cout << *(bond + i) << endl;
  }
}

int main() {
  int value {};
  size_t size {0};
  int *storage {nullptr};

  cout << "What is the size of array you want ? " ;
  cin >> size;
  cout << "What do you want the default variable to be ? ";
  cin >> value;

  storage = create(size, value);
  //for (auto i{0}: storage) {
    //cout << i << endl;
  //}


  display (storage, size);
  delete [] storage;
  return 0;
}
#

3,15794368,0 are the result on entering both values 3

#

am just trying different things and don't want to write the whole statement again

#

I can't hear clearly @stuck dirge

#

๐Ÿ‘

stuck dirge
#
#include <iostream>

using namespace std;

int *create(size_t size, int value)
{
    int *new_storage{nullptr};
    new_storage = new int[size];
    for (size_t i{0}; i < size; ++i)
    {
        new_storage[i] = value;
        //for (int i{0}; i < size; ++i) {
        //cout << i << endl;3
        

        //}
    }

    return new_storage;
}

void display(const int *const bond, size_t size)
{
    for (size_t i{0}; i < size; ++i)
    {
        cout << *(bond + i) << endl;
    }
}

int main()
{
    int value{};
    size_t size{0};
    int *storage{nullptr};

    cout << "What is the size of array you want ? ";
    cin >> size;
    cout << "What do you want the default variable to be ? ";
    cin >> value;

    storage = create(size, value);
    //for (auto i{0}: storage) {
    //cout << i << endl;
    //}

    display(storage, size);
    delete[] storage;
    return 0;
}
stuck dirge
#

welcome

smoky dust
#
template <typename T>
class Vector2 {

public:
    T x;
    T y;

    Vector2(T x, T y) : x(x), y(y) {}
};```
#

C2955 'Vector2': use of class template requires template argument list ecosystem

stuck dirge
#
template <typename T>
class Vector2 {

public:
    T x;
    T y;

    Vector2<T x, T y> : x(x), y(y) {}
};
smoky dust
#

()

#

Vector2<T>(T x, T y) : x(x), y(y) {}

drowsy phoenix
#

hello

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @dapper python until 2021-02-14 23:56 (9 minutes and 59 seconds) (reason: burst rule: sent 8 messages in 10s).

terse needle
#
  int getBookIndex(std::string name){
    for (int i; i < length(); i++){

      if (i == 0){
        std::cout << inStore[i].name;
      }
      if (inStore[i].name == name){
        return i;
      }
    }

    return -1;
  }
whole bear
#

I can't talk

uneven urchin
#

#voice-verification

mortal burrow
#
a = [1,2,3,4]
del a[1]
a 
[1,3,4]
verbal oasis
#

!server

wise cargoBOT
#
Server Information

Created: 4 years, 1 month and 6 days ago
Voice region: us-east
Roles: 82
Member status: status_online 29524 status_offline 118889

Members: 148412

Helpers: 90
Moderators: 28
Admins: 14
Owners: 3
Contributors: 36

Channels: 210

Category: 26
News: 8
Staff: 58
Text: 108
Voice: 10

hard wyvern
#

hello

vital mantle
#

hey

pure anchor
#

Sorry?

hoary inlet
#

another day another problem ๐Ÿ˜Ÿ

hushed elm
#

that's always so

hoary inlet
#

can I ask a c++problem

hushed elm
#

you can sure ask but most people here know python

hoary inlet
#

yeah can't find any help on c++ discords

#

class has no member named set_name

#

I have created it in 3 diff. files

#
#include "account.h"


int main () {

  account hello;
  hello.set_name("Frank Castallone");
  hello.get_name();
  hello.set_balance(4582.65);
  hello.get_balance();

  return 0;
}
hushed elm
#

what's in account.h?

#

.randomcase whyareyouusingc++

viscid lagoonBOT
#

wHyAREYOUUsIngC++

hoary inlet
#
class account {
private:

  //Attributes
  std::string name;
  double balance{0};

public:

  void set_balance(double bal) {
    balance += bal;
  }

  double get_balance() {
    std::cout << "Balance : " << balance << std::endl;
    return balance;
  }
  // Methods decleared outside of the class.

  void set_name(std::string n);
  std::string get_name();

  bool deposit(double amount);
  bool withdraw(double amount);

};```
hushed elm
#

that's not good, because you can't use account.set_name()

#

big boy

hoary inlet
#
#include "account.h"

void account::set_name(std::string n) {
  name = n;
}

std::string account::get_name() {
  std::cout << "The account owner's name is : " << name << std::endl;
  return name;
}

bool account::deposit (double amount) {
  balance += amount;
  std::cout << "New Balance : " << balance << std::endl;
  return true;
}

bool account::withdraw (double amount) {
  if ((balance - amount) >= 0) {
    std::cout << "Transaction successful." << std::endl;
    balance -= amount;
    std::cout << "New Balance : " << balance << std::endl;
    return true;
  } else {
    std::cout << "Transaction failed." << std::endl;
    return false;
  }
}```
hoary inlet
hushed elm
#

idk i don't know c++

terse needle
#

why are you using classes in a C header file

gentle flint
#

Sir Patrick Michael Leigh Fermor, DSO, OBE (11 February 1915 โ€“ 10 June 2011), also known as Paddy Fermor, was a British author, scholar, soldier and polyglot who played a prominent role behind the lines in the Cretan resistance during the Second World War. He was widely regarded as Britain's greatest living travel writer during his lifetime, bas...

hoary inlet
#

check out gen.lib

terse needle
hoary inlet
terse needle
#

oh

hoary inlet
terse needle
#

yes

#

you want it to be .hpp

hoary inlet
#

still showing the same error

#

what is the member part of the calss

#

like the variable I declare in the class

terse needle
#

I can't help you out further from here, ask in that server I sent you and provide detail

sick dew
zealous wave
sick dew
#

ngl it looks like a paginated version of mine xD

cloud stratus
#

Ummmmm how can 8 ** 2 * 3 ** 2 output 256?

#

yep

#

which isn't 256

#

eval()?

zealous wave
#

!e print((8 ** 2) * (3 ** 2))

wise cargoBOT
#

@zealous wave :white_check_mark: Your eval job has completed with return code 0.

576
zealous wave
#

!e ```py
print(8 ** 2 * 3 ** 2)

wise cargoBOT
#

@zealous wave :white_check_mark: Your eval job has completed with return code 0.

576
cloud stratus
#

Yeah, the thing is... it outputs 256 and I hate my code