#voice-chat-text-0

1 messages · Page 214 of 1

loud stream
#

sup

#

i did

somber heath
#

!voice 👇

wise cargoBOT
#
Voice verification

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

loud stream
#

it failed

#

Voice Gate failed
You are not currently eligible to use voice inside Python Discord for the following reasons:

• You have been on the server for less than 3 days.
• You have sent less than 50 messages.
• You have been active for fewer than 3 ten-minute blocks.

#

see

whole bear
#

Hi

#

What do people studying web development do?

#

?

somber heath
#

Not my area.

whole bear
#

What is your area?

somber heath
#

3x2

whole bear
#

What is this

somber heath
#

I make images that people find interesting to look at.

whole bear
#

Oh oi

#

Ok

somber heath
#

@gritty flower 👋

gritty flower
#

Hy

whole bear
#

To pursue the web development area, I start studying js or html and css

somber heath
#

@river mulch @median geode 👋

river mulch
somber heath
#

It's not everyone.

uncut ferry
#

Hello, just checking things around I am a python dev do permission is given here for speaking in the call?

#

And what is the topic of the today's meeting

river mulch
#

There's some steps to take before you can speak, there should be a channel for that, hold on...

uncut ferry
#

I have no idea, would be grateful for guidance

river mulch
#

Ah, I don't have access to that channel any more because I'm verified already.

#

Can you see the description above this chat? At the top it says which channel to go to to get verified.

uncut ferry
#

Thanks, verified now

river mulch
#

Great, then you can join in! Although there's not that much of a proper conversation going on, as you can probably see.

uncut ferry
#

yeah, will join in some day later

scarlet halo
#

hey

#

say hi to my snake

fickle plaza
#

!voice

wise cargoBOT
#
Voice verification

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

whole bear
#

! voice

#

!voice

wise cargoBOT
#
Voice verification

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

whole bear
#

These bot is not working I am from last 2 year these channel and I am able to speak and access of voice

#

Please check ✅ these kind of bugs

#

See these image

wind raptor
#

Hey @halcyon barn

#

👋

halcyon barn
#

Hi

wind raptor
#

!voice

wise cargoBOT
#
Voice verification

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

wet scroll
#

hey chris

#

whats up?

#

damn

#

i just completed making my ytpmv

#

first ever

#

it was better than i thought ngl

#

YTPMV = Youtube poop music video

#

its not like a trend

#

but its type of media i like?

#

idk how to explain this

#

wanna take a listen to it?

#

sometimes they are god like with jokes aside

#

FL studio

#

theres another roblox ytpmv

#

its on youtube

#

this isnt mine

#

but it made me inspired

#

i beg your pardon?

#

i dont remember the exact time i took

#

but less than a day

#

but finding source is hard than you think

#

yeah, if you're doing a new source then it might gonna take you some days

wind raptor
#

!paste @rough meadow

wise cargoBOT
#
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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

wet scroll
#

hello Bavis!

rough meadow
#

sorry

#

i didntb know

wind raptor
#

No worries

rough meadow
#

i pasted in. what now?

wet scroll
#

hello OddRabbit!

rough meadow
#

@wind raptor

#

oh wow

#

4???

#

i have 1 question

#

what do i do after i paste in my code to the website

wet scroll
#

did you get a link?

vocal basin
wet scroll
#

oh hi Alisa :D

#

how r u doing

vocal basin
rough meadow
#

ok

vocal basin
#

repetition can be reduced using a list

rough meadow
#

i know

#

its different question

#

and i makes me look alot smarter

vocal basin
#

what's the question?

#

!fstring also this

wise cargoBOT
#
Format-strings

Creating a Python string with your variables using the + operator can be difficult to write and read. F-strings (format-strings) make it easy to insert values into a string. If you put an f in front of the first quote, you can then put Python expressions between curly braces in the string.

>>> snake = "pythons"
>>> number = 21
>>> f"There are {number * 2} {snake} on the plane."
"There are 42 pythons on the plane."

Note that even when you include an expression that isn't a string, like number * 2, Python will convert it to a string for you.

rough meadow
vocal basin
#

!e

score = 4
total = 5
print(f"{score / total:.0%}")
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

80%
vocal basin
#

(mostly trying to remember myself how to do it)

rough meadow
#

oh

#

is this server official

vocal basin
#

most popular, but not run by PSF

rough meadow
#

oh

vocal basin
#

(python software foundation)

rough meadow
#

yes

#

me too, @wind raptor

wind raptor
rough meadow
vocal basin
#

webhook usually is for events
and "serverless" covers both that and RPC, and more

#

odd term, but not sure if there's a better alternative

rough meadow
#

y is everyone so smart lemon_angrysad

vocal basin
#

"on-demand" is more general than "serverless", as far as I've seen it used

wet scroll
rough meadow
#

lol

vocal basin
#

I don't what "smart" means anymore
the world is too complex for such labels

rough meadow
#

very well knowing

wet scroll
#

i wish i knew some audio stuff

#

maybe like libav

wet scroll
#

hey does anyone know where i can learn audio and video stuff? (C++)

wind raptor
#

@wise loom your mic is open.

#

No worries 😄

wise loom
wind raptor
#

I just thought you'd want to know haha

whole bear
#

@wind raptor

#

Chris

wind raptor
#

Hey

whole bear
#

I need study this

#

Html CSS can be good start
Then Javascript
Then dive into official documentation of one of popular frameworks (react, vue.js for example)
And start making projects

wind raptor
#

👍

whole bear
#

Give me advice on where to study

wind raptor
whole bear
#

Ty

wind raptor
#

No problem 😄

wet scroll
#

is anyone gonna speak here?

#

its kinda silent in here not gonna lie

