#voice-chat-text-0
1 messages · Page 48 of 1
basics in c as well but doesnt really count
i code in c go py js bash some typescript i know nodejs also webdev
how long do u spend coding everyday?
@jagged trail 👋
damn
but since i play valorant its like 4 hours
dedication is unreal
lol val cant wait ig
@somber heath 👋
im addicted now :/
top game
still play it on unblocked sites on school computers
i helped them a lot with design skins
but agario was sell to miniclips
but back in the days i was working with agario
nice
@honest torrent do you know how to change my username of val?
no clue
rip this name sucks
lol whats ur user
some random name baroz
probs through Riot acc settings
im going to google it
😂
what breed?
"we do have the budget, but its allocation would first require an approval", said AF
"this was a lie", said narrator
No clue xd
haay
im actually considering going to the opposite way
Xd
@winged hinge
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.
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.
do you need to store the data on disk?
yo
Source code: Lib/sqlite3/
SQLite is a C library that provides a lightweight disk-based database that doesn’t require a separate server process and allows accessing the database using a nonstandard variant of the SQL query language. Some applications can use SQLite for internal data storage. It’s also possible to prototype an application using SQLite and then port the code to a larger database such as PostgreSQL or Oracle.
The sqlite3 module was written by Gerhard Häring. It provides an SQL interface compliant with the DB-API 2.0 specification described by PEP 249, and requires SQLite 3.7.15 or newer.
This document includes four main sections:
may be overcomplicated for the task though
@odd geode 👋
hi
was trying to show the tiny python project for my minecraft server plugin quests generator, in which having issues
why is brain hurting so bad
like, I look at the posts in #1035199133436354600, I understand how simple most of the questions are but can't help with any
I have bought 6 copies of tabletop simulator total, iirc
You're playing?
Heyluuuuuu @stray niche
Heyloooo @warm jackal
How was your trip to the doctor?
I want to join the vc but my friend is singing me his songs hehe
once he is done singing his songs to me I will chime in hehe
x) Hey @winged hinge, survived, still alive =)
Byee 👋
@stray niche come over to my place I made potato fries
I still haven't received your address
I can't brain
so now I'm looking through my code; if I can't understand it now then I mark it as potentially needing some refactoring
the code (warning: terrible naming):
https://gist.github.com/afeistel/75111e3fc5c9b5d93c4196f686c0752f
I live in india
you can take any national highway and can reach to my place @stray niche
@warm jackal want some fries?
Thanks, but no thanks, not today! Got me some sushi! =D
I need to learn how to hold a chopstick
halllo

