#voice-chat-text-0
1 messages ยท Page 757 of 1
i-
psyche
.define psych
D:
$help
Torquing points.
.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.
.riddle
You have 10 seconds before the first hint.
.wolfram psych
he was eaten
expelled?
Nobody got it right...
i-
woah
.riddle
You have 10 seconds before the first hint.
.ttt
It's time for the game! Let's begin.
๐ด ๐ฝ ๐ด
๐ฝ ๐ฝ ๐ด
๐ฝ ๐ด ๐ฝ
Well done @honest pier for getting it right!
You have 10 seconds before the first hint.
It's a DRAW!
@amber raptor
.ttt help
It's time for the game! Let's begin.
๐ด ๐ฝ ๐ด
๐ฝ ๐ด ๐ฝ
๐ฝ ๐ด ๐ฝ
.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.
bugs bunny
i-
.ttt @stuck furnace
You are not authorized to use this command.
hax
BUGS BUNNY! 
Well done @stuck furnace for getting it right!
Listen to me bot!
It's a DRAW!
๐
.ttt
It's time for the game! Let's begin.
๐ด ๐ฝ ๐ด
๐ฝ ๐ฝ ๐ด
๐ฝ ๐ด ๐ฝ
Most chaotic game of tic tac toe ever
It's a DRAW!
It's time for the game! Let's begin.
๐ด ๐ฝ ๐ด
๐ด ๐ฝ ๐ฝ
๐ฝ ๐ด ๐ฝ
It's a DRAW!
#sir-hemmerbot-commands
#mr-hemlock-commands
.riddle
You have 10 seconds before the first hint.
eggs
EGG
Oh right
.ttt
It's time for the game! Let's begin.
๐ฝ ๐ฝ ๐ด
4๏ธโฃ ๐ฝ ๐ด
7๏ธโฃ 8๏ธโฃ ๐ด
:tada: AI won this game! :tada:
.ttt
It's time for the game! Let's begin.
๐ฝ ๐ฝ ๐ด
๐ด ๐ฝ ๐ฝ
๐ฝ ๐ด ๐ด
5
It's a DRAW!
There's also 'infix'
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");
}
.python
.source
Like app is an infix of pineapple.
I think ๐ค
๐ฎ
HA
for(int counter = 0; counter < 10; counter++)
{
Console.WriteLine($"Hello World! The counter is {counter}");
}
counter is like the current position in the list (index)
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
wow
@dull hollow try running your code with pythontutor.com
Bit more visual than a debugger.
25 - 30 in Brave
immutable mutable
!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)
@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
!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")
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
Found the: 7 and pos 6

