#voice-chat-text-0
1 messages · Page 855 of 1
start with 3 tildes(`) followed by py write your code and end 3 tildes
Well I didn't understand 🥲
@gentle flint can you show me how to do this way in a box idk i am allowed to ping you or not but you were the first person i met soo i am pinging you
you're allowed to ping me, but I'm not gonna show you, 'cuz I'm busy rn with smth else
Hmm ok np
I hope it'll let me post, but...basically like this
https://i.imgur.com/nR4YQTW.png
import importlib.util
spec = importlib.util.spec_from_file_location("module.name", "/path/to/file.py")
foo = importlib.util.module_from_spec(spec)
spec.loader.exec_module(foo)
foo.MyClass()
rekt
@ionic ferry which one?
thanks ❤
Redis
All about wxPython, the cross-platform GUI toolkit for the Python language
kotlin is great
kotlin is strongly typed
statically typed
type inference
right
it's much better than java
ah yes, the language is defined by how if statements look
val = const?
yes
well
not a C const
like a java final
anything that supports java can support kotlin
yes it is
the if loops looks like c
and that is good
no, kotlin is literally a straight upgrade compared to java
everything in kotlin is better
the syntax of if loop mathces cpp
huh?
yes
ok?
and hashmaps are also defined like cpp
what's your point
nothing i was just looking at the docs
converting from c# to java?? yikes
95
but c# is better
oracle bad
microsoft good
type inference
no, that would be terrible
iirc pydantic can help you with that
statically typed languages can ensure what you get in json
yes you do
that's the point, it has 1 type
in a statically typed language, you need to declare the structure of the thing you're trying to parse
if you can't parse the json into that type it fails
json module can only deal with a subset of the builtin types. to serialize other stuff you need to make your own json serializer thing
!e python import json json_string = '{"string": "Hello World","number":12345}' json_values = json.loads(json_string) print(type(json_values['string'])) print(type(json_values['number']))
you'll need to print those too
@amber raptor :white_check_mark: Your eval job has completed with return code 0.
001 | <class 'str'>
002 | <class 'int'>
@upbeat leafdo you design pcbs? 👀 see you're in the ai03 server
Ya, as a hobby
only for yourself?
java is pretty bad
For now, yes. Don't think I can design professionally for others yet
it was more, don't write new java, write Kotlin
yeah, definitely agree
!e
from dataclasses import dataclass
@dataclass
class Person:
first_name: str
last_name: str
griff = Person("Gri", "ff")
print(griff)
print(vars(griff))
example = {
"first_name": "The",
"last_name": "Gambler"
}
gambler = Person(**example)
print(gambler)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | Person(first_name='Gri', last_name='ff')
002 | {'first_name': 'Gri', 'last_name': 'ff'}
003 | Person(first_name='The', last_name='Gambler')
!e```py
from dataclasses import dataclass
@dataclass
class Person:
first_name: str
last_name: str
def __init__(self, *args, **kwargs):
super().__init__(**{k: v for k, v in kwargs if k in Person.__slots__})
griff = Person("Gri", "ff")
print(griff)
print(vars(griff))
example = {
"first_name": "The",
"last_name": "Gambler",
"Something": "Weird"
}
gambler = Person(**example)
print(gambler)
!ping
!e print("e")
@crimson copper :white_check_mark: Your eval job has completed with return code 0.
e
lul
!e
from dataclasses import dataclass
@dataclass
class Person:
first_name: str
last_name: str
def __init__(self, *args, **kwargs):
super().__init__(**{k: v for k, v in kwargs if k in Person.__slots__})
griff = Person("Gri", "ff")
print(griff)
print(vars(griff))
example = {
"first_name": "The",
"last_name": "Gambler",
"Something": "Weird"
}
gambler = Person(**example)
print(gambler)
@uncut meteor :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 15, in <module>
003 | File "/usr/local/lib/python3.9/dataclasses.py", line 370, in wrapper
004 | result = user_function(self)
005 | File "<string>", line 3, in __repr__
006 | AttributeError: 'Person' object has no attribute 'first_name'
probably timed out
!e
from dataclasses import dataclass
@dataclass
class Person:
first_name: str
last_name: str
def __init__(self, **kwargs):
for k, v in kwargs.items():
if k in self.__dataclass_fields__:
setattr(self, k, v)
example = {
"first_name": "The",
"last_name": "Gambler",
"Something": "Weird"
}
gambler = Person(**example)
print(gambler)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
Person(first_name='The', last_name='Gambler')
wdym
i am asdf jk;l
wow
jkl;
!e
class Dataclass:
def __init__(self, **kwargs) -> None:
for k, v in kwargs.items():
if k in self.__annotations__:
type = self.__annotations__[k]
if issubclass(type, Dataclass):
setattr(self, k, type(**v))
else:
setattr(self, k, type(v))
def __repr__(self) -> str:
return f"{self.__class__.__name__}({', '.join(f'{k}={getattr(self, k)}' for k in self.__annotations__)})"
class Name(Dataclass):
first: str
last: str
class Person(Dataclass):
name: Name
eye_colour: str
example = {
"name": {
"first": "The",
"last": "Gambler"
},
"eye_colour": "Blue",
"Something": "Weird"
}
gambler = Person(**example)
print(gambler)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
Person(name=Name(first=The, last=Gambler), eye_colour=Blue)
flightplandb/datatypes.py line 537
sunrise: datetime```
!e
from dataclasses import dataclass
@dataclass
class Name:
first: str
last: str
@dataclass
class Person:
name: Name
eye_colour: str
example = {
"name": {
"first": "The",
"last": "Gambler"
},
"eye_colour": "Blue",
"Something": 123
}
gambler = Person(**example)
print(gambler)
@uncut meteor :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 24, in <module>
003 | TypeError: __init__() got an unexpected keyword argument 'Something'
!source
check out snekbox
+-------------+ +-----------+
input -> | |---------->| | >----------+
| HTTP POST | | SNEKBOX | execution |
result <- | |<----------| | <----------+
+-------------+ +-----------+
^ ^
| |- Executes python code
| |- Returns result
| +-----------------------
|
|- HTTP POST Endpoint receives request and returns result
+---------------------------------------------------------
yeah
new docker thing
it runs inside nsjail
@uncut meteor im getting @ ed a whole bunch of times
ED?
i meant @ ed
@amber raptor https://github.com/devMEremenko/XcodeBenchmark
they don't actually use this
geno's was really bad
ehhh
it's ok
"you're an old man, kid"
ancient wizened nineteen-year-old
and other hilarious jokes u can tell urself
it's amazing
not cmd
it's like tmux, kinda
sees cmd
runs like hell
it's great ¯_(ツ)_/¯
except you can't see the character under the cursor if the text is a bright color
ok but like urxvt exists
not on windows lol
are u sure about that
@old otter can you check how many messages have i send?
just use the search bar
i am on phone
it still exists
@crimson copper can you check and tell me
just use the search function
48 messages, but only 6 activity blocks.
can you voice verify me i am here since feb and now seriously i want to speak in order to get help with my codin stuff
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
embed where?
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
^there
it's 36 degrees outside :/
@gentle flint i am not able to find
follow the arrow in his message
@crimson copper what is activity block
a time when you're active
@old otter how many activity block do i need?
3 iirc
iirc?
3
@crimson copper i have 6
ok
@crimson copper but why aren't they verifying my voice
doesn't it say why in the channel when you type !verify there
have you tried to verify in the channel
stop pinging people and read the instructions
bruh i have net the criteria still wasn't able to speak but. now i can
did you read the instructions
@crimson copper he's already verified
@tacit fogStop pinging random people, all the instructions are in #voice-verification
i got that from the phrase "now i can"
File "F:/PyCharm/tkinter_0/main.py", line 17, in <module>
buttons[Button(gui, f"{button_name}", command=lambda: on_click(button_name))] = (math.ceil(button_name / 3), button_name % 3)
ValueError: dictionary update sequence element #0 has length 1; 2 is required
buttons = {}
for button_name in range(10):
buttons[Button(gui, f"{button_name}", command=lambda: on_click(button_name))] = (math.ceil(button_name / 3), button_name % 3)
ok, and
1560 is not good enough for those colleges
no
i have friends who got in this year
average at harvard is 1520
can anybody help me with this
not for computer science
o
sure
.
.
same
?
!
@amber raptor you're cutting out
wdym with a random dot
idk about your chances for harvard..
File "F:/PyCharm/tkinter_0/main.py", line 17, in <module>
buttons[Button(gui, f"{button_name}", command=lambda: on_click(button_name))] = (math.ceil(button_name / 3), button_name % 3)
ValueError: dictionary update sequence element #0 has length 1; 2 is required
buttons = {}
for button_name in range(10):
buttons[Button(gui, f"{button_name}", command=lambda: on_click(button_name))] = (math.ceil(button_name / 3), button_name % 3)
help me with this
not that .
@gentle flint
ah
maybe if you split it up into multiple lines it would be a tad easier to debug
that line is at least 125 characters
CODE:
from flask import Flask
app = Flask('app')
@app.route('/')
def index():
return app.send_static_file('./index.html')
app.run(host='0.0.0.0', port=8080)
File System:
Send help
help
Error:
try just ...static_file("index.html")
same error
button = Button(gui, f"{button_name}", command=lambda: on_click(button_name))
buttons[button] = (math.ceil(button_name / 3), button_name % 3)
@gentle flint
so what error does it give then
File "F:/PyCharm/tkinter_0/main.py", line 17, in <module>
buttons[Button(gui, f"{button_name}", command=lambda: on_click(button_name))] = (math.ceil(button_name / 3), button_name % 3)
ValueError: dictionary update sequence element #0 has length 1; 2 is required
this
the full error
ValueError: dictionary update sequence element #0 has length 1; 2 is required
Traceback (most recent call last):
File "F:/PyCharm/tkinter_0/main.py", line 17, in <module>
button = Button(gui, f"{button_name}", command=lambda: on_click(button_name))
File "C:\Users\Ibrahim\AppData\Local\Programs\Python\Python38\lib\tkinter_init_.py", line 2645, in init
Widget.init(self, master, 'button', cnf, kw)
File "C:\Users\Ibrahim\AppData\Local\Programs\Python\Python38\lib\tkinter_init_.py", line 2559, in init
cnf = cnfmerge((cnf, kw))
File "C:\Users\Ibrahim\AppData\Local\Programs\Python\Python38\lib\tkinter_init.py", line 111, in _cnfmerge
cnf.update(c)
ValueError: dictionary update sequence element #0 has length 1; 2 is required
thanks
any idea?
I'm looking
argument to update needs a structure something like this, list[tuple[Any, Any]]
yours is not, so it errors
read the docs for the Button class
what if you replace it with
button = Button(gui, text=str(button_name), command=lambda: on_click(button_name))
and what does that lambda do
isn't that the exact same
def on_click(button_arg):
visible_tui.insert(0, button_arg)
I replaced the f-string with str because it was just plain confusing
same rror
error*
what's the lambda for in this case
to pass the argument
i have also tried using partial
instead of lambda
what are you trying to do when you click the button?
generally you just put in command= a normal python command to be run when the button is clicked
def on_click(button_arg):
visible_tui.insert(0, button_arg)
this
@vivid palm got a link to State Sponsor Canada Universities
oh you're gonna run into the late binding lambda gotcha @drowsy summit
State Sponsor is public
but then it should give local_variable assigned before assignment and not that ValueError
what's the current code and error?
his code is
button = Button(gui, text=str(button_name), command=lambda: on_click(button_name))
For the life of me I do not understand the point of his lambda
what would you do instead?
the error is then
ValueError: dictionary update sequence element #0 has length 1; 2 is required
[22:26]
Traceback (most recent call last):
File "F:/PyCharm/tkinter_0/main.py", line 17, in <module>
button = Button(gui, text=str(button_name), command=lambda: on_click(button_name))
File "C:\Users\Ibrahim\AppData\Local\Programs\Python\Python38\lib\tkinter__init.py", line 2645, in init
Widget.init(self, master, 'button', cnf, kw)
File "C:\Users\Ibrahim\AppData\Local\Programs\Python\Python38\lib\tkinter__init.py", line 2559, in init
cnf = _cnfmerge((cnf, kw))
File "C:\Users\Ibrahim\AppData\Local\Programs\Python\Python38\lib\tkinter__init__.py", line 111, in _cnfmerge
cnf.update(c)
ValueError: dictionary update sequence element #0 has length 1; 2 is required
it needs a callable to store and call later
The province of Ontario has 24 publicly funded colleges, known as Colleges of Applied Arts and Technology (CAATs). In 2003, five CAATs (Humber, Sheridan, Conestoga, Seneca, and George Brown) were designated as Institutes of Technology and Advanced Learning.
Most Ontario colleges were founded between 1965 and 1967, after the passage of Minister o...
K bec
Leave out the lambda?
It doesn't even store it
even if i remove lambda
it gives same error
it's a button, it needs to be stored and called when it's clicked
Traceback (most recent call last):
File "F:/PyCharm/tkinter_0/main.py", line 17, in <module>
button = Button(gui, str(button_name), command=visible_tui.insert(0, button_name))
yes pure
I'm intrigued
but
you now have str(button_name)
try doing text=str(button_name)
you could have said that before
he did
instead of prolonging this
I said it right from the start
for like 30 min
he did
you just didn't look
where he just said to do str(button_name)
virginia tech?
it has text=
I'm on the east coast
now go see if that fixes it instead of blaming me for trying to help you
just saying, many states have very decent universities
sorry
is florida east coast?
i just can't see
yes
East Coast has different vibes
brython is interesting
you have Boston, NYC, Philly, DC, Charleston and Florida that all have different cultures
Brython
python in browser, like js
If you want to experience some of that culture difference, attend Red Sox and Yankee game
i don't really listen to music
Hey @versed island!
It looks like you tried to attach file type(s) that we do not allow (.pdf). 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.
🤦
ooh i went to one ages ago
you were there for that!
do you remember subway series 
Yep
i'm ancient
Hey @versed island!
It looks like you tried to attach file type(s) that we do not allow (.pdf). 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.
third time's the charm
i chose to be a mets fan simply bc everyone else was a yankees fan
:grenade: thrown
Github Copilot
@hushed dragon try browser sync
i don't agree @strong arch , there's no reason you can't learn about types in python
Browsersync makes your browser testing workflow faster by synchronising URLs, interactions and code changes across multiple devices. It’s wicked-fast and totally free.
but it doesn't force you, where other languages will blow off your legs if you mess it up
it will force you though 🤔, it's strongly typed, it won't coerce things, so you'll get type errors
!e python a = 1 b = "Hello World" print(a+b)
!e
def f(x: int):
print(x)
f("yes")
@amber raptor :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 +: 'int' and 'str'
geno has a loud keyboard 😔
@strong arch :white_check_mark: Your eval job has completed with return code 0.
yes
that's not what i meant
uh, that's not what matters
not in teaching a beginner what a type is
!e
print("UwU")```
rust forces you to use string formatting
println!("{}", 5)
it can only print &str
owned strings
rust is awesome because the compiler fixes everything for you
and the docs are even more amazing
not rote mem though, you just know it because you've practiced
print("aaa");
it'll never pass code review so who cares
no, code review is your colleagues after you make a PR
static analysis should be run before that
yeah, flake8 probably flags that
black probably removes them
yeah, black removes them
!e python a = 0; print("Hello world");
@amber raptor :white_check_mark: Your eval job has completed with return code 0.
Hello world
!e python a = 0;print("hello World");
@amber raptor :white_check_mark: Your eval job has completed with return code 0.
hello World
a = "This is a really long string that is longer then 80 char. Hello World, the quick brown fox jumped over the lazy dog"```
a = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."```
if a ==0 and b == 5 and c == 6 and d == "The quick brown fox jumped over the lazy dog"```
ervice_bus_message ={
'type': 'reactionadd',
'channel_id': reaction.message.channel.id,
'guild_id': reaction.message.guild.id,
'message_id': reaction.message.id,
'emoji_id': reaction.emoji.id,
'emoji_name': reaction.emoji.name,
'message_author_id': reaction.message.author.id,
'reaction_author_id': user.id,
'message_author_name': reaction.message.author.display_name
}```
!e
print("Hi User, ");
print("How are you?");
@hushed dragon :white_check_mark: Your eval job has completed with return code 0.
001 | Hi User,
002 | How are you?
!e
print("Hi User, ");print("How are you?");
@hushed dragon :white_check_mark: Your eval job has completed with return code 0.
001 | Hi User,
002 | How are you?
!e powershell Write-Host "Hello World"
@amber raptor :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | Write-Host "Hello World"
003 | ^
004 | SyntaxError: invalid syntax
Hwlo there
@jaunty pendant hi
E
have a pic of a weird-looking dog
no tail
Oh god..
Python 3.8.2
Why are we looking at pics of dogs with no tails
...
There is also a monkey breed with nk tale
Lol
Also, how tf did he get up there
cats can get anywhere
/r/thecatdimension
no
k
Yes no shit lmao
I was actually thinking of writing it in python then converting it to machine language
I hope you're not being serious
@faint ermine How do you find that header?
Invoke-webrequest google.com | select -expandproperty header```
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
there are requirements you have to meet. once met, type the command that is listed there
@vivid palm ok thank you btw I understand the blocked me
@vivid palm no problem have a great day
statistics are clear, native apps do a ton better then cross platform
or browser only
statistics are clear, NY is superior to all states
Said only NYers
this post is perfect
https://www.reddit.com/r/discordapp/comments/bpxpev/what_are_the_unwritten_rules_of_discord/
15 votes and 12 comments so far on Reddit
that's good
They are terrible at driving smh
Idfk
I am a virginiaer
It’s ok, she just had to get surgery
But she should be fine
Also @gentle flint I saw that lol
I should not be staff lol
I am a literal child
LOL
I’m gonna text him that
Just to piss him off
He’s a walking meme
Ppl are gonna be thinking I’m talking to myself lol
Also what does @vivid palm mean?
it's the homerow on the colemak layout
Oh
They should call it the qwfpgj layout
To stay consistent
Alright am I cool now?
Yeah
Yeah
Lol
Yeah I promise
No I am original
Lmao
@crimson copper join
I would appreciate if you would call me asdf jkl; and not jake
Just out of respect
.catify
Your catified nickname is: asdf jkl; | ᘣᘏᗢ
can you provide an mp3 file with the correct pronunciation?
Your catified nickname is: schoolman_kv | ᓕᘏᗢ
thanks
this server is full of surprises
bb
!voiceverify
huh?
i see
asdf jkj; isn't quirky though
yep.
please don’t find this disturbing
one day, i accidentally caught a mosquito unharmed… i decided not to kill it for some reason, i put it in my desktop, it kept staring at me, i was kind of scared… but after a few time, he went away.
Out of all my cute horrors, the next day. i saw the same mosquito in my desk, i knew it was him because he had the leg injury i gave him (accidentally)
i felt a very weird feeling of cuteness on his eyes.. it’s when he jumped at me, a very unmutual friendship was about to begin…
Seriously, i fed him, i would call him with a high pitch noise.. he would come right at me !!!
it was that day, when he did not reply to my whistle..i became crazy. i cried for a mosquito.
SORRY FOR AN ANSWER LIKE THIS, BUT IT’S TRUE.
Edited clip from assignment
so you working on sublime plugin?
tell more?
the features of your plugin
ah got it
i saw a PR request from a dev on VS code for the same feature
how long you working with python?
do u know ML or TF
machine learning
tensorflow
@glad sandal random cat image bot? 😂
day 1 million of waiting to get verified
haha
ya i realize that when i was also wiling to get verified
@sturdy dirge here
@client.command(aliases = ['банк','bank'])
async def __bank(ctx, arg1, member: discord.Member = None, amount: int = None):
if arg1 is None:
await ctx.send(embed = discord.Embed(description = "{}{}".format(ctx.author.mention,config.BANK)))
yeah, ill see if i can fix my mic after I build dwm-status
pls give
code
@client.command(aliases = ['банк','bank'])
async def __bank(ctx, arg1, member: discord.Member = None, amount: int = None):
if arg1 is None:
await ctx.send(embed = discord.Embed(description = "{}{}".format(ctx.author.mention,config.BANK)))
@rugged root I thought you were going to freshen up 😕
feels like you could really use some hot coco or something, some hot drink
maybe some steam 😕 ?
Food first
why dont have the permission to speak in the channel
Ignoring exception in command __bank:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/core.py", line 855, in invoke
await self.prepare(ctx)
File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/core.py", line 789, in prepare
await self._parse_arguments(ctx)
File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/core.py", line 697, in _parse_arguments
transformed = await self.transform(ctx, param)
File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/core.py", line 542, in transform
raise MissingRequiredArgument(param)
discord.ext.commands.errors.MissingRequiredArgument: arg1 is a required argument that is missing.
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
.банк
@client.command(aliases = ['банк','bank'])
client = commands.Bot(command_prefix = settings['PREFIX'])
@rugged root what is the contributors tag? Is that for the python language itself? 
.bank ham @rugged root 4
.bank
Вы зашли в банк.
перед всеми командами пишите .банк
откыть - открыть счёт баланс - посмотреть ваш баланс или баланс человека с помощью упоминания перекинуть упомянуть сколько - перекинуть деньги человеку
.bank balance
.bank balance @sturdy dirge
@client.command(aliases = ['банк','bank'])
async def __bank(ctx, arg1 = None, member: discord.Member = None, amount: int = None):
if arg1 is None:
await ctx.send(embed = discord.Embed(description = "{}{}".format(ctx.author.mention,config.BANK)))
.банк
!voice @whole bear
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
elif arg1 is open_balance:
if cursor.execute(f"SELECT id FROM users WHERE id = {ctx.author.id}").fetchone() is None:
cursor.execute(f"INSERT INTO users VALUES ('{ctx.author}', {ctx.author.id}, 0, 0)")
connection.commit
await ctx.send(embed = discord.Embed(description ="Вы {} создали счёт. Номер счёта {}".format(ctx.author.mention,ctx.author.id)))
else:
await ctx.send(embed = discord.Embed(description ="Вы {} уже создали счёт. Номер счёта {}".format(ctx.author.mention,ctx.author.id)))
.bank open
elif arg1 in open_balance:
open_balance = ['откыть','open']
if arg1 in open_balance:
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
if not arg1 in open_balance:
Hey @sturdy dirge!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
Ignoring exception in command __bank:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "/home/bot/bot.py", line 35, in __bank
description = f'''Баланс пользователя {ctx.author} составляет **{cursor.execute("SELECT cash FROM users WHERE id = {}".format(ctx.author.id)).fetchone()[0]} **'''
TypeError: 'NoneType' object is not subscriptable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/usr/local/lib/python3.9/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: 'NoneType' object is not subscriptable
import sublime_plugin
import os
# plugin mainly revolves around the plugin idea of file_navigationusing via input_handlers.
class file_system_inputhandler(sublime_plugin.ListInputHandler):
def __init__(self, files_to_be_listed):
self.files_to_be_listed = files_to_be_listed
def name(self):
return 'name'
def preview(self, arg):
return f'you selected: {arg}'
def list_items(self):
return ['~~'] + self.files_to_be_listed
def next_input(self, args):
global file_path
if args['name'] == '~~':
if file_path != reverting:
file_path = file_path.split('//')
file_path.pop(len(file_path) - 1)
file_path = '//'.join(file_path)
return file_system_inputhandler(os.listdir(file_path))
else:
return file_system_inputhandler(os.listdir(file_path))
else:
try:
file_path = file_path + '//' + args['name']
iterated_list = os.listdir(file_path)
return file_system_inputhandler(iterated_list)
except NotADirectoryError:
return None
class file_handlerCommand(sublime_plugin.WindowCommand):
def run(self, name, directory):
global file_path, reverting
reverting = directory
if name != '~~':
file_opened = str(file_path).replace('//', '/')
print(file_opened)
self.window().run_command('open_file', {'file': file_opened})
def input(self, args):
global file_path, reverting
file_path = reverting
print(file_path)
begin_list = os.listdir(file_path)
return file_system_inputhandler(begin_list)```
File "C:\Program Files\Sublime Text\Lib\python38\sublime_plugin.py", line 1443, in create_input_handler_
return self.input(args)
File "C:\Users\Ayoush\AppData\Roaming\Sublime Text\Packages\User\new_file_handler.py", line 87, in input
file_path = reverting
NameError: name 'reverting' is not defined
Traceback (most recent call last):
File "C:\Program Files\Sublime Text\Lib\python38\sublime_plugin.py", line 1480, in run_
return self.run(**args)
TypeError: run() missing 1 required positional argument: 'name'```
Hey Maro. Back in a moment
File "/home/bot/bot.py", line 35
description = f"Баланс пользователя {ctx.author} составляет **{cursor.execute("SELECT cash FROM users WHERE id = {}".format(ctx.author.id)).fetchone()[0]} **"))
^
SyntaxError: f-string: unmatched '('
root@rpprojectred:/home/bot# python3.9 bot.py
File "/home/bot/bot.py", line 34
await ctx.send(embed = discord.Embed(description = f"Баланс пользователя {ctx.author} составляет **{cursor.execute("SELECT cash FROM users WHERE id = {}".format(ctx.author.id)).fetchone()[0]} **"))
^
SyntaxError: f-string: unmatched '('
bash: SyntaxError:: command not found
root@rpprojectred:/home/bot# python3.9 bot.py
File "/home/bot/bot.py", line 34
await ctx.send(embed = discord.Embed(description = f"Баланс пользователя {ctx.author} составляет {cursor.execute("SELECT cash FROM users WHERE id = {}".format(ctx.author.id)).fetchone()[0]} 💵")
^
SyntaxError: f-string: unmatched '('
can some one help me? With .py to .exe
👋 later, pushed my code, and now I'm done for the day 🥱
drink lots of fluids @rugged root , and get well soon
Thanks. Catch you later
@rugged root Look whos here, hadn't seen you around 2 3 days, where have you been ?
@zenith radish Did you say 90 degree ?
Oh thats a relief, couldnt believe 90 degree, people would be boiling if that was the case
Not that 30 degrees is good
we have those too
What have I walked into? 😄
@stuck furnace We are going over jake's phobia of crabs
Fair enough
Hemlock
Tylenol is actually a really dangerous drug tbh.
It has a low therapeutic index.
Ratio of damaging dose to effective dose.
Now you sound like you're talking through a kazoo...
@stuck furnace is that really you?
Imagine 😄
of course you'd respond with either eyes or "erm"
Erm, 👀
"actually..."
Tweet sent from samsung fridge
Stop bullying me 😄
There it is lol
reminded me of that tweet
@stuck furnace is that you in your pfp or some random guy
Why not both? 😄
lol yeah why not
Yep
and fatycaty
The perfect dice bags
that's a lot of whiskey
whisky hotel yankee
november oscar tango
?
If you're not puncturing your desk, are you even playing dnd?
Damage Nine Desks
dnd with more than 8 is just sooo long
I like systems that simplify combat more
I've always used a chalk bag for my dice lol
Lol ik
rock climbing bag for chalk
Oh dope
This man, gave a github bootcamp last weekend
Helper he says
Cry
cry
cry
st's sake, what the fuck did I get myself into
was probably what chris was thinking
@cobalt fractal The second session which Kutiekat took was really informative she went through the whole workflow that was really cool
Pinnacle of comedy
So good
A 5 year old unusually knowledgeable in Powershell.
What the
Take a walk down memory lane and listen to the AOL (America Online) Dial-up internet connection sound and the famous You've Got Mail.
Subscribe to AdventuresinHD : http://www.youtube.com/subscription_center?add_user=AdventuresinHD
Imagine if jvm would work lmao
It does though
What age are you guys stuck in ? If someone asks you what year you are in what year comes first to your mind ? For some reason Im still stuck in 2007 2008
Same tbh. The 90s will always be ~10 years ago to me.
Yeah like if I hear "hey Soul sister" Im like yeah golden age of songs just came out, this is awesome
Ima go bye
So angwerwy
Madlad @cobalt fractal
There was a linkedin leak?
leakedin
Interested to see what my "inferred salary" is 😄
If it's anything above 0 they're way off.
I mean I wasnt too bummed about the breach
Like everything we put there was for display for everyone right ?
well someone got pissed
"This is a Full-time Position so we expect you to be available to work 40 hours per week between the hours of 7am PST and 9pm PST."
Preferred Skills
Coding Competition Automation
Hackathon
They are not wrong but also, people need money to eat.
Jesus all the stickers on that poor computer...
true
Huh, learn something new every day
hi hi!
Easy enough thing to fix, technically
Yea
Plenty of plug in tech for that
🤤
that's like too much
!stream 82578210453192704
@zenith radish
✅ @zenith radish can now stream.
You eat the seeds ???? What
21 hours left for the qualifier 
o/
anyway to access linkedin leaks?
That's incredibly malicious, so we're not gonna talk about it here
ohkay
I was going to ask about Code jam, but thought this would be a rush hour moment with all the people rushing in no. Excited about the to be team mates though
Not a rush hour for me :D, what's up?
@ionic ferry can you unmute me?
@hollow haven So how are teams going to be made, you mentioned something about the age what else were the parameters going to be
@hollow haven Btw the second session for Github bootcamp was a blast learnt a lot
So, the first thing we'll do is select team leaders. This is a manual process and probably the most important bit. From there, we'll run the rest of the qualified participants through a script that will prioritize which team they get placed on based on timezone first. We'll then take a look at try to balance with age and experience although that's the last priority
haha, I'm itching to re-do it so it's less of a mess. I can definitely do better than that
It's actually what I'm working on now while I wait for someone to get back to me
did you see dms @hollow haven :/
Yes! It looks great! I knew I forgot to respond to someone
Out of total can you tell how many wanted to be team leaders ?
😞
(I have so many DMs)
this is truth
Ms. Popular over here
11 said yes, 72 said they don't mind either way. Although those are yesterdays stats. I haven't pulled the last 24 hours of data
Hello
I wonder how many were capable but just didnt want to deal with the pressure, I mean I wouldve fallen into dont mind category but just wanted to work under someone experienced or someone capable
why don't you apply for leader role 🙃
Im still like a beginner, I dont think I would be able to lead a team yet from development perspective
@frigid panther whats the lovefest role stand for ? someone said "freelove" but couldnt understand what they meant
.bemyvalentine <user> [valentine_type]
*Send a valentine to a specified user with the lovefest role.
syntax: .bemyvalentine [user] [p/poem/c/compliment/or you can type your own valentine message]
(optional)
example: .bemyvalentine Iceman#6508 p (sends a poem to Iceman)
example: .bemyvalentine Iceman Hey I love you, wanna hang around ? (sends the custom message to Iceman)
NOTE : AVOID TAGGING THE USER MOST OF THE TIMES.JUST TRIM THE '@' when using this command.*
Subcommands:
secret <user> [valentine_type]
Send an anonymous Valentine via DM to to a specified user with the lovefest role.
Like I know im just so lovely but really?
Huh joined the channel a bit late I guess
I believe the bug is now fixed
Dont take this seriously @frigid panther
.bemyvalentine @frigid panther p
Can you send me what poem you received ?
Kind of surprised we don't have it mention that messages get routed to #sir-lancebot-playground
I think it we did not change it when we decided to allow @viscid lagoon commands to be used everywhere
or in voice channels
Thats a neat poem, better than anything I could've thought of, is it just a API which picks out random poems ?
I don't actually remember, I wrote that command 2 years ago, lol
I think it uses a json file
Can you point in the direction of the code ? where this is ?
kinda tired and feeling low today, will go to bed now (prolly my earliest this year, lol), cya o/
More like LeakedOut (joke just occurred to me sorry)
_tkinter.TclError: bad columnspan value "0.6666666666666666": must be a positive integer
int(whatever_you_tryin_to_pass)
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: DLL load failed while importing _tkinter: The specified module could not be found.
switch is coming in python?
probably not
print(some_bool ? "this was true" : "this was false")
!e ```py
print(True ? "this was true" : "this was false")
@paper tendon :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | print(True ? "this was true" : "this was false")
003 | ^
004 | SyntaxError: invalid syntax
!e ```py
print(6 if 1<2 else 7)
@paper tendon :white_check_mark: Your eval job has completed with return code 0.
6
!e
print("True" if True else "False")
!e ```py
i = 1
print("True" if (i:= 2) < 2 else "False")
@paper tendon :x: Your eval job has completed with return code 1.
001 | File "<string>", line 2
002 | print("True" if i:= 2 < 2 else "False")
003 | ^
004 | SyntaxError: invalid syntax
!e ```py
i = 1
print("True" if (i:= 2) < 2 else "False")
@paper tendon :white_check_mark: Your eval job has completed with return code 0.
False
below 0 kelvin is not reachable
bye boys have fun
hello
function main_evaluation(pos) {
var mg = middle_game_evaluation(pos);
var eg = end_game_evaluation(pos);
var p = phase(pos), rule50 = rule50(pos);
eg = eg * scale_factor(pos, eg) / 64;
var v = (((mg * p + ((eg * (128 - p)) << 0)) / 128) << 0);
if (arguments.length == 1) v = ((v / 16) << 0) * 16;
v += tempo(pos);
v = (v * (100 - rule50) / 100) << 0;
return v;
}
function middle_game_evaluation(pos, nowinnable) {
var v = 0;
v += piece_value_mg(pos) - piece_value_mg(colorflip(pos));
v += psqt_mg(pos) - psqt_mg(colorflip(pos));
v += imbalance_total(pos);
v += pawns_mg(pos) - pawns_mg(colorflip(pos));
v += pieces_mg(pos) - pieces_mg(colorflip(pos));
v += mobility_mg(pos) - mobility_mg(colorflip(pos));
v += threats_mg(pos) - threats_mg(colorflip(pos));
v += passed_mg(pos) - passed_mg(colorflip(pos));
v += space(pos) - space(colorflip(pos));
v += king_mg(pos) - king_mg(colorflip(pos));
if (!nowinnable) v += winnable_total_mg(pos, v);
return v;
}
function end_game_evaluation(pos, nowinnable) {
var v = 0;
v += piece_value_eg(pos) - piece_value_eg(colorflip(pos));
v += psqt_eg(pos) - psqt_eg(colorflip(pos));
v += imbalance_total(pos);
v += pawns_eg(pos) - pawns_eg(colorflip(pos));
v += pieces_eg(pos) - pieces_eg(colorflip(pos));
v += mobility_eg(pos) - mobility_eg(colorflip(pos));
v += threats_eg(pos) - threats_eg(colorflip(pos));
v += passed_eg(pos) - passed_eg(colorflip(pos));
v += king_eg(pos) - king_eg(colorflip(pos));
if (!nowinnable) v += winnable_total_eg(pos, v);
return v;
}
Watch my live shows on Twitch ➡️ https://twitch.tv/gmhikaru
Play chess on Chess.com ➡️ https://www.chess.com/?ref_id=15448422
Support the channel ➡️ https://streamelements.com/gmhikaru/tip
Become a fan on Facebook ➡️ https://facebook.com/GMHikaru
Follow me on Twitter ➡️ https://twitter.com/GMHikaru
Find me on Chess.com ➡️ https://w...
!e ```py
print(bin(5))
print(bin(5<<0))
@paper tendon :white_check_mark: Your eval job has completed with return code 0.
001 | 0b101
002 | 0b101
!e ```py
print(bin(5))
print(bin(5<<1))
@paper tendon :white_check_mark: Your eval job has completed with return code 0.
001 | 0b101
002 | 0b1010
@gloomy vigil :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | TypeError: int() can't convert non-string with explicit base
@paper tendon :x: Your eval job has completed with return code 1.
001 | 0b101
002 | 0b101
003 | Traceback (most recent call last):
004 | File "<string>", line 3, in <module>
005 | TypeError: int() can't convert non-string with explicit base
!e
a = bin(5)
print(int(a, 2))
@gloomy vigil :white_check_mark: Your eval job has completed with return code 0.
5
!e ```py
print(bin(5), int(5))
print(bin(5 << 1), int(5 << 1))
@paper tendon :white_check_mark: Your eval job has completed with return code 0.
001 | 0b101 5
002 | 0b1010 10
What's your rating ? Are you FIDE rated ?
@glad sandal use text then
let me get this straight, your basic programs (built with pyinstaller) report back as viruses for some of the virustotal scanners?
Is there something wrong with pyinstaller
im suspecting that
yes
and why did u bold ur message
idk
it looks cool
Hehe
Now im benddy yay
and now im normal
nvm
pip install pyinstaller
@glad sandal pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
pip install pip-review

Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
ok

OMG SO CUTE
ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
gtg
sad
hi
what's happening
yes
was typing in another channel
like for font colors? campbell i think, which is default
wow
i didn't really bother customizing too much yet. i'm waiting for 1.9 when they fix a bug
big bug?
interestingly you can't just set the theme in the ui... have to write a line in the json file
you can if you go into the profiles > appearance
yeah, go down into the profiles thing, middle left
and then had to add that one line lol
wow!
probably
my only issue with windows terminal is that in vim, you can't see what char is under your cursor if it's a light color
the character
let me get a screenshot
and you can't see it if it's white, lol
lmao
if it's offwhite, it's still just incredibly hard to read
vim
yes, it's normal mode
😔



make your own
various things, comments too
the color of comments in monokai pro is impossible to read since i have bad eyesight, so i changed them to green
medium rare chicken
yeah
in vsc i know for sure it is easy ye
too bad only nerds use vsc
let me find the path to the setting
@vivid palm do you have the waifu of the day plugin
pink is good 
cat as an ide
cat file.py | nano
it's supposed to concatenate files
cat a.txt b.txt will just slap them together
cat a.txt |grep whatever
me
grep whatever a.txt
that's why you use fish!
open a file in python and use regex
wtf is that font
oh? what flavor
no
i've seen it 1000s of times
it's the default of windows terminal, no?
Here we go
Socket programming
ligatures?



