#voice-chat-text-0
1 messages · Page 873 of 1
It did, however I'm still double checking some stuff and have additional computers I have to get started on
So for the latter half it worked perfectly
I’ll make you a Powershell developer yet
this would be an example of a "perfect instrument"
heh
The instrument itself is doing the circular breathing
So I'm not just biased towards my instrument
piano:
haha
That's not how epilepsy works
who wants to live video play the game i made

Because I'm getting old
@rugged root wanna play my game?
Is it on a repo?
nah, just donwload this exe and run it
nah but its on a python script i used installer on
!warn 603610743811604513 Stop with the Nazi jokes. Last warning you're getting about that.
:incoming_envelope: :ok_hand: applied warning to @tough panther.
linux, sry
Glad I’m not crazy
You are, just not for this reason
yo
I’m Kubernetes crazy
@rugged root here is the game zip
Nazi jokes is the only thing I'm good at 😭
I'm not comfortable with running something I can't see the code for
you realize running a random exe from the internet is quite unsafe, right
im failing help me someone
@tough panther Work on getting some new material. One that's more server acceptable
https://musiclab.chromeexperiments.com/Song-Maker/song/6118852218322944
listen to it on marimba or your ears will fall off
damm
Here is totally safe not malicious executable everyone!
here was the code then lol tryed to rick roll ya
import os
os.system("pip install keyboard")
os.system("pip install mouse")
import time
import mouse
import keyboard
import webbrowser
webbrowser.open("https://www.youtube.com/watch?v=a3Z7zEc7AXQ")
for i in range(30):
mouse.move(-100, -100, absolute=False, duration=None)
time.sleep(0.1)
mouse.move(620, 485, absolute=False, duration=None)
mouse.click("left")
Click this link, ik you wouldn’t⫸https://cutt.ly/sbkBibT
🧑Socials🧑
Instagram⫸http://bit.ly/Insta_RVE
Reddit Community⫸http://bit.ly/RVE_Reddit_Community
Twitter⫸http://bit.ly/RVE_Twitter
Pinterest⫸http://bit.ly/Pinterest_RVE
Notavirus.zip
Figured as much
lmao
Chacoupy
(i promise this is not a rick roll)
@tough panther Please don't make my job harder than it has to be
I can feel it's going to be something not cool
Like
I can hear the smirk on your face
Poll:
🅰️ Stalin Jokes
🅱️ Pinochet Jokes
🇨 Mussolini Jokes
Just learn Kotlin
:'
Just give NH back to Canada
Actually Mr. Hemlocked requested I diversify my Humor
diversify yourself
diversify your programming
curb your python
Curba cabana
Curbra

