#voice-chat-text-0
1 messages · Page 1023 of 1
am back
ate a biscuit too
yea

oof
same tbh


deckard
left

the person who joined
for a second
Oo
you on desktop?
sussy bug |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| || @ripe lantern
oh
i mneant
the ping
the hidden ping
no
yea


integration for me


how many monitors do you have?


i don't want this leaf next to my name

i don't want people to say hi! to me
e
tf
why img in html


source
which os do you use
and which browser
aaa

Ctrl R
yea ik
you using browser app?

discord
browser ap
ohh
gtg

byee
2-4-6
Fits the rule
Just the next number
Fits the rule
Does not fit the rule
11?
Fits the rule
Does not fit the ruel
Fits the rule
Fits the rule
Fits the rule
Does not fit the rule
I was just checking for confirmation bias
Ye
Thanks guys
Guys I was wondering here if some of you know any dashboard or cms template free or open sourcing what would be valid I’m creating a backend CMS with Django and I’m willing since I’m new with the atmosphere of web development perhaps someone may know any of those ? Appreciate such help thanks or link provided
It's the right text chat for this vouce chat.
Each voice chat has an associated text channel.
hmm. I see two things, one has a speaker icon to the left, the other has a # in the same position
The names more or less line up, semantically.
The # are the text chats. The speakers are the voice chats.
what are the things you want to register?
Discord slash commands, as I understand.
oh ok
👋
wayy too new for python discord (second day) so I can't talk yet
Nerbs!
I tried to build powershell on linux, not sure why I couldn't... later, I tried xonsh, which is a shell combined with python3
but ctrl-C and ctrl-Z doesn't work on that shell, so eventuatlly went back to bash
where in settings are you guys I can't find anything
Windows terminal settings not windows settings
how do you access that?
is powershell better than, what is it, the msdos command prompt?
nvm got it
Situation Terminal, Attend to Right Now. STARN.
How many licks does it take to reach the center of a Tootsie Pop?
Ask Mr. Owl!
it takes 1370 licks, don't believe me? try it yourself
I'm just excited that the season is starting a month early for the seventh year in a row.
I think they put different versions of that commercial over the years
I remember seeing a more full version the first time I saw it, then I noticed they cut it up later
My Immortal is a Harry Potter-based fan fiction serially published on FanFiction.net between 2006 and 2007. Though notable for its convoluted narrative and constant digressions, the story largely centers on a non-canonical female vampire character named "Ebony Dark'ness Dementia Raven Way" and her relationships with the characters of the Harry P...
anyone knows java-script ?
It gets even better in the replies
Mild weather headache, but beyond I'm alright
Wish for you to be happy and healthy soon!
I am convinced that the social media person for the OK Dept of Wildlife needs a raise
No Python session today?
Less expensive than fatality payouts.
Thank you for the information.
@whole bear Would you mind changing your nickname to not use invisible characters? See #rules for more details
Sure sorry
No worries! Just letting you know
For anyone wondering why they can't speak, check out the #voice-verification channel
That'll tell you what you need to know
thanks man
Yeppers. Just realized I should have done that a moment ago
I'm off my game today
@wanton trout in here
What all math concepts do I need to learn (like matrix) to learn ML using Scikit learn?
#data-science-and-ml would know way more than I would
Sorry wasn't trying to push you out
Just trying to guide you to places that can help
Ah, no, I'm actually inside a car and my dad's coming so I can't really talk right now
Mhm, got it, thanks 👍
What do you exactly understand by, "I taught myself Python/I was self-taught when it comes to Python.."?
That I taught myself Python?
hey i have a problem pls help
i installed a module
i try to import it and it python is not recognizing the module i am importing
i am sorry i dont have a mic
hello
Key: value
Comment: >
this comment is too long
and is multiline
I'm confused with one small thing
what's the dif between
from tkinter import *
import tkinter
?
The second one has less chance of overwriting namespaces
In what manner, if I'm watching 'Udemy' course videos.... then would I be self-taught?
If I'm using any external resources for education, then maybe I'm not self taught?
For example : Watching videos, reading books, etc to learn Python.
from numpy import *
from math import *
print(pi)
@mystic stirrup if I run this, will it print math.pi or numpy.pi?
"self-taught" means you taught yourself [without going to school]
!e
from numpy import *
from math import *
print(pi)
@willow light :white_check_mark: Your eval job has completed with return code 0.
3.141592653589793
!e
from numpy import *
from math import *
print(pi.__repr__)
@willow light :white_check_mark: Your eval job has completed with return code 0.
<method-wrapper '__repr__' of float object at 0x7fea9fca39f0>
It doesn't matter what format or medium that you use to learn, if you learn it yourself, without a teacher, then you're self-taught
!e
from numpy import *
from math import *
print(pi.__str__)
@willow light :white_check_mark: Your eval job has completed with return code 0.
<method-wrapper '__str__' of float object at 0x7fc6fb4539f0>
Okay, thank you.
Yeah, it doesn't tell you which pi is being used, the math one or the numpy one.
but I would assume it is math.pi because it was declared second
Ooo, now it's more understandable.
You mean if I don't use any human resource to learn something?
!e
import numpy
import math
print(numpy.pi)
print(math.pi)
@willow light :white_check_mark: Your eval job has completed with return code 0.
001 | 3.141592653589793
002 | 3.141592653589793
!e
import numpy
import math
print(numpy.pi.__repr__)
print(math.pi.__.repr__)
@willow light :x: Your eval job has completed with return code 1.
001 | <method-wrapper '__repr__' of float object at 0x7fef04b7ba50>
002 | Traceback (most recent call last):
003 | File "<string>", line 5, in <module>
004 | AttributeError: 'float' object has no attribute '__'
? @sweet lodge
oh whoops lol
!e
import numpy
import math
print(numpy.pi.__repr__)
print(math.pi.__repr__)
@willow light :white_check_mark: Your eval job has completed with return code 0.
001 | <method-wrapper '__repr__' of float object at 0x7fa40188fa50>
002 | <method-wrapper '__repr__' of float object at 0x7fa40188f9f0>
Hey Shenanigans how do I tell which pi is which in this case, other than looking at the code?
u will get the value of "pi"
if i'm not wrong
yes you will, but there is no way to tell which pi you are getting.
That's the theory, but it's not exact
It's more like "you don't go to class"/"you don't have a teacher"
Humans that ask the humans on this server for help are still "self-taught"
oh
I wonder if there is a !debugger command...
(Different people will have different opinions, of course)
I'm not sure
You can't really tell just from the repr str
Thank you 😇
I'm pretty sure this is exactly the reason why you should never use
from library import *
Exactly
ye
If you don't want to take the time to write out the full name of the library, you can use an alias
common ones include
import numpy as np
from matplotlib import pyplot as plt
import pandas as pd
Rookie question : How do you make the rectangular blocks be included in the text when you type a line/block of code?
!eval
from numpy import *
from math import *
import inspect
print(inspect.getdoc(pi))
@sweet lodge :white_check_mark: Your eval job has completed with return code 0.
Convert a string or number to a floating point number, if possible.
hmmm
"```"
damn it
repeat ` three times
no, `, not '
like in markdown
it should be the one above the tab button on your keyboard
Hmm
That's the the standard doc for floats
Objects/clinic/floatobject.c.h line 200
"Convert a string or number to a floating point number, if possible.");```
Perfect.
Thank you @willow light.
print("No one says 'thank you' nowadays.")
print("same is the story for 'welcome'.")
im using sqlite3 and want to create add stuff into my data base using python is this right?
cursor.execute(f"INSERT INTO Accounts (Username, Password) VALUES ({USER},{PASS}")
just use mongodb Looks good to me
oh ok thanks
Have you tried testing the query using the sql CLI?
There's a CLI?
I was about to ask if there was one, I've never used SQLite
Recovering from Oracle SQL over here.
Im not sure really, I just learnt the basics of sqlite yesterday
Can one of you give me a 'shoutout' if you're reading this?

It's way easier to edit and get feedback and export data
whats DataGrip?
I wish I had a reMarkable when I was in college honestly.
Would've made Differential Equations and Calculus III much easier
What's reMarkable?
see the link above
Plus, why can't we've sessions on Wednesday as well?
im using DBeaver rn, should I Switch to DataGrip
I have a printer, got it maybe 10 years ago, serious workhorse... when I got it, the page count was 1 🙂
Here's a reason not to
I do the all-products pack because I actually use GoLand, CLion, DataGrip, PyCharm, IntelliJ IDEA, and WebStorm
holy crap
ig thats not too bad
There is a reason to use JetBrains though:
and can anyone help withthis?
do you have it in a git repo?
people never read letters or emails these days, myself included
yeah I tried and nobody is responding on that
Hey @radiant briar!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
Um, yes someone did respond. I'm looking at #help-donut right now
:incoming_envelope: :ok_hand: applied mute to @radiant briar until <t:1653322781:f> (9 minutes and 59 seconds) (reason: attachments rule: sent 7 attachments in 10s).
Yeah, don't post a ton of screenshots btw
!unmute @radiant briar
:incoming_envelope: :ok_hand: pardoned infraction mute for @radiant briar.
Don't spam images 😄
Don't spam in general tbh
That, too 🙂
lol mb it was adding my screen shots from both of my screens
The code is more helpful than screenshots
Just post the relevant part of the code, not the entire directory
Use the pastebin. https://paste.pydis.com
Hey @radiant briar!
It looks like you tried to attach file type(s) that we do not allow (.html). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.
Feel free to ask in #community-meta if you think this is a mistake.
if you have nc installed, you can pastebin the output of an arbitrary command, for example ls -CF if you run it like this: ls -CF | nc termbin.com 9999
Again, use the pastebin link I gave you, Andriy
Oh huh, didn't know about that
it's pretty handy
Yeah idk its not working, but how do type the code in here
and speak <your-language>
py def createAccount(self): USER = self.lineEdits['Username'].text() PASS = self.lineEdits['Password'].text() cursor.execute(f"INSERT INTO Accounts (Username, Password) VALUES ({USER},{PASS}")
use your keyboard just triple backtick
button_create = QPushButton('Create Account', clicked=self.createAccount)
layout.addWidget(button_create, 2, 2, 1, 1)
sry whats camel?
your create account method appears to be part of a class, can we see the whole class?
class LoginWindow(QWidget):
def __init__(self):
super().__init__()
self.setWindowTitle('Login')
self.setWindowIcon(QIcon(''))
self.window_width, self.window_height = 600, 200
self.setFixedSize(self.window_width, self.window_height)
layout = QGridLayout()
self.setLayout(layout)
labels = {}
self.lineEdits = {}
thast the beginning part of it
theres more
Python Enhancement Proposals (PEPs)
thanks
Today, we’re going to cover how to create and edit tables within a database using SQLite in Python. In this tutorial, we’ll create a database to manage data about a retail business with a few different locations. We’ll be storing information about each of our retail stores that are located across three different cities. We’ll also create a way t...
Source Code: Create A Login Form App Connect To A Database | PyQt6 Tutorial
I've a quick question :
print("It's true!")```
When I run this line of code, it prints the given text. Why?
(Plus, I'm not in the call.)
Anyone?
!e
if 0:
print("no")
@willow light :warning: Your eval job has completed with return code 0.
[No output]
if checks to see if a statement is True or False
Fun fact, True and 1 are the exact same
If it's True, then it does whatever is inside the if block
Okay, thank you.
And vice versa
clicked = lambda: self.createAccount()
I haven't set any value/variable and elaborated it in the function, then why is it held True?
because True == True
And, why does it take automatically take the value as 1?
Because True === 1
==?
Any value that is not a 0, empty container, empty string, stuff like that, is considered Truthy
So it'll evaluate to True
if True means "If True is True"
However, True technically also 1
if True can easily just be if not False
or If False is False
!e
print(True + True)
cursor.execute(f"INSERT INTO Accounts (Username, Password) VALUES ({USER},{PASS}")
@rugged root :white_check_mark: Your eval job has completed with return code 0.
2
or any other thing that evaluates to True
!e
print(True xor False)
@willow light :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | print(True xor False)
003 | ^^^^^^^^
004 | SyntaxError: invalid syntax. Perhaps you forgot a comma?
oh no we don't have xor I forgot
Oh, now I get it.
!e
print(True is True)
print(True == True)
print(True is 1)
@willow light :white_check_mark: Your eval job has completed with return code 0.
001 | <string>:3: SyntaxWarning: "is" with a literal. Did you mean "=="?
002 | True
003 | True
004 | False
isn't it ^
cursor.execute("INSERT INTO Accounts (Username, Password) VALUES (?, ?)", (USER, PASS))
!e
x = 5
if x == 2 xor x == 6:
print("nah")
@willow light :x: Your eval job has completed with return code 1.
001 | File "<string>", line 2
002 | if x == 2 xor x == 6:
003 | ^^^
004 | SyntaxError: invalid syntax
(USER, )
It's ^ isn't it?
Thank you @rugged root and @willow light
oh it's ^
.
I'm blind and didn't see
be not ashamed, o blind mole
!e
print(1 ^ 1)
print(2 ^ 1)
print("abc" ^ "")
@willow light :x: Your eval job has completed with return code 1.
001 | 0
002 | 3
003 | Traceback (most recent call last):
004 | File "<string>", line 3, in <module>
005 | TypeError: unsupported operand type(s) for ^: 'str' and 'str'
hmmm, it doesn't seem to be consistent
!e
print(("abc" and not "") or (not "abc" and ""))
@willow light :white_check_mark: Your eval job has completed with return code 0.
True
you need to convert to a bool first
it's bitwise, not logical
hmmm
!e
from operator import xor
print(xor("abc", ""))
!e
from operator import xor
print(xor("abc", ""))
@willow light :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | TypeError: unsupported operand type(s) for ^: 'str' and 'str'
!e
from operator import xor
print(xor(bool("abc"), bool("")))
@willow light :white_check_mark: Your eval job has completed with return code 0.
True
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
https://realpython.com/python-assert-statement/ use this to test if the account has been created
!e
for jelly in mylist:
print (jelly)```
@narrow fern :x: Your eval job has completed with return code 1.
001 | File "<string>", line 3
002 | print (jelly)
003 | ^
004 | IndentationError: expected an indented block after 'for' statement on line 2
Because you're asking it to print each of the items
Sorry, I still don't get it.
😶
If you're any smarter, please elaborate.
what's the question?
This.
Create a list of numbers:
mylist=[1,2,3,4,5,6,7,8,10]
Go through the list of numbers one at a time:
for jelly in mylist:
Print out the current item:
print(jelly)
You can name it whatever you want
having food now, cant type lol
Okay..
You get to pick that name
Yeah, right.
Okay....😁
right now it's for jelly in ....
so the variable it creates as a loop index is jelly
heh ham phonetics 🙂
!eval
mylist = [1,2,3]
for jelly in mylist:
print(jelly)
print()
for num in mylist:
print(num)
Okay 😯
It works
@sweet lodge :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
004 |
005 | 1
006 | 2
007 | 3
It's for me?
It was for the person asking about VS Code
Okay.
I've it, though I don't have it pinned to the taskbar.
Yes, mostly my friend codes with it and that's how I got to know about it, and gave it a try. It's pretty damn good and syntax highlighting is solid.
Thank you 🙂
@wind raptor That's some high-end code....🤯
Don't encourage this madness /s
Haha🤣
Bruh, it's not even Python.
Must have heard it a couple of times?
Yeah, he's been working on it for a while
I've been meaning to take a look one of these days
On JS?
Yeah
Experience.
JS will be waaay easier once it's full of Python
wish we had an alternative on the browser side besides javascript
What do you mean, Python is being integrated into JS?
like a better language specifically designed for the browser
Hi, I see you're having fun here...
I don't get it, what do you mean? I've never taken a look myself on JS.
Chris is creating things in JS that act like Python
I was making a joke
That's next level.
😅
Sees 'for' loop*
Points finger towards loop aggressively.
what
Yess, thx
Breaking out of generational behavioral patterns is difficult. A total commitment to the task is imperative. We must realize that we are not victims of our past, but of our present. We are not victims of our environment, but of our own thoughts and feelings.
We can change our thoughts and feelings by changing the way we see ourselves and our world. We can change our behavior by changing our thoughts and feelings.
We can break the generational patterns of abuse, violence, and addiction by taking responsibility for our own lives. We can become the change we want to see in the world.
We are not victims of our past, but of our present. We are not victims of our environment, but of our own thoughts and feelings. We can change our thoughts and feelings by changing the way we see ourselves and our world. We can change our behavior by changing our thoughts and feelings.
If you are struggling with generational patterns of abuse, violence, or addiction, seek help from a therapist, counselor, or other mental health professional.```
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
I just told it Systems of the world
!stream 491289245974003722
✅ @ripe lantern can now stream until <t:1653327285:f>.
Good night and cya guys..
👋
👋
could be worse
??
@rugged tundra you're not watching me cause a 100 memory leaks in rocket league and crashing it
which happen to be caused by my plugin
:x
!stream 491289245974003722
✅ @ripe lantern can now stream until <t:1653329099:f>.
any help
autocmd BufReadPre,FileReadPre * i ? probably
to go into insert mode on open
autocmd BufReadPre,FileReadPre * <ESC>
@wispy tulip
@sweet lodge btw did you check the .vimrc on the server you were using vim on btw? 😮 was maybe they have something like this there ^
It was someone else in #help-pancakes
They're using Git through MINGW64
oh 😮 i don't use the git bash version of vim cuz it behaves weird and flickers when you do anything invalid like trying to scroll out of buffer / wsomething
ah wait i just realized while typing it that its probably just the terminal's bell set to visible.... anyways i use neovim now so
that is precisely why I use it
why tho it just hurts your eyes
Because it annoys the perfectionists in the office, and so this is a small, nondestructive revenge.
sfc /scannow && dism.exe /online /cleanup-image /restorehealth && sfc /scannow
I am in 18 discord servers and I'm trying to reduce that by at least 7
I cannot imagine voluntarily being in more than 20
pENgUiNlock
i used to carry a 3x3 and a 4x4 rubics cube everywhere i went as a kid
o- o i had learnt to solve them from youtube and felt like a genius
Why not just use clang and Xcode? </sarcasm>
!e
#include <iostream>
int main() {
std::cout << "Whistles in GCC";
return 0;
}
@willow light :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | c++
003 | ^
004 | SyntaxError: invalid syntax
@wispy tulip were you the one who was having some trouble with classes?
oh he's gone :/
yes
class Student:
def __init__(self, name, age):
self.name = name
self.age = age
Student("Steve", 7)
when a new instance is created, it automatically calls init()
@dataclass
class Student:
name: str
age: int
when you create objects from classes, they're sometimes called instances
class Student:
def __init__(self, fist_name: str, last_name: str, age: int):
self.first_name = first_name
self.last_name = last_name
self.age = age
@property
def full_name(self):
return f"{self.first_name} {self.last_name}"
!e
class Student:
def __init__(self, name, age, favorite_subject):
self.name = name
self.age = age
self.favorite_subject = favorite_subject
def introduct(self):
print(f"Hello! My name is {self.name} and I am {self.age} years old. My favorite subject is {self.favorite_subject}.")
sally = Student("Sally", 5, "Science")
billy = Student("Billy", 6, "Math")
billy.introduce()
sally.introduce()
@rugged root :x: Your eval job has completed with return code 1.
001 | File "<string>", line 7
002 | def introduct(self):
003 | ^
004 | IndentationError: unindent does not match any outer indentation level
would you use def __str__(self) for that though?
!e
class Student:
def __init__(self, name, age, favorite_subject):
self.name = name
self.age = age
self.favorite_subject = favorite_subject
def introduce(self):
print(f"Hello! My name is {self.name} and I am {self.age} years old. My favorite subject is {self.favorite_subject}.")
sally = Student("Sally", 5, "Science")
billy = Student("Billy", 6, "Math")
billy.introduce()
sally.introduce()
@rugged root :white_check_mark: Your eval job has completed with return code 0.
001 | Hello! My name is Billy and I am 6 years old. My favorite subject is Math.
002 | Hello! My name is Sally and I am 5 years old. My favorite subject is Science.
hola
since you might want to set up each new object, here's what happens... like in ClariNerd's example, you would call Student("Joe", 18) and the first thing that happens, is memory is set aside for the instance, and then (in python) the system then looks for init, which it finds, and this one takes two extra parameters... do you see all that? (moment, coffee time)
!stream 491289245974003722
✅ @ripe lantern can now stream until <t:1653333987:f>.
@golden mica hi
!e
from dataclasses import dataclass
@dataclass
class Student:
name: str
age: int
joe = Student("Joe", 12)
print(f"{joe.name} is {joe.age} years old.")
@willow light :white_check_mark: Your eval job has completed with return code 0.
Joe is 12 years old.
that works too
if you have that type of object
I dunno yet if I like javascript at all, or, if I like it better or worse than python
that sounds like pressure
is this still a demo of classes?
oh ok
do you generally have to refactor in order to create tests that (collectively) test all the code?
my belief system includes the thought, that if you tell your brain it's ineffective somehow, it will listen to you and obey
so I also believe that it's important to properly construct self-talk, and remove anything that puts your brain in a less-than-awesome light
gays can help me
?
import os
from tkinter import Tk, filedialog
path = filedialog.askopenfilename(initialdir="/", title="Select file",
filetypes=(("exe files", "*.exe"),("all files", "*.*")))
os.system(path)
look this code
I want him to ask only once and not repeat (filedialog)
I select the file once and I am no longer asked what file to run
@whole bearwe'll probably help... and, probably that's not a good way to refer to us 🙂
I want to save the program when I select it and run it for the second time
@whole bearwhen you say "save the program", what exactly do you mean?
PLS i need
a = {...}
a.update({x:y})
a[x] = y
he thinks you're going to help him fill it out... in his mind it is urgent, but either doesn't know how to, or else, doesn't want to, be appropriately specific
@lavish rover did you know in javascript you can make an object (so any javascript variable cuz they're all objects) immutable
you use Object.freeze() to do it :3
I'll probably be back around in a couple days when I'm voice verified... to all here: stay safe/be well
Interesting
But it would be nice to just make an unfrozen object hashable
Just hash it every time based on it's current state
I mean yeah I don't doubt you
I figured something out
import contextlib
import pandas as pd
@contextlib.contextmanager
def dataframe_csv(input_string):
"""
input_string can be any filename or path.
I tested it with "s3://aws-gsod/isd-history.csv"
"""
data = pd.read_csv(input_string)
try:
yield data
finally:
del data
if __name__ == "__main__":
# usage example
with dataframe_csv("s3://aws-gsod/isd-history.csv") as history:
isd_info = history[history["ICAO"].astype("str").str.match("KASH")][["USAF", "WBAN"]].to_dict(orient="records")[0]
usaf, wban = isd_info["USAF"], isd_info["WBAN"]
with dataframe_csv("s3://aws-gsod/isd-inventory.csv") as inventory:
gsod_list = inventory[inventory.WBAN == wban]["Station-Year"].to_list()
gsod_list = [item.split("-") for item in gsod_list[1:]]
21756E737562736372696265
Part 2:
NULLPOINTEREXCEPTION
Part 3.000004:
https://youtu.be/6WgqEKc5E30
#meme
PyData is an educational program of NumFOCUS, a 501(c)3 non-profit organization in the United States. PyData provides a forum for the international community of users and developers of data analysis tools to share ideas and learn from each other. The global PyData network promotes discussion of best practices, new approaches, and...
pfft
i need that
You'd think with apps like Personal Capital the APIs would be exposed.
VS Code
Visual Studio is the bigger platform.
It is VS Code codespaces @urban summit
filename in the last sentence is very suitable
Json is supposed to be painless, no?!
And then they have refresh tokens to get the auth token.
thus the xml file is called pain
Yeah I see that now.
There is like Red Hat, Black Hat, and Blue I think.
Maybe White too
You can set up a proxy and reverse engineer an API.
Folks did it for couch surfing and espn.
FFS who put the XML in there?
@dark saffron pls chat in here
from selenium import webdriver
browser = webdriver.Chrome()
browser.get("https//github.com")
``` for some reason my chrome page opens up a page called data
and nothing happens
I also get a long ass output in python itself
oh no fml
i forgot a :
shoot me
Haha true, out of curiosity what are the guys streaming, for some reason i cant view it
oh my god
u solved my discord bug and that bug
I have no notification noises
now i do
Damn thanks, and i was seeing 2 others streaming but it kept saying stream ended
Whats that?
Damn one day i hope to be there, literally started learning this month
O thats quite awhile, have u made anything cool ?
I have not haha
Reminds me of a retro game haha
And i have no idea what I'd want to make, I'll probably try something after i finish my course
That would be v useful
Oh it uses the syntax too? lmfao thats confusing as hell
I started off with java but I prefer python for now
haha
The L system thing sort of reminds me of fractals, i wonder if they're related
235 sounds like a lot tbf
With no advertising et
c
Makes sense, I did a module on that at uni as I did maths, we just didn't use strings haha
Definitely, how did u decide u wanted to make that, I've been wondering what I want to make once i finish my course but idk
I may have to add it to my list
I can imagine haha, Maybe Ill try to make one as I do have a maths background
This is going to be an issue today haha, discord seems to be bugging a lot
1 more day
What was that?
Yesss
although he's much bigger
Ehhh why scary :/
Manage to find the doc?
F
O niceee
This reminds me of uni so much damn
It's been awhile
I'll have to give it a read later, I do really want to try this though
Oh that aint that bad, and what's the difference between hardcoded and what you did
kk that makes more sense, not 100% clued up but its because im new ofc
if u want id love that haha
holyyy
that is sick
Do u have different variations?
question answered lmao
ahhh this is good
Will it create it in the same way every time
or are there some variations in order
xd
wtf lmaio
Damn thats really cool
I can imagine with randomness it would be v weird
What is a full iteration in this case
Yess somewhat, im surprised its still going tbf
Lmao
That was pretty fast
Definitely much better
Also ty for showing me all this, it's genuinely really cool
That's impressive though
Makes sense
thats insanely long lmao
This is seems like it genuinely covers everything damn
ty ty ill be looking at this soon once ive done my course
and i need to head off in a min
brb
hol on'
I might hop off now though, its 3am here and i need to stop procrastinating haha
ty for everything btw ill definitely be on some other days
Damn still early there haha, goodnight and thanks!
!e py import ast a = ast.literal_eval("[1, 2, 3]") print(a) ast.literal_eval("[1, 2, 3 + 4]")
@somber heath :x: Your eval job has completed with return code 1.
001 | [1, 2, 3]
002 | Traceback (most recent call last):
003 | File "<string>", line 4, in <module>
004 | File "/usr/local/lib/python3.10/ast.py", line 108, in literal_eval
005 | return _convert(node_or_string)
006 | File "/usr/local/lib/python3.10/ast.py", line 88, in _convert
007 | return list(map(_convert, node.elts))
008 | File "/usr/local/lib/python3.10/ast.py", line 107, in _convert
009 | return _convert_signed_num(node)
010 | File "/usr/local/lib/python3.10/ast.py", line 81, in _convert_signed_num
011 | return _convert_num(node)
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/rocuromara.txt?noredirect
!e py a = 5 b = [1, 2, a] print(b)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
[1, 2, 5]

await interaction.response.send_message(embed=embed, ephemeral=True)
await self.incremental_logs.send(embed=embed)
class Staff(commands.Cog, app_commands.Group):
def __init__(self, bot: commands.Bot):
self.bot = bot
self.bot.loop.create_task(self.task_checker())
super().__init__(description="Staff commands", default_permissions=discord.Permissions.all())
!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.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
@tame latch #❓|how-to-get-help
@bot.message_handler(commands=["wiki"])
def handle_text(message):
bot.send_message(message.chat.id, getwiki(message.text))
@tame latch try just this maybe?
😢 c isn't programming language either if you use clang?
python -> python byte code (simpler instructions) -> interpret the instructions and run c code according to it
sorry mustafa
In this tutorial, you will learn how to use the SQL Server CHARINDEX() function to search for a substring in a string.
class Character:
def __init__(self, player, name, xp):
self.player = player
self.name = name
self.xp = xp```
```py
player,name,xp
Pete,Drognorg the Dark,3600
Jana,Selwyn Greenhand,3456```
!e py vs = [1, "apple", True, 56] a, b, c, d = vs print(a) print(b) print(c) print(d)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | apple
003 | True
004 | 56
wtf these stuff works in python? damn
!e
a, b, c, d = vs
print(a)
print(b)
print(c)
print(d)```
@ebon sandal :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | ValueError: too many values to unpack (expected 4)
lol it donest work
xD
i thought it would be intelligent enough to just leave the last one 45
xD
!e py a, b, c = 1, 2
@somber heath :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ValueError: not enough values to unpack (expected 3, got 2)
!e
vs = [1, "apple", True, 56, 45]
a, b, c, *d = vs
print(a)
print(b)
print(c)
print(d)
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | apple
003 | True
004 | [56, 45]
!e py a, b = 1, 2, 3
@somber heath :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ValueError: too many values to unpack (expected 2)
wtf? wow shit works like amazing
now i understand why schools started teaching python
xD
@frosty starwhatsup
🐅
attrs = ["id",
"name",
"level",
"energy_stones",
"world",
"xp",
"xp_required",
"hp",
"birthday",
"world_boss_damage",
"explorations",
"world_keys",
"damage_taken",
"xp_gained",
"energy_stones_gained",
"character_name_cooldown",
"rest_cooldown"]
with sqlite3.connect('DB Storage/essence.db') as db:
cursor = db.cursor()
for attr in attrs:
cursor.execute(f'SELECT ? FROM incremental WHERE member_id = ?', (attr, member.id,))
res = cursor.fetchone()
setattr(self, attr, res[0])
x.y = z
setattr(x, "y", z)
R u making a game
class Person:
pass
mustafa = Person()
setattr(mustafa, "place_of_birth", "turkey")
Mustafa.pob = turkey
class Person:
pass
davinder = Person()
setattr(davinder, "iq", -1)
🤔 i agree my iq is inhumane
noodle
@upbeat torrentu need to have voice verified role to talk
@lavish rover are you really from Turkey? you sound like it
!e ```py
class MyClass:
def init(self):
self._val = 0
@property
def val(self):
print(f"Returning self._val, {self._val}")
return self._val
@val.setter
def val(self, v):
print(f"Setting self._val to {v}")
self._val = v
mc = MyClass()
mc.val #Returned object exists but not assigned to variable in this example
mc.val = 10```The @property decorator eliminates the need to use parentheses when effectively calling methods.
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | Returning self._val, 0
002 | Setting self._val to 10
oh so you are 😮
bruh
xD
||u jump into decision quicker than a girl|| (dont read if u cant handle a joke) 🙂
Gtg guys need to work 😫
I can handle a joke, I just don't find sexism funny.
thats why i put it in the spoiler as idk who would find it offended or funny or dont appreciate it
ye that's me on smurf
as not everyone will have the same sense of humour
was teasing mewstafa
why mew
🐱 stafa
it's literally spelled mu
hahaha
@rugged rootwhat extension did you tell me before you used for the colour stuff, can u please type it here
For my editor? Monokai Pro
u told me some other name
it was just one word i guess
it was paid too
oh
ok
🙂
gonna go afk for now
is ther monokai pro for visual studio (not vs code)
@rugged root
i just ate supposedly chocolate icecream..... it was 90% chocolate 10% icecream between it....

🍫
Yo, still not verified for vc 😉
🖐️
mine, just take the last two digits of the year..
i slept for 13 hrs continuously yesterday and haven't slept for 40 hours before that...
there, can you see this?
Yep!
Pharmville. Farmville, but you're a drug company.
probaby chemists and doctors
They arrested a man the other day. He'd been going around licking buildings. Pubs in particular.
He was pub lick enemy #1
🤣
i thought i was the only pub licker
does that count as a devious lick
if you're saying ghost -writer-, that means an author who may not be credited for writing a work, someone else is credited. the one who may not be credited, and who did the actual work, is the "ghostwriter"
I prefer ghost rider
Writer.
The Horribly Slow Murderer with the Extremely Inefficient Weapon is a 10-minute short film that was released in 2008. It was filmed entirely in California over the course of 22 days. It was written, directed, and narrated by Richard Gale.The film won the Special Jury Prize at the Fantastic Fest, the Best Short Film award at the Fantasia Internat...
its a good kids movie he does good acting
well williams was still alive
do you know the robin williams movie with the polio
i thought that was really good
that's not good will hunting?
it was actually Encephalitis lethargica
but exhibbited parkinson's like symptoms
extreme muscle rigidity
oh ok
thats why L-DOPA helped alleviate their symptoms
so williams played the doctor who tried a drug that brought leonard L back temporarily
yea whats your favorite robin williams movie
because you said flubber wasnt his best
bleeetcode... sheepish
I don't have a great memory of flubber
is the one with robin williams the original
color tv didnt come out until 60s
lol
oh
i see
found something called "son of flubber" from 1963
james doohan
it's interesting, they do talk about how most of this got started...
John Draper is in that
ive seen/heard the bill gates and steve jobs story so much i dont think i would like this
how do you spell zomitsi
Tzimisce
Numpy, wave, struct, math, scipy.signal
I'm trying to get the program to give me a beeping noise. I'm on a windows machine. I've looked at http://docs.python.org/library/winsound.html
But not sure how I can program this with a barcode s...
well there's something from the past, it's called the fairlight cmi, someone's selling a fairlight simulator, pay what you want... originally the thing was about $15k
@vestal carbon So the issue is that you're going to have to use something imported
Or rather from pip
https://github.com/louisabraham/python3-midi might work?
Oh wait... this is a midi composition thing?
Yeah this seems to be specifically for working with the midi files, not for playing
It was our April Fools this year
I love it
Oh no wait
That's the standard Zen of Python
I misread
!zen
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
seems like a somewhat conservative approach to coding and creating
It's the general mentality of what makes Pythonic code
Read the readme, it's for composition
Yeah I see that now
But, why did this appear in my terminal?
something printed it to that terminal
no
Not sure why it triggered then
riddle
!e import this
@rugged root :white_check_mark: Your eval job has completed with return code 0.
001 | The Zen of Python, by Tim Peters
002 |
003 | Beautiful is better than ugly.
004 | Explicit is better than implicit.
005 | Simple is better than complex.
006 | Complex is better than complicated.
007 | Flat is better than nested.
008 | Sparse is better than dense.
009 | Readability counts.
010 | Special cases aren't special enough to break the rules.
011 | Although practicality beats purity.
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/idirupudeb.txt?noredirect
@tame latchdid you do something at the time it printed all that stuff?
Just ran my dirty code, which I'm trying to put in order
But there is nothing there
what if you do what you did again?
It print again
that whole manifesto thing?
the thing that starts. beautiful is better than ugly
that printed again when you did it again?
no tеhere's not even a hint of it
so you can't reproduce it?
@vestal carbon Honestly, the pygame synth stuff seems to be the best option that I'm finding. I'll try and keep hunting as I can, but I have to do some work briefly here at work
Okay, maybe some sooooo strange mistake?
Alright, do your best~ Thanks!
i can
Can you show the code you have?
really dirty code
No big deal
Leo, I see you have some sort of wiki stuff in your code
I wonder if the stuff you're seeing printed was stored in a database
I guess no
Oh joy, worst people in the world are doing terrible things.
No Mark Zuckerberg, you're using all the sweet baby rays!!!
Throw some sweet baby rays, and take it from there.
#SweetBabyRays #Meme #MarkZuckerberg
Just wanted a nice quiet day
My main beef is how the targeted advertising, especially when it's political advertising, causes an echo chamber effect that seems to increase divisions between folks
bad company does open source research which helps the world in many ways...
waawawawaw
But I'm sure I'm probably wrong as always, who knows
@mild quartz do you have the paper on this cancer thing based on the vision transformer SSL?
back in a bit
@rugged root it is still noisy, I'll ping you when it gets quiet
It'll be interesting to see if the AI can become as accurate as pigeons
i love this paper lol
So gooood
I would assume
hello
I was on the job market recently, open to suggestions on what I should do next. I’m deeply thankful to all those who reached out and pitched their companies, and also to people who shared their wisdom of how they wanted to navigate their own careers.
I just love that they use the term "flock sourcing"
lol
https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0141357 Just more about the pigeon thing because I find it so neat
Pathologists and radiologists spend years acquiring and refining their medically essential visual skills, so it is of considerable interest to understand how this process actually unfolds and what image features and properties are critical for accurate diagnostic performance. Key insights into human behavioral tasks can often be obtained by usin...
@elder dust Your mic is open, we keep hearing background noise
they tried that with AT&T
which was a tragedy
its directly comparable too
bell labs was the most influential research group of that era
so rabbit, when you chose to do the job that was somehow not contributing to humanity, we can compare that to facebook and how they choose to do things... it's the same thing only bigger
so they invented the transistor?
Australia invented wi-fi. Take that, wire lovers. 😁 (Perfectly happy to give due credit to predecessor technology developers.)
(Tesla rules. Edison drools.)
https://en.m.wikipedia.org/wiki/Hedy_Lamarr Stunning woman.
Hedy Lamarr (; born Hedwig Eva Maria Kiesler; November 9, 1914 – January 19, 2000) was an Austrian-born American film actress and inventor. She has been described as one of the great movie actresses of all time.After a brief early film career in Czechoslovakia, including the controversial Ecstasy (1933), she fled from her husband, a wealthy Aus...
old transistors, then made of germanium, was brittle, noisy and couldn't handle higher power... now we have transistors like the 2n3904, which does a lot better with power, noise and longevity
Sure but ATT did all this work to increase profits but as always, it’s possible if they had competition, they would have moved faster.
wow... that was like 3 hours 🙂
maybe if they mved faster, the transistors they came up with wouldn't have been as good
I'll say they needed time to produce quality
and they were at a point in history (for example, no one else were working on transistors) so that they had the time they needed
@turbid rune If you're wondering why you can't talk, check out the #voice-verification channel for more info about our voice gate system
i will thank you ist
sir*
config-default.yml lines 360 to 362
keys:
github: !ENV "GITHUB_API_KEY"
site_api: !ENV "BOT_API_KEY"```
How can i rewrite ip to domain using python
This is bad and should feel bad
name: devserver
categories:
welcome:
- welcome: text
staff:
- admins-mods: text
- lounge-helpers-org: text
- defcon: text
- incidents: text
- incidents-archive: text
- staff-announcements: text
- dev-logs: text
roles:
- admins
- devops
- helpers
- voice-verified
bot/constants.py line 27
def _env_var_constructor(loader, node):```
diff python-bot java-monolith
no differences found
!ytdl
Per Python Discord's Rule 5, we are unable to assist with questions related to youtube-dl, pytube, or other YouTube video downloaders, as their usage violates YouTube's Terms of Service.
For reference, this usage is covered by the following clauses in YouTube's TOS, as of 2021-03-17:
The following restrictions apply to your use of the Service. You are not allowed to:
1. access, reproduce, download, distribute, transmit, broadcast, display, sell, license, alter, modify or otherwise use any part of the Service or any Content except: (a) as specifically permitted by the Service; (b) with prior written permission from YouTube and, if applicable, the respective rights holders; or (c) as permitted by applicable law;
3. access the Service using any automated means (such as robots, botnets or scrapers) except: (a) in the case of public search engines, in accordance with YouTube’s robots.txt file; (b) with YouTube’s prior written permission; or (c) as permitted by applicable law;
9. use the Service to view or listen to Content other than for personal, non-commercial use (for example, you may not publicly screen videos or stream music from the Service)
The YAML library allows you to add arbitrary constructors, and use variables which are parsed at runtime in your config. Here are a few examples: https://github.com/python-discord/bot/blob/b91820a3...
I ruin my meal whit peper
o no
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
virtualenv venv
how
@ebon sandal
ok
i just have joined the server i can't talk
never mind
so i am asking
which IDE i should use for python?? @ebon sandal
and any websites can help me to begin ?
i have 2tb
??@ebon sandal
with coding
links?
links!!!!!!!!!!!!
xD
:incoming_envelope: :ok_hand: applied mute to @fast dew until <t:1653426389:f> (9 minutes and 59 seconds) (reason: discord_emojis rule: sent 22 emojis in 10s).
!unmute 368531055264792588
:incoming_envelope: :ok_hand: pardoned infraction mute for @fast dew.
thx
toxic
It probably kicked you from VC too sorry.
report pls
bruh
xDDDD
join vc if u like , iam not going to type anymroe