desert vector
#

depends if @wind raptor wants to flex his degree in yapology

wind raptor
#

I'm doing an assignment.

desert vector
#

Okay, jeez
Have fun >.>

wet scroll
#

do you guys uh

wind raptor
#

Thanks

wet scroll
#

know any website that lets you learn audio stuff in C++

desert vector
#

"audio stuff" is very vague

wet scroll
#

uhhhh

#

DSP

#

i wanna make DAW

desert vector
#

Ah yes, I remember this conversation

#

are you familiar with using C++ at all though

wind raptor
#

I thought you were doing that in Python?

desert vector
#

I remember you're using Python because it's the only language you're familiar with

wet scroll
#

i decided to do it in C++

#

i started this week

#

i think i do know some stuff

desert vector
#

Do you?

wind raptor
#

That's a pretty complex project for just starting C++

wet scroll
#

maybe i know

#

maybe i dont

wind raptor
#

I believe in you though

wet scroll
desert vector
#

If you're not sure, then you shouldn't do it yet
focus on understanding what you're writing in first

wind raptor
#

I don't know C++ so I am of 0 help unfortunately

desert vector
#

Don't work on a project that's out of your range of skill
You won't learn; just be frustrated with a lot of new terms at once

#

Focus on learning C++; get to know what you're developing in

#

Then orient yourself to your project

lavish rover
#

There's this YouTube channel called javidx9 (OneLoneCoder) that has done some audio stuff in C++ I guess, but once again it's not simple if you're new

desert vector
#

A whole DAW is not a beginner-friendly project

#

@obsidian dragon hola

wet scroll
wind raptor
#

Hey @obsidian dragon

#

How dare you break the silence

#

I'm walking here

#

lol

desert vector
desert vector
#

If there's hesitation behind it, you shouldn't
"I guess", "maybe", and the sort means you're not ready
You've been learning C++ for what... a week?
That's not nearly enough time for something of this scale

#

There's a LOT that's going to go into this project

wet scroll
#

which is...?

desert vector
#

There's just a lot of prerequisite knowledge you need first before attempting this
By all means, learn as you go, especially with DSP, but it's not efficient to go in without knowing the language you're writing in

#

I'm not your mom, but
I would just recommend holding off for a while

#

at least until you get a little more time with C++ under your belt

wet scroll
#

can you like at least test my skills or something

desert vector
#

If I were the authority on C++, sure

#

I am not though

wet scroll
desert vector
#

I'm speaking mostly from experience here
It's not fun walking into something you don't understand

lavish rover
#

If you've spent less than say 4-6 months programming in C++ you likely don't have enough familiarity with most of the core features to jump into a big project like this.

Obviously this also depends on how many other languages you know. If it's your first/second one then probably longer than that. If you are already familiar with say C/rust/Go etc then much shorter

golden sonnet
#

👋

desert vector
#

hola

golden sonnet
#

almost done with my personal website

desert vector
#

neat; I'd like to see

#

for inspiriation

wind raptor
#

That's awesome!

golden sonnet
#

i can show
tho it's basic

desert vector
#

if you don't mind throwing up a development server on your localhost

#

I'll give you stream perms

#

!stream 999482770957021204

wise cargoBOT
#

✅ @golden sonnet can now stream until <t:1699720074:f>.

desert vector
#

Yeah, let's see it

wet scroll
#

aw man

golden sonnet
#

does it show?

desert vector
#

nah, you've got a black screen

lavish rover
#

Being good at programming takes time; you can't do a marathon when you don't know how to run properly

desert vector
#

also, didn't notice you won code jam mu, good job

wet scroll
lavish rover
#

Twas a while back, but thanks!

desert vector
#

yeah we can see it @golden sonnet

desert vector
lavish rover
desert vector
#

looks nice so far @golden sonnet
You just need some small graphical adjustments imo

golden sonnet
#

i'm a front newby

wet scroll
desert vector
#

I believe it was your projects page;
the horizontal bar was hugging directly on the bounding boxes for your github frames

#

you might want to add border to the bottom of that bar

golden sonnet
#

yeah
i'll probably move the whole page

#

having api in the landing page slows dows stuff

#

and the line is annoying, yes

#

django-debug-toolbar is such a nice tool

desert vector
#

@ebon mist Did you say Ren'Py?

ebon mist
#

yes

desert vector
#

What about it?

#

Oh, there's a tutorial on the main page

#

Hold on

#

Oh, that's all you really need actually

#

Ren'Py is rather simple all things considered

#

'ello 'ello

wet scroll
#

where do i learn about DAWs

short owl
#

digital audio workstations ?

wet scroll
#

yeah

#

i wanna know how they render audios

short owl
#

get some of the free ones

#

there is a OS package in ubuntu for it ....

wet scroll
#

i wanna cry

short owl
#

some fit on a raspi , there is another one , need to find it

#

this is for video - audio editing the whole OS is directed to it

wet scroll
#

i dont get it

#

everyone says something about plugins

#

what do they mean ;-;

desert vector
#

plugins are the cornerstone of any DAW

#

they extend what effects are possible with your audio

shy monolith
#

whats a DAW

desert vector
#

digital audio workstation

#

think pro tools, mixcraft, fl studio,

#

ableton

shy monolith
#

nice

#

why i can speak

#

i mean to activate the mic

wind raptor
#

!voice

wise cargoBOT
#
Voice verification

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

desert vector
#

yeah, we have a voice gate

wet scroll
#

well uh i might just get started from plugins then

desert vector
#

@wind raptor don't you have a project to be finishing

wet scroll
#

where can i start?

desert vector
#

are you

wet scroll
#

uhhh

#