lol
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...
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 ๐
def myexample():
global free
free = "hey"
myexample()
print(free)
free= [1,2,3]
def myexample():
global free
free = [6,7,8]
myexample()
print(free)
!e
!e ```py
free= [1,2,3]
def myexample():
global free
free = "hey"
myexample()
print(free)
lul, my discord is not connecting
!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
@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
!code
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.
odomotry
Send @viscid lagoon "Doorgiveaway123" to join the giveaway
type !drop
!stand
!drop
i-
!drop didnt do anything
i-
i-
i-
!user

Created: 4 years, 8 months and 24 days ago
Profile: @honest pier
ID: 182894631921516545
Joined: 6 months, 29 days and 4 hours ago
Roles: <@&542431903886606399>, <@&463658397560995840>, <@&764802720779337729>, <@&267630620367257601>, <@&799041111573266503>
Total: 0
Active: 0
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
The curses and ncurses (new curses) libraries go back to 1980's and 90's and provide an API to create textual user interfaces (TUI). If you write a command-line application, you should consider using curses to implement functionality you could not otherwise do with standard console output. The text editor nano is a good example of a `ncurs...
#blessed
#meirl
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 ")
v is not a string
# instead of
print("You know have " + v+u)
# you'll do
print("You know have " + str(v) + str(u))
!fstring
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.
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 ")
str(v + u) instead of str(v) + str(u)
print("You know have " + str(v+u))
You running a marathon Alpha?
lol
np ๐
thanks it works
data.append( <string>.lower() )
You are a bit @whole bear
thanks
!e
data = [1, 2]
if 1 in data:
print(True)
@terse needle :white_check_mark: Your eval job has completed with return code 0.
True
@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')
So is data a list?
You might want to do some quick validation with an assert isinstance(data, list)
I mean, including that line may save you from a headache in the future ๐
eh
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
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)
Locked down fully here
Yeah same @terse needle ๐
Literally made no difference to my life...
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?
show code
York's alright
now if i use global mode, it works, but i dont want to
Indentation's a little off in the code you pasted Krish
if inside_tunnel is false, and mode != 1, then mode will not be defined
In London it's like -1C and I'm freezing. I couldn't imagine the like -20C that you get in Canada๐
@honest pier any ideas?
Ah, so the mode is a global variable @plush willow ?
if i make that it works, but i dont want to
i literally just told you the issue
ahh, okay :/
Right. You might be able to re-structure your code to avoid the use of globals.
Can we see more of the code?
lul
i got 32GB of ram
Oh nice
like a Ryzen 3 cpu
That's like the new AD/BC
Pre-iPhone and post-iPhone
Or, the other way around....
8GB here 
To be fair, they did invent the internet ๐ @amber raptor
Made of money...
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
Sure but IPs valuable resource
I bought a couple of these https://www.amazon.com/gp/product/B07W6PZP3N/
Playing siege and burning an iso to a usb
it's more of a flex @amber raptor
What is?
iphone 12
Eh
# 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? ๐
Is the definition of a conditional on something?
Hence the 'might be'
Ayem twenty years old
hmm, the function m() returns two values
oh i see
there are conditions in m() which effect the value of a[1]
you put a = m() in an indent, i'm guessing that's an if statement
really? whats the if here?
Can you paste the lines of code that come before?
English only, please
please
Check out #voice-verification if you're wondering why you can't speak yet.
You need a certain amount of activity on the server before you can speak in voice chat here.
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()
can you paste the lines ahead of the second block of code
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.
I don't know how to join the server
Without running the code in all possible scenarios, the linter doesn't know if it is always defined.
We have put a requirement in place that people have to meet before they can speak
It's to prevent trolls from causing disruptions
oh I think I understand. so because it doesn't know its value until I run it, it makes the message?
@tiny seal "something"
thank you
okey understand
you broke the silence
I do what I can
How does Mariah Carey do that crazy thing with her voice? ๐
!voice @whole bear
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
You lost a lot by not taking me to the server
Just noticed you asked in one of the other channels, just pointing you to where you can learn more about our system
bb
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.
Aylavyu bebeklerim
English only, please
Aylavyuuuu
@stuck furnace @honest pier ty guys ๐
Did you fix it? 
That's the spirit!
haha
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)
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...
It's a bad sign when the Wikipedia article is written in the past tense.
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...
Lots of catalogues @uncut meteor

@vivid palm I hope this makes you smile through the pain
TYTY
Technical debt
yeah good
Got it now
Yeah, not sure how to interpret that Griff ๐
Cool as a cucumber
yeah
LX is always a nice dude in the vc
i have not had a energy drink in 3 months
it is a constant variable on the planet earth