I don't understand why I put self.__factory = factory there
the field seems unnecessary
@stray niche playing a board game called Fluxx if you want to join
Oopsies just saw this.
you didn't miss out on much
Haha you didn't play?
we did - it just wasn't a great game for playing online
I'd consider fluxx to be more of a card game than board game tbh
I think it's one of those games where it's really enhanced by a group of people playing it around the table together
things like playing rock paper scissors, sliding your hands to your neighbour etc, just feel more fun in paper
I'm like 95% sure I'd enjoy playing it in person
@atomic agate 👋
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Yep! Plus no real tedious setup
Not like Betrayal where you have all those little cardboard tokens to pop out
Don't you hate on Betrayal
hi
Lol how do I get to chat in VC?
!voice ⏬
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@cerulean crater
ahallo
Hey sorry, I see it now yes.
Looks I need to have a little bit more dialogue in here to be eligible.
I dont have 50 msgs yet
ahhh
even better
Thx
Where tho
you have mic now
here or in the other channel
here
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
spam it
ahhh
that is what I had to do\
i see what youre saying
:ok_hand: applied mute to @cerulean crater until <t:1672358598:f> (10 minutes) (reason: duplicates rule: sent 4 duplicated messages in 10s).
The <@&831776746206265384> have been alerted for review.
im back from the dead
@tulip plover if i send those 50 msgs back n forth with you i can meet the requeirments
ok
Curt converses with ChatGPT on free will, AI, consciousness, existence, physics, and meaning.
- New TOE Website (early access to episodes): https://theoriesofeverything.org/
- Patreon: https://patreon.com/curtjaimungal
- Crypto: https://tinyurl.com/cryptoTOE
- PayPal: https://tinyurl.com/paypalTOE
- Twitter: https://twitter.com/TOEwithCurt
- ...
switch the policy to SignedRemote
or something
@lunar haven Mental outlaw is the only based content make on youtube after luke and muta. I like his content. His dwm patches used to be good.
Can you send it in english?
no is solved
cool
imo, one of the main reasons why in C it takes more lines to do anything has in most cases to do with the worse module integration/composability
unlike Python/Rust, you can't "just install" a library to do things for you
p.s. it's probably more about semantic units not just lines; line are also affected by syntax, after all
C is 1970s
you can compose different parts written in C but only if those parts use same rule subset
1972
50 years ago
at the start it didn't have structs
some don't come from C
there are still also lisp and algol-based languages
they needed them for Unix
so added them
including Smalltalk
same year
1972
and development began in the same year as C (1969), allegedly
@dark cairn 👋
hi hello i am getting an error can anyone help me with the codes i wrote
I do not know English much
wait bro
What is the error?
import cv2
import numpy as np
import serial
import time
Myserial = serial.Serial('COM3',9600)
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
eye_cascade = cv2.CascadeClassifier('haarcascade_eye.xml')
cap = cv2.VideoCapture(0)
while True:
ret, img = cap.read()
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
faces = face_cascade.detectMultiScale(gray, 1.3, 5)
for (x,y,w,h) in faces:
cv2.rectangle(img, (x,y), (x+w, y+h), (255,0,0), 2)
roi_gray = gray[y:y+h, x:x+w]
roi_color = img[y:y+h, x:x+w]
eyes = eye_cascade.detectMultiScale(roi_gray)
for(ex, ey, ew, eh) in eyes:
cv2.rectangle(roi_color, (ex, ey), (ex+ew, ey+eh), (0,255,0), 2)
cv2.imshow('img', img)
if (len(faces)) == 0:
Myserial.write(b'\x0101')
print ("No face is detected")
elif (len(faces)) == 1:
Myserial.write('1')
print ("Face is detected")
k = cv2.waitKey(1) & 0xFF == ord('q')
if k == 27:
break
cap.release()
cv2.destroyAllWindows()
!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.
!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.
.write(b'1')
you are using str instead of bytes apparently
at least that's what the error says
you have the b in the first write but you are missing it in the second
@quaint oyster 👋
attended some CTFs
I have no use for ChatGPT
it itself can't innovate yet
like, it's made to replicate
you can't ask it for a new solution
but it can help you make one
also, important:
not only does it replicate the code, it also replicates the bugs
so in cybersecurity it's still extremely weak
ask it to do AES in python and you have a vulnerability already
because of timing attacks and memory usage tracing and all that
did anyone else use the PC?
do cookies info contain the session expiry or session start timestamp?
why would anyone login to gmail though?
may be some collision on Google's part
TCP VPN or HTTP Proxy?
some http proxies break the cookies
most VPNs are actual VPNs
not all though
yes it's tcp/udp
based on OpenVPN
OpenVPN being the most popular opensource VPN
depends on where you connect from
if your legislation forces them to store, they may store logs
they're bound both by hosting location legislation and customer's legislation
first one is usually non-existent if they know what they're doing
the second one rarely matters
My Last S H I T P O S T
===========x Rant x===========
I love to make videos about linux,cloud,development etc.
If you are not happy single, you wont be happy in a relationship. True happiness comes from using LINUX, not another person. Start using LINUX.
And please Subscribe to my channel. Hit the like button to trigger the youtube algorith...
Hello @somber heath
@somber heath
Byeee
I've reset it that's fake
who can help me
I've done that but it didn't work
yes
I've been through this before
The beagle is a breed of small scent hound, similar in appearance to the much larger foxhound. The beagle was developed primarily for hunting hare, known as beagling. Possessing a great sense of smell and superior tracking instincts, the beagle is the primary breed used as a detection dog for prohibited agricultural imports and foodstuffs in qu...
why i'm suppresed ?
if main_url in link and any(condition not in link for condition in ('.css','.java','.jpg','.jpeg','.png','.gif','.webp')):
@somber heath
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
got it opal i'm not yet eligible
here people wear it for good marks, for making money, BS things
😂
reset your token and don't send it again
(even if you reset it, don't send it; people don't usually expect it to be non-reset)
and don't store it in code at all ever
it was invalid
im wasting to much time trying to stylize stuff.. must move on and complete functionality and then go back and make everything look pretty if possible..
got stuck on trying to do stripping in a textarea using a jinja for loop.. guess it doesnt work 😦
rather to be more clear.. i have a textarea being populated by a jinja for loop and it wouldnt let me stripe it
opal
hello @cinder dawn
hello
literally jus came back from being afk
life
how many chuggas are there before the choo choo
u know
what this shit means?
chugga chugga choo choo
or chugga chugga chugga chugga choo choo
idk man jus thinkinh
tf is gofek doing
!voiceverify
Error
You are not currently eligible to use voice inside Python Discord for the following reasons:
• You have sent less than 50 messages.
This is message
you have to kepp going with the sent messages
1
2
3
4
5
In this channel?
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
perttu sure u can get banned for this
fair enough
!tvmute 350454808265883652 2w Do not spam in order to get voice permissions. It is stated as much in #voice-verification
:incoming_envelope: :ok_hand: applied voice mute to @vernal geode until <t:1673647834:f> (14 days).
If you want to get the message count do it with real conversation not with spam.