@wind raptor where do i start :(

short owl
#

zubba zubba

#

if you have musical talent , a DAWS is a dream

wet scroll
#

i guess im quitting on my project

#

i cant do this

short owl
#

go get Audacity , its a mini DAWS

wet scroll
#

this is just making me frustrated

short owl
#

can use effects there

#

add reverb , play backwards

#

boost audio

desert vector
#

@short owl this is not about finding a DAW, it's about building one

short owl
#

ohhh , well Audacity is open source can look at the innards as a guide

desert vector
#

@wind raptor you couldn't make a AAA game even if you had the skill though

#

you have no team

#

no funding

#

_>

#

I'm just being petty ASRemWink (and pretty)

short owl
#

hardware is easier than software

#

hardware has set in/out pins , software is forever expanding all that math and logic nightmares

#

years to learn math and programming , and when you get caught up can be obsolete

wet scroll
#

imma go ask chatgpt

short owl
#

try audacity -- can mess with mp3s and stuff

#

redit them to get ideas

wet scroll
#

how do i do real time stuff with audio?

short owl
#

usually need a powerful DSP

wet scroll
#

audacity cant do that right?

short owl
#

digital signal processor

#

most sound cards have a DSP to do effects like echo , or sound like a concert hall

wet scroll
#

well uh

#

wait how do i use portAudio

short owl
#

thats new

#

there are modules for audio in python and FORUMS that chat about messing with them

#

but you want to build a DAWS from the ground up ?

wet scroll
#

yesh

short owl
#

are you a musician ?

wet scroll
#

kind of

short owl
#

what instrument

wet scroll
#

oh

#

no i dont play any instruments

short owl
#

a bit of music ability kinda helps

#

but if you love music - play lots all the time that also helps

wet scroll
#

what

scarlet halo
#

brooooo

#

math sucks

short owl
#

did you ever make a custom CD had to edit it

#

math is a nightmare

#

what do you do with math ?

scarlet halo
#

like bro how tf do i calculate a progress bar

short owl
scarlet halo
short owl
#

i draw stuff in pygame

scarlet halo
#

ooo

short owl
#

Tkinter progress bar ......

scarlet halo
#

how tf is that implemented

desert vector
#

we have our reasons @tepid mantle

short owl
#

did you draw on paper what you want your BAR to do , how its animated , what color

scarlet halo
#

bro how did i even get a zero division error

short owl
#

use a scale widget to control progress bar and experiment

scarlet halo
#

also im not using tkinter

#

rn

short owl
#

QT ?

scarlet halo
#

im using plain text

short owl
#

i use free stuff

scarlet halo
#

======------ like this

short owl
#

ncurses is a text thing

scarlet halo
#

thats my progress bar

short owl
#

did you look at that

scarlet halo
#

the thing im making

#

its a polybar script

#

for spotify

short owl
#

ohh thats new

#

what does that do ?

scarlet halo
#

it originally just showed the current playing artist and song

short owl
#

ohhhhh , i wondered how that worked , just a script

scarlet halo
#

but i edited it to display playback and a progress bar

#

also i didnt make the original script

short owl
#

go look through the rooms - look at profiles - many have the spot thing , just ask them

#

they likely have link to page they used

#

most programmers are copy and paste artists

#

when you find out let me know - i want try something like that

rough meadow
#

clean desktop or what

short owl
#

gotta mess it up - look busy

desert vector
#

@whole bear a tad busy

rough meadow
#

i am busy

short owl
#

numpy has some stuff for that - but scratch coding is good also

#

merge_arrays --- need to try that one day

tepid mantle
whole bear
#

hi

whole bear
whole bear
#

someone send me a little challenge

#

pls

minor sage
#

I need a group of 5 people, id prefer people ive already talked to in here via voice chat to stress test my simulation and give recommendations / feedback on what needs to be improved, as of yesterday the code / idea is copyrighted through my LLC. You will be sent a link via DM to a private repsitory on github with the download link to the code. INQUIRE FOR MORE DETAILS. THANKS -IAN

wind raptor
#

!e

class Car:
    def __init__(self, brand):
        self.brand = brand


my_honda = Car("Honda")
my_ford = Car("Ford")
my_hyundai = Car("Hyundai")

for car in [my_honda, my_ford, my_hyundai]:
    print(car.brand)
wise cargoBOT
#

@wind raptor :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | Honda
002 | Ford
003 | Hyundai
wind raptor
#

!e

class Car:
    def __init__(self, brand, honk):
        self.brand = brand
        self.honk = honk

    def honk_horn(self):
        print(f"My {self.brand} goes {self.honk} {self.honk}")


my_honda = Car("Honda", "beep")
my_ford = Car("Ford", "boop")
my_hyundai = Car("Hyundai", "AHHHHH!!")

for car in [my_honda, my_ford, my_hyundai]:
    car.honk_horn()
wise cargoBOT
#

@wind raptor :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | My Honda goes beep beep
002 | My Ford goes boop boop
003 | My Hyundai goes AHHHHH!! AHHHHH!!
wet scroll
#

hey guys

#

what are you guys doing

#

hey Chris how should i implement portaudio

#

uhh

#

Open-Source Cross-Platform Audio API

#

welp im screwed

wet scroll
#

i have seen that before

#

i have no idea how to compile it

#

well the thing is

#

im using Qt Creator not Visual Studio

#

Qt Creator

#

yeah

#

da hecc is MinGW

#

im on windows

#

i dont know

#

i have ran it before

#

oh i have MinGW

#

it was downloaded with my Qt Creator

somber heath
#

@cyan wigeon 👋

wind raptor
#

!stream 239917638656983040

wise cargoBOT
#

✅ @willow light can now stream until <t:1699757415:f>.

willow light
#

"BIKF 120200Z 08014KT 9999 SCT034 BKN160 03/M00 Q1006"

#

Keflavik International, 12th day of the month at 2am UTC, 80 degrees wind direction at 14 nautical miles per hour, perfectly clear air, scattered clouds at 3400 feet, somewhat more clouds at 16000 feet, temperature is 3 C dewpoint is 0 C.

somber heath
#

@manic merlin 👋

#

@spice olive 👋

manic merlin
#

@somber heath Hello

#

How are you. All

manic merlin
#

@somber heath plz help

#

@somber heath my py coding Fix errors

unique anvil
#

!voiceverify​

hidden umbra
#

Had to go due to a call. But I would talk more on this

hidden umbra
#

🥣

#

The typing for very long 👀

fallow hemlock
#

bruh highschool teachers were the same I had a teacher that knew nothing about html or css but was still teaching it for a Graphic Design class and all he taught for the whole thing was the basics of how fetching a website works and that was it and for the whole rest of the lesson he told us to teach ourselves and directed us to the w3 website and said we had to make a website based off of a shop in less than a week

hidden umbra
#

yea .... that sucks. At least in HS it can make more sense. But also very annoying when they give teachers those classes

willow light
#

I ragequit the C Programming for Non-CS Majors Course because the teacher kept taking off points for me not using Windows.

fallow hemlock
#

and html and css was my first intro to coding in general and I hated it returned to learn python, java, and SQL and I had so much of an easier time teaching myself

#

I hated highschool no joke teaching yourself is so much better

hidden umbra
#

Yea. HTML is a strange language to learn.

#

I learned most of what I know from teaching myself

#

And I code circles around a lot of people I know. Not becuase I am that good. But because only doing school work will not prepare you well

fallow hemlock
#

I find school fine for basics but going out in the world and teaching yourself is so much better than paying god knows how much for a very strict curriculum

hidden umbra
fallow hemlock
#

tr tr

hidden umbra
#

You need a good mix

fallow hemlock
#

plus it actually gives you the paper to do most things

hidden umbra
#

Not going to school is fine. But it means you will need to do a lot more work to get a job.

#

Nah if you need to learn math https://www.youtube.com/@ProfessorLeonard

#

I didn't go to a single class for calc 3 and just watched him and get an A in the class 😄

#

alright; night night :zzzz:

wet scroll
#

hi arrowsquid

willow light
#

I wouldn't be where I am today without Salman Khan's original 240p videos from 2007

undone idol
#

?

#

lol

#

what

willow light
raven mural
#

its way easier to take an introductory class on something you don't know than to make up whatever the hell it is that you're going to pick and choose

#

if you're aware of how short-term storage and long-term storage of your brain, then you'll pick up why classes really help with the long-term storage

#

and not the short term

#

if you just google everything and don't actually practice or hold yourself up to a standard

#

you won't retain any useful information

#

you may fool yourself into thinking you have, but after years of doing it the way I'm advising against, I have to say a hard no

#

again, if you can have a self-paced curriculum

#

then its all good

#

but majority of the people who approach learning have no idea how to do that

#

i'd argue that programming and other topics is hell trying to establish a routine for

fallow hemlock
raven mural
#

that's good

fallow hemlock
#

plus the graph on github is good data that I can reference upon if need be (or possible jobs can reference)

fallow hemlock
willow light
#

!pep 8

wise cargoBOT
willow light
#

!pep 20

wise cargoBOT
willow light
#

!e
import this

wise cargoBOT
#

@willow light :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | The Zen of Python, by Tim Peters
002 | 
003 | Beautiful is better than ugly.
004 | Explicit is better than implicit.
005 | Simple is better than complex.
006 | Complex is better than complicated.
007 | Flat is better than nested.
008 | Sparse is better than dense.
009 | Readability counts.
010 | Special cases aren't special enough to break the rules.
011 | Although practicality beats purity.
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/PBXGJTDLXI5AVQVE6VLFNSE3XQ

cosmic bison
#

!e
import gravity

wise cargoBOT
#

@cosmic bison :x: Your 3.12 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 gravity
004 | ModuleNotFoundError: No module named 'gravity'
willow light
#

!e
from future import braces

wise cargoBOT
#

@willow light :x: Your 3.12 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     from  __future__ import braces
003 |     ^
004 | SyntaxError: not a chance
cosmic bison
#

!e
import antigravity

wise cargoBOT
#

@cosmic bison :warning: Your 3.12 eval job has completed with return code 0.

[No output]
somber heath
#

@trim willow 👋

#

@snow dune 👋

snow dune
#

i can't talk

#

my mic is muted

#

but hi

somber heath
#

!voice 👇

wise cargoBOT
#
Voice verification

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

snow dune
#

@somber heath got it, i'll get on with it

#

i mean

#

@somber heath again? i didn't understand a thing haha

trim willow
#

I need Have 50 messages in the server

snow dune
#

ummm, what brings me here, good question

#

boredom?

#

idk

#

not just boredom, but yeah no I like programming so I guess that's also part of the reason why I'm here

#

you're fine no worries :)

#

don't worry for me, I can understand you loud and clear now

#

i was having trouble before

#

yeah, very unusual in general i guess

trim willow
#

I CANT speak ,I dont have permission

snow dune
wise cargoBOT
#
Voice verification

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

trim willow
#

hello guys~ I'm here to learn python

snow dune
#

that sounds great

#

do you have an understanding about programming at a basic level?

#

@trim willow

#

um

#

i know python ofc

#

a bit of js

#

a bit of c++

#

and i guess that's about it

trim willow
#

I’m a data engineer

snow dune
#

i recently got into batch files so idk if that counts as well

trim willow
#

often use pandas

snow dune
#

i can make a quadratic formula calculator with c++

#

maths

#

it's easy as f-

#

look

#

hahahah

snow dune
trim willow
#

yes

snow dune
#

let me see if i understood

#

you're using dimensions as blocks to store data?

#

yes

#

of course

trim willow
#

okok u surely can

trim willow
#

like SQL stucture data

snow dune
#

yep

#

so a 2d structure would look like

list = [[]]
#

??

#

@somber heath

trim willow
#

sorry my english is a little weak ,my native language is not english . i here also can learn english .lol hhhhhh

snow dune
#

so the more lists inside a list more dimensions?

trim willow
#

list = [ [1,2] ,[2,3]]

snow dune
#

crazy

trim willow
snow dune
#

btw, am I allowed to send C++ code here? I don't want to break any rules so if I need to I'll just DM anybody who wants it.

trim willow
#

but I only deal with 1 or 2 dimensions

snow dune
#

the quadratic formula program

snow dune
trim willow
snow dune
#

hahah aight

#

just making sure

#

ok!

#

How to make a quadratic formula calculator using C++:

#include <iostream>
#include <cmath>

using namespace std;

int main(){
    int a, b, c;
    float x1, x2;
    /*You can also ask for the values of the a, b and c factors all in 1 line, just that I forgot how to do it (without a loop) haha*/
    cout<<"Value of a: "<<endl; cin>>a;
    cout<<"Value of b: "<<endl; cin>>b;   
    cout<<"Value of c: "<<endl; cin>>c;
    
    x1 = (-b + sqrt(pow(b,2) - (4 * a * c))) / (2 * a);
    x2 = (-b - sqrt(pow(b,2) - (4 * a * c))) / (2 * a);

    cout << "Solutions are " << x1 << "and" << x2 <<endl;
    return 0;
}
#

all made by me btw :)