^ u in 3 mins
I haven't had an energy drink since last summer when I drank too much caffeine and got chest pains 
Ooooof
@stuck furnace I get the eye twitches
i've not had one for a while
got to do some research and PROGRAMMING!
I used to be a Monster Fiend
ah i just got emerge (2 for 80p)
@prisma sail What kind of research
i do game development
Oh nice!
so on the acropolis
thats lit
we need to make a modular asset pack
So developing the modularness I guess?
so like an asset pack based on the acropolis
inc pillars
roof tiles
stuf like that
Right right, I was more wondering what programming part you were working on
What games have you worked on?
Still more than I've ever done
I'm working on trying to make a Riichi Mahjong game
but my course is UE4 not unity
agreed, ue4 is too much for smalldev
:(
Unity is so clean now
mhm
yea
its op
i joined
Claim to fame: my sister's ex-boyfriend was his P.E. teacher ๐
Yeah, not sure what happened ๐
Not tell people to inject bleach as a cure ๐
yummy
Sorry. I've let you down 
Pillow is the worst most broken library ever the developers should be ashamed and quit
example?
Me reinstalling 15 times and canโt import Image because it canโt find _imaging
what os?
Also, consistently denying the outcome of the election for two months didn't help.
That gave them the motive.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
you're just gonna run into the same problem as in ww2
wind changes and you gas your own troops
Cya Hemlock ๐
Hello all
I started playing elastomania again :3
More-or-less on BBC Radio 4 is great ๐
But mostly focussed on British news.
They talk about statistics from the news.
you mean Bring Back Clarkson?
Oh yeah, CSM is alright
Gtg, see ya guys!
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)
step one, stop using that god awful string formatting
!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)
@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
๐ค
more like 1300,000
Two non-Latinas are back to be the blind-fold judges of the sexiest Spanish accent featuring men from Puerto Rico, Venezuela, Spain, and Honduras
GET MORE BUZZFEED:
https://www.buzzfeed.com
https://www.buzzfeed.com/videos
https://www.youtube.com/buzzfeedvideo
https://www.youtube.com/boldly
https://www.youtube.com/buzzfeedblue
https://www.youtub...
https://www.youtube.com/watch?v=QNsbUelnOFY The song in this
MEME RATATOUILLE | #FabricioFlpTv
Vรญdeo de Fabricio๐จ๐พโโ๐ฉบโฝ๐๐ฝโโ๐ธ
Vai lรก no canal do meu colega: http://youtu.be/zcrd7nkOtLA
Nรฃo clique aqui:https://www.youtube.com/playlist?list=PLzW5127zPRpMfWmjfTWT9PSnZXJULNMnt
2:30
what am i watching lmao
๐ณ
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?
how do i check that my sublime is running the corrct version?
do i use the terminal?
Hi
Use terminal
sorry griff my parents are nagging me to go to bed
np
i would appreciate if we can talk about tomorrow as i quite abruptly ended without saying anything....maybe if you are free?
no worries
i understand if you are busy
i very much acknowledge that u kindly tried
gn
@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

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}')
if check_exsistence('database',username,password):
#ect
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):
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]):```
@sick dew Hi what projetcs are you working on please speak rather than typing
oh I am working on a discord bot but am out of ideas
!paste
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.
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.
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
Test 12

!e
class MyClass:
def __init__(self):
print("Created the class")
my_class = MyClass()
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
Created the class
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),
)
{
"cmd": ["python3", "-i", "-u", "$file"],
"file_regex": "^[ ]File \"(...?)\", line ([0-9]*)",
"selector": "source.python"
}
\AppData\Roaming\Sublime Text 3\Packages\User
sublime ๐คข
ok, I got a serious question
what is this?
ok, what's the worst that could happen if I reveal my discord tag? accidentally ofcourse
its called tag right? that 4 digit number
ohh, ok
someone was going on a rant in off-topic, not to reveal discord tag to anyone
๐ was public already
"discriminator"
735485653902557204
They may have been referring to one of the private ones.
how can you use tabs and spaces?
what kind of muscle memory is that?
spaces ๐
at least use ctrl + ]
custom ๐คฉ
I'm a student, never met another who use spaces
they are a minority in programming world
Not in Python.
sad
but yeah, where else would they exist
python is the only one with indent stuff, right?
In between people's heads?
something in use today, popular
not from 20-30 years ago
my schedule for today ๐
brb
hey, Hemlock, what's this?
hey Hemlock, what scam is this? ๐
wanna see later
!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))
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
-2
what's the difference between a URL and URI ?
huh?
URL is not used for files?
just for pages?
found a blog
btw, can't speak because of this
hear you all clearly though
brb
COGS = []
LOADED = False
for cog in LOADED_COGS:
if cog_name == cog:
LOADED = True
for cogs in os.listdir("./cogs"):
COGS.append(cogs[:-3])
def square(num: int) -> int:
"""
Squares a number
:param num: The value to square
:return: the squared value
"""
return num**2
print(square(5))
Greetings
๐ฆ
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?
Is there a site you can test it out on?
just this much?
hmm
srry my bad, args
!dict-get
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).
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
this is what I have right now
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 ๐
but there's a folder or something with html templates in it right?
๐
i just wanna have friends
yike
Hey Tanya
i thought scam
big scam is scam
lol
what do you want?????????
bruh
theres so many hackers around me๐
you are the one sending random people friend requests
anyway , should have listened to em
scam
Unfriended and blocked
bye
Hi
I would recommend the use of fastapi instead
@zealous wave
@whole bear got it
๐ป ๐๏ธ
ws
Hello folks ๐
ehllo
elloh
yello
"Yargbl!"
heell yeah
This is how it should be done. If you do it different you are wrong.
๐คฎ
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
https://not-malware.com is my fav website
If bees had an API, would it be an apiAPI?
@flat sentinel https://www.youtube.com/watch?v=EMXfZB8FVUA&list=PLqnslRFeH2UrcDBWF5mfPGpqQDSta6VK4&ab_channel=PythonEngineer
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...
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
...
hey is corey schafer from australia
This audio had me rolling so I quickly animated it! Goofy is in court for something he may have possible done...
SUBSCRIBE! https://www.youtube.com/c/shigloo
Original Audio: https://www.youtube.com/watch?v=aYFhzQYKnwI
A Zoom court hearing in Texas took a detour when an attorney showed up looking like a kitten. That's because of a Zoom filter that had been activated on the attorney's device, which obscured his appearance and made him look like a cat. (Feb. 9)
Subscribe for more Breaking News: http://smarturl.it/AssociatedPress
Website: https://apnews.com
...
whats this bug
its a but in my program can you help me fix it
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
Which of the following lines of code correctly assign a String containing the text "My String" to the variable 'text'?
!e ```py
print('x' in ['x','y'])
@terse needle :white_check_mark: Your eval job has completed with return code 0.
True
if โrโ in [โrโ]
mylist = ['r']
if โrโ in mylist
cosh-1
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
yep
what do you need?
hello
"i am here live i am not a cat"
probably something a cat would say mayhaps
@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#
HMMMMMM
@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
Okay
!e
mylist = [x for x in range(0,51) if x % 3 == 0]
print(mylist)
@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]
@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
Hello @fiery hearth
what'sup?
supp
has anyone used the menus extension of discord.py
nope
@zealous wave I'm having trouble reading that. Would you mind speaking it?
well its something that extends the basic discord.py module i guess
I was being facetious.
What is the question?
@tall latch https://github.com/ChiliPy/ExampleBot
An example bot for the discord.py channel. Contribute to ChiliPy/ExampleBot development by creating an account on GitHub.
Th is is th is
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()
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.
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")
!server
!server
!source
How are you?
what are you guyus working on
Oh, I canโt speak
i didnt get
ahahah
omg
Jake and Toxic are you make a bot together?
tasks on codeWars are good?
i cant solve the first
Toxic
I have a list [1, 1, 1, 2, 1, 1] and 1 unique number in this list. How can I return this number?
sort the list
you can use sets and .count() on it
.
thanks
Solved
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?)
๐ 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 ?
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Thank you!
So its this one ? https://python.swaroopch.com/
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 !
wrong channel sry
that because most of them not have permission to chat, including me
fun
very
well how about you start a convo?
Hello all
hello
a
why cant i join staff meeting
your not staff
why should you be able to?
lol hey whats everybody up to?
sup ?
zup
ฮถup
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...
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
@calm swallow
u can ask
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
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
JavaScript for the moon.
lemon is superior
mr hemlock is kewl
who's joe?
griff is the real admin
hemlock is great
@whole rover mama
$ npm install -g dogescript
Yeah, I got a S&D as well
would you like to play the fix my code game?
That game takes too long ๐ฆ
why would you do this

