#voice-chat-text-0
1 messages Β· Page 119 of 1
why..
Does too much science, or scientism inhibit philosophical thought, that extends beyond (and includes science) as an overall broad view of the "big picture" ? The issue is: science is true, and no rational person would contradict science.. but this does not mean one stops investigating upon discovery of scientific fact or observation. However, ex...
oh!
@whole bear Can you pleas explain what in the hail should i do to get Vc acces?
My english sucks!
Where is that π
Books shelved as computer-science: Introduction to Algorithms by Thomas H. Cormen, The Pragmatic Programmer: From Journeyman to Master by Andy Hunt, Clea...
@whole bear Did you know that I can speak Persian / farsi / ridi / chera bawr nemikoni / mage mn chikar krdm / mn a afghanistan amde am vay vay man amde am
@whole bear I know HTML!
50 message?
If i spam i will get ban!
:incoming_envelope: :ok_hand: applied timeout to @pine orbit until <t:1682130410:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
@whole bear Equatorial Guinea
Hi
!paste
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.
!e py name = 'Peter' age = 20 text = 'Hello, ' + name + '. You are ' + str(age) + ' years old.' print(text)Beginner technique.
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello, Peter. You are 20 years old.
!e py name = 'Peter' age = 20 print('Hello, ', name, '. You are ', age, ' years old.')Perhaps for if you don't care about having the string, after.
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello, Peter . You are 20 years old.
!e py name = 'Peter' age = 20 text = f'Hello, {name}. You are {age} years old.' print(text)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello, Peter. You are 20 years old.
birth_year = input('Birth year: ')
print(type(birth_year))
age = 2019 -int(birth_year)
print(type(age))
print(age) ```
!e py template = 'apple {} pear {} peach' result = template.format('banana', 'orange') print(result)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
apple banana pear orange peach
!e py a = [] b = [a, a, a] print(b) a.append(0) print(b)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | [[], [], []]
002 | [[0], [0], [0]]
!e py my_list = ['a', 'b', 'c'] my_list[0] = 'd' print(my_list)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
['d', 'b', 'c']
!e py my_list = ('a', 'b', 'c') my_list[0] = 'd' print(my_list)
@somber heath :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 2, in <module>
003 | my_list[0] = 'd'
004 | ~~~~~~~^^^
005 | TypeError: 'tuple' object does not support item assignment
var = (a, b, c)
var = a, b, c```
!e py a = [] b = [] c = a print(a == b) print(a is b) print(a is c)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | True
002 | False
003 | True
hello!
!e
" test " * 2
!e py print('aaa' >> 1)
@somber heath :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | print('aaa' >> 1)
004 | ~~~~~~^^~~
005 | TypeError: unsupported operand type(s) for >>: 'str' and 'int'
@midnight agate :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | print('a' * 2, 'aa' / 2)
004 | ~~~~~^~~
005 | TypeError: unsupported operand type(s) for /: 'str' and 'int'
!e py print(b'aaa' >> 1)
@somber heath :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | print(b'aaa' >> 1)
004 | ~~~~~~~^^~~
005 | TypeError: unsupported operand type(s) for >>: 'bytes' and 'int'
!e
name = 'Talent unlimited'
print(f'Hello, {name}. how are you doing friend?')
@faint raven :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello, Talent unlimited. how are you doing friend?
O
|
|
Is there anyone here who implemented their own jupyter kernel?
!e ```py
class Person:
def init(self, name):
self.name = name
def greet(self):
print(f'Hello. I am {self.name}.')
a = Person('Jane')
b = Person('Bob')
a.greet()
b.greet()```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Hello. I am Jane.
002 | Hello. I am Bob.
moon water
@daring knotπ
Hoy hi.
@woeful wyvernπ
Was a decree handed down that I will be called Opal and everyone who isn't me will be called Not Opal?
Because, I don't know. I'm kind of down with that.
no voice @somber heath
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
!kindling
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.
coding practice
@woeful wyvernThat sounds like poor netizenship.
Citizenship, but for the internet.
Oh, google, fine.
Google can take it.
Discord? Be a little kinder to it, maybe, you know?
@whole bearπ
I'm somewhere I don't want to be making a lot of noise.
Other people to consider.
@jade owlπ
I've been reading SCPs, if that counts.
No.
Secure, Contain, Protect. It's a fictional organisation designed for cataloguing and containing anomalous, i.e. supernatural, objects, events and assorted phenomena.
If you've ever watched Warehouse 13, it's a bit like that.
Indeed, I wouldn't be surprised if Warehouse 13 drew inspiration from SCP.
never watched
CREEPYPASTA STORYβΊby zachariusfrost: https://www.reddit.com/r/nosleep/comments/l6b3su/theres_a_vtuber_on_the_dark_web/
Creepypastas are the campfire tales of the internet. Horror stories spread through Reddit r/nosleep, forums and blogs, rather than word of mouth. Whether you believe these scary stories to be true or not is left to your own disc...
I've heard of GPT4All, but I've not used it.
@ruby ironπ
π @coarse gale
Hoy hi.
Okay, so let's start with what Python is.
Python is what is known as an object oriented programming language.
OOP.
Shut up.
You shut your mouth.
Okay. So.
The idea of object oriented programming is that every object is of a type, a class.
This can be thought of as like a blueprint.
Shall I continue?
If you're looking to learn about the more internal stuff, I don't think I'm the person to explain that.
I can explain things in a general Python concept way.
Instances of classes have methods.
The method is not the same object as the function of the class.
!e ```py
class MyClass:
def function_or_method(self):
pass
instance = MyClass()
print(type(MyClass.function_or_method))
print(type(instance.function_or_method))```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | <class 'function'>
002 | <class 'method'>
What is this?
!e ```py
class MyClass:
def function_or_method(self):
pass
instance = MyClass()
print(id(MyClass.function_or_method))
print(id(instance.function_or_method))```
What this code does?
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 139676206292064
002 | 139676203910208
!e
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside them.
By default, your code is run on Python 3.11. A python_version arg of 3.10 can also be specified.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
!level
I'm demonstrating that the functions you define in a class become methods of the objects created from that class.
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside them.
By default, your code is run on Python 3.11. A python_version arg of 3.10 can also be specified.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
WOW!
A method typically is attached to a specific instance of a class. That instance is given as self.
Ok
ok
A function is like an unattached method.
WOW!
You can.
It's the way it was decided we should write things. You can do it either way.
im here to learn python!
!e py print('apple'.upper()) print(str.upper('apple'))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | APPLE
002 | APPLE
How do you get this=
!e
import discord
client = discord.Client()
@client.event
async def on_ready():
print('Logged in as {0.user}'.format(client))
@client.event
async def on_message(message):
if message.content.startswith('!say '):
text = message.content[5:] # remove the "!say " prefix
await message.channel.send(text)
client.run('your-bot-token')
@pine orbit :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | import discord
004 | ModuleNotFoundError: No module named 'discord'
Aough!
You may be interested in talking to the #discord-bots channel.
Yes!
Or no!
!code
!e
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside them.
By default, your code is run on Python 3.11. A python_version arg of 3.10 can also be specified.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
I am intrested in cyber security!
!e ```py
print('Hello, world.')
print('Goodbye.')
```
Yes. You can monkey patch things.
How?
I'm responding to discussion occurring in the voice channel.
The monkey patch comment wasn't directed at you, Moon.
Ok
I cant unmute my self for random reason!
Python is an object oriented programming language. It would be silly to not take advantage of the benefits it provides.
I dont have acces to voice channel
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
π
ok
ok
https://youtu.be/JteQEN1XPyc
VISUAL RECURSION
This video is a compilation of eight shorter videos I have created showing dissection proofs for infinite geometric series with ratio of the form 1/n and first term 1/n. To see the original videos (in shorter form and typically with more dramatic music), check the links below. When you have seen enough of these dissections, you should be able to...
found it
Ah?
import random
import string
def generate_password(length=12):
# Define the password length and character set to use
chars = string.ascii_letters + string.digits + string.punctuation
# Generate the password
password = ''.join(random.choice(chars) for _ in range(length))
return password
visual recursion
Yes. Python is a higher-level programming language. It lets us write code that runs without having to know how to write linked lists or invert binary trees.
!e
`import random
import string
def generate_password(length=12):
# Define the password length and character set to use
chars = string.ascii_letters + string.digits + string.punctuation
# Generate the password
password = ''.join(random.choice(chars) for _ in range(length))
return password`
@pine orbit :warning: Your 3.11 eval job has completed with return code 0.
[No output]
Why?
Three backticks opening, three backticks closing,.
nothing, it's just some topic we've discussed yesterdayπ
Also, see random.choices.
import gay
I did pip install gay
and it did download a file
oh
Oh lord!
me?
ok
I am password cracker
I crack password using kali linux
Its not that easy!
So are you the password cracker, or is your computer/Kali?
:/
Yup!
I got deported
:/
My life sucks
@teal horizonπ
sup, nice silence
Weekends tend to have lower-activity levels in general.
US daytime weekdays tends to be the most active.
I do Python as a hobby.
Is it possible to make a window like this in python? https://www.youtube.com/shorts/hHu2aJ-ldMI
You may wish to experiment by using the turtle module.
Why do you find that surprising?
Or perhaps you felt it was insulting?
oh
I, too, like Python.
Just like a human that you likes it but it still tries to ignor you!
Python is better or JS at making Machine learning AI
Is java better at making games or python?
and the hardware
0_0
I'd say Java, between the two, but neither is ideal.
C++?
Python is good for ML/AI because it provides a friendly interface, and a lot of the frameworks people have written are for Python.
Wow!
Compiled backend, Python frontend.
Who made python progrming language?
How did he made it?
@somber heath Is Python got it name from Python snake?
Monty Python.
Guido van Rossum.
ok
Is all bots here using Python?
I expect so. All the ones officially permitted to be here, at least.
WOW!
o_o
Is there any application that let us make mods for games like minecraft using python
I believe the educational edition of Minecraft has Python integration, but that's not the same thing as a mod. Mojang/Microsoft have a hostile attitude toward the Java edition of Minecraft and modding in general.
I know!
Java being where most of the modding happens.
I mean Minecraft Java
So it is not possible to make mods using python?
It wouldn't be impossible, but the general consensus, as I understand it, is Minecraft is in Java thus the mods are best made as Java, too.
I have seen some Python interface to a Java mod, something with Raspberry Pi.
It's been a long while.
But again, not the same thing as a Python mod.
ok
would you like some clash of code
no i can't talk
byye
im really beginner to hate refactoring code.. just found a 12mb json being duplicated about 10k times now.. barf.
good
i can't speak
ok
hello OpalMist
What?
Ah
though how are you guys doing
doing good @hoary plaza
and
to mention
did any updates go off by the organisation?
Haven't updated them for a while
btw @somber heath @hoary plaza how to use Python with Blender
OH
I see
what's meant by "def"?
Okay,Thanks
Are you from AUS?
Glad to hear that
Dame Edna Everage, often known simply as Dame Edna, was a character created and performed by Australian comedian Barry Humphries, known for her lilac-coloured ("wisteria hue") hair and cat eye glasses ("face furniture"); her favourite flower, the gladiolus ("gladdies"); and her boisterous greeting "Hello, Possums!" As Dame Edna, Humphries wrote ...
he did a australian politician character also
Sir Leslie Colin "Les" Patterson is a fictional character which was created and portrayed by Australian comedian Barry Humphries. Obese, lecherous and offensive, Patterson is Dame Edna Everage's exact opposite: she is female, refined, Protestant and from Melbourne; he is male, uncouth, Roman Catholic and from Sydney.
My grandpa is 72
btw
can I use python to create apps
Android
Apple uses Swift I think ?
um
Not sure about that actually
@somber heath okay
what's the tool you're talking about?
django?
Have heard it before
And how can I use Anaconda
and Jupyter
yes i heard same - anaconda = BORG
hehe
for presentations ? i have seen jupyter
dont know if its a light weight install
more coffee more coffee
Q - a while a go , i saw a blip on CANVAS for Tkinter that it has sprites ... not really sure ... i need some deep docs on all Tkinter stuff
okay
!e ```py
def func(a, b, c):
print(a)
print(b)
print(c)
func(a = 1, b = 2, c = 3)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
!e ```py
def func(a, b, c):
print(a)
print(b)
print(c)
func(**{'a': 1, 'b': 2, 'c': 3})```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
and
!e ```py
def func(**kwargs):
print(kwargs)
func(a = 1, b = 2, c = 3)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
{'a': 1, 'b': 2, 'c': 3}
what are the functions of math module
okay
!d math
This module provides access to the mathematical functions defined by the C standard.
These functions cannot be used with complex numbers; use the functions of the same name from the cmath module if you require support for complex numbers. The distinction between functions which support complex numbers and those which donβt is made since most users do not want to learn quite as much mathematics as required to understand complex numbers. Receiving an exception instead of a complex result allows earlier detection of the unexpected complex number used as a parameter, so that the programmer can determine how and why it was generated in the first place.
what's meant by fmod
Can't understand what is this thing saying
may not return the same result looks like sus to me
I mean susupicious
a % b #fine when a and b are ints
math.fmod(a, b) #for when a and b are floats```
How to talk?
can you explain what does this thing says
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Aussie icon Dame Edna Everage/Barry Humphries is back in hospital after hip surgery complications. Here's a classic clip as Dame Edna Everage leaves King Charles & Camilla in hysterics in the βroyal boxβ at the Royal Variety Performance in 2013.
!e py print(.1 + .2)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
0.30000000000000004
!e py import math print(math.fsum([.1, .2]))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
0.30000000000000004
Are you guys from AU ?
oh
What's up with ChatGPT
?
does it have a relation with python or something like that
Have you guys heard about Giant Steve
Minecraft?
creepypasta
does anyone have any way to access chat gpt 4?
no
this guy has been a nuisance to my freind who are playing minecraft on servers
well then ig buyihng is the only option?
looks horryfying, isn't it
I dunno
My mom and dad don't allow me play Minecraft
Ubuntu is good for Python things like that
I play only NS Mobile
Boiling hot in here
sweating like hell
hey
Hey gofek. are you using some kind of voice modulation tool?
it sounds weird
@lunar haven
whaaat!
what happened to the folder
Hey @faint raven
wassup
Hey @mighty nest
wassup
Whom you're talking to @mighty nest ?
Anyone heard of AutoGPT?
I found a lot of people talking about it recently. I tried it. Fuck that shit. it used up my free tokens very quickly from GPT4.
yo
!e
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside them.
By default, your code is run on Python 3.11. A python_version arg of 3.10 can also be specified.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
yo voice chat
biocipher
yo
farzin
@whole bear
i need to send 50 messages i guess
Hi friend π
!e hello world
@thin breach :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | hello world
003 | ^^^^^
004 | SyntaxError: invalid syntax
Windows Command prompt
Hello World example,
1. hit windows key and type cmd
2. hit enter
2. type "Hello World"
3. hit enter
4. result is in the first line
Yo @whole bear Can you help me with this code?
import discord
from discord.ext import commands
from io import StringIO
import contextlib
import sys
client = commands.Bot(command_prefix='/')
@client.event
async def on_ready():
print('Logged in as {0.user}'.format(client))
@client.command()
async def e(ctx, *, code):
f = StringIO()
with contextlib.redirect_stdout(f):
exec(code)
output = f.getvalue()
if output:
await ctx.send(output)
client.run('your-bot-token')
!e
import discord
from discord.ext import commands
from io import StringIO
import contextlib
import sys
client = commands.Bot(command_prefix='/')
@client.event
async def on_ready():
print('Logged in as {0.user}'.format(client))
@client.command()
async def e(ctx, *, code):
f = StringIO()
with contextlib.redirect_stdout(f):
exec(code)
output = f.getvalue()
if output:
await ctx.send(output)
client.run('your-bot-token')
@pine orbit :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | import discord
004 | ModuleNotFoundError: No module named 'discord'
!e
pip install discord
@pine orbit :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | pip install discord
003 | ^^^^^^^
004 | SyntaxError: invalid syntax
Yes, I will start making programming books and courses
@whole bear
Can you help me with this?
import discord
from discord.ext import commands
from io import StringIO
import contextlib
import sys
client = commands.Bot(command_prefix='/')
@client.event
async def on_ready():
print('Logged in as {0.user}'.format(client))
@client.command()
async def e(ctx, *, code):
f = StringIO()
with contextlib.redirect_stdout(f):
exec(code)
output = f.getvalue()
if output:
await ctx.send(output)
client.run('your-bot-token')
whats the error?
Exception has occurred: TypeError
BotBase.init() missing 1 required keyword-only argument: 'intents'
File "C:\Users\Bo BergsjΓΆ\Bot.py", line 7, in <module>
client = commands.Bot(command_prefix='/')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: BotBase.init() missing 1 required keyword-only argument: 'intents'
Thanks
@whole bear Hello!
@whole bear Farzin Hello!
@whole bear Farzin Hello!
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside them.
By default, your code is run on Python 3.11. A python_version arg of 3.10 can also be specified.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
!e help
!e
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside them.
By default, your code is run on Python 3.11. A python_version arg of 3.10 can also be specified.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
!e EEEEEEEEEEEEEEEEEEEEEEEEEEEEE!
@pine orbit :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | EEEEEEEEEEEEEEEEEEEEEEEEEEEEE!
003 | ^
004 | SyntaxError: invalid syntax
@pine orbit You may like to check out the #bot-commands channel. π
Okay sure!
!e pip install discord
@pine orbit :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | pip install discord
003 | ^^^^^^^
004 | SyntaxError: invalid syntax
!e print (Hello world!)
@pine orbit :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | print (Hello world!)
003 | ^^^^^^^^^^^
004 | SyntaxError: invalid syntax. Perhaps you forgot a comma?
please stop spamming the voice channel
Im not!
No problem
I have a problem
@lucid blade How do you make can i get acces to voice channel?
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
^^
Thanks.
Includes Battle Chess: Enhanced!The most challenging game on Earth comes to life in Battle Chess. An entire medieval world at war is reflected on the checkered field.Everyone who's ever had a knight take a pawn, has seen that capture as more than one piece replacing another on the board. In players' minds, the bold knight, resplendent in his arm...
$9.99
:incoming_envelope: :ok_hand: applied timeout to @mint heron until <t:1682200088:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
no but ill take a look π
nice π
not only the news though ... popular tv shows
like eastenders or little house on the prairie
same with films too
hi
hello
i prefer to keep my code off C: anyways, incase an update decides to bork my OS..
anxious
Mm.
Yes. It's a bastard.
HA! If you find one, let me know.
People vary.
Different things work for different people.
Not having worked in an environment like that before, I'm not sure of what the best approach is. I expect the best approach is try anyway and maintain open lines of communication with your coworkers.
The more you have an idea of what the shape of the hole is, the better you have an idea of what shape the block needs to be to fit through.
You only get that from observation.
@wary roostπ
What's up?
Yeah, functions that return objects of different types, shouldn't, unless there's a specific reason why that's appropriate.
I've not worked with excel files in Python before, but I expect that Pandas has options.
For example, when people return -1 from a function instead of raising an exception for errors.
I mean, it's bad enough when it's different types, but in that case, if the return is otherwise numeric...
Oh, what's the length of this thing that has no length? -1? Okay, cool.
Plugging that into my calculations.
I know.
APIs.
But the idea is similar.
@hardy fogπ
Right, but APIs are above the level of C, so you don't have to do that.
You can use the idiomatically appropriate things for that system.
Ha.
Too much.
Too much it breaks my heart.
π
Fuck if I know where to start.
Oh, well, who does?
It's all fucked.
I'm just tired.
So tired.
@graceful kelpπ
You realise that this about the only social outlet I have available to me, right? lol
Oh-sigh-rah, hello.
@obsidian dragon
Not that kind of tired.
The 90s called.
Well, it'll shift it from one place to another, anyway.
@shy ridge π
I'll take a look later.
Say I have seven things. How many different sets of three things could I make from that, assuming that things like abc == bca
Without order and/or repetition
So say I had ```py
#k=2 n=4 eg. 'abcd' ->
'ab', 'bc', 'cd', 'ac', 'bd', 'ad'```So that would be six. I expect.
!e py from math import comb print(comb(4, 2))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
6
From four things, how many different combinations of two are there?
Six.
Where 'ad' would be 'da' for this purpose.
i.e. The same, so only one would count.
@somber heath hello
Hoy shank.
what are you doing
Dessert.
can you hear me
I can.
Pardon?
Oh
Eating.
The making part has been completed.
The consuming process is continuing.
I am eating right now.
Golden syrup dumplings.
Though the sauce wasn't being very saucy, so I put some custard powder in.
Is it the sort that you plug in to recharge?
Or is it a battery replacement deal?
The liquid didn't really penetrate very well, regrettably.,
I may have to resort to measures.
Yes, I can hear you.
byee
are you a kiddo
This is what you get for attempting unfamiliar dishes without a whole lot of experience and/or instructions.
Eww, cornflakes
was the golden syrup dummplings not good
I see
Or rather, it did, but that was bad, too. I tried a few rescue measures, but that just kind of made things worse.
Hence the cornflakes.
I feel appropriately ashamed for wasting food.
@hoary plaza hello
how are you doign
doing great
can you exaplain me string formatting in python
Ah
Right.
There are a few different ways to do it.
In the dark days, we had % formatting.
We do not need to use that, now.
Though it still exists.
Eh,
Structured like this?
That's the old-school string formatting.
I don't know the syntax of it off the top of my head.
But we were saved by the introduction of str.format.
Which, at a basic use, can look something like the following.
!e py template = 'Hello, {}. You are {} years old.' result = template.format('Peter', 20) print(result)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello, Peter. You are 20 years old.
However, the fates had one more thing in store.
!e py name = 'Peter' age = 20 result = f'Hello, {name}. You are {age} years old.' print(result)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello, Peter. You are 20 years old.
f-strings
f-strings are evaluated then and there, str.format has the luxury of having the template string exist beforehand.
f-strings are, in general, the best option
Now, all this is the very surface level stuff.
You can do a bunch of fanciness, too.
!e py age = 20 print(f'Hello. You are {age:.2f} years old.')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello. You are 20.00 years old.
There's something in Python called the format minispec lang.
Or something along those lines.
!e py age = 20 print(f'The variable and number is {age = }.')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
The variable and number is age = 20.
That's the format minispec usage.
It says that age should be shown as a two-decimal place precision float.
Or something like that.
There's a bunch of stuff. That's just the one I knew off the top of my head.
I'll find a link.
@somber heath Can you help?
I don't know.
import discord
from discord.ext import commands
Set up your bot client with the command prefix
client = commands.Bot(command_prefix='/')
Event listener for when the bot is ready
@client.event
async def on_ready():
print('Bot is ready!')
Command for the /say command
@client.command()
async def say(ctx, *, message):
await ctx.send(message)
Replace 'TOKEN_HERE' with your bot's token
client.run('TOKEN_HERE')
I don't do Discord bots.
π
See #discord-bots and #βο½how-to-get-help.
ok
Thanks
@whole bearπ
What sort of game?
2d mario styled platformer
done most of the backend for it
just need help doing the actual functionality of the gameplay
loads the backround etc,
xd
π
@torpid tigerπ
Hoy hi, @lucid cove.
Playing around with some image generation stuff.
Yes.
can someone come to code/help
At the moment, I'm using numpy and scipy and a few other things.
What's the matter?
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
how to i gain perm to speak
You may like to ask around in the #user-interfaces channel. Also see #βο½how-to-get-help.
It doesn't have to be a solid 30 minutes.
What that means, in practice, is that you can't go hell for leather to get there.
So just slow down, smell the flowers, enjoy the scenery.
Kind of thing.
do you have any experience with tkinter
I do, but as I said, I'm not that good at it.
I'm not in a position to be very useful in that particular regard.
i am a total beginner so my issue might be very silly and simple to solve
What seems to be the issue?
so i have made the gui using tkinter for a code , now i want a home page where there will be button leading to the page with my code
all in the same window
im trying to make a text based rpg and i have the `class Player:
def int(self,name,hp,location,gameover,coreitem):
self.name = ''
slelf.hp = 100
self.location = ''
self.coreitem=[]
and i have no idea how to update these later on in my program`
I think it's a case of having to destroy the widget layout you've created in your window and create the new layout, with tkinter.
shoot
!code
yeah thought so ,I was wondering if there's a easy way out
anyway thanks
`class Player:
def init(self, name, hp, location, gameover, holysigil):
self.name = ''
self.hp = 100
self.location = ''
self.gameover = False
self.holysigil = False
#Defines The Actions of The Player Data Function, Which Pulls Data From the Initializer.
def playerData(self):
print("Player Name:" +str(self.name), "\n Player HitPoints:",+int(self.hp), +str(self.location))
def takeDamage(self):
self.hp - 10
print("You Have Taken Damage, Your Current HP is.." +int(self.hp))
################ Room 1 ##################
def room_1():
MainLoop = True
while MainLoop == True:
print("What is your name player?: ")
playerName=input(">>>: ")
newPlayer=Player(playerName,100,'Limbo',False,i have no idea how to append to class list)`
this is what i have so far,
!e py v = 10 #Assigns the variable, v, to the integer object, 10 v - 5 #Subtracts 5 from 10. print(v) #Prints v, which refers to 10
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
10
!e py v = 10 #As above v = v - 5 #Subtracts 5 from 10 and points v at it. print(v) #Since v now refers to 5, 5 is printed.
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
5
!e py v = 10 v -= 5 print(v)As above, but using the -= operator.
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
5
-= subtracts the 5 from the 10 v refers to and reassigns v to the result.
which is 5
v = v - 5
v -= 5```These two lines are roughly equivalent.
Technically different, though, but in terms of the basic math of it, that's what's happening.
Do you understand?
v = 10
v - 2 #This is like writing the following line
8 #By itself```
Also, avoid the use of camelCase in Python unless it falls under the exceptional cases listed in the PEP8 document.
!pep8
PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.
More information:
β’ PEP 8 document
β’ Our PEP 8 song! :notes:
Functions in Python should typically be in snake_case.
Each language's convention to its own language.
Some other programming language users scream bloody murder if people try to mess with their naming conventions.
Why should Python be any different?
I'm not annoyed at you.
Hey, Alex.
@spiral sierra@spice latchπ
Farzin.
Was I snoring?
Or just quiet?
not a full snore. we did hear you quietly breathing
Yeah, my headphone mic is pretty fucking sensitive, sometimes.
I don't think I was asleep.
!e ```py
def func(*args):
print(args)
func(1)
func(1, 2, 3)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | (1,)
002 | (1, 2, 3)
!e ```py
def func(a, b, c):
print(a)
print(b)
print(c)
func(*[1, 2, 3])
#func(1, 2, 3)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
!paste
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.
!code
import subprocess, os, time
import cv2
import numpy as np
def connect(port = "7555"):
subprocess.run(['adb','disconnect'])
command = f"adb connect localhost:{str(port)}"
subprocess.run(command.split())
def take_screenshot(name='screenshot'):
subprocess.run(["adb", "shell", "screencap", "-p", "/sdcard/screenshot.png"])
subprocess.run(["adb", "pull", "/sdcard/screenshot.png", f"{name}.png"])
def write_to_console(command):
subprocess.run(command.split())
def find_image(image_to_recognize, location='screenshot.png', confidence=0.9):
where_to_try_to_recognize_it = location
image_to_recognize = "recognition\\" + image_to_recognize
img = cv2.imread(where_to_try_to_recognize_it)
template = cv2.imread(image_to_recognize)
if template is None:
print(f"Error al cargar la imagen del patrΓ³n {image_to_recognize}")
return False, None
res = cv2.matchTemplate(img, template, cv2.TM_CCOEFF_NORMED)
loc = np.where(res >= confidence)
if len(loc[0]) > 0:
_, _, _, max_loc = cv2.minMaxLoc(res)
return True, max_loc
else:
return False, None
def swipe(args):
write_to_console("adb shell input swipe " + args)
def tap(args):
arg_string = " ".join(map(str, args))
write_to_console("adb shell input tap " + arg_string)
def textaccount(start_num=6):
num = start_num
write_to_console("adb shell input text lukgoyo" + str(num).zfill(2))
num += 1
return num
def textpassword():
write_to_console("adb shell input text LUKgoyo0605-")
def text(args):
write_to_console("adb shell input text " + args)
def keycode(args):
write_to_console("adb shell input keycode " + args)
if __name__ == '__main__':
recognition = find_image('screenshot.png')
if recognition[0]:
time.sleep(5)
# Leer la imagen
img = cv2.imread('screenshot.png')
# Convertir la imagen a espacio de color HSV
hsv_img = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
# Definir lΓmites superior e inferior para el rango de color naranja
lower_orange = np.array([5, 50, 50])
upper_orange = np.array([15, 255, 255])
# Aplicar la mΓ‘scara para resaltar los pΓxeles dentro del rango de color naranja
mask = cv2.inRange(hsv_img, lower_orange, upper_orange)
# Encontrar el contorno mΓ‘s grande en la mΓ‘scara
contours, hierarchy = cv2.findContours(mask, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
largest_contour = max(contours, key=cv2.contourArea)
# Encontrar el centroide del contorno mΓ‘s grande
M = cv2.moments(largest_contour)
centroid_x = int(M['m10'] / M['m00'])
centroid_y = int(M['m01'] / M['m00'])
# Imprimir las coordenadas del centroide
print(f"Coordenadas del centroide: ({centroid_x}, {centroid_y})")
tap(({centroid_x}, {centroid_y}))
[] square brackets
() parentheses
{} curly braces
bracket, parenthesis, brace
@dusk rockπ
!e py import random choices = 'chicken', 'salmon' choice = random.choice(choices) print(choice)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
salmon
@granite plank π
@acoustic sable π
it's like 7 something
but I forgot the name
opal
could you ask for me
See
I don't either
That's the issue
π
It's like 7 someting
It's theme patcher with something else
@frank forge @raven crow π
Hey
!silence
β silenced current channel for 10 minute(s).
!mute 644517210936705034 2d don't behave like this in this community
:incoming_envelope: :ok_hand: applied timeout to @surreal lotus until <t:1682442825:f> (2 days).
!mute 913135309380800523 1d don't be rude
:incoming_envelope: :ok_hand: applied timeout to @somber smelt until <t:1682356455:f> (1 day).
!mute 713431503610183760 1d if you're being antagonized submit a report to modmail or ping mods. don't engage or feed the flame and call people hicks
:incoming_envelope: :ok_hand: applied timeout to @whole bear until <t:1682356524:f> (1 day).
behavior like today will lead to voice chats being even more restricted or removed for everyone. don't ruin it
β unsilenced current channel.
@near parcel were you still interested in streaming?
@sudden patrol π
hello
@slender bone π
Hey
@warm lion π
Sure π
@vivid panther π
What?
@random root π
I'm not able to though
!stream 131537558453747712
β @near parcel can now stream until <t:1682274869:f>.
{'uuids': ['be15beef-6186-407e-8381-0bd89c4d8df4'], 'manufacturer_data': {61374: b'\x00\x13\r#J\xbd'}}
src/advertisement.c lines 109 to 122
uint8_t anki_vehicle_parse_mfg_data(const uint8_t *bytes, uint8_t len, anki_vehicle_adv_mfg_t *mfg_data)
{
if (bytes == NULL || len != 8) return 1;
// bytes stored on the vehicle in Big Endian order
// This assumes the host is little endian
mfg_data->product_id = (bytes[1] | (bytes[0] << 8));
mfg_data->_reserved = bytes[2];
mfg_data->model_id = bytes[3];
mfg_data->identifier = (bytes[7] | (bytes[6] << 8) | (bytes[5] << 16) | (bytes[4] << 24));
return 0;
}```
which reads the manufacturer data
@thin galleon also are you quite sure that \x00\x13\r#J\xbd is the bytecode you got
because \r#J is not valid utf-8
yes thats the data I get from the vehicle thats the bytearray in the metadat/advertisement data
568276116062863405
{61374: b'\x00\n\x00V\xab\xef'}
{61374: b'\x00\x13\r#J\xbd'}
I'm good and you?
You removed my ability to stream? π¦
It only lasts for 5 minutes. You can start any time within that time period and stream for however long you want, but if you disconnect, you need the role added again.
I see
If you wanted it again, I can grant it
by any chance if I were to join the vc could you guys look over some code. its a final project for school and it just cuts to a white screen and I dont know why
@wind raptorcan i dm you a code i dont want to get banned here but i made my code a little inappropriate but i have it that way to making coding a little bit fun for me.
i just wanna see if think its accurate?
Uhh, no, that's alright. If you want to share code, you should think about making it in a professional manner.
bing chilling
you're right, indeed you are very mindful I should be more like you! 
@faint raven :x: Your 3.11 eval job has completed with return code 1.
:warning: Note: input is not supported by the bot :warning:
001 | what is your gender? Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | gender = input('what is your gender? ')
004 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
005 | EOFError: EOF when reading a line
!e ```python
gender = 'what is your gender? '
def get_gender(gender):
if gender.lower() == 'm':
return 'male'
elif gender.lower() == 'f':
return 'female'
else:
return 'unknown'
user_gender = get_gender(gender)
if gender.lower() == 'male':
print('you are straighter than a pencil! ')
if gender.lower() == 'female':
print('you will be forever a hydbrid!')
name = 'daddy'
print("Damn, " + name + "! you are already a attack helicopter!")```
@faint raven :white_check_mark: Your 3.11 eval job has completed with return code 0.
Damn, daddy! you are already a attack helicopter!
is this like
challenges?
how do I do these
!e
code
@granite plank yeah, I'm just correcting my code
How do i do challenges
it's not really a challenge but it is personally π
(discord bot)
Write a function that stutters a word as if someone is struggling to read it. The first two letters are repeated twice with an ellipsis ... and space after each, and then the word is pronounced with a question mark ?.
!e
def stutter(word: str):
wordlist = []
wordlist[:0] = word
return wordlist[0] + wordlist[1] + "... " + wordlist[0] + wordlist[1] + "... " + word + "?"
lol = stutter("your mom")
print(lol)```
@granite plank :white_check_mark: Your 3.11 eval job has completed with return code 0.
yo... yo... your mom?
i still play minecraft
yo same
hypixel?
I used to grind ranked. and minemen club used to be a pvp sweat yea
but now I play vanilla+ and modpacks.
ooo that's cool
I like vibing
thats amazing
modpacks would explode my laptop
LOL
I make optimized modpacks.
ahhh
i pretty sure there is by now
feel like that should have been done already
there's gotta be
@signal halo π
cool π ill google it
it's not exactly a mod
it's a texture pack with normal and specular maps that shaders use to make a 3D effect
that looks so cool
wanna see some cool photos of mine?
mhm
https://cdn.discordapp.com/attachments/605985351760216074/1078928074118283314/2023-02-24_02.50.31.png
https://cdn.discordapp.com/attachments/605985351760216074/1094862482419490866/512x.png
https://cdn.discordapp.com/attachments/605985351760216074/1044615209475653632/2022-11-09_18.26.20.png
https://cdn.discordapp.com/attachments/605985351760216074/1029166870470865026/2022-10-11_01.01.17.png
https://cdn.discordapp.com/attachments/1092886869781520455/1092903380344643615/image.png
https://cdn.discordapp.com/attachments/605985351760216074/1076011351681536060/2023-02-17_00.17.58.png
this is all minecraft
10/10
Optifine
it looks real ngl
This is patrix.
lemme give u pics of patrix
well have fun guys i gtg watch a python tutorial
???
cyaaa
Tutorial on what
it's a 6 hr course for beginners actually
what platform?
Python tutorial - Python full course for beginners - Go from Zero to Hero with Python (includes machine learning & web development projects).
π₯ Want to master Python? Get my Python mastery course: http://bit.ly/35BLHHP
π Subscribe for more Python tutorials like this: https://goo.gl/6PYaGF
π Watch the new edition: https://youtu.be/kqtD5dpn9C8
...
...
yes i still watch this video to this day
LOL
If you have a card or paypal I'd recommend using udemys 1 month trial right now and learning on Udemy as they are very explanative and concise
ah udemy. i really should try that out, my grandma has a course i think
LMAOOO
tyty
@lucid blade
@somber heath could you grab 80's attention.
See I'm in Texas you can walk into the police station with a handgun* (I mean't cant.) on your back. People challenge them. Some get fucked over and some go free.
One trigger happy motherfucker and your done.
^ @faint raven
Minecraft
Not renders.
yeah its insane world we live in
I want to get out of this country.
it's ok we can go to japan π
BRO
I was litterally typing that
Japan (Even though the discrimination against non-japanese people. Luckily I'm most of japans partner type. (darker skinned white guy)
exactly
It's so well ran.
or Australia
Philippines is good in some areas. Generally not though.
Japan has a revenge rule practically.
That's why it works so well.
They leave keys in cars in dealerships.
australia is kinda scary if people there won't kill ya the animals or insects will 
Meh overrated. Generally most of the animals are docile due to the fact if you think about it they've been around humans for a long while.
Considering most of a the population is on the coast.
@faint raven The main issue of the US at it's core causing all of these issues is the fact our government is ran by no brain incels.
They can't grasp the concept of new things.
Their minds are fatigued.
it's a lack of awareness
In general yea.
from the government part
hey guys can somebody possibly help me with something regarding autogpt
im struggling
i need to deploy my AI business partner minion
lmk im voice restricted until i send 50 messages
fml
all good brother
ive git cloned and have all the api keys, but am getting to a point of error when trying to run it
fk ok
all good
perhaps ill eventually get to my 50th message so i can talk
ha
ha
ha
yea its in the readme
in the repository