#

cout is your python print

#

int and float define integer and float variables

wet scroll
#

<<

snow dune
#

yeah but one thing i have not figured out how to do in C++ yet is how to add variables inside ""
like in Python you can do this:

x = 1
print(f"This is {x}") #Output: This is 1
#

i wanna replicate that in C++

#

because the last line looks ugly

#

cause the << is like parenthesis and commas at the same time

#

weird

#

yep

#

nope

trim willow
#

hhhh

snow dune
#

but I am making a game with a friend using C++ though

trim willow
#

*concise

trim willow
snow dune
#

for the GUI we're using SFML

snow dune
scarlet halo
#

yo

trim willow
#

ok i see

#

hi spelis

scarlet halo
trim willow
#

lol ,continue

scarlet halo
#

cool spotify plugin for polybar

trim willow
#

use terminal?

scarlet halo
#

?

shadow marsh
#

Hello

trim willow
#

hi luffy

trim willow
#

it's a plugin

shadow marsh
#

Static website?

trim willow
#

i know a liitle front web ,such as css html js vue

#

do u know vue?

scarlet halo
trim willow
#

vue is a frame

scarlet halo
#

yea framework

shadow marsh
#

Yeah

trim willow
#

yes framework

shadow marsh
#

No problem

scarlet halo
#