looking at the vc
to join or not to join, that is the question
to c or not to c that is the question
@faint ermine take a look at your new nickname 
แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต แต
แต แต แต แต แต แต
@faint ermine hello there :D
@faint ermine you do have a nickname
แต
แต
แต
can you not?
wait
can't wait
I only accept bribes over pypi
I have decided
I shall not join vc
since that would require me to start my PC
and thats waste of AC current
I don't think it counts as NSFW
!ot
Off-topic channels
There are three off-topic channels:
โข #ot0-psvmโs-eternal-disapproval
โข #ot1-perplexing-regexing
โข #ot2-never-nesterโs-nightmare
Their names change randomly every 24 hours, but you can always find them under the OFF-TOPIC/GENERAL category in the channel list.
Rickrolls? 
@flat sentinel lmao briโish boโoโl of wโaโa
What are you even saying
Me?
british bottle of water
Mr. Hemlock you kinda hot ngl ๐ฅต
What are you even typing
You writing an essay or sm
!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.
:ok_hand: applied ban to @slender frost permanently.
.
@wise cargo
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
๐
#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;
}
thanks, it worked
welcome
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
template <typename T>
class Vector2 {
public:
T x;
T y;
Vector2<T x, T y> : x(x), y(y) {}
};
hello
: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).
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;
}
I can't talk
#voice-verification
a = [1,2,3,4]
del a[1]
a
[1,3,4]
!server
hello
hey
Sorry?
another day another problem ๐
that's always so
can I ask a c++problem
you can sure ask but most people here know python
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;
}
wHyAREYOUUsIngC++
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);
};```
#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;
}
}```
so what am I doing wrong ?
idk i don't know c++
why are you using classes in a C header file
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...
check out gen.lib
?
it was about the book
oh
c header files, .h is a c-file ?
still showing the same error
what is the member part of the calss
like the variable I declare in the class
I can't help you out further from here, ask in that server I sent you and provide detail
Noice
ty ty
thanks !!
!e print((8 ** 2) * (3 ** 2))
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
576
!e ```py
print(8 ** 2 * 3 ** 2)
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
576
Yeah, the thing is... it outputs 256 and I hate my code







42298
105968