@whole bear 👋
#!pip install -q pyscbwrapper
from matplotlib import pyplot as plt
#Bibliotek som innehåller ett API för att hämta data från Statistiska Centralbyrån
(SCB):
from pyscbwrapper import SCB
scb=SCB("sv")
scb_data['data']
#Du skall skapa funktionens parameterlista:
def generateGraphFile(?, ?, ?...)
#denna funktion skall du skriva koden till.
def generateGraphData(scb, valueIndex, keyIndex):
scbData = []
scbData = scb.get_data()
#Filter out metadata:
scbFetchData = scbData['data']
xData = []
yData = []
for i in range(len(scbFetchData)):
yData.append(float(scbFetchData[i]['values'][valueIndex]))
xData.append(scbFetchData[i]['key'][keyIndex])
return xData, yData
#Alternativ 1: Antal invånare i Sverige mellan 2010 och 2021
scb = SCB('en','BE','BE0101','BE0101C', 'BefArealTathetKon')
scb.set_query(observations=["Population"], year =
["2010","2011","2012","2013","2014","2015","2016","2017","2018", "2019", "2020",
"2021"])
xData, yData = generateGraphData(scb, 0, 0)
generateGraphFile(?, ?, ?,....) #här sker anropet till funktionen som du skriver
färdigt ovan.
dont know where to go from here. i have 2 functions that i need to define yet i dont know thier function
Do they mean like.... saving it to an image or something?
Python Enhancement Proposals (PEPs)
You're quite good at explaining @somber heath :D
!e ```py
def func():
pass
print(type(func))```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
<class 'function'>
@somber heath u recon i could use https://chat.openai.com to make a working discord bot?
😆
Apparently discord is fine with it
It does write code and it hasnt got prompt blocks about discord bots
So it should be good
yeah
it does
2 datasets are downloaded from (SCB) and read into your program.
From this data, a graph should be created for each of these datasets and saved as 2
separate images. The image format must be "Portable Graphics Format" (png). This for
that the images can later be presented in a graphical interface in a simple way.
you can say your error and it will try fix it btw its very cool!
yeah hes right
well done echo guy :D
haha
The images created above must be presented on a graphic surface that you will create. The
the graphical surface should also have a button which, when clicked, causes it to
the second image is displayed. You should therefore be able to switch back and forth between the images with
this button.
this is what im trying to do
🤷♂️ if you want to sound like you're god I guess
someone with a mic tell him you can upload your errors and it will attempt to fix them
@somber heath im relitively new to python but im very very lazy u got any good ways to try learn python?
ok
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
cargo
Python