chris and hemlock are super cool

somber heath
#

!code

wise cargoBOT
#
Formatting code on discord

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.

For long code samples, you can use our pastebin.

scarlet halo
#

ai is really stupid sometimes

#

asked if it was possible to render images to polybar and it just made me render a nerd font symbol

#

like just say no?

trim willow
#
print('Hello world!')
scarlet halo
#

bye

shadow marsh
#

Bye

scarlet halo
#

okay guys

#

snake

#

or no snake

trim willow
#

nice to meet u guys ,i need offline

#

bye~~~

scarlet halo
#

bye

somber heath
#

@azure sparrow 👋

snow dune
azure sparrow
#

Hello hello

wise cargoBOT
#
Missing required argument

code

#
Command Help

!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.

Currently only 3.12 version is supported.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!

scarlet halo
#

brooo

#

too much code

gentle flint
somber heath
#

@frosty marlin 👋

faint ermine
#

Yo does anyone know if i can see how many messages i sent atm?

somber heath
faint ermine
#

damn plome knows me

snow dune
#

33...

faint ermine
#

why haha?

gentle flint
#

well it's 35 now

faint ermine
#

i dont get it

#

is it like perez

#

who dat

gentle flint
faint ermine
#

Plome be leaking my ass like that

#

tf

gentle flint
#

you can see how many messages

#

at the bottom

faint ermine
#

Yeah found it

#

ty ❤️

#

Opal am i good to send like 5 more msgs

#

I so close

#

Amsterdam kinda fire i was there like 2 months ago

#

get

#

me

#

in

#

please

somber heath
#

@tribal mulch 👋

somber heath
faint ermine
#

warme schokomel

gentle flint
#

warme chocomel

faint ermine
#

ik ben sechsten joahr alt

snow dune
#

hallo, ich bin MD

faint ermine
#

ik ben zestien jaar oud

gentle flint
snow dune
somber heath
#

@sour geyser 👋

dry jasper
#
snow dune
#

@somber heath cya!

dry jasper
whole bear
#

Hi

snow dune
#

hi

whole bear
#

I have one question

snow dune
#

go on

whole bear
#

I study this and now?
Print
Variable
Input
Int
Float
If
Else
Elif
Functions

whole bear
#

What is this

snow dune
#

import math

#

math module

whole bear
#

Ok

#

Ty

snow dune
#

you're welcome

gentle flint
snow dune
#

@gentle flint i think that's a bad sign (the graphics card I was talking about earlier has that)

#

And that as well

#

(On the other side)

#

I read on the internet, one said that with 1 it was fine

dry jasper
snow dune
#

Ok

dry jasper
trim willow
#