curvy briefs
Hey @urban coral!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
• If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
• If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
🤨
@hollow haven 
hullo!
@hollow haven are you well
How's it goin'
do you have brain damage
lmao
get ready to be put in a microwave
reject humanity
return to chicken
Eat the chicken tender, BE the chicken tender
Reject Prius, return to Jeep
tender of chickens
Be the tender
IMAX but chicken
It's a damn good tendie
Be chicken
hmmmm
Maybe the real chicken tender is the Pythons we made along the way
Say you have a deck of cards. A person wearing a CPU for a hat can place a card down once a second. It takes this person 52 seconds to place all the cards.
Now we have 52 people. They're each wearing a GPU core for a hat and have one card each. It takes each person 10 seconds to place a single card.
New Yorkers/New Jerseyians?
inneficient but quicker would be my guess
Wait Boston? groooooooooooss
when you can't pronounce bastard
Blastard
byastad
They don't ever do that
bustard
YOU MUSTARD!
I don't think I got muted for my constant nazi jokes
lmfao there are sp many possibilities
You are, however
consume with custard
CM from it
wad-der
Waddle
Khakis = what you staht ya cah with
bastognenne
pugno
hey Jarl
yarl
.yaml
@wind cobalt As a former Virginian I can confirm that we use "us" instead of "we", or the other way around.
you're no longer a virgin(ian)?
ya'll vs all o'ya
which one is better?
No I moved away to NC a few years ago, sadly.
I see
Of course I didn't have much of a say in the decision. 😆
Sarstedt is a town in the district of Hildesheim, Lower Saxony, Germany. It has approximately 18,500 inhabitants. Sarstedt is situated 20 km south of Hanover and 10 km north of Hildesheim. Sarstedt station is on the Hanoverian Southern Railway and is served by the Hanover S-Bahn.
The GEO 600 gravitational wave detector is located nearby.
The for...
Vulkaneifel
Vulkaneifel (German pronunciation: [vʊlˈkaːnʔaɪfl̩]) is a district (Kreis) in the northwest of the state Rhineland-Palatinate, Germany. It is the least densely populated district in the state and the fourth most sparsely populated district in Germany. The administrative centre of the district is in Daun. Neighboring districts are Euskirchen (Nor...
Is this it? https://en.wikipedia.org/wiki/Volcanic_Eifel
The Volcanic Eifel or Vulkan Eifel (German: Vulkaneifel) is a region in the Eifel Mountains in Germany that is defined to a large extent by its volcanic geological history. Characteristic of this volcanic field are its typical explosion crater lakes or maars, and numerous other signs of volcanic activity such as volcanic tuffs, lava streams and ...
Back in a bit, have to take care of some work stuff quickly
Quick question for the vc: Do you think that Tesla are actually helping the environment and are they worth the money?
Only in areas where the electricity comes from renewables
Where I live it’s all hydro and nuclear.
I think that Teslas are a little to expensive for the amount that they "save the environment". Also the only reason I'm not talking is because I am not voice verified. :\
I have to wait until tmmr or later today to be able to be verified
@willow light my dad's work does I think
Comcast: because someone had to have worse customer service than Verizon
Been raining whole day
that's a bs reason tho
if they're "saving the env" they should price it a bit lower 
this just raises the bar to get an electric vehicle
Yes
Rainy season . Can't help. Hope the Ganges doesn't floods.but it does every year
it's a virtual environment @west nymph
Because diesels are more efficient, they do in fact emit less carbon dioxide than gasoline engines. Diesel fuel contains about 12 percent more energy per gallon than ordinary gasoline, and about 16 percent more energy than gasoline that contains ethanol.
https://www.sierraclub.org/sierra/ask-mr-green/do-diesel-engines-produce-less-co2-regular-engines
@willow light What is a propane engine?
never heard of it.
does ethanol reduce efficiency?
why is it added then?
idk if I am the best person to ask, I just ctrl+c, ctrl+v.
also since Hydrogen has a 150kJ/mol heat of combustion (the highest) why not just burn that
not like we cannot produce it
and as a plus
burning that just produces water
and it's not even a hydrocarbon so no CO2
Wohoo, my friends brother's COVID test came back negative!!
the only downside I could think of was storage
h2 is extremely volatile
very nice!
Alright guys imma go, bye
pronounce this , "scheveningen"
Hi can some one tell me what df.head().T does ? .T specifically is it transpose ?
In what context? Pandas?
yes
i have the data in a DF
i used .T and it seems to transpose the data but dont see a description on the pandas documentation
Yup @lethal grotto It's For df.head().T is for Transpose. As I can see its Official Documentation page is blank.
But you can visit this site for more resources
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.transpose.html
The property T is an accessor to the method transpose().
awesome thank you
So no open-carrying in Deutschland?
I guess if no-one has a gun then we can all knuckle up. Fun times
I mean the UK and Australia have situations like this
UK has more stabbings, but it's a bit easier to run away from a knife than a gun
The UK also has some guns that pop up in the underground areas, where in Germany it really doesn't seem that way
Also, I don't know about the situation in Australia
We Are Legion (We Are Bob) (Bobiverse) (Volume 1) https://www.amazon.com/dp/1680680587/ref=cm_sw_r_cp_api_glt_fabc_AAZRYE74Y4YB3RW4ZBGD
秀姸
수연
my chinese coworker calls me that actually
26 words, 1 kanji and 47 sentences found. See the full details ...
Like... as a term of affection?
no bc she can't pronounce 's' properly
Fair
'shoo'
lol
My Twitter: https://twitter.com/prozd
My Let's Play channel, Press Buttons n Talk:
https://www.youtube.com/channel/UCSHsNH4FZXFeSQMJ56AdrBA
My Merch/T-Shirt Store: http://www.theyetee.com/prozd
My Tumblr: http://prozdvoices.tumblr.com/
My Twitch: https://www.twitch.tv/prozd
My Instagram: https://instagram.com/prozd
My Patreon: http://www.patreon...
honestly true
import discord
from discord.ext import commands
client = discord.Client()
bot = commands.Bot(command_prefix="!")
@client.event
async def on_ready():
print("logged in")
@bot.command(name="test")
async def recommend(ctx = commands.Context):
await ctx.send("test")
client.run("token")```
Hewwo
gorengan = fried food
Speaking of bread wrapper, when I was in HS one of my breads was wrapped in HIV positive test result paper
nice
This is what it supposed to look like with the food
yikes YIKES yikes
delicious!
Snackability
Safety 1
Food poisoning?
Amsterdam is the city itself
(RE) stands for region, so also the surrounding area
translations are
violent and sexual crimes
mistreatment
threatening and stalking
threatening
stalking
sexual crime
how
This conversation seems weird
schennis der eerbaarheid means violation of virginity (I guess? not sure)
last one is sex with a minor
Is handholding a crime
Google says "defamation of indecent"
Indecent exposure?
hello people 👋
different server I'm in
so, reactifulx
the threads are open for everyone
but still there are only two threads in total on that server 🙂
only gentleman on that server 🙂
no trolls
what's a female gentleman
gentlewoman?
"Good evening ladies and gentleman"
I think it's just "lady"
oh, that makes sense
SQLite or SQL statements?
sqlite I assume
Pandas makes that very easy
dataframe = pandas.read_csv('sample.csv')
dataframe.to_sql(con=engine)

You want to import your cvs file to a relational database ?
which database is the target ?
all I can do is write a COPY command to import a csv in my database 🤷♂️
not through pandas certainly
sentence_list = f.readline().strip().split(',')
arr_dicts = []
reader = csv.reader(f)
next(reader) # Skip the header row.
for row in reader:
dict_data = {}
for index, val in enumerate(row):
dict_data[sentence_list[index]] = val
arr_dicts.append(dict_data)
sql_prefixo = f"""INSERT INTO 'WeatherData' (locationid,dataprovider) VALUES(CAST({dict_data['locationid']} AS DECIMAL),{dict_data['dataprovider']})"""```
cur.execute("select * from lang where first_appeared=:year", {"year": 1972})
mystr = "select * from lang where first_appeared=:year"
cur.execute(mystr, {"year": 1972})
I love postgres
but I've learned to love sql server too
I use Postgres, but mostly only with SQLAlchemy
yeah, same, that's how I learned it, with SQL alchemy
Are we inserting, or only preparing inserts?
Always seems to happen that way, doesn't it?
all the "database manipulation" through code
I learned it properly with C#
using the sweet sweet EF Core 😻
hey Hemlock, did you come across "redux" yet?
weather.sql
with the following:
INSERT INTO mytable(locationid,dataprovider,locationcode,) VALUES (869,'Radiatus_v3','WeatherSafeColumbia869');
INSERT INTO mytable(locationid,dataprovider,locationcode,) VALUES (870,'Radiatus_v3','WeatherSafeColumbia870');
INSERT INTO mytable(locationid,dataprovider,locationcode,) VALUES (871,'Radiatus_v3','WeatherSafeColumbia871');
INSERT INTO mytable(locationid,dataprovider,locationcode,) VALUES (872,'Radiatus_v3','WeatherSafeColumbia872');```
pqsl -u weather.sql
dump?
We are, check your settings
@whole bear I can hear you
I can hear join and exit
it's a joke
but not voices
Hilarious?
lmao
Someone hasn't learned sarcasm
Didn't think it was?
I have used so much sarcasm to the point I can't detect sarcasm anymore
fk this
my output device was set to vb cable
lmao
vb cable?
yes
what that
voice box?
does using string formatting with multiple lines
makes python slower?
a way to route audio output to a mic
The only cables I have are virtual ones
when string stuff start getting complicated in C# and Java
we use StringBuilder class for faster executing code
You want to load a csv into a SQL dump?
hey @gentle flint you can tell me now ig ¯_(ツ)_/¯
!e
ham = "meat"
spam = (
"Ham is great. "
f"That's because it's a kind of {ham}. "
"Gotta love it."
)
print(spam)
with open(os.path.dirname(file_path) + '/weatherdata.csv', 'r') as f:
sentence_list = f.readline().strip().split(',')
arr_dicts = []
reader = csv.reader(f)
next(reader) # Skip the header row.
output = []
for row in reader:
dict_data = {}
for index, val in enumerate(row):
dict_data[sentence_list[index]] = val
arr_dicts.append(dict_data)
sql_prefixo = f"""INSERT INTO 'WeatherData' (locationid,dataprovider) VALUES(CAST({dict_data['locationid']} AS DECIMAL),{dict_data['dataprovider']})"""
output.append(sql_prefixo)
with open('weather.sql', 'w') as sql_file:
for line in output:
sql_file.write(line + '\n')
@rugged root :white_check_mark: Your eval job has completed with return code 0.
Ham is great. That's because it's a kind of meat. Gotta love it.
brb
k
It's a neat little trick/alternative to multi-line strings that give you a bit more control
Since this way you can keep proper indentation without messing with the actual string
i think maybe create new table only for csv, I'm not sure about my idea
Is this your latest code?
I don't think this channel is for random images?
Wait did you make it a sticker?
What is a sql dump?
wdym?
👀
I'm guessing it's like a script for a specific purpose
ok
so If I have a database
then the "sql dump" would be a list of statements which could recreate my database, if I execute it?
@rugged root out of curiosity will this discord ever held irl meetups for fun
so, If I save those "list of statements" I've actually saved my database?
hey did the windows insider thing say anything about teams integration?
pretty sure not
@shy ravine comments?
anybody?
@wise glade if you don't find your answer on google then ask.
What about it?
because teams just seems normal... like teams...
no integration of any sort
I've been to wikipedia
but it's better to always hear it from people who've worked with that stuff
why do you think, I hang out in voice channels 🤷♂️ 😂
oh god help what do i do
with open(os.path.dirname(file_path) + '/weatherdata.csv', 'r') as f:
reader = csv.DictReader(f)
for row in reader:
sql_row = (
"INSERT INTO 'WeatherData' (locationid,dataprovider) "
f"VALUES(CAST({row['locationid']} AS DECIMAL),{row['dataprovider']})"
)
# Write it to your SQL file
windows 10 version next
nvm i thought it was win10
@stoic shale ^
why not save the date in json? ^
https://blogs.windows.com/windows-insider/2021/07/20/first-preview-of-chat-from-microsoft-teams-begins-rolling-out-to-windows-insiders/
When you push the new taskbar button, it will install the new preview of teams
@wise glade https://www.youtube.com/watch?v=S108Rh6XxPs
Backup and Restore PostgreSQL Databases for window using Pgadmin4.
you mean the new start button?
so I just need to reboot
ok
@stoic shale
No - the new button, push "Open Microsoft Teams" and it will open the new one
what new button
i just rebooted btw
See screenshot
What version are you on?
this is what I see
sleep ofcourse
study 😢
Nothing much, making code that abides rate limits
guys, can anybody help with django
Not personally, there's better people in #web-development
huh
ok
Personalization -> Taskbar
Do you see "Chat"?
If you don't, you'll have to wait for it to be enabled
Note: We are beginning to roll Chat from Microsoft Teams to only a subset of Insiders at first, and over time will increase to more Insiders. Insiders will also need to reboot to see it enabled.
ah that makes sense
I'm a bit scared to ask, but why do you have 3 edge dev's?
Personal, test, and work
ahh that makes sense
I wanted to do Railway Engineering
but then they said "railway is owned by govt. So even if you graduate, you'll have to give bullshit govt competitive exams to get a job"
and
then I gave up, immediately, split second decision 😂
lmao
mechatronics -> mechanical + electronics + computer science
and then the student gave up on life
nope, not at all
people write lmfao
and that bugs me a bit, idk why
I mean if your a is f
then why tell people 🤷♂️
lmao
8.16% 'lol'
Electrical horsepower hp(E): ≡ 746 W
bigoof
noice
10% of all messages of urs are just lol or lmao
😅
XD

use :hemshake:

it might be that hurdle jumping horse 🤔
they taught him/her to jump ropes
that's pretty cool
https://ddlc.moe/
I'm thinking of playing this 🤔
The Literature Club is full of cute girls! Will you write the way into their heart?
That's a horror game btw
it was this
Type !voiceverify in #voice-verification
and make it worth
You are not currently eligible to use voice inside Python Discord for the following reasons:
• You have an active voice ban infraction.
Yep
That's alright, you can talk through text 🤷♂️
@cinder herald #voice-verification
hi
why do you write your name as ! mark?
what are you guys talking about
Hoisting most likely
i like it
is it againist the rules
I just wanted to hear it from the person itself for once 😂
i don't think so
otherwise a lot of you guys would've been banned or something
seriously, jeez 🙂
i just want my account to be one of the first
but, why? 🤷♂️
idk it looks cool i guess
It's a good thing nobody else thought of doing that
lol
Why is MyPy so bad ;-;
now i have to talk to speak ? 
idk
new roles i guess
@rugged root shitty game I made: https://bluenix2.github.io/crackout/master/
The loading is Godot booting up so yeah :/
You have read my mind
Then I have a CI running building it, you can see the build here: https://github.com/Bluenix2/crackout/tree/gh-pages/master
ok, now what ?
it went down, while I was taking ss 🥲
That's really cool
I moved it twice, the entire game
it's too wide
I made this as well, it's in GDScript. But I didn't setup a CI for html build: https://github.com/Bluenix2/Project-Breakout
I've gotten tired today just learning Redux 🥲
@rugged root how far ahead are you in making your game?
https://smashkarts.io/
look at this
Smash Karts is a free io Multiplayer Kart Battle Arena game. Drive fast. Fire rockets. Make big explosions.
Choice is illusion
Cross-platform, Web assembly, fast game engine
Alright Google, calm down
PixiJS Examples
i heard him readjust himself in his seat so he could rant properly
That's how you know it's serious
PIP and Cargo can pull from GitHub too
Hnnnggggggg Okay
I'm going to narrow my choices down for the JS game engines I'm looking at to 5. Then I want someone (or multiple of you) to list the 3 you think would be best, then I'll pick from those/whichever one comes up the most of people's 3s
Drop 'em
panda
https://melonjs.org/
https://www.pixijs.com/
https://phaser.io/
https://impactjs.com/ <- Been interested in this one for a while since it's the engine used for CrossCode
http://www.kiwijs.org/
The game I'm wanting to make is.... essentially a card game, so all I'd need to create graphically would be the mahjong tiles, maybe some avatar pictures, etc. Simple things.
Impact (i just like it overall)
pixi (for smooth ones in mobile kinda)
melon (for simple platformer and its easy like easy easy)
Yeah I agree..
- Impact
- Pixi
- Melon
@rugged root hey
I had to write JavaScript today 😦
Pixi
Phaser
Impact
A fire? At a Sea Parks?
@rugged root I am new in this language and i would like advice from experienced people
!poll "Which game engine should I use?" ImpactJS Phaser Pixi MelonJS
🇦 - ImpactJS
🇧 - Phaser
🇨 - Pixi
🇩 - MelonJS
I just want to clarification, this is the same right? ```py
try:
raise RuntimeError("Oops")
except Exception as e:
print("Something went wrong")
raise e
Same as
try:
raise RuntimeError("Oops")
finally:
print("Something went wrong")
Anybody know any semantic difference this may have?
I am reading code and want to change it to the latter, but I am not sure if it's the same thing 🤔
preferences :)
✅ @brisk current can now stream until <t:1627672503:f>.
98195144192331776
I live to serve
1 and 3 takes more Python code to get to the C code
res2 = data[0][np.where(data[1] >= 0.75)]
Will this be faster?
let imageGallery = document.querySelector(".image-gallery");
for (let a = 1; a <= {{ numThumbnails }}; a += 1) {
let tN = document.createElement(`div`);
let tNAtt = `thumb-bar${a} thN`;
tN.setAttribute("class", tNAtt);
imageGallery.appendChild(tN);
}
const displayedImage = document.querySelector('.displayed-img');
const thumbBar1 = document.querySelector('.thumb-bar1');
const thumbBar2 = document.querySelector('.thumb-bar2');
const thumbBar3 = document.querySelector('.thumb-bar3');
const overlay = document.querySelector('.overlay');
for (let i = 1; i <= {{ numPhotoshop }}/2 ; i += 1) {
const newImage = document.createElement('img');
var xxx = `/media{{ allPhotoshop.image.url }}/photoshops/pic${i}.jpeg`;
newImage.setAttribute('src', xxx);
thumbBar1.appendChild(newImage);
newImage.addEventListener("click", displayedImageChanger);
}
for (let i = 4; i <= {{ numPhotoshop }}; i += 1) {
const newImage = document.createElement('img');
var xxx = `/media{{ allPhotoshop.image.url }}/photoshops/pic${i}.jpeg`;
newImage.setAttribute('src', xxx);
thumbBar2.appendChild(newImage);
newImage.addEventListener("click", displayedImageChanger);
}
for (let i = 7; i <= {{ numPhotoshop }}; i += 1) {
const newImage = document.createElement('img');
var xxx = `/media{{ allPhotoshop.image.url }}/photoshops/pic${i}.jpeg`;
newImage.setAttribute('src', xxx);
thumbBar3.appendChild(newImage);
newImage.addEventListener("click", displayedImageChanger);
}
function displayedImageChanger (e) {
xxx = e.target.src;
displayedImage.setAttribute('src', xxx);
}
//Image Gallery
let imageGallery = document.querySelector(".image-gallery");
for (let a = 1; a <= {{ numThumbnails }}; a += 1) {
let tN = document.createElement(`div`);
let tNAtt = `thumb-bar${a} thN`;
tN.setAttribute("class", tNAtt);
imageGallery.appendChild(tN);
}
const displayedImage = document.querySelector('.displayed-img');
const thumbBar1 = document.querySelector('.thumb-bar1');
const thumbBar2 = document.querySelector('.thumb-bar2');
const thumbBar3 = document.querySelector('.thumb-bar3');
const overlay = document.querySelector('.overlay');
for (let i = 1; i <= {{ numMobileApps }}/2 ; i += 1) {
const newImage = document.createElement('img');
var xxx = `/media{{ allMobileApps.image.url }}/mobile_app_prod_pics/pic${i}.jpeg`;
newImage.setAttribute('src', xxx);
thumbBar1.appendChild(newImage);
newImage.addEventListener("click", displayedImageChanger);
}
for (let i = 4; i <= {{ numMobileApps }}; i += 1) {
const newImage = document.createElement('img');
var xxx = `/media{{ allMobileApps.image.url }}/mobile_app_prod_pics/pic${i}.jpeg`;
newImage.setAttribute('src', xxx);
thumbBar2.appendChild(newImage);
newImage.addEventListener("click", displayedImageChanger);
}
for (let i = 7; i <= {{ numMobileApps }}; i += 1) {
const newImage = document.createElement('img');
var xxx = `/media{{ allMobileApps.image.url }}/mobile_app_prod_pics/pic${i}.jpeg`;
newImage.setAttribute('src', xxx);
thumbBar3.appendChild(newImage);
newImage.addEventListener("click", displayedImageChanger);
}
function displayedImageChanger (e) {
xxx = e.target.src;
displayedImage.setAttribute('src', xxx);
}
literally takes up an entire screen
!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.
@ashen rapids Just for next time when you have code that large, please use our hastebin
The 3rd one forces a tuple to be created, so that could slow it down? The first one could be to do with how NumPy handles it, when you pass it directly that means NumPy has to figure stuff out I guess?
!e ```py
import dis
import numpy as np
data = np.random.rand(2, 10000)
def f():
data[0][data[1] >= 0.75]
print(dis.dis(f))
def f2():
i = np.where(data[1] >= 0.75)
data[0][i]
print(dis.dis(f2))
def f3():
data[0, data[1] >= 0.75]
print(dis.dis(f3))
@faint ermine :white_check_mark: Your eval job has completed with return code 0.
001 | 6 0 LOAD_GLOBAL 0 (data)
002 | 2 LOAD_CONST 1 (0)
003 | 4 BINARY_SUBSCR
004 | 6 LOAD_GLOBAL 0 (data)
005 | 8 LOAD_CONST 2 (1)
006 | 10 BINARY_SUBSCR
007 | 12 LOAD_CONST 3 (0.75)
008 | 14 COMPARE_OP 5 (>=)
009 | 16 BINARY_SUBSCR
010 | 18 POP_TOP
011 | 20 LOAD_CONST 0 (None)
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/bakivewehe.txt?noredirect
I don't think you even need to make the random array, as the dis doesn't care about checking with the data
!codeblock
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.
def som():
for i in range(x):
return(random.randint(1000000000, 9999999999))
pyautogui.typewrite(som())```
!e ```py
def som():
for i in range(x):
return(random.randint(1000000000, 9999999999))
pyautogui.typewrite(som())```
@whole bear :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 5, in <module>
003 | NameError: name 'pyautogui' is not defined
!e
def f():
return 10
print("heyo")
f()
@honest pier :warning: Your eval job has completed with return code 0.
[No output]
!e ```py
import pyautogui
def som():
for i in range(x):
return(random.randint(1000000000, 9999999999))
pyautogui.typewrite(som())```
@whole bear :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'pyautogui'
lmao
!e ```py
a = 1
a = str(a)
print(type(a), a)
@faint ermine :white_check_mark: Your eval job has completed with return code 0.
<class 'str'> 1
!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.
!e
a = 10
b = 5
answer = a + b
answer = print(f"The answer of a + b = {answer}")
@whole bear :white_check_mark: Your eval job has completed with return code 0.
The answer of a + b = 15
ez
!e
a = 10
b = 5
answer = a + b
answer = print(f"The answer of {a} + {b} = {answer}")
@whole bear :white_check_mark: Your eval job has completed with return code 0.
The answer of 10 + 5 = 15
better one
!e print(int("abcdef"))
@faint ermine :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ValueError: invalid literal for int() with base 10: 'abcdef'
!e ```py
number = 0
async def math():
number =+ 1
while True:
math()```
@whole bear :x: Your eval job timed out or ran out of memory.
001 | <string>:6: RuntimeWarning: coroutine 'math' was never awaited
002 | RuntimeWarning: Enable tracemalloc to get the object allocation traceback
ok
i have no idea what the fuck
that means
because
uh
My freezer got preheated at 6pm in the morning?
!e ```py
number = 0
async def math():
number =+ 1
print(number)
while True:
math()```
@whole bear :x: Your eval job timed out or ran out of memory.
001 | <string>:7: RuntimeWarning: coroutine 'math' was never awaited
002 | RuntimeWarning: Enable tracemalloc to get the object allocation traceback
ah
makes sense
!e ```py
number = 0
def math():
number =+ 1
while True:
math()```
better?
@whole bear :warning: Your eval job timed out or ran out of memory.
[No output]
!e ```py
number = 0
def math():
number =+ 1
print(number)
math()```
@whole bear :white_check_mark: Your eval job has completed with return code 0.
1
ez
it does work
I did it at my school when I was bored
It does
lmao
!e ```py
number = 0
def math():
number =+ 1
print(number)
math()
math()
math()```
@whole bear :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | 1
003 | 1
!e
number = 0
def math():
number += 1
print(number)
math()
print(number)
I did something like this at school
@rugged root :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | 0
lol hemlock
backwards
=+ vs +=
@whole bear :white_check_mark: Your eval job has completed with return code 0.
1
!e ```py
number = 0
def math():
global number
number += 1
print(number)
math()
math()
math()
math()
math()
@whole bear :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
004 | 4
005 | 5
=+ is better written as = +1 and python ignores the + so +1 becomes 1 and then its just = 1
This list of Internet top-level domains (TLD) contains top-level domains, which are those domains in the DNS root zone of the Domain Name System of the Internet. A list of the top-level domains by the Internet Assigned Numbers Authority (IANA) is maintained at the Root Zone Database. IANA also oversees the approval process for new proposed top-l...
Here
Sorry Hemlock
yeh theres a few of those
What are we going to gripe about?
Macau ( (listen); 澳門, Cantonese: [ōu.mǔːn]; Portuguese: [mɐˈkaw]), also spelled Macao and officially the Macao Special Administrative Region of the People's Republic of China (Chinese: 中華人民共和國澳門特別行政區, Portuguese: Região Administrativa Especial de Macau da República Popular da China (RAEM)), is a city and special administrative region of the Peop...
:'(
Sorry I need to go for now
still there @molten pewter
Hey @whole bear , sorry im not vc verified yet
alr
This chat dies at like 5:00 and then revives at 7 or 8.
!e
val = 20
print(f"Hello I am {val} years old")
@dense ibex :white_check_mark: Your eval job has completed with return code 0.
Hello I am 20 years old
!e ```py
We'd expect:
text = "Bluenix"
But someone sent in:
text = "); DROP TABLE users; INSERT INTO users (name) VALUES (Bluenix"
print(f"INSERT INTO users (name) VALUES ({text})")
@brave steppe :white_check_mark: Your eval job has completed with return code 0.
INSERT INTO users (name) VALUES (); DROP TABLE users; INSERT INTO users (name) VALUES (Bluenix)
Oops, the user table is gone :p
@client.command()
async def inv(ctx):
db = sqlite3.connect('inventory.sqlite')
cursor = db.cursor()
result = cursor.fetchall("SELECT * FROM inventory")
print(result)
await ctx.send(f"You have {result[0]}, {result[1]}, {result[2]}")```
@client.event
async def on_ready():
await client.change_presence(status=discord.Status.online, activity=discord.Game('your mom'))
db = sqlite3.connect('main.sqlite')
cursor = db.cursor()
cursor.execute('''
CREATE TABLE IF NOT EXISTS main(
money INTEGER,
user_id INTEGER,
fish INTEGER,
chicken INTEGER,
rare_fish INTEGER
)
''')
print("Bot has been launched")```
SELECT * FROM inventory WHERE user_id = {ctx.userid}
Smh f string in sqp
Sqp
Sql
!d discord.Embed
class discord.Embed(**kwargs)```
Represents a Discord embed.
`len(x)` Returns the total size of the embed. Useful for checking if it’s within the 6000 character limit.
Certain properties return an `EmbedProxy`, a type that acts similar to a regular [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "(in Python v3.9)") except using dotted access, e.g. `embed.author.icon_url`. If the attribute is invalid or empty, then a special sentinel value is returned, [`Embed.Empty`](https://discordpy.readthedocs.io/en/stable/api.html#discord.Embed.Empty "discord.Embed.Empty").
For ease of use, all parameters that expect a [`str`](https://docs.python.org/3/library/stdtypes.html#str "(in Python v3.9)") are implicitly casted to [`str`](https://docs.python.org/3/library/stdtypes.html#str "(in Python v3.9)") for you.
Nice! You're already 10 parts in, good job! In this part I'm going to show you all about embeds.
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
⠀
:incoming_envelope: :ok_hand: applied mute to @whole bear until <t:1627688734:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
<@&831776746206265384>
!unmute 824379603946700821
:incoming_envelope: :ok_hand: pardoned infraction mute for @whole bear.
!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.
I wont
Ty fisher
embed = discord.Embed(
colour=discord.Color.random()
)
embed.add_field(name="fish", value=f"You currently have {result[2]} fish", inline=False)
embed.add_field(name="chicken", value=f"You currently have {result[3]} chicken", inline=False)
embed.add_field(name="rare fish", value=f"You currently have {result[4]} rare fish", inline=False)
embed.footer(text="Thank you for using me")```
Looks fine to me
Ignoring exception in command inv:
Traceback (most recent call last):
File "C:\Users\Kaden\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "c:\Users\Kaden\Documents\Bot\home.py", line 57, in inv
result = cursor.fetchall("SELECT * FROM inventory WHERE user_id = {ctx.userid}")
TypeError: Cursor.fetchall() takes no arguments (1 given)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Kaden\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\Kaden\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\Kaden\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: Cursor.fetchall() takes no arguments (1 given)```
^ This is the error
query = """
SELECT * FROM inventory WHERE user_id = (?),
ctx.author.id
"""
query = """
SELECT * FROM inventory WHERE user_id = (?)
""", ctx.author.id
result = cursor.fetchall("SELECT * FROM inventory WHERE user_id = (?)", ctx.author.id)```
Ignoring exception in command inv:
Traceback (most recent call last):
File "C:\Users\Kaden\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "c:\Users\Kaden\Documents\Bot\home.py", line 57, in inv
result = cursor.fetchall("SELECT * FROM inventory WHERE user_id = (?)", ctx.author.id)
TypeError: Cursor.fetchall() takes no arguments (2 given)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Kaden\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\Kaden\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\Kaden\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: Cursor.fetchall() takes no arguments (2 given)```
This is the new error
also I didn't mean to talk while reading

Could be worse
It's not that bad tbh
Your pc passes the vibe check it's okay
How many cores is that CPU
ty
is this valid?
@dense ibex and @zealous wave Should I buy this stuff?
Question for the vc: Is the NZXT cpu cooler worth it for the cool factor?
I would say so
It has good preformance too right?
Yep
Although you don't really need the newest one
@dense ibex You could also get a usb WiFi adapter for pretty cheap.
Cool
Even some of their older gen ones are really really good
Awesome.
I continuously get my PC restarted randomly with no other info but this in Event viewer, any suggestions?
viruss??????????????????????
@whole bear
I tried everything, from bios update, windows reinstall, drivers, etc and yet nothing
I'm not extremely positive but it's probably a virus, because it's something in your kernel. Or a fucked app, not sure.
Oof, man I don't know.
Hmmm, even through Windows defender?
No offence but windows defender sucks.
I mean
Lmao
Only sometimes
Hmm, Imma work it through that then ty
Lol yeah, but still might want to make a stack overflow post and check if anybody else has the same probelm
Yeah, it's driving me nuts specially when you have an important meeting and get that lol
Oof, that stinks.
Yup 🤷♂️
@dense ibex , I have thought about building a pc, is it worth the price when you already have a working laptop?
Depends how good the laptop is
Well, it runs pretty good, it is a "gaming" laptop, Intel Core I5 8th Gen, GTX 1050 and a measly 8Gb of RAM.
I think you could wait a year or two before upgrading
Yeah lol, what do you think about the Windows 11 update?
Also, any good recomendations for a mic, vc?
Hyperx quadcast
idfk
It's expensive but worth it
no
Holy crap that thing is expensive but I want it
A hyperz triplecast super 3001
lol
Give me a few min, I'll be back.
hello?
Unfortunately no, sorry.
*-1.69
+1.69
no --1.69
**+1.69
@zealous wave
@dense ibex I am above ToS age.
How did you do that @whole bear
Oh then guess you are not the right person to ask.
😦
Wait how many IQ does google have?
like 8
How does one achive that IQ
yes
wait really
yeah lmao
brand?
ive been using one for a while
Well there is Glidr, Squid Industries, BBBarfly....
@whole bear https://pcpartpicker.com/list/k4gcwz
l
yes, was dark
One sec
Damn
A whole train of trojans xD
wow, what a cool haircut. Staff here have such great taste in hair styles
Indeed
That is absolutely not appropriate here
👋
Byeee
Byeeee
trial helper
jr helper
helper
sr helper
jr mod
mod
sr mod
jr admin
admin
head admin
@dense ibex @zealous wave join vc 0?
hello @molten pewter
heey
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Wooohoo, you can do it @leaden comet
it must have opened like 2 chrome tabs
Kindling Projects
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
Hey @gloomy vigil!
It looks like you tried to attach file type(s) that we do not allow (.mkv). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a.
Feel free to ask in #community-meta if you think this is a mistake.
Python Summer Code Jam 2021.
Showcasing of our Project for the 8th Python Code Jam.
https://pythondiscord.com/events/code-jams/8/
👋
congo :3
same.
Click the link, you'll have to view it on YouTube
fair enough
no axies no slp and axies token deposited whats happening with axies ?
it looks really good
!resource
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
@gloomy vigil thks, but i dont found any general topic
like pratical skill trees
not study halls kind
do you need projects to work on?
yes ,with addition type differentiate kind
.... I predict !projects
!projects kindlings
Kindling Projects
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
LMFAO
?

?
from kindle mega project u just send
so far i found , bot ,network ,file , generator
@gloomy vigil is there like aguide with list of this topic
what do you mean by a guide like a tutorial?
okay so tutorial on bot, network, file, generator on which of these do you want?
we only have int eval for Python, afaik
why would we want it for sirlancebot
lol @dense ibex it's not gonna be that different
okay. that's weird.
decoupling the API from the site will just simplify working with site
maybe, but FastAPI wasn't even a thing back when it was made.
not a popular thing
point is, a Django API was a sensible choice for that time
Django Restful API is pretty common, was the gold standard back in the day
Quick and unmaintainable.
Flask and Gevent is terrible
that's true for the bot
the django version of the site was written as the first big rewrite of the site
and Volcyy handled it, he's a pretty competent Django dev
along with lemon, I think
Volcyy pretty much single-handedly wrote the Django API
@gloomy vigil https://www.upgrad.com/blog/python-projects-ideas-topics-beginners/#1_Mad_Libs_Generator
no source code but i guess they provide topic
don't get me wrong, decoupling is nice and will be useful but I don't think the site was as much of a disaster as you're making it sound like 
even post dewikification?
it was recently dewikified
have you worked with the site after that?
it was a clusterfuck, but dewikification made it mostly markdown and django templates
it's not too bad now
with the API gone it'll be straight up comfortable to work on, I think
you think?
when was that?
yeah
and what did you make?
uhh. lol
a PR is making something
ohhhh
okay
but.. we're not using it for persistent storage?
no we're not. we're using it for storage of stuff we don't care about.
yeah, and if all of that disappears, that's fine. it's a volatile cache.
wait, so, what's the feature?
help DM?
what's that
but why does that need cache storage?
it sounds like we're only using it as persistant storage in that PR that you worked on, lol
when async_redis_cache was implemented by lemon and sebastiaan, they made a big announcement about how it was a volatile form of storage that should never be used for anything except caching stuff we don't care about.
it can, the way redis is implemented in the k8s stack at pydis is very persistent. we even have backups of it.
but
it still shouldn't be.
I agree. I would've implemented anything even remotely persistent with postgres
that was always the point of redis cache. it has cache right in the name of the module, and in the readme https://pypi.org/project/async-rediscache/
Yes I know
it's not async-redispersistentstorage
Yes lol I said the same thing
But I was told I was wrong so
I just don’t argue about it anymore
probably for the best
I mean, honestly, even this help dm thing sounds very losable.
no disaster if that data was lost
Yeah
It’s fine if it does it’s just inconvenient
Also look at my grammar here lol
!help helpdm
!helpdm <state_bool>
*Allows user to toggle "Helping" dms.
If this is set to on the user will receive a dm for the channel they are participating in.
If this is set to off the user will not receive a dm for channel that they are participating in.*
"Helping" wtf
Look at the last sentence
Dear god-
dude whyyyy
If I'd be around to review this I would burn you alive
I will make an issue on it
@cobalt fractal is this worth changing lol
do u guys know some statistics courses for beginner on python i have a hard time understanding it
lol
after basics i am confused what to do next in python
pls help me someone
is this server not for beginers
😫
no
sorry now you are audible pls help !
i was saying something, could you hear it?
shit again when you say sound gone