@grim tendon 👋
hey you :<
I have 1 question
I ___(begin) work as soon as I arrived
i should write "have begun" or "began" ;-;
Began.
Can you explain it ;-;
I began work. It has begun.
I began to expect that the worst had not yet begun.
I don't know the rules well enough to explain effectively.
I think he can still work in the present then we should use "have begun",
Where am I wrong? :<
We have begun the work. We began the work.
"Begin" describes the transition from "not working" to "working". The transition happened in the past.
oh thanks
lala
@bleak path 👋
What is the difference between copy.copy() and copy.deepcopy()?
@somber heath
what do you mean create new objects?
!e import copy
original = [1, 2, [3, 4]]
copied = copy.deepcopy(original)
copied[2][1] = 5
print(original)
print(copied)
@tulip plover :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | [1, 2, [3, 4]]
002 | [1, 2, [3, 5]]
!e ```py
import copy
a = [[]]
b = copy.copy(a)
print(a)
print(b)
a[0].append(123)
print(a)
print(b)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | [[]]
002 | [[]]
003 | [[123]]
004 | [[123]]
true
!e py import copy a = [] b = copy.copy(a) print(a is b)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
False
!e ```py
import copy
a = [[]]
b = copy.deepcopy(a)
print(a)
print(b)
a[0].append(123)
print(a)
print(b)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | [[]]
002 | [[]]
003 | [[123]]
004 | [[]]
btw, how does copy.deepcopy even work?
oh, I found
__copy__/__deepcopy__
Something something recursion?
I meant how does it work for custom classes
I haven't picked it apart.
Creates a bunch of new objects, vs copying the references.
it just seems like a bad idea the same way as pickle does
shouldn't be used beyond data objects
It's mostly for if you're mutating in the nesting of the data structure.
imo, providing .copy() method is somewhat better
like, explicitly saying this can be copied
it may lead to creating one-field one-method wrapper-classes around lists/dicts
but, imo, that's fine
the thing containing the dict/list is to be responsible for copying it because "copying a list/dict" is ambiguous
idk what Rust does, btw
I'd expect the default for Vecs to be deep copy
with Vec<T> having Copy trait iff the T has Copy trait
so, to get shallow copy behaviour that would require T being Rc or Arc
(reference counter or atomic reference counter)
it's Clone not Copy, I forgot
it also clones the allocator which may sound weird
but that's in most cases a reference to the allocator not the value
&T with T instance somewhere upstack
Command "T" is not found
or Box<T>
I'm currently also working with video codec stuff
but, like, reading Wikipedia not actually programming
someone asked if I could host 60G MOV file because they needed lossless compression;
but as it appears, MOV (Apple Video) is lossy;
so now I'm looking through the list of codecs/media container formats to find out what would be more appropriate;
x265 (HEVC) has lossless compression for video
they are rendering a video and choosing what to render it into
(I'm just advising them on what format to use)
I may later do some conversion on my own to change the codec if they can't render in the appropriate format
so probably python won't be involved
ffmpeg is more or less enough
no, never used MP4Box
I myself mostly work with audio (opus)
@lunar haven bro you’ve been there for 6hrs man 😭
that actually requires calling x265; the rendering software does not have lossless H.265 support
loll u remember the guy with the echo? sounded like a god lmfao
is it good?
how long?
ight man
what’s the time for u btw
yooo
that’s the mindset
I'm trying to do lossless AV1 with ffmpeg
it's not having fun
frame= 59 fps=0.5 q=0.0 size= 5kB time=00:00:00.93 bitrate= 42.1kbits/s speed=0.00867x
it's even getting slower and slower
it's more or less the expected performance
the source file is 20 seconds and 6GB
ffmpeg does 100% load on two cores currently
I'll also do x265 in parallel
it uses 400% cores
and is faster somewhat
roughly 15 times faster
the output is broken
regardless of whether the codec is lossy or not
apparently, the thing I originally rendered is broken
or VLC is doing something weird
yes, my VLC is broken somewhat
ffplay works fine
lossless mov is 6GB
lossless HEVC mp4 is .15GB
lossy mp4 is .004GB
lossless AV1 mkv is only 40% completed so far
it's going to take more than an hour total to render full 20 seconds
for the whole target file (4K, 8 minutes) that would take approximately 3-10 days
it upped the usage from 200% to 400%
speed didn't improve
is the .outf file closed somewhere outside of A1Mp4 class?
A1Mp4.Sample
or maybe self.Sample
not sure if namespaces allow this
yeah
hey @lavish rover
python3 -m venv env
source env/bin/activate
django-admin startproject <project-name>
there are two messages somewhere on this server that contain the meaning of the acronym
it's not really searchable given 5~6K message history
will probably just sleep more or less the whole day
currently editing LinkedIn profile
voice issues mostly
and dyslalia
no, never
it's audible
gradually adding past projects info
rice with chicken, actually
did you cook it?
no, the people I live with did
(I don't usually cook chicken myself)
LinkedIn profile editor is way less user-friendly than their profile viewer
@somber heath
"stochastic", a sophisticated way to say "unpredictable"?
Chaotic.
the interesting thing is, there are both chaotic non-stochastic and non-chaotic stochastic processes
if the advice is on a specific topic it may, depending on the topic, be more acceptable
i.e. specifying the topic may increase chance of receiving advice
"chaotic non-stochastic" systems are basically the classic and the most prominent example of chaos theory
bye @somber heath
whereas "non-chaotic stochastic" can describe self-stabilising processes, for example
I still have a research paper that I'm too lazy to finish and publish
I've not proceeded with sending any specification documents to those spammers and decided to sleep instead;
@nova prawn
for bots, it's asyncio not multithreading
import discord
client = discord.Client()
@client.event
async def on_ready():
print('Bot is now online')
@client.event
async def on_message(message):
if 'happy birthday' in message.content.lower():
await message.channel.send('Happy Birthday! 🎈🎉')
if message.content == ('!hello'):
await message.channel.send('Welcome to foxus server')
await message.channel.send('Hello there Welcome to our discord server 👋')
import discord
client = discord.Client()
@client.event
async def on_ready():
print('Bot is now online')
@client.event
async def on_message(message):
if 'happy birthday' in message.content.lower():
await message.channel.send('Happy Birthday! 🎈🎉')
if message.content == ('!hello'):
await message.channel.send('Welcome to foxus server')
await message.channel.send('Hello there Welcome to our discord server 👋')
the client.run is missing
client.run()
at the end
with the token as an argument
client.run("your token here")
okay
okay, then fine
what's the error?
!intents
Using intents in discord.py
Intents are a feature of Discord that tells the gateway exactly which events to send your bot. Various features of discord.py rely on having particular intents enabled, further detailed in its documentation. Since discord.py v2.0.0, it has become mandatory for developers to explicitly define the values of these intents in their code.
There are standard and privileged intents. To use privileged intents like Presences, Server Members, and Message Content, you have to first enable them in the Discord Developer Portal. In there, go to the Bot page of your application, scroll down to the Privileged Gateway Intents section, and enable the privileged intents that you need. Standard intents can be used without any changes in the developer portal.
Afterwards in your code, you need to set the intents you want to connect with in the bot's constructor using the intents keyword argument, like this:
from discord import Intents
from discord.ext import commands
# Enable all standard intents and message content
# (prefix commands generally require message content)
intents = Intents.default()
intents.message_content = True
bot = commands.Bot(command_prefix="!", intents=intents)
For more info about using intents, see discord.py's related guide, and for general information about them, see the Discord developer documentation on intents.
you don't have message_content intent
client = discord.Client(intents=discord.Intents.all())
@nova prawn it's a constructor not a decorator
@sharp idol
replace client = discord.Client()
it may fix it
now
go to developer page
go to your app
intents
intents = discord.Intents.default()
intents.message_content = True
client = discord.Client(intents=intents)
you send Happy Birthday
then look react on happy birthday
you don't check whether the message is from your bot
bot replies to itself
if message.author == client.user:
return
@client.event
async def on_message(message):
if message.author == client.user:
return
(just add the if clause)
the song's music video that people asked me to host in lossless MOV contains a line that can be translated as "2022, go fuck yourself"
originally, in Russian, and it's "двадцать второй, пошёл ты на**й"
i.e. the year is mentioned as "22nd"
?
why?
I want to work together
on what?
Python robot or project
more specific?
what ?
which robot or which project?
what will it do?
or what do you want it for?
just for learning?
if you need help with python, you can ask it in #1035199133436354600
if you need help with vs code, you can ask it in #editors-ides
I usually don't directly collaborate on projects with anyone outside of my companies
I can provide some advice on coding but I'm not going to write the code myself a lot if you want to have anything more long-term than a single help forum thread
I miscounted the companies
it's 3~5 not 1
!e py print(~5)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
-6
you can start a project and come to me for help/advice; I will try to help when I can;
I'm not opposed to that
thank you
x=A~B from what I understand is approximation
in the spirit of ~=
whereas x=A..B is "for each x between A and B"
and [A..B] being the range
@somber heath
there are ways to "almost control" them but it's very unhealthy
like, it's achievable but no one should really try it
(can't collaborate because I can literally quit doing something for a year without any notice)
hello @somber heath @winged hinge @vocal basin
the "better" way to do something in that direction without stumbling into extreme danger would probably be to just gain knowledge about it
Yeah @vocal basin
some sort of therapy session going on
@somber heath
some acknowledgements are actually counter-effective short-term
for example, thinking "I have a panic attack" is one of the main panic attack-prolonging factors in some people
from what I know
sources: none; don't believe me
"I have a panic attack, this is bad" situation instead of "I have a panic attack, let's do something about it"
"I have to do something" vs "let's do something"
@vocal basin i mean that’s à pretty good trick to overcome the emotional thoughts
for the past ~20 months I have not had a single day without a constant stress
but I managed to accept that and found out that I can do amazing and fascinating things even when my brain is half-dead in this way
also, fun fact
I can and do help people that I hate
same acceptance thing
im back
hello back
hello r*2
there've been two temporary streams with one moderator in the call
moderator watching over the streams:
imagine a meme here
@quaint peak 👋
there's New Zealand accent
there are so much /i/'s there
hello
new years coming soon
@somber heath is 2023 the end of the world, tell us what its like in 2023
that reminded me of:
https://www.youtube.com/watch?v=saeKBuPewcU
Code involving dates and times is very often broken. This is partly due to poor APIs on many platforms, and partly due to a lack of awareness on the part of developers. Many developers despair when they think about time zones or different calendar systems, but there's good news: it's not really that bad. Obviously it helps if you're using a dece...
there's apparently been an updated version from 2 years ago
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
and i have to wait 3 days
pain
i agree
better have a verification system than not to
presented at a Russian conference without live audience (covid moment)
I've left this server once
either in 2021 or 2020
there should be an option to get unbanned if you can explain what happened
ban appeals
yea when you're banned you cant find the server unless sent an invite link
and even then you cant rejoin
you can only see the link
mhm
so far, the list of names I've been called as:
As Fuck
Aaron/AarofF
AFK
Auto Focus
Auro Focus
Aurora F?ckers (contributed by x10an14)
for each one except for the third I can point at a specific first person to use that
there's a background to that and there's the deacronymisation of that somewhere;
(what's the word for deacronymisation?)
those are initials and both are closely related to cryptography
what comes to your mind when someone says "indian" @somber heath (honest opinion )
D
lol
its still a thing
agree!!!!
@somber heath on point sire
quite good imagination u have got there...lmao
😂
hmm...
Vishy Anand; Pragg (I don't remember the full name sorry)
ohno, I forgot other chess players
brb
🇦🇹
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
it took me some guessing/googling to find out it's .at
I've looking for a meme I made some time ago and found it
shift+del does cut text
does not work on files unfortunately
ordered by danger probably
ctrl+v doesn't usually bind to anything that bad
ctrl+c interrupts a program
shift+del deletes a file without even sending it to recycle bin
ctrl+x detaches a progress in some terminals
(iirc)
I do consider detaching more dangerous for beginner users than interrupting
was just about to say "just respond with some random anime term"
O(1) i.e. not unlimited
im not sure why my green ring is on
idk
I am about to leave the voice chat, can I do one thing quickly?
It will only take 3 seconds
go ahead
!d json
Source code: Lib/json/__init__.py
JSON (JavaScript Object Notation), specified by RFC 7159 (which obsoletes RFC 4627) and by ECMA-404, is a lightweight data interchange format inspired by JavaScript object literal syntax (although it is not a strict subset of JavaScript 1 ).
Warning
Be cautious when parsing JSON data from untrusted sources. A malicious JSON string may cause the decoder to consume considerable CPU and memory resources. Limiting the size of data to be parsed is recommended.
json exposes an API familiar to users of the standard library marshal and pickle modules.
Encoding basic Python object hierarchies:
wait why are there two RFCs
I don't have a clear answer;
I should investigate this
!d json.load
json.load(fp, *, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, **kw)```
Deserialize *fp* (a `.read()`-supporting [text file](https://docs.python.org/3/glossary.html#term-text-file) or [binary file](https://docs.python.org/3/glossary.html#term-binary-file) containing a JSON document) to a Python object using this [conversion table](https://docs.python.org/3/library/json.html#json-to-py-table).
*object\_hook* is an optional function that will be called with the result of any object literal decoded (a [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict")). The return value of *object\_hook* will be used instead of the [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict"). This feature can be used to implement custom decoders (e.g. [JSON-RPC](https://www.jsonrpc.org) class hinting).
*object\_pairs\_hook* is an optional function that will be called with the result of any object literal decoded with an ordered list of pairs. The return value of *object\_pairs\_hook* will be used instead of the [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict"). This feature can be used to implement custom decoders. If *object\_hook* is also defined, the *object\_pairs\_hook* takes priority.
with open('file.json', 'r') as file:
data = json.load(file)
there are multiple things to learn here
Corey Schafer, Youtuber, playlists, Python for beginners.
there are better ways for small files
small as in less than 1GB, I'd say
import pathlib
import json
data = json.load(pathlib.Path("file.json").read_text())
so no messing with open and close
!d pathlib.Path.open
Path.open(mode='r', buffering=- 1, encoding=None, errors=None, newline=None)```
Open the file pointed to by the path, like the built-in [`open()`](https://docs.python.org/3/library/functions.html#open "open") function does:
```py
>>> p = Path('setup.py')
>>> with p.open() as f:
... f.readline()
...
'#!/usr/bin/env python3\n'
Happy new year's everybody! =D
same
happy new year!
print(str(['apples', 'bananas', 'tofu', 'cats']))
!d str.join
str.join(iterable)```
Return a string which is the concatenation of the strings in *iterable*. A [`TypeError`](https://docs.python.org/3/library/exceptions.html#TypeError "TypeError") will be raised if there are any non-string values in *iterable*, including [`bytes`](https://docs.python.org/3/library/stdtypes.html#bytes "bytes") objects. The separator between elements is the string providing this method.
!e py result = "*".join("iterable") print(result)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
i*t*e*r*a*b*l*e
print(...)```
and
```py
print(str(...))```Would be roughly equivalent.
Remembering that strings aren't the only things in Python that are iterable.
@somber heath
s
@limber iron 👋
hey @somber heath happy new year to you as well
sorry mic forcibly muted cuz i guess i havent sent 50 messages
thats true
people really do that on a python server?
yeah i guess that makes sense
are you a dev?
true i guess i meant do you like to just develop as a hobby or do you work in tech or are you in school
that's nice what stuff do you like creating when not helping others
sounds pretty interesting
oh no
I've personally never gotten a bad answer from chatGPT but I've been seeing some stuff more frequently
yeah I saw some undergrad professors talking about it on reddit recently and they said they could tell when some students were using chatGPT for written assignments lol
brb
Give the voice gate another go.
Say you have a list value like this:
spam = ['apples', 'bananas', 'tofu', 'cats']
Write a function that takes a list value as an argument and returns a string with all the items separated by a comma and a space, with and inserted before the last item. For example, passing the previous spam list to the function would return 'apples, bananas, tofu, and cats'. But your function should be able to work with any list value passed to it. Be sure to test the case where an empty list [] is passed to your function.
spam= ['apples', 'bananas', 'tofu', 'cats']
for i in spam:
print(i, end=',')
spam[0:-2]
!e py spam = 'apples', 'bananas', 'tofu', 'cats' print(spam[:-2])
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
('apples', 'bananas')
@hushed grotto 👋
Hm?
!e ```py
def func():
return 5
print(func())```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
5
print(5)```
def func():
print(5)
func()```Antipattern.
Python Enhancement Proposals (PEPs)
happy new years frens
@smoky fulcrum 👋
Have you heard of the tale of the brass monkey? The opposite of that.
I'm sorry I couldn't answer, I didn't verify the voice
I don't know many fairy tales
!e ```py
class MyClass:
pass
my_instance = MyClass()
print(my_instance)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
<__main__.MyClass object at 0x7f46bc797d50>
!e py print(int('7f46bc797d50', base = 16))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
139941786516816
!d int
class int(x=0)``````py
class int(x, base=10)```
Return an integer object constructed from a number or string *x*, or return `0` if no arguments are given. If *x* defines `__int__()`, `int(x)` returns `x.__int__()`. If *x* defines `__index__()`, it returns `x.__index__()`. If *x* defines `__trunc__()`, it returns `x.__trunc__()`. For floating point numbers, this truncates towards zero.
_
there are a lot of different _s in python
one is even almost becoming a keyword (like in C#/Rust)
contextual keyword like match currently
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
one sec
@robust lichen Audio issues?
I've talked with someone who uses python in a more or less industrial environment (embedded systems; real-time image recognition)
they also use asyncio in some applications and may be interested in using the database I'm currently developing
so even more need for writing the docs
(explaining both the usage and the inner workings in depth)
@somber heath how long have you been in this chat for????
like, there is a genuine possibility that the thing I made may be more useful than some more widespread solutions
mostly because of the native integration with python
some applications are just fine with using key-value stores with no extra features
(if you don't count reliability and durability as "extra")
my bad
!d turtle
Source code: Lib/turtle.py
wait when did I lose my funny powershell formatting
I had a little blue-ish dark red background
one of the easiest cryptography libraries is PyNaCl
it's pseudo-random
and?
all non-quantum hash functions and ciphers are pseudo-random
Warning The pseudo-random generators of this module should not be used for security purposes. For security or cryptographic uses, see the secrets module.
this is not PyNaCl
this is random module
and it already tells you that if you need cryptographically secure random you can use secrets module
!d secrets
New in version 3.6.
Source code: Lib/secrets.py
The secrets module is used for generating cryptographically strong random numbers suitable for managing data such as passwords, account authentication, security tokens, and related secrets.
In particular, secrets should be used in preference to the default pseudo-random number generator in the random module, which is designed for modelling and simulation, not security or cryptography.
for secure random, use this
just want to do
PyNaCl uses secure random generators
from my os?
os.urandom(size, /)```
Return a bytestring of *size* random bytes suitable for cryptographic use.
This function returns random bytes from an OS-specific randomness source. The returned data should be unpredictable enough for cryptographic applications, though its exact quality depends on the OS implementation.
On Linux, if the `getrandom()` syscall is available, it is used in blocking mode: block until the system urandom entropy pool is initialized (128 bits of entropy are collected by the kernel). See the [**PEP 524**](https://peps.python.org/pep-0524/) for the rationale. On Linux, the [`getrandom()`](https://docs.python.org/3/library/os.html#os.getrandom "os.getrandom") function can be used to get random bytes in non-blocking mode (using the [`GRND_NONBLOCK`](https://docs.python.org/3/library/os.html#os.GRND_NONBLOCK "os.GRND_NONBLOCK") flag) or to poll until the system urandom entropy pool is initialized.
suitable for cryptographic use.
thanks
@robust lichen
there's some sense to it
mostly because reverse shells and cryptography are both security-related
so, like, by some association one leads to another
i guess
just weird he wanted to do it in python
mostly
python is fine for cryptography if you don't implement cryptography part yourself
bytes objects by themselves and their interface with C don't leak data
(i.e. timing attacks are not the issue usually)
and things other than timing attacks are also not dangerous
but implementing that all yourself will get you in trouble
i just think encrypting things with other stuff then python seems like a better a idea
regardless of the language
PyNaCl uses C under the hood
most of the actual useful and performant python is just bindings to C/C++/Rust/Fortran
except for maybe high-level concepts like asyncio which you just can't implement correctly and easily in any of the above except for Rust
i love c
im learning it and love it so far
some people consider learning Rust as somewhat more useful
but Rust is quite heavy from the theoretical standpoint
imo, it's one of the best languages designed so far, but it's in almost no way easy for beginners
being able to learn Rust as the first language is somewhat great (because it teaches the right approach to building system software) but I doubt it's possible
though in Rust you would at least not have to suffer from constant segfaults
"just remember: never try to write a doubly linked list"
anyone can help with creating func of polynomial? for example: 2In+A-3A^3+2.5A^4
with matrix
girls
major religion
sometimes you should read through the whole docs of a module
it can help solve (or optimise solutions of) some problems you had before
there are definitely cases when "learn only because it's needed" fails
I have too little understanding to configure swap correctly
it's just sitting there at .2% usage
well
there are guarantees
if done correctly
in that case reads are fasts
but writes are slow
I right now have a thing that is in main-memory and that's consistent with disk
there's a game called "guess the overhead" about that
I sometimes do need quite performant stuff that's used only by me
managing a worker pool in python is painful until you understand how to do it
I think I may try to optimise that thing sometime in the future
it currently translates character-by-character which is quite slow
using numpy to generate bytes with char arithmetic could be faster... or could be even slower
#voice-chat-text-0 message
@dim nymph 👋
char arithmetic with actual characters is somewhat of a madness but anyway
@pliant girder 👋
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
you can probably already get verified
hello sir
brb yall
i still have no access to talk after passing the verification test
nice
hello
so i mean its kinda cool for the guy
ok :}
twitter atleast for me doesnt work
website sucks now
but im very sure there havent been any breaches lately
cool then if not
The ability to unmute takes effect when you join with the role.
Computer Science? Counter-Strike?
CES

who takes twitter serious in 2023
So if you're in the VC when you get the role, you have to leave and rejoin.
I 😦
got that thanks
@whole egret
<t:1672584387:R>
<t:1672584387:R>
user bots are against ToS
you can already say "midnight for me is ... for you"
whats the use of it though? lmao
there is official reference
<t:1647780120:t>
or that yes
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
@molten pewter
*climate change denier
<t:1672520400:t>
tf
100,000 deaths per terawatt hour?
whats a terawaat
is it like 1T J?
1Tb of j/s*60^2 is a shitton
tremendous would be an understatement
On today's interplanetary spacecraft, roughly between 300 W and 2.5 kW of electrical power is required to supply all the computers, radio transmitters and receivers, motors, valves, data storage devices, instruments, hosts of sensors, and other devices. Cassini uses roughly 1 kW.
you can destroy mars with that lmao
( depends on how big that rocket is · an ion or arc thruster requires something in the range of 40000W/N at least )
New York Uses about 8 TW in a month.
why everyone leaving
this person trying to make everyone hate me
im trying to talk with people he leaves and everyone following him
iirc, all done in roughly a day
they trying to bully without buling
complex numbers go go go
@somber heath how’s the weather there? Is it cold?
@somber heath try this maybe
I kept the @s in the vid so you can go to there TikTok if you want
the place that has seen the most of me speaking English
"As fuck"
Or toe focus.
can anyone recommend any other tech/code servers that have active voice chats
i see
no worries then
I need to socialise with coders and tech savvy people
I was streaming ArmA 3 Polish alien DLC to some Scottish person
(basically the day I understood I can't speak English properly so decided not to do it for some time)
@molten pewter sorry i asked something personal
I should clip the video bcantrill saying "I'm not a bro; I'm not a bruh"
6 seconds · Clipped by Alisa Feistel · Original video "Coming Of Age | Bryan Cantrill | Monktoberfest 2022" by RedMonk Tech Events
@tired oar 👋
anyone know of any flask oriented discords?
that phrase in the context of twitter reminds me more of Russian Foreign Ministry or something
that account
anti tank
they took his soul
there was any?
say this to k pop fans 🙂
what is going on
tp
tp?
time pass
lol
Hor - se
new phone who dis
Nice
@crude sky 👋

@sam
CSS can't animate vector graphics, afaik
maybe it can
brb
before writing that message I didn't know that "r," is a ligature
greetings
is it?
what you've posted is just a separate r and comma
could you post the ligature?
hi i'm going good
Sorry i couldn't hear you well
i see i just reading about some topics in python
And you? Are you doing something ?
def App():
#Code
Learning Django.. I've put it off for too long
Have you ever use fastapi?
@daring needle 👋
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
haha ok