hi

somber heath
empty crown
#

epistemology

somber heath
#

@normal siren 👋

oak kelp
#

good morning guys

wind raptor
somber heath
#

!voice 👇

wise cargoBOT
#
Voice verification

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

normal siren
wind raptor
#

Hey @woeful salmon

somber heath
#

@forest barn 👋

woeful salmon
#

what's up 🙂

oak kelp
#

do you guys study python from free code camp?

#

or from where?

wind raptor
oak kelp
#

oh

woeful salmon
#

nice! 😮 tell me if you need any help with that :3 that's one field of math i basically use everyday lol

somber heath
woeful salmon
wind raptor
#

Gonna work on some more today in ~ 6 hours

somber heath
#

@mental plank 👋

woeful salmon
#

the guy i was teaching django just made 1 project and then said he wants to try out javascript now to see which he likes better 🤣

mental plank
#

Hello @somber heath

#

@somber heath The first person to get my username pronounciation right lol

wind raptor
snow dune
woeful salmon
#

i think its more about which language you like better really

mental plank
#

yeah they just butcher it in any way they can

#

well

woeful salmon
#

as for any really big scale project backend isn't going to be either

wind raptor
#

We're going to do a few projects in it and hopefully he gets that muscle memory

woeful salmon
#

javascript or python (mostly.....)

mental plank
#

'jondgya' in my native language means cockroach

#

z just to make it sound cool

#

i speak 'kannada'

empty crown
#

kannada?

woeful salmon
#

i'm still using next.js 12 on most my projects

#

13 is better but i tend to copy from my old template which uses 12

#

habit

somber heath
#

@uncut ferry 👋

wind raptor
wet scroll
#

i am progressively getting demotivated

#

did someone say roblox!?

golden sonnet
#

hi

fervent grail
golden sonnet
fervent grail
#

me too

golden sonnet
#

how you doin'?

fervent grail
#

good how about you ?

#

city ?

golden sonnet
#

qom

fervent grail
#

town ?

#

oh

golden sonnet
#

im from tabriz tho

fervent grail
#

mine tabriz

golden sonnet
#

oo

fervent grail
#

oh

#

how old are you ?

golden sonnet
#

21

fervent grail
#

i'm 15

golden sonnet
#

hmm
the midle of teenage

fervent grail
#

yeah

golden sonnet
#

15 was good for me

vocal basin
#

@snow dune thanks to CSGO this is now international vocabulary

fervent grail
#

@golden sonnet may you dm to talk together ?

golden sonnet
#

sorry i don't do dms

fervent grail
#

k

vocal basin
#

the most non-technical interaction in DMs (with people I don't know) I had is probably when someone asked about where pfp was from

#

I don't even remember who asked me this

#

if you're inviting to a public/discoverable server, you can just send the name instead

#

invites get auto-removed

#

(except those whitelisted)

golden sonnet
#

hm
i don't know if it's public

#

how do i check>

vocal basin
#

does it show up here?

#

are there other websites pointing to it?

#

I should probably learn about Concepts in C++

vocal basin
#

and generally their templating system

#

I've made a polynomial solver in C and it's slightly cursed

golden sonnet
#

seems like private

#

ok it's no big deal really

vocal basin
#

solves polynomial equations

#

> roots are ordered
I forgot I even had this

fervent grail
#

@golden sonnet have you learned python ?

golden sonnet
#

a bit

vocal basin
#

but not obfuscated

#

I recently had LVM crash because of a power surge

#

one more reason to switch to ZFS

fervent grail
golden sonnet
fervent grail
golden sonnet
#

i don't really care
web was a choice amongs many

#

i just went with it

vocal basin
#

I somehow still haven't tried using Django

golden sonnet
#

for start i would say use flask or fastapi

#

django is big

vocal basin
#

and flask is bad

woeful salmon
vocal basin
#

it's a framework

woeful salmon
#

its nice to have the safety and everything already provided

golden sonnet
#

django has so many tools ready
i have a hard time beliving it

vocal basin
#

FastAPI tries to be more like a minimal tool/library which you can combine with other tools/libraries
and so does aiohttp

#

but aiohttp for server-side is cursed somewhat

#

it sure does allow doing something you shouldn't do

golden sonnet
#

fastAPI user guide turns me off

#

just a hundred page of doing type hinting :/

vocal basin
#

it prefers declarative over imperative

woeful salmon
#

but not really

vocal basin
#

type hints over manually figuring out data

golden sonnet
#

yeah but i haven't even gotten to making web yet

vocal basin
wind raptor
golden sonnet
#

i'm taking it slow tho
looking at django and fastAPI at the same time is brain melting

wet scroll
vocal basin
#

the most fun thing I did with FFT was probably a program to repeat the same sound N times
(complexity of which doesn't depend on N)

wind raptor
#

I've watched a few minutes of it and it looks like really good content

golden sonnet
vocal basin
golden sonnet
#

i don't know if i should use redis or just go with normal database

#

it's just one page

wind raptor
vocal basin
#

abstract it away, provide a choice when deploying

#

like how Nextcloud allows to choose between:
redis
memcached
no cache

golden sonnet
#

how heavy is redis to deploy?
i wanna keep it minimal

vocal basin
#

I have two instances running rn (will check resource usage)

woeful salmon
#

https://www.youtube.com/watch?v=i_Iq4_Kd7Rc pithink idk if this is even related but i remembered having seen this from fcc

In this tutorial you will learn modern C++ by building an audio plugin with the JUCE Framework.

✏️ This course was developed by Matkat Music. Check him out on YouTube and Instagram:
🔗 https://www.youtube.com/matkatmusic
🔗 https://www.instagram.com/matkatmusic

💻 Code: https://github.com/matkatmusic/SimpleEQ
💻 Download the completed plugin: http...

▶ Play video
vocal basin
#

okay, that was a lie, one is not running

#

Nextcloud's redis takes 6 MB and 0.3% CPU core on my server

golden sonnet
#

that sounds cheap

vocal basin
#

it of course depends on the size of data you're dealing with

#

for redis, there may be multiple ways to do the same thing

golden sonnet
#

just a few apis in a a page

vocal basin
#

especially if you can sacrifice correctness

vocal basin
golden sonnet
#

i should check if database dumps the old data :

wise loom
#

@snow dune PIC16F84

vocal basin
golden sonnet
#

i saved it

vocal basin
golden sonnet
#

that one has a fancy title

#

i should see what it is

#

ah
i should've gone for frontend dev :p

vocal basin
#

I only remember watching one JS-adjacent course

#

about Node specifically

#

but I did that mostly for how meme-y it was

#

because it avoided npm

#

(but I didn't watch it in full because I wasn't interested enough)

#

it was an overview on node itself
showing how to build stuff without bringing in extra dependencies

#

"The Node.js Master Class - No Frameworks, No NPM, No Dependencies"
I have no clue whether it's a good course or not

#

it doesn't sound practical, so I don't recommend it

#

now that there's so much definitions of backend/frontend

#

and next.js is both
then browser js sometimes falls in both

#

separating server-side rendering and API is probably a good idea

#

yeah, Django is basically same

#

I've stopped really doing web dev in around 2020/2021
and whatever I did back then was quite broken

#

terrible framework in backend
terrible framework in frontend

#

(those frameworks being Flask and Angular)

#

at least not Angular.js

#

it officially died, like, only recently

#

1.5 years ago

solemn helm
#

Well, what do you guys suggest for app dev ?
There's so much to learn and I'm stuck like there's java, kotlin , flutter , react-native and stuff like even electron exists . I just want it to be lightweight .

vocal basin
#

lightweight in what sense?
development cost? app speed? app size?

vocal basin
#

for android apps, Kotlin, as preferred by Google

#

(for up-to-date API support/code examples)

solemn helm
#

Which is easier for someone from a python background

vocal basin
#

Kotlin syntax is odd, yes

#

iirc, it has also some dependency injection supported by syntax natively or something of similar cursed-ness

solemn helm
#

👍🏼

vocal basin
#

and then Java errors in Kotlin code

#

Java/Kotlin/C# are close enough to Python because it's more or less the same OOP model
there is no principal functionality difference between them, as far as I've seen

#

out of common stuff I've seen that differs, may be dynamical creation of fields

#

which is bad in Python but allowed

#

yeah, Python takes work to translate to those

vocal basin
#

if you apply OOP patterns to Rust, there will be pain

scarlet halo
#

yo

vocal basin
#

if you apply OOP patterns (common in C#/Java code) to Python, it will work normally, but there may be better options

woeful salmon
vocal basin
#

does JS now support stricter classes or is it still a hack?

woeful salmon
#

its a hack but it now supports private properties....

#

the way you make a property private is prefixing property names with #....

#
class MyClass {
  constructor() {
    this.#foo = "foo";
  }
}
#

same for private methods

vocal basin
#

are they isolated per each prototype the object "inherits" from?

woeful salmon
#

never tested it as i just avoid classes in js at all at all costs

#

but i would guess they've probably found a way to do it

vocal basin
#

JS has, like, three object models now, apparently

#

closures as methods
prototypes
classes

woeful salmon
#

classes are syntactic sugar for prototypes

vocal basin
#

yeah

#

closure-based approach seems strictest but costly

#

though going through the prototype chain is costly too

#

idk what would perform better overall

#

creating many objects -- optimised for prototypes
accessing the same object often -- idk

woeful salmon
#

pithink i just don't use classes or closures until i absolutely need them

#

like if i'm making a canvas based background effect or something with particles following your mouse i'd probably make a particle class

#

o- o

vocal basin
#

both achieve what OOP is often about which is abstraction (of specific implementation/behaviour/etc.)
(in case of Java/Python/JS, that abstraction persists in runtime, unlike most Rust code)
if that's unneeded, it might be better to just call some named function which knows the structure of data

woeful salmon
#

yep

#

100% agree to that

vocal basin
#

contrast to that, Rust's abstractions via traits/generics/etc., often aren't kept in runtime and allow for simplification of codebase without performance cost

#
  • Rust sometimes forces (strongly suggests) to generalise
woeful salmon
#

in a multi paradigm language the paradigms are just tools so you can use the one that makes more sense for a particular usecase

vocal basin
woeful salmon
#

rust is good but it comes at the cost of writing alot of match statements or dealing with ugly unwraps as well so tradeoffs everywhere 😦

vocal basin
#

it provides tools to simplify matches/unwraps/etc. if those are repetitive

#

including extension traits

woeful salmon
#

you mean like except andunwrap_or and stuff?

vocal basin
#

yes, and beyond that

#

(Rust doesn't have a notion of an extension trait, it's just a natural consequence that arises from the type system)

woeful salmon
#

i guess so pithink

#

altho rust for web development is still not that good i feel

#

not a great experience

#

the only reason i'm thinking about wether its good for web dev or not is because that's what i do for my job tho 🙂 for other usecases it is indeed an amazing language

#

can't wait until someone makes a good game engine with rust

#

that's one i would want to contribute to

vocal basin
# vocal basin it provides tools to simplify matches/unwraps/etc. if those are repetitive

in one of my projects, have to work with this nested result pattern often;
so for combining the functions, I have something similar to and_then_nested like in the example:

fn example0() -> Result<Result<Value, Inner>, Outer> { /* ... */ }

fn example1(value: Value) -> Result<Result<Value, Inner>, Outer> { /* ... */ }

fn example2() -> Result<Result<Value, Inner>, Outer> {
    let result = example0()?.and_then_nested(example1)?;
    Ok(result)
}
#

(removed map_inner because that was the wrong place to use it)

#

the code would also normally not have Result<Result<...>, ...>

#

and instead use a type alias

vocal basin
woeful salmon
#

the 1 thing i don't like about enums in rust is the same reason i don't like the python walrus operator

#

asignments magically happen inside of other statements

#

not on a separate like which just makes me uncomfortable

vocal basin
vocal basin
woeful salmon
vocal basin
#

the inside-out-ness of it? (having new identifier nested in the pattern)

woeful salmon
#
n = 999
if (r := (n % 2)) != 0:
    print(r)
if let Some(...) - someFunc() {...}
vocal basin
#

yeah, for Python it's more normal to have variants as subclasses, so even match looks differently

#
match thing:
    case Variant() as variant:
        ...
    ...
woeful salmon
#

i just prefer having an explicit assignment happen even for unwraping something out of an enum

#

rather than doing it inline in a match or if let

vocal basin
vocal basin
#

... or 7 versions

#

1.65~1.71, iirc

woeful salmon
#

i mean if i'm working on a rust project i'd probably just use the conventional ways of doing things just to make my own development experience lesser of a hassle and be easily able to get help if i need to

#

so people don't hae to decrypt my code to read it

woeful salmon
#

i gotta go now tho since its diwali (indian festival), happy diwali and see you guys later 🙂

wise loom
woeful salmon
#

that's all

wise loom
woeful salmon
#

milk cake, rasgulla, kaju barfi, etc

#

ok i gotta go off now going outside 🙂 cya

scarlet halo
#

cya

obsidian dragon
#

why no talk

scarlet halo
#

heheehha

snow dune
#

no talk = good

craggy breach
#

@whole bear PyCharm

oak kelp
#

no_talk = no_right_to_talk_in_the_voice_chat

#

print (type(no_talk))

gentle flint
#

<class 'bool'>

lucid shoal
#

Nerds

toxic arch
#

:pingu1_devcord::pingu2_devcord::pingu3_devcord::pingu4_devcord::pingu5_devcord:

wind raptor
desert vector
#

@wind raptor what business do you have here, canadian

toxic arch
#

how do you check if a file is closed?

#

without closing it

desert vector
#

Why would you want to check?
You can just context manage it and guarantee its closure anyway.

toxic arch
desert vector
#

Again, you can just context manage the file and do whatever you need to in that with block

desert vector
#

You dare moon me, the person named after the moon?

#

I'll have your moon for that, Chris

#

Mark my words

wind raptor
#

Toon's gotta moon

toxic arch
desert vector
#

Moon's gotta end you soon

wise loom
#

@somber heath I wanna show you something

#

these are reverse dependencies for Python modules

#

I like checking what projects use a specific library

toxic arch
#

guys check out my

#

custom rich presence

#

haha it works!

#

fuck no

#

it doesnt

#

same @somber heath that shit is ass

#

i always juse use view as desktop

wind raptor
#

This one goes out to you @desert vector

wind raptor
#

!stream 317279909112446976

wise cargoBOT
#

✅ @somber heath can now stream until <t:1699832555:f>.

minor sage
wind raptor
#

!stream 372380672641335296

wise cargoBOT
#

✅ @minor sage can now stream until <t:1699833788:f>.

minor sage
#

[16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 16, 0, 48, 1, 19

wind raptor
#

!stream 696634651875213322

wise cargoBOT
#

✅ @unborn storm can now stream until <t:1699837035:f>.

gleaming dirge
#

anyone able to help me with a pseudocode question?

#

small one

#

for skl

somber heath
#

@tardy prairie 👋

somber heath
gleaming dirge
#

means school tho

tardy prairie
#

How old do I have to be to join this group chat

somber heath
#

Aha. I thought you may have been referring to SciKitLearn.

#

!voice

wise cargoBOT
#
Voice verification

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

somber heath
#

3 days on the server, plus other requirements.

#

If you're referring to your actual age, I believe there are resources on Discord's website that may be relevant.

wind raptor
somber heath
#

@dull pumice 👋

wise loom
wind raptor
#

Java assignment

somber heath
wind raptor
#

!stream 717749310518722691

wise cargoBOT
#

✅ @whole bear can now stream until <t:1699845444:f>.

wind raptor
#

!warn 698194230929129563 Please do not use soundboards in our voice chat.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied warning to @final quail.

whole bear
#

!e

wise cargoBOT
#
Missing required argument

code

#
Command Help

!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.

Currently only 3.12 version is supported.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!

whole bear
#

!e
class Chessboard:
def init(self):
# Initialize an 8x8 chessboard with pieces represented by their initials
self.board = [
['r', 'n', 'b', 'q', 'k', 'b', 'n', 'r'],
['p', 'p', 'p', 'p', 'p', 'p', 'p', 'p'],
[' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '],
[' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '],
[' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '],
[' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '],
['P', 'P', 'P', 'P', 'P', 'P', 'P', 'P'],
['R', 'N', 'B', 'Q', 'K', 'B', 'N', 'R']
]

def print_board(self):
    # Display the current state of the chessboard
    for row in self.board:
        print(' '.join(str(piece) for piece in row))

Example usage

chess_game = Chessboard()
chess_game.print_board()

wind raptor
#

!stream 717749310518722691

wise cargoBOT
#

✅ @whole bear can now stream until <t:1699847856:f>.

whole bear
somber heath
#

@terse garden 👋

terse garden
#

server for less than 3